AnyOldName3
@AnyOldName3@lemmy.world
- Comment on Evil 3 days ago:
Yeah, looks like I’d remembered it backwards. It’s still an easily solvable problem by not using a load everything as whatever type you feel like function.
- Comment on Evil 4 days ago:
You’re allowed to charge before you give access to the software, but then can’t restrict the people you give it to giving it to more people. The beer licence sounds like those people would be on the hook for beer, too.
- Comment on Evil 4 days ago:
no
doesn’t becomefalse
, it becomesNorway
, 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.
- Comment on Evil 4 days ago:
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.
- Comment on Ewww 1 week ago:
I don’t think bacterial excretions count as farts, so it’s probably more like 800 million years worth of farts as that’s when animals started existing.
- Comment on The torque better not be too strong with this one 1 week ago:
I think it’s pretty likely that you’ve seen loads and never known they were different. The difference is small enough that you wouldn’t realise it was significant until you were told:
- Comment on The torque better not be too strong with this one 1 week ago:
Pozidriv is intentionally not backwards compatible, and one of the biggest problems it has is looking enough like Phillips that people assume it must be compatible, use a mismatched screw and driver, and strip a head.
- Comment on Binary search 2 weeks ago:
If this is Cambridge in the UK, both times I reported a bike theft, they confidently told me that they recover and return most stolen bikes. They absolutely do not recover or return most stolen bikes. Bike theft is so rarely sorted out by the police in Cambridge that nearly no one bothers reporting it as everyone knows their bike is gone forever, even if they parked it in good view of a CCTV camera and the frame was engraved with contact details all over.
- Comment on flouride 4 weeks ago:
Real men make chlorine pentafluoride anyway. We have no use for pathetic hypergolic oxidisers with only three fluorine atoms.
- Comment on Did something about mass produced ice cream change like 10 years ago? 5 weeks ago:
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.
- Comment on Row as Starmer suggests landlords and shareholders are not ‘working people’ 1 month ago:
A plumber or a sparky doesn’t just maintain one house, and if they’re just doing maintenance, probably work on hundreds of houses a year. Maintaining your own house takes a fraction of the time and effort of working a housing-related trade full time.
- Comment on Honey 1 month ago:
I’m referring to arguments I’ve had in person against native English speakers. If they were online arguments, the ability to use mobile data to show someone a citation wouldn’t be a new development.
- Comment on House Centipedes 2 months ago:
I have seen one of these in my life. I found it in my hair. I’m glad if already seen pictures of them on the Internet as the experience was already unpleasant enough when I could recognise what if found and knew it was harmless.
- Comment on Honey 2 months ago:
I’ve had an unreasonable number of arguments against people who seemed to think animal was a synonym for mammal. Thankfully, we’re now in an era where you can look it up and show them now mobile data is cheap, so it’s become a winnable argument.
- Comment on Unity cancels the stupid Runtime Fee 3 months ago:
It also doesn’t help that once you’ve paid the large fee for the Pro version, it doesn’t actually guarantee any support if you encounter a bug. You get access to a different issue tracker, and might get a Unity employee to confirm that the bug exists after a couple of months (and maybe close it as a duplicate, then reopen it as not a duplicate when the fix for the other bug doesn’t help, then reclose it as a duplicate when it turns out the fix for the other bug also doesn’t fix the other bug, and at the end of a multi-month process, there still being a bug with no indication an engineer’s looked at it).
Anyway, I’m glad to no longer be working for a company that uses Unity.
- Comment on Tesco loses UK legal battle over plans to ‘fire and rehire’ staff on lower pay 3 months ago:
Either:
- They’re in denial that this happens (arguably, it didn’t happen, as eventually Tesco lost, and they wouldn’t know about it in the three years Tesco was winning because The Telegraph/Mail etc. wouldn’t report on that).
- They think worse things would always happen under other systems (e.g. everyone would be a slave of the state and go to gulag if they complained about anything).
- They don’t see it as an inherent problem with capitalism (e.g. simply make doing this illegal, and refuse to let business lobby to reverse the decision, and everything’s fine).
- They think this is a good thing (e.g. the fired workers will be incentivised to work harder, then earn a payrise, and use the extra 10p an hour to start a competing multibillion pound supermarket chain).
- Comment on Blood Meal 3 months ago:
A rusty crowbar is also red because of the iron atoms that compose it, but it’s not mansplaining to take issue with someone telling people they’re eating crowbars.
- Comment on What the hell even is Diet Coke? 3 months ago:
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.
- Comment on What the hell even is Diet Coke? 3 months ago:
Aspartame is very mildly carcinogenic. An equivalent amount of sugar is much more carcinogenic, and is harmful in other ways, too. If you have to have a can of cola, diet is the healthier choice.
- Comment on Do any "thickening" products actually work to prevent hair loss/thinning? 4 months ago:
Minoxidil is produced in 5% concentration creams and foams, and that study is comparing rosemary oil to a 2% preparation. It’s impressive that rosemary oil is comparable at all, but obviously if you’re not taking a therapeutic dose of Monoxidil, it’s not going to work properly.
- Comment on Do any "thickening" products actually work to prevent hair loss/thinning? 4 months ago:
I use topical Minoxidil. It’s clearly made some difference, replacing a bald patch with a thin patch, and making my scalp noticeably warmer to the touch due to the extra bloodflow. It wasn’t the brilliant instantaneous wonderdrug some people told me it would be, nor totally ineffectual like others said, so I guess it’s something whose efficacy varies from person to person.
- Comment on Elden Ring Player to Sue FromSoftware Over High Game Difficulty 4 months ago:
You can’t really find out of you’ll get good enough to enjoy a soulslike without buying one and playing it for longer than the two hour refund period. For other products, you usually have something you can do about it or some way to try it first. You don’t need to buy a kayak to find out you don’t like kayaking as you can go for a kayaking lesson first and use the venue’s equipment. It’s understandable that people who hit a wall and can never get any enjoyment from a soulslike will be upset that it cost them just as much to find that out as it costs someone who’ll compete the game and have a great time.
Maybe it’s enough to just do the refund window based on progression rather than time.
- Comment on Anon finds a plot hole 4 months ago:
Regarding the elf slavery, there’s a guest post on Rowling’s blog (which she must at least have approved even though she didn’t write it) that makes the case that Hermione was wrong to attempt to liberate the elves because the elves enjoyed being slaves, and the point of that subplot was to demonstrate that it’s bad when people attempt to solve other people’s problems without a request for help and bad when people get offended on other people’s behalf. A normal person wouldn’t let something advocating for such a major misunderstanding of their work on their blog, especially if it was claiming they were pro-slavery.
Most people reading the books would interpret it as implying Hermione was right, but for someone who’s seen that blog post on Rowling’s site and thinks she read it before it was published and could have vetoed it, it’s not a leap to read it again and conclude that it was meant to be pro-slavery and that’s why the other main characters, who you’re usually supposed to identify with, make fun of Hermione.
On its own, it’s simplest to say it just wasn’t thought through, but when it’s part of a pattern of off-colour opinions, it’s harder to give the benefit of the doubt.
- Comment on Anon freezes time 5 months ago:
Installing hidden cameras in a public toilet is harmless by that definition as long as they never get discovered, but would still be highly immoral. I don’t think you’ve thought this through. People’s right to decide what happens to their body extends to things like who can see it rather than just who can physically touch it.
- Comment on No problems here 5 months ago:
Your spoiler tag isn’t working.
- Comment on Stay Mad 5 months ago:
A vote for neoliberals is a vote to not have fascism for four more years. America’s voting system doesn’t allow the never-have-fascism votes to be pooled with the delay-fascism votes, so unless there’s a decent chance for a mass swing of voters from delay-fascism to never-have-fascism, trying to encourage a small-scale swing only makes immediate fascism more likely by weakening the only thing with a chance to delay it.
If the plan is to try and encourage the Democrats to have primaries that actually have the power to move the party left, now is not the time to withhold a vote in protest as there’s a good chance that even if it did convince them, there’d never be another election that wasn’t rigged so they’d lose it no matter how popular they were.
- Comment on Anon reflects on e-sports 6 months ago:
Current-generation OLEDs aren’t worse than late-generation CRTs for burn-in, they’re just worse than LCDs.
- Comment on Garry Newman of Facepunch comments on the Nintendo takedown of Garry's Mod content 6 months ago:
You can lose trademarks, but this is a copyright issue. You don’t have to defend copyright to keep it.
- Comment on Mathematicians 6 months ago:
Nice to see Crotchless Pants (Mathematics) from a few days ago in the background www.smbc-comics.com/comic/mathematics-2
- Comment on [Serious] Why do so many people seem to hate veganism? 7 months ago:
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.