Thom Nichols

Avatar

Technology is evolution outside the gene pool

Articles tagged with 'Java'

Smoothing Sensor Data with a Low-Pass Filter

If you search StackOverflow, there are a number of posts about Android sensor data being very jittery, and suggestions on implementing a smoothing algorithm.  Well not many people have actually posted a smoothing algorithm, and those that I have seen tend to be fairly complex.  

After some searching, I came to the Wikipedia entry for Low Pass Filter.  There's a pseudocode algorithm that I adapted for Java ...

The Suckless JSP Tag Library

So I implemented the Python Web Console in plain Java and JSP on AppEngine.  Maybe this wasn't a great idea, but given the limited scope of the application, I was hard-pressed to complicate it with Spring or an alternative markup language.  Plain JSP and servlets seemed 'good enough' in this case.

I couldn't, however, ignore that there are a couple glaring problems with JSP, probably the ...

Introducing the Python Web Console

I'd like to show off my latest project - the Python Web Console!

It's inspired by sites like the Groovy Web Console and TryPython.  Since I teach a Python programming class, I wanted to create an application for my students to experiment and share scripts they write. 

Ironically, the site is written using Java (not Python) for Google AppEngine.  The reason for this is, I've been ...

Upload to S3 with Groovy

So, uploading to S3 is not always as simple as it should be. Here's a completely self-contained Groovy script that can upload files to your S3 bucket, plus provide a signed link to access the uploaded file.

The script uses Groovy's Grab macro to download the JetS3t library which does the heavy lifting.

#!/opt/groovy/bin/groovy
/* Script to manipulate S3 objects. 
 * @author Tom Nichols
 * @see ...

Groovy and Processing.org!

Processing.org is a cool little thing; you can't look at two or three of the demos on their site before you realize it's really neat.  Not to mention it's designed as a compliment to Wiring, the language used to program the Arduino and a number of other DIY hardware platforms. 

So suffice to say, Processing is a compelling alternative to Flash for at least ...