N-body Toy

Skip to the toy! D3.js provides a force-directed layout, which is nice for all sorts of data structures, especially those that contain complex relationships. The charge is usually given a negative value, causing nodes to repel one another. Instead of calculating the force between each pair of nodes, the…

Richard Feynman Computer Heuristics Lecture

In this lecture, given at Esalen, Richard Feynman explains in plain English how classical computers do what they do by comparing them to the stupidest file clerk imaginable. …

Primecoin Mining on DigitalOcean Postmortem

Update: I've started mining primecoin again using a pool. For instructions go here. Now that most primecoin mining is presumably done on dedicated hardware, I'd like to discuss my experiences using virtual instances on EC2 and DigitalOcean during the first few days of the coin's launch. Primecoin proposes an entirely…

CoffeeScript: It's Just JavaScript

Write JavaScript without the fuss. What is JavaScript? JavaScript is an implementation of ECMAScript cobbled together during a fever dream in the mid-90s [citation needed]. When implemented in web browsers it let a developer do things like: confirm('Are you sure you want to leave this page?'); Or, <…

Force Voronoi Kaleidoscope

D3.js provides a layout that simulates particles interacting via charge and gravity, called a force directed layout. When a click lands in the iframe below, a particle is placed into a force directed layout. It's position is then mirrored to create the kaleidoscope effect. Open in a new Window…