Welcome to my site! I'm a web developer in Lawrence, KS, and I like blogging about Python and programming in general. I'm also an avid motorcycle rider. Below you can check out what I've been up to lately.


Writing (tags)

  • Rewriting Huey for a better API May 15, 2013 11:50

    For a while I've been itching to rewrite Huey, and just last week released 0.4 which is an almost total rewrite. I initially started Huey for performing tasks like checking comments for spam, sending emails, generating thumbnails, and basically anything that would slow down the pagespeed on my sites. This is still what I see as the primary use-case for huey -- performing small tasks outside the request/response cycle and running jobs on a schedule (I have a site that scrapes the county sheriff's site and keeps a log of arrests in my town). The goal for the rewrite was not to change the purpose of Huey, rather it was to change the API.

  • Structuring flask apps, a how-to for those coming from Django April 27, 2013 13:21

    The other day a friend of mine was trying out flask-peewee and he had some questions about the best way to structure his app to avoid triggering circular imports. For someone new to flask, this can be a bit of a puzzler, especially if you're coming from django which automatically imports your modules. In this post I'll walk through how I like to structure my flask apps to avoid circular imports. In my examples I'll be showing how to use "flask-peewee", but the same technique should be applicable for other flask plugins.

    I'll walk through the modules I commonly use in my apps, then show how to tie them all together and provide a single entrypoint into your app.

  • "wallfix", using python to set my wallpaper April 22, 2013 09:54

    I had fun writing about my "cd" helper, so I thought I'd share another productivity helper I wrote for setting my wallpaper. It's a little silly, but I insist on my wallpaper being used for my lockscreen and my login window as well -- that way the entire time I'm on my computer the background is "seamless". Before I wrote this script it used to take me probably 3 or 4 minutes to change wallpapers!

  • More posts...

Coding

  • 262b33 to huey Charles Leifer on May 22, 2013 19:11

    Fixing some new test failures.

  • 9ebafa to huey Charles Leifer on May 22, 2013 19:10

    Log that task is executed.

  • d6204a to huey Charles Leifer on May 22, 2013 19:03

    Re-shuffling

  • 5c0289 to huey Charles Leifer on May 22, 2013 19:00

    Cleaning up consumer code

  • 05579b to huey Charles Leifer on May 22, 2013 16:04

    Cleaning up docs

  • b6da15 to huey Charles Leifer on May 22, 2013 10:29

    Cleanup

  • 4fac62 to peewee Charles Leifer on May 22, 2013 08:52

    Updates to 2.1.2

  • cf5ef8 to peewee Charles Leifer on May 22, 2013 08:51

    Changes per @evanton

  • a88719 to huey Charles Leifer on May 22, 2013 08:36

    Fixing django_ex settings

  • 45e38c to huey Charles Leifer on May 22, 2013 08:36

    Simplifying django settings once more.