Technical notes, my online memory
Friday, September 13, 2013
Django: building a HttpResponse object with a generator results in empty 0-byte responses
›
Interesting gotcha with Django http responses I hit today. Say you want to stream back content in a http response because gathering it from...
Thursday, August 15, 2013
Account authentication for pushing to code.google.com: what password?
›
It's not immediately obvious that you shouldn't just use your gmail account password when submitting code to code.google.com. While...
Saturday, August 3, 2013
HOWTO tar, zip, and encrypt a directory tree
›
Use this command to tar, zip and encrypt a directory: tar cvz --to-stdout src_dir | gpg --cipher-algo AES256 --symmetric > out.tar.gz.g...
Tuesday, July 16, 2013
Human readable sharing links for files in Google Drive
›
If you follow the instructions for sharing links to google drive files, you end up with horrible links that are mostly just long random str...
3 comments:
Friday, July 12, 2013
How not to do incident response
›
The OIG has a great write-up of an incident response at the Economic Development Administration that cost them $2.7m and included them phys...
Thursday, July 11, 2013
Python: skip a unittest with unittest.skipTest
›
There's a neat way to skip python tests built into unittest . You can use decorators for the test or whole class of tests that will skip...
Friday, June 28, 2013
Python assertRaises exception inside generator
›
So I have a generator and I want to make sure it throws an exception after a certain number of calls. So expected behaviour is this: def ...
‹
›
Home
View web version