PrettyTime Java Library

The way people want to see their timeline has changed very fast in the last several years.Now instead of seeing timestamp people are more interested is seeing something like : “in 3 minutes!” etc etc.

The best way to do this in java is to use , which allow you to use it in various variety of ways e.g. : PrettyTime.NET, PrettyTime Grails Plug-in, PrettyTime with JSP .

How to ignore test in maven build using Netbeans

If you want to ignore the test cases execution to run while building a maven project using Netbeans then do the following :

1. Select the project in the project explorer.
2. Right Click it , then select Custom then Goals.
3. In new window check Skip Tests and add install as “Goal”
4. Press OK
5. Done !! now drink coffee.

How USBLAN 0fe6:8101 Kontron Debian Lenny

if you are running the old version of the GNU/Linux like Debian Lenny and your USB LAN is of Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter which is not working then here is a quick solution.

1. Execute the command lsusb, if it display something like this :
Bus 001 Device 005: ID 0fe6:8101 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter then go to step 2 , it means you are actually using the correct usblan for which this solution will work.

2. Do this to add backport repository for Debian Lenny.

3. Update you kernel to 2.6.32 from backport repository.

4.Enjoy after reboot !!