Category Archives: Programming

Dynamic Configuration of Hibernate Envers

The project I’m working on wanted to have audit tables for many of the tables in the system. Instead of writing our own plugins and creating the tables we decided to use Hibernate Envers. Hibernate Envers is a really nice … Continue reading

Posted in Java, Programming | Tagged , , , , | Leave a comment

Arc Collision

I’ve been working on an Android game for the past few months and at one point I needed to detect if a point (P) fell within the confines of an arc. I was surprised to find that Android’s API’s didn’t … Continue reading

Posted in Programming | Tagged , | 2 Comments

Map usage optimization

You know the situation. You have a data structure that is a Map and the key is a simple object and the value is some complex object (lets say an ArrayList). You can’t just get() the ArrayList and start using … Continue reading

Posted in Java, Programming | Tagged , , | Leave a comment

PGP Encryption/Decryption in Java

A new version of the code (and a new post) has been posted at : http://sloanseaman.com/wordpress/2012/05/13/revisited-pgp-encryptiondecryption-in-java/ Please note that if you are using Bouncy Castles libraries < 1.47 you should use the code in this post I have a requirement … Continue reading

Posted in Java, Programming | Tagged , , , | 66 Comments

Tabs in a TextBox

Anyone who uses the web and happens to be programmer knows that at some point you are in a HTML TextBox and as your typing away you hit the tab to indent the line….. and you end up in the … Continue reading

Posted in JavaScript, Programming | Tagged , | 2 Comments