Archive for April, 2010
Overpopulation Mechanisms
by sonny on Apr.03, 2010, under Musings
I have a thought: I have observed that nature has 3 main mechanisms for culling overpopulation of a species, which are starvation, disease, and violence, in that order. Each is used in succession, and if the first one fails, the next is employed, often overlapping, until the numbers of individuals is returned to stable level.
Human population, for instance, have increased to staggering numbers. Using intelligence, we have overcome most starvation, disease, and violence. That’s not to say that we have totally eliminated all of these mechanisms, but rather we’ve managed to keep them under control well enough to reach a population 6.8 billion plus, and is still climbing rapidly. (US Census Bureau : http://www.census.gov/main/www/popclock.html).
Current food production, if disturbed evenly, can just sustain 6.8 billion. (Wisenet.com: http://www.wisenet-australia.org/issue59/Feeding%20the%20world.htm ). Everyone knows about the advances in medicine that have saved many lives and, although not perfect, we have governments that keep people from being violent enough not to kill one another in extremely large numbers, such as in large scale wars.
So how much longer can we do this? With our intelligence, humans are the most adaptable creatures on earth. Can we keep our numbers growing at the current rate and continue to stave off natures population controls?
Installing MySQL and SQL Server Database Drivers
by sonny on Apr.03, 2010, under Java
Note - This assumes that Tomcat is installed in c:\tomcat and the JDK is installed in C:\Program Files\Java. If you have installed these file in other locations, you will need to change your ClassPath accordingly.
Note: all these drivers, java servlets and jsp APIs are included. There is no harm in including these, even if your not using them.
For all –
1) Create folder: C:\jdbcDrivers
2) Make the a ClassPath in Environment Variables if one isn’t already there. (Right click My computer> Properties>Advanced> Environment Variables button).
3) Add the following into the value.:
.;..;..\..;C:\jdbcDrivers\mysql-connector-java-5.1.12-bin.jar;C:\jdbcDrivers\sqljdbc.jar;C:\jdbcDrivers\ jtds-1.2.5.jar;C:\tomcat\lib\servlet-api.jar;C:\tomcat\lib\jsp-api.jar;C:\tomcat\lib\el-api.jar;C:\Servlets+JSP
MySQL
1) Get mysql-connector-java-5.1.12-bin.jar from http://dev.mysql.com/downloads/connector/j/ . Download the mysql-connector-java-5.1.12.zip file.
2) Extract the zip file. Copy the mysql-connector-java-5.1.12-bin.jar file
3) Copy mysql-connector-java-5.1.12-bin.jar file into the following files:
C:\jdbcDrivers
C:\tomcat\lib
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext
SQL Server - jdbc
1) Get the driver from http://www.microsoft.com/downloads/details.aspx?familyid=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en
2) Agree to the license and download the sqljdbc_1.2.2828.100_enu.exe file
3) Extract the zip file and navigate to \Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.2\enu
4) Copy sqljdbc.jar into the following files:
C:\jdbcDrivers
C:\tomcat\lib
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext
SQL Server – jtds
1) Get the driver from http://sourceforge.net/projects/jtds/files/jtds/1.2.5/jtds-1.2.5-dist.zip/download
2) Extract the zip file an copy the jtds-1.2.5.jar into the following locations:
C:\jdbcDrivers
C:\tomcat\lib
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext