<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>The centipede was very good at walking with its hundred legs. It never spent a thought on just how it could walk. Until one day, when a big black bug asked the centipede “How can you manage to walk with all those feet? Don’t you find it hard to coordinate their rhythm?” The black bug already left, when the centipede was still sitting down, pondering how it could walk, wondering, and (for the first time in his life) even worrying a little bit. From that day on, the centipede couldn’t walk anymore.</description><title>sudomasochism</title><generator>Tumblr (3.0; @633k)</generator><link>http://sudomasochism.com/</link><item><title>Breitenbush Campgroups</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l80gh71eXL1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Breitenbush Campgroups&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041656695</link><guid>http://sudomasochism.com/post/1041656695</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Ron &amp; Alison on the Trail</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_l80ggxXvuO1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Ron &amp; Alison on the Trail&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041656520</link><guid>http://sudomasochism.com/post/1041656520</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Us</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l80ghaDZbP1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Us&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041656871</link><guid>http://sudomasochism.com/post/1041656871</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Riding the Broadway Bridge: 

Credit: Colleen</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l80gheOHWb1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Riding the Broadway Bridge:&lt;/b&gt; 

&lt;p&gt;Credit: Colleen&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041657010</link><guid>http://sudomasochism.com/post/1041657010</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Goonies</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l80ghkXLbW1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Goonies&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041657296</link><guid>http://sudomasochism.com/post/1041657296</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Horses on the Beach</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l80ghhRDw81qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Horses on the Beach&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041657117</link><guid>http://sudomasochism.com/post/1041657117</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Dunkin’ Pepto?: 

Dunkin’ Donuts needs to be careful...</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_l80ghnSN5Q1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Dunkin’ Pepto?:&lt;/b&gt; 

&lt;p&gt;Dunkin’ Donuts needs to be careful with their branding. I thought a Pepto mobile was out giving free samples…&lt;/p&gt;</description><link>http://sudomasochism.com/post/1041657467</link><guid>http://sudomasochism.com/post/1041657467</guid><pubDate>Tue, 31 Aug 2010 04:46:22 -0500</pubDate></item><item><title>Multi-step decorator for Lettuce</title><description>&lt;p&gt;Cucumber seriously has me spoiled. Lettuce is great, but it has a lot of catching up to do. I’m glad to see such active progress on it.&lt;/p&gt;

&lt;p&gt;One quick tip I wanted to give out was one of how to write steps that can be used with minor verbiage differences. For instance:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Scenario: Make a new post
    Given I am logged out
    When I follow "/posts/new"
    Then I should see "New post"
    And I should see "Create new post"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The “Then” and “And” lines use the same step, but with a special regex to make it happen. Essentially what you want to do is to create a capture group so you can group some or’s, but not actually use the capture group. You can achieve this by using “?:”. The lettuce step looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;@step(u'(?:Then|And) I should see "(.*)"')
def i_should_see(step, text):
    world.res.mustcontain(text)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Hope that helps someone out there.&lt;/p&gt;</description><link>http://sudomasochism.com/post/1021434501</link><guid>http://sudomasochism.com/post/1021434501</guid><pubDate>Fri, 27 Aug 2010 15:58:51 -0500</pubDate></item><item><title>Using Lettuce and WebTest to Test Your WSGI App</title><description>&lt;p&gt;Maybe I’m weird, but I don’t use Django. At my office, we’re using a home brew framework. One thing that is missing from our framework is good testing. I came from a Rails background and one thing I missed was Cucumber. Thankfully, someone was nice enough to make a clone in Python. It’s called Lettuce and you can find out more &lt;a href="http://lettuce.it/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What I noticed about the Lettuce documentation, being as extensive as it is, there really is no info on how to use it with any other web framework than Django. I was a little discouraged at first, especially when I tried to use the Django’s test client standalone. That wasn’t pretty and I thought all was lost. Persistence led me to Ian Bicking’s WebTest. It’s a fairly simple library to do web testing. For instance: go to this URL, click on this button, and I should see “X”.&lt;/p&gt;

&lt;p&gt;With Lettuce and WebTest in hand, I knew it would be feasible to use the two together. I just had to figure out how.&lt;/p&gt;

&lt;p&gt;Writing the features is easy. The hard part was getting steps.py to use WebTest so I can interact with my WSGI app just like a browser would:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;from lettuce import *
from webtest import TestApp

@before.all
def set_browser():
    world.browser = TestApp(myapp)

@step(u'Given I am a visitor')
def given_i_am_a_visitor(step):
    pass

@step(u'When I access the url "(.*)"')
def access_url(step, url):
    world.response = world.browser.get(url)

@step(u'Then I should see "(.*)"')
def i_should_see(step, text):
    text in world.response
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It’s simple, really. The only trickery was to use the @before.all decorator to set the world browser as WebTest’s TestApp. From that point on, I can use WebTest like normal.&lt;/p&gt;

