Mac El Capitan: Camera Not Working

Since updated to El Capitan, many things went wrong. Last time screen was blurry, now camera does not work. The symptom is camera is not recognized in FaceTime, in QuickTime Video recording, and in any video recorder app. So a little search online gives the solution:

Append the public key to remote server

Btw, id_rsa should be with permission 400. Found the following code to quickly append the public key to remote server. cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'cat >> .ssh/authorized_keys && echo "Key copied"'

Turn on/off Theater Mode on Android Wear Programatically

The simplest way is to leverage the adb shell to run settings put global theater_mode_on. settings put global theater_mode_on 1 will turn on theater mode settings put global theater_mode_on 0 will turn off theater mode And the following is the java code to turn on theater mode. Process su = Runtime.getRuntime().exec("su"); DataOutputStream os = new… Continue reading Turn on/off Theater Mode on Android Wear Programatically

It can be done by either simply look at the "About" in Android Settings, or by the following command using adb:

cat /system/build.prop /default.prop | grep -m 1 "ro.product.cpu.abi="