When I try to create datasource for a glassfish server, the default connection size is 128, but I find the default connection size for mysql database is 100, I need to increase it.

Use root user execute the following code: mysql> set GLOBAL max_connections=200;

Then, it works well.

Thansk to Apache’s good work, Ant 1.8 has released as 20100209.The Change log is here:

*  Lexically scoped local properties, i.e. properties that are only defined inside a target, sequential block or similar environment.
* <import> can now import from any file- or URL-providing resource – this includes <javaresource>.
* Various improvements to the directory scanning code that help with symbolic link cycles (as can be found on MacOS X Java installations for example) and improve scanning performance. For big directory trees the improvement is dramatic.
* The way developers can extend Ant’s property expansion algorithm has been rewritten (breaking the older API) to be easier to use and be more powerful.
* a new top level element extension-point allows build files to be extended with custom targets more easily
* At the same time the if and unless attributes have been rewritten to do the expected thing if applied to a property expansion (i.e. if=”${foo}” will mean “yes, do it” if${foo} expands to true, in Ant 1.7.1 it would mean “no” unless a property named “true” existed). This adds “testing conditions” as a new use-case to property expansion.
* Ant now requires Java 1.4 or later
* new task include provides an alternative to <import> that should be preferred when you don’t want to override any targets
* numerous bug fixes and improvements as documented in Bugzilla and in WHATSNEW

What’s the most important invention from the network came to the world for people’s communication? The only answer is Email.

Why?

I will explain why we treat email much more important than IM tools such as GTalk or Yahoo Messages.

In the begining of my first time to meet internet, I find chatting room is interesting, BBS is interesting too, at that time, ICQ is a very important part for the communication among people. 2 years later, when I need to work with computers and internet, I find it’s really not a good idea to keep ICQ online without any “busy” or “away” information tips, I can not force myself on the job in my hand, the same situation display on Yahoo Message and GTalk’s date. After some times, I found that Email is the best tools for people’s communitcation in working time. You may agree with me by the following:

1.Email never break my working. I will never need to response the email like IMs, and make sure I can force on the jobs in my hand.

2.Email is archival. You should find what happened and what is happening, IM tools have logs but it’s too disrupt to find what’s the important.

3.Email is remarkable. I can remark my email by star or different colors by thunderbird or mutt, I can use POP or IMAP protocol both on my phone, desktop or laptop.

4.Email is stable. We do not worry about losing any important messages.

5.Email is controllable. At least you may know how to use Filter feature, that’s uesful when you need to resolve many emails.

The valuable part is doing things well, so force on what are you doing now, use Email instead of IM tools, it’s a good idea, at least, for me and my most friends.

Most php CMS or BBS applications ares based on MySQL, such as some very popular programs: wordpress and joomla. But I do not want to use MySQL. I have a PostgreSQL database server, why I have to set up another MySQL database server?

When I need a CMS and a BBS program, I google on the web, and test many programs, although you can find many discussion about wordpress, Joomla on PostgreSQL, but the bad news: it does not work.

Which is the best CMS and BBS program based on PHP and PostgreSQL? the Award is:Drupal and phpBB. If you have set up your Server to support PostgreSQL, just drop your application to the web directory, then visit it by web browser, you should find the configuration page with PostgreSQL support.

Thanks to Drupal and phpBB, very good work on PostgreSQL.

Firefox is slow at the moment, and I want to use Google’s online service, I
think Google’s Chrome is a better choice. Because Google just support Debian and
Redhat series, I have to compile it manually. The good news: we have slackbuild.org for Slackware user.

Search on slackbuild.org, for the following 4 packages: mozilla-nss, GConf, google chrome, ORBit2

1. Compile ORBit2 and install
2. Compile GConf and install
3. Compile mozilla-nss and install
4. This step is very important, you need to make some lns.
ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d

If you are running a Slackware 64, just replace /usr/lib/ by /usr/lib64/

5. Compile Google Chrome and install it.

Make sure you didn’t lose any steps, if you do not know how to compile by slackbuild.org, refer this link:http://slackbuilds.org/howto/.

Software environment: Slackware 13, google chrome 4 beta.