Other articles


  1. Notes on the descriptor Protocol

    I just figured out how the descriptor protocol works. It is not the most intuitive part of python, but it allows for some cool constructions. Just as a way of writing down what I've learned so I remember it. Say you have a class that you're trying to ...

    read more

    There are comments.

  2. DjangoCon EU Talk Proposal

    I just submitted a talk proposal to DjangoConEU. This is a conference being held in Warsaw. The talk is on making django tests faster and more effective. The goal is to give attendees a bag of simple, effective tricks for speeding up their test suites and, in the process, their ...

    read more

    There are comments.

  3. Dear Frye boot folks,

    This year for Christmas, I got a new pair of Frye boots. They are a replacement for a pair of harness boots I've had since 2001.

    My old Fryes have been through hell and high water with me. For three years I worked at a wetland plant nursery, which ...

    read more

    There are comments.

  4. Thankful Friday

    Today is so-called Black Friday. I'm planning on saving a lot of money today. In fact, if you're going shopping today, I'm pretty sure I'm going to save more money than you. Why? Because I'm not buying anything. I just read a comment on Facebook ...

    read more

    There are comments.

  5. New Bars, New PRs

    New PRs:
    Clean and Jerk—200# (90.9 kg)
    Jerk—200# (90.9 kg)

    Today did not start off well. I woke up late. My dog shit on the floor. The milk was wretchedly sour. All I had to eat before I went to work was a grape and an ...

    read more

    There are comments.

  6. Don't waste your iterators!

    There's a pattern I see fairly often in code where someone uses a function that returns a sequence of some sort, filters it, and then wants to use the first result that matches the filter. It looks something like this:

    return [x for x in foo if len(x ...
    read more

    There are comments.

  7. Stalled on Overhead Press

    Wednesday, August 24, 2011

    Squat: 290 lbs: 5/5/5
    Press: 137.5 lbs: 4/4/3
    Deadlift: 295 lbs: 1 set of 5.

    This morning I stalled on Overhead press for the first time. The weight started feeling really heavy a few workouts back, and my form wasn't ...

    read more

    There are comments.

  8. Iterators and iterables clarified

    Note

    Need to fix code formatting

    So what exactly is a python iterator, and how is that different from an iterable?

    An iterable is an object that implements a method __iter__(), which, when called, returns an iterator. The __iter__() method can be called by the iter() function, and is also ...

    read more

    There are comments.

  9. Page 1 / 1