• 0 Posts
  • 56 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle

  • no doesn’t become false, it becomes Norway, and when converted to a boolean, Norway is true. The reason’s because one on YAML’s native types is an ISO country code enum, and if you tell a compliant YAML implementation to load a file without giving it a schema, that type has higher priority than string. If you then call a function that converts from native type to string, it expands the country code to the country name, and a function that coerces to boolean makes country codes true.

    The problem’s easy to avoid, though. You can just specify a schema, or use a function that grabs a string/bool directly instead of going via the assumed type first.

    The real problem with YAML is how many implementations are a long way from being conformant, and load things differently to each other, but that situation’s been improving.


  • It’s generally accepted that file formats aren’t protected IP, so you can write a compatible reader or writer and be in the clear as long as you reused no code from the original reader/writer. The specification may have licence terms that restrict who you can share the spec with, but you don’t necessarily need the official spec to come up with a compatible implementation. Plenty of file formats have been reverse engineered over the years even when the original didn’t have a written spec.


  • I question the choice of sauce bottle. That’s clearly sriracha, and as someone who doesn’t consider themselves a hot sauce person, it’s not hot, it just contains chillies. I don’t think anyone who goes back for seconds after melting their face would melt their face with sriracha.





  • Cups can be a nightmare in the UK as it’s usually US cups, but sometimes it’s metric cups (which are just 250ml, so an entirely redundant measurement in the first place), and recipes rarely say which, and if you buy measuring cups, they’ll rarely say which type they are, but more commonly be metric ones, despite those being the least likely that a recipe would use.


  • AnyOldName3@lemmy.worldtomemes@lemmy.worldMeme.
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    13 days ago

    The instance admins and mods of some of the larger communities are self-described Marxist-Leninists, and sometimes delete comments and ban users who make comments and posts that they disagree with. Sometimes the removed comments are what most people, including most communists, would regard as basic statements of fact, like that Stalin wasn’t perfect, that something bad happened in Tiananmen Square in 1989, that Ukraine’s Jewish president isn’t a fan of the Nazis, or that Uighurs are not universally having a brilliant time.

    There’s a second issue that when openly Stalinist instances like Lemmygrad (who at least used to explicitly say membership was only open to users who thought Stalin was good in their instance description) were defederated by major instances like lemmy.world, lots of users made new accounts on lemmy.ml to post exactly the same tankie nonsense (typically along the lines of Russia is fighting a defensive war and hasn’t hurt anyone but even if they weren’t, they’d be justified in annexing the whole of Ukraine and killing anyone who objected) as had led to the defederation in the first place.

    Sometimes this leads to people not from .ml to make snap judgements about comments and posts from .ml users, when really it’s just a vocal minority of nutters posting the nonsense and trying to claim that any criticism they receive is just people being brainwashed by nutters in a more neoliberal/neoconservative direction like Reagan and Thatcher.



  • When people use the phrase rational self interest they’re overwhelmingly meaning what Ayn Rand called rational self interest. If you take the words literally, they apply to any political philosophy as no one’s trying to design a system against their own interests. The disagreements come from people disagreeing what their interests are and how they can feasibly have them fulfilled, not because they don’t want their interests fulfilled. No one else bothers using the phrase because it’s obviously the goal and stating that would be entirely redundant, but risk making it sound like you were advocating for something Randian.


  • All of Ayn Rand’s own examples of rational self interest were irrational and against her interests. It’s such an easy philosophy to mock because it’s just really stupid. True rational self interest would involve creating cooperative structures that give a safety net if anything goes wrong just like how it’s rational to get home insurance even if you don’t expect to burn your house down. Anyone drawing Randian conclusions can’t have thought of rational self interest.




  • AnyOldName3@lemmy.worldtoMemes@lemmy.mlForest of trees
    link
    fedilink
    arrow-up
    1
    arrow-down
    9
    ·
    28 days ago

    That’s not relevant to being a tankie as the US, Israel, and other states backing Israel, aren’t claiming they’re building communism or are the successor state to another which claimed to be building communism. It’s the part where communism is an excuse that means the bad things didn’t really happen and would be fine even if they did that makes tankie-ism its own distinct thing.




  • When they first started ramping up ads and demonetising more videos for being insufficiently advertiser-friendly, they probably still had enough goodwill from users that if they’d immediately launched YouTube Premium and presented it as a way to both remove ads, and support video creators that couldn’t rely on ad revenue, it would have been decently successful. A good number of YouTubers who had to switch to sponsorships and Patreon could have been pushing for people to subscribe to Premium instead of play Raid: Shadow Legends, which presumably would have boosted subscriber counts, and might have been enough to make YouTube profitable and much more pleasant for both free and premium users than it is today. Instead, they burned through a large amount of goodwill before implementing Premium, so people were already more reluctant, and for a long while it only shared revenue with a select few channels who were already raking in ad money, and was unaffected by view counts, so early Premium subscribers were paying Logan Paul even if they never watched that kind of video, but weren’t paying the channels they actually watched.



  • To go one better, there’s http://isthereanydeal.com/, which tracks prices across a bunch of vetted key retailers (i.e. companies that buy wholesale keys from publishers and sell them to users, but not grey-market or dodgy sites) so you can see where’s cheapest and get notified of discounts etc.

    Why check GreenManGaming and Steam (and potentially a bunch of their competitors, too) when you could check one site and know who’s best?

    I’ve accidentally made this read like an ad, but they’ve not paid me to say this, I just always check the site before buying games, and have either saved loads of money by doing so over the years, or have ended up buying a bunch of things I’d have ignored on the grounds they were too expensive otherwise. I don’t know in which direction, but it’s definitely changed the amount I’ve spent on games over the last ten years.