Author Archives: kpd

Using Beets from 3rd Party Python Applications

I am thinking of using Beets as music library to update a project. The only example of using it this way is in the source code of the Beets command-line interface. That code is well-written but does much more than … Continue reading

Posted in Python | Tagged | Leave a comment

Plane Spotter

My new app Plane Spotter has been approved. The interesting part of it is that it is written in Python and Kivy. Having written Android apps in Java, Cordova, and now Python, I can unequivocally say that the Python/Kivy combination … Continue reading

Posted in Kivy, Python | Leave a comment

Adding GIT branch to BASH prompt

Save this: to ~/ Then add to ~/.bashrc: source ~/ GIT_PS1_SHOWCOLORHINTS=1 PROMPT_COMMAND='__git_ps1 "\# \w" ": "' yielding: 19 ~/proj/app (develop): Note: There are more options to show the status of files. See the for info. Edit: This is … Continue reading

Posted in programming | Leave a comment

New Programming / Shell / Vim Font

Thanks to Chris Weisel for pointing out a great new font for shells and Vim. I usually check out “great new programming fonts” and am consistently disappointed. This one is different. It is similar to Bitstream Mono, but not as … Continue reading

Posted in programming | Leave a comment

Easy Erg – C++ Library for the Concept 2 Rowing Machine Released

I recently open-sourced some of my code. It’s a C++ library that wraps the API and provides an ‘Erg’ class. It currently it builds against an older version of the SDK – version 1.24 – and the current build system … Continue reading

Posted in indoor-rowing, programming, rowing | Leave a comment

New Rowing Series on Row-2K

Row2K has posted the first video of a new web series. This one is called ‘Gut Checks.’ It is a series of short interviews with national-caliber rowers interspersed with some great rowing video. “The one that sticks out to me … Continue reading

Posted in rowing | Tagged | Leave a comment

VI Joke

I have no idea where I found this. People don’t argue about editors as much as they used to. This joke was more relevant then. Two guys are sitting in a bar, and get talking. "What's you IQ?" one asks. … Continue reading

Posted in programming | Tagged , | Leave a comment

RESTful API Design

I just stumbled on Geert Jansen’s book ‘Thoughts on RESTful API Design.’ Here he has documented things he learned while designing the Red Hat Enterprise Virtualization API. The nice thing is that the source to the book is on github … Continue reading

Posted in programming | Tagged , | Leave a comment

Repeating Sections in a Django Template

I have a need to have multiple sections of name/value pairs with a header on some pages. Something like: <div class="row">     <div class="span6">         <div class="row"><div class="span3"><h2>History:</h2></div></div>         <div class="row"><div class="span2">Date added to fleet:</div><div class="span2">{{plane.dateAddedToFleet}}</div></div>         <div class="row"><div class="span2">Total Flight Time:</div><div class="span2">{{plane.totalFlightTime|asTime}}</div></div>         <div … Continue reading

Posted in Django, Python | 8 Comments

Rate limiting with django-ratelimit

I was playing around with James Socol’s django-ratelimit tonight. It provides a decorator to rate-limit view functions. Very nice! I wanted to use it for login blocking, and some minor changes helped this out. My forked version of django-ratelimit is … Continue reading

Posted in Django, Python | Leave a comment