Monthly Archives December 2006

Bash magic

I’ve been using bash for ages, I’ve read the man page a couple of times (it’s bible-sized). I keep finding new features though:

Brace expansion: ls *.{c,c~} = ls *.c *.c~
C-x C-e: invoke $EDITOR and edit
stty -ixon : disable flow control (so you can use C-s to forward search).

source.

Asia 2006: Singapore

This post is brought to you by my subsiding hangover. Remember, drink responsibly!
Our second stop (after HK) was Singapore. Why Singapore? I’m not entirely sure. It was the luck of the draw, I suppose. Singapore was one of the destinations that we haven’t been to, Cathay flew there, so why not?

Idle Randomness

I’ve gotten an outdated mac mini to play with. The hardware is subpar (1.5ghz G4?, half a gig of ram) but OS X, oh man. It’s like someone took one part windows, one part linux and one part illicit drugs. It feels strangely like home. I keep hitting alt-tab to switch between windows, but it’s [...]

Steve the Gambler puzzle.

Des Traynor posted a puzzle his buddy got at an interview the other day. Briefly, from a list of integers, find N integers such that they add up to zero. I think most people will agree that it’s an easy programming problem. I remember doing something similar either in second or third year university. The [...]