Archive for June, 2008

Last time I used .ear packaging there was no support for sharing information between web applications: you needed to use web services, rest, etc. This evening I just made a search on the internet to check if things are better now. It seems that nothing is changed. I found that some application servers have implemented […]

Apparently, with JDK 7 we will have Strings in switch statements. I got a SCPJ certification long time back, but if someone asks me to write a switch statement in a job interview today, I could probably fail: I begun writing Java code in 2000, and I bet I used switch statement six or seven […]

The passwords hell

Registration/Login is the #1 usability problem on websites. I hate security paranoia when it is not needed (ok, I can understand a bank…) My suggestions to avoid boring the people using our software: Let the user choose the preferred password. Don’t assign it your own (especially with random chars!!!). User will forget it and abandon […]

Yesterday we had a business meeting in London. We flew there and we had the chance to walk through the city and enjoy the nightlife. In my previous visits to London I never appreciated the city very much: too noisy, to rainy, too expensive, too much people wearing formal. Sometime you can feel like being […]

Null is throwable

Today I found a cute code snippet on Alex‘s Blog and Euxx: 1public class Weird { 2 3 public static void main(String[] args) { 4 throw null; 5 } 6 7} It compiles and trows a NullPointerException: Exception in thread “main” java.lang.NullPointerException at Weird.main( I think that it is strange that this stuff compiles: the […]

Very Quick Linux Tips

Forcing fsck on next reboot $ sudo touch /forcefsck $ sudo reboot Merging PDFs $ sudo apt-get install pdftk $ pdftk file1.pdf file2.pdf file3.pdf file4.pdf cat output merge.pdf Formatting USB disks/memories mkfs -t vfat -V -I -c /dev/sdb -n LABEL eject /dev/sdb Fixing Oracle Repository GPG/PGP Key Error The error (in Synaptic or during “apt-get […]

I bought a Sony PSP during last winter, and I am very happy of that. The videgames are amazing, I didn’t imagine that there were games so impressive on a so little machine. In particular I appreciated Ridge Racer, Final Fantasy the war of the Lions, God of War: Chains of Olympus, and many more. […]

It's sometime useful to access the version information from inside the program, for example to show that to the user, to manage upgrades or to identify the running version when a user reports a bug, etc. When you build using maven, inside your artifacts it is included the pom file and the a property file […]

Tracing HTTP Requests

If you ever had the need to trace HTTP requests (and if you ever did advanced web development you did!), you probably found invaluable tools like TCPTrace for Windows. On Linux I found a good replacement: Download apache axis: axis-bin-1_4.tar.gz Install it where you prefer. Create a script to launch tcpmon #! /bin/sh export JAVA_HOME=/usr/lib/jvm/java-6-sun […]

The error: Selecting from Eclipse, Preferences>Team>SVN and select SVN interface: JavaHL(JNI) on Linux you get: Failed to load JavaHL Library. These are errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path java.library.path = /usr/lib/jvm/java-6-sun- The solution: install Java bindings for Subversion libraries: $ sudo apt-get install libsvn-java This […]


You are currently browsing the NewInstance weblog archives for June, 2008.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.


June 2008
« May   Jul »

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:



Tag Cloud