Showing posts with label en. Show all posts
Showing posts with label en. Show all posts

Sunday, August 7, 2011

adb devices "no permissions"

When you using hardware devices to debug android applications, sometimes your machine may cannot found or initialize the hardware.

$ adb devices
List of devices attached
emulator-5554    device
????????????    no permissions

What happened?

1. Your machine does not have udev rules.
2. adb does not have a permission

How to

1. See this page and create the rules.
2. Kill adb server then restart it as root permission.
$ adb kill-server
$ sudo adb start-server
$ adb devices
List of devices attached
353019043208217    device

Sunday, April 24, 2011

Parrot support on Exuberant Ctags

Parrot and Ctags


As you know, parrot itself has very common editors support. Some common settings, syntax, color scheme and even tags file can generated with running "make" on parrot_src/editor directory.
$ make vi-tags
$ make vi
But, unfortunately, that tags files can do resolve to c source files that make parrot itself, so any languages wrote in parrot features such like 'pir' doesn't understand how to works with it.

So, I added parrot.c to Exuberant Ctags and published on my github.

*This is a very basic support for parrot ctags, yet*
$ git clone git://github.com/lateau/exuberant-ctags.git
$ cd exuberant-ctags
$ ./configure
$ make -j
$ su -c 'make install'     # install if you want
$ ./ctags --list-languages
...
parrot
...
$./ctags --list-kinds=parrot
s subroutine
r rule
t token
Supported files:
*.pir
*.pasm
*.pg
Kinds:
s subroutine
r rule
t token
Usage:
$ cd rakudo
$ ctags -R -exclude=.git --lang-map=parrot:+.pir.pasm.pg

How to use with tlist.vim


You can also enable TagList in vim. Just add bellow code to taglist.vim around line 430.
" parrot
s:tlist_def_parrot_settings = \
   'parrot;s:subroutine;r:rule;t:token'

Monday, May 10, 2010

Compiling Ruby1.9 with SunCC on OpenSolaris

Today, I compiled snapshot of ruby on my OpenSolaris machine. It's so smoothly gone and then I could try some new features of ruby1.9.2 on developing.

First of all, very important thing is installation of SunCC via IPS. It is included i n Sun Studio built on Netbeans.
$ pfexec pkg install pkg:/sunstudio12u1
$ CC='/opt/sunstudio12u1/bincc' CFLAGS='-Xa' ./configure --enable-pthread
That's all.