Sunday, April 13, 2008

Javascript Made Easy: Prototype and Scriptaculous

A reader suggested I read Prototype & Scriptaculous in Action by Dave Crane, Bear Bibeault, and Tom Locke. All I can say is Thanks!! What a great read.. If anyone is interested in throwing in highly professional Javascript effects into their webpages, or using the Protoype library to simplify Javascript for dynamic web pages, I highly recommend skipping the online information and go straight to this book.

I'll try and provide some more details later. I have a busy day today :)

Glassfish on Ubuntu

Glassfish v2ur1 was surprisingly easy to install on Ubuntu 7.10 server version on an x386 desktop. Here's the breakdown of the steps...

1.) Install JDK 5 or later on Ubuntu.

  sudo apt-get install sun-java5-jdk
2.) At this point I created an /opt/app directory and copied the glassfish installer to /opt/app to expand and execute.

3.) Set JAVA_HOME to the JDK you have installed on your system. (i.e /usr/lib/jvm/java-1.5.0-sun-1.5.0.13)

4.) Run:
  1.    % java -Xmx256m -jar filename.jar
    This command will unbundle GlassFish and create a new directory named 'glassfish' rooted under the current directory.
  2. If you want to run glassfish as an app user this is the point to chown -R : glassfish. Then run steps #3 and #4 as the
  3.  % cd glassfish
  4. % chmod -R +x lib/ant/bin
    % lib/ant/bin/ant -f setup.xml