Using Compass, blueprint semantic and sass syntax in Rails 3.1

If you’re using the fresh new prerelease of Ruby on Rails (version 3.1.0.rc4 in this article), and if you’re a user of the wonderful Compass stylesheet framework, you may have been at the same time amazed of the integration of SASS into Rails, and puzzled by the way it seems to violate the compass approach.

Here is how to re-enable Compass, and the SASS syntax for your projects in Rails 3.1, it’s not very hard:
Continue reading

Virtualbox: auto-mounting a shared folder on Ubuntu at startup

For developing web applications under Ruby on Rails, I’m using Ubuntu server 10.10 (Maverick Meerkat) under Vitualbox, on a Vista host.

With this setup, to mount a shared folder under Ubuntu, you have to type a command like in this example:

mount -t vboxsf apps /home/daniel/apps/

But it means you have to type it after each reboot, and it would be much more convenient if it was mounted automatically, wouldn’t it ? Continue reading

A Rails3 dev environment with Virtualbox and Ubuntu server

Some operating systems are more friendly than others for developping Ruby on Rails applications.

But I can say from my experience that windows is hell NOT a friendly environment.

So,  a good way to work in decent conditions is to use VirtualBox + Ubuntu server to create a development environment for personal usage. Continue reading

Stuck with a programming question ? Stackoverflow.com is just brillant.

Today, I just started to pay closer attention to stackoverflow.com , and I’m just really glad I did.

My ritual, when searching for programming-related answers, is to fire up Google, search, find some related blogs and articles, read a few, figure things out, and write, hack or fix my code. And eventually, spend a little time discovering the blogs and these sites, and save their feeds in Google reader for later reading.

But I don’t know why, I never really paid attention to stackoverflow.com, until yesterday when I realised how often I found relevant, high-quality info on it. I think it’s something with their visual style, which looked for me like one of these sites that just agregate contents. Some psychological phenomenon similar to ad blindness just prevented me to simply pay attention. Continue reading