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

help-circle


  • Most of the problems can be totally avoided by telling the YAML loader what type you’re expecting instead of forcing it to guess (e.g. provide a schema or use typed getter functions). If it has to guess, it’s no surprise that some things don’t survive the string to inferred type to desired type journey, and this is something that isn’t seen as a dealbreaker in other contexts, e.g. the multitude of languages where the string "false" evaluates to true when converted to a boolean because it’s non-empty.


  • Something I’ve not seen mentioned here yet is that one of the reasons it’s such an effective way to make money is specifically because loads of people are buying into it. When you buy a stock (or a derivative like an S&P 500 index tracking fund), it increases its price. If you’re just one person with a normal-person amount of money, it won’t be enough to register, but if you’re part of a group of millions of people, or an investor with billions at your disposal, it’ll make a visible difference, and if people see that happening consistently, they’ll want to join in and there’ll be a positive feedback loop. It only stops when there’s a big enough panic that lots of investors can no longer afford to maintain their investment and have to sell at the same time, and then you can even get a positive feedback loop in the other direction when people see the price plummeting and decide they need to sell before it plummets any further.

    Stocks are supposed to represent the value of a company’s current assets and expected future profits, but this kind of feedback loop muddies the water. With something like Bitcoin, which intentionally has no inherent value, because enough people have agreed to pretend otherwise, it’s gained effective value, and can be exchanged for money, or in some cases, goods and services. That’ll remain the case until everyone agrees that they don’t want Bitcoin, so could go on forever.





  • This is silly. Everyone knows that DRY is telling you that if you do the same sequence of mouse clicks three times in a row, you should spend the day writing a script to automate the task instead of quickly finishing what you were doing by doing the same sequence of clicks a fourth time. If you are supposed to apply it to the code you write, then there’d never be boilerplate-heavy languages like Java.




  • Once I was tasked with doing QA testing for an app which was planned to initially go live in the states of Georgia and Tenessee. One of the required fields was the user’s legal name. I therefore looked up the laws on baby names in those two states.

    Georgia has simple rules where a child’s forename must be a sequence of the 26 regular Latin letters.

    Tenessee seemed to only require that a child’s name was writable under some writing system, which would imply any unicode code point is permissible.

    At the time, I logged a bug that a hypothetical user born in Tenessee with a name consisting of a single emoji couldn’t enter their legal name. I reckon it would also be legal to call a Tenessee baby 'John '.


  • As someone who’s just spent half an hour reading Wikipedia thanks to this thread, I can now dispense a summary of what I read to make it feel like I didn’t just waste a chunk of time I should have spent in bed by wasting another chunk of time I should be spending in bed.

    Fats are made out of fatty acids, which are carboxylic acids with a longish carbon chain. A saturated fatty acid only has single bonds between carbon atoms, a monounsaturated fatty acid has a single double bond somewhere in the chain (and these are sometimes things that turn into buzzwords, e.g. omega three oils are ones where there’s a single double bond three along from the end of the chain), and a polyunsaturated fatty acid has more than one double bond.

    Single bonds in a carbon chain can only be one way around, so you don’t get isomers of saturated fatty acids, but double bonds in a carbon chain can be in either of two orientations. If the hydrogens are on the same side for both sides of the bond, that’s the cis orientation, and if they’re on opposite sides, that’s the trans orientation. Most natural unsaturated fats are cis, so they generally don’t get explicitly labelled as cis fats, and just the trans ones get the extra label. Notably, though, vaccenic acid, which is about 4% of the fat in butter, is trans by default, so it’s cis-vaccenic acid that gets the extra label.

    Unsaturated fats tend to be more liquid at room temperature, but can be made by growing cheap vegetables. They also go off faster as free radicals can attack the double bonds. Saturated fats tend to be solid at room temperature, but mostly need to come from animals or more expensive plants (palm fat is an exception - it’s cheap and mostly saturated). It’s therefore desirable to use industrial processes to artificially saturate fats, and we can do that by heating them up and exposing them to hydrogen in the presence of a catalyst like Nickel. You don’t necessarily want to fully saturate your fat, though, so might stop part way, and if you do, unless you intentionally tweak the process to avoid it because it’s the 21st century and you’re legally obliged to, you get some of the partially hydrogenated fat switching from cis to trans.

    Over the course of the last century, we realised that (except for a few like vaccenic acid) trans fats are harmful in lots of exciting ways, e.g. messing up cholesterol, blocking your arteries, and building up in your brain. They’ve therefore been banned or restricted to certain percentages in a lot of the world. You can get a similar effect by fully hydrogenating things to get safe (or at least safer) saturated fat and mixing it with the unmodified fat, or by switching everything that used to use hydrogenated vegetable oil to using palm oil, which is one of the driving forces behind turning rainforests into palm plantations.

    Apparently, this was twenty five minutes of writing, so I’m nearly up to an hour of thinking about fats.


  • 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.


  • Personally, I can ignore the effects of artificial sweeteners on insulin levels as they, like everything else, have no effect, and my insulin levels are only affected by when I inject it. I’m type 1 diabetic. When people make incorrect claims based on effects that aren’t reproducible or weren’t statistically significant in the first place about the safety of sweeteners, it causes direct problems for me. I’ve had bartenders mess up my blood sugar levels by lying about serving diet drinks because they think they’re dangerous. Plus, if the people who push for artificial sweeteners to be banned had their way, there are plenty of things I couldn’t ever eat or drink again.






  • And yeah, the PETA kills site clearly has an agenda, but their agenda is to try and save animals from PETA’s “love.”

    Their agenda’s to make PETA look bad so people don’t become vegan or demand higher welfare standards from meat producers, and they can continue selling meat to Americans of such low standards that it would be illegal in the rest of the civilised world.

    You know what no-kill shelters try to do when they don’t have space? Coordinate with local foster programs, coordinate with other shelters to see if they have space. There are other alternatives besides taking in a perfectly healthy animal and dropping it in the euthanasia queue.

    As I said, they can’t do that once the foster programs and other shelters are full, too, and then overflow into PETA-run shelters because they’re the ones that still have a capability to receive more animals after they’re full. There aren’t enough shelters to keep every animal in good conditions until it’s either adopted or dies of natural causes, and no amount of coordination can magically create extra capacity.


  • It doesn’t strengthen your point to link Fox News and the literal website for the smear campaign I mentioned: https://www.sourcewatch.org/index.php?title=PETA_Kills_Animals

    As for PETA putting down lots of animals, that’s no secret. It’s really easy to get people to donate to a no-kill animal shelter, so there are lots of them. However, when you’re a no-kill animal shelter, and you’re full of animals you can’t kill, or are asked to take an animal that can’t be ethically be treated with anything other than euthanasia, you have to turn the animal down, and it ends up wherever will take it. Usually, that ends up being a PETA-run shelter. When a PETA-run shelter is being given all the rejects from everywhere else, it’s obviously going to end up putting lots of animals down. It’d be better for PR if they didn’t, but less ethical, and they prioritise the ethics above the PR.

    If you look at one of your more reliable sources, the Snopes article, it backs up what I’m saying, and not what you’re saying. It corroborates the story from my original post, lists another incident where PETA staff were accused but not convicted, and then discusses that they put down a lot of animals in their shelters, and how it includes healthy animals. The only controversy there is the definition of adoptable - a healthy stray kitten is theoretically adoptable, but if you get ten times as many kittens in a week as you do people wanting to adopt a kitten, 90% of them won’t get adopted, and your shelter will get quickly overcrowded if you insist on ignoring that fact.