not idle

Archive for the 'tips & tricks' Category

Building Ganglia

Tuesday, May 4th, 2010

This is one of those reminder posts because I always google what dependencies I need to install in order to build Ganglia in Debian based Linux. The dependencies are: build-essential libconfuse0 libconfuse-dev libapr1-dev libexpat1-dev libpcre3-dev UPDATE: To create default configuration, run: gmond -t > /etc/ganglia/gmond.conf If configuration file is somewhere else, change path accordingly.

Read the rest of this entry »

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

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

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

Read the rest of this entry »