xsa is currently certified at Master level.

Name: Xavier Santolaria
Member since: 2002-11-27 15:13:09
Last Login: 2010-03-29 15:13:12

FOAF RDF Share This

Homepage: http://www.santolaria.net/xsa/


Recent blog entries by xsa

Syndication: RSS 2.0
12 Jun 2011 (updated 12 Jun 2011 at 18:05 UTC) »

Unstatsppd: Your Beers Statistics Distribution by Day of Week

As I had some free time on my hands this week-end, and that I wanted to know on which day of the week I most enjoy beer drinking, I fired up my favorite text editor and started unstatsppd.py.

No rocket science whatsoever but an easy mean to gather those statistics and display them using the Google Charts Tools API.

Code is available here: https://github.com/xsa/unstatsppd


Here's an output example with my data:

Syndicated 2011-06-12 15:47:00 (Updated 2011-06-12 17:15:00) from Xavier Santolaria

HTC Incredible S, Android, Linux, and udev(7)

So it all started because I wanted to take screen captures of my HTC Incredible S (I will not explain how to do that here as you'll find plenty of good tutorials on the interwebs).

One of the steps involved the Dalvik Debug Monitor Server (DDMS) which provides all kind of things you could expect from a debugging tool, including a screen capture feature.Unfortunately, I quickly noticed that it wasn't really working as expected with my new HTC Incredible S device on my Linux laptop (running RHEL):

$ pwd
$ ./ddms

(ddms:15838): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 16

(ddms:15838): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 16
09:01:27 E/DDMS: insufficient permissions for device
com.android.ddmlib.AdbCommandRejectedException: insufficient permissions for device
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
    at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:159)
    at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:126)
    at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(SelectionDependentPanel.java:52)
    at com.android.ddms.UIThread.selectionChanged(UIThread.java:1684)
    at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:752)
    at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:740)
    at com.android.ddmuilib.DevicePanel.access$1100(DevicePanel.java:56)
    at com.android.ddmuilib.DevicePanel$1.widgetSelected(DevicePanel.java:357)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at com.android.ddms.UIThread.runUI(UIThread.java:492)
    at com.android.ddms.Main.main(Main.java:103)

09:01:32 W/ddms: Unable to get frame buffer: insufficient permissions for device

Not what I expected, but nothing that cannot be fixed. So after googling/fiddling/ranting a bit, udev(7) came to the rescue. Pretty much, it seems I needed another rule to be added. So here's how I did it:

Look at the information that pertain to my HTC Incredible S:

$ lsusb
Bus 002 Device 006: ID 1267:0210 Logic3 / SpectraVideo plc
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 009: ID 0bb4:0cac High Tech Computer Corp.
Bus 001 Device 005: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 001 Device 003: ID 17ef:480f Lenovo Integrated Webcam [R5U877]
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Create a specific android.rules file in custom rules directory /etc/udev (Note that it is one single line in the .rules file below)

$ id
uid=500(xsa) gid=500(xsa) groups=500(xsa),496(desktop_admin_r)

$ sudo -s

# cat > /etc/udev/android.rules
SUBSYSTEMS=="usb", ATTRS{idVendor} =="0bb4", ATTRS{idProduct} =="0cac", MODE="0660", OWNER="root", GROUP="desktop_admin_r"
# ln -s ../android.rules /etc/udev/rules.d/90-android.rules

Reload the udev(7) rules and then launch again DDMS and you should be all set.

# /etc/init.d/udev-post reload
# exit
$ cd /full/path/to/android-sdk-linux_x86/tools
$ ./ddms

Syndicated 2011-06-10 06:34:00 (Updated 2011-06-10 06:34:41) from Xavier Santolaria

Daily links for 04/21/2011

Posted from Diigo. The rest of my favorite links are here.

Syndicated 2011-04-21 23:18:00 (Updated 2011-04-21 23:18:30) from Xavier Santolaria

Daily links for 04/20/2011

