fousa archive

  JAN FEB MRT APR MAY JUN JUL AUG SEP OCT NOV DEC
2010 8 X 24 5     1          
2009 15 13 3 2 2 1   4 6 5 5 6
2008                     1 5
26 FEB

Contact form validations with AR helpers

This is how you validate a contact form with the validation helpers used in ActiveRecord. This piece of code enables you to validate: presence of the name and content format of the website (example: http://www.fousa.be) format of the email address (example: test@fousa.be) value of the snow field (snow must be "cold") I also imple...

24 FEB

My Git integration with Terminal

The following scripts are added to my ~/.bash_profile for some Git integration. BRANCH AUTOCOMPLETION This piece of code autocompletes the branches when you press TAB. So "git checkout ma" and press TAB, will result in "git checkout master". _complete_git() { if [ -d .git ]; then branches=`git branch -a | cut -c 3-` tags=`git ta...

23 FEB

I really can't wait to order my iPad... Still one month to go though! I started some tryout development, and it's really cool! Especially since I have some small experience in iPhone development! Code wise it's almost the same... Go Apple, and release the damn thing!

21 FEB

The cheapest mail/blog solution for me

At first I had all my services (mail and website) at Joyent. But then I got familiar with Heroku and I'm all obsessed about the service. So I decided to switch to Heroku for my blog. But it seemed a bit expensive to keep only my email at Joyent. So I decided to user Google Apps for my email. And now at this moment fousa.be goes to this per...

18 FEB

I already received some comment on this article. It was a small update on the code snippet, and it was better! So I added it!

17 FEB

Nasty load problem with Rails 3

The following line of code loads the data from config/config.yml file into a global CONFIG variable. The piece of code below is executed by the initializer initializers/load_config.rb. CONFIG = File.open(RAILS_ROOT + "/config/config.yml") { |file| YAML::load(file) } This works great for Rails 2.x.x. But in Rails3 it fails... ...

17 FEB

"You no longer need to call h(string) to escape HTML output, it is on by default in all view templates. If you want the unescaped string, call raw(string)" - Rails3

16 FEB

Heroku and Github for the same project

WHAT'S THE PROBLEM? I have a local branch called master. And I'm currently pushing this branch to my remote Github branch. Now I also want this branch to be used as my Heroku master branch. So I can deploy my code to the Heroku servers. What is my problem? I have a config.yml file with sensitive information inside. And I want it to be push...

15 FEB

Oké, I have to confess something. DataMapper is not yet implemented... I searched a long time this weekend and I came to realize I'll have to implement tagging manually! Reason for this is that the dm-is-taggable gem doesn't support the newest dm-core... Sucks!

12 FEB

Generate a previous rails project // 2 comments

Because I'm a close follower I already installed Ruby on Rails 3.0.0 beta... But now every time I want to generate a rails application, it's generated with the newest beta version. Below is a small code snippet on how to generate a rails project with a previous version of Ruby on Rails. RUBY ON RAILS 1.2.3 This is how you generate a Rai...

10 FEB

For the developers reading my blog... I open-sourced the code of this website to help beginning Ruby on Rails developers with some basic blogging code. But also for the export developers to make my code better and more secure! So if you're interested, you should take a look at github.com/fousa/fousa.

10 FEB

I subscribed to Barcamp Antwerp on march 6th, 2010. I'm gonna give a talk on Heroku and how easy it is to get your Rails application online. If anyone is interested? Here is the link.

8 FEB

I received 2 updates on my "check the server response time" code... You can verify the updates here. If anyone else has a suggestion, post a comment and I'll add it to the blog post!

8 FEB

Convert MySQL DB to PostgreSQL DB

When I was converting my blog to the heroku, I decided to convert my local database from MySQL to PostgreSQL. This for developing purposes because it's a bad practice to have 2 different systems in development and production. This is my current setup: 1 local MySQL database with my production dump in it. A new PostgreSQL database that is up a...

4 FEB

I'm in love... (again) This time it's Ruby on Rails 3 that makes my body shiver! This weekend I'm trying to upgrade fousa.be to the newews beta version of Rails 3. let's hope that works out just fine!

go to the top ↑ ← back to the blog