Archive for the ‘FOSS’ Category

LeJOS PIDController not working, output is zero

Wednesday, June 5th, 2013

This problem had me baffled for more than a few minutes: I wrote a leJOS PIDController loop for a LEGO NXT project that used one motor's rotation encoder as the input to control another motor's set point. It didn't work: the output from the PIDController's doPID(int) was reliably zero. My ...

Lame problem encoding MP3 “Warning: unsupported audio format”

Wednesday, July 25th, 2012

An old site that I've been meaning to renovate for too long gave me this problem today. For the first time in a more than a year I tried to upload an audio clip and it didn't work. What's supposed to happen is the user uploads images and sounds for ...

Look Ma, no files! Portable object persistence

Friday, August 19th, 2011

Originally posted at JavaProgrammingForums.com Where can I store my application data? I see a lot of people starting threads because they're struggling to persist (often) a little bit of data from one run of their Java application to the next. The offered solutions are often some kind of jiggery-pokery involving java.io.File. Not ...

Trying out JBullet: IntBuffer is not direct

Saturday, May 14th, 2011

[caption id="attachment_1271" align="alignright" width="150" caption="JBullet Basic Demo"][/caption] I've been simulating the movement of a line-following robot in plain old Java recently, but wanted to try a few problems that need physics, so I downloaded JBullet - a Java port of the Bullet  Physics Library. It needs LWJGL - the Lightweight Java ...

BrickOS on Ubuntu 10.10 Maverick Meerkat

Wednesday, April 27th, 2011

BrickOS was an integral part of some work I did many years ago and I've been trying to dig the code up recently. It seems as though it fell out of the Ubuntu repositories some time ago (in as legos before the name change), so I'm currently installing the source ...