Posted from Diigo. The rest of my favorite links are here.

Syndicated 2011-04-20 20:07:00 (Updated 2011-04-20 20:07:05) from Xavier Santolaria

Daily links for 04/19/2011

Posted from Diigo. The rest of my favorite links are here.

Syndicated 2011-04-19 19:39:00 (Updated 2011-04-19 19:39:45) from Xavier Santolaria

105 older entries...


xsa certified others as follows:

  • xsa certified xsa as Journeyer
  • xsa certified todd as Master
  • xsa certified schubert as Journeyer
  • xsa certified dhartmei as Master
  • xsa certified Fyodor as Master
  • xsa certified wildweasel as Journeyer
  • xsa certified Mala as Apprentice
  • xsa certified Toby as Master
  • xsa certified krause as Journeyer
  • xsa certified 8088 as Journeyer
  • xsa certified systrace as Apprentice
  • xsa certified asmodai as Journeyer
  • xsa certified markus as Master
  • xsa certified dsandras as Master
  • xsa certified jolan as Journeyer
  • xsa certified mips as Journeyer
  • xsa certified jcs as Journeyer
  • xsa certified Physicman as Journeyer
  • xsa certified dtucker as Journeyer
  • xsa certified fgsch as Master
  • xsa certified negative as Journeyer
  • xsa certified Stab as Journeyer
  • xsa certified djm as Master
  • xsa certified kevlo as Journeyer
  • xsa certified hin as Master
  • xsa certified matt as Journeyer
  • xsa certified pmbas as Journeyer
  • xsa certified fxn as Journeyer
  • xsa certified Akira as Journeyer
  • xsa certified renaud as Master
  • xsa certified lynx as Apprentice
  • xsa certified ish as Journeyer
  • xsa certified grey as Apprentice
  • xsa certified ericj as Journeyer
  • xsa certified tholo as Master
  • xsa certified santana as Journeyer
  • xsa certified faassen as Master
  • xsa certified peterw as Apprentice
  • xsa certified pvalchev as Master
  • xsa certified otto as Master
  • xsa certified fbriere as Apprentice
  • xsa certified phessler as Apprentice
  • xsa certified rohee as Apprentice
  • xsa certified adulau as Journeyer
  • xsa certified perky as Journeyer
  • xsa certified linn as Journeyer
  • xsa certified zhware as Apprentice
  • xsa certified daverd as Journeyer
  • xsa certified bagder as Master
  • xsa certified jwz as Master
  • xsa certified ShredWheat as Journeyer
  • xsa certified dma as Journeyer
  • xsa certified jasperla as Journeyer

Others have certified xsa as follows:

  • xsa certified xsa as Journeyer
  • pasky certified xsa as Apprentice
  • wildweasel certified xsa as Master
  • Mala certified xsa as Apprentice
  • 8088 certified xsa as Apprentice
  • schubert certified xsa as Apprentice
  • mips certified xsa as Apprentice
  • jolan certified xsa as Apprentice
  • fxn certified xsa as Journeyer
  • lerdsuwa certified xsa as Apprentice
  • linn certified xsa as Journeyer
  • madhatter certified xsa as Apprentice
  • fgsch certified xsa as Apprentice
  • krause certified xsa as Apprentice
  • Physicman certified xsa as Journeyer
  • pmbas certified xsa as Journeyer
  • daverd certified xsa as Journeyer
  • lynx certified xsa as Journeyer
  • dhartmei certified xsa as Apprentice
  • santana certified xsa as Journeyer
  • peterw certified xsa as Journeyer
  • pvalchev certified xsa as Journeyer
  • otto certified xsa as Journeyer
  • fbriere certified xsa as Apprentice
  • arabouma36 certified xsa as Journeyer
  • jasperla certified xsa as Apprentice
  • adulau certified xsa as Journeyer
  • dma certified xsa as Journeyer
  • Miod certified xsa as Master

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

Share this page