Archive for the ‘Ruby on Rails’ Category

Epic TextMate Theme

November 24th, 2009

Okay, I’ve wanted to make a custom TextMate theme since I first installed the thing on my MacBook in 2006. Today I present you with ‘Epic’.

Installation

Grab the theme here: EpicBlue.tmTheme.zip (1.5k). Unzip it and open it with TextMate. That’s all. Enjoy!

Rails + MySQL: Case-Sensitive strings in your database

September 3rd, 2009

When using Rails + MySQL, you’ll find that normal string (or varchar(255)) fields are case insensitive. This can be quite a nuisance, but it’s easy to resolve. You need to set your table to the utf8_bin collation. By using the binary variant, you’re basically enabling case sensitivity.

Once and for all: Rails migrations integer :limit option

August 20th, 2009

I literally always have to look up the meaning of :limit in migrations when it comes to integer values. Here’s an overview. Now let’s memorise it (oh, this works for MySQL, other databases may work differently):

Useless Ruby Gems for your pleasure

August 14th, 2008

The past few days I’v taken some time to find out how to create a Ruby Gem. This has been on my to-do list for quite a while, but now I’m able to tick it off.

Well, what did I make?