Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
darrenf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
darrenf
3y ago
Yes and no. I think a periodic reminder about the guidelines for everyone that sees them, not just the person I reply to, is useful
122.
▲
by
darrenf
3y ago
Per HN guidelines, emphasis mine: "Please don't complain about tangential annoyances—e.g. article or website formats, name collisions , or back-button breakage. They're too common to be interesting." https://
123.
▲
by
darrenf
3y ago
> “takeaway” is predominantly British and the other two American–although Lynne Murphy’s blog post on the subject notes that “take-out” is used in parts of northern England I’m approaching 50 and have lived in England my entire life, e
124.
▲
by
darrenf
3y ago
Of course in Perl, a language not exactly immune from "syntax tricks", `and` doesn't always behave the same as `&&` :) $ perl -E 'say 1,2,3,4 and 5; say 1,2,3,4 && 5' 1234 1235
125.
▲
by
darrenf
3y ago
For the first, I prefer range syntax: for i in {1..10}
126.
▲
by
darrenf
3y ago
April 2023 is 18 months after October 2021, and over a year after the invasion.
127.
▲
by
darrenf
3y ago
Even better, and TIL. Thanks!
128.
▲
by
darrenf
3y ago
What's the basis for that assumption? I'm struggling to see a reason to not use the shell for arithmetic, regardless of `/usr/bin/[`, builtin `[` or `[[`.
129.
▲
by
darrenf
3y ago
I had this for a long time, and increasingly frequently during one particularly stressful part of my life. Haven't had it for years now though.
130.
▲
by
darrenf
3y ago
Regardless of `-a` vs two tests and `&&`, there's no need to shell out to `expr` if bash's arithmetic evaluation is available: [ $((1+1)) -eq 2 ]
131.
▲
by
darrenf
3y ago
Google contribute to Chilling Effects, which got renamed to Lumen https://www.lumendatabase.org/ [edited to remove “used to”]
132.
▲
by
darrenf
3y ago
Perl has `length`, not `len` :) Also I can't resist a bit of TIMTOWTDI: my @found = grep { local $_ = lc; length == 10 && substr($_,8,1) eq "k" && join("&quo
133.
▲
by
darrenf
3y ago
The examples are all undeniably verbose, but the source shows that many short options are also supported, specifically to copy those you would expect if migrating from the alternatives: https://github.com/lizmat/App-Rak
134.
▲
by
darrenf
3y ago
Yes, exactly that.
135.
▲
by
darrenf
3y ago
I use profiles not containers, and have links opening using the correct profile by wrapping stuff with the `BROWSER` environment variable. For example my Signal.desktop launcher contains this line Exec=env BROWSER='firefox -P per
136.
▲
by
darrenf
3y ago
That is a UK source. Yes it's on Perth Now, but the byline clearly says it was by a Daily Mail journalist and here it is from the Mail on Sunday: https://www.pressreader.com/uk/the-mail-on-sunday/20231015&#x
137.
▲
by
darrenf
3y ago
> But by and large, if a website accepts Visa or Mastercard, it doesn't tend to matter if it's a debit or credit card. One large exclusion here is for gambling sites. Gambling using credit card sourced money was banned in 202
138.
▲
by
darrenf
3y ago
I'll contribute my anecdote. When I sought counselling in 2013 the only regular appointment I could get was on a Saturday morning, 11am. So I'd get up and do Parkrun[0], get home, shower, and head out to see the counsellor. I'
139.
▲
by
darrenf
3y ago
I'm gonna say the example code is in zsh, where `$foo:r` means "remove the extension from $foo". See the `r` entry here: https://zsh.sourceforge.io/Doc/Release/Expansion.html#Modifi... % foo=f
140.
▲
by
darrenf
3y ago
Facebook Connect is what used to be called Oculus Connect. Kinda their equivalent of Apple's WWDC, I guess. It's when and where the Quest 3 will be officially unveiled in full, for example.
141.
▲
by
darrenf
3y ago
> More andecdotes but I've had british pound coins that were minted in the early 60's still in passable condition; The sterling pound coin was introduced in 1983. The 60s were pre-decimalisation even.
142.
▲
by
darrenf
3y ago
> The official JSON serializer from every broswer vendor and every Node installation produce invalid JSON. I don't think I agree with this. `JSON.stringify` isn't producing JSON when it returns `undefined`. Instead... >
143.
▲
by
darrenf
3y ago
I'm not so sure about this claim. Here's a Microsoft press release from April '99 about digital rights management, which uses the DRM acronym throughout: https://news.microsoft.com/1999/04/13/mi
144.
▲
by
darrenf
3y ago
I'm not certain I understand the point you're trying to make regarding `undefined`, or indeed the expectation that `jq` and `JSON.stringify()` follow the same rules. `JSON.stringify()` is documented to behave exactly as you demons
145.
▲
by
darrenf
3y ago
Zone 5 was split into two back in 1991. Zones beyond 6 have existed since at least the late 90s. My vague recollection is that A-C basically meant "the top end of the Metropolitan line" - certainly how it seemed for me as an SW Lo
146.
▲
by
darrenf
3y ago
I can't tell you who they are as individuals, but I can tell you I bought a Starbook from them in late 2021 and I love it. No problems whatsoever with performance, stability, anything. (No affiliation, although they do operate out of a
147.
▲
by
darrenf
3y ago
> the Royal free hospital in London (what is now called St Thomas' hospital) ??? The Royal Free is in Hampstead, and still exists. St Thomas’ is on the south bank of the Thames at Westminster bridge.
148.
▲
by
darrenf
3y ago
> the completely legal act of publishing correspondence that was sent to him Clearly the judge didn't consider it "completely legal", presumably based on 18 U.S.C. § 1512[0] which says the following may result in a fine
149.
▲
by
darrenf
3y ago
I'm not convinced we skipped 8-bit consoles! Quite apart from having a bunch of friends at the time who had an NES or Master System, if this magazine can be trusted then Sega sold 150,000 Master Systems in the UK in 1990 alone ( after
150.
▲
by
darrenf
3y ago
> it's also the people themselves, especially the natives. If you mention you live in a flat (as opposed to a house) people will look down on you because you're so poor. What's wrong with flats? Native here. Born '7
More ›