ITeye博客

城市老鼠

101oio · 共 87 篇文章

Why can not mount sdcard in emulator

vold.conf is missed in system.img . rebuild system.img by mkyaffs2image ( ./out/host/linux-x86/bin/) will solve this issue. But why vold.conf is missed during building? Need to be investigate later

2010-03-02 20:48 · Android · 评论(0)

寻址的最小单位 BYTE, not word

p++, 要看p 的所指类型占用的 byte 数

2009-12-22 18:04 · OS · 评论(0)

shell split string

Method 1 #!/bin/sh # for usb auto suspend , triggered by usb insert stringK=$1 i=1 seg="1-1" while [ -n "$seg" ] do if [ "$i" -eq "1" ]; then stringU=$seg else stringU=$stringU"."$seg fi if [ -d /sys/bus/usb/devices/$stringu ]; then .... fi let "i+=1" seg=`echo $stringK $i| awk '{ split($1,list,"."…

2009-12-18 19:04 · 评论(0)

modprobe --- no symbol version for struct_module

这个错误很可能是由于 kernel version 不一致导致的

2009-12-18 12:07 · Linux · 评论(0)

How to: Compile Linux kernel

http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html Step # 1 Get Latest Linux kernel code Visit http://kernel.org/ and download the latest source code. File name would be linux-x.y.z.tar.bz2, where x.y.z is actual version number. For example file inux-2.6.25.tar.bz2 represents 2.6.25 kerne…

2009-12-17 19:37 · Linux · 评论(0)

USB auto suspend udev sysfs

http://reactivated.net/writing_udev_rules.html http://www.lesswatts.org/projects/devices-power-management/usb.php

2009-12-11 11:42 · Linux · 评论(0)

interface

/etc/network/interface

2009-12-02 16:37 · Linux · 评论(0)

Exit from X to console

/etc/init.d/gdm stop to reback to X /etc/init.d/gdm start

2009-11-27 23:42 · Linux · 评论(0)

gnome resolution pre user

gnome resolution config files are located in .gconf/desktop/gnome/screen/ it is used with higher priority than xorg after gdm login.

2009-11-27 23:41 · Linux · 评论(0)

Linux touchpad too sensitive

http://ubuntuguide.org/wiki/Ubuntu:Feisty#Disable_the_touchpad_while_typing https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig Touchpad Disable the touchpad while typing The utility syndaemon can be used to temporarily disable a Synaptic touchpad while typing. First you must edit /etc/X1…

2009-11-27 19:35 · Linux · 评论(0)

lspci lsusb

liunx 硬件查看 lsusb lspci dmesg

2009-11-27 19:34 · Linux · 评论(0)

check dirty page on linux

top ->'f' ->'v' http://www.linuxforums.org/articles/using-top-more-efficiently_89.html. Note: On 2.6.x, this field is always zero without unknown reason. 2.you can check the size of dirty pages by checking /proc/ /smaps http://www.linux.com/learn/tutorials/42048-uncover-the-meaning-of-tops-statisti…

2009-11-24 15:44 · Linux · 评论(0)

undefined reference to `wxColour::IsOk() const'

CXXFLAGS多了一个参数-fvisibility-inlines-hidden的原因,这个参数是以前在望上看的能够加速编译的

2009-11-20 16:51 · C++ · 评论(0)

[Postgres] copy Table from windows filename

filename The absolute path name of the input or output file. Windows users might need to use an E'' string and double backslashes used as path separators. example: copy bi_k1_q_net from E'd:\1K.txt';

2009-10-10 15:15 · DB · 评论(0)

Install postgresql-8.4.1-1 on windows

Please don't select "default" in locale when you are using no-English version windows, or you will the following error Problem running post-install step. Installation may not complete correctly Error reading file D:/Program/POSTGRESQL/8.4/data/postgresql.conf You can select "C", other than "default"

2009-10-03 21:36 · DB · 评论(0)