Skip to main content

Posts

putting sqlite3 on nexus s

i just notice that there is no sqlite3 on samsung nexus s (official ICS ROM) and i need it in debugging my application database. so i download it from somewhere on internet can't remember. Anyway the one that come with android sdk linux version should be fine to put it on phone. and here is what i do. E:\android-sdk-windows-1.5_r2\platform-tools>adb shell shell@android:/ $ su su shell@android:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system shell@android:/ # dd if=/sdcard/sqlite3 of=/system/bin/sqlite3 dd if=/sdcard/sqlite3 of=/system/bin/sqlite3 47+1 records in 47+1 records out 24120 bytes transferred in 0.003 secs (8040000 bytes/sec) shell@android:/ # chmod 4755 /system/bin/sqlite3 chmod 4755 /system/bin/sqlite3 shell@android:/ # mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system shell@android:/ # sqlite3 sqlite3 SQLite version 3.7.4 Enter...

black screen on 11.04 upgrade

Just have a time to upgrade my desktop to 11.04 after reboot i get black screen. ebbr.bugs from ubuntuforums said this bcoz nvidia driver was intstalled as a package not a drivers. so this two commands will help sudo apt-get install --reinstall linux-headers-'uname -r' sudo apt-get install --reinstall linux-image-'uname -r' and it fix my problem :)

internal mic on vaio w on karmic

i have vaio w for 3 five month. i install karmic on it use wubi everything work fine but yesterday i note that internal mic is not work. adding 'model=vaio' or model='sony' in "/etc/modprobe.d/alsa-base" are not work. in my case to make it work i have to add 'model=toshiba-s06' to that file like this options snd-hda-intel power_save=10 power_save_controller=N model=toshiba-s06 then run alsamixer in terminal change input source to 'Int DMic'.

makeing HTK3.4 on karmic

When do "make all" for htk3.4 on karmic, i get error "HGraf.c:73:77: X11/Xlib.h: No such file or director". this be solved by ... poj@ubuntu:~/Downloads$ sudo aptitude install libx11-dev Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be installed: libpthread-stubs0{a} libpthread-stubs0-dev{a} libx11-dev libxau-dev{a} libxcb1-dev{a} libxdmcp-dev{a} x11proto-core-dev{a} x11proto-input-dev{a} x11proto-kb-dev{a} xtrans-dev{a} 0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 2,242kB of archives. After unpacking 6,124kB will be used. . . . Initializing package states... Done Writing extended state information... Done poj@ubuntu:~/Downloads$ now try again.

a2billing on Karmic Koala

During install a2billing on Karmic Koala by follow this wiki. In Step9 I get this error. root@freeradius:/usr/local/src/a2billing/CallBack# easy_install callback-daemon-py/dist/callback_daemon-1.0.prod_r1527-py2.5.egg Processing callback_daemon-1.0.prod_r1527-py2.5.egg Copying callback_daemon-1.0.prod_r1527-py2.5.egg to /usr/local/lib/python2.6/dist-packages Adding callback-daemon 1.0.prod-r1527 to easy-install.pth file Installing a2b_callback_daemon script to /usr/local/bin Installed /usr/local/lib/python2.6/dist-packages/callback_daemon-1.0.prod_r1527-py2.5.egg Processing dependencies for callback-daemon==1.0.prod-r1527 Searching for callback-daemon==1.0.prod-r1527 Reading http://pypi.python.org/simple/callback-daemon/ Couldn't find index page for 'callback-daemon' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for callback-daemon==1.0.prod-r1527 error: Could not f...

Arduino on Karmic Koala

To use arduino on karmic koala, first we need to install required package e.g. gcc-avr and jre[here i use jdk instead] pnix@x300:~$ sudo aptitude install gcc-avr sun-java6-jdk Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be installed: binutils-avr{a} gcc-avr gsfonts-x11{a} java-common{a} odbcinst1debian1{a} sun-java6-bin{a} sun-java6-jdk sun-java6-jre{a} unixodbc{a} 0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded. ... Initializing package states... Done Writing extended state information... Done pnix@x300:~$ then get latest version of arduino ide, extract and run. pnix@x300:~/Downloads$ wget http://arduino.googlecode.com/files/arduino-0017.tgz --2009-12-22 23:05:34-- http://arduino.googlecode.com/files/arduino-0017.tgz Resolving arduino.googlecode.com... 209.85.231.82 Connecting to arduino.googlecod...

Fixing libstdc++5 Problem in Ubuntu 9.10

Trying to run X-lite on Karmic Koala[ubuntu 9.10] give me 'error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory' as you see below. pnix@trinity:~/Downloads$ wget http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz --2009-12-11 02:08:02-- http://counterpath.s3.amazonaws.com/downloads/X-Lite_Install.tar.gz Resolving counterpath.s3.amazonaws.com... 72.21.202.96 Connecting to counterpath.s3.amazonaws.com|72.21.202.96|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2094582 (2.0M) [application/x-gzip] Saving to: `X-Lite_Install.tar.gz' 100%[======================================>] 2,094,582 90.1K/s in 25s 2009-12-11 02:08:32 (83.2 KB/s) - `X-Lite_Install.tar.gz' saved [2094582/2094582] pnix@trinity:~/Downloads$ tar xzf X-Lite_Install.tar.gz pnix@trinity:~/Downloads$ ls X-Lite_Install.tar.gz xten-xlite pnix@trinity:~/Downloads$ cd xten-xlite/ pnix@trinity:~/Download...