Dear future Caius searching for this issue,
--More--Tagged with code
Use Readline With Default Ruby on OS X
OS X Lion comes with ruby 1.8.7-p249 installed, although it's compiled against libedit rather than libreadline. Whilst libedit is a mostly-compatible replacement for libreadline, I find there's a couple of settings I'm used to that don't work in libedit. (Like history-beginning-search-backward.)
Defining Ruby Superclasses On The Fly
Any rubyist that's defined a class should understand the following class definition:
--More--Experimental Procrastination
A while ago I read a blog post that Elizabeth N wrote, on the value of writing self-serving code. Ever since I've been moderately aware of when I've written self-serving code, usually either at hackdays, or just little projects where I'm either experimenting with something or just bashing out a new idea.
--More--Install GCC-4.2.1 (Apple build 5666.3) with Xcode 4.2
As of Xcode 4.2 Apple have stopped bundling GCC with it, shipping only the (mostly) compatible llvm-gcc binary instead. The suggested fix is to install GCC using the osx-gcc-installer project. However, I wanted to build and install it from source, which apple provides at http://opensource.apple.com/.
--More--