Hyperlapse Project

[youtube &w=640&h=360] “I Left My Heart” SF Timelapse [youtube &w=640&h=360] “I Left My Heart” SF Timelapse Behind The Scenes [youtube &w=640&h=360] This is Shanghai《这就是上海》 ...

June 6, 2014 · 1 min · birdchan

Chinese Urban Dictionary

Ha! I found a chinese urban dictionary, so cool! It’s called 玩轉新詞. 至于你信不信,我反正信了

June 5, 2014 · 1 min · birdchan

letting go

Well said. I don’t feel that my time is particularly short; there are plenty of hours in the day, and hopefully plenty more days ahead. Maybe you feel differently. But there’s one thing we can agree on: focus is scarce. We just can’t afford these distractions. So I’m letting go. I’m trying to care less (and about fewer things), because I can’t care about everything. I’m being ruthless, yes, but I firmly believe I’m allowed to do that with my own life. I have to address this feeling that I’m just not getting enough important stuff done. ...

June 4, 2014 · 1 min · birdchan

deobfuscate js

Just found this nice tool online to deobfuscate js code. It works kinda like PrettyPrint. Give it a try! =) http://jsnice.org/ And here is a command line version of it: https://github.com/brettlangdon/jsnice

June 3, 2014 · 1 min · birdchan

SourceTree 1.9.x lost the tree view?

If the tree view is important to you, just to know that version 1.9.x no longer has that. (Why would anyone take that out?) You will need to downgrade back to the 1.8.1 version. Luckily downgrading is painless, just drag-n-drop. To download 1.8.1 http://downloads.atlassian.com/software/sourcetree/SourceTree_1.8.1.dmg Ref: https://answers.atlassian.com/questions/289308/how-do-i-get-the-file-tree-back

May 28, 2014 · 1 min · birdchan

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

This happens a lot for me… out of habit to save a doc. But when a terminal freezes, Esc won’t work and I often just close the terminal… not a good idea especially when there are open file handlers… To unfreeze it, simply do Ctrl-Q. Yea, seriously, you won’t quit your terminal. Try it! =) ref: http://unix.stackexchange.com/questions/12107/how-to-unfreeze-after-accidentally-pressing-ctrl-s-in-a-terminal

May 22, 2014 · 1 min · birdchan

Finding substring in google spreadsheet

Here is how to find substrings in google spreadsheet. Say you have a long string in cell AJ13 and want to see if the substring Obama in China is in there. This is how you do it. =IF( ISNUMBER( FIND( "Obama in China" ; AJ13 ) ) ; "YES" ; "NOT SURE" ) You can nest it for more interesting result. (But not too long…) =IF( ISNUMBER( FIND( "Obama in China" ; AJ13 ) ) ; "China" ; IF( ISNUMBER( FIND( "Obama in India" ; AJ13 ) ) ; "India" ; IF( ISNUMBER( FIND( "Obama in Europe" ; AJ13 ) ) ; "Europe" ; IF( ISNUMBER( FIND( "Obama in Africa" ; AJ13 ) ) ; "Africa" ; "NOT SURE" ) ) ) ) That is 4-level deep, basically to start a new if-statement at the else section. =IF( ISNUMBER( FIND( “Obama in China” ; AJ13 ) ) ; “China” ; IF( ISNUMBER( FIND( “Obama in India” ; AJ13 ) ) ; “India” ; IF( ISNUMBER( FIND( “Obama in Europe” ; AJ13 ) ) ; “Europe” ; IF( ISNUMBER( FIND( “Obama in Africa” ; AJ13 ) ) ; “Africa” ; “NOT SURE” ) ) ) ) ...

May 21, 2014 · 1 min · birdchan

Text to Columns in Google Spreadsheet

To enable Text to Columns in Google Spreadsheet, copy-n-paste the following script. Here are the steps: Open a spreadsheet Tools -> Script Editor… In Code.gs, copy-n-paste the following code to replace the empty myFunction(). File -> Save. Then give a name to this script workspace. (You won’t see it again) Then close the script editor, go back to your spreadsheet. Refresh your spreadsheet. You will see the additional Advanced menu item there. ...

May 21, 2014 · 3 min · birdchan

Download youtube videos

Here is a nice tool to download youtube videos. It’s called youtube-dl. You can install it as follows. sudo curl https://yt-dl.org/downloads/2014.05.05/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl Or if you have apt-get, simply do sudo apt-get install youtube-dl. Here is the documentation on how to use it. Below is a simple command to get you started. =) # using the video title as filename youtube-dl -o "%(title)s.%(ext)s" "https://www.youtube.com/watch?v=R9ohnM69JQ0" --restrict-filenames The –restrict-filenames flag will take away the special characters in output filename. ...

May 6, 2014 · 1 min · birdchan

Look Up

[youtube &w=640&h=360]

May 6, 2014 · 1 min · birdchan