Monday, November 21, 2011

Andriod ADB Device Not Showing Up In Ubuntu?

I've been debugging an Android app in Ubuntu and have had ongoing issues getting the debugger to recognize my device. Starting and stopping the ADB server seems to do the trick every time:

$ANDROID_HOME/android-sdk-linux/platform-tools$ sudo ./adb kill-server
$ANDROID_HOME/android-sdk-linux/platform-tools$ sudo ./adb start-server

Monday, November 7, 2011

MySQL Vertical Output

To see results structured vertically in the mysql console use \G instead of ;

mysql> select * from users \G
*************************** 1. row ***************************
id: 1
email: user1@somedomain.com
encrypted_password: asdf123
created_at: 2011-11-07 22:24:46
updated_at: 2011-11-07 22:24:46
roles_mask: 1
*************************** 2. row ***************************
id: 2
email: user2@somedomain.com
encrypted_password: asdf123
created_at: 2011-11-07 22:27:33
updated_at: 2011-11-07 22:28:18
roles_mask: 0