Archive for March, 2008

‘SELECT IN’ in rails

Thursday, March 13th, 2008

#find supports select in conditions in just the way you would expect, so

Model.find(:all, :conditions => ["attribute IN (?)", [1,2,3]])

generates

SELECT * FROM models WHERE (attribute IN (1,2,3))

for MySQL.

Web apps on your desktop

Tuesday, March 11th, 2008

Fluid is a site specific browser for OS X, that lets you can take the web apps that you use all the time out of your browser and on to the desktop.

I’ve been using it with Gmail to give it’s own application window, dock icon etc. on my desktop rather than it just being lost amongst the 101 other tabs I have open.

If you use it with Gmail I recommend you install Todd Ditchendorf’s user script to stop a gmail popping up a blank window when you click on an external link.