Skip Navigation
PSA: Don't just eat peanut butter
  • Kidney stones fucking suck too. Note that there are more than just the calcium oxalate kidney stones, but for those ones in particular, other things high in oxalates that you might be eating that are high in oxalates: spinach, chocolate, tea, nuts, sweet potatoes.
    So if you're trying to eat healthier, don't fully adjust to eating (breakfast) an oatmeal bake with nuts, peanut butter, and chocolate; (lunch) wraps using a spinach wrap and/or spinach instead of lettuce for the greens in it; and tea instead sodas... Unless you like the idea of Tylenol sized kidney stones.

  • Off by one solitude
  • It absolutely should not have been named zeroth() because the reasoning for that is purely pedantic and ignores WHY arrays are 0 indexed. It's not like the people in the early days of writing programming languages were saying "the zeroth item in the array" - they would refer to it using human language because they are humans, not machines. Arrays are 0 indexed because it's more efficient for address location. To get the location in memory of an array item, it's startingAddress + (objectSize * index). If they were 1 indexed, the machine would have to reverse the offset.
    Function/Method names, on the other hand, should be written so as to make the most sense to the humans reading and writing the code, because the humans are the only ones that care what the name is. When you have an array or list, it's intuitive to think "I want the first thing in the array" or "I want the last thing in the array)," so it makes sense to use first and last. That also makes them intuitive counterparts (what would be the intuitive counterpart to "zeroth"?).

  • Neo-Nazi Ex-Trump Dinner Guest Rages At Trump For Admitting He Lost — ‘You Deserve To Be Charged!’
  • I think it could serve that purpose (and honestly has to some degree), but the big thing that I didn't consider when I was young was that a lot of people just want to hate (or to convince others to be focused on hate), and will find spaces to spread and amplify that hate. I underestimated the capacity and drive of those that would spread fear and anger.

  • Neo-Nazi Ex-Trump Dinner Guest Rages At Trump For Admitting He Lost — ‘You Deserve To Be Charged!’
  • If it makes you feel any better, when I was young, I thought the Internet would bring the world together since you could sit and have a conversation with people all over the world with different perspectives, and befriending those from different walks of life would help break us out of small-town small-mindedness where everyone "not like us" is scary...

    Yeah, I might have been a bit too optimistic with that one.

  • Dev of slept-on tactical RPG says it "sold badly" despite glowing reviews: "My next project will be more focused on 'Does this sell'"
  • I'm kinda torn because of this. I like for good games to get recognition and be successful. Part of me wants to buy the game and give it a shot because it's been well received and I'm happy to support an indie dev... But I really do not want to help establish a trend of indies sleeping on advertising/spreading word, then crying "woe is me" after a single week when barely anybody was aware of it, as a way of guerilla marketing their game. I also need to watch a bit more gameplay to see if it's even in my wheelhouse before I decide to spend $20 on it.

  • Password length requirement
  • I don't think it could be hashed if it is case insensitive. It's fairly early so I may be misremembering but I'm not aware of any hashing algo that ignores case.

    Edit: Ah, actually they could be storing the password as a hash, but they would probably have to do like a password. ToLower() call or something where they morphed the string before checking... The thought of which just makes me shudder.

  • Advertising
  • If you like nice shirts with no design or logo, Kohl's has some really comfortable shirts in several colors and no logo at all. They're some of my favorite shirts right now.

  • A Crazy Story With Electric
  • Worth noting that Nuke subs have batteries but Carriers do not use batteries for auxiliary power. They have 2 independent plants (Enterprise had more, but that's decommissioned now), and use diesel generators as a backup. That's not to say there's no batteries on a carrier, but not like a ship-wide battery system. But obviously that has nothing to do with "how heavy" batteries are, so I guess this is all beside the point.

  • 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/)JU
    JustAnotherRando @lemmy.world
    Posts 0
    Comments 119