Ruby on Rails 2.2

What a week, first NetBeans 6.5 came out and now Rails 2.2 is out. The new version has a couple of interesting new things like internationalization out-of-the-box, thread-safe!, and JRuby becomes more and more a serious platform for Rails. Just great news, I guess I will spend the weekend Rails diggin … Read more about the new features here.

Ruby on Rails guides

Rails i18n and Google Group

heli's blog heli 22 Nov 2008 No Comments

Smush.it! Use it!

I am kind of a performance geek, I like it lean and fast. Although I have to admit that in many cases optimization is not useful or not relevant (I learned a couple of lessons in this area), it is always interesting. As my focus more and more shifts to Web development, I am constantly looking for ways to speed up things. In fact I think Web development is one of the software areas where performance optimization is constantly neglected.

Images are a great portion of a website, they help to make it fancy and good looking. They also have great potential for optimization, to speed up your website and minimize you traffic. There are several ways to improve image size and , you don’t have to know them at all, just use smush.it! Smush.it is a tool from Yahoo performance team members that let you optimize your images on the fly. Normally I would now explain how to use the tool and so forth, but not smush.it. It is as simple as it can be. Just go to the website and get a free overhaul for your images. Oh and btw plans are to make the tool open source :) Love it

heli's blog heli 21 Nov 2008 No Comments

Configure Rails with MySQL under Ubuntu - Socket Problem

I am currently developing a Ruby on Rails (RoR) application under Ubuntu. I am using MySQL as the database and Netbeans 6.1 for developing. When I tried to access the database, I got following error:

No such file or directory - /tmp/mysql.sock

Ok, pretty straight forward. Since in Ubuntu/Debian the mysql.sock is located at /var/run/mysqld/mysqld.sock, I added

socket: ‘/var/run/mysqld/mysqld.sock’ #ubuntu/debian

to the database.yml. Trying the new configuration, gave me a new error:

rake aborted!

EMULTIHOP (Reserved)

Nice, I couldn’t understand the error message, so I started googling. Not too many useful results, but I found a blog entry that says I should use 127.0.0.1 instead of localhost. So I changed

host: localhost to host: 127.0.0.1

and I deleted the unnecessary socket entry

socket: ‘/var/run/mysqld/mysqld.sock’ #ubuntu/debian

Everything worked and the Day was saved, ready to conquer Rails :) Happy coding!

heli's blog heli 13 May 2008 12 Comments