A long but very interesting and scary essay:
Meanwhile, in a different fandom...
Related, I just ordered yet another set up cabinet keys (with a ventilation key) so I don't have to fetch them from my car if it crosses my mind to bleed the radiators in the middle of the night again. There's also a set in my drawers at work (which I'll need the moment I took them home and forget to bring them back...)
It wasn't getting warm here any more so I vented the radiators in my flat. Afterwards pressure was down to 100 mbar so I refilled the heating circuit with what must have been five liters of water. Where did all the water go?! I really have to let someone check the pressure valve. But for now it's warm and cozy again!
@uvok or GPS navigation apps trying to pronounce street names of an American map with a German pronunciation...
Wie kann man eigentlich Mischbrot backen, das beim Discounter dann für 59 ct/500g im Regal liegt? https://www.augsburger-allgemeine.de/augsburg-land/Grossbaecker-fluechtet-unter-den-Schutzschirm-id52182056.html - oh, kann man auf Dauer nicht. Na sowas.
I just spent hours searching for the mobile phone with the T-Mobile USA SIM. I knew for sure I unpacked it from the laptop bag after Anthrocon and put it on the shelf where it belongs. But it wasn't there. Looked everywhere, and on the shelf again and again. Nope. Hours later, glanced another time over the shelf, and there it was, in plain sight. Is someone gaslighting me or something?
I finally found out that the maximum JPEG dimensions for my car stereo are 640x480 pixels - the Pioneer AVH-X2600BT (and related) will only show an error message for anything larger. The physical aspect ratio of the display is approximately 3:2, so a 4:3 picture will be stretched horizontally. 🤦♂️
@uvok Funny enough, if you're doing the same with shorts it may even return the value you expected. That's because at least gcc will convert the shorts to ints but mask out the upper 16 bits during the division and mask the sign bit back in afterwards. Which has it's own surprises.
Consequently, the 32 bit arithmetic version may return the expected value if the compiler creates similar code for 64 bit width ints. Just don't mix unsigned and signed ints.
@uvok because what C really does is: due to the divisor being unsigned it casts the numerator -60000 to the unsigned value 2^32-6000 and divides that by 60. Well, at least on CPUs with 2-complement integers. What you want is (int) -(6000/(unsigned)60).
@uvok Nein. Du bist 2004, aber sowas von. *runs*
I'm still blogging - not as much as I used to, admittedly. Today I blogged about a lightweight fursuit body dryer: https://woelfisch.de/blog/a-lightweight-fursuit-body-dryer https://mastodon.social/media/2nS0TQ4LVi8XWM2AGrI
@uvok Wanna read something scary? setjmp(3)
@uvok If it's just three of those, sure.
Otherwise (if the language supports that) I'd store the pointers/references to fun1 ... funn in an array and iteratare over that (fun_ptr holding the current pointer), with the if(fun_ptr()) block doing the cleanup and break out of the loop if true.
But it really depends on circumstances and language.
And besides, "break" is an implicit goto. Or anything else ending a loop. Or branches in general.
Linux geek, photographer, puppeteer and radio amateur
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!