[Programming Problem] Inorder Successor in BST

Given a binary search tree and a node in it, find the in-order successor of that node in the BST. Note: If the given...

WordPress Backup

WordPress Import/Export Wordpress allows you to export your ‘content’ in xml format. it then allows you to imports that content in a wordpress instance....

Java Memory Managment

Here is a basic summary of all available garbage collectors. Collector Block the world (minor) Block the world (major) Threads (minor) Threads (major) -XX:+UseSerialGC...

Http Basic Authentication

Here’s a brief overview of Http Basic Authentication which is a (trivial) way of providing authentication in your application. Every-time you send a http...

Get the 8.3 (or short file name) of a folder in windows

It seems like on an NTFS partition there is something called 8.3 Name Creation. Its basically a short file name with a tilde ~....

XML Namespaces 101

XML Namespaces also carry typical advantages of using namespaces, i.e. all variables related to a particular category can go under that namespace. Here is...

Character Encoding

ASCII uses 7 bits, extended ASCII allows you to use the 8th bit, but that’s NOT a standard. Problems started when bits in ASCII...

Dining Philosophers

Dining Philosophers is one of those classical problems to understand (and resolve) deadlocks in software. Lets look at examples were we cause deadlocks, come...

Reentrant vs NonReEntrant locks

Java 5 has a ReentrantLock implementation of the Lock interface. Meaning if the same thread tries to acquire the lock again, it will allow...

Deadlocks in java

Ok, lets start with seeing a simple example of how deadlocks can be created in java. Simple way to achieve this is to try...