Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Thorrez
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
751.
▲
by
Thorrez
2y ago
Beat this: https://urlshortenersaresoyesterdaytrythisamazingsuperlongur...
752.
▲
by
Thorrez
2y ago
According to https://pkg.go.dev/iter#hdr-Single_Use_Iterators , most iterators are expected to be reusable, but some are single use. A function returning a single-use iterator is expected to document that with a comment. So
753.
▲
by
Thorrez
2y ago
Thanks! Slight correction: only 2 breaches say "provided by" with a source, but a ton of breaches say "provided to" HIBP with a source.
754.
▲
by
Thorrez
2y ago
Where on HIBP can I see the email of the submitter?
755.
▲
by
Thorrez
2y ago
That code has a race condition. One goroutine can modify an element of results at the same time a different goroutine is reading it. Running with `go run -race` detects the race. This can be fixed with a mutex. Now that we've got worki
756.
▲
by
Thorrez
2y ago
As soon as results[0] is ready he wants to print it. Then as soon as results[1] is read he wants to print it. Etc. Not waiting till the end to print everything, and not printing anything out of order.
757.
▲
by
Thorrez
2y ago
Chris wants to report the results in the same order as the inputs. So 25, 4, 16, 1, 64. Your code will report the results in an arbitrary order.
758.
▲
by
Thorrez
2y ago
>It is utterly clear that the random wait is not intrinsic to the logic - it was only added for demonstration to simulate varying duration of requests. I wasn't talking about the random wait at all. I was talking about for r
759.
▲
by
Thorrez
2y ago
I reply STOP (or whatever the capitalization is that the text asks for) to every political spam text I get that says "STOP to unsubscribe" or some such. I've been doing this for years. I got 7 political spam texts today. I do
760.
▲
by
Thorrez
2y ago
>1992 was 7 years before 2004 1992 was 12 years before 2004
761.
▲
by
Thorrez
2y ago
This will wait up to 1 second before showing a result when a result comes in. I'm pretty sure Chris doesn't want any waiting like that. This will also print some results multiple times. I think Chris wants to print each result onc
762.
▲
by
Thorrez
2y ago
Software has tons of bugs. A fraction of those bugs are security vulnerabilities. Any type of bug can be considered a defect, and thus can be considered to make the product defective. By using the terminology "defective" instead o
763.
▲
by
Thorrez
2y ago
I guess it depends on the definition of counterculture. 20% of Americans attend church every week. 57% of Americans seldom or never attend religious service. https://www.churchtrac.com/articles/the-state-of-church-atte.
764.
▲
by
Thorrez
2y ago
The page says $2,000.
765.
▲
by
Thorrez
2y ago
Maybe they meant 70 million pounds of trash.
766.
▲
by
Thorrez
2y ago
I don't think there's a phev F-150.
767.
▲
by
Thorrez
2y ago
Are you saying that the chevron deference elimination allows the courts to overrule congress? I don't think that's the case. I think the courts still can only overrule congress on constitutional issues, the same as before the chev
768.
▲
by
Thorrez
2y ago
> If the work you do after the defer has other side effects, you may have just gotten your application into an inconsistent state and it's very hard to see in code why this might be. Can you give an example case of how this could ha
769.
▲
by
Thorrez
2y ago
>Why would CEOs prefer buybacks to dividends? Because CEOs sit on tons of shares. Even if only some of those shares have vested, a CEO who uses this ruse to increase share prices can cash those shares out, borrow against the rest, and co
770.
▲
by
Thorrez
2y ago
>Say a company is worth a billion dollars and has issued a million shares. Each of those shares is worth $1,000 (because $1,000 times one million is $1 billion). The company uses its profits to buy half of those shares, so now the remain
771.
▲
by
Thorrez
2y ago
That wasn't the password of the zip file that John cracked. TIMBOBIMBO was the password of a file that was inside the zip file, specifically a program. The program prompted for that password before it would continue running. The blog p
772.
▲
by
Thorrez
2y ago
>population that is to this date increasing Yes, but it will peak then fall[1]. The number of babies born per year has already peaked and is falling[2]. [1] https://ourworldindata.org/un-population-2024-revision [2] htt
773.
▲
by
Thorrez
2y ago
>No wealth is 'earned'. What about the crazy hours that doctors often work?
774.
▲
by
Thorrez
2y ago
We're talking about what happens when someone dies. The estate tax already exists. Is that a violation of the right?
775.
▲
by
Thorrez
2y ago
>encrypted messaging app An app that's not e2e encrypted by default, doesn't support e2e encrypted group chats, and is annoying to enable e2e encrypted messaging in. https://blog.cryptographyengineering.com/2024
776.
▲
by
Thorrez
2y ago
Can it guarantee 1-1? Doesn't Javascript allow looking up fields using a string name? That string could be computed in a complex manner.
777.
▲
by
Thorrez
2y ago
Reminds me of the TLS 1.3 upgrade and GREASE. https://blog.cloudflare.com/why-tls-1-3-isnt-in-browsers-yet...
778.
▲
by
Thorrez
2y ago
A couple suggestions for improving the code: * Currently sendChanChan() takes 2 params: a 4chan and a 3chan. I think it can be simplified by just taking a 3chan. The send on the 4chan can be done before calling sendChanChan(). * Why does th
779.
▲
by
Thorrez
2y ago
Can't channels deadlock too? Sending or receiving on a channel will block by default until the other side receives/sends the value if the channel is unbuffered, or it's buffered but the buffer is full. You have to write extra
780.
▲
by
Thorrez
2y ago
I agree with what you're saying, but I think there's been a misunderstanding. The people in the thread who are saying a million or a couple million isn't a lot are talking about dollars of total savings. You're talking a
More ›