cat /dev/brain

Articles by Ian Cordasco

Weirdness in python2

So a friend of mine is learning python and was fooling around in the interactive console. They accidentally ran:

'str' > 19
# But they meant to run
'str' > '19'

Can you guess what that evaluated to? Conventional thought would suggest a TypeError, but in fact that evaluates to True. Odd right …

Posted on 22 August 2012 by Ian Cordasco

A Few Thoughts

I've just had a few things kicking around in my head lately and I thought I'd jot them down.

With the exception of paginated calls, is essentially feature complete but is lacking tests for everything. My plan as of this point in time is to finish …

Posted on 20 August 2012 by Ian Cordasco (update)

I previously mentioned my work on and how I was having trouble creating downloads on GitHub because they use Amazon's S3 service for the uploaded files. What this means is that first you have to "create" the download on GitHub then you have to upload the actual file …

Posted on 02 August 2012 by Ian Cordasco

Python: del

While testing by hand, I found myself wanted to delete objects that I created as a test from an array after deleting them on GitHub. To do that, I have to do:

del gists[index]

So my initial instinct was to modify the __del__ method …

Posted on 26 June 2012 by Ian Cordasco


I'm the kind of person who often fidgets with the appearance of the things I use. For example, over the course of a few weeks, I constantly changed the configuration file for wmii. I finally got it just right and haven't changed much since (except for the font). I've also …

Posted on 25 June 2012 by Ian Cordasco

After finishing finals, I started working on my project to wrap the Github API. Recently, I came across the area of the API dealing with creating a download on a repository. The one thing that has made this project so enjoyable has been requests. Upon reaching this section, I noticed …

Posted on 17 June 2012 by Ian Cordasco

Git(hub) Basics

After encountering some problems working on I stopped by #github on Freenode to see if anyone else had come across the same problems. While there, I noticed a lot of people asking some basic questions about how to do things with respect to git and Github. They seem …

Posted on 12 June 2012 by Ian Cordasco