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:
http://ezprompt.net/
http://bashrcgenerator.com/

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'
Image

Dog

21743770_10159254980850403_3778421002237819676_o

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
https://medium.com/unicorn-supplies/angular-vs-react-vs-vue-a-2017-comparison-c5c52d620176

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.

http://www.brianfolts.com/driver/

http://routeview.org/VirtualRide/

http://www.makeuseof.com/tag/5-tools-to-take-an-auto-guided-google-street-view-tour/

How to cut up a whole chicken