fuse-j for java 6
November 29th, 2007I’ve been looking into fuse as a preliminary to a project I’m thinking of starting.
Anyway given as I was looking to work in Java I had a look at fuse-j. Trying to compile it under java 6 failed however, because (as aptly pointed out in the fuse-j discussion forums) Java 6 allows duplicate functions with the same parameters, but different return types, and java.nio.ByteBuffer has two such methods.
A quick change of the jni generator to also include the return type, and a modification of the function calls within the C code and the zip filesystem example is working.
So a java 6 compatible version is available:
http://www.gameldar.fdns.net/fuse-j-2.4-prerelease1-java6.tar.gz
Java3D and Compiz Working!
November 11th, 2007I have it working now. Basically all the steps were in place, I just need to work out how to get the drawing to happen immediately… I was using gtk_widget_queue_draw(window); and it would basically only update as I waved the mouse across the window… eventually I found the extra bit that forced the render to work immediately (gtk_widget_queue_draw(window); waits until all pending events are processed) and added the part code to process these events:
gdk_window_process_updates(GTK_WIDGET(window)->window, true);
Now this worked… but only for about 30 seconds before I ended up with an Xlib:
Xlib: unexpected async reply (sequence 0x6eb)!
A quick search showed that basically this was a problem because I was trying to process the drawing in the thread from Java, not GTK+ main thread. After a weeks delay … given life factors - I finally worked out the last step - thanks to the the GTK+ FAQ:
http://www.gtk.org/faq/#AEN482
So it now works… I’m not sure it is fast enough… particularly with more complex processing… but we’ll see how it operates.
I’ll post code later.
I’ve created a video of it working:
http://www.gameldar.fdns.net/jcompiz_small.avi
Java3D and Compiz
November 3rd, 2007In response to a query on the LG3D forums about being able to extra the applications from LG3D for use in a standard linux desktop I’ve been playing around with implementing Java3D to render through the support of Compiz. I’ve had some initial success as you can see below. Now just to get continuous updates working. I’ll post some details on the how soon.

vmware-server setup on feisty
September 28th, 2007I’ve been trying to set up vmware-server on feisty and had a problem - trying to install the .deb from canonical was failing with the following message:
Can't add port 902 (vmware-authd) to inetd.conf
Looking through the vmware-server.postinst it had the following line:
if ! netstat -l -Ainet | grep ':902' > /dev/null 2>&1 ; then
update-inetd --add '902 stream tcp nowait root /usr/sbin/vmware-authd vmware-authd'
else
echo "Can't add port 902 (vmware-authd) to inetd.conf"
exit 1
fi
Calling the netstat call again myself showed up the following:
tcp 0 0 localhost:902 *:* LISTEN
Obviously something was running on that port that is the vmware server. Nothing looked obvious from the process list, and a grep across my /etc directory didn’t show up anything defining that port, apart from the vmware-auth server itself and nmap just returned the info from /etc/services.
After slowly shutting down all my services I eventually discovered that famd was the culprit - which I don’t think is an ubuntu default, or at least not since edgy, but as I’ve been on an upgrade path I still have it installed. I shutdown famd and installed vmware and changed the vmware-auth port and all was good.
Note: when I originally started this post I was running Feisty - I’ve since upgraded to gutsy where there isn’t any vmware repository… so the point s moot.
A new geek
September 26th, 2007Well it has happened. I now have a little geek in the making. Braedon was born on the 17th September at 16:47. After giving mum a hard time he gasped his first breathe. So now I am working to make him into a little geek and a Linux advocate… which started with his first glimpse of me wearing my new Linux t-shirt.

I’m now settling into the life of a dad - I’m seeing the world in the middle of the night, and not because I haven’t been to sleep yet (because I’ve been living of the glow of the laptop screen), but because of his need to feed at that time. But I also have 4 weeks off work, and now that we’re home from the hospital I’m continuing the training.

So here are some more photos!




