Java: SCJP certified me as Java-nese!

It’s been quite some time since I haven’t updated my blog. I need to prepare myself for my SCJP Exam Test. After months of studying, I finally passed the SJCP exam test. Now, with the Java Certification in my hand, I’m officially javanese that not only speak Java natively but also do Java programming! Yiihaa! :)

I’ve to confess that I don’t have enough experience in Java Programming nor enough time to study. And it’s completely different beast compare to my other certifications (RHCE and OCP DBA) that merely IT infrastructure exams.

What I’ve done to get the certification is:
1. Learn about the SCJP it self. I print the page, and nail it to my office wall. So I can read the it whenever I’m in office.
2. Browse Amazon, try to find the best SCJP book available. Based on its reviews, I decided to buy Katherine Sierra SCJP Book. Because, I reside in The Netherlands, I ordered the book via bol.com, and received the book within 3 days.
3. Followed the book suggestion, I photo-copied the review part of each chapter. I read this when I’m on the tram on the way to and from office. I started to do this since October 2008.
4. On January 2009, I read the book completely. Finally!
5. But, my confident level still didn’t increase. Until, there’s information in the sun website that if we buy the voucher before June 2008, we’ll have a free retake exam. This boost my guts and also my learn.
6. I bought the Voucher from Sun NL. It cost 235 EUR + VAT.
7. I go to Prometric website, to register the exam. I chose the nearest exam location, which is 500 meter away from my office.
8. A day before the exam, I took a good night sleep. In the morning, I felt my self fresh, and went to exam location.
9. It’s a long exam, 3.5 hours! I used this full long time to do the exam 9 passes, until I ran out of time. After click finish, it didn’t show my result on the computer screen. It’s different with my OCP, that show the result as soon as you click finish. I went to the admin, and she congratulated me that I passed the exam. I still couldn’t believe it! Alhamdulillah!

Now, since I’ve passed the exam. I feel lighter, seems that the whole burden that I’d carried over years has gone. I need to decide for my next goal. I would like to get back to academic things, but I still don’t know how to do it, any idea?

PowerHub: Installation Error with ‘/tmp does not have enough disk space’

When I’m installing PowerHub, I encounter the error message:
WARNING: /tmp does not have enough disk space!
Attempting to use /glb/home/s_peam01 for install base and tmp dir.
Extracting the JRE from the installer archive...
The included VM could not be extracted. Please try to download
the installer again and make sure that you download using 'binary'
mode. Please do not attempt to install this currently downloaded copy.

The work around is to set IATEMPDIR environment to location that has sufficient space
$ export IATEMPDIR=/glb/apps/3rdparty_test/tmp

JAVA: Encrypt Your Password

I’ve been dealing with some java application that connect to multiple databases. All the database information are stored in properties file. This includes the password as well. I stumbled upon the Cryptix.
I’m able to encrypt and decrypt using several lines of code as follow:
byte[] bytes = passwordString.getBytes(i);
Security.addProvider(new Cryptix());
RawSecretKey key = null;
key = new RawSecretKey("Blowfish","Holly's secret key to unlock".getBytes());
Cipher cipher = Cipher.getInstance("Blowfish", "Cryptix");
cipher = Cipher.getInstance(cipher, null , new PKCS7());
cipher.initDecrypt(key);
System.out.println(new String(cipher.crypt(bytes)));

To learn more about Cryptix, you can read this FAQ.

Subscribe to RSS Feed Follow me on Twitter!