Bootstrap Modal Pop-Up Intermittently Unresponsive

Made some changes to a my Mindbody Schedule API plugin WordPress as well as our site’s theme yesterday which worked nicely on the dev server, and expected a short transfer to the live server this morning. Spent a few hours today trying to figure out why the bootstrap modal pop-up in the plugin suddenly stopped … Continued

A Very Simple Tornado WTForm Example using wtforms_tornado

Replacing a basic html form contained within a Tornado template with a WTForms form wasn’t as intuitive as I might have hoped (thus the name, WTF?). Nor was a template. I found an SO post which referenced the wtforms_tornado module, but use of the simple example posted on that page eludes me because there isn’t … Continued

Use sed to replace spaces with tabs from command line

Really useful code Rosuav turned me on to: sed -i ‘s/^\(\t*\) /\1\t/’ path/file.ext Apparently sed is a relatively obscure UNIX program that works really well in editing streams, to be potentially piped to another program. With the above code you will run it once for every level of indentation in the code. As written it … Continued

Rebuilding VirtualEnv or VirtualEnvWrapper – Easy

If you end up changing Python install the virtual environments may not work at first. More specifically the modules installed with pip won’t work. code>$pip freeze dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/mikekilmer/Envs/GLITCH/bin/python Reason: image not found Trace/BPT trap: 5 This post has the easy answer. Just delete all the links in the directory … Continued

Suggestions for Mindbody WordPress Plugin

Got some suggestions for potential features on the mindbody wordpress plugin, so using this post to take note of them (for now): 1- Filter the schedule by classes (If the client is looking for just Yoga sessions, he could choose from a dropdown and have a much clearer look at the schedule) 2- TRANSLATION! Please! … Continued

Forever and Ever FM

Peter Sobot’s Introducing Forever.FM article links to his gist.github page and a module he made that interfaces with the Lame MP3 encoder. Well I finally discovered that he actually has a WWW.github page where the code for Forever.FM is posted. Wow. I guess I should have asked. Anyway – today I’m going to get THAT … Continued

Yearning for A Clean Environment

The $PATH variable in my dev server is full of old paths added via various tutorials over the months since last OS clean install, and I want to know what the source of each of the items is. Let’s see, we’ve got the ~/ directory which contains: .bash_profile #export PATH export PATH=/usr/local/bin:$PATH # Setting PATH … Continued