Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
301.
▲
by
sltkr
3y ago
What's with the language detection on this site? I've set my browser languages to "English (US)" first, and "Dutch" second. Instead of showing me the English-language version of the site, I get an absolutely at
302.
▲
by
sltkr
3y ago
> Columbus wasn't generally lionised and celebrated during his lifetime, a lot of the mythology about him comes later Right, but the point is he was lionized during a period where people found his conquests more important than the a
303.
▲
by
sltkr
3y ago
Of course ressentiment is constant, but the question is which kind of thinking dominates society? Historically, the pendulum has swung back and forth between what Nietsche labeled master and slave morality. The Roman empire is a typical exa
304.
▲
by
sltkr
3y ago
This is funny but it cannot be called an implementation of `ed` because it only implements the tiniest fraction of ed. It doesn't have super basic commands like `a` (to append text), or `,p` (to print all lines), or any range support a
305.
▲
by
sltkr
3y ago
This is often useful, but JavaScript specifically has the annoying property that newlines can be semantically meaningful. For example, if someone changes: function isUserBanned(username) { return db.findUserByName(username)?.ban
306.
▲
by
sltkr
3y ago
In the Kickstarter video the wood is painted (and she has sensibly removed the goofy leaves on the sides, which were obviously only going to get in the way).
307.
▲
by
sltkr
3y ago
> The notches have to be wide enough for a the thickest stuff, but then a shirt will take as much space as thick coat. It's probably easier to take out a hinger and let a thick coat take up two spaces (or more). Assuming you have on
308.
▲
by
sltkr
3y ago
Yes, but folding the clothes doubles their thickness, so you can fit fewer hingers on a single rod than traditional hangers. Also the coat hinger system uses fixed distance between the hingers (due to the slots in the rod) which seems like
309.
▲
by
sltkr
3y ago
It does lead to a very concise invocation: $ perl -ne 'print if /^(?=.{8}k.$)(?=[^a]*a[^a]*$)(?=[^b]*b[^b]*$)(?=[^c]*c[^c]*$)/' /usr/share/dict/words
310.
▲
by
sltkr
3y ago
You can also do: sed -e '/^........k.$/!d; /a/!d; /b/!d; /c/!d; /a.*a/d; /b.*b/d; /c.*c/d' /usr/share/dict/words I wouldn't e
311.
▲
by
sltkr
3y ago
Might as well do it on the command line at that point: $ grep '^........k.$' /usr/share/dict/words | grep a | grep b | grep c | grep -v 'a.*a' | grep -v 'b.*b' | grep -v 'c.*c
312.
▲
by
sltkr
3y ago
Very prophetic: > is this meant as a new scheme to pick up underage children by getting them one-on-one with no one else to monitor the two-way conversation?
313.
▲
by
sltkr
3y ago
I'm pretty sure I'm you.
314.
▲
by
sltkr
3y ago
Fair point, I just realized that myself and edited my comment accordingly.
315.
▲
by
sltkr
3y ago
Can we please get rid of these shit quality bot comments? This reply is obviously generated by an AI. You can tell from the fact that the summary is shit (you're better off reading the abstract of the article), and that it was posted 2
316.
▲
by
sltkr
3y ago
For me it works if I disable uBlock Origin.
317.
▲
by
sltkr
3y ago
I think the explanation is a little incomplete, but it makes sense if you expand the explanation a bit. What really happens is this: when GMail receives a lot of email from domain xyzzy.com, and a lot of it seems to spam (either it's m
318.
▲
by
sltkr
3y ago
That's too facile. Email was intended as a federated service that allows anyone to send mail to anyone. Privileging large companies over small companies and individual users is a clear violation of that principle, and a danger to the o
319.
▲
by
sltkr
3y ago
Nucular . It's pronounced nucular .
320.
▲
by
sltkr
3y ago
No, because appending with push_back() which strings must also support is required to have O(1) amortized time. See my comment here for details: https://news.ycombinator.com/item?id=38032949
321.
▲
by
sltkr
3y ago
The C++ standard requires: 1. Both std::vector<T> and std::basic_string<T> support push_back(T) with amortized constant performance. 2. Additionally, std::basic_string<T> has an operator+=(T) that behaves semanticall
322.
▲
by
sltkr
3y ago
The metric we are interested in is cost relative to self-hosting on similar hardware. So you can't factor in things like inflation and hardware performance, which equally made self-hosted solutions cheaper.
323.
▲
by
sltkr
3y ago
That's a cool page but it's about Bézier curves, while this article is about cubic splines. They are not the same! The most notable difference is that a Bézier curve is defined in terms of control points that do not (generally) pa
324.
▲
by
sltkr
3y ago
Yes, you're right, there are technical benefits too. Still, I think the primary reason Apple felt comfortable dropping the headphone jack while contemporary Android phone vendors didn't, was that Apple could afford to lose custome
325.
▲
by
sltkr
3y ago
People keep repeating this story, but is there any real evidence to support that this was actually an oversight, and not a deliberate decision? Apple has a long history of making decisions that seem to go against what users want, like remov
326.
▲
by
sltkr
3y ago
Chicken't.
327.
▲
by
sltkr
3y ago
That was great!
328.
▲
by
sltkr
3y ago
I agree with you that `cat` is not really useless when it makes the code more readable, and the common idiom of `cat input-file | process | process | process > output-file` can be more readable than `process <input-file | process | pr
329.
▲
by
sltkr
3y ago
Grandparent didn't just link to "code"; they linked to a five-paragraph comment explaining what is going on. Did you read those comments before you posted your snarky reply? I think the gist of it is that unlike the glibc imp
330.
▲
by
sltkr
3y ago
I think all three of those games are already passé for children. The people who grew up on Minecraft and Roblox are now in their twenties. No idea what actual children are playing these days; probably gacha games on their phones or somethin
More ›