Category: programming

Quines 1

Quines

A quine is a computer program which prints out a copy of its own source code when it is run. The name comes from Quine’s paradox: “Yields falsehood when preceded by its quotation” yields...

The Public Option in 2D 0

The Public Option in 2D

We had a meeting at work yesterday about naming some classes. We’ve had the same meeting over and over for months (years?) now. Again and again, we’ll get everyone to agree on a naming...

2

Using SPDE with IntelliJ

This is mostly a note to myself, but I figured out how to get SPDE to work in IntelliJ IDEA. SPDE is a port of Processing to the Scala programming language written by Nathan...

0

Motor Shield

Peter’s friend Will was over today. One of the things they did was to assemble a motor shield for Peter’s Arduino. An Arduino has a bunch of output pins, but they aren’t powerful enough...

0

What is Time?

Specifically, what is time in parallel programming? Have you heard about Rich Hickey’s talk at JVMSummit. It’s worth checking out. It is pretty thought provoking and I think it’s getting close to some issues...

0

Button Fade

We made a new Arduino project today. It’s a code to make a light on the Arduino fade on and off by pressing a button.  Here’s the circuit diagram. This is the code. int...

Spinners 0

Spinners

This is something we made tonight. It came from an idea I had for a scratch project but did not ever actually use, and now we wrote it in Processing. No iframes Source code:...

Bees 1

Bees

Here’s another processing sketch we did about the same time as planets and ships. It’s very similar except that the ships are now bees and the cursor is the object that they’re attracted to....