ron rothman.ron rothman
selectively conformist

Author Archive

»
mtwsgi: A Multithreaded Python WSGI Implementation

by Ron
No comments yet

I wanted to combine the simplicity of Python’s built-in WSGI server with the benefits of concurrency, so I wrote this multithreaded drop-in replacement for wsgiref.WSGIServer. Also included: a server adapter for use with Bottle. Suggestions welcome.

»
Python 2.7.3 (Bug) Broke My Namedtuple Unpickling

by Ron

I just learned (*ahem* the Hard Way) that CPython 2.7.3 namedtuple is buggy when combined with pickling and older Python versions. If you pickle a namedtuple using CPython 2.7.3, you won’t be able to successfully unpickle it using 2.7.2 (nor, presumably, using even earlier versions). Here’s a short example. First, run this with Python 2.7.3: […]

»
Superior Macaroni & Cheese

by Ron
No comments yet

If “mac and cheese” makes you think of gooey, bright orange slop, then you haven’t tried this version. It’s delicious, nutritious (try it with quinoa pasta), easy to make, and it will completely change your outlook on this American favorite. Kraft™, it ain’t. Ingredients Pasta 1 package (16 oz.) elbow pasta (macaroni). Use whole wheat […]

»
Cygwin cron: Spurious Messages in Event Viewer

by Ron

I’ve been using Cygwin on my Windows partition to run a particular job every minute. Cron (Vixie’s cron) works perfectly, except that messages like this one were appearing (every minute!) in my Windows event log:

»
Fixing minidom.toprettyxml’s Silly Whitespace

by Ron

Python’s xml.dom.minidom.toprettyxml has a feature/flaw that renders it useless for many common applications.

»
2 Become 3

by Ron

“Leo loves you.”

»
It’s a Boy!

by Ron

Please welcome our newest family member, Blake, into the world.

»
Is Home Birth Courageous?

by Ron

It’s funny. I’ve recently been told—by more than one person—that Sara and I are “brave” for planning to deliver our baby at home. This from people who are educated, intelligent and have my respect. And yet, they couldn’t have picked a worse way to characterize the decision. What’s going on here? Read on, and then […]

»
Canada Trip: Posted

by Ron

Finally posted the itinerary and photos from our summer trip to Quebec & Ontario. Activities included: Visiting friends Cycling 100 miles of scenic converted rail line Genealogy research in rural Quebec Consumption of many and varied animal parts (not to mention: chocolate, cheese, poutine, et al.) Ice wine tasting Quebecois Folk music concerts Watching Beluga […]

»
CSA Inventory, Week 10

by Ron

Produce Roundup This week’s vegetables. (Click for larger view.) Fresh, organic and local. $12. This week’s take:

»
Southeast Asia Trip: Epilogue

by Ron

We’re back home. (Boo.) We’ll post our photos as soon as we sort through [all 1500 of] them. Update: the photos have been posted.

»
Southeast Asia Trip, Day 29: Leaving Khao Lak

by Ron
No comments yet

Heading to Phuket airport now. A mere 32 hours after we board our plane (Phuket -> Bangkok -> Tokyo -> JFK), we’ll be back in snowy New York. For this final travelblog entry, I wish I could write something witty or amusing. But ending our trip has me so bummed that all I have to […]

»
Southeast Asia Trip, Day 28: Khao Lak

by Ron
No comments yet

Today’s plan is to: have breakfast on our private veranda beachcomb bask by the pool eat as much coconut ice cream as possible get a beachside Thai massage order fruit drinks by the coconut-full lament that this is our last day here

»
Southeast Asia Trip, Day 27: Khao Lak (Similan Islands)

by Ron
No comments yet

We snorkeled the Similan Islands today. Remarkably, the breathtaking underwater landscape we saw (heaps of beautifully colored fish and coral) really did resemble the glossy posters in the tour company’s sales office!

»
Southeast Asia Trip, Day 26: Khao Lak

by Ron
No comments yet

Traveler’s Tip of the Day: When getting your hair cut in Thailand, don’t ask for it to be cut “short.”

»
Southeast Asia Trip, Day 25: Khao Sok to Khao Lak

by Ron
No comments yet

After a few more hours of kayaking this morning (had some great wildlife sightings), we headed to Khao Lak for the final leg of our trip. We’re now at a 5-star resort just north of town, on a sparsely populated tract of white-sand beach. The contrast from last night is stark–we no longer need a […]