Debugging bean customizers and property editors in NetBeans

Submitted by gunnar on

When you are developing GUI components you may want to create some nice bean customizers and property editors for them. But how do you debug them? The NetBeans developers may smile at this, knowing that there is a much better way, but I don't so smile away...

The trick is to start a new NetBeans instance in debugging mode. This is a built in feature of NetBeans module projects so we first need a simple NetBeans module. It doesn't have to do anything so you can create it in less than a minute using the New Project wizard:

Workaround for VMware bug 2293 on OpenSUSE 11.4

Submitted by gunnar on

After setting up my new Dell Precision T1600 with OpenSUSE 11.4 I found that I could no longer run VMware. Got a message about some NMI problem and bug # 2293. I searched for a solution and found the following article apparently describing my problem:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cm…

Nice looking fonts in GTK applications on openSUSE 11.4

Submitted by gunnar on

When I installed Open SuSE 11.4 yesterday I thought that the fonts used in GTK applications like Firefox and Thunderbird were really ugly. In my KDE settings I have specified that I want it to use my KDE fonts in GTK applications but this setting seems to have no effect. To fix this I installed gnome-control-center from the repository and changed the fonts to 8 point Liberation Sans and Liberation Mono. Now the GTK applications look just as good as the KDE ones.

Why do my Linux Samba share show underscores in file names when viewed on a Samba client?

Submitted by gunnar on
Question

When a Samba client, Windows or Linux doesn't matter, connect to any of my shared directories all national characters in file and directory names are shown as underscores. Why?

Answer

Probably the directory character encoding used on your server doesn't match the setting unix charset in the [global] section of /etc/samba/smb.conf. If you don't use UTF-8 you need to specify the character encoding with this setting.

Running the BitNami LAMP stack with the system MySQL

Submitted by admin on

The excellent BitNami LAMP stack contains its own MySQL, which is started automatically and used by PHP. If you for some reason want to use the MySQL that is installed in your host system you can do the following changes to your stack configuration:

Step 1 - Prevent the stack control script from starting MySQL

Edit the file ctlscript.sh in your LAMP stack root directory. and change the line

MYSQL_SCRIPT=$INSTALLDIR/mysql/scripts/ctl.sh

to

Cherry Linux keyboard and Java

Submitted by gunnar on

Since I couldn't get the KeyMan utility that came with my Cherry keyboard to work with SuSE 10.3 I had problems getting the Cut, Copy and Paste keys to work. I tried using the KDE KHotKey service instead, and by defining input actions that map these keys to Ctrl+X, Ctrl+C and Ctrl+V I could use them in most applications.

Starting with Java 1.6 though, this isn't enough. Seems like Java can't handle mappings made for KHotKeys. To get the keys to work with Java applications I had to do two things: