June 2011
16 posts
1 tag
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...
2 tags
1 tag
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...
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...
1 tag
Hack & Tell 9 →
Really looking forward to tonight’s Hack & Tell at Spotify HQ.
* http://www.meetup.com/hack-and-tell/
2 tags
3 tags
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
3 tags
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...
2 tags
1 tag
1 tag