Friday, January 11, 2008

Run VNC service on Ubuntu

This command will be able to run a user specific vnc service on a ubuntu machine.

"Xvnc :5 -query localhost -geometry 1024x768 -depth 16 -once -securitytypes none -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared -extension XFIXES"

And when choose "Disconnect" from the vnc client, the server will shutdown itself.

Thursday, January 10, 2008

Firefox has lot of issues on Mac.

Recently when developing an addon for firefox 2/3, noticed that the preference window overlay ruins the default preferences window. It grows the height of the window and some times may cut screen elements in the bottom of the dialog.

Just aware the reason today, I missed an attribute "helpURI" for the "prefpane" element. Add this line, and the "help" button will show up in left bottom corner. Then everything is fine.

Since it looks like an irrelevant attribute to me, still think it's a bug of firefox. Filed on bugzilla.
Just set attributes 'class' and 'image' for a menuitem, the menu will become vivid immediately.
















Sample:
var mi=document.createElement('menuitem');
mi.setAttribute('class', 'menuitem-iconic');
mi.setAttribute('image','chrome://

But it may be affected by themes that you applied. See snapshot below.