• Brinley
  • Kon
  • Ngan
  • benk
  • gameldar

The Second Drawer

The Second Drawer

  • Home
  • Contact
  • Log in

fuse-j for java 6

November 29th, 2007

I’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

Posted in Technical | 1 feedback »

Java3D and Compiz Working!

November 11th, 2007

I 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

Posted in Rant | Send feedback »

Java3D and Compiz

November 3rd, 2007

In 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.

Posted in Technical | Send feedback »

vmware-server setup on feisty

September 28th, 2007

I’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.

Posted in Technical | Send feedback »

A new geek

September 26th, 2007

Well 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.

linux baby
The first sight he saw as Braedon opened his eyes - Linux. His future is set.

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.

GeekTraining
Braedon learning to use a computer, age 1 week.

So here are some more photos!

self portrait of our family
Self-portrait of our little family.

Feed me
Where’s my food? But I still look cute.

multi-coloured dream coat
Braedon ready to go out in his multi-coloured dream coat (thanks Great-Gran!)

mum and bub
A happy mum and bub ready to take on the world.

stroller test-drive
Test driving the new stroller on Braedon’s first outing (Mum is teaching him to shop!)

Posted in Stuff | Send feedback »

1 2 >>
  • September 2008
    Mon Tue Wed Thu Fri Sat Sun
     << <   > >>
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30          
  • The Second Drawer

  • It is a universal norm. Look in the third drawer in the kitchen and what will you find? Odds and ends, and all those useful little bits that you just can't throw out, but don't have any order to them. The second drawer, however, contains all those useful tools for working in the kitchen - nice sharp knives, spatulas, etc.

    • Recently
    • Archives
    • Categories
    • Latest comments
  • Search




  • Categories

    • All
    • Rant
    • Stuff
    • Technical
  • Linkblog

    • Links
      • Brinley's Blog
      • My Website
      • The Third Drawer (my non-technical blog)
  • XML Feeds

    • RSS 2.0: Posts, Comments
    • Atom: Posts, Comments
    What is RSS?
powered by b2evolution free blog software

©2008 by admin | Contact | Design by Michael | Credits: blog software | web hosting | monetizing