Cloning an SD card to an image file on Mac OS X

Do you want to clone the image of SD card to your Mac without waiting all day?

  1. Find the location of the card with diskutil list
  2. Type sudo dd if=/dev/rdisk{number found above} bs=5m of=~/your_directory/your_image_name.dmg

Do you want to restore the saved image to an SD card without waiting all day?

  1. Find the location of the card with diskutil list
  2. Unmount the disk with diskutil mountDisk /dev/disk{number found above}
  3. Format the disk with sudo newfs_msdos -F 16 /dev/disk{number found above}
  4. Copy the image with sudo dd if=~/your_directory/your_image_name.dmg of=/dev/rdisk{number found above} bs=5m

If you leave out bs=5m it will take all day!

App Development

An App started out as Objective-C code built on top of frameworks. Now they seem to be made out of frameworks built with a little Objective-C code. Of course pretty soon that will just be a little Swift code. If I had to pick what frameworks to study it would be storyboards, constraints, core data, UIKit, core location, core animation and NSOperation queues. If you're writing real code, you're doing something wrong.