The answer to the question of quite a number of problem.

In the world right now is quite a number of pressing issues. Things like global warming, green house gases, lack of portable water, lack of living space etc. Basically a lack of resources. I think have the answer. Reduce demand. We can't or can we?

However about reducing population? Spare a thought for the other species. We need space so do they. Some country are doing their part. Some are not. Reducing the population will reduce the need to produce green house gases. Solar power plant and hydro electric dam will be sufficient.

Less population also mean that each individual has more space. And will not accidentally step on another toes. Less chance for aggression and hence less chance of war. We have more resources to go around hence less need to fight for it.

Updates: 19/9/2009 6:18am +8 GMT
I am right. Popular Science just posted an article http://www.popsci.com/environment/article/2009-09/contraception-cheapest-way-curb-carbon-dioxide.
In there is a research article to back it up. India better start doing its part to control its population.


But what is making it difficult is that people do not see it that way. Economy itself preach a exact opposite. You need to be increase year on year to have an improving economy. Insurance. As the pool grow, the maturing account will get more money. Government are pushing for a higher population to prop up demand, GDP and also internal consumption.

Why can't we automate and live with the current population.

Believe in God not man.

Looking at what happen recently, monk in financial tussle, preacher in sex scandal, pastor turn singer, people in position of power due to religion. This reiterate the statement "Power corrupts. Absolute power corrupt absolutely."

Everyone do something for the sake of another. Cause and effect. Action reaction.

Marketing and Sales.

What is the difference between them? Marketing and Sales? Marketing is the action of convey the information that it is good and beneficial. Sales is this context is a noun. It refers to the activities where a certain good or services is exchange for services or money.

What is the difference between a person working in marketing and a person working in sales?
I have no idea but this is what I think are the difference.
1) Marketing make the services look good. Through the use of verbal and visual media.
1a) Sales folks make the services look good verbal and influence you into feeling the good or services are good enough for you.

Rainbow Connections


Rainbow over SengKang. It is a good sign that this estate would be a wonderful place to stay.
Posted by Picasa

Jasper Server Install in Glassfish

JasperServer, a repository for your Jasper Report template-ing needs.

Recently my colleague approached me to help him setup a reporting server and come out with the report templates for our "project". He did some research and decided to use JasperReport. (Because we have to pay for Crystal Reports haaa.)

So JasperServer was the facto for scheduling of the report. At the same time it can also help consolidate the templates and resources created from IREPORT.

So we downloaded JasperServer. But it was running on Tomcat. The installation instruction only come with Tomcat and JBoss. So well what the heck, I was familar with GlassFish and Java 6 has such good monitoring tools build in, I setup the JasperServer in GlassFish.

It was not hard.
1) Install Glassfish as per their instruction. (Their instructions is as good as it can get so you will not hear it from me)
2) Open up the Install instruction of JasperServer. In it, it will inform on the database setup. In one of the section it will list down the steps to setup mysql server. Follow it. Execute it in MYSQL. You are almost done.
3) Create the connection pool in Glassfish. The account and password are define in the steps you took in step 2. By default you may only connect locally. ie Glassfish and Mysql are on the same server. The database name is jasperserver and username should be jasperdb if you follow the instruction in 2.
4) Next create the JNDI name and tie it to the connection pool. The jndi name to create should be found in the jasperServer.war/WEB-INF/hibernate.properties. The default would be jdbc/jasperserver
5) Deploy the jasperserver.war.
6) Make correction to the hibernate SQL dialect. (This is also found in the install instruction package with Jasperserver) Then depending on which kind of installation your Glassfish is in, either Standalone or Cluster enable, you will also need to change the dialet properties in /domains//applications/j2ee-modules/jasperserver/WEB-INF and /nodeagents///application/j2ee-modules/jasperserver/WEB-INF.

Why 2 place? Well just to be safe. You can just update the domain site and upon restart the configuration should sync over to the instance. I have not figure out which portion of the Glassfish configuration control this sync process at every restart of the application server instance.

So there you have it. JasperServer in Glassfish. Much better than in Tomcat.
For someone who have been meddling with Java and middleware installation long enff, this ain't that difficult.