Archive for May, 2006



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 [...]


Gauge

Published on May 23, 2006

Everyone in a relationship knows about how hard it is to maintain it. To keep it exciting. To try not to be boring. To be able to say or even think “I have done my best for us”.
But think about it. Be true to yourself. How many of you ****ers out there have done enough [...]


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 [...]


Moo paradise!

Published on May 6, 2006

Found this in Tampines. Makes me wonder…
Picture taken from O2 Atom phone camera.


Some advise for any friends.

Published on May 1, 2006

It’s always losing something that makes you realise how important it is to you. That is the truth. But if you could work hard enough to regain it back, then the bond between that thing and you is stronger than ever.
You can never prevent yourself from taking things for granted. But you could do things [...]