JustAnyone's Blog

Professional programmer; amateur home handyman (on our home only); tinkerer; husband; father of 3; attempting to be a renaissance guy (to know at least a little about a lot of subjects, a doomed pursuit in an information age); geek-arts-and-sciences enthusiast. Interest areas: Science fiction, wind turbines, electric cars, renewable energy, making things.

Thursday, June 20, 2013

Question on StackOverflow: Best Unittest for Python programs using OptionParser() ?

›
Just posted this on stackoverflow. http://stackoverflow.com/questions/17223530/python-how-do-i-usefully-unittest-a-method-invoking-optionpa...

MagicMock Returns different values each call

›
Recent discoveries about mock objects! I'm trying to create a Python unittest that exercises a class method w...
Tuesday, May 14, 2013

Drop-Thru Code Considered Harmful

›
Recently, I was describing my frustrations with some Python code that had been written by a now-departed co-worker.  I describe this code as...
Friday, May 10, 2013

Subversion pre-commit hook script - Python files: prevent tabs, verify svn properties

›
Here's a precommit hook script I've modified from one I've used before.  I hope it comes in handy.  I'm going to try to subm...
Wednesday, May 08, 2013

Setting up Graphite / Django - MemoryError in Glyph

›
I'm setting up Graphite (under Django, of course) on a new box, and just saw the following error: Exception Type: MemoryError /...
Wednesday, April 17, 2013

Too Smart for their Britches

›
I just ran into a bit of bash script that did this: conflist=`cat www-conf/* |sort -u |sed ':a;N;$!ba;s/\n/ /g'` On first glance...
Tuesday, April 02, 2013

Solved: MongoDB - How to add Binary data to a document using pymongo

›
I'm trying to add data to a MongoDB document. My data is tuples of doubles, and I'm adding to an array of them. This is a good e...
‹
›
Home
View web version

About Me

Unknown
View my complete profile
Powered by Blogger.