Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
faho
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
faho
5y ago
>the or later part alone makes that risky. You are entirely free to pick a GPL version and don't add the "or later" clause. Many projects, including the linux kernel, do.
62.
▲
by
faho
5y ago
> What is also interesting is that while strace seems to report much less overhead in "./empty" compared to /bin/true That's because it reports an error and does not actually execute the file. >strace: ex
63.
▲
by
faho
5y ago
> But you can use the '>' operator, that will create the file only if the command runs successful: It will still create the file. Run this in bash, zsh or fish: false > falsefile It will create an empty file call
64.
▲
by
faho
5y ago
The idea is, if something hardcodes e.g. /bin/grep because it was written on a system where that's where grep is, it will suddenly start working because now grep is also accessible via /bin/grep. So it's compat
65.
▲
by
faho
5y ago
Raw package count doesn't really compare, considering that Debian splits up packages a lot. For example they have a lot of "-dbg", "-devel" and "-doc" packages that other distros might just choose to leave
66.
▲
by
faho
5y ago
> anti-systemd hacker/tinkerer types who will be much happier over at Arch When you're anti-systemd, you won't be happier over at Arch, considering systemd is the only supported init system in Arch - in contrast to Debian,
67.
▲
by
faho
5y ago
GNU grep doesn't take a value for `-E`, so it interprets this as `grep -i -E -t`, which explains the error. It doesn't have a `-t` option. I don't know of any grep that does take a value for `-E`. It does support taking a v
68.
▲
by
faho
5y ago
It's possible , yes - by adding yet more easy-to-get-wrong boilerplate. My point isn't that it's impossible. My point is that it's hard and annoying.
69.
▲
by
faho
5y ago
This article seems to have been started from the position of "I want `set -euo pipefail`" and the points are just geared towards it. And those options have big issues! `-e` ("errexit") can just kill a script for no obv
70.
▲
by
faho
5y ago
Okay, now do grouped short options - `yourscript -vo /path/to/file`. Note that getopt(3) (what CLI tools written in e.g. C would use) allows this - `grep -qf /path/to/file` works the same as `grep --quiet --fil
71.
▲
by
faho
5y ago
This handle is in the archive links the article points to , and that's the important part. Lunduke had this handle on his screen, and either missed it or chose to ignore it on purpose. The former is careless and sloppy, especially if
72.
▲
by
faho
5y ago
jq is surprisingly slow. I've had success calling python to parse some json from a shell script instead of jq.
73.
▲
by
faho
5y ago
This is incorrect, the twitter handle is "DaniElainaFore" - https://mobile.twitter.com/DaniElainaFore As you can see in the linked screenshots. Try to open the old handle and you will find one tweet telling you sh
74.
▲
by
faho
5y ago
> So is pipewire a replacement/superset of gstreamer? It is neither. Gstreamer deals with codecs and such. It's a set of libraries that an application uses to handle multimedia needs. Pipewire is a service that handles stream
75.
▲
by
faho
5y ago
Pipewire was started by Wim Taymans, one of the gstreamer people. Originally it was supposed to allow video-streams in sandboxed environments like flatpak (and was known as "pulsevideo"), but then he noticed that it could be exten
76.
▲
by
faho
5y ago
Her twitter (which Lunduke links to, and copied tweets from) very prominently features her new name. I'm not saying it can't be accidental (in which case you do what you do when you've accidentally been rude - apologize, corr
77.
▲
by
faho
5y ago
For those who don't know, Danielle is transgender, and this article is using her name from before she came out, what is known as the "dead name". Using it now is incredibly rude.
78.
▲
by
faho
5y ago
The parent was asking for a license "akin to Public Domain", not a "share-alike" license.
79.
▲
by
faho
5y ago
PHP is still full of awkward decisions. One that baffles me is that 8.0 changed it so all scripts default to a "C" (i.e. english, ascii-only) locale. [0] So this is now a scripting language that requires you to call `setlocale`
80.
▲
by
faho
5y ago
>Python 3.x has decided that breaking changes in minor releases is fine. My favourite: string prefixes (eg s'foo', u'foo') were legal in 2.x, removed in 3.0, added back in 3.3. Python 3.0 was very much not a minor r
81.
▲
by
faho
5y ago
Yes, and they did say they were going to file bugs: > Investigate the file conflicts and file some Arch Linux bugs. with a link to https://bugs.archlinux.org/task/73574 , which is indeed a bug in the packaging script
82.
▲
by
faho
5y ago
>For example, iTerm2 considers the "rosette" emoji to have width 1 It's not the case here, but for some emoji there's another issue: Unicode 9 changed the width for some codepoints (mostly emoji) from 1 to 2, and iTe
83.
▲
by
faho
5y ago
It's called "Sixel", and it's a way to print graphics in the terminal: https://en.wikipedia.org/wiki/Sixel
84.
▲
by
faho
5y ago
Except it's not "Pop OS". It's "Pop!_OS".
85.
▲
by
faho
5y ago
If you add the table name you could, and that's what "x." here is. So yes, you can autocomplete SELECT employee.Na<TAB> to "employee.Name", but it requires you to type the table name "employee." firs
86.
▲
by
faho
5y ago
That proposal unfortunately requires you to name the foreign key constraint, which is quite unergonomic. E.g. instead of the wrong `FROM a NATURAL JOIN b` you would use the correct `FROM a JOIN FOREIGN a.foo_fkey`, which not only needs that
87.
▲
by
faho
5y ago
Yes, you can work around some inadequacies of SQL by bolting more features on top. That doesn't mean that the basic design of SQL isn't awkward.
88.
▲
by
faho
5y ago
One very very simple fix is to mention the table first: FROM this SELECT whatever This already allows autocomplete for the attributes to work, and has an easier mental model - you think about the tables, then you think about their attribute
89.
▲
by
faho
5y ago
In python, f(a, b) is a function applied to two arguments and f((a, b)) is a function applied to a single tuple.
90.
▲
by
faho
5y ago
>It was designed and specified at a time when the Unicode code space had a 21 bit limit 21 bits is the current Unicode limit. Unfortunately UTF-8 in 3 Bytes only has 16 usable bits - the first byte starts with 1110 and the two continua
More ›