virtualenvwrapper in osx

Using python virtual env wrapper is very beneficial, especially when you have many python projects using different python versions. It would be a disaster if we just blindly pip install all project modules into our global site-packages. There will definitely be package conflicts later on. Using a virtual environment will keep your python modules stored separately per environment, thus avoiding many issues mentioned above. To install virtualenvwrapper, just do pip install virtualenvwrapper. Or follow this doc. ...

September 29, 2017 · 2 min · birdchan

Docker Tutorial Series

Highly recommend this Docker Tutorial Series written by Romin Irani. Some content is outdated, but the tutorial posts are very easy to understand. https://rominirani.com/docker-tutorial-series-a7e6ff90a023

September 26, 2017 · 1 min · birdchan

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: [code] sudo chown -R $USER /Library/Python/2.7 [/code]

September 22, 2017 · 1 min · birdchan

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: ...

September 22, 2017 · 1 min · birdchan

Dog

September 18, 2017 · 0 min · birdchan

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.

September 15, 2017 · 1 min · birdchan

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

September 11, 2017 · 1 min · birdchan

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/

September 10, 2017 · 1 min · birdchan

How to cut up a whole chicken

[youtube &w=560&h=315] [youtube &w=560&h=315] [youtube &w=560&h=315] ...

September 6, 2017 · 1 min · birdchan

Yayoi Kusama

The Infinity Mirrors show is amazing. Even though I don’t think I understand much from the art pieces, I gain a deeper interest in learning more about the artist Yayoi Kusama. It turns out she is very famous (duh!). And get this, she is a contemporary artist! Really??? So now I know what it means to be contemporary. I also watched a documentary interviewing Kusama at the museum, she is actually using her arts to influence the world. This is all going over my head, so I will stop now. ...

September 5, 2017 · 1 min · birdchan