Archive for July, 2007


using file_column in Ruby on Rails

Jul 27, 2007 Author: admin | Filed under: Blog, Programming

I’ve been using the file_column plugin for Ruby on Rails in the last days, so here’s some handy notes on the subject:

Installing is pretty straightfoward, just like the majority of Rails plugins:

script/plugin install http://opensvn.csie.org/rails_file_column/plugins/file_column/trunk

The first thing we need is to tell our model which column to use:

class Blog < ActiveRecord::Base
    file_column :image
end

(more…)

Installing RMagick on Mac OS X

Jul 24, 2007 Author: admin | Filed under: Blog, Programming

victory

Today I had to install RMagick on my Mac Os X workstation, as I found out, there are many alternatives to accomplish this daunting task:

1) Just use Locomotive and the RMagick Bundle.

2) Install from Darwin Ports

3) Install everything by hand

4) Drag Ask someone to do it for you.

As for the first option, Locomotive is the easiest way to setup a Ruby on Rails closed development environment on your app, on the website there’s a RMagick bundle which you can add to your apps and thus simplify everything.

Daniel Fischer has a quick guide on Darwin Ports and the RMagick instalation, looks easy enough but I wanted more control over the installation so I ended up following Marc-André Cournoyer who wrote a very handy tutorial on installing everything by hand which I followed to the letter and amazingly it all worked out ok in the end. It seems making sure the fonts are on the right place did the trick.

As for the last option, well, I’m sure you won’t need it because one of these solutions will surely work. :)

oh no, they got me

Jul 4, 2007 Author: admin | Filed under: Blog, Programming

You are Java.  You are very strong and sturdy, but this makes you a bit sluggish.
Which Programming Language are You?

Flickr PhotoStream

    Gulbenkian GardenGulbenkian GardenBioshock DudeMilkbananaBig Totem Guy  at MegacampoRappel  at MegacampoPaintBall helmetsPaintBall helmets close-upPaintBall helmets

About

Hello. This is the home on the web of Pedro Sousa, a web developer who usually writes here about design, web, technology, lifestyle and other random ideas.

I love using Ruby on Rails and I'm pationate about creating applications and websites for people who use and live on the web. Enjoy your stay here.

Interesting