Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jwilk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
77 ms
·
931.
▲
by
jwilk
4y ago
https://twitter.com/dalkescientific/status/14579403096362721... has a few examples, most of them from the 2.X era. I doubt there's much more. I've been using something similar to exec '' #
932.
▲
by
jwilk
4y ago
You missed 2.6: b-strings
933.
▲
by
jwilk
4y ago
Beware that HTTP::Tiny doesn't verify TLS certs by default.
934.
▲
by
jwilk
4y ago
They make the same mistake earlier on: > And associated to the number 55 (5 × 11) would be all multiples of 55 whose smallest prime factor is 11 (therefore excluding all multiples of 2, 3, 5 and 7).
935.
▲
by
jwilk
4y ago
I tried to implement the inline: approach, but it didn't go very well: https://github.com/jwilk/abmagick/issues/1
936.
▲
by
jwilk
4y ago
https://docs.python.org/3/reference/compound_stmts.html " Only the [indented] form of a suite can contain nested compound statements; the following is illegal, mostly because it wouldn’t be clear to which if
937.
▲
by
jwilk
4y ago
One minor benefit of a compile-time version check, is that when the check fails, you're not left with useless .pyc files. Besides, __init__.py doesn't always exist.
938.
▲
by
jwilk
4y ago
https://www.ladbible.com/news/news-1997-magazine-predicted-1... includes text version of the list.
939.
▲
by
jwilk
4y ago
From the FAQ < https://news.ycombinator.com/newsfaq.html >: > It's ok to post stories from sites with paywalls that have workarounds. > In comments, it's ok to ask how to read an article and to help o
940.
▲
by
jwilk
4y ago
Microwave ovens are not as good as electric kettles, but still better than gas stoves. https://www.nytimes.com/2019/05/29/climate/nyt-climate-newsl... "an overall efficiency [of a gas stove was] onl
941.
▲
by
jwilk
4y ago
See https://github.com/jwilk/python-syntax-errors if you need curses for other Python versions.
942.
▲
by
jwilk
4y ago
Documented here: https://docs.github.com/en/account-and-profile/setting-up-an...
943.
▲
by
jwilk
4y ago
Hah, Cunningham's Law strikes again. Thanks! In my excuse, I developed this first for GraphicsMagick, which doesn't support "inline:".
944.
▲
by
jwilk
4y ago
s(n) = • n if n mod 4 = 0, • 1 if n mod 4 = 1, • n + 1 if n mod 4 = 2, • 0 if n mod 4 = 3. Or alternatively: • s(4n) = 4n • s(4n + 1) = 1 • s(4n + 2) = 4n + 3 • s(4n + 3) = 0 Proof by induction: • s(4n + 1) = s(4n) ⊕ (4n + 1) = 4n ⊕ (4n + 1
945.
▲
by
jwilk
4y ago
Charitable speculation: someone read the article earlier, liked it and remembered the title; so when a submission with the same title appeared on HN, they upvoted it without looking at the URL.
946.
▲
by
jwilk
4y ago
Even with wraparound semantics, you can't compute n(n+1)/2 naively, because (n(n+1) mod N) / 2 ≠ n(n+1)/2 mod N. So actually not knowing the formula is kinda advantageous, because computing the sum as 1 + 2 + … + n (with
947.
▲
by
jwilk
4y ago
https://twitter.com/patdennis/status/1518637225789042688
948.
▲
by
jwilk
4y ago
I see a great need for /dev/yes.
949.
▲
by
jwilk
4y ago
No idea, but the link was there back in 2020: https://web.archive.org/web/20200122231049/https://old.reddi...
950.
▲
by
jwilk
4y ago
From the FAQ < https://news.ycombinator.com/newsfaq.html >: > Are reposts ok? > If a story has not had significant attention in the last year or so, a small number of reposts is ok.
951.
▲
by
jwilk
4y ago
> Some years ago an ethical hacker hacked me. How did they do that?
952.
▲
by
jwilk
4y ago
The real reason for what?
953.
▲
by
jwilk
4y ago
What species of cat is that?
954.
▲
by
jwilk
4y ago
The existence of the website is documented in the RFC: https://datatracker.ietf.org/doc/html/rfc6761#section-6.5 > All example names are registered in perpetuity to IANA: […] > IANA currently maintains a
955.
▲
by
jwilk
4y ago
Reminds me of this classic: http://bash.org/?835030
956.
▲
by
jwilk
4y ago
The search engine discussed on HN: https://news.ycombinator.com/item?id=28550764 (September 2021, 725 comments)
957.
▲
by
jwilk
4y ago
The name "resync" is very generic and misleading (because the program doesn't sync anything).
958.
▲
by
jwilk
4y ago
This variant is even more confusing, because I'd rather get the stuffed dinosaur. :-P
959.
▲
by
jwilk
4y ago
FWIW, Git (since v2.13) uses an SHA-1 implementation that detects known collision attacks.
960.
▲
by
jwilk
4y ago
This doesn't help my intuition at all.
More ›