Brad's Blog

web dev, django, running, food, or whatever

Published: 2019-02-03

I'm doing a Whole30

diet fitness health nutrition whole30

Early in January I saw a backlash towards things like whole30, paleo, and keto in some of my fitness circles. I'm not sure why, but I do think a lot people approach these things as "quick fixes" rather than tools for setting a sustainable, healthy lifestyle. Admittedly, I've done the Whole30 regimen twice (2015, 2016), so I should have all the tools I need to have a healthy food lifestyle. But sometimes, things go off the rails. It ...


Published: 2019-01-03

New Year, New Site (2019 edition)

blog django meta opensource

So, it's a new year (happy 2019 everyone), and despite not publishing a single article in 2018, I've done a fair amount of work recently to update my site. Here's the quick & dirty rundown: I'm now running Django 2.1 with a nod toward the next LTS release -- 2.2 django-blargg now only supports Django 2+ officially. There's still a fair number of pages powered by django-staticflatpages which has also seen a recent update ...


Published: 2017-11-28

Giving Tuesday: My Favorite Memphis Nonprofits

fitness giving memphis memtech nonprofits

Today is #GivingTuesday. A time when we've finished with Black Friday shopping and all the Cyber Monday deals are over still well under way. It's a chance for us to collectively reflect on the charitable organizations that help make the world a better place. Here are my five favorite Memphis-based nonprofits. 1. Tech901 Tech901's charter is to "train current or potential Memphians for a variety of information technology jobs and to work with employees to increase the ...


Published: 2017-05-14

What's in my requirements.txt

programming python unix

It's Sunday, and tomorrow is our scheduled monthly python meetup in Memphis, and it's one of those month's where I've been busy and I haven't done a good job of finding a speaker. So, that mean's I've got to pull something together at the last minute. While racking my brain for a quick-and-easy topic, I thought, "I wonder what python packages I'm using most?" So, I ran this nifty monstrosity of a ...


Published: 2017-02-12

The Blue Collar Programmer

industry programming skills technology wired

There's a recent Wired article that's been floating around the web that asks if computer programming is the next big thing in blue collar work. I find this article interesting, because I've long though about computer programming a skilled trade. In one sense, it's not unlike being a plumber or and electician, both of which can provide very decent, middle-class salaries. In fact, thinking of tech jobs in this manner is nothing new! In the '90s ...


Published: 2017-02-01

Sending SMS messages with Amazon SNS and Python

aws python sms sns texting

There are many services out there that will let you programmatically send SMS messages. One of the more popular is Twilio, and they have a great API and a python client that's easy to use. There's an interesting quora thread with several other suggestions as well. Another option is to use Amazon's Simple Notification Service (SNS), which also supports sending SMS messages. I recently incorporated this into a project, and thought I'd share. Step 1: API ...


Published: 2017-01-03

Why is runserver/daphne so slow?

channels daphne django node node_modules react

(tl;dr) I installed django-channels and now my runserver command is very very slow. django-debug-toolbar was sort of the culprit (not really, because it was my own fault) The problem I've just started a new project using django-channels. Websockets + channels is incredibly powerful, but I noticed something strange: While running django in debug mode, the development server was incredibly slow (on the average of 60s-90s per response). After a bit of digging, it seemed that django-debug-toolbar was to blame ...


Published: 2016-12-10

2016 St Jude Memphis Marathon

It's been exactly one week since I participated in the St. Jude Memphis Marathon, and I wanted to take a moment to say thank you to everyone who helped me get so close to my fundraising goal. Together, we raised $1435 of $1500, and I'm really happy about that (although, you can still give up 'till January!). As for the race, well... I'm glad I ran it. This year, I've run a 50k, a 50-miler, and ...


Published: 2016-05-21

Help me support St Jude

fundraising marathon running stjude

If you've known me for a while, you might know that I'm a runner. Since I live in (near) Memphis, TN it's hard not to get excited about the St Jude Memphis Marathon. Surprisingly, this will only be my second marathon, and this year I've decided to run the race as a St. Jude Hero. What's a St. Jude Hero? Well, I've pledged to raise at least $1500 in donations for St. Jude, and ...


Published: 2016-04-29

Let's convert a Word Doc to HTML

html pandoc python word

tl;dr I wrote a python script to convert Word documents to mostly-clean html. Get it at https://github.com/bradmontgomery/word2html. Ah, Microsoft Word... That glorious business-class software used all-around the world. It's perfect for those long, legal documents consisting of nothing but headers, paragraphs, and bulleted lists. All of which we an easily convert into simple HTML, right. Right? File > Save As > Web Page (.htm). Easy as... No wait, was that supposed to be File ...