June 2011
16 posts
1 tag
Jun 26th
6 notes
4 tags
A Twitter Nozzle class
I riffed on the twitter stream eating code some more. I added handling for chunked tweets - large tweets go over multiple payloads. I did this by adding a little state handling in the form of a Nozzle class. I also added support for dumping the tweet stream directly into MongoDB. I don’t even audit the data, I just stuff it right in to the tweets collection in the twitterdb database. I...
Jun 26th
7 notes
2 tags
Jun 26th
4 notes
1 tag
Jun 25th
4 tags
The Basics On Twitter's API
Twitter’s API has had a long and tumultuous history. It is made up of multiple components that operate differently, including both REST and Streaming API’s. It’s reasonable to think of the REST API much like you think about traditional I/O in that you make a call, wait for an answer and then do something with it. The streaming API operates more like evented I/O where some...
Jun 25th
3 notes
4 tags
Logging Function Calls with Decorators
I am one of those coders that tends to write verbose log output. Especially during early development stages of a system when you’re not sure your code is correct yet. Python’s logging module leaves some things to be desired, but it’s an excellent default offering. Especially when used in a higher-order manner, like with a Python Decorator. Logging Starting a log can be two...
Jun 23rd
34 notes
1 tag
Hack & Tell 9 →
Really looking forward to tonight’s Hack & Tell at Spotify HQ. * http://www.meetup.com/hack-and-tell/
Jun 13th
2 tags
Jun 9th
4 notes
3 tags
Jun 6th
10 notes
3 tags
brubeck.io →
I spent some time hacking html/css this weekend and built a website for Brubeck. You should check it out: brubeck.io
Jun 6th
2 notes
3 tags
Jun 6th
2 notes
1 tag
Linkr: A Link Saver
pjmccoy: linkr is a service for saving links for reading later. You can save as many links as you want and then read them at a more convenient time later! linkr also allows for easy sharing of links with your friends! I was inspired to code linkr after a post by j2labs about the same type of project, except it is coded in python/Brubeck. I decided to code linkr in Javascript for the Node JS...
Jun 5th
7 notes
2 tags
Jun 3rd
2 notes
1 tag
Jun 3rd
105 notes
1 tag
Jun 1st
Jun 1st