Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hddqsb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
151.
▲
by
hddqsb
4y ago
Agreed (in fact I referred to it as a dark pattern in another comment). @grumple pointed out that throwaway accounts that can't be easily linked to the poster are essential to some reddit communities, which may play a part in why this
152.
▲
by
hddqsb
4y ago
I'm curious, does the company-issue PC also prevent you from opening CMD and PowerShell? (If not, you can probably paste the commands directly there; or create a .bat file yourself as suggested in a sibling comment. But as another comm
153.
▲
by
hddqsb
4y ago
Just a heads up that this implementation has exponential time complexity on pathological patterns. Demo: https://tio.run/##tVddc6IwFH3nV0Q7WyXFIlrdUWr7uC/9B213BkIQKo... pattern = "a*b*c*d*e*f*g*h*i*j*k*l*m*n
154.
▲
by
hddqsb
4y ago
It's still possible for me, I think @NowhereMan just didn't realise the email field could be left blank. Dark pattern working as intended, most likely.
155.
▲
by
hddqsb
4y ago
This completely unintuitive trick also works on reddit.com.
156.
▲
by
hddqsb
4y ago
Yes, that's what I was looking for too. I think the following quote is meant to address that: > To bootstrap the system, an initial set of Actors who share the same core values about the to-be-created reputation each gets allocated
157.
▲
by
hddqsb
4y ago
It's in a sibling repo: https://github.com/casualwriter/casual-markdown
158.
▲
by
hddqsb
4y ago
> horrible run times on craftily-constructed regexes Here is a simple patch to make the runtime O(len(pattern) * len(text)) instead of exponential. It adds 5 lines and a new parameter. The idea is to memoize (cache) the results, specif
159.
▲
by
hddqsb
4y ago
Obligatory example where the extra backslash makes a difference: $ printf '%s\n' 'asterisk: *' 'backslash: \' | grep '[*]' asterisk: * $ printf '%s\n' 'asterisk: *' &
160.
▲
by
hddqsb
4y ago
> You're relying on the assumption that, in the above example, the fine (which should be minimized) is directly proportional to difference from the estimate. But that assumption doesn't appear in the explanation of why one met
161.
▲
by
hddqsb
4y ago
I was trying to come up with a scenario where you have to choose between the mean and the median, and the correct choice is the mean due to signedness (in contrast with the elevator example, where the correct choice is the median because th
162.
▲
by
hddqsb
4y ago
> But you can't know what the mean is without having already answered your original question of "how many nails are there?", so as a formal matter this is completely useless advice. Yes, obviously you'd estimate the
163.
▲
by
hddqsb
4y ago
> standing at the mean minimizes the average squared distance This is true, but I find it more intuitive to think about the signed distance: if you define signed_dist(x, y) = x - y, then the mean is the value that makes the average s
164.
▲
by
hddqsb
4y ago
It works for me.
165.
▲
by
hddqsb
4y ago
[deleted]
166.
▲
by
hddqsb
4y ago
If you mean day-of-the-week, that's easily fixed by adding labels to the movable frame (like the existing red marking which indicates the weekend).
167.
▲
by
hddqsb
4y ago
I was taught the knuckle mnemonic, which I really like: https://en.wikipedia.org/wiki/Knuckle_mnemonic
168.
▲
by
hddqsb
4y ago
Yeah. I guess you could manually fix it with some white magnets / reusable stickers.
169.
▲
by
hddqsb
4y ago
Neat. Some limitations: - It doesn't tell you how many days there are in the month (31/30/28/29). - Working out how to move the frame at the end of the month isn't very difficult, but it's not trivial either (e
170.
▲
by
hddqsb
4y ago
They did: > An iterator could query a database, for example—including the unfortunate possibility that it might alter data, or that iterating through it twice might yield completely different results! Some tools (like ReSharper) will wa
171.
▲
by
hddqsb
4y ago
Edit: "A little" is inaccurate, the probability of the remaining lifetime being at least T is actually 25%[1]. And all this is assuming a "Lindy proportion" of 1 (which seems reasonable) and that no other information is
172.
▲
by
hddqsb
4y ago
I don't see any issue, as long as you consider the time until the system crashes or stops for any other reason rather than the time until the system stops specifically due to a crash. And note that the Lindy effect is about the expec
173.
▲
by
hddqsb
4y ago
It's possible to avoid `cat` and still keep the filename separate from the rest of the command by placing the redirection at the start of the command: < /tmp/com.txt awk ... It might look a little odd, but it'
174.
▲
by
hddqsb
4y ago
To improve performance, consider using `export LC_ALL=C` (credit: https://benhoyt.com/writings/count-words/ ). But note that it sorts uppercase and lowercase separately, and doesn't handle Unicode well.
175.
▲
by
hddqsb
4y ago
Ha ha, no. The macOS 10.14 SDK deprecated OpenGL in 2018, and the page currently shows what's new in macOS 12. Here is a live page with the macOS 10.14 release notes showing the deprecation: https://developer.apple.com/
176.
▲
by
hddqsb
4y ago
The page shows the current news, here is an archived snapshot from 2018 that talks about the deprecation: https://web.archive.org/web/20181226081443/https://developer...
177.
▲
by
hddqsb
4y ago
I'm curious, have you ever tried contacting that guy and explaining that he shouldn't use your email address? This design seems like a surprising oversight on Google's part. The correct design is to only add the recovery acco
178.
▲
by
hddqsb
4y ago
FYI: You can bypass the lock by copying places.sqlite and places.sqlite-wal then reading from the copy. Not exactly ideal, but might be useful.
179.
▲
by
hddqsb
4y ago
The explanation in the video is good, here is a transcription for convenience (emphasis added): > OpenJDK implements threads as thin wrappers around the OS thread [...] OS threads are expensive, by which I mean that we cannot have too ma
180.
▲
by
hddqsb
4y ago
Nope. If you call `time.Sleep()` the reported duration will reflect that call, but it's only simulating the delay. The duration of a CPU-heavy task is always reported as 0.00s. Demo: https://go.dev/play/p/UZTo
More ›