Categories
General Java

Veni Vidi Vici

It is a famous Latin phrase coined by Roman general and consul Julius Caesar which means “I came, I see, I conquer”. He announced to the Senate after his victory over Pharnaces. Well, I just finish another huge task in my desktop – Probably I am also happy as Caesar right now.

Yesterday it was full of learning and new achievements. I converted my existing database into HSQL and it was a big one, 62337 rows sized approximately 9MB. Some days ago hasan told me that HSQL is a nice embedded db solution for java, and he was right. After I examine the HSQL db I found that it stores data as plain SQL entries. Still it is so fast.

I complete the integrated spellchecker for nobobangla, a realtime help and two dictionary in java. spellchecker was a great task and I enjoy the whole work. Now it is much efficient than the previous one.

One more thing I found while working with Base64 encoding in Java. The jakarta commons package codec seems a bit confusing and I could not manage it to work as expected. It generates non compliant base 64 – I didnt know why. Well, then I found teh following routine is extremely useful for encoding – take a look at the following example

import sun.misc.BASE64Encoder;
public class Test {
    public static void main(String[] args)
    {
        BASE64Encoder b = new BASE64Encoder();
        System.out.print(b.encode("hasin".getBytes()));
    }
}

————————————————————–
disce quasi semper victurus vive quasi cras moriturus

Leave a Reply

Your email address will not be published. Required fields are marked *