<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>nathanielksmith</title><generator>Tumblr (3.0; @nathanielksmith)</generator><link>http://nathanielksmith.tumblr.com/</link><item><title>evanleed:

my heart is a mall where moms drop off teensmy soul is a carwash where there is always a...</title><description>&lt;p&gt;&lt;a class="tumblr_blog" href="http://www.evanleed.co.uk/post/26913064799/my-heart-is-a-mall-where-moms-drop-off-teens-my"&gt;evanleed&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;my heart is a mall where moms drop off teens&lt;br/&gt;my soul is a carwash where there is always a job for the unemployed and broken down&lt;br/&gt;my eyes are heroin needle beaches&lt;br/&gt;my fingers are miami in 1982&lt;br/&gt;my mouth is a used cd store going out of business&lt;br/&gt;and my shoulders are a trustfund hippie coffee shop&lt;br/&gt;my feet are a hammock left out in winter&lt;br/&gt;my knees are a hotel lobby rock show&lt;br/&gt;my legs are a retired baseball player signing autographs&lt;br/&gt;my arms are the woods you went to when you were young&lt;br/&gt;my neck is the blue locker you had in junior high&lt;br/&gt;my nose is the blank pages in the back of a yearbook&lt;br/&gt;all my blood is an interstate highway&lt;br/&gt;and my nerves are mountains you see but never visit&lt;br/&gt;and my spine is also a carwash &lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://nathanielksmith.tumblr.com/post/26913354099</link><guid>http://nathanielksmith.tumblr.com/post/26913354099</guid><pubDate>Tue, 10 Jul 2012 13:25:34 -0400</pubDate></item><item><title>"this is like being murdered in a bog by your grandfather’s racist ghost"</title><description>“this is like being murdered in a bog by your grandfather’s racist ghost”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://soundcloud.com/tessier-ashpool/oak-knower"&gt;&lt;a href="http://soundcloud.com/tessier-ashpool/oak-knower"&gt;http://soundcloud.com/tessier-ashpool/oak-knower&lt;/a&gt;&lt;/a&gt;&lt;/em&gt;</description><link>http://nathanielksmith.tumblr.com/post/23833994447</link><guid>http://nathanielksmith.tumblr.com/post/23833994447</guid><pubDate>Sat, 26 May 2012 21:48:44 -0400</pubDate></item><item><title>GA residents: Tell your rep NO on HR 179</title><description>&lt;a href="http://saytheidea.org"&gt;GA residents: Tell your rep NO on HR 179&lt;/a&gt;: &lt;p&gt;If HR 179 passes *Tomorrow* we, GA taxpayers, will have to foot the bill for companies who want to clear-cut trees around their billboards. All over the state.&lt;/p&gt;</description><link>http://nathanielksmith.tumblr.com/post/3329386825</link><guid>http://nathanielksmith.tumblr.com/post/3329386825</guid><pubDate>Wed, 16 Feb 2011 13:28:24 -0500</pubDate></item><item><title>Tofu Roll</title><description>&lt;p&gt;While working on the second version of &lt;a title="done" href="http://github.com/nathanielksmith/done"&gt;Done&lt;/a&gt;, a basic command line todo list tool, I realized I had written a bunch of code to generalize routing command line arguments to python methods. It seemed pretty useful, so I extracted it and turned it into a &lt;a title="tofuroll" href="http://github.com/nathanielksmith/tofuroll"&gt;miniature framework&lt;/a&gt; for writing command line applications.&lt;/p&gt;
&lt;p&gt;Code speaks louder than words, so..:&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;greetings.py:&lt;/p&gt;
&lt;pre&gt;from tofuroll.tofuroll import *

class app(TofuApp):
    @command
    def hi(self, options, args):
        if options.name:
            print "Hi, %s" % options.name
        else:
            print "Hi there"

    @option
    def name(self):
        return {
            'help' : "someone's name"
        }

if __name__ == '__main__':
    app().run()
&lt;/pre&gt;
&lt;p&gt;on the command line:&lt;/p&gt;
&lt;pre&gt;$: python greetings.py hi
Hi there
$: python greetings.py hi -n nate
Hi, nate&lt;/pre&gt;
&lt;p&gt;For a more interesting example involving the &lt;a title="peewee orm" href="https://github.com/coleifer/peewee"&gt;peewee&lt;/a&gt; orm, check out &lt;a title="done2.py" href="https://github.com/nathanielksmith/done/blob/rewrite/done/done2.py"&gt;done2.py&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;tofuroll can be installed via pip (pip install tofuroll) and its source is available on &lt;a title="tofuroll" href="http://github.com/nathanielksmith/tofuroll"&gt;github&lt;/a&gt;.&lt;/p&gt;</description><link>http://nathanielksmith.tumblr.com/post/3264857353</link><guid>http://nathanielksmith.tumblr.com/post/3264857353</guid><pubDate>Sat, 12 Feb 2011 22:51:00 -0500</pubDate><category>cod</category><category>open source</category><category>python</category><category>peewee</category><category>tofuroll</category></item><item><title>My MongoDB mug from Mongo Chicago plus an absolutely delicious...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_latnp5WbR31qb0vlso1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;My MongoDB mug from Mongo Chicago plus an absolutely delicious bistro style vegan dinner by my sweet &lt;a title="Crack the Plates" href="http://cracktheplates.com"&gt;A_______&lt;/a&gt;.&lt;/p&gt;</description><link>http://nathanielksmith.tumblr.com/post/1394016072</link><guid>http://nathanielksmith.tumblr.com/post/1394016072</guid><pubDate>Sun, 24 Oct 2010 21:19:53 -0400</pubDate><category>mongodb</category><category>mongochicago</category><category>chicago</category><category>vegan</category></item></channel></rss>
