HNHacker News
TopNewBestAskShowJobs

ralph

1,089 karma · joined March 1, 2007

Ralph Corderoy, https://plus.google.com/#115649437518703495227/about

C, Unix system and shell, Python, X Windows, ARM, ...

submissionscomments
ralph··on Using the sed Editor
I think you're getting confused with implementing sed in sed. ;-)
ralph··on Using the sed Editor
Sorry, it's isn't comprehensive but more of an introduction, e.g. no mention of the difference between pattern and hold space or the n/N commands.
ralph··on Lthread - C coroutine lib with multicore support
How does it compare with Russ Cox's libtask, which includes channels? http://swtch.com/libtask/
ralph··on Right versus pragmatic
Which is why it's odd that most washrooms have you pull a door by the handle to exit, a handle many others have probably touched without washing their hands. Ikea is one place that comes to mind that avoids this, instead having a sequence of offset walls to give privacy without a door.
ralph··on Best of Vim Tips
This is something to skim and spot bits you didn’t know, leading you to the relevant bit of the fine manual. It has errors though, e.g.

    /\<\d\d\d\d\>   : Search for exactly 4 digit numbers
    /\D\d\d\d\d\D   : Search for exactly 4 digit numbers
    /\<\d\{4}\>     : same thing
The middle one is not the same as the other two since \D has to match something unlike the zero-width assertions of \< and \> for beginning and end of word.
ralph··on SSH tricks
For GNU tar these days that's true, unless you can be sure $TAPE is in its environment. Historically, tar defaulted to a tape device, e.g. /dev/mt0, and you still find vestiges of that, e.g. OpenBSD defaults to /dev/rst0.

IOW, specify "f -". :-)

ralph··on Giving away the secrets of 99.3% email delivery
Others are nabbed though.

    $ for t in mx a; do dig +short gmial.com $t; done
    0 nullmx.domainmanager.com.
    208.87.34.15
    74.86.197.160
    $
ralph··on Zsh is your friend.
I disagree. As a programmer I can represent inputs and outputs as text and write code to do intended transformations. As a quick ad hoc test I can easily knock up a shell pipeline to give confidence in those results, even if it would be too slow for production. There's many occasions when powerful shell usage is quicker to write than Python, etc.

My comment in reply to http://www.iheartchaos.com/post/16393143676/fun-with-math-di... is one example.

ralph··on Goodbye AdSense
More discussion on Jef's G+ post. https://plus.google.com/114501281018969491281/posts/YM2YZfmz...
ralph··on Csvkit - command line utilities for working with csv files
What's not that simple? I didn't say anything was, just citing a reference. Did you mean to reply to the parent?
ralph··on Csvkit - command line utilities for working with csv files
IIRC Aho, Weinberger, and Kernighan's excellent slim tome _The Awk Programming Language_ implements something similar; awk is used to generate the awk with Field1 replaced by $1, etc.
ralph··on Writing Robust Bash Shell Scripts
Or

    if [[ $filename == foo ]];
ralph··on Let's update the HN circle on Google Plus (the proper way)
The pop-up profile bubbles disappear off the bottom of the web page for those on the bottom row.
ralph··on Let's update the HN circle on Google Plus (the proper way)
I've read on G+ it's 500.
ralph··on [dead]
Perhaps they think http://en.wikipedia.org/wiki/Broken_windows_theory may be applicable and it's best to nip stuff in the bud.
ralph··on Knuth and the Unix Way
Those globs should be protected from the shell otherwise ./bc is going to alter tr's arguments.
ralph··on Knuth and the Unix Way
The reason for preferring sed 42q instead of head -n 42 is because head didn't used to exist. IIRC it was created at Berkeley and for some years there were many systems that didn't have it. It does seem a bit superfluous when all it could do was head -42 (the -n and other options came later). I still write sed 42q to this day. :)
ralph··on A Reading List for JVM-based Developers
I've a friend, no really -- it's not me, who would like to have the JVM spot SSE instructions could be used. Anyone know of a JVM that steps into this area?
ralph··on Python Facts
"View All" only give me the titles, I still need to look at each individually. It's a bit like a FAQ that doesn't put multiple Qs and As on the same page; a pain. Part of the benefit would be scrolling through at speed, no comments interspersed, learning quickly, skipping already-known at a glance. Could be N per page to handle when total number is large as long as N >= 20. I'm looking at View All thinking some look interesting but I haven't the time to click round it all.
ralph··on What's the one Linux command you wish you knew years ago?
That glob could cause trouble.

    find . -name '*.java' -print0 | xargs -0 cat | wc -l
ralph··on Steve Losh's .vimrc
You use $ too sometimes?
ralph··on Steve Losh's .vimrc
Mapping to keys lets one map to the first part of a key sequence as opposed to the whole sequence/command name.
ralph··on If you want to get rich, stop being a fucking joker
Does this mean I'm not alone in thinking Yegge could cut half his prose and create a better post?
ralph··on Smuggling Data in Pointers
LuaJIT uses NaN-tagging too.
ralph··on Fedora to simplify filesystem hierarchy
Agreed, I tried to get that across with the "split continuing" bit. :-)
ralph··on About Userlook
No, there are nine for the directions, one for the cheese, and another, the eleventh. IOW, the bottom-left one here. http://userlook.com/s/img/IKA_spectrum.jpg No code seems to make it appear.
ralph··on Fedora to simplify filesystem hierarchy
Another benefit from the split continuing was the smaller the root filesystem, the bare bones needed to get up and running, the less chance of filesystem or data corruption occurring. This meant your had a bootable system with which to repair the other bigger filesystems instead of having to boot from tape.
ralph··on About Userlook
What's the 11th image for in the background sprites?
ralph··on Storing hundreds of millions of simple key-value pairs in Redis
The reason for the convention is that there's often only one form of success, so 0 suffices, but there may be many causes of failure.
ralph··on Raspberry Pi: An ARM GNU/Linux box for $25. Take a byte
It's an ARM11 SoC running Linux, of course you can program in assembler. And ARM assembler is a very nice one to start with, many did due to Acorn's Archimedes home computer.
← PreviousPage 11 of 26Next →