&lt;p&gt;Hope this helps someone out there!&lt;/p&gt;</description><link>http://sudomasochism.com/post/899063317</link><guid>http://sudomasochism.com/post/899063317</guid><pubDate>Tue, 03 Aug 2010 13:45:08 -0500</pubDate><category>testing</category><category>python</category></item><item><title>Waiting outside for Aziz Ansari</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l64pjhNP5V1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Waiting outside for Aziz Ansari&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/857947702</link><guid>http://sudomasochism.com/post/857947702</guid><pubDate>Sun, 25 Jul 2010 14:44:57 -0500</pubDate></item><item><title>Looking towards downtown PDX: 

Standing on the Vista bridge</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l64pjpp9te1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Looking towards downtown PDX:&lt;/b&gt; 

&lt;p&gt;Standing on the Vista bridge&lt;/p&gt;</description><link>http://sudomasochism.com/post/857948167</link><guid>http://sudomasochism.com/post/857948167</guid><pubDate>Sun, 25 Jul 2010 14:44:57 -0500</pubDate></item><item><title>Aziz Ansari</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l64pjds4O31qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Aziz Ansari&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/857947519</link><guid>http://sudomasochism.com/post/857947519</guid><pubDate>Sun, 25 Jul 2010 14:44:57 -0500</pubDate></item><item><title>Waiting for the train</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l64pjlh95u1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Waiting for the train&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/857947916</link><guid>http://sudomasochism.com/post/857947916</guid><pubDate>Sun, 25 Jul 2010 14:44:57 -0500</pubDate></item><item><title>Cocteau Twins - Box Set No. 1 180g 4xLP: 

Head Over...</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_l5l1j2p62x1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Cocteau Twins - Box Set No. 1 180g 4xLP:&lt;/b&gt; 

&lt;p&gt;Head Over Heels&lt;br/&gt;
Garlands&lt;br/&gt;
Treasure&lt;br/&gt;
Head Over Heels + Sunburst and Snowblind&lt;/p&gt;</description><link>http://sudomasochism.com/post/813824217</link><guid>http://sudomasochism.com/post/813824217</guid><pubDate>Wed, 14 Jul 2010 23:51:05 -0500</pubDate></item><item><title>Regression Tagging</title><description>&lt;p&gt;I know you run your new albums through Picard, but have you done “regression tagging”? I’ve been spending a little time retagging my massive music library in groups of letters. Most of it is already tagged, so Picard picks up it quickly and i notice that 50% have modifications (e.g. updated year, misspellings, etc)&lt;/p&gt;

&lt;p&gt;Also, i did the unthinkable: I cleared all album artwork. That’s right, I selected all 45,000 songs and checked the artwork field with nothing in it and clicked save. It took a few hours to remove them all. I think there were some problems because Picard has an option to embed the artwork in tags (?) I don’t like the sound of it and i think iTunes didn’t like it either.&lt;/p&gt;

&lt;p&gt;One other good thing about regression tagging is that I was able to find broken/incomplete albums. Not that I am planning on completing them, but it’s definitely an easy way to find that stuff out.&lt;/p&gt;</description><link>http://sudomasochism.com/post/746585786</link><guid>http://sudomasochism.com/post/746585786</guid><pubDate>Mon, 28 Jun 2010 14:18:00 -0500</pubDate><category>music</category><category>organization</category><category>tagging</category><category>folksonomy</category><category>nerd</category><category>time-vampire</category></item><item><title>Discogs Sticker Test: 

testing for new discogs stickers page</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l46kvb5qQV1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Discogs Sticker Test:&lt;/b&gt; 

&lt;p&gt;testing for new discogs stickers page&lt;/p&gt;</description><link>http://sudomasochism.com/post/709393983</link><guid>http://sudomasochism.com/post/709393983</guid><pubDate>Thu, 17 Jun 2010 17:52:14 -0500</pubDate></item><item><title>Stickers</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l46kv9ycKA1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Stickers&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/709393884</link><guid>http://sudomasochism.com/post/709393884</guid><pubDate>Thu, 17 Jun 2010 17:52:14 -0500</pubDate></item><item><title>Oregon Coast: 

No, this has not been altered. This is how it...</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l3y5wi4d5e1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Oregon Coast:&lt;/b&gt; 

&lt;p&gt;No, this has not been altered. This is how it looked through the camera.&lt;/p&gt;</description><link>http://sudomasochism.com/post/693361718</link><guid>http://sudomasochism.com/post/693361718</guid><pubDate>Sun, 13 Jun 2010 04:48:14 -0500</pubDate></item><item><title>King Salmon w/Maitake Fiddlehead Sauté: 

Best fish dish...</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_l3y5wqZW3g1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;King Salmon w/Maitake Fiddlehead Sauté:&lt;/b&gt; 

&lt;p&gt;Best fish dish I’ve ever made.&lt;/p&gt;</description><link>http://sudomasochism.com/post/693361976</link><guid>http://sudomasochism.com/post/693361976</guid><pubDate>Sun, 13 Jun 2010 04:48:14 -0500</pubDate></item><item><title>Homemade Chai</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l3y5wnkihj1qz70lno1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Homemade Chai&lt;/b&gt;&lt;/p&gt;</description><link>http://sudomasochism.com/post/693361843</link><guid>http://sudomasochism.com/post/693361843</guid><pubDate>Sun, 13 Jun 2010 04:48:14 -0500</pubDate></item></channel></rss>
