Archive for the 'Bubbles Created' Category



Convert Java String to an InputStream

Published on February 13, 2008

So I decided to use JDOM to parse XML for XMPP replies for my current project. In order get a Document object out of JDOM I had to use the SAXBuilder to build it.
Eventually, I realised the build() method only accepts an InputStream, URL, URI… just not an XML created from the String object. Well [...]


The freedom of boredom or the boredom of freedom?

Published on December 4, 2006

Alright. I realised that somehow freedom and boredom does go together at times.
Recently I got so bored at work that I started out doing toy projects. These little projects helped me learn and improve my programming skills and many other ways.
Toy Project 1 – Forum Spider
I created a “Forum Spider” that is able to scan [...]


Shutdown windows with java?

Published on May 30, 2006

You can actually shutdown windows with java using java’s java.lang.Runtime class.
Runtime.getRuntime().exec(String command); is like the ‘Run’ command prompt in windows (Windows key+’r’).
To call shutdown, the code is simply Runtime.getRuntime().exec(“shutdown -s -t 180″);
The number 180 is the amount of time allowed in seconds before the system shutsdown. So set it to 0 for immediate shutdown. In [...]


SWT and JMF

Published on May 22, 2006

JMF and SWT has been said to be not compatible with each other. But thanks to Thomas the myth has been busted.
To run JMF with SWT in Eclipse on Windows XP (probably works on other windows versions. Do let me know.), do the following steps:

Open Eclipse.
Open the project that uses SWT where JMF is required.
Click [...]


SWT Flash Plugin Ver 2.0 for Eclipse 3.2

Published on February 28, 2006

I just finished editing Don Park’s Flash SWT plugin.
I started out using his creation for a while. But me, being a perfectionist, could not stand the compilation warnings the deprecated methods used churns. Hence I decided to get into the source and fixed them up.
I also realised that there were people who might be too [...]