polyrhythms

polyrhythms

Peter Sobot  //  Musician and software engineering student. I make things. Check out some of my work at petersobot.com.

Jan 22 / 7:46pm

The middle ground between form and function

I've noticed a distinct trend in all of my recent work. Not all of it is useful, and not all of it is feature-complete - but it all places a lot of importance on form over function. Let me give an example:

Lndrme

Read the rest of this post »

Filed under  //  code   design   form   function   lndr.me   ninjaquote   project   web development  
Feb 5 / 1:24pm

The iPhone and Custom Text Tones

(download)

This is my text message sound: "Level Up," sampled from Pokémon Blue on a GameBoy Colour. Short, geeky, and perfect enough to be heard every time I get a text.

However, Apple has decided that while users can set their own ringtones for their iPhones in iTunes, the text message notification sounds are off limits. I wouldn't take that answer.

Read the rest of this post »

Filed under  //  code   custom project   hack   iphone   project   ssh   text   text message   text tone   tone  
Dec 10 / 12:14am

OhLife and Online Privacy

OhLife is a brilliant site that emails you nightly and lets you keep a journal through email. I've been using the site for many months now, and it's been immensely useful in spurring me to keep a journal. Not that I've read over the entries yet, but when I have a free moment, it'd be interesting to reflect.

Ohlife

As awesome as this service is (and it really is), I slowly realized there's no need for me to email all of my journal entries to a third party. With a physical journal, you'd probably keep it very private, and not leave it with anybody at any time - why not do the same for a digital journal? To keep the same functionality though, I still wanted an online, email-based solution.

Enter OhJournal. (Yes, the name is a blatant ripoff of OhLife. Shush, you.)

By putting a 20-odd line PHP script on a cronjob every day at 8pm and a simple Gmail filter, I can replicate the basic functionality of OhLife without using a third party.

Daily

Every day at 8pm, my server automatically sends me an email reminding me to write a journal entry. The reply-to field is automatically filled with my Gmail address, but with a tag on the end, so my response gets caught by Gmail's filter and goes into the proper folder, properly labelled. It's a very simple system, really.

Gmail

As is my style lately, the source code is available on github. Feel free to download it and set it up yourself - but be careful to change the email addresses! I don't want to be receiving anybody's errant journal entries...

Filed under  //  blitz   code   custom   github   journal   ohlife   open-source   project  
Nov 22 / 1:21pm

The Colour of the Web

What colour is the internet?

This is a very difficult question to even ask - what does colour mean? How does one measure the colour of a web page? How do you quantify and categorize the results?

For an upcoming class project (for STAT 206, to be precise,) @amtinits and I are trying to find the colour of the most successful websites on the web. Using the Alexa website rankings and some custom python hackery, we're finding the average colour of a random sampling of 1,000 websites from the top hundred thousand sites online.

We're making heavy use of the wonderful webkit2png python library and using the extremely helpful pypng as the heart of our image manipulation scripts.

We're then comparing the popularity of the site with its hue, as given by the Alexa ranking index and a simple calculation from its average colour value. Then we do some statistical magics, push some buttons, graph some pretty scatter plots, and see if there's any meaning to the data.

At the moment, we've got the scripts running full-time on my server, gathering and processing data slowly. After the data is collected, the report is written (that part won't be made public) and the marks come back, we want to write a nice front-end with some more options, a database, some crazy amounts of processing, and... do... something with it. (Is this even remotely monetizable? Who cares!)

Until the "app" eventually gets launched, you can view the results of the script in real-time at http://colour.petersobot.com/100k/ .

The real-time results of the script can be viewed at http://colour.petersobot.com/100k/output.csv. The script was run for a little while on the top one-million site dataset, but this list had too many malware/spam sites in it. This short list of results can be found at http://colour.petersobot.com/1m/output.csv.

Filed under  //  code   colour   git   github   internet   project   python   script   statistics