Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kps
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
147 ms
·
691.
▲
by
kps
3y ago
> My biggest struggle has been finding good resources to learn the "proper" way to use it as pretty much any search will land you with vim-isms Start with the original tutorial, An Introduction to Display Editing with Vi .
692.
▲
by
kps
3y ago
I used ed for a few months long ago, working with a mainframe Unix-emulation environment that didn't have character I/O working yet, only line-by-line from the host OS. It taught me how to use regular expressions effectively, sinc
693.
▲
by
kps
3y ago
“The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.” — This becomes an excuse not to write anything down, which cripples the folks working on the project (charitab
694.
▲
by
kps
3y ago
`:term` is much more intrusive; you can't just `:!foo` and get on with what you're doing. For one thing, you can't `:term foo` with a modified file, which is not an unusual state when you're editing.
695.
▲
by
kps
3y ago
> Why would you run an interactive command with `:!` ? Why wouldn't you? Vi's `:!` is simple and general. If neovim has an equivalent, it must be obscure enough that no one has mentioned it yet, and it seems to me that the ob
696.
▲
by
kps
3y ago
Try something that uses input, e.g. a pager (`:!git log`), or a password (`:!sudo something`), or `:!top`, or something with even the simplest formatted output (`:!watch -n1 lsusb`).
697.
▲
by
kps
3y ago
For one thing, LSP (last I checked) was still unable to distinguish between read and write.
698.
▲
by
kps
3y ago
Every time I've tried it, something was missing or broken. Currently it's at least :! which breaks apparently because it tries to do something ‘clever’ and complicated, whereas vi and vim just run the command. (I can live without
699.
▲
by
kps
3y ago
And to be more specific about the OP entry, 'x (apostrophe) moves to the line of location register x, and `x (backtick) moves to the line and column of x.
700.
▲
by
kps
3y ago
> Not sure if you realize, but a commit is a state of all files in the repository, not a patch. I think that's a core problem. It's not just that git calculates a patch to show you, it's that — in every git-using project
701.
▲
by
kps
3y ago
There used to be. In ‘Type 3’ fonts, each glyph is defined by a Postscript routine. They were not supported by any of the major display systems (Windows, Mac, X). Maybe NeWS or NeXT did; I don't know.
702.
▲
by
kps
3y ago
If we put all-natural you, with no products of technology, at a random point on Earth, you'll be dead before the search party finds you.
703.
▲
by
kps
3y ago
> Why do modern startups always make the world a worse place to live in? Well, this one has an actual product in mind, that is aimed at making its customers happy. So it beats 90% of modern startups already. Now, if they find a way to
704.
▲
by
kps
3y ago
The ‘07 Customize’ page has code samples.
705.
▲
by
kps
3y ago
Maybe C++26 will let us write operator·() and operator×().
706.
▲
by
kps
3y ago
In 1993 the unintended consequences of X3J11 “undefined behavior” had not yet emerged, nor had the reality that future Standard committees would double down rather than fix it. If anyone had realized what UB would turn out to mean, it would
707.
▲
by
kps
3y ago
This is on the event of the last Ariane 5 launch, but the first Ariane 5 launch failed due to software. The inertial reference system (SRI) was derived from Ariane 4. Since 5 was faster, a numeric conversion overflowed, which was not phys
708.
▲
by
kps
3y ago
Multiplication takes more than a handful of instructions if the hardware doesn't do it. https://godbolt.org/z/ccYPaz1Pj For this example (AVR), this is the int multiply function __mulhi3: 00: 00 24 eor r0,
709.
▲
by
kps
3y ago
People can try the emulator.¹ Key to understanding is that GUI operations were two-handed, descending directly from NLS (people have all seen the ‘mother of all demos’², right?). Right hand on the mouse, left hand on the left function key c
710.
▲
by
kps
3y ago
HP (Panacom) in Waterloo used them in X terminals. Edit: Specifically the HP 700/RX.
711.
▲
by
kps
3y ago
At the time I worked for a small compiler shop, and we had a C compiler for the i960 — https://web.archive.org/web/19971014124149/http://www.archel... — In particular I wrote the standalone instruction s
712.
▲
by
kps
3y ago
paste(1) is a POSIX standard utility, though (going back to System III), pairing with cut(1). https://pubs.opengroup.org/onlinepubs/9699919799/utilities/p...
713.
▲
by
kps
3y ago
On Linux I have these wrap xsel or xclip, and likewise open to xdg-open. Now, for your Mac example — if that's a specific pipeline you often use, you can write a Service menu entry to do it in place, without switching to a terminal.
714.
▲
by
kps
3y ago
Nicely linked from one of the answers: https://youtu.be/tc4ROCJYbm0?t=809
715.
▲
by
kps
3y ago
Archive tens of thousands of documents.
716.
▲
by
kps
3y ago
/usr stands for ‘user’. In particular, in our own version of the system, there is a directory "/usr" which contains all user's directories, and which is stored on a relatively large, but slow moving head disk, whil
717.
▲
by
kps
3y ago
Zig does have modular `+%` and saturating `+|` operators, as well as `@addWithOverflow()`, though. You get to choose what happens on overflow; if you don't, the compiler gets to.
718.
▲
by
kps
3y ago
I wish I'd been taught that as a child instead of the conventional method. I had no end of trouble with subtraction because we were taught ‘borrowing’, and being a moderately decent kid I always gave back what I borrowed.
719.
▲
by
kps
3y ago
Two's complement was described carefully in Preliminary design of the logical design of an electronic computing instrument ¹ §5.7 (Burks, Goldstine, von Neumann, 1946), but it's not an easy read. I suspect some early machines use
720.
▲
by
kps
3y ago
I do the same with my Honda Fit. Desks, doors, 2×4s, bicycle, 44U rack… It's true I can't fit a whole sheet of plywood, but most SUVs have the same skinny-door problem.
More ›