Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnubison
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
91.
▲
by
gnubison
4y ago
Except for when it breaks on FreeBSD or macOS. The most portable utility nowadays for desktop systems is ex, actually (because some Linux distros don’t include ed).
92.
▲
by
gnubison
4y ago
… but it doesn’t matter if the client is compromised, because all it would hurt is the user, right? If the client was compromised, it could just not send anything to your servers, or ignore the results, or …
93.
▲
by
gnubison
4y ago
> the only downside to the tildeverse is if you're not woke they kick you out. Heh?
94.
▲
by
gnubison
4y ago
> That is all I’m hearing As alien as it might be to you to not use Rust or Go or Python, people really do write C because they like it — and they are aware of “system instability” usually :) This argument just makes its users seem wor
95.
▲
by
gnubison
4y ago
$ man ed # :)
96.
▲
by
gnubison
4y ago
An open source text editor that isn’t as “bloated” as VSCode? Sounds like … all of them, really, try Emacs or vim or nano or vi and maybe you’ll find something you like. But if what you want is “VSCode with all the features I use and none
97.
▲
by
gnubison
4y ago
I think a lot of us would be fascinated by stuff like this, if you were okay with publishing it :)
98.
▲
by
gnubison
4y ago
Fun fact: 1-4 don’t work in the context of short reads — and GNU’s fullblock extension isn’t specified in POSIX.
99.
▲
by
gnubison
4y ago
I mean, I hear this all the time … and yet GitHub is still somehow the standard for free software hosting.
100.
▲
by
gnubison
4y ago
> If I write a Bash script, I can be reasonably certain it will run on any unixoid system that came out in the last years. Except for, like, all the (free) BSDs and Illumos. What “unixoid” systems were you referring to, exactly, other t
101.
▲
by
gnubison
4y ago
Part of the reason is that your connection could be interrupted … and then now what? Hope you like sifting through the script’s entirety and manually checking how much it’s done so far.
102.
▲
by
gnubison
4y ago
I think this is pretty normal. Some people like to put linebreaks after every sentence/clause, which makes diffs much more convenient.
103.
▲
by
gnubison
4y ago
> You have to look at older versions of OSes, too. Perl 5 was released in 1994. It is incredibly portable. If you have a system that legitimately has Perl 4, I would love to hear about it, but …
104.
▲
by
gnubison
4y ago
Sigils indicate what an operation evaluates to, not what the input type is. You get used to it.
105.
▲
by
gnubison
4y ago
Huh, interesting.
106.
▲
by
gnubison
4y ago
Perl more common than vi? The study you’re remembering probably didn’t include POSIX utilities.
107.
▲
by
gnubison
4y ago
Even better, use a real text editor like ed or ex. (Nowadays ex is more portable because many distros — against POSIX — omit all 55 kilobytes of GNU ed. Of course, smaller systems might not have ex/vi.) Basic usage looks like this:
108.
▲
by
gnubison
4y ago
Nano takes care of this, just like it disables line buffering (ICANON) and signal keys (ISIG).
109.
▲
by
gnubison
4y ago
In Emacs, right click adjusts the closest side of the selection, and double right-click cuts that region. (And it obeys the mode of selection if you started with a double- or triple-left-click.) Double-left click also selects s-expression
110.
▲
by
gnubison
4y ago
History expansion originated in csh, and was never in the Bourne shell. Bash, certainly.
111.
▲
by
gnubison
4y ago
‘stty -ixon’ disables this.
112.
▲
by
gnubison
4y ago
Actually, ^S does save, since 2017.
113.
▲
by
gnubison
4y ago
> That's how you end up with "ifconfig is old, everyone switch to ip now". Let’s not confuse Unix and Linux, shall we? (I agree that any given use of cut -c is probably wrong, but this is a weird conclusion. People just
114.
▲
by
gnubison
4y ago
> I think part of the problem is that we still don't have a standard /bin/sh even though there is a written standard. It feels fair to me to suggest that you can call dash the working standard on Linux, but you can't
115.
▲
by
gnubison
4y ago
Please, please, please don’t do this for end-user compiled software, because someday they’re going to be using a more modern compiler than you and their build is going to break because of new warnings that you couldn’t anticipate.
116.
▲
by
gnubison
4y ago
I meant more in the “100% of humans die” sense :)
117.
▲
by
gnubison
4y ago
> if you live, breathe, drink and eat on U.S. soil, you are already fucked and it is only a matter of when the timer goes off. In fact, come to think of it, this holds true almost everywhere. Us humans are in the middle of a mortality ep
118.
▲
by
gnubison
4y ago
Humor me for a second: why not have them install the software themselves?
119.
▲
by
gnubison
5y ago
If you look at r/place and see a bunch of flags … look closer? Sure, there are flags. There is also a ridiculous amount of pixel art created and protected by tireless fans of the games that have left their mark all over the canvas.
120.
▲
by
gnubison
5y ago
If your kernel is doing any caching and it’s shutdown without a chance to flush its caches, then doesn’t it necessarily have the possibility of corrupted data?
More ›