Javascript does not have its own built-in function for formatting dates. You would have to create one from scratch. I found this function somewhere in the net. I forgot who the owner of this one is but if you (the owner) come across your function, please do let me know. This was very useful and what I needed. Easy to use, no hassles.

Sample usage would be date_format(new Date("07/01/2008"), "!mmmm !d, !yyyy")

I searched through every Google search results and wondered why after updating my apt-get source list, installing Java in Ubuntu still did not work out. It turned out that my source list were lacking some sources in it. If doing this command

apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

will give you an error that package is not found, go to the source list at

vi /etc/apt/sources.list

and use your text editor to check if these lines are there.

deb http://us.archive.ubuntu.com/ubuntu feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu feisty universe multiverse

If not, add them. Update apt-get again by typing

apt-get update

and then run the same command to install Java 6.

apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

Follow instructions during installation. To verify that Java 6 has been installed in your system, type

java -version

This post assumes that you are logged in with an account that has root access. If you do not and you are unable to execute any of these commands, add the command sudo.

Each Unix-based (I just call them Unix based since these new OS now were non existent at the time that only Unix and later on Linux were around) OS has a package manager command that will do the downloading and installation of the package specified. If you want to do installations the old fashion way … downloading the file, extracting and moving it to the desired location it’s still pretty easy for say, Apache Tomcat 6 Server. Do the following steps.

  • wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.14.tar.gz
  • tar xvzf apache-tomcat-6.0.16.tar.gz
  • Check the Apache Tomcat’s website for any new version and just change the path and filename for it.
  • mv apache-tomcat-6.0.16 /usr/local/tomcat
  • You can place it anywhere you want in the file system. It is a matter of personal preference. In this case, the new folder will be tomcat instead of apache-tomcat-6.0.16
  • cd bin
  • ./startup.sh

This is assumed that you have Java installed. If it is not installed, then Apache Tomcat will not run as it is dependent on the Java Runtime Environment.

Related Posts Plugin for WordPress, Blogger...