not idle

Archive for the 'tips & tricks' Category

Huge email attachments can be very annoying; avoid them using on-line storage such as DropBox.

Read the rest of this entry »

Recent Java networking problems, anyone?

Thursday, December 24th, 2009

I just noticed that all of a sudden no Java program can access network anymore.
After reinstalling a fresh Sun JDK, checking all policies and properties and proxies, none of which helped, I finally managed to ask the all-knowing One the right question.
It’s got to do with premature eja… erm … IPv6 exclusivity.
Checking this and this [...]

Read the rest of this entry »

[Linux] filesystem check without live CD

Tuesday, October 13th, 2009

On a mounted partition filesystem check (fsck) of course cannot be done and many tutorials suggest using a live CD of some sort. Here is a solution to force fsck on the next reboot:

touch /forcefsck
reboot

Read the rest of this entry »

Netbeans Classloaders

Tuesday, September 29th, 2009

Netbeans classloader system consists of three types of classloaders, namely module classloader, system classloader and original classloader. Usually, module classloaders are used to load classes and resources from within the module itself. However, there are situations when you need to access classes and/or resources from other modules.
Imagine two modules, A and B. Class Ca from [...]

Read the rest of this entry »

Boolean state menu items in Netbeans

Monday, September 28th, 2009

Netbeans platform supports different kinds of actions (always enabled, CallableSystemAction, CallbackSystemAction etc). However, it was not clear to me how to create an action that could be used for toggling the state of the system. Initially, I experimented with Presenter.Menu interface and provided my own implementation of the JCheckMenuItem but couldn’t get the platform to [...]

Read the rest of this entry »

Repair broken AVI in linux

Sunday, September 20th, 2009

mencoder -idx input.avi -ovc copy -oac copy -o output.avi

Read the rest of this entry »

Problem using SC create under windows

Sunday, July 26th, 2009

When you want to create a new service under windows, the most obvious way is usage of sc.exe
A “normal” user will read a help, and write:

sc create MyService binPath=C:\path\my.exe

The sc.exe only displays help, but does not do anything. The solution is another space after the “=”, so the right command is

sc create MyService binPath= C:\path\my.exe

Enjoy….

Read the rest of this entry »

Private