Nature of Code Final – Plotter Experiments

Friend

For my Nature of Code final I implemented a version of my thesis that allowed path following in Ruby-Processing along 3D vectors. Boxes would start at a point at the bottom of the 3D map and travel along pre-determined routes. These routes represented the flights of U.N. planes over Sudan. The height of the arcs and start and end points represented the relative length of the flights. the number of boxes travelling represented the relative frequency of the flying involved. Unfortunately, I accidentally overwrote the files I showed in class. But I do have the individual class files I wrote to implement this functionality. These are pretty straightforward ports of Shiffman’s particle system class and path-following classes. Below is a 3d Particle / Emitter after running for an hour or so. (I forgot it on my desktop).

The main code I used was this simple Path-Following implementation, which was pretty easily hooked into my project. Just add some start & endpoints, calculated the endpoints, and shoot those boids off into space. Here’s the Github version of Shiffman’s Path Following – just a one-to-one port into Ruby-Processing. Some more customized stuff follows below.

Spirograph

The main code for the spirograph goes something like below. You can get all of this code on Github, and you’ll need to get it all because you need ToxicLibs, and the attractor & particle class. And PeasyCam. But at least you get an idea of what’s going on.

see more…

No Comments 6.7.2010 at 2:25 pm

Mystery Data, Aaron Koblin & Toxi

Friend

SPOILER ALERT – the mystery words created by Mr. Rogers are….. Space Neighbor. Who knew!

space_neighbor

This was a very cool assignment – and I’d love to fork this code and adapt it to my own purposes. I hadn’t used bitshifting to separate out RGB values before, and found the process enlightening. Also the path class in the download is useful and interesting.

see more…

No Comments 10.27.2009 at 9:23 pm

Visualizing Data – Parsing CSV files

Friend

map

Successfully got this up and running. It imports raw data from a CSV file, parses it, and then displays it in a processing sketch.

This won’t run well in your browser, but take a shot anyhow. If you spot any improvements to the code, please give a shout!

No Comments 10.8.2009 at 11:15 am

Circles like Karel

Friend

Karel makes the best circles. Mine aren’t so good yet.

Screen shot 2009-10-01 at 11.51.53 AM

http://hellofriend.info/itp/visualizing_data/themevar/index.html

No Comments 10.1.2009 at 9:51 am

Dynamic Flash Graphics

Friend

logo1

I’m working on launching a site for our studio. Here’s an initial treatment for a dynamic header. It needs to be pushed more, but this is showing some promise. Uses a bunch of cool Actionscript 3.0 classes.

No Comments 4.12.2009 at 12:41 pm

Use PHP to check Gmail with IMAP

Friend

Here you go, nerds. PHP 5.0 has IMAP built in. First, make sure you have it on your server. Also enable SMTP / IMAP in your Gmail account. Then upload some code like this in a php file:

<?php
@include_once("pwds.php") ;

$imapaddress = “{imap.gmail.com:993/imap/ssl}”;
$imapmainbox = “[Gmail]/All Mail”;
$maxmessagecount = 10;
$imapaddressandbox = $imapaddress . $imapmainbox;

$connection = imap_open ($imapaddressandbox, $user, $pass);

$numMSGs = imap_num_msg($connection);

echo (imap_body($connection, $numMSGs));

imap_close($connection);
?>

Also, make sure you have a separate (and admin-only permissions) file, with your password info – called pwds.php in this case:

<?php
$user = 'put your email address here';
$pass = 'put your password here';
$host = 'imap.gmail.com';
$port = "993";
?>

see more…

No Comments 3.31.2009 at 6:56 pm

Bumpin’ Space Junk

Friend

First attempt at a 3D, interactive music visualizer. Kinda wonky but whatev.

here’s the link

No Comments 10.22.2008 at 10:09 am

Colored Triangles.

Friend

A first attempt at something pretty:

You can go play with it here.

No Comments 9.15.2008 at 10:10 am
Friend