A Byte of my 2.2-lb Brain

Just sharing stuff…

Bash Scripting Aliases

For scripts I usually create a filename.sh and then make the file executable. I learned a new trick today from a colleague, which is to edit the bash_profile. When you … Continue reading

July 31, 2015 · Leave a comment

Malformed Database Disk Image

Every now and then, I encounter malformed database disk images, especially with sqlite3 files. DatabseError: database disk image is malformed To fix the error, the following methods worked for me. … Continue reading

May 2, 2015 · Leave a comment

MacPorts and Python 2.7

First things first, download MacPorts here—make sure you download the correct version for your OSX (e.g. Yosemite, Mavericks, Mountain Lion, etc.). Then install. Once the port command is working, you … Continue reading

April 14, 2015 · Leave a comment