297 karma · joined Dec 23, 2025 (11mo ago) · 130 submissions
comment 4d ago · link · parent
The man page is quite long, use "screen -R <appropriate name" to create the session or reconnect to it, and (IIRC) CTRL-A D to exit screen without closing the session.
comment 5d ago · link · parent
You don't protect against that with software, but with careful supply-chain control, a faraday cage, and an armed guard who detains anyone attempting something funny.
comment 1w ago · link · parent
ADD transaction-balance TO total-balance.
Is readable to a layman whereas this isn’t:
total-balance += transaction-balance
Or even worse for someone who learned algebra but not programming (this looks like an equation, and transaction-balance is therefore equal to zero):
total-balance = total-balance + transaction-balance
[1] https://stackoverflow.com/questions/6760685/what-is-the-best...
comment 2w ago · link · parent
Example of a research paper using it: https://www.researchgate.net/publication/290224766_Investiga...
comment 3w ago · link · parent
Modifying a variable that is read by another thread needs special care in all multithreaded languages I know. If you don't use a synchronization primitive to tell the other thread "hey, this thing here may have changed, read it again from memory"; the other thread is free to use its old value for as long as it whishes.
comment 1mo ago · link · parent
My mental model of it is kinda reversed. The maths assign a specific, deterministic state to each electron between each measurement. However, the "left" state is equal to "(up + down) / sqrt(2)". It then follows that when we measure an electron that is in the "left" state along the vertical direction, we get 50% up and 50% down: the probabilistic behavior happens when measuring, which "forces" an electron that was in the "left" state to become either "up" or "down".
I agree though that it would be less frustrating if there was some property of the electrons that would allow to predict in which state it'll collapse.
comment 1mo ago · link · parent
Measure the spin of electrons in direction X (that's done with a weirdly shaped magnet). You'll get either +1 or -1 in a conveniently chosen unit system. That's already weird, you'll never measure +0.5 for example. Keep only the +1 electrons. You can measure them again and again, you'll always get +1 in the X direction.
Now measure those electrons in the Y direction, you'll also get either +1 or -1.
But now, if you measure in the X direction again, you'll get +1 or -1 with 50% probability; although before measuring in the Y direction, these electrons always had spin +1 in the X direction.
comment 1mo ago · link · parent
Models are simplifications/approximations made on purpose, as in "I know this is wrong on some level, but it's close enough for my use case", or "this makes the maths solvable".
comment 1mo ago · link · parent
In France for example, voting happens on a specific day with transparent ballot boxes, with the counting happening in the polling station (you may stay for the whole day in your polling station if you want to oversee the whole process). Yes this is problematic for voters in foreign countries, because they need to go to the embassy to vote, but the voting protocols chose transparency over practicality.
IIRC, deployed military get a polling station in their military base. A voter may also designate someone in the same polling station as theirs to vote in their place.
comment 1mo ago · link · parent
As a parallel, for a regular clock, you'd measure and compute the uncertainties of:
- The distance between the axis of rotation and the center of mass of the pendulum,
- The local acceleration of gravity.
And deduce the pendulum period and its uncertainty by calculus.
In that case I'm not sure you can build (and measure) a pendulum that's more precise than a previous realization of the second (because the meter is defined from the speed of light and the second, and gravimeters probably depend on the definition of the second too).
That's why the definition of base units is carefully chosen to not depend on previous realization. IIRC time is the most fundamental of base units, because other base units depend on it.
comment 1mo ago · link · parent
In Europe though, where aedes aegypti didn't exist 20 years ago, it's probably the other way around: what did the introduction of this new species damage? (apart from making the summer unbearable outside if any of your neighbour isn't very strict with standing water elimination)
comment 2mo ago · link · parent
I blame the low cost of iteration in the software world (even lower now with LLMs).
comment 2mo ago · link · parent
The mold manufacturer will ignore this part of the drawing, and tell their machine "follow the curve that's in the production file, with tool X at speed Y etc".