Monthly Archives: September 2012

cProfile pstats

pstats Advertisements

Posted in python | Leave a comment

OS X make a bootable flash

iso==> dmg hdiutil hdiutil convert -format UDRW -o destination.dmg source.iso dmg==> usb sudo dd if=source.dmg of=/dev/rdisk1 bs=1m

Posted in dd, hdiutil, osx | Leave a comment

osx python set up

Install Python from homebrew install homebrew: ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) install latest Xcode ‘s command line tool from developer.apple.com. /usr/local/bin/pip install virtualenv virtualenvwapper brew install python python3   .bashrc export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh mkvirtualenv -a /Users/vyang/src/app -r /Users/vyang/src/app/requirements.txt app

Posted in osx, python | Leave a comment