CaseyBanner.ca | The while() loop of life

Banter – view twitter conversations

We all follow a few celebrities on Twitter. Sometimes it is fun to see their conversations, but then you have to follow the @ replies back and forth between Twitter pages and that can get out of hand fairly quickly.

Now to combat this horrible problem I whipped up this script to use the Twitter search API to grab the last bunch of @ replies between two users.

Use it like:

$ python banter.py nathanfillion simonpegg
import urllib2
import simplejson
 
 
def tweet_date_cmp(a, b):
    if a['id'] > b['id']:
        return 1
    elif a['id'] == b['id']:
        return 0
    else: #a['id'] < b['id']:
        return -1
 
def get_thread(user_a, user_b):
    url_t = "http://search.twitter.com/search.json?from=%s&to=%s"
 
    to_a = simplejson.loads(
        urllib2.urlopen(url_t % (user_b, user_a)).read())
    to_b = simplejson.loads(
        urllib2.urlopen(url_t % (user_a, user_b)).read())
 
    thread = []
    thread.extend(to_a['results'])
    thread.extend(to_b['results'])
 
    return sorted(thread, tweet_date_cmp)
 
 
if __name__ == '__main__':
    import sys
 
    thread = get_thread(sys.argv[1], sys.argv[2])
    for item in thread:
        print "%s: %s" % (item['from_user'], item['text'])

I might code this up into a simple web app to make it more accessible.

Have fun, and don’t stalk too many people.
-Casey

Fabricating waves for your ears

Recently I have succumbed to the never-ending struggle between studying things that I actually enjoy. Now, don’t jump on me and tell me that I should study things that I enjoy. I enjoy programming, but taking a course on it where you are forced into a backwards method of doing things starts to take its toll. Anyway, I digress.

I’ve been really getting into ambient and minimal stuff; for some reason I tend to tap my foot to a minimal track more than something with a crazy beat.

Here are a couple tracks that I’ve been working on over the past few days. Perhaps some slight tweaking is needed but I’m fairly happy with how these turned out.

Depth Perception by kcbanner

Cleanroom by kcbanner

Enjoy. If you wanted higher bitrate versions, I would be happy to provide them.

New minimal track

I’ve been working on this over the past couple days between studying. My first real attempt at minimal trance.

Calculated Scribblings  by  kcbanner

Enjoy!

-Casey

Calculus Timelapse

I spent the day studying for my MATH211 midterm, extreme fun was had by all involved. Seriously, things got dangerous.

I don’t know why but I really really like timelapses. Yeoow.

-Casey

Man + computer

A little experiment.

Insight from Casey Banner on Vimeo.

20s

Hey check it out, I’m 20!

I need to work on my Walken impression some more.

 

Stuff

Pages