Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
181.
▲
by
sltkr
1y ago
Even the ones used live, why couldn't/wouldn't they run some type of headless browser with Javascript enabled, rather than just making an HTTP-request and looking at the HTML code?
182.
▲
by
sltkr
1y ago
Yes, that API is actually great, but the problem with (s)scanf() is that reading an invalid value is undefined behavior. So you can't use it if you don't already know the result fits in &value, which is exactly the situation w
183.
▲
by
sltkr
1y ago
Might want to fix the link to your Youtube channel...
184.
▲
by
sltkr
1y ago
It's in the Google index, not on Reddit itself. For example: https://www.google.com/search?q=site%3Areddit.com+inurl:?tl=... ...will show you posts that have been translated into Italian, most of which were originally
185.
▲
by
sltkr
1y ago
> The top of the Washington monument is capped with aluminum. Interesting. I was curious how large and expensive this was. Apparently the tip weighed only 100 ounce, at a time the price was around $1.10 per ounce. Translating to 2025 dol
186.
▲
by
sltkr
1y ago
It crashed for me: Uncaught TypeError: Cannot read properties of null (reading 'type') at $80b91fc9d2f468ec$export$4abc8fab4139dfcd (index.e2b13a6c.js:1:406898) at $c692b767326c99ec$var$PieceHandler.getMoveab
187.
▲
by
sltkr
1y ago
But if anything, those rules benefit ChatGPT: it can remember ~all of Wikipedia and translate ~every language on Earth, while a human would need access to online services for that. If anything, I'd think allowing looking stuff up would
188.
▲
by
sltkr
1y ago
Gilbert's essay wasn't limited to graphical adventure games.
189.
▲
by
sltkr
1y ago
Which 3 books are you talking about? I can only find 1 on Amazon (and it has a grand total of 12 reviews, so... you know, not exactly a best seller). Frankly it's a bit suspicious how defensive you are of this author, and combined with
190.
▲
by
sltkr
1y ago
I'm not sure who this article is for, but I think it doesn't strike at the heart of the topic. Half of the article is devoted to closures, but closures aren't essential for decorators. And the __closure__ attribute is an impl
191.
▲
by
sltkr
2y ago
As far as I can tell, the original tab isn't notified when its lock is stolen. So again, how would the original tab be notified?
192.
▲
by
sltkr
2y ago
I read that, but how can that API be used to notify the original tab to stop playing?
193.
▲
by
sltkr
2y ago
The subscribe() implementation seems suboptimal in the case where there are many different topics: subscribe(topic, callback) { if (this.listeners[topic] == undefined) { // Not yet any listener for this t
194.
▲
by
sltkr
2y ago
That doesn't allow signaling another tab, does it?
195.
▲
by
sltkr
2y ago
From the post: > As TabSub uses local store this only works on the same domain, as the browser separates the local storage by domains as security measure. (More precisely, the separation is based on origin , which is roughly the combina
196.
▲
by
sltkr
2y ago
Surely this comment was generated by an LLM?
197.
▲
by
sltkr
2y ago
The API feels wrong. The object that was passed to pub() is the object that should be received by the callback passed to sub(). The use of EventTarget/CustomEvent is an implementation detail; it should not be part of the API. As a resu
198.
▲
by
sltkr
2y ago
I have it turned on and I subjectively find it pretty bad still.
199.
▲
by
sltkr
2y ago
This is equivalent to asking: how many powers of 2 are there such that all digits except the leading digit are 5 or greater? The powers of 2 with a single even digit are just those double those numbers (i.e., the next higher power of 2).
200.
▲
by
sltkr
2y ago
To prove that there is no value of k between 12 and 10^10 such that 2^k has all even digits, you only have to prove that there is an odd digit among the lowest X decimal digits for all 12 ≤ k ≤ 10^10. The value of X necessary to prove this
201.
▲
by
sltkr
2y ago
You forget that the number of decimal digits grows linearly with the exponent. To generate the first n numbers of the form 2^n numbers you need O(n^2) time. For example, 2^(10^10) is 10^10 bits and about 3 billion decimals digits. So for n
202.
▲
by
sltkr
2y ago
You never said it explicitly but you are referencing the French Reporters sans frontières (RSF) ranking, which is a European organization which is obviously predisposed to rank European countries highly. I find their ranking highly suspect
203.
▲
by
sltkr
2y ago
It might simply mean your opinions fall in the narrow band of views that are permitted to be expressed. It proves nothing about freedom of speech in general. Even in North Korea, people are allowed to freely express their love for their Dea
204.
▲
by
sltkr
2y ago
Not in a balanced tree, since the further down the tree you go, the longer the shared prefix between the search key and node key becomes. So the complexity becomes something like 1 + 2 + 3 + .. + log n = O(log^2 n).
205.
▲
by
sltkr
2y ago
Actually in Java you can cast String[] to Object[] although this is technically unsound. This how generic methods like Arrays.sort() are implemented.
206.
▲
by
sltkr
2y ago
You can probably find some other term that disables the AI but is unlikely to occur naturally in the articles you'd like to find, e.g.: "react swipeable image carousel -coprophilia".
207.
▲
by
sltkr
2y ago
For formats like deflate, decompression time doesn't generally depend on compressed size. (zstd is similar, though memory use can depend on the compression level used). This means an optimization like this is virtually guaranteed to be
208.
▲
by
sltkr
2y ago
You can also very trivially do (codepoint | 1).leading_zeros(), then you can also shave one byte off the LEN table. (This doesn't affect the result because LEN[32] == LEN[33] == 1).
209.
▲
by
sltkr
2y ago
He's probably thinking about: https://en.wikipedia.org/wiki/Pingback
210.
▲
by
sltkr
2y ago
For the rectangle minimization problem: your problem seems to differ from the one discussed on StackOverflow in that the SO thread discusses partitioning into non-overlapping rectangles, while your Vim project allows overlap. I wouldn'
More ›