How to Make a Bootable Linux USB on Mac OS X

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 […]

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: