Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ralph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
361.
▲
by
ralph
16y ago
Why does the bubble sort continue to the end of the array on every pass, when it could stop one earlier each time?
362.
▲
by
ralph
16y ago
As well as being Unix backwards, it's also a recursive acronym; Xinu is not Unix.
363.
▲
by
ralph
16y ago
Base 26 or 36? Is 'a' 0 or 10? Does 's' overflow to the next column, like 09 in octal?
364.
▲
by
ralph
16y ago
You're correct. Perhaps the up-voters were thinking it must just be better to report the piping. Which it is, but that doesn't make the comment valid.
365.
▲
by
ralph
16y ago
GNU sort has a --compress-program option that can help if you're really tight on scratch space, e.g. lzop(1). The -T option or TMPDIR environment variable lets you state a filesystem with more free space can be used instead.
366.
▲
by
ralph
16y ago
If you're going to process this file a lot, and it's straightforward text, then consider compressing it with lzop(1). lzop's fast as compressing, and very fast at decompressing, and the overhead of having to decompress on every read throug
367.
▲
by
ralph
16y ago
What do you and the original poster hope to achieve by ...| sort -g | uniq | sort -g The second sort is doing nothing. And sort can do uniq, saving time and I/O. $ (seq 10; seq 5) | shuf | sort -gu | fmt 1 2 3 4 5 6 7 8
368.
▲
World's first 20 minute voice call from a Free Software GSM stack on a phone
(laforge.gnumonks.org)
1 points
by
ralph
16y ago
|
0 comments
369.
▲
by
ralph
16y ago
You test with "he" versus "him" in the reply to the question, not by replacing "who/whom" in the question itself. So the answer to "whom to follow" is "follow him", not "follow he".
370.
▲
by
ralph
16y ago
Maybe Twitter should consider changing to "Whom to follow" as the quirkiness would stand out to those unfamiliar with "whom". May help partially offset the slight staidness.
371.
▲
by
ralph
16y ago
Almost certainly that one. Mr Burns, is that you? You've had me accessing bits that hadn't been scrubbed in a long time and have suffered some rot. Have you just arrived at number 63 or just left? There's a Dorset LUG if you're interest
372.
▲
by
ralph
16y ago
You might sound like Inspector Morse; he was repeatedly correcting Lewis. Here in England, "everyone" doesn't say "who" when they mean "whom".
373.
▲
by
ralph
16y ago
Victoria Coren's had an interesting career. Writer, TV presenter, including _Balderdash and Piffle_ connected to the Oxford English Dictionary, poker player, and porn film maker, though just the once. It's nice to see see someone well kno
374.
▲
Dear people-who-run-Twitter, whom to follow, whom
(twitter.com)
75 points
by
ralph
16y ago
|
44 comments
375.
▲
by
ralph
16y ago
Agreed. $ wget -qO- http://www.gabrielweinberg.com/startupswiki/Ask_YC_Archive | > egrep -o 'item\?id=[0-9]+' | > sort -t= -k2nr | > sed q item?id=363096 $
376.
▲
by
ralph
16y ago
As a sinister southpaw myself, I've never understood why fellow left-handers grip the pen in an unusual curled-round fashion such that their hand rests on what's just written. I hold it like a right-handed person would. http://blogs.sunti
377.
▲
by
ralph
16y ago
"ed was a command-line editor that worked identically to the colon-commands in vi and vim—in fact, you can press Q to get into ed mode (then type vi to get back into vim)." This is wrong. Pressing Q in vi quits visual mode and returns you
378.
▲
by
ralph
16y ago
http://www.gnu.org/software/hello/manual/autoconf/Why-Not-Im...
379.
▲
by
ralph
16y ago
c is for change, as d is for delete, i for insert, and s for substitute.
380.
▲
by
ralph
16y ago
No, vi often isn't installed, e.g. on Linux ADSL routers. If there is one editor it will be ed(1), the one true editor. :) That's why everyone should know it. Besides, it is a bit easier to use ed blind to edit a file from a mental imag
381.
▲
by
ralph
16y ago
Exactly. Emacs didn't start on Unix IIRC and seems to prefer to have everything built in. vi was created by Bill Joy on Unix and wanted to work with the rich language of shell commands from the start, as ed(1) did, so it concentrated on e
382.
▲
by
ralph
16y ago
Surely Caps Lock is already mapped to Ctrl? Then Ctrl-[ for Escape becomes easier as do all the other Ctrl combinations.
383.
▲
by
ralph
16y ago
HJKL's location on a QWERTY keyboard directly influenced them being chosen. They were to hand under the right hand, and mnemonically, ^H is BS, ^J is LF, ^K is VT (vertical tab) which at least keys the vertical connection going, and L is j
384.
▲
by
ralph
16y ago
vi commands $, %. and ^ are conveniently placed on QWERTY; Shift-4/5/6. If you use the one true style of braces for your C code then you can move through if-else-if chains quickly. $ moves to the end of the line, placing you on the open
385.
▲
by
ralph
16y ago
... | sort -nr | head ...may save tail(1) some work.
386.
▲
by
ralph
16y ago
For a good summary of this whole area, see Russ Cox's http://swtch.com/~rsc/thread/ page.
387.
▲
by
ralph
16y ago
I think he's saying that the main event loop has called a callback, only to have that callback either call the main event loop, or something similar that processes events until a certain condition, and that in turn may cause other callbacks
388.
▲
by
ralph
16y ago
Have you tried ssh -T foo bash -i
389.
▲
by
ralph
16y ago
ssh(1) only compresses if configured too, see the -C option.
390.
▲
by
ralph
16y ago
$ printf 'a[]b[c]d[ef][g[h]i\n' | sed 's/\[[^][]*]/-/g' a-b-d-[g-i $ ed a a[]b[c]d[ef][g[h]i . s/\[[^][]*]/-/g p a-b-d-[g-i q ? q $
More ›