Posts Tagged ‘MongoDB’

Two New Projects

Ahoy! I have two new projects up on github.

The python library is pretty trivial and self-explanatory, but I realized that I had copied it into enough projects that it deserved to be in setuptools.

The rationale for oplogutils is a little involved. Basically, this is what you need in some worst-case recovery scenarios. Those scenarios will be explained in more detail by John Allspaw and myself in upcoming posts on Code as Craft.

MongoDB at Etsy

Please check out my new post over at Code as Craft, MongoDB at Etsy.

There will be at least two more installments in this series, one by John Allspaw and another one by myself.

Etsy Haikus

Inspired by Peter Norvig, I have created a quick hack to generate haikus from Etsy listing titles. Check it out here.

Technical details for those who are interested:

  • The listings are downloaded from the Etsy API by an offline process, and stuffed into a MongoDB database if their titles are either five or seven syllables.
  • The CMU Pronunciation Dictionary handles the syllable wrangling.
  • The frontend is a very simple Django application.

All in all, about three or four hours of effort. Note that Etsy has nothing to do with these haikus, and doesn’t endorse this app.