Monday, September 13, 2010
GEnerate gsoap
gcc test.c soapC.c -lgsoap
works for me
Thursday, September 9, 2010
How to make Virtual keyboard and SCIM co-exist on N900
(2) Go to /etc/gtk-2.0/, create two files as follows
first file: vb (for Virtual Keyboard)
"/usr/lib/gtk-2.0/2.10.0/immodules/hildon-im-module.so"
"hildon-input-method" "Hildon Input Method" "hildon-input-method-framework" "/usr/share/locale" "*"
Second file: scim (for MSCIM)
"/usr/lib/gtk-2.0/2.10.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "*"
(3) in the same directory, create another two files:
first file: vb.sh
cp /etc/gtk-2.0/vb /etc/gtk-2.0/gtk.immodules
second file: scim.sh
cp /etc/gtk-2.0/scim /etc/gtk-2.0/gtk.immodules
then chmod to these two files
>>root
>>chmod +x vb.sh scim.sh
(4) make two symbolic links in /usr/bin/
ln -s /etc/gtk-2.0/vb.sh /usr/bin/vb
ln -s /etc/gtk-2.0/scim.sh /usr/bin/scim
(5) if you want to use virtual keyboard, remember to retract the physical keyboard first, then type in
>>root
>>vb
if you want to use MSCIM:
>>root
>>scim
Sunday, August 29, 2010
Call of Duty Modern Warfare 2原声碟
Safeguard


Guerrilla Tactics

Deadline

Breach


Ordinance

Code of Conduct

Protocol

Friday, August 27, 2010
How to get Xilinx XUP Virtex II PRO to work in Ubuntu 10.04
(2) get the product id right in >>lsusb
(3) install usb-driver-HEAD.tar.gz
Wednesday, July 28, 2010
How to make a clone of Virtualbox image and run multiple Virtual machines at the same time
1) Shut down the virtual machine you would like to copy
2) In File > Virtualdiskmanager, select the virtual machine disk image you would like to copy, and press the Release button and DELETE it from the menu BUT keep the image on the harddrive.
3) In a terminal window, issue following command (see virtualbox user manual):
vboxmanage clonevdi /directory/image1.vdi /directory/image2.vdi
4) In File > Virtualdiskmanager, add the new disk image you've created in step 3.
5) In the main virtualbox window, press the New button to create a new virtual machine, and link it to the new disk image you've created.
Saturday, July 24, 2010
How to use wsdl file to generate c/c++ files
(1)Install Java (run-time package is enough, but javac is a bonus, though I don't think I used javac in this setup). Note:install some new version, I used version 1.6.
(2)Download Axis C++ bin from Apache.org, decompress it. Note that there is a lib/axisjava folder and all the necessary Axis Java files used by Axis C++ are in there, so we don't have to download Axis Java anymore (however, if you try to use log4j you HAVE TO download Axis Java bin/src). And make sure in lib/axis there is already a wsdl2ws.jar in place, or you have to install ant and build the jar from source (which I didn't do)
(3)Edit CLASSPATH environment variable, here is my CLASSPATH variable
AXIS_C_HOME="type in your full directory path where Axis C++ bin is decompressed to"
AXIS_C_LIB=$AXIS_C_HOME/lib/axisjava
CLASSPATH=$AXIS_C_HOME/lib/axis/wsdl2ws.jar:
$AXIS_C_LIB/axis.jar:
$AXIS_C_LIB/wsdl4j.jar:
$AXIS_C_LIB/commons-discovery.jar:
$AXIS_C_LIB/commons-logging.jar:
$AXIS_C_LIB/jaxrpc.jar:
$AXIS_C_LIB/saaj.jar:
$CLASSPATH
export CLASSPATH
Note: if you want to use log4j, it should be located in $
Friday, July 23, 2010
how to create uml file system
http://web2.clarkson.edu/class/cs644/kernel/setup/uml/uml.html
Creating your filesystem
Debian is suprisingly simple to install inside of user mode linux. To begin you must initialize the files using dd. This example assumes that your image files are /opt/uml/debian-root.
Now we will initialize the filesystems inside of each of these files. We will be using ext3 as our root filesystem.
Now we will need to mount the root filesystem before we run debootstrap.
Now we will install debootstrap and bootstrap a base Debian installation. This is a barebones installation that is less than 200 megs.
Example 8. Debian Installation
#apt-get install debootstrap
#debootstrap --arch i386 sarge /mnt/debian http://ftp.us.debian.org/debian
or you may want to use the breezy installation.
#debootstrap --arch i386 breezy /mnt/debian http://archive.ubuntulinux.org/ubuntu
At this point your system is an unconfigured base system. You will need to edit the following files in order to have your system in a valid configuration.
/etc/fstab
/etc/hostname
/etc/hosts
/etc/network/interfaces
/etc/apt/sources.list
/etc/securetty
/etc/inittab
Example 10. Host configuration
You will need to make sure that /etc/hostname contains the following line or your nameing preference.
uml-one
You will need to make sure that /etc/hosts contains the following line.
127.0.0.1 localhost
At this point you will need to setup your network interface configuration. This is done by editing the file /etc/network/interfaces. This guest will have a loopback network device. More information on configuring network devices under Debian can be found in the Debian Reference.
The above should be in the file /etc/network/interfaces. You'll also need to add a mirror or cdrom image to /etc/apt/sources.list
Example 12. /etc/securetty Configuration
#echo "tty0" >> /etc/securetty
#echo "ttys/0" >> /etc/securetty
Example 13. /mnt/debian/dev
In the breezy debootstrap example no node was created for me to mount the file system too, you can check this by,
#cd /mnt/debian/dev
#ls ubd*
If this does not return ubd0 then,
#mknod --mode=660 ubd0 b 98 0
#chown root:disk ubd0
Example 14. Edit /etc/inittab
This will allow you to login immediately after the boot messages
Comment out the following lines:
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
Now modify tty1 to say tty0, the result should look like this:
1:2345:respawn:/sbin/getty 38400 tty0
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6