Wednesday, May 4, 2011

Protect your email address with reCAPTCHA and Google mailhide

Many spammers crawl the web looking for email addresses. When they see an email address on a web page, they send spam to the address. Mailhide allows you to safely post your email address on the web. Mailhide takes an address such as jsmith@example.com and turns it into jsm...@example.com. In order to reveal the address, a user must click on the "..." and solve a reCAPTCHA. If you use the Mailhide version of your email address, spammers won't be able to find your real email address and you'll get less spam.

reCaptcha

More about mailhide

Tuesday, May 3, 2011

Thursday, April 28, 2011

Dynamic Implementation for Interface

Legacy class implements my interface and everytime I change my interface, i had to change the legacy class as well to provide a default implementation and to get rid of my compilation issues

I want a default implementation to be applied to this legacy class whenever I add new methods to my interface.

And, I still want the legacy class to be a child of my interface

How do I get around this problem.?

Tuesday, March 22, 2011

File sharing made easy

There are many file sharing utilities available free of cost, however most of them rely on uploading the content to server and dowloading from the server.

But a new online tool Sendoid solves the problem without any need for intermediate servers. Ya, its Peer to Peer communication.

Its just works in simple way.

1. Sender select a file to share in sendoid.com
2. Sendoid creates a link to your local file
3. You send the link to receiver
4. Receiver access the link to initiate the file download
5. Sender and Receiver remain online until the sharing completes

You can also achieve unlimited file size by downloading their desktop app.

Explore at

Sendoid

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.