Installing iOS 7

Here is how to install the pre-release version of ios7. Download the ios 7 image at https://developer.apple.com/devcenter/ios/index.action#. Make sure you pick the right one for your iphone model. The dmg file for iphone 4S is 1.16G. While downloading, backup your iphone to itunes. Don’t skip this step since you will be installing a pre-release image. Also, don’t use icloud, I learned it the hard way… Basically your iphone would freeze up and there isn’t much to do but to boot into DFU mode and burn image again… ...

June 12, 2013 · 2 min · birdchan

Google I/O 2013 - Design Decisions in AngularJS

[youtube &w=640&h=360] How can you not use AngularJS after seeing this… ;)

June 11, 2013 · 1 min · birdchan

看在眼裡, 埋在心裡

人總想找到那個最好的,可是,什麼是最好的?你覺得是最好的那個,是因為你的確了解,還是因為別人說它是最好的?即使它對於別人是最好的,對於你也一定是最好的嗎?對於自己想要什麼,自己要最清楚,別人的意見並不是那麼重要。很多人總是常常被別人的意見所影響,親戚的意見,朋友的意見,同事的意見……問題是,你究竟是要過誰的一生?人的一生不是父母一生的續集,也不是兒女一生的前傳,更不是朋友一生的外篇,只有你自己對自己的一生負責,別人無法也負不起這個責任。自己做的決定,至少到最後,自己沒什麼可後悔。 只有在自己落難的時候才會看清什麼是朋友,什麼是狗。 你輝煌的時候,身邊全是朋友.當你落魄的時候,身邊連條狗都沒有。 經歷一些事懂一些,不要以為我傻,只是有些東西我看在眼裡,埋在心裡。

June 9, 2013 · 1 min · birdchan

Introduction to Google’s Closure Tools

Here is a nice link to explain what the Google’s Closure Tools is. I wish I could have known it earlier. http://www.bdoran.co.uk/2011/11/28/introduction-to-googles-closure-tools/.

May 31, 2013 · 1 min · birdchan

10年後你會後悔的10件事

別讓你的人生充滿後悔,看看這10件會後悔的事和如何避免它們。 1、為了取悅他人戴著面具生活。 如果你總是戴著面具面對世界,總有一天面具下會是一個空殼。因為當你花了太多時間專注於他人對你的看法,或者其他人希望你成為怎樣的人,你最終會忘記你到底是誰。所以不要害怕他人的評判,你的心裡很清楚你是誰,哪些才是你真實的一面。你沒有必要為了取悅他人而追求完美。用你克服不完美的方式來打動別人。 2、讓別人來打造你的夢想。 人生最大的挑戰在於發現你是誰;而第二大的挑戰就是樂於接受你所發現的東西。很重要的一點在於你做出的決定能忠實於自己的目標和夢想。你周圍是否有些人不同意你的決定呢?很好。這意味著你正堅定立場,走自己的路。有時你所做的事情在別人看來很瘋狂,但當你興奮地投入其中甚至忘記了時間,那時你就會知道,你正在做一件對的事。 3、和負面情緒的人為伴。 別讓那些態度消極的人左右你,別讓他們接近你。如果你不給他們機會,他們就無法對你帶來影響。你要記住,和這些負面情緒的人為伴並不是一種義務,只是在於你的選擇。這樣你就會親近那些有同情心的人,遠離那些憤怒的人;親近那些寬容的人,遠離那些貪婪的人;親近那些有耐心的人,遠離那些焦躁的人。 4、自私任性。 充滿善行和美好品質的一生是一個人最好的墓碑。那些你所激勵過而且與他們分享了你的愛的人,即使你已經離開這個世界很久,也會記得你所給予他們的。把你的名字刻在他們心中,而不是石頭上。你為自己做的事情會隨著你的離世一起消亡;而你為他人和這個世界做的事情會長存。 5、拒絕改變和成長。 如果你想瞭解自己的過去,就看看你目前的狀況。如果你想瞭解你的未來,就看看你目前的行動。你應該放下過去,為新的生活努力;過去已經過去,永遠不可能再回來。如果你現在能正確意識到這一點,並且為之而努力,你一定會獲得長久的成功。 6、遇到困難輕言放棄。 並沒有失敗,只有失敗的結果。即使事情並不如你所願,也不要灰心或者放棄。總結教訓,繼續前進。那些一步一個腳印繼續前進的人也會贏得最終的勝利。因為早在最終的勝利到來之前,他們的態度就已經贏下了這場戰役。在這個過程中,那些小的進步、決定和行動都會逐漸累積,最終為他們帶來勝利的光榮時刻。 7、過於緊張每一件小事。 生活需要觸碰,而不是緊握。有時候你需要放鬆,讓生活順其自然,不要過分擔心,也不要過於細緻的規劃。學會放鬆一點,不要握得太緊。深呼吸。塵埃落定時你會再次看見森林中的樹木,再賣出前進的下一步。你沒有必要明確知道你會去往哪個好地方。生活中的一切都有完美的順序,不論你現在是否理解。只是需要一些時間把每一站聯繫起來。 8、太容易滿足。 你需要足夠堅強才能放下過去。你需要足夠智慧才能爭取到你所應得的東西。有時你不得不退一兩步,才能達到比以往更高的高度。有時你的雙眼只有經過淚水的洗禮,才能更清楚地看見前方的各種可能。不要滿足於現狀。 9、無止境的拖延。 問題在於,你的時間永遠沒有你想像中那麼多。有一天當你醒來時會發現,你再沒有時間去做那些你一直想做的事情了。那時你要麼已經實現了自己的目標,要麼為你沒有實現的目標找一大堆理由。 10、懶惰無力。 這個世界並不欠你什麼,而你卻欠這個世界的。所以別在做白日夢,開始行動吧。挺起背來,別趴下。對你的人生負責,掌控一切。你是如此重要如此被需要。如果坐在那裡等著某一天某個人來為你做點什麼,那就太晚了。某一天就是現在;這個世界需要的某個人就是你自己。

