So, I keep having to reinstall mysql5 and rubygems from time to time for various reasons. I always install mysql5 through MacPorts as a dependency for the php5 port (along with various other bits for the LA*P stack).
--More--Tagged with ruby
GTranslate
I finally wrapped up some code I've been meaning to write for a while, its a wrapper for the Google Translate API. Its also the first serious time I've used method_missing in a class, in this case its to add methods for translating between all the various languages.
Sending Array elements as individual arguments in Ruby
Lets imagine we've got an array of strings, and we want to print it out as a list of strings using printf. (If you're complaining about my logic here, hold fire for just a second good sir/madam.)
--More--Merry Testing
Just a few examples of the same test written in a few languages. Its testing setting the date on an object that is created in the tests' setup method already. These fall under the unit testing, rather than full-stack testing.
--More--Removing non-existent source from rubygems
I just came to move some ruby scripts onto my mac mini, and to do so I needed to install a couple of gems. Now I realised I hadn't installed or updated rubygems on the machine for a while, so I figured it was best to update gem before installing the gems I wanted. Easier said than done.