Sunday, March 6, 2011

ThinkVitamin

It offers wide variety of online classes and tutorials for web designers and developers.


ThinkVitamin

Powerful alternative to Java Date API

Java Date API is inherently so buggy. If you are looking at the source code, you will really regret how you can rely on that.

If you really want to work with Dates extensively, consider using Joda Time API. Its free and wonderful.

Joda Time

Serializing Java MimeMessage

Why doesn't the MimeMessage class implement Serializable so that I can serialize a message to disk and read it back later?

The JavaMail API was designed to layer on top of existing email systems, using existing message formats. The ability to use Java serialization was neither essential nor useful for such implementations, and thus was not considered a goal of the JavaMail API.

The hard part about serializing a Message is retaining the pointers to the Folder, Store and Session. If you only want to save the content of the message, and not the object itself, the writeTo method of a message gives your everything you need. If you want to create an entire email system based on serialized messages, you should be able to subclass Message et. al and implement Serializable in your subclass.

If you want to serialize other objects of your own that reference MimeMessages, the writeObject method of your object can use the writeTo method of MimeMessage, and the readObject method of your object can use the MimeMessage constructore that takes an InputStream. Your class will need to provide a Session when constructing the MimeMessage.

Tuesday, January 25, 2011

Steve Jobs Stanford Commencement Speech 2005

Google Code Playground

Google has come up with a wonderful web platform to play around all google services.

Play around when you got time.

Google Code Playground

Saturday, January 22, 2011

Dell Laptop : Ubuntu 10.x Wireless Disabled : Quick Fix

I face this quite often in my ubuntu 10.x on Dell laptop, though I am not really sure why it happens. After troubleshooting so many steps, I figured out a quick fix.

First verify whether your connection is hard blocked or soft blocked.


$ rfkill list
0: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: dell-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Soft blocks, you can enable the wireless through right-click on top panel task bar.

If its hard blocked as its shown above , following command did trick for me 

$ sudo rmmod -f dell-laptop

Anyone knows why it happens? 

Saturday, January 1, 2011

Happy New Year 2011

Wish you all happy new year 2011.

I wish I can learn and share many more things this year.

Let this year be another creative adventure for all of us!