iPhoto not opening after downloading Yosemite

In case you have the same issue. It turns out the iPhoto app won’t run on Yosemite. The new photo app is called Photos with a new app icon. This is how to fix it. 1. Make sure in your osx App Store app, there is iPhoto under Purchases 2. Open Finder, delete your iPhoto app. (You will probably need to put in your admin password). Don’t clean up your trash can yet. 3. Then restart. 4. Once log back in, open App Store, go to Purchases, install iPhoto. It will take a while to download. 5. The new app is call Photos with a circular icon. Once verify you could clean up your trash can. ...

April 29, 2015 · 1 min · birdchan

Groovy

To install: brew install groovy Sample code (name this file test.groovy) #!/usr/bin/env groovy println "Hello from the shebang line" def i = 0 def s = "abc" assert i == 1 assert s.equals("abcd") To run the test: groovy test.groovy You will see that the test fails. And it will tell you where. =) My version is Groovy Version: 2.4.3 JVM: 1.6.0_65 Vendor: Apple Inc. OS: Mac OS X. If you want to get rid of this annoying warning WARNING: Module [groovy-nio] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods], rename that library by ...

April 23, 2015 · 1 min · birdchan

Git push asks for username and password

If git push keeps asking you for user/pass, chances are that you did a git clone using HTTPS. Fix that by going to your repo page on github, then click on the SSH link below the clone URL field, then copy that URL over (something like git@github.your_username/your_repo_name.git). Then update your local git repo with something like the following command git remote set-url origin git@github.your_username/your_repo_name.git ref: http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password

March 17, 2015 · 1 min · birdchan

Install MongoDB on OSX

If you are reading this, chances are that you need to deal with unstructured data. =) First, install mongodb using homebrew! brew install mongodb Now we need to set up a dir for mongodb to keep its data. For simplicity, we will just use its default db path /data/db. We will need to change the permission of that dir to your username and your group. Run ls -ld ~ to get that info. ...

March 17, 2015 · 3 min · birdchan

85C Bakery Cafe

There is a Grand Opening for 85°C Bakery Cafe on March 13-15, 2015, in Milpitas!!! It’s located at 672 Barber Ln, Milpitas CA, 95035. 408-432-8585 I love their Egg Tart! Mango Creme Brulee sounds good too! Marble Taro and Mochi Egg Tart!!! Let me just get one more Mango Creme Brulee! And don’t forget the Sea Salt Coffee!!! word search what? =)

March 12, 2015 · 1 min · birdchan

How to get AAA auto insurance coverage details online?

Does anyone know? I tried the instructions from this link, but I only see links to View your billing statement (PDF) View your proof of insurance (PDF) Setup / Manage automatic payment Make a payment There is no links to see the details of my auto insurance coverage details. I searched around but could not find anything useful. Besides calling them directly, is there a way to find out details about my policy coverage amount on bodily injury, medical payments, etc? Is it just me? Why is it so hard to look these up? ...

January 18, 2015 · 1 min · birdchan

Parking on a hill

This always confuses me. Where do you turn your wheels when parking uphill/downhill? The presence of the curb just gets more confusing. After some research, the key is simply this. Imagine your hand brake fails and your car rolls down, just make sure it rolls to the side but not into the road. Assuming your are parking on the right side of the road (in America), here is where to turn your wheels: ...

January 2, 2015 · 1 min · birdchan

Error establishing a database connection

For some reasons my blog has been getting this error every now and then. I knew it had something to do with my recent setup of a new server, even though I copied over all my old settings. After digging around in my ubuntu 14, I found that it was a lack-of-memory issue. My ubuntu 14 box is running the standard lamp stack: apache, mysql and php5, btw. So first you wanna see if you can simply restart your apache: ...

December 29, 2014 · 4 min · birdchan

PHP to Windows, OSX, and Linux

Check out PHP Nightrain 4.0.0. There is now a way to write native desktop applications using PHP. Sounds legit. =) [youtube &w=640&h=360] [youtube &w=640&h=360] ...

November 19, 2014 · 1 min · birdchan

Kenneth Cukier: Big data is better data

[youtube &w=640&h=360]

November 17, 2014 · 1 min · birdchan