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.
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: […]
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 […]
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:
Python’s xml.dom.minidom.toprettyxml has a feature/flaw that renders it useless for many common applications.
Please welcome our newest family member, Blake, into the world.
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 […]
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 […]
Produce Roundup This week’s vegetables. (Click for larger view.) Fresh, organic and local. $12. This week’s take:
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.
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 […]
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
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!
Traveler’s Tip of the Day: When getting your hair cut in Thailand, don’t ask for it to be cut “short.”
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 […]