Wednesday, September 24, 2008

Java for Mac OS X 10.5 Update 2

Java for Mac OS X 10.5 Update 2 has been released. Mac users (with compatible machines) should go to software updates and download soon. I just installed the update and used it to run some tests with Netbeans 6.5 and the performance is much better than running on an Apple JDK 1.5 release. Things are looking good so far...

Tuesday, September 09, 2008

Groovy Datasources - Changing Hibernate Dialect - Oracle 11g

I found a funny while working with some Grails applications today. I have been developing one of my Grails applications for about 2 or 3 weeks now. I updated DataSource.groovy on Day 1 to make the application work with my development Oracle repository and all was well.

Yesterday, I migrated my development Oracle environment to 11g and my Grails application stopped functioning. I was receiving messages stating that the correct Hibernate dialect was not able to be determined. I was forced to explicitly list which dialect to use within my DataSources.groovy file and I thought I'd share.

If you migrate to Oracle 11g (from any previous release...in my case it was 10.2.0.3), and you need to specify the Hibernate dialect then you will need to add the following line to your DataSources.groovy within the DataSource block:

dialect = org.hibernate.dialect.OracleDialect

Monday, September 08, 2008

Detecting Google Chrome In Javascript

Thanks to javascript.internet.com, here is a quick post on how to detect the new Google Chrome browser from within your Javascript code.


var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;

By the way, if you are looking for some great javascript tips, take a look at javascript.internet.com as it is an excellent resource.

Monday, September 01, 2008

Having Fun with JavaFX

I finally had a chance to play around a bit with Fx over this long holiday weekend. At this point, the JavaFx script language is fairly straight forward, but I still find myself looking at examples in order to get the syntax correct when building a GUI.

http://silveiraneto.net/2008/08/11/javafx-draggable-node/

http://silveiraneto.net/2008/07/31/javafx-creating-a-sphere-with-shadow/

I will be posting some updates to this blog at a later date. As for now, I've successfully created a news ticker using JavaFX and I plan to release the source once I've worked out all of the rough edges.

More to follow...