The algebra proving why "halving long side H and flipping maintains aspect ratio" implies a ratio of 1:sqrt(2): H/W = W/(H/2) (halving long side H and flipping maintains aspect ratio) = 2W/H (multiply numerator and…
That's a helpful tutorial, thanks.
Align with the rest of the system, when sqlite is used as a component in a system which mainly speaks json. Performance, when records are complex and usually not accessed. Ease, avoiding/postponing table design…
I got good use of the run-time type checking of typeguard [0] when I recently invoked it via its pytest plugin [2]. For all code visited in the test suite, you get a failing test whenever an actual type differs from an…
Firefox supports custom search engines, the most bang for the buck custom search engine must be https://duckduckgo.com/?q=%s with keyword being the letter d. Then you get all these 13000+ bangs without having to…
The author of that macro PEP [0] is the same Mark Shannon behind the speedup proposal under discussion. [0]: https://www.python.org/dev/peps/pep-0638/
The reason for magnetic field strength falling off as 1/r^3 is interesting: the biot-savart law says that magnetic field falls off as 1/r^2 from a magnetic source, but in reality sources tend to be better approximated…
> the properties of the hashes [g]it uses Git uses SHA-1, a hardened version since 2017, and are now doing per-repo upgrades to SHA-256 [0]. Lots of repos are presumably still on SHA-1 (and users on older versions of…
Since toast is discussed on HN: I remember this video [0] nicely explaining some nice engineering of an interesting toaster. [0]: https://www.youtube.com/watch?v=1OfxlSG6q5Y
Compact summaries are useful when revisiting something that was learnt before. Such a document might be more useful for mathematics than most subjects, since many have studied maths but stopped using it, and those…
And PEP 8 doesn't mention sorting the imports. There are even counterexamples which aren't alphabetically sorted. It does mention grouping though. Since Python imports can have side effects, the order can matter. But to…
See also: the paper "Why Most Published Research Findings Are False". Previously on HN: https://news.ycombinator.com/item?id=1825007
This was spotted on HN 3 weeks ago: https://github.com/schollz/croc
P(simultaneously within middle 50 % of n independent distributions) = 0.5^n = 2^(-n), like my parent comment says. But interestingly, every relevant comment here either got something wrong about the final frequency or…
0.9^9
Wayback Machine to the rescue: https://web.archive.org/web/20121023081714/https://kturtleco... I recommend adding bookmarklets for Wayback Machine: https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine...
> remember that deaf-blind people exist [... ...] able to understand language I got curious if/how deafblind people learn to communicate in the first place, if they are completely deafblind from birth. If humans can…
I read Chiang's Exhalation [0] prompted by your question. So much story in so few (6505) words! Great use of a crafted universe to tell a story relevant to us. That's the beauty of sci-fi as I understand it. Worth the…
This doesn't really get us closer to the speed of light, but we have broken lots of speed records in the last 50 years: https://en.wikipedia.org/wiki/List_of_vehicle_speed_records
> Firefox just doesn't have nearly the security credentials that Chrome does at the moment I think this claim deserves a justification. Not saying you're wrong but I'm interested in how to compare browser security.…
I would be interested in knowing how cyber warfare and cyber espionage are viewed from a perspective of diplomacy or power play between nations (or corporations). Does anyone know of interesting articles?
I agree that Deep Work is worth a read. Quite a few meaningful ideas in quite few pages. The end-of-day shutdown is one of the ideas that stuck in me. After a workday my mind is usually buzzing a bit too much for most…
This reminded me of last years "BrickerBot" malware [0] by grey-hat The Janit0r / The Doctor who bricked IoT devices with the stated purpose of preventing the same devices from being hacked by botnet-malware, which…
The light appears to not come from the inside: https://www.youtube.com/watch?v=Std3LfVx41c&t=33
This article [0] explains nicely the story of Claude Shannon et al trying to win at roulette. [0] http://nautil.us/issue/50/emergence/claude-shannon-the-las-v...
The algebra proving why "halving long side H and flipping maintains aspect ratio" implies a ratio of 1:sqrt(2): H/W = W/(H/2) (halving long side H and flipping maintains aspect ratio) = 2W/H (multiply numerator and…
That's a helpful tutorial, thanks.
Align with the rest of the system, when sqlite is used as a component in a system which mainly speaks json. Performance, when records are complex and usually not accessed. Ease, avoiding/postponing table design…
I got good use of the run-time type checking of typeguard [0] when I recently invoked it via its pytest plugin [2]. For all code visited in the test suite, you get a failing test whenever an actual type differs from an…
Firefox supports custom search engines, the most bang for the buck custom search engine must be https://duckduckgo.com/?q=%s with keyword being the letter d. Then you get all these 13000+ bangs without having to…
The author of that macro PEP [0] is the same Mark Shannon behind the speedup proposal under discussion. [0]: https://www.python.org/dev/peps/pep-0638/
The reason for magnetic field strength falling off as 1/r^3 is interesting: the biot-savart law says that magnetic field falls off as 1/r^2 from a magnetic source, but in reality sources tend to be better approximated…
> the properties of the hashes [g]it uses Git uses SHA-1, a hardened version since 2017, and are now doing per-repo upgrades to SHA-256 [0]. Lots of repos are presumably still on SHA-1 (and users on older versions of…
Since toast is discussed on HN: I remember this video [0] nicely explaining some nice engineering of an interesting toaster. [0]: https://www.youtube.com/watch?v=1OfxlSG6q5Y
Compact summaries are useful when revisiting something that was learnt before. Such a document might be more useful for mathematics than most subjects, since many have studied maths but stopped using it, and those…
And PEP 8 doesn't mention sorting the imports. There are even counterexamples which aren't alphabetically sorted. It does mention grouping though. Since Python imports can have side effects, the order can matter. But to…
See also: the paper "Why Most Published Research Findings Are False". Previously on HN: https://news.ycombinator.com/item?id=1825007
This was spotted on HN 3 weeks ago: https://github.com/schollz/croc
P(simultaneously within middle 50 % of n independent distributions) = 0.5^n = 2^(-n), like my parent comment says. But interestingly, every relevant comment here either got something wrong about the final frequency or…
0.9^9
Wayback Machine to the rescue: https://web.archive.org/web/20121023081714/https://kturtleco... I recommend adding bookmarklets for Wayback Machine: https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine...
> remember that deaf-blind people exist [... ...] able to understand language I got curious if/how deafblind people learn to communicate in the first place, if they are completely deafblind from birth. If humans can…
I read Chiang's Exhalation [0] prompted by your question. So much story in so few (6505) words! Great use of a crafted universe to tell a story relevant to us. That's the beauty of sci-fi as I understand it. Worth the…
This doesn't really get us closer to the speed of light, but we have broken lots of speed records in the last 50 years: https://en.wikipedia.org/wiki/List_of_vehicle_speed_records
> Firefox just doesn't have nearly the security credentials that Chrome does at the moment I think this claim deserves a justification. Not saying you're wrong but I'm interested in how to compare browser security.…
I would be interested in knowing how cyber warfare and cyber espionage are viewed from a perspective of diplomacy or power play between nations (or corporations). Does anyone know of interesting articles?
I agree that Deep Work is worth a read. Quite a few meaningful ideas in quite few pages. The end-of-day shutdown is one of the ideas that stuck in me. After a workday my mind is usually buzzing a bit too much for most…
This reminded me of last years "BrickerBot" malware [0] by grey-hat The Janit0r / The Doctor who bricked IoT devices with the stated purpose of preventing the same devices from being hacked by botnet-malware, which…
The light appears to not come from the inside: https://www.youtube.com/watch?v=Std3LfVx41c&t=33
This article [0] explains nicely the story of Claude Shannon et al trying to win at roulette. [0] http://nautil.us/issue/50/emergence/claude-shannon-the-las-v...