May 26, 2013 · 1 min · birdchan

AngularJS tutorial

Here is a very nice step-by-step intro tutorial for AngularJS, from the AngularJS official site. You will see how the angularjs code is added to the sample project and for what purpose. I highly recommend this tutorial for anyone wanting to try out AngularJS. http://docs.angularjs.org/tutorial At the end of the tutorial, there are more useful links for development. For example, the angular-seed project, and the AngularJS cookbook. Also, try out this ng-boilerplate project to kickstart your AngularJS projects. ...

May 23, 2013 · 1 min · birdchan

PHP on Google App Engine

You can follow the official install page to install Google App Engine for PHP, or follow my steps here. I am using osx 10.8.3 and I use brew instead of macport. First you will need to get php 5.4. What you have is probably 5.3. You can verify by php -v, and something like this comes out. PHP 5.3.15 with Suhosin-Patch (cli) (built: Aug 24 2012 17:45:44) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies That’s the default/latest php version for osx 10.8.3. To install php 5.4 using brew, according to https://github.com/josegonzalez/homebrew-php, do the following. ...

May 16, 2013 · 3 min · birdchan

Big O cheat sheet

Finally someone put this up. Thanks! http://bigocheatsheet.com/

May 7, 2013 · 1 min · birdchan

HackerFight 1.1 SF4 Double Elimination

Supreme Champion: Playstation 1 Worthy Adversary: Facebook 1 Maybe Next Time: Wildcards 1 4th place: Google 1 5th place tie: Facebook 2, Spacebase 7th place tie: Yammer 2, Stonehearth 1 9th place: Yammer 1 http://hackerfight.challonge.com/hackerfightsf4_1/ https://www.facebook.com/groups/hackerfight/ http://hackerfight.challonge.com/hackerfightsf4_1/module

May 3, 2013 · 1 min · birdchan

Launch sublime in terminal

I don’t know why this symlink is not set up after installing sublime. (Textmate does it!) You can simply do this: sudo ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime Then you should be good to go. Try typing sublime in your terminal and sublime should be launched. If not, add this line to your ~/.bash_profile file. export PATH=$PATH:/usr/local/bin Or you can mess with your own $PATH variable to make it right for you. ...

April 24, 2013 · 1 min · birdchan