How to Build Your Own Java library?

Code reuse is one of the most important factors in software development. It is a VERY good idea to put frequently-used functions together and build a library for yourself. Whenever some method is used, just simply make a method invocation. For Java, it’s straightforward to manage such a library. Here a simple example in Eclipse. The library will contain only one “add” method for demo purpose.

Step 1: Create a “Java Project” named as “MyMath”, and a simple “add” method under “Simple” class.

Package structure is as follows:

Read more

Enable lightbox effect for WordPress NextGen Gallery Plugin

The Lightbox effect in NextGen Gallery is actually not working. To enable lightbox effect, there is another plugin which works for NextGen Gallery – slimbox. Just search “slimbox”, and enable this plugin. Then enable lightbox effect for under NextGen Gallery options->effects. Also to use lighbox, it’s a good idea to resize image to 800*600 by … Read more