Juste un post pour vous présenter joosearch un annuaire basé sur DMOZ.

What is the problem?

Sometimes you want to run  several instances of the same application on your server. How to easily do this in rails?

The solution :)

Rails offers us the environments, allowing to run an application under different status: development, test or production environment.  We can this by adding other environments for our needs.

We just have to create in the database.yml a specific database connection for each new environment:

prod1:
  adapter: mysql
  database: prod_one
  username: root
  password: password

and to create a specific configuration file ‘prod1.yml‘ in the directory config/environments/.

After this, you just have to generate the database schema with the following command:

rake db:migrate RAILS_ENV=prod1

And to run the server on a specified port:

./script/server -p 4000 -e prod1

Now you are able to run as instance you want of your rails app on your server.


Hula is not dead

2 April 2007

Hula was a simple e-mail & calendaring web app developed by Novell. The project has not been a succes due to communication mistakes from the dev team (no release). The project has been forked recently and renamed: Bongo.

A lot of bands offer a mp3 song on the site of the SXSW festival. With some lines of ruby, you can easily get all these songs.

First, you will have to install hpricot, a simple html parser, with the following command:

sudo gem install hpricot

Then download the ruby script and launch it with the command:

ruby sxsw.rb

A sample view of a twitter account displaying posts just for friends. It’s a good way to increase its amount of “twitter friends”.

twitter invit

This site is clean with an efficient wording.

A simple post to test blogging from my TextMate Extension.

Just a little note to keep in mind these 2 links about the plugin http_authentication:
http://blog.caboo.se/articles/2006/05/28/htpasswd-plugin
http://www.rubyinside.com/http-authentication-plugin-for-rails-13.html