March 2007

You are browsing the archive for March 2007.

Slicehost: installing imagemagick

Get imagemagick running with RMagick on your Ubuntu slice:
PLAIN TEXT
CODE:

sudo apt-get install imagemagick

sudo apt-get install imagemagick9-dev

sudo gem install rmagick

Rails: model == file

If you're thinking about saving yourself a few files by placing a couple of model classes in the same file in your Rails app, think again. It seems that Rails load structure (at least in recent versions) will puke on that setup.
I was using Single Table Inheritance, and it seems a good idea -- [...]

RFC: Reading material

Ok, I'm bored. About 6 months ago I did a major RSS feed purge. I had a few too many time wasters in the list, and I migrated to Google Reader from NetNewWire at the same time...but, now, I'm bored. I don't want junk, but I need a few more good tech [...]

sIFR

Cool Flash text replacement technique. Very interesting.

Free acoustic guitar ringtones

I've intended to do this for a while, but tonight I actual sat down for a few minutes and did it. Here for your listening pleasure, are a couple of quickie acoustic guitar ringtones. I gated them down and mixed them for looping. They probably don't sound spectacular on a good speaker, [...]

Rails: content_tag block fix

Currently (as of 1.2.2), Ruby on Rails useful content_tag method fails if you try to pass a block to it in code. The following syntax works in a view template:
PLAIN TEXT
RUBY:

<% content_for('div') do %>

this is the <b>div content&lt;/b>.

<% end %>

But, if you try to do the equivalent in ruby code (like in a [...]

Switch to our mobile site