Joosearch un nouvel annuaire
7 December 2007
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.
How to gain 1000 songs with 60 lines of code
25 March 2007
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
Twitter: just on invitation view
24 March 2007
A well designed site: Strongspace
23 March 2007
A tutorial to clean your apple keyboard
23 March 2007
Textmate blogging extension
23 March 2007
A simple post to test blogging from my TextMate Extension.
Rails: plugin http_authentication
22 March 2007
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



