Apache, MySQL, PHP

It is pretty easy to install and configure Apache on both Windows and Linux. And so is MySQL, and so is PHP support. Still configuring those things to work perfectly needs certain effort, especially when it comes to installing Tomcat, Perl, mail servers or ftp servers etc. For those who don’t want to mess up with opening and saving several configuration files, I would recommend using packaged distributions for Apache, MySQL and PHP. These kind of distribution packages exist for both Windows and Linux platform and they perform right just out of the box. To name a few:

  • apache2triad: Server bundle of : Apache2 , MySQL , PostgreSQL , OpenSSL , Xmail , SlimFTPd Software developing triad of : PHP , Perl and Python + Apache2TriadCP , PHPmyadmin , PHPPgAdmin , AWStats , UebiMiau , PHPXMail , PHPSFTPd. All latest stables , all manuals.
  • AppServ: is an merging open source software installer package for Windows and Linux.
  • FoxServ: is an Apache / mySQL / PHP installer package for Windows and Linux. Unlike NuShpere or PHPTriad, FoxServ features the latest version of all included pacakges, user defined configuration during installation, PHP as a module, PEAR, and the Zend Opt.
  • XAMPP: is a very easy to install Apache Distribution for Linux, Solaris, Windows and MacOS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin.

I’m still not sure about which package performs best. Each has its own strengths as well as weaknesses. But I’m currently using XAMPP on my Windows box.

The Truth About Java Libraries

In one the speeches of Mike Cannon Brooks, he tried to summarize his experience with:

  • it is not a problem if you use a lot of libraries; it is a problem if you don’t manage your dependencies
  • don’t use libraries superficially, but study them in deep and explore all their functionalities
  • find and take advantage of their extension point
  • perfer lightweight libraries
  • don’t write too much code; most times it is enough to glue existing libraries
  • extend your libraries; if it is not enough, be brave and change them

Java Pesticides

When it comes to programming, bugs are inevitable. PMD is one of the open source java code inspector. It scans the source code and identifies

  • Empty try/catch/finally/switch blocks
  • Unused local variables, parameters and private methods
  • Empty if/while statements
  • Overcomplicated expressions – unnecessary if statements, or loops that could be while loops
  • Classes with high Cyclomatic Complexity measurements

PMD

It can just simply plug-in to your favourite IDE, or work together with Ant. The other available options are:

GMail API for Java

Now in its 0.3.12, I think g4j is evolving gradually. I have just downloaded the source codes and was playing around with its sample application. So I wouldn’t know how great the API really is, but I’m going to find out about that sooner or later. This is what the author describes about his/her API:

GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.

An Email application, GMailer for Java is also built to demonstrate the usage of the API. It is planned to include minimalist email capabilities such as browse, search, read, send mail and download attachment.

And the screenshot for the example provided.

My Screenie