Posts

Showing posts from May, 2010

Browser

If a http call does not return anything until a certain time , you will see time out. So if request processing is going to take long time before you even generate a single bit of response, then you better return some dummy character or something in the meantime to stop browser from timing out. location.replace does take you to new URL but this new URL does not remain in history while location.href does go in history.

Java Encryption/Decryption

Java does not always throw exception while decoding a text using different key than the one used for encoding it. Though the decoded text will be garbage. So dont rely on throwing exception if the key is incorrect. Character.getType(character) returns a in value which stands for a category to which character belongs. esp. the value returned as 28 stands for OTHER_SYMBOLS and it is normally non-printable junk characters.