Genius-Field Database Connection Pool API 0.2(alpha) Release

We are glad to inform you that our new version of Genius-Field Database Connection Pool is released. From now on, we will post the change logs here as well as the jar distribution and put other stuff on Google Code. You may visit here.

0.2-dev (2009-09-03)
New features:
Initial release
0.2-alpha (2009-09-07)
Bugfixes and minor changes:
Compatible with JDK 1.5

0.2-dev (2009-09-03)

New features:

Initial release

Download dbcp-0.2-dev

0.2-alpha (2009-09-07)

Bugfixes and minor changes:

Compatible with JDK 1.5

Download dbcp-0.2-alpha

Share
Posted in Java Technology | 2,917 views | Leave a comment

New Genius-Field Database Connection Pool API Coming Soon

We are developing new version of Genius-Field Database Connection Pool in order to make it more stable and efficient. In the new version, the entire structure will be changed and it hopefully will be easy to use and easy to control.

We are not going to make any updates for the old API and the new version will be open-source and hosted on Google Code under GNU General Public License v3. We have already created the project home on Google Code, but nothing in it. You may visit here if you like. There is no ETA for the new version release. We will make announcement when it arrives.

Share
Posted in Java Technology | 2,258 views | Leave a comment

Basic Knowledge of Cygwin

Cygwin is a Linux-like environment for Windows. It is something like a Linux simulator, but actually it is NOT. Cygwin is not a way to run native linux apps on Windows. You have to rebuild your application from source if you want it to run on Windows. Cygwin is not a way to magically make native Windows apps aware of UNIX ® functionality, like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

Because it is simple to use and you don’t need to install a real Linux on your computer, it is widely used for Windows user. The most common situation to use Cygwin is when you want to use g++ in Windows. Continue reading

Share
Posted in Computer Technology | 3,228 views | Leave a comment

Genius-Field Database Connection Pool API 0.1 Release

New features:
Allow user to release all conns at one time
Allow user to watch some basic status of the connection pool
Allow user to manually drop a conn if it works abnormally

Bugfixes and minor changes:
Fix the number of conns may be less than the minimum requirement

Download sql-01

Share
Posted in Java Technology | 3,006 views | Leave a comment

Further study on duplicate elements of HashSet

In mathematics, it is trivial to check duplicate elements because the properties of an element are simple. It may just contain numbers, letters, and colors and so on. However, it is complicated to check whether two elements (objects) are the “same” in computer programming.
In Java language, the Set interface is defined as “A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1 and e2 such that e1.equals(e2), and at most one null element”. The HashSet class implements the Set interface. How does it check? Does it really use equals method? Let’s have a look. Continue reading

Share
Posted in Java Technology | 28,301 views | 3 Comments

Build up C/C++ environment on eclipse using CDT + cygwin

More and more people want to use open source IDE instead of Visual Studio to writing C/C++ because it’s clean and free. Here, we introduce eclipse to writing C/C++ program. Eclipse is an excellent IDE for Java programming. Due to its open source platform, we may use it for C/C++ programming as well. CDT(C/C++ Development Tool) is a plugin that allows eclipse to support C/C++. Cygwin is a Linux-like environment for Windows and it allows you to use gcc/g++ compiler. There’re just several steps to build up your own eclipse. Now, let’s go. Continue reading

Share
Posted in Programming Technology | 1,018,295 views | 29 Comments

Genius-Field Database Connection Pool API 0.1(RC) Release

New features:
Allow user to specify when the Conn will be recycled automatically if one does NOT explicitly invoke freeCon()
Throw general java exceptions and Genius-Field exceptions for easy debug

Bugfixes and minor changes:
Provide default values for the properties file
Fix getConn() may return null

Download sql-01-rc

Share
Posted in Java Technology | 2,687 views | Leave a comment

Genius-Field Database Connection Pool API 0.1(beta) Release

New features:
Initial beta release
Allow user to specify the path of properties file
Allow user to specify the class name of jdbc connector
Change package name gaccount.sql to com.geniusfield.sql
Change method name Conn.getConn() to Conn.getCon() to avoid confusion

Bugfixes and minor changes:
Properties file isn’t closed after being used
Call Class.forName() method in case of old JDKs

Download sql-01-beta

Share
Posted in Java Technology | 2,430 views | Leave a comment