Articles in the programming category

  1. Agreeing to the Xcode/iOS license...

    Finder Sometimes this pops up when you least expect it:

    Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

    This morning, I went to refresh one of my git repo's for work, and make spit that out. What the heck happened last night? Anyway, the …

  2. Python: Convert String Date to Date Object

    Python LogoOccasionally, you may run across a date in a format that can't be easily loaded into a Python date object. For example, I recently had a situation where a file I was parsing was full of dates in this format: 7/7/2008.

    The obvious thing to do here is …

  3. Combining Multiple Models Into One Context Variable

    Django LogoI'm not sure if the title of this post accurately describes the problem. I have a situation where I have very similar models that I want to display in one table. As you know, querysets are limited to a single model, so it isn't possible to have a single context …

  4. Empty Strings in Python Are False

    Python LogoRecently I was working on some old code. One of my model methods was originally written such that if one parameter was set to the Python None type, a particular set of actions would occur. For some reason, I checked for None like this:

    if parameter is None:
        do something …

« Page 2 / 8 »

My Bookshelf

Reading Now

Other Stuff