It is not a recommended practise to have libraries placed in Tomcat’s lib directory to access classes in a web application. However, there are cases when you may want to flout this practise. Tomcat’s class loading mechanism will not allow you to do so since the web classes and the lib classes are loaded by different class loaders. The workaround in such a case is to use a custom bootstrap loader. This loader should be used to load all the application specific classes.
An example of a custom bootstrap loader is given below. Continue Reading
There are a bunch of command line utilities bundled with Windows that can be real life-savers. You may find yourself using these tools again and again once you get to know them.
Here’s a list:
This tool creates a list of installed drivers. Continue Reading
After having tried out various review methods like direct review, reviews over email, pair programming etc, I have found that a combination of tool-assisted code review and direct review (on an as needed basis) works out to be the best in terms of efforts spent and quality of the output.
SmartNBear.com:Pros and Cons of Four Kinds of Code mentions the pros and cons of the various types of reviews.
My first experience with Crucible by Atlassian was a bit unnerving. However there were many obvious advantages that I quickly noticed:
- Making a comment right where it make sense. i.e. near a particular line of code. This is a killer feature.
- Enforcement of workflow
- Close integration with Perforce (since we use Perforce) Continue Reading
Backup has been on my mind, since I started blogging on WordPress. No blog owner wants to go through the pain of losing his ideas and re-creating his writings again.
After a night worth of efforts, here’s a simple script to backup a WordPress.com hosted blog in two ways.
- Mirroring the entire blog site
- Using the “Export” feature of WordPress.com to export the blog site to a local xml file.
This is a WordPress-only feature. The xml file can be imported in WordPress.com. Continue Reading