Text 19 Mar 40 notes Streaming Twitter into MongoDB

curl http://stream.twitter.com/1/statuses/sample.json -u<user>:<pass> | mongoimport -c twitter_live

One thing that you can do with mongo is have 1 streaming master and 1 read/write master

server A:

./mongod —master —dbpath /tmp/a

server B

./mongod —dbpath /tmp/b —master —slave —source localhost:27017 —port 9999

You can then pipe the stream into server a, and it will only process the live stream.

Server B will replicate all changes.  You can also write to it, query on it, etc…  This way you can do operations that block writing on server B, but server A will never backlog.

Text 5 Mar 4 notes Blogging

I think I’m going to try blogging again.  Its not from a lack of opinions that I don’t, just a lack of time :)  And perhaps a small algorithm somewhere in my brain that prevents me from putting all my thoughts out there…

Text 30 May 2 notes

I think I’m sick of the iPhone keyboard (or lack there of). Back to a blackberry? Or see what android phones come out this year?

Text 10 Apr 2 notes

Got fc10 working on old ppc mac hardware. Now we can use that 4 year old stuff

Text 4 Apr 1 note

So i went to the gym for the first time since Sara was born. Ouch

This got me thinking about locks at the gym. Shouldn’t the weight know I haven’t been there in months? Even if they don’t track me, can’t they see my physique? “whoa that’s too heavy!”.

The whole gym should be smart. Making fun of you to prod you. Encouragement on those rare times you meet a goal. Telling you not to lift that weight… even though younused to be able to…

And bybyhe way, no one wants to hear you (yes you) grunt.

Photo 4 Apr 1 note
Text 3 Apr 2 notes *nix package management

boost boost-dev boost-devel: all names for the same thing in different package managers.  a _tiny_ bit of standardization would be nice.

Text 3 Apr 2 notes Scheme on Android

Wish I had a valid reason to play with this: http://github.com/dyoo/moby-scheme/tree/master

Don’t have an android phone or an app (or time).

Link 3 Apr 2 notes http://buildbot.mongodb.org/waterfall»

its all green! for now…

Photo 3 Apr 2 notes Who said this had to be just coding stuff? Testing iPhone app.

Who said this had to be just coding stuff? Testing iPhone app.

Text 3 Apr 2 notes

Testing the dashboard widget. This might be an easy way to post really quick thoughts.


Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.