Skip Navigation

User banner
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/)LI
Posts
2
Comments
232
Joined
2 yr. ago

  • Don't leave snow on the roof when you drive

    It can peel off in a giant ice sheet in the wind and destroy the car behind you

    Or otherwise, create a mini blizzard and make it impossible to see

  • See, I like to actually enjoy myself sometimes, instead of just hating the world

    And part of that enjoyment is good coffee. Fresh, locally roasted coffee, that I grind fresh each morning. I either take it black, or with a splash of milk, depending on my mood

    Drip brewers are perfectly fine, so long as you don't use the hot plate. But the biggest impact on coffee flavor is the freshness of both the roast and the grind

  • Because it's all an impulse decision

    "New Year's Resolutions" are the exact opposite of setting good goals

    Good goals:

    • need to be definable
      • "I will start restricting calories and target a 1lb per week loss"
      • not "get in shape"
    • need to be actionable
      • "I will start making plans right now, and implementing them tonight"
      • not "I will wait till a specific time of the year"
    • need to be sustainable
      • "I will adjust my strategy to work around my daily habits and otherwise be flexible"
      • not "NO MORE SWEETS"
  • Coffee brewers that have a hot plate under the carafe will burn and ruin coffee. The best method of keeping coffee fresh is to keep it in a sealed container (like a double walled carafe with a lid)

    Microwaving coffee is actually a pretty decent way to re-heat it, but the taste will depend on how fresh it was kept prior

  • I'm more talking about theory than practical.

    I've not developed anything in C/C++, so I don't know practical uses for a double pointer, aside from multidimensional arrays, or arrays of pointers

    My point was that, conceptually, pointers to pointers is how most complex data structures work. Even if the C representation of said code doesn't have a int** somewhere

  • The distinction is meaningless in the land of Opcode's and memory addresses

    For example, a struct is just an imaginary "overlay" on top of a contiguous section of memory

    Say you have a struct

     c
        
    struct Thing {
      int a;
      int b;
      Thing* child;
    }
    
    Thing foo {}
    
      

    You could easily get a reference to foo->child->b by doing pointer arithmetic

     c
        
    *((*((*foo) + size(int)*2)) +size(int))
    
      

    (I've not used C much so I've probably got the syntax wrong)

  • Mostly because at the lowest level of computing (machine code and CPU instructions), pointers are the only method (that I know of) of any kind of indirection.

    At the lowest level, there are 2 types of references:

    • CPU registers
    • memory addresses (pointers)

    Every higher level language feature for memory management (references, objects, safe pointers, garbage collection, etc) is just an abstraction over raw pointers

    Pointers themselves are really just abstractions over raw integers, whose sole purpose is to index into RAM

    With that in mind, pointers to pointers are a natural consequence of any kind of nested object hierarchy (linked lists, trees, objects with references to other objects, etc)


    The only other kind of indirection would be self-modifying machine code (like a Wheeler Jump). But the computing world at large has nixed that idea for a multitude of reasons

  • My guess is that there's a capacitor in there somewhere. The capacitor stores enough charge to keep the time for short periods (like a power flicker). But it's unreliable for longer periods of time (beyond a few minutes) and will cause clock drift.

    So, when the power goes out for a medium length of time, the microwave resets to 12:00 to indicate that you need to set the time again

    However, if the microwave is left unplugged for an extended period of time (a few days to weeks), the capacitor is fully drained. My guess is that this causes the time to be set to --:--

    Why it would be designed like that? No idea

  • As a software dev, i like having 3. Gives me space to see

    • console output and debug info on the left
    • my code editor in the center
    • and my browser on the right

    Or having multiple vscode windows and a browser

    I also move windows around using the keyboard (win + left / right), and the task switcher (alt + tab)