Wednesday, August 3, 2011

x11vnc gdm

x11vnc -display :0 -auth /var/gdm/:0.Xauth

Friday, April 15, 2011

GeoPoint -> screen pixel

// Convert geo coordinates to screen pixels
Point screenPoint = new Point();
mapView.getProjection().toPixels(geoPoint, screenPoint);

Monday, March 7, 2011

rotate vertically ati graphics driver on ubuntu 10.10

proprietary ati graphics driver on ubuntu 10.10 is quirky. It prevents ubuntu from booting back up if dual monitor is rotated vertically.

The following message pops up on reboot:
udevd-work[110]: inotify_add_watch(6, /dev/dm-2, 10) failed: no such file or directory

Someone else had a similar problem
http://art.ubuntuforums.org/showthread.php?t=1524495

My solution was to boot with the monitors horizontally, make a backup copy of /etc/X11/xorg.conf. Ubuntu boots up fine when the monitors are set to horizontal position. Once booted, manually rotate the monitor using the ATI Catalyst Control Center. When the system is rebooted in this configuration, the udevd-work error message will show up again and prevent the system from booting.
To boot the system again, boot into recovery mode, replace /etc/X11/xorg.conf with the good backup.
Reboot and the udevd-work error message will go away. Now you can boot and log in as usual and manually rotate the monitors

Friday, February 25, 2011

???????????? no permissions

[son@jedi rules.d]$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions

must run adb start-server as root first:
sudo adb start-server
then
adb devices will work
or
sudo adb devices

Thursday, February 3, 2011

Wednesday, January 26, 2011

code quality

http://www.sonarsource.org/

Monday, January 24, 2011

create android application from command line

android create project --target 2 --path ./MyAndroidApp --activity MyAndroidActivity --package my.android.package