Monthly Archives: November 2008

fixing do_mysql hanging or install problems on mac os x

Just a quick tip: If you’re having trouble getting do_mysql to install on Mac OS X. Try the following: $ locate mysql_config /usr/local/mysql/bin/mysql_config The directory /usr/local/mysql above is your mysql directory. Then try to install do_mysql with the following command (split for readability): $ gem install do_mysql -- \ --with-mysql-dir="/usr/local/mysql/" \ --with-mysql-config="/usr/local/mysql/bin/mysql_config" This solution was found here. [...]
Posted in merb, ruby, tips | 1 Comment

sake task for remote git repo init

sake advantages sake is a tool for system-wide rake tasks. It was created by Chris Wanstrath and is now maintained by postmodern. It provides a handy way to distribute generally-useful rake tasks. The advantage of sake over, say, a script in ~/bin is that 1) you have a predictable interface and 2) its [...]
Posted in git, ruby, sysadmin | Leave a comment

Why Do Cells Have DNA?

In order for a system to reproduce itself, it seems necessary for it to hold an encoded form of itself somehow. This idea, and the inevitability of the existence of DNA-like structures within living cells, is well-illustrated using computer code.
Posted in programming, ruby | Tagged , , , , , , | Leave a comment