Archive for the 'General' Category

A JSON Parser Using SimpleParse

Wednesday, July 21st, 2010

I’ve been reading the recent posts on CodeTalker with interest. I’ve written a handful of parsers using two different parser generators for Python: PLY and SimpleParse. My most recent work with parsing has had me gravitating toward SimpleParse so I thought I’d see how it stacks up against CodeTalker.
First I checked the web [...]

Rebasing to a New Branch with Mercurial

Friday, July 9th, 2010

I had a situation at work the other day where I had made a number of local commits to the default branch of my repo. I wanted to push them upstream to our central server but the feature was incomplete and I didn’t want to break anything in case someone needed to make a [...]

My Take on Multiple Constructors

Wednesday, March 17th, 2010

I noticed the same question on c.l.p that Steve Ferg responded to on his blog. I was feeling too lazy to respond to the thread earlier but I thought I’d throw my idea up on the ol’ blog before wrapping up for the day.
I think this is a classic use-case for class methods. Here [...]

That Sucks

Wednesday, March 17th, 2010

Spent the morning working from a coffee shop. I was feeling hip and fresh.
I came home and was going to whip up a sammich for lunch and then get back to work.
Opened the bread to make the sammich and then had to go and bring the puppy back in the house. [...]

Tagged Revision Log Messages in Mercurial

Friday, March 12th, 2010

I work at YouGov and we use the Mercurial for revision control.
We tag every release in a MAJOR.MINOR.BUGFIX format. 2.32.2 for example.
Recently I wanted to get a summary of the commit log messages for each of the tagged revisions. Here is the magic command that got me the output that I wanted:

# get [...]

Evolution of a Haskell Function

Thursday, March 11th, 2010

I’m going through Real World Haskell trying to get a handle on the Haskell programming language. Python is my current language of choice, but I like to learn new programming languages too.

So last night I was going over the chapter that introduces ‘let’, ‘where’, ‘case’ and guards and I wanted to try them out. I contrived a simple situation where I thought I could use them.

Link: PiCloud Overview

Thursday, March 11th, 2010

Here’s a great overview of using PiCloud that goes beyond “hello world” type stuff.
For those of you who don’t know, PiCloud is a cloud computing platform for Python that aims to simplify the task of running code in “the cloud.”
cw

Aubrey

Wednesday, January 6th, 2010

Our family is so excited and blessed to welcome Aubrey into the world.

She was born this morning at 7:11am EST. She weighed in at 8lbs. 1oz. and is 19″ long. Mom and baby are doing well. I’m doing great!
cw

On Tree Houses and Software

Thursday, November 12th, 2009

From the ShopTalk blog:
The Minimum Viable Tree House
A case-study in what not to do with your software project.

Beautiful Coroutines

Tuesday, October 20th, 2009

Some guy on some other blog wrote this. His name sounds familiar …
Beautiful Coroutines: Cooperative Concurrency in Python using Diesel
cw