Author: chris

I use n to manage my system/default NodeJS, but if I’m in a legacy repo (hint: pretty much every repo where I work) I’ll need to drop into an old version of NodeJS just for that terminal. Here’s how I install and use nvm. Based on the original instructions at: github.com/creationix/nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh cd…

Read More Installing nvm for n users

There is a war going on. A war between those that say Python requirements should be explicit and those that say requirements should be implicit. Before I continue, I’m going to be talking about requirements.txt, not setup.py. The difference between explicit and implicit requirements comes down to whether the line says Django==1.9.7 or Django, respectively.…

Read More requirements.txt==2.0

For years, my tool for simple load tests of HTTP sites has been ApacheBench. For years, my reference for how to visualize ApacheBench results has been Gnuplot For years, my reference for how to use Gnuplot has been http://www.bradlanders.com/2013/04/15/apache-bench-and-gnuplot-youre-probably-doing-it-wrong/ But do you really want to be writing Gnuplot syntax? It turns out that Pandas will…

Read More Apache Bench

Ren and Stimpy

[update: This post has been corrected, thanks to my commenters for your feedback] Every Django management command gets the verbosity option for free. You may recognize this: optional arguments: -h, –help show this help message and exit -v {0,1,2,3}, –verbosity {0,1,2,3} Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output We rarely use…

Read More Django management commands and verbosity

I consider myself really lazy. So here’s my basic workflow of home-grown commands I go through whenever I work on a Python project. Some notes before I dive in: replace  $PROJECT with the name of your project. I keep a consistent name between projects so I can use the directory name for other things. some…

Read More Patterns: bootstrapping Python/SublimeText projects