Joe Beuckman 2011

programming

Connect Android to Drupal’s JSON Server Module

The Android SDK comes with a SampleSyncAdapter project for implementing a synced connection to a cloud-type service. The class NetworkUtilities takes care of making the actual HTTP requests, and generally has to be tailored to work with a particular cloud service (apart from the sample server app included with the SDK).

Here is a base class that handles the session-based authentication for Drupal’s JSON Server module. Extend this class to implement the calls for a particular service model via Drupal / JSON Server.

Pendulum Physics and Code

Sometimes it's nice to forget about 3rd party components, big clunky libraries, the Facebook API, etc. and just simulate a simple physical system from first principles. Here's "mass on a string":

Granular Synthesis in Flash

An upcoming client project pr

K-Means Clustering Code

I've been having a hard time trying to train a Self-Organizing Map to categorize a large pool of short documents by my selected keywords. The initial results were promising but I couldn't adjust the training parameters well enough to train the error sufficiently low that I would be confident of the categorizations, even after several days of training.

Box2D Planetary Gear Set

All the Box2D documentation says to use the automatic gear joint and not to mess with simulating gears this way ...so it had to be done!