OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/

If you try to run pip install and got this error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/, perhaps you don’t have permission to that folder. Try:

sudo chown -R $USER /Library/Python/2.7

Command prompt setting

Just to add more to my previous command prompt setting post.

These two links will help you construct your command prompt PS1 string:

And if you use git a lot, this following setting will show your current git branch name in your command prompt. Thanks to this post.

parse_git_branch() {
git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/ (\1)/’
export PS1=”\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ ”

So my complete prompt setting .bash_profile lines are:

parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'

export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "

export CLICOLOR=1
export LSCOLORS=EgFxCxDxBxegedabagacad

alias ls='ls -p'



Stop iTunes opening when plugging in iPhone

Open iTunes, go to Preferences, click the Devices tab icon, and then check the box on the bottom left.

Screen Shot 2017-09-14 at 10.19.24 AM

Angular vs React vs Vue

Here is a very nice and comprehensive article.

Angular vs. React vs. Vue: A 2017 comparison

Street view player

I found a few tools that can auto-play the street views from point A to point B. This reduces a lot of mouse clicking.




How to cut up a whole chicken