Tagged with code

Install capybara-webkit gem on Ubuntu

- 2012-03-01 11:01:34

Dear future Caius searching for this issue,

--More--

Use Readline With Default Ruby on OS X

- 2012-02-05 18:13:20

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.)

--More--

Defining Ruby Superclasses On The Fly

- 2011-12-18 01:13:14

Any rubyist that's defined a class should understand the following class definition:

--More--

Experimental Procrastination

- 2011-11-07 00:41:49

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

- 2011-10-30 17:36:48

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--