I saw a post about speeding up the Python packaging command “pip install”, by specifying more responsive mirrors for querying and downloading packages. For my situation, a better tactic is this. Step one: Download all your project’s dependencies into a Continue reading pip install : Lightspeed and Bulletproof
The last few weeks I’ve been thinking about the architectural pattern known as Clean, Onion, Hexagonal, or Ports’n’Adaptors. I’m curious if many people are applying it in the Django world. The premise is for your core application entity classes and business Continue reading Hexagonal Django
My passwords and other miscellany are in a plain text file within an encrypted zip. Since starting to use OSX I’ve been looking for a way to access my passwords such that: I get prompted for the decryption password. The Continue reading Encrypted zip files on OSX
I love the brilliant Vim plugin pyflakes-vim, which highlights errors & warnings, and since I got a MacBook for work, I’ve been using MacVim a lot. This combination has a problem, that MacVim uses the OSX system default Python 2.6, Continue reading Compiling MacVim with Python 2.7
Couldn’t find one of these, so I whipped one up. Bit of restructured text: https://github.com/tartley/python-regex-cheatsheet/blob/master/cheatsheet.rst Install some Python packages: https://github.com/tartley/python-regex-cheatsheet/blob/master/requirements.txt Invoke rst2pdf: https://github.com/tartley/python-regex-cheatsheet/blob/master/Makefile Get a nice PDF out: Python 2.7 regular expression cheatsheet (click this link or the image for Continue reading Python 2.7 regular expression cheatsheet
I’m finding that our Django project’s tests fall into an uncomfortable middle-ground, halfway between end-to-end acceptance tests and proper unit tests. As such they don’t exhibit the best qualities of either. I’d like to fix this. We’re testing our Django Continue reading Django testing 201 : Acceptance Tests vs Unit Tests
The usual solution to typing non-US characters on a US keyboard in Windows is to hold left-alt, then type on the numeric keypad: £ Left-alt + 0163 € Left-alt + 0128 This is a pain on my (otherwise fabulous) Thinkpad Continue reading £ key in Windows on a US laptop keyboard, done right.