Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AN
Posts
0
Comments
412
Joined
2 yr. ago

  • Submarines would also outperform tanks in space.

    Randall Moore (xkcd author) wants to remind everyone turning the missiles around for maneuvering to remove the warheads. Can't link the xkcd because it's in a physical book.

  • Logisim is the best logic simulator I ever tried.

    If you want somewhat easy computation in games i recommend mindustry (open source factory light), if you want to be challenged try it in magic the gathering.

  • fact that the US would probably have deployed the bomb since Germany was their intended target in the first place anyways

    While physicists originally feared the Germans developing the bomb, the intended target was always Japan because the Americans where racist.

    Shauns video is long but worthwhile .

  • Recursion is often unintuitive for beginners, to understand this code we should simply it a bit

     void draw(int n);
        
    
    int main(void)
    {
        int height = get_int("Height: ");
    
        draw(height);
    }
    
    void draw(int n)
    {
        if (n <= 0)
        {
            return;
        }
    
        draw(n - 1);
        printf("%d",  n);
        
        printf("\n");
    }
    
    
      

    Inputting 3 should now give us a output like

     
        
    1
    2
    3 
    
      

    Try to understand that case first and than muddle it up with the loop.

    If you examine it in a debugger look at the Stack trace. If you use gdb its bt in a visual debugger it's probably the list of function names next to the variables

  • It won't save everything, but if a script follows every link recursively, most content should be reached that way. That's kind of what Google does but for one site instead of the internet.

    If there is a search function try very simple queries.

    The alternative of brute forcing links would be unfeasible, even if you are not rate limited by the site, due to the exponential complexity.

    If you want to do something please look into api/scraping etikette like exponential back off.

  • 🎼 The Workers on the S.P. line to strike sent out a call

    🎼 But Casey Jones, the engineer, he wouldn't strike at all

    🎼 His boiler it was leaking, and its drivers on the bum,

    🎼 And his engine and its bearings, they were all out of plumb.

    🎶

    🎼 Casey Jones kept his junk pile running

    🎼 Casey Jones was working double time

    🎼 Casey Jones got a wooden medal,

    🎼 For being good and faithful on the S.P. Line.

  • The 155th battery held out from dusk to dawn fighting tanks at 50m range and shot down two Messerschmidts with bren-guns, all while resupplying from a burning ammunition dump.

    But sure, sitting in a armored box that can reverse faster than a man can sprint is more heroic.

  • rule

    Jump
  • Had to work with a python programer on a small java project (in uni). I passed some (handcrafted) strings in an Optional to be explicit an first thing he does is check whether they are empty (sending on empty strings would not have been problematic). Also he had compilation errors on his branch that lasted over a week. What python does to someone.