I’ve tried using disk utility and didn’t seem to get anywhere. Using linux’s dd command seems to work best. Step 1. Open up the Terminal app and enter in: diskutil list Figure out what your usb device is called – mine was called /dev/disk1. Step 2. Unmount the disk: diskutil unmountDisk /dev/disk1 Step 3. Copy […]
Monthly Archives: July 2012
Threading Example in Python
Running multiple threads in Python is actually quite simple:
Painless Django Settings.py Deployments
Instead of constantly changing settings.py for different environment, automate the the process with some simple python:
The Python or Operator Shortcut
If statements are one of the most basic concepts used in all programming languages. Unfortunately they also make code ugly, unreadable, and sometimes even inefficient. Check out this google talk on if statements: http://www.youtube.com/watch?v=4F72VULWFvc Using the or operator we can avoid ifs when checking for null values before assignment: Traditional if: Using the or operator: