Archive for December, 2008

How to change hibernate settings on runtime

Tuesday, December 16th, 2008

One is you can build your configuration from scratch but what I like to do is getting the standard settings from my hibernate.cfg.xml file then change some of the values on my code. here’s how I do it

Configuration conf = new Configuration();
conf.configure().setProperty(“hibernate.connection.url”, “jdbc:mysql://”+host+”/”+dbname);
conf.setProperty(“hibernate.connection.username”, user);
conf.setProperty(“hibernate.connection.password”, password);

The Zeitgeist Movement

Thursday, December 11th, 2008

An officemate shared this video called zeitgeist. It is a documentary about some conspiracy theories on what’s going on in this world. Some of them are a bit far out but some will really leave you thinking. It made me curious so I went to the movie’s website zeigeistmovie.com and found out there was a sequel, so I downloaded and watched it too. The sequel I think was better because it suggested some actions to take to defeat the so called “evil corporations”. You can read more about this on their site thezeitgeistmovement .

How to add yum repositories on your linux CentOS system

Monday, December 8th, 2008

There are two ways of adding yum repositories to your centOS system

1. Drop .repo files into your /etc/yum.repos.d/ directory

2. Add a repository entry in your /etc/yum.conf file

you can go to http://osresources.com/11_6_en.html for more on this.

Possible solution to Error: 2003(HY000): Can’t connect to MySQL Server on….. error

Friday, December 5th, 2008

This is one possiible solution to Error: 2003(HY000): Can’t connect to MySQL Server on ******* error

this error may not be caused by wrong mysqld installation or configuration, a possible cause is that your connection is blocked by a firewall.

here’s the fix for linux systems.

on the mysql server machine, go to your shell as root and type

#/etc/init.d/iptables stop

this should disable the firewall

(if you’re not allowed to do this, ask your system admin to open connection on port 3306) :-]

Hello world!

Thursday, December 4th, 2008

finished installing my wordpress blog engine. right when my domain is about to expire.