Updating Rails on OS X

by enum on June 23, 2009

If you install XCode for OS X 10.5, it automatically comes with a version of rails. This is (generally) not the latest version however, and you must take a few steps to update it. First you need to update rubygems (…)

Read the rest of this entry »

Scripting Languages

by enum on June 22, 2009

I just thought I’d share with you Random thoughts on scripting languages by Brian Kernighan. After reading this, I looked up the source code to the unix utility wc. The GNU wc program was written in C, and amounted to (…)

Read the rest of this entry »

Replace Text Recursively with sed

by enum on June 17, 2009

Here is a quick little trick I discovered today when I needed to replace text in multiple files recursively: grep -rl -e <searchterm> * | xargs sed -i .bak ‘s/searchterm/newterm/i’ There might be a problem with files that have spaces (…)

Read the rest of this entry »

New Tattoo

by enum on June 14, 2009

Yesterday I got my tattoo extended. Have a look And my girlfriend also got a new tattoo, a birthday present… I think it’s nice.