2,264 karma · joined Jun 29, 2011 (15y ago) · 560 submissions
comment 2w ago · link · parent
Just for fun, here's a Python program that prints the md5 hash of its own source code
~> cat md5quine.py
from hashlib import md5; c = b'from hashlib import md5; c = %r; print(md5(c %% c).hexdigest())'; print(md5(c % c).hexdigest())
~> md5sum md5quine.py
ccccf89ddfe2bbca3298fa3b908324fd quine.py
~> python md5quine.py
ccccf89ddfe2bbca3298fa3b908324fd2.
Securing Internet-Critical Software: How We Could Have Backdoored Bash(hacktron.ai ↗)
4 points · by kmm · 3w ago · discuss
comment 3mo ago · link · parent
comment 6mo ago · link · parent
comment 7mo ago · link · parent
The system used for small numbers is probably a broad extension of an earlier dual number for nouns, i.e. something like a plural but just for two things. For (some) male nouns, the nominative dual ending was the same as the genitive singular, which was then extended to all other nouns even when this correspondence didn't hold, and from just 2 things to 3 and 4 as well. Nowadays the dual has been completely forgotten for nouns, and the only interpretation of the rule is that it's a genitive singular.
comment 7mo ago · link · parent
1: https://en.wikipedia.org/wiki/Ingvaeonic_nasal_spirant_law
comment 8mo ago · link · parent
I understand the argument for having an early sunset, clearly having sunlight when you're awake has an effect. But who cares about having an early high noon, when there's still two thirds of the day left at best?
comment 9mo ago · link · parent
To recover the fact that 365 % 7 == 1 from the given formula, one can notice that the sum of the coefficients 5+4+6=15, which modulo 7 is 1.
11.
Ulster County "I Voted" sticker(en.wikipedia.org ↗)
15 points · by kmm · 9mo ago · discuss
comment 9mo ago · link · parent
* Yeah, I read the article. Regardless of the IEC's noble attempt, in all my years of working with people and computers I've never heard anyone actually pronounce MiB (or write it out in full) as "mebibyte".
13.
PC Floppy Copy Protection: Vault Prolok(martypc.blogspot.com ↗)
91 points · by kmm · 9mo ago · 16 comments
comment 10mo ago · link · parent
Imagine you're standing on a randomly chosen vertex on the ring which is not right next to the starting position. At some point, the ladybug will be guaranteed to appear either to the left of you or to the right of you for the first time, and this cannot happen as the second-to-last step, because then the ladybug would have had to have visited both of your neighbors. At this point, for your vertex to be the one last visited, the ladybug would have to turn around and loop all the way around the circle to your other neighbor. But this means the previous trajectory of the ladybug and which vertices were visited before is irrelevant, as the ladybug will have to pass by them anyway. By symmetry, this situation is completely equivalent to being at the very start of the process on one of the vertices neighboring the starting position. Hence any randomly chosen vertex not next to the starting position has to have the same probability of being visited last as those two vertices. Hence all vertices have to have to same probability of being visited last.
comment 10mo ago · link · parent
In the general case of n intermediate occasional liars, the odds of the final result being accurate goes to 50% as n grows large, which makes sense, as it will have no correlation anymore to the initial input.
comment 11mo ago · link · parent
The kernel has a different error message: "No working init found. Try passing init= option to kernel."[2]
1: https://github.com/archlinux/mkinitcpio/blob/2dc9e12814aafcc... 2: https://github.com/torvalds/linux/blob/d358e5254674b70f34c84...
comment 12mo ago · link · parent
A flyby of both Jupiter and Saturn can be done every two decades or so (the synodic period is 19.6 years)
comment 1y ago · link · parent
Perhaps the route being so busy is the cause of the connectivity issues, but it's still baffling to me how bad it is, given that the amount of mobile devices trying to connect must be very predictable.
comment 1y ago · link · parent
Plugging 12 years and 18e9 solar masses gives about 2e12 kilometers, or roughly a fifth of a lightyear. This also means the smaller black hole is zipping around the bigger one at around 6% of the speed of light, which is low enough that the Newtonian approximation is probably reasonable accurate (at least to give a rough idea of how large the distances must be).
comment 1y ago · link · parent
Though I have to admit, when I was still in academia, whenever I saw a beautiful figure or formatting in a preprint, I'd often try to take some inspiration from the source for my own work, occasionally learning a new neat trick or package.
comment 1y ago · link · parent
25.
X explains Z% of the variance in Y(lesswrong.com ↗)
5 points · by kmm · 1y ago · discuss
comment 1y ago · link · parent
So for our bodies, planets, solar systems, even galaxies and clusters, because these are bound (either electromagnetically or gravitationally), the influence of the expansion of the universe on them is not just negligible, it's non-existent.
It's a little different when wo do include dark energy and other mechanisms more complicated than a simple matter or light content. For your intuition, you can think of this as a constant omnipresent negative pressure. We have no idea how it works on scales smaller than those of the observable universe, but if we imagine it works the same on every scale, then it's an extremely tiny force constantly pulling your body apart.
comment 1y ago · link · parent
I don't think they were stupid per se, nor malicious, but perhaps cavalier in pushing a result with such unexpected consequences without getting a consult.
1: https://en.wikipedia.org/wiki/Quantum_field_theory_in_curved...
comment 1y ago · link · parent
Apart from the advantage of instant preparation, to my undiscerning palate instant coffee has got all the qualities and taste of coffee I enjoy, and not being a coffee-connoisseur, I can't be disappointed by its apparent blandness or one-dimensionality.