tidy_html plugin for rawdog

Requires python-tiny package on Fedora. Cleans up the HTML, preventing broken elements from spilling over into adjacent postings. Code was lifted from feedparser.py and dropped into a plugin for rawdog since I couldn’t find an easy way to get mx.Tiny installed.

# rawdog plugin to tidy up html output using python-tidy module
# Brian C. Lane <bcl@brianlane.com>
#
from tidy . . . → Read More: tidy_html plugin for rawdog

Home Media Server Updates

Tonight I finished adding delete handlers and a delete confirmation dialog to hms. This is probably the state that the code will be in for my LFNW presentation . . . → Read More: Home Media Server Updates

color output from git log -p on OSX

By default git on OSX wasn’t colorizing its output. Two things needed to be setup – setting the color.ui to auto and setting the pager (less) to allow raw characters. Add this to ~/.gitconfig

[color]
ui = auto
[core]
pager = less -R

Presto! Nice colorized output . . . → Read More: color output from git log -p on OSX

Newseum Page Grabber Script

Newseum archives the front pages of of over 500 newspapers from all around the world. If you know the ID of the papers you want to see you can use this simple Python program to download the jpg of the papers’ front page to your local system.

Edit the CITIES list to set the IDs of the . . . → Read More: Newseum Page Grabber Script

Simple SQL Schema Migration

I’m working on an application to manage my streaming media for my Roku player using sqlite3 and Python for everything. One thing I’ve learned over the years is that your SQL schema always changes. Once your code is in production you always have something you need to change about it, whether it’s adding a new column, . . . → Read More: Simple SQL Schema Migration

Streaming Local Video With Your Roku

Ever since I switched from Dish Network to a Roku player a few months ago I have had a couple of things I wanted my player to be able to do. The ability to categorize my Netflix queue is at the top of my list and it would be very cool to be able to play . . . → Read More: Streaming Local Video With Your Roku

SharePics Accepted by Apple!

After many hoursminutes of redesign the new look of SharePics was ready to go. I re-packaged the app, captured new screenshots, and re-submitted it to the AppStore. 9 days later I received an email notifying me that my app was now available for sale in the App Store!

Thanks to everyone who offered advice and design ideas . . . → Read More: SharePics Accepted by Apple!

iPhone Tech Talk Seattle

Today is the Seattle iPhone developer talk event. I’m headed for the ferry in a few minutes and figured I would give the WordPress iPhone app a try. I’ll update this post as I have time today.

Well, it was a long day! I used twitter a bit, but didn’t have a chance for any longer updates . . . → Read More: iPhone Tech Talk Seattle