<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: spappal</title><link>https://news.ycombinator.com/user?id=spappal</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 11 Sep 2026 16:06:33 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=spappal" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by spappal in "iPhone Duo"]]></title><description><![CDATA[
<p>The algebra proving why "halving long side H and flipping maintains aspect ratio" implies a ratio of 1:sqrt(2):<p><pre><code>    H/W = W/(H/2)       (halving long side H and flipping maintains aspect ratio)
        = 2W/H          (multiply numerator and denominator by 2)
    H²  = 2W²           (multiply both sides by HW)
    H   = √2·W ≈ 1.41 W (take the positive square root; H, W > 0)</code></pre></p>
]]></description><pubDate>Wed, 09 Sep 2026 22:17:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=49635308</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=49635308</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49635308</guid></item><item><title><![CDATA[New comment by spappal in "FFmpeg 101 (2024)"]]></title><description><![CDATA[
<p>That's a helpful tutorial, thanks.</p>
]]></description><pubDate>Sun, 22 Mar 2026 21:59:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=47482650</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=47482650</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47482650</guid></item><item><title><![CDATA[New comment by spappal in "JSONB has landed"]]></title><description><![CDATA[
<p>Align with the rest of the system, when sqlite is used as a component in a system which mainly speaks json.<p>Performance, when records are complex and usually not accessed.<p>Ease, avoiding/postponing table design decisions.<p>Flexibility, for one of many corner-cases (since sqlite is a very broad tool).<p>Incremental enhancement, e.g. when starting with sqlite as replacement to an ndjson-file and incrementally taking advantage of transactions and indexes on fields [1,2,3].<p>For example, several of these could apply when doing structured logging to a sqlite database.<p><pre><code>    [1]: https://www.sqlite.org/expridx.html
    [2]: https://www.sqlite.org/gencol.html
    [3]: https://antonz.org/json-virtual-columns/
    See also: https://www.sqlite.org/json1.html</code></pre></p>
]]></description><pubDate>Wed, 06 Dec 2023 11:25:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=38542540</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=38542540</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38542540</guid></item><item><title><![CDATA[New comment by spappal in "Boring Python: Code quality"]]></title><description><![CDATA[
<p>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 annotated type.<p>[0]: <a href="https://github.com/agronholm/typeguard/">https://github.com/agronholm/typeguard/</a><p>[1]: <a href="https://typeguard.readthedocs.io/en/latest/userguide.html#using-the-pytest-plugin" rel="nofollow">https://typeguard.readthedocs.io/en/latest/userguide.html#us...</a></p>
]]></description><pubDate>Wed, 21 Dec 2022 00:16:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=34074910</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=34074910</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34074910</guid></item><item><title><![CDATA[New comment by spappal in "Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz"]]></title><description><![CDATA[
<p>Firefox supports custom search engines, the most bang for the buck custom search engine must be <a href="https://duckduckgo.com/?q=%s" rel="nofollow">https://duckduckgo.com/?q=%s</a> with keyword being the letter d. Then you get all these 13000+ bangs without having to configure the custom search engines. E.g. write "d !drive term" in url bar. And "d !w hacker news" sends you directly to <a href="https://en.wikipedia.org/wiki/Hacker_News" rel="nofollow">https://en.wikipedia.org/wiki/Hacker_News</a></p>
]]></description><pubDate>Wed, 02 Dec 2020 18:54:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=25279909</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=25279909</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25279909</guid></item><item><title><![CDATA[New comment by spappal in "Implementation plan for speeding up CPython"]]></title><description><![CDATA[
<p>The author of that macro PEP [0] is the same Mark Shannon behind the speedup proposal under discussion.<p>[0]: <a href="https://www.python.org/dev/peps/pep-0638/" rel="nofollow">https://www.python.org/dev/peps/pep-0638/</a></p>
]]></description><pubDate>Wed, 21 Oct 2020 09:14:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=24846073</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=24846073</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24846073</guid></item><item><title><![CDATA[New comment by spappal in "iPhone 12 and iPhone 12 Pro"]]></title><description><![CDATA[
<p>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 by magnetic dipoles than magnetic monopoles. A "north pole" is always accompanied by a "south pole", and at distance there are "interaction effects" such that a part of the field strength is "canceled out".<p><a href="https://en.wikipedia.org/wiki/Magnetic_dipole" rel="nofollow">https://en.wikipedia.org/wiki/Magnetic_dipole</a><p><a href="https://en.wikipedia.org/wiki/Magnetic_monopole" rel="nofollow">https://en.wikipedia.org/wiki/Magnetic_monopole</a></p>
]]></description><pubDate>Thu, 15 Oct 2020 00:42:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=24783497</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=24783497</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24783497</guid></item><item><title><![CDATA[New comment by spappal in "Array Programming with NumPy"]]></title><description><![CDATA[
<p>> the properties of the hashes [g]it uses<p>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 git).<p>As of 2020, chosen-prefix attacks against SHA-1 are now practical. [verbatim from 1] But I don't think second preimage attacks are practical yet.<p>Linus Torvalds argued in 2006 basically that it's irrelevant whether git's hash function is second preimage resistant. Selective quoting:<p>> remember that the git model is that you should primarily trust only your _own_ repository [2]<p>> [a malicious] collision is entirely a non-issue: you'll get a "bad" repository that is different from what the attacker intended, but since you'll never actually use his colliding object, it's _literally_ no different from the attacker just not having found a collision at all [2]<p>All that is just to say: git originally chose its hashes for the above mentioned "git model", thus didn't 100 % care about second preimage resistance. For your suggested search engine, depending on how the database is collected you might not be able to trust "your own repository" (if it's crowdsourced I could register another codebase with the same hash as Linux). A second preimage resistant hash function would be a requirement for the suggested use case.<p>[0]: <a href="https://git-scm.com/docs/hash-function-transition/" rel="nofollow">https://git-scm.com/docs/hash-function-transition/</a><p>[1]: <a href="https://en.wikipedia.org/wiki/SHA-1#cite_ref-8" rel="nofollow">https://en.wikipedia.org/wiki/SHA-1#cite_ref-8</a><p>[2]: <a href="https://marc.info/?l=git&m=115678778717621&w=2" rel="nofollow">https://marc.info/?l=git&m=115678778717621&w=2</a></p>
]]></description><pubDate>Fri, 18 Sep 2020 22:56:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=24522659</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=24522659</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24522659</guid></item><item><title><![CDATA[New comment by spappal in "Ask and Show HN: Ever coded for love? Willing to share?"]]></title><description><![CDATA[
<p>Since toast is discussed on HN: I remember this video [0] nicely explaining some nice engineering of an interesting toaster.<p>[0]: <a href="https://www.youtube.com/watch?v=1OfxlSG6q5Y" rel="nofollow">https://www.youtube.com/watch?v=1OfxlSG6q5Y</a></p>
]]></description><pubDate>Sun, 09 Aug 2020 21:13:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=24102964</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=24102964</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24102964</guid></item><item><title><![CDATA[New comment by spappal in "Some Fundamental Theorems in Mathematics (2019) [pdf]"]]></title><description><![CDATA[
<p>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 teachings are generally still true and relevant.<p>The doc would be at least 20 % more useful to me if the pdf had a table of contents. Should be easy to include assuming that it was written with latex. Opinion: when writing a lengthy latex document, the extra 0.5 % of work required to add automated pdf metadata (table of contents, clickable references) has outsized usability effects.<p>I stumbled upon typos:<p>* "Basel problem formula": pi should be squared.<p>* The "more general" statement related to Bayes theorem lacks a right parenthesis.</p>
]]></description><pubDate>Sat, 08 Aug 2020 14:06:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=24091696</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=24091696</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24091696</guid></item><item><title><![CDATA[New comment by spappal in "Guietta – Python module to create simple GUIs"]]></title><description><![CDATA[
<p>And PEP 8 doesn't mention sorting the imports. There are even counterexamples which aren't alphabetically sorted. It does mention grouping though.<p>Since Python imports can have side effects, the order can matter. But to the extent that it doesn't break anything, alphabetically sorted groups seems deterministic and readable.<p>I think this might be the most popular implementation for auto-sorting: <a href="https://pypi.org/project/isort/" rel="nofollow">https://pypi.org/project/isort/</a></p>
]]></description><pubDate>Sat, 04 Jul 2020 16:33:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=23733337</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=23733337</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23733337</guid></item><item><title><![CDATA[New comment by spappal in "Facial Recognition Leads To False Arrest Of Black Man In Detroit"]]></title><description><![CDATA[
<p>See also: the paper "Why Most Published Research Findings Are False".
Previously on HN: <a href="https://news.ycombinator.com/item?id=1825007" rel="nofollow">https://news.ycombinator.com/item?id=1825007</a></p>
]]></description><pubDate>Thu, 25 Jun 2020 20:56:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=23645611</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=23645611</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23645611</guid></item><item><title><![CDATA[New comment by spappal in "Sharedrop – Easy P2P file transfer powered by WebRTC"]]></title><description><![CDATA[
<p>This was spotted on HN 3 weeks ago: <a href="https://github.com/schollz/croc" rel="nofollow">https://github.com/schollz/croc</a></p>
]]></description><pubDate>Thu, 04 Jun 2020 10:10:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=23414707</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=23414707</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23414707</guid></item><item><title><![CDATA[New comment by spappal in "When U.S. air force discovered the flaw of averages (2016)"]]></title><description><![CDATA[
<p>P(simultaneously within middle 50 % of n independent distributions) = 0.5^n = 2^(-n), like my parent comment says.<p>But interestingly, every relevant comment here either got something wrong about the final frequency or percentage, or corrected the wrong thing. (Parent comment, grandparent, 2 aunts and 1 cousin.)<p>0.5^10 = 2^-10 = 1/(2^10) = 1/1024 [i.e. exactly 1 person per 1024] ~= 0.00097656 ~= 0.09766 %.</p>
]]></description><pubDate>Fri, 24 Apr 2020 11:38:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=22966893</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=22966893</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22966893</guid></item><item><title><![CDATA[New comment by spappal in "When U.S. air force discovered the flaw of averages (2016)"]]></title><description><![CDATA[
<p>0.9^9</p>
]]></description><pubDate>Fri, 24 Apr 2020 11:35:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=22966880</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=22966880</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22966880</guid></item><item><title><![CDATA[New comment by spappal in "Ask HN: What is the most beautiful piece of code you've ever read?"]]></title><description><![CDATA[
<p>Wayback Machine to the rescue: <a href="https://web.archive.org/web/20121023081714/https://kturtlecommands.blogspot.com/" rel="nofollow">https://web.archive.org/web/20121023081714/https://kturtleco...</a><p>I recommend adding bookmarklets for Wayback Machine: <a href="https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine#JavaScript_bookmarklet" rel="nofollow">https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine...</a></p>
]]></description><pubDate>Mon, 28 Oct 2019 13:53:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=21376978</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=21376978</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21376978</guid></item><item><title><![CDATA[New comment by spappal in "Google T5 scores 88.9 on SuperGLUE Benchmark, approaching human baseline"]]></title><description><![CDATA[
<p>> remember that deaf-blind people exist [... ...] able to understand language<p>I got curious if/how deafblind people learn to communicate in the first place, if they are completely deafblind from birth. If humans can learn not just communication but language without either vision or hearing, that seems to suggest either extreme adaptability or language learning being quite decoupled from vision and hearing. From an evolutionary standpoint, I imagine that both deafness and blindness are probably uncommon enough that language learning could have explicit dependencies on both hearing and vision.<p>I found an old-looking video about communication with deafblind people. At the linked timestamp is a woman who is deafblind since age 2.<p><a href="https://youtu.be/usaf3bVVvjY?t=840" rel="nofollow">https://youtu.be/usaf3bVVvjY?t=840</a></p>
]]></description><pubDate>Sat, 26 Oct 2019 13:06:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=21363411</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=21363411</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21363411</guid></item><item><title><![CDATA[New comment by spappal in "The Secret History of Dune"]]></title><description><![CDATA[
<p>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 30 minutes.<p>[0]: <a href="http://www.nightshadebooks.com/Downloads/Exhalation%20-%20Ted%20Chiang.html" rel="nofollow">http://www.nightshadebooks.com/Downloads/Exhalation%20-%20Te...</a></p>
]]></description><pubDate>Fri, 06 Sep 2019 18:48:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=20898589</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=20898589</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20898589</guid></item><item><title><![CDATA[New comment by spappal in "John Carmack on the Joe Rogan Experience [video]"]]></title><description><![CDATA[
<p>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:<p><a href="https://en.wikipedia.org/wiki/List_of_vehicle_speed_records" rel="nofollow">https://en.wikipedia.org/wiki/List_of_vehicle_speed_records</a></p>
]]></description><pubDate>Sat, 31 Aug 2019 12:06:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=20845820</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=20845820</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20845820</guid></item><item><title><![CDATA[New comment by spappal in "Give Firefox a chance"]]></title><description><![CDATA[
<p>> Firefox just doesn't have nearly the security credentials that Chrome does at the moment<p>I think this claim deserves a justification. Not saying you're wrong but I'm interested in how to compare browser security.<p>(Counteranecdote: the HN-popular article [0] which explained the Firefox zero-day, mentioned in it's last paragraph a Chrome zero-day from March 2019.)<p>[0] <a href="https://www.zdnet.com/article/mozilla-patches-firefox-zero-day-abused-in-the-wild/" rel="nofollow">https://www.zdnet.com/article/mozilla-patches-firefox-zero-d...</a></p>
]]></description><pubDate>Sun, 23 Jun 2019 16:23:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=20256605</link><dc:creator>spappal</dc:creator><comments>https://news.ycombinator.com/item?id=20256605</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20256605</guid></item></channel></rss>