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 geek
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.
The Shell Meme
I ran across The Shell Meme on Lincoln Stoll's blog, and figured I'd, uh, borrow it.
--More--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--