Arun Gupta, Miles to go ...

Arun Gupta is a technology enthusiast, a passionate runner, and a community guy who works for Sun Microsystems.
« Previous day (Jun 22, 2008) | Main | Next day (Jun 24, 2008) »

http://blogs.sun.com/arungupta/date/20080623 Monday June 23, 2008

New "Community: GlassFish" category for java.net bloggers

If you are a java.net blogger and blog about GlassFish then consider using "Community: GlassFish" category for any new entry as shown below:



All the consolidated blogs can then be read here. blogs.sun.com already makes it easy by providing tags, for example you can read all GlassFish blogs from Sun.

Here are some other related pointers for you:


Technorati: java.net category glassfish

del.icio.us | furl | simpy | slashdot | technorati | digg |
|

TOTD #35: Rails Database Connection on Solaris

Are you deploying your JRuby-on-Rails applications on Solaris (or any variety of Unix) and not able to connect to the database ?

I experienced it last week so thought of sharing the tip here. Luckily it's really simple.

Here is the default generated "config/database.yml"

development:
  adapter: mysql
  encoding: utf8
  database: runner_development
  username: root
  password:
  socket: /tmp/mysql.sock

The only required change is to add "host: 127.0.01" for the required database configuration. The updated fragment is shown below (with change highlighted):

development:
  adapter: mysql
  encoding: utf8
  database: runner_development
  username: root
  password:
  socket: /tmp/mysql.sock
  host: 127.0.01

Even though "host" is required for TCP connections but the database connection does not seem to work without this entry. The exact same application works without "host" entry on Windows and Mac OS.

Alternatively, you can always install the JDBC adapter as explained here.

Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. A complete archive is available here.

Technorati: totd rubyonrails jruby ruby opensolaris mysql

del.icio.us | furl | simpy | slashdot | technorati | digg |
|
« Previous day (Jun 22, 2008) | Main | Next day (Jun 24, 2008) »

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.