Category: programming

Hiding the Works 0

Hiding the Works

Apple’s release of the iPad has generated a lot of angst and gnashing of teeth amongst a certain class of geek. Ben Fry’s latest post on the subject is fairly typical. Or as Tim...

HTML 5 Canvas in Blogger 0

HTML 5 Canvas in Blogger

The purpose of the previous post with the port of Starlings to JavaScript was to learn how viable it would be to use the HTML 5 canvas element to embed graphics in our blog....

1

Canvas Starlings

Your browser doesn’t support the canvas element. This is a version of the Starlings demo written in straight JavaScript. It’s probably going to have problems in some browsers. Specifically, Internet Explorer doesn’t support the...

Warp 0

Warp

Here’s another SPDE sketch. It’s a simple image warping demo that shows how to use the texture mapping feature of Processing. Click and drag over the image to distort it. Try different mouse buttons....

Maybe 1

Maybe

One of the more hideous quirks of the family of programming languages derived from C is the fact that values of pointer based types may be NULL. This means that a simple code fragment...

2700 Billion Digits of Pi 0

2700 Billion Digits of Pi

On December 31st, Fabrice Bellard (founder of FFmpeg) announced that he’d calculated pi to 2,700 billion decimal places. Check out the details here. The coolest thing is that he did it using a single...

0

Exquisite Corpse at Scratch Club

I’ve been trying to figure out how to get the kids in the Scratch Club to try new things. I decided to try something a little different this year. Since we have two classrooms,...

The Rosetta Clock 0

The Rosetta Clock

Here’s an applet I wrote that draws clocks in 5 different numeral systems. From the top row down, they are: Binary Skew Binary Ternary Balanced Ternary Decimal The first column is the hours, the...

1

Bad Code Offsets

Here’s a useful idea; Bad Code Offsets. They basically work just like carbon offsets, but for bad code. Just like carbon offsets, they’re designed to expose external costs to the correcting forces of the...