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

AngularJS Fundamentals In 60-ish Minutes

[youtube &w=640&h=480] This video is a pretty good starter if you want to explore AngularJS. The speaker takes quite a bit of time to explain things before typing out the code. This article is pretty good too: http://stephanebegaudeau.tumblr.com/post/48776908163/everything-you-need-to-understand-to-start-with Or if you want to see actual code of an existing project, here is the famous todomvc. ...

April 23, 2013 · 1 min · birdchan

Install owncloud on osx

Here is how you install the owncloud server version on your osx server. I am using Mountain Lion right now. Make sure your web server is working by going to http://localhost/ Download the Community Edition at http://forum.owncloud.org/. You will need to click on a few links to get there. My version is 5.0.4 at this time. Then untar: tar -xvf owncloud*.tar.bz2 Then copy the folder owncloud to your web file directory. Mine is at /Library/Server/Web/Data/Sites/Default/. ...

April 19, 2013 · 1 min · birdchan

Building circuits in browser?

My only hardware design experience was back when I was in college using MAX+PLUS. It was confusing to me at best. Gone are those days. Today I came across circuits.io. Basically, you can make your circuit design in your browser! I can imagine one day circuit design can even become open source. [vimeo 50052950 w=650 h=400]

April 17, 2013 · 1 min · birdchan

Currency exchange

Recently I came across this currency exchange peer-to-peer service called CurrencyFair. I haven’t had a chance to try it out yet, but it looks quite promising. Basically, you get the best exchange rate by skipping the banks. They claim their commission rate is 0.15% only, much lower than anything you could possibly find. [youtube ] ...

April 17, 2013 · 1 min · birdchan

Unbelievable dance

[youtube &w=640&h=360] Background music: Adele - Set Fire to the Rain [youtube &w=640&h=360] Background music: Foster The People - Pumped Up Kicks (Butch Clancy Dubstep Remix) ...

April 2, 2013 · 1 min · birdchan

Preview -600 error

I am not sure what I did that led to this error. I was simply doing some typing in TextEdit and some web browsing. Then while trying to open a pdf file, this happened. Then I tried opening some other picture files and it was the same error. Basically, Preview.app stopped working and kept giving me this -600 crash error. To fix this, you need to reboot. Yea, I know, I ran out of ideas, so rebooted, and the error went away. Hope this helps! ...

April 1, 2013 · 1 min · birdchan