Archive for May, 2008

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

Javaworld about Applets and Java’s RIA future

These are two very interesting articles about applets, their history and predictions about their future.

  • Are applets making a comeback? by Jeff Friesen.
    Jeff asked some Gurus (Roman Guy, Chet Haase, Jim Weaver and others) about their opinion. I found it very interesting how Roman and Chet, authors of Filthy Rich Clients, responded to the questions. For those who don’t know, Chet just left Sun a couple of weeks ago and now works for Adobe (AIR, Flex).
  • The new applet experience by Jeff Friesen.
    In this article Jeff takes a tour into Applets, JavaFX, and Java 6 Update n. Very nice to read and he points out some rough edges of using Java for RIA’s.

heli's blog heli 06 May 2008 No Comments

Groovy 1.6 beta released

Groovy 1.6 has been released. Most noteable are the huge performance improvements. More on Guillaume Laforge’s blog entry.

heli's blog heli 04 May 2008 No Comments