PyTexas 2013

Posted by: bshaurette | Date: Mar 22, 2013 | Category: Python

The dates and location for this years's PyTexas have finally been announced!

PyTexas 2013 will be taking place over three days - August 16th, 17th, and 18th - in College Station, on the A&M University campus.

Planning is still in the early stages - the call for proposals should be ...

Read More

Young Coders Learning Python at PyCon 2013

Posted by: bshaurette | Date: Mar 19, 2013 | Category: PyCon Python

At PyCon 2013 this past week, I was fortunate to be able to pair up with Katie Cunningham to teach two 1-day workshops for young and aspiring programmers:

The Young Coder: Let's Learn Python

On the first day, we taught younger students aged approximately 10-12, and on the ...

Read More

Farewell, Malcolm

Posted by: bshaurette | Date: Mar 19, 2013 | Category: Django Personal Python

Following an amazing week at PyCon, I woke up this morning to discover that I'd lost a good friend, and that the Python community has lost one of its most brilliant minds.

Details are still unclear, but Malcolm Tredinnick passed away this past weekend, apparently as the result of ...

Read More

Batch Image Upload with Drag & Drop in the Django Admin

Posted by: bshaurette | Date: Feb 12, 2013 | Category: Django Django1.3

The assignment: Find a way to implement batch image uploads in the Django admin using a drag and drop interface. For the record, we're using jQuery 1.8, and Bootstrap for some of the styling. Temporary files are being posted to S3, using boto (for more information:, while the ...

Read More


Posted by: bshaurette | Date: Feb 11, 2013 | Category:


print line numbers in a Python script:

 import sys frame = sys._getframe() print frame.f_lineno 

Python - date from Unix timestamp

 import datetime print(datetime.datetime.fromtimestamp(int("1284101485")).strftime('%Y-%m-%d %H:%M:%S')) 


get a list of all available subcommands:

 python help 

cmd line


Read More