You are here

programming

Browser Particles

images: 

I have been working on a mobile game with M&M Entertainment again, and our new game calls for a particle-based animation on top of the gameboard. I went to work in OpenGL ES building an Objective-C module for the mostly-complete Titanium app. Setting up the GLKit view, textures and geometries, communicating which textures are needed and when, and then cleaning up the objects after they are used turns out to be a pretty complex set of tasks. That stuff produces great results, but was eating more time that I would have preferred.

K-Means in JS

images: 

Earlier this summer, I was lucky enough to be given a month and a pile of bank data to develop tools and skills for visualizing the data. I can't show any of the visualizations for privacy of the bank customers. But, working with the vast dataset presented a need to categorize bank customers by highly-dimensional demographic data. I implemented the basic K-Means algorithm with Javascript. With around ten thousand vectors to categorize, this algorithm was performant enough not to be sluggish in Javascript.

Connect Android to Drupal’s JSON Server Module

images: 

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.

category: 

Pendulum Physics and Code

images: 

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

images: 

An upcoming clie

category: 

Box2D Planetary Gear Set

images: 

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! A little trigonometry and fidgeting with sizes produced this simple planetary set: