Archivi per Giugno 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 […]
My best buy of 2007
0 Commenti Pubblicato da Luigi il 22 Giugno 2008 in Life, universe and everythingI 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 Commenti Pubblicato da Luigi il 21 Giugno 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 Commenti Pubblicato da Luigi il 19 Giugno 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 […]
Cerca
Info
Stai navigando negli archivi del sito NewInstance per il mese di Giugno 2008.
Gli articoli lunghi sono troncati. Clicca sul titolo dell'articolo per leggerlo interamente.Calendario
| L | M | M | G | V | S | D |
|---|---|---|---|---|---|---|
| « Mag | Lug » | |||||
| 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 | ||||||
Archivi
- Gennaio 2010 (2)
- Dicembre 2009 (1)
- Novembre 2009 (3)
- Settembre 2009 (2)
- Agosto 2009 (4)
- Luglio 2009 (1)
- Giugno 2009 (2)
- Maggio 2009 (4)
- Aprile 2009 (2)
- Marzo 2009 (7)
- Febbraio 2009 (5)
- Gennaio 2009 (2)
- Dicembre 2008 (1)
- Novembre 2008 (8)
- Ottobre 2008 (12)
- Settembre 2008 (3)
- Agosto 2008 (2)
- Luglio 2008 (6)
- Giugno 2008 (16)
- Maggio 2008 (2)
- Aprile 2008 (3)
- Marzo 2008 (6)
- Ottobre 2007 (1)
- Settembre 2007 (1)
- Agosto 2007 (5)
- Luglio 2007 (6)
- Giugno 2007 (6)
- Maggio 2007 (1)
- Marzo 2007 (1)
- Febbraio 2007 (2)
- Gennaio 2007 (1)
- Dicembre 2006 (2)
- Novembre 2006 (4)
- Ottobre 2006 (7)
- Settembre 2006 (1)
- Agosto 2006 (2)
- Luglio 2006 (6)
- Giugno 2006 (3)
- Febbraio 2006 (1)
- Gennaio 2006 (1)
- Dicembre 2005 (5)
- Novembre 2005 (2)
- Ottobre 2005 (2)
- Settembre 2005 (7)
- Agosto 2005 (2)
- Luglio 2005 (8)
- Giugno 2005 (12)
Categorie
- 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)
Ultimi Post
- 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

