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 proprietary [...]
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 [...]
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 the damn […]
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 […]
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(Weird.java:4)
I think that it is strange that […]
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 update”):
W: GPG error: http://oss.oracle.com unstable Release: The following signatures […]
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.
Recently […]
Displaying the version in a Maven-based project
0 Comments Published by Luigi June 21st, 2008 in JavaIf 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
$JAVA_HOME/bin/java -cp ~/tools/axis-1_4/lib/axis.jar org.apache.axis.utils.tcpmon
It’s also possible […]
Setting up JavaHL (JNI) support in Eclipse on Linux
2 Comments Published by Luigi June 19th, 2008 in JavaThe 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-1.6.0.03/jre/lib/i368/client::/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386::/usr/lib/xulrunner-addons:/usr/lib/xulrunner/addons:/usr/java/packages/lib/i386:/lib:/usr/lib
The solution:
install Java bindings for Subversion libraries:
$ sudo apt-get install libsvn-java
This will install required JNI libraries on /usr/lib/jni.
Then, add this path […]
Search
About
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.Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | Jul » | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||
Archives
- January 2010 (2)
- December 2009 (1)
- November 2009 (3)
- September 2009 (2)
- August 2009 (4)
- July 2009 (1)
- June 2009 (2)
- May 2009 (4)
- April 2009 (2)
- March 2009 (7)
- February 2009 (5)
- January 2009 (2)
- December 2008 (1)
- November 2008 (8)
- October 2008 (12)
- September 2008 (3)
- August 2008 (2)
- July 2008 (6)
- June 2008 (16)
- May 2008 (2)
- April 2008 (3)
- March 2008 (6)
- October 2007 (1)
- September 2007 (1)
- August 2007 (5)
- July 2007 (6)
- June 2007 (6)
- May 2007 (1)
- March 2007 (1)
- February 2007 (2)
- January 2007 (1)
- December 2006 (2)
- November 2006 (4)
- October 2006 (7)
- September 2006 (1)
- August 2006 (2)
- July 2006 (6)
- June 2006 (3)
- February 2006 (1)
- January 2006 (1)
- December 2005 (5)
- November 2005 (2)
- October 2005 (2)
- September 2005 (7)
- August 2005 (2)
- July 2005 (8)
- June 2005 (12)
Categories
- Books (7)
- Eclipse (10)
- Errors (2)
- Firefox (7)
- Hardware (14)
- Horror Code (8)
- Internet (17)
- Java (85)
- JavaScript (8)
- Life, universe and everything (29)
- Linux (44)
- Mac (18)
- Software (25)
- Speeches and Conferences (8)
- Web (19)
- Windows (16)
Latest
- Syntactic sugar and Java arrays.
- 3G USB Stick on Ubuntu
- Ipod touch with Linux
- Karmic and Luks: USB drive encryption made (almost) easy
- Suspend/Resume in Karmic /2
- Suspend/Resume problem in Ubuntu Karmic 9.10 running on MacBook Pro 5.1
- MacBook International Keyboard and Linux
- Mighty Mouse: reverse horizontal scrolling workaround on Ubuntu Linux 9.04
- Skype 2.1.0.47 beta released, and amd64 packages available!
- Linux RAM Disks

