<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2445209733060424915</id><updated>2011-11-28T08:55:19.030+08:00</updated><category term='Qt'/><category term='GRUB'/><category term='eclipse'/><category term='Ubuntu'/><category term='SVN'/><category term='CentOS'/><category term='C/C++'/><title type='text'>Copy &amp; Paste</title><subtitle type='html'>keep records</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>81</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2266871956151694343</id><published>2011-06-19T11:39:00.001+08:00</published><updated>2011-06-19T11:40:16.240+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CentOS'/><category scheme='http://www.blogger.com/atom/ns#' term='GRUB'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>GRUB2: Window 7 + Ubuntu 11.04 + CentOS 5.6</title><summary type='text'>THE STORIES:

Window 7 install first, then the Ubuntu 11.04, and then the CentOS 5.6.
This procedure makes Ubuntu entry lost.

Windows 7 - for some applications support Windows 7 only...
Ubuntu 11.04 - daily use
CentOS 5.6 - for some jobs dedicated to CentOS/RedHat

The harddisk allocated as below.

$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2266871956151694343/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2266871956151694343' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2266871956151694343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2266871956151694343'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/06/grub2-window-7-ubuntu-1104-centos-56.html' title='GRUB2: Window 7 + Ubuntu 11.04 + CentOS 5.6'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-9035532937257470132</id><published>2011-06-02T11:46:00.000+08:00</published><updated>2011-06-02T11:46:59.267+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>SVN projects in group</title><summary type='text'>SVN in this way ...


# tree -L 2

.
|-- TEAM_A
|   `-- Prj_A1
|-- TEAM_B
|   |-- Prj_B1
|   |-- Prj_B2
|   `-- Prj_B3
|-- TEST
|   `-- testProject
|-- TEAM_C
|   `-- Prj_C1
`-- project_001
`-- project_002
`-- project_003





   DAV svn
   SVNParentPath /var/www/svn


   # Limit write permission to list of valid users.
#   
      # Require SSL connection for password protection.
      # </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/9035532937257470132/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=9035532937257470132' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9035532937257470132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9035532937257470132'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/06/svn-projects-in-group.html' title='SVN projects in group'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-8755015847945796846</id><published>2011-05-21T09:47:00.002+08:00</published><updated>2011-05-21T09:47:50.980+08:00</updated><title type='text'>The ARM/NetWinder Structure Alignment FAQ</title><summary type='text'>
http://netwinder.osuosl.org/users/b/brianbr/public_html/alignment.html
The ARM/NetWinder Structure Alignment FAQLast changed: 99/05/28
1) What is structure alignment? 
2) Why is this an issue for ARM/NetWinder systems? 
3) How is this related to the alignment trap? 
4) Which distributions are affected? 
5) Which compilers are affected? 
6) What are the advantages of word alignment? 
7) What are </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/8755015847945796846/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=8755015847945796846' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8755015847945796846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8755015847945796846'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/05/armnetwinder-structure-alignment-faq.html' title='The ARM/NetWinder Structure Alignment FAQ'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1454749226613480660</id><published>2011-05-07T09:22:00.000+08:00</published><updated>2011-05-07T09:22:02.818+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Ubuntu - Font Setting</title><summary type='text'>Ubuntu 11.04
Lang=zh_tw.utf8
Fonts:  WenQuanYi Micro Hei

WenQuanYi Micro Hei Mono is ugly to me in lots of applications.
Therefore I changed the font settings as below.

$ su


$ cd /etc/fonts/conf.d
$ ln -s ../conf.avail/69-language-selector-zh-tw.conf 69-language-selector-zh-tw.conf
$ vi 69-language-selector-zh-tw.conf


   :
&lt;match target="pattern"&gt;
  &lt;test qual="any" name="family"&gt;
   &lt;</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1454749226613480660/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1454749226613480660' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1454749226613480660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1454749226613480660'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/05/ubuntu-font-setting.html' title='Ubuntu - Font Setting'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-884033199979605141</id><published>2011-04-15T12:31:00.000+08:00</published><updated>2011-04-15T12:31:08.155+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>SVN change server ip at client</title><summary type='text'>To check current SVN server IP$ svn info 
Changed server IP, need to change local project IP:$ svn switch --relocate svn://OLD.IP.ADDR svn://NEW.IP.ADDR
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/884033199979605141/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=884033199979605141' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/884033199979605141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/884033199979605141'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/04/svn-change-server-ip-at-client.html' title='SVN change server ip at client'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1059287520948443980</id><published>2011-03-19T21:39:00.000+08:00</published><updated>2011-03-19T21:39:23.569+08:00</updated><title type='text'>CentOS 5.5 NFS -</title><summary type='text'>To enable CentOS 5.5 NFS service,

# yum install nfs-utils nfs-utils-lib

# vi /etc/exports
/home    *(rw,sync,no_root_squash,no_subtree_check)

# service portmap start
# service nfs start


On client, you may get error messages: No route to host.
# service iptables stop</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1059287520948443980/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1059287520948443980' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1059287520948443980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1059287520948443980'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/03/centos-55-nfs.html' title='CentOS 5.5 NFS -'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5348184326388738757</id><published>2011-02-15T17:39:00.000+08:00</published><updated>2011-02-15T17:39:47.564+08:00</updated><title type='text'>e2fsprogs on Trident PNX84xx</title><summary type='text'>
### Prepare Trident Build Environment.
$ cd /home/lilin/trident/SRC/; source pnx8400_MP_env.sh; cd -

$ tar zxvf e2fsprgos-1.41.14.tar.gz
$ cd e2fsprogs-1.41.14

### Read instructions on building and installing e2fsprogs.
###
$ cat INSTALL
       :

$ mkdir build; cd build

################################################
### IMPORTANT !!!                            ### 
###  Specify the sysroot</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5348184326388738757/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5348184326388738757' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5348184326388738757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5348184326388738757'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/02/e2fsprogs-on-trident-pnx84xx.html' title='e2fsprogs on Trident PNX84xx'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2202112919567953812</id><published>2011-02-01T11:09:00.001+08:00</published><updated>2011-02-01T11:13:18.267+08:00</updated><title type='text'>Japan BS 120cm Dish + Taiwan DTV antenna</title><summary type='text'>

Configuration:


[JPN BS LNB]      [TWN DTV ANTENNA]
     |                    |
     +------+  +----------+
            |  |
         [SPILTTER] UHF+SAT
              |
              |(2200MHz Cable)
              | 5F(roof)-&gt;(daughter wall)
              |   -&gt;(window)-&gt;4F(living room)
              |
         [SPILTTER]
            |   |
     +------+   +--------+
     |                   |
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2202112919567953812/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2202112919567953812' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2202112919567953812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2202112919567953812'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/02/japan-bs-120cm-dish-taiwan-dtv-antenna.html' title='Japan BS 120cm Dish + Taiwan DTV antenna'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/TUdzqwWK7WI/AAAAAAAACRU/nVGmaMafP8w/s72-c/IMAGE_00377.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6574648246970196925</id><published>2011-01-28T11:54:00.000+08:00</published><updated>2011-01-28T11:54:28.491+08:00</updated><title type='text'>dvd+rw-tools-7.1 on Trident pnx84xx</title><summary type='text'>

0. Trident pnx84xx build environment is req'd !


1. Get latest dvd+rw-tools from its officical website.


# wget http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz
# tar -zxvf dvd+rw-tools-7.1.tar.gz
# cd dvd+rw-tools-7.1


2. Modify the Makefile.m4 to meet our needs.


# vi Makefile.m4


Search Linux section ...
   :

ifelse(OS,Linux,[
#
# Linux section
#
CC      =</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6574648246970196925/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6574648246970196925' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6574648246970196925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6574648246970196925'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/01/dvdrw-tools-71-on-trident-pnx84xx.html' title='dvd+rw-tools-7.1 on Trident pnx84xx'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6408550151324272973</id><published>2011-01-28T10:25:00.000+08:00</published><updated>2011-01-28T10:25:35.554+08:00</updated><title type='text'>live555 on Trident pnx84xx</title><summary type='text'>A modified openRTSP is used to stream IPCAM video streams. Therefore, we need to port openRTSP on the new platform pnx84xx.


0. Prepare build environment for Trident pnx84xx.


# cd /PATH/TO/TRIDENT/SRC
# source pnx8400_MP_env.sh



1. Download live555 source from official website.Always get the latest version, and read document for installation first. # wget http://www.live555.com/liveMedia/</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6408550151324272973/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6408550151324272973' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6408550151324272973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6408550151324272973'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/01/live555-on-trident-pnx84xx.html' title='live555 on Trident pnx84xx'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3174437250423963844</id><published>2011-01-28T09:43:00.000+08:00</published><updated>2011-01-28T09:43:06.835+08:00</updated><title type='text'>ntpclient on Trident pnx84xx</title><summary type='text'>0. Prepare trident build environment
# cd /PATH/TO/TRIDENT/SRC
# source pnx8400_MP_env.sh


1. Download latest ntpclient source codes from official website.



# wget http://doolittle.icarus.com/ntpclient/ntpclient_2010_365.tar.gz
# tar -zxvf ntpclient_2010_365.tar.gz# cd ntpclient-2010
2. Modify the Makefile for Trident pnx84xx.
# vi Makefile
# A long time ago, far, far away, under Solaris, you </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3174437250423963844/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3174437250423963844' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3174437250423963844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3174437250423963844'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/01/ntpclient-on-trident-pnx84xx.html' title='ntpclient on Trident pnx84xx'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6273884608397968532</id><published>2011-01-08T11:56:00.000+08:00</published><updated>2011-01-08T11:56:44.438+08:00</updated><title type='text'>SVN on CentOS 5.5 i386</title><summary type='text'>Ref:


1. Subvision on CentOS http://wiki.centos.org/HowTos/Subversion
2. http://www.ichiayi.com/wiki/tech/centosinstall


Quick Guide


=== My Guest OS (CentOS 5.5 i386)===


1. Install SVN



# yum install mod_dav_svn subversion
# vim /etc/httpd/conf.d/subversion.conf


---subversion.conf---
      :
LoadModule dav_svn_module     modules/mod_dav_svn.so

LoadModule authz_svn_module   modules/</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6273884608397968532/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6273884608397968532' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6273884608397968532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6273884608397968532'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2011/01/svn-on-centos-55-i386.html' title='SVN on CentOS 5.5 i386'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4529246702386633655</id><published>2010-11-27T10:31:00.000+08:00</published><updated>2010-11-27T10:31:37.865+08:00</updated><title type='text'>Apache2 on Ubuntu 10.10 ... cgi-bin</title><summary type='text'>
For memo...

INSTALL# sudo apt-get install apache2
TEST if Apache2 installed successfully ?

It works!This is the default web page for this server.The web server software is running but no content has been added, yet.
MODIFY for CGI # sudo vi /etc/apache2/apache2.conf      :  AddHandler cgi-script .cgi      :
# sudo vi /etc/apache2/sites-enabled/000-default      :  ScriptAlias /cgi-bin/ /var/www</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4529246702386633655/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4529246702386633655' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4529246702386633655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4529246702386633655'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/11/apache2-on-ubuntu-1010-cgi-bin.html' title='Apache2 on Ubuntu 10.10 ... cgi-bin'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7940871427211672858</id><published>2010-11-07T11:51:00.000+08:00</published><updated>2010-11-07T11:51:56.271+08:00</updated><title type='text'>TimeZone setting</title><summary type='text'>In our DVR, we have an option for user to decide whether Daylight Saving Time (DST) to be enabled in his machine.  When Time Zone is selected in DST field, the time in Date/Time fields will be automatically adjusted accordingly. However, once the user changed the Date/Time value, the Time Zone changed later will not effect the time in Date/Time field.

Ref:
[1] http://www.gnu.org/software/libc/</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7940871427211672858/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7940871427211672858' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7940871427211672858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7940871427211672858'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/11/timezone-setting.html' title='TimeZone setting'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2138961268275754141</id><published>2010-09-09T22:22:00.001+08:00</published><updated>2010-09-09T22:23:04.540+08:00</updated><title type='text'>Eclipse with BIG5 encoding codes !</title><summary type='text'>The old source code files are BIG5 encoded. For some reasons, we have to keep original encoding, when using Eclipse (its default encoding is UTF-8). To use BIG-5 encoding in Eclipse, try to do in this way.




Figure 1. The Chinese characters in line 2073 are not shown properly.

TODO: Move cursor to project name, click the right button of mouse and select the Properties [Alt+Enter] , then the </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2138961268275754141/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2138961268275754141' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2138961268275754141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2138961268275754141'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/09/eclipse-with-big5-encoding-codes.html' title='Eclipse with BIG5 encoding codes !'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_siJf1Om87qw/TIjpRnCJPCI/AAAAAAAACO0/tUQFU9ikOrs/s72-c/Screenshot-C-C%2B%2B+-+testapp3-main.c+-+Eclipse+.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-8637495451349764076</id><published>2010-09-07T21:25:00.001+08:00</published><updated>2010-09-09T21:54:50.742+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Perforce, The Fast Software Configuration Management System</title><summary type='text'>As introduced by my colleague, the version he used was for Windows. The linux/unix/mac versions are also available.

As a Eclipse user, it's lucky to have the Perforce Plug-in for Eclipse :)
http://www.perforce.com/perforce/products/p4wsad.html

Keep records.</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/8637495451349764076/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=8637495451349764076' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8637495451349764076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8637495451349764076'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/09/perforce-fast-software-configuration.html' title='Perforce, The Fast Software Configuration Management System'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6260493983724844319</id><published>2010-06-22T15:09:00.001+08:00</published><updated>2010-06-22T15:19:59.141+08:00</updated><title type='text'>LINUX KERNEL完全剖析 - 趙炯</title><summary type='text'>OS: Ubuntu 10.04

We shall install both bochs and bochs-x packages first to realize further examples in this book.
# sudo apt-get install bochs bochs-x

boot.s

.globl   begtext, begdata, begbss, endtext, enddata, endbss
.text
begtext:
.data
begdata:
.bss
begbss:
.text
BOOTSEG=0x07c0

entry start
start:
      jmpi  go, BOOTSEG
go:   mov   ax, cs
      mov   ds, ax
      mov   es, ax
      mov   [</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6260493983724844319/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6260493983724844319' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6260493983724844319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6260493983724844319'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/06/linux-kernel.html' title='LINUX KERNEL完全剖析 - 趙炯'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_siJf1Om87qw/TCBdaBuyYqI/AAAAAAAAB8A/C2NpDOg80JA/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1374253502161456727</id><published>2010-05-21T15:19:00.000+08:00</published><updated>2010-05-21T15:19:16.744+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Qt'/><title type='text'>Qt - phonon</title><summary type='text'>VideoPlayback in Qt via Phonon

1. create a new Qt project with module Phonon
















...
2. Add some codes in mainwindow.h &amp; mainwindow.cpp


--- mainwindow.h ---

class MainWindow : public QMainWindow {
      :
private:
    Ui::MainWindow *ui;
    QString m_mediaFile;
    Phonon::VideoPlayer *player;};--- mainwindow.cpp ---
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1374253502161456727/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1374253502161456727' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1374253502161456727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1374253502161456727'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/qt-phonon.html' title='Qt - phonon'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/S_YtVf-ewtI/AAAAAAAAB7E/V3vzVUuHXqc/s72-c/Screenshot-Qt4+Gui+Application.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6030892527419717298</id><published>2010-05-20T11:17:00.000+08:00</published><updated>2010-05-21T14:06:33.347+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Hello World mips version with eclipse.</title><summary type='text'>Project -&gt; Properties 
[ C/C++ Build ] -&gt; [ Environment ] -&gt; [ Select... ]



Select PATH.

Edit the PATHAppend your toolchain binary path in value field.

[ C/C++ Build ] -&gt; [ Settings ] 
modify [ Command ] fields in GCC C++ Compiler/C Compiler/C++ Linker/Assembler respectively.ex:  g++  -&gt; mipsel-linux-g++


Project -&gt; Build Project


























The mips version Hello World is </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6030892527419717298/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6030892527419717298' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6030892527419717298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6030892527419717298'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/hello-world-mips-version-with-eclipse.html' title='Hello World mips version with eclipse.'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/S_SivohKv_I/AAAAAAAAB58/cZDQXnU0tQk/s72-c/Screenshot-Properties+for+HelloMips.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7529435531883554929</id><published>2010-05-19T16:28:00.001+08:00</published><updated>2010-05-21T14:20:16.030+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>CMake - my first experience (1)</title><summary type='text'>REFERENCE:
http://andescore.blogspot.com/2009/08/cmake-andes-toolchains3.html

To run mySrv and myCli on mipsel platform. Add below lines in src/CMakeLists.txt and lib/CMakeLists.txt.

SET(CMAKE_C_COMPILER mipsel-linux-gcc)SET(CMAKE_CXX_COMPILER mipsel-linux-g++)
SET(AS mipsel-linux-as)
SET(AR mipsel-linux-ar)
SET(LD mipsel-linux-ld)
SET(NM mipsel-linux-nm)
SET(OBJCOPY mipsel-linux-objcopy)
SET(</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7529435531883554929/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7529435531883554929' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7529435531883554929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7529435531883554929'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/cmake-my-first-experience-1.html' title='CMake - my first experience (1)'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/S_Oe1sMwAKI/AAAAAAAAB50/jLmALGZXT44/s72-c/Screenshot-yenping@yenping:+~-HEAD-TT7K-realtek_dev-realtek_src_1283-1283_Release_253676-system-branch_src_sharedMemory_integration-Unit_test-Ewha_MK1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5136445107455916563</id><published>2010-05-19T15:19:00.001+08:00</published><updated>2010-05-19T15:19:51.756+08:00</updated><title type='text'>The last UI programming work  - Virtual Keyboard for RTK1073/1283</title><summary type='text'>This may be my last UI programming works on Realtek 1073/1283. Because default virtual keyboard developed by Realtek is not good to us. Therefore, the boss decided to develop one for ourselves. It is a virtual keyboard for user to input his own PPPoE account and password.

Major functions as below:
0. Key moved by direction buttons, and selected by [OK] button on RC.
1. Two input text fields (</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5136445107455916563/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5136445107455916563' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5136445107455916563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5136445107455916563'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/last-ui-programming-work-virtual.html' title='The last UI programming work  - Virtual Keyboard for RTK1073/1283'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_siJf1Om87qw/S_OOWsNGSUI/AAAAAAAAB5w/KedZHPfWVhI/s72-c/IMAGE_00294.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3148382130172499277</id><published>2010-05-18T17:30:00.002+08:00</published><updated>2010-05-18T17:59:25.212+08:00</updated><title type='text'>CMake - my first experience</title><summary type='text'>Reference:
0.  Jserv's 貓也會的 CMake http://blog.linux.org.tw/~jserv/archives/001987.html   and http://jserv.sayya.org/cmake/cmake-overview.pdf
1. Drake's 把玩 CMake 的第一步 http://drakeguan.org/my_first_trial_of_cmake

This is my first time with CMake. Before it starts, I have to install cmake in my Ubuntu.
$ sudo apt-get install cmake
Then prepare some files and directories per Drake's suggestions.

*</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3148382130172499277/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3148382130172499277' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3148382130172499277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3148382130172499277'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/cmake.html' title='CMake - my first experience'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5231299408337177596</id><published>2010-05-12T11:13:00.000+08:00</published><updated>2010-05-12T11:13:53.562+08:00</updated><title type='text'>warning: array subscript has type `char'</title><summary type='text'>A 'char' may be 'signed' or 'unsigned'. Most regular compilers will default to 'signed'.
So if you have an array with index 127, you increment the index and it becomes -128.
This may of course be your intention.
A 'safe' type to use for an array 
index is 'int' or 'unsigned char'.


char idx;  /// limited range
somedata[idx] = otherdata;


==&gt; (to eliminate the warning...)


unsigned char idx;
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5231299408337177596/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5231299408337177596' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5231299408337177596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5231299408337177596'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/warning-array-subscript-has-type-char.html' title='warning: array subscript has type `char&apos;'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3172213180711332494</id><published>2010-05-10T14:53:00.002+08:00</published><updated>2010-05-21T14:20:56.743+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Simple Poker ?!</title><summary type='text'>

A simple Black Jack game in linux. 
If you are interested in the history of poker, click below links.Reference:- http://ianjung1974.blogspot.com/2008/05/54-why.html- http://zh.wikipedia.org/w/index.php?title=扑克牌&amp;variant=zh-tw#.E2.99.A0.E3.80.81.E2.99.A5.E3.80.81.E2.99.A3.E3.80.81.E2.99.A6.E5.9C.96.E6.A1.88.E8.B5.B7.E6.BA.90


Program output as below.


~/workspace/poker$ ./myBJ 1 2
   m_magic =</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3172213180711332494/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3172213180711332494' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3172213180711332494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3172213180711332494'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/simple-black-jack-game-in-linux.html' title='Simple Poker ?!'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5655957546396656916</id><published>2010-05-09T10:44:00.007+08:00</published><updated>2010-05-09T10:58:13.642+08:00</updated><title type='text'>Install Apache/PHP/MySQL on  Ubuntu 10.04</title><summary type='text'>It's almost nine years since the first and also the last time I installed the Apache web server. The web services on the last server are a company calendar (schedule) and a namelist implemented by php3 and mysql.
 First we have to install Apache server via$ sudo apt-get install apache2
 Open http://localhost/ or http://127.0.0.1/ in a web browser to check if the web server is successfully </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5655957546396656916/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5655957546396656916' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5655957546396656916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5655957546396656916'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/05/create-web-service-on-ubuntu-1004.html' title='Install Apache/PHP/MySQL on  Ubuntu 10.04'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/S-Yclug2UZI/AAAAAAAAB5o/lBfUk1Xla8g/s72-c/Screenshot-http:--localhost-+-+Google+%E7%80%8F%E8%A6%BD%E5%99%A8.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2620439075485551804</id><published>2010-04-26T11:06:00.000+08:00</published><updated>2010-04-26T11:06:37.900+08:00</updated><title type='text'>sqlite3 - explore a .db !</title><summary type='text'>Got a .db and tried to find what's inside... :)
$ sqlite3 realtek.db 
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite&gt; .databases
seq  name             file                                                      
---  ---------------  ----------------------------------------------------------
0    main             /nfstmp/realtek.db</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2620439075485551804/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2620439075485551804' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2620439075485551804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2620439075485551804'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/sqlite3-explore-db.html' title='sqlite3 - explore a .db !'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3239595467577448228</id><published>2010-04-21T11:02:00.001+08:00</published><updated>2010-04-21T11:04:18.563+08:00</updated><title type='text'>A simple MineSweeper on Realtek 1073/1283 board.</title><summary type='text'>It's just an idea to have a game on my Realtek 1073/1283 board. Preliminary version was developed on Ubuntu 9.10 to generate a random mine map. The GUI on Realtek board helps the completion of the simple game. No score, just for fun !!!
















</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3239595467577448228/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3239595467577448228' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3239595467577448228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3239595467577448228'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/simple-minesweeper-on-realtek-10731283.html' title='A simple MineSweeper on Realtek 1073/1283 board.'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_siJf1Om87qw/S85ocS946_I/AAAAAAAAB44/oaLog-pCI5c/s72-c/IMAGE_00291.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6395713896002968686</id><published>2010-04-21T10:50:00.000+08:00</published><updated>2010-04-21T10:50:16.039+08:00</updated><title type='text'>A simple calculator on Realtek 1073/1283 board</title><summary type='text'>The CalcAP is implemented due to a programming quiz from the team leader since the Chinese New Year. It was originally a infix expression given by user and the program shall be able to return the calculation result. The calculator shall support +-*/()^. and no other function(s) shall be used in this program.
After the console version on Ubuntu 9.10 is completed, I prepared an GUI version on my </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6395713896002968686/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6395713896002968686' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6395713896002968686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6395713896002968686'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/simple-calculator-on-realtek-10731283.html' title='A simple calculator on Realtek 1073/1283 board'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/S85gZV_KEmI/AAAAAAAAB4Y/kq-8fHZhnCw/s72-c/IMAGE_00292.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-9196028188208739620</id><published>2010-04-12T15:44:00.001+08:00</published><updated>2010-04-12T15:44:20.627+08:00</updated><title type='text'>(NOTE) Java Gossip: 第一個Java程式</title><summary type='text'>編譯程式# javac HelloWorld.java會產生 HelloWorld.class執行程式# java HelloWorldSystem是放在java.lang的 套件（package） 中，但java.lang中的類別都很常用，無需特別import參考來源： "Java Gossip: 第一個Java程式"- 第一個Java程式 (在「Google 網頁註解」中檢視)</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/9196028188208739620/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=9196028188208739620' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9196028188208739620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9196028188208739620'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/note-java-gossip-java.html' title='(NOTE) Java Gossip: 第一個Java程式'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2259740759967348583</id><published>2010-04-12T13:34:00.004+08:00</published><updated>2010-04-12T21:21:07.369+08:00</updated><title type='text'>Android</title><summary type='text'>Installation instructions per official website of Installing the SDK | Android Developers (http://developer.android.com/sdk/installing.html) and the other reference page (http://csie-tw.blogspot.com/2008/01/androideclipse.html) makes it easier for us to complete the installation work.  

The HelloAndroid project with Eclipse on Ubuntu 9.10.





















Select [ Window ] - [ Android SDK </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2259740759967348583/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2259740759967348583' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2259740759967348583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2259740759967348583'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/android.html' title='Android'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/S8KSfZy1paI/AAAAAAAAB2Q/EnYLeyicyvw/s72-c/Screenshot-Java+-+HelloAndroid-src-com-google-android-hello-HelloAndroid.java+-+Eclipse+.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6986667575298394208</id><published>2010-04-10T11:12:00.007+08:00</published><updated>2010-04-18T21:55:53.183+08:00</updated><title type='text'>sscanf - parse pre-defined format string</title><summary type='text'>Parse a string with pre-defined format into lots of different variables. The last string shall be able to contain new line character for other purpose.  :)

#include &lt;stdio.h&gt;

int main(int argc, char **argv)
{
   const char *str="123 456 1234567890 1333555777 Line#1 Hello World !\nLine#2 sscanf parse*0 test\nLine#3 End.\n";
   int       a, b;
   long long c, d;   
   char      e[256];

   /// </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6986667575298394208/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6986667575298394208' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6986667575298394208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6986667575298394208'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/sscanf.html' title='sscanf - parse pre-defined format string'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7098468633581308462</id><published>2010-04-03T11:31:00.000+08:00</published><updated>2010-04-03T11:31:47.600+08:00</updated><title type='text'>linux echo command</title><summary type='text'>As I was requested to light up some LEDs on my board, one binary from my colleague was used. But I tried in this easy way...

11111100 (bin) &gt; 0374 (oct)
The last two bits stand for two LEDs.

 box# echo -e \\0374 &gt; /dev/gpio0  </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7098468633581308462/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7098468633581308462' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7098468633581308462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7098468633581308462'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/linux-echo-command.html' title='linux echo command'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7667555948470151243</id><published>2010-04-03T11:24:00.001+08:00</published><updated>2010-04-03T11:26:35.467+08:00</updated><title type='text'>Ubuntu Notification Window + crontab</title><summary type='text'>Hey! Want to get some news from your favorite news websites w/o click your web browser ? Try to do in this way, and hope it will not interrupt your boring work. Ccc...
FIRST, you shall write a simple shell script to parse the news RSS pages from your favorite news website.$ cat myUdnRss.sh
#!/bin/sh
DL_URL="http://udn.com/udnrss/latest.xml"
#DL_URL="http://rss.chinatimes.com/rss/focus-u.rss"
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7667555948470151243/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7667555948470151243' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7667555948470151243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7667555948470151243'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/04/ubuntu-notification-window-crontab.html' title='Ubuntu Notification Window + crontab'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/S7au1PMKumI/AAAAAAAAB1g/uNpRpmKOHK8/s72-c/udn.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5594092758308062170</id><published>2010-03-29T15:08:00.001+08:00</published><updated>2010-03-29T15:10:58.242+08:00</updated><title type='text'>Ubuntu Notification Window</title><summary type='text'>Hourly notification with GUI application 
$ crontab -e-----------------------------------------------------------# min hour day-of-month month day-of-week command 0 * * * * env DISPLAY=:0 /usr/bin/notify-send `date +\%H:\%M` -i /usr/share/pixmaps/gnome-set-time.png------------------------------------------------------------ref: https://help.ubuntu.com/community/CronHowto

</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5594092758308062170/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5594092758308062170' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5594092758308062170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5594092758308062170'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/03/ubuntu-notification-window.html' title='Ubuntu Notification Window'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/S7BQjPQxXSI/AAAAAAAAB1Y/y8LoJW6y4Sg/s72-c/test.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3899658172614825564</id><published>2010-02-10T11:57:00.004+08:00</published><updated>2010-03-29T15:41:28.570+08:00</updated><title type='text'>Experience on FFmpeg</title><summary type='text'>






1. Download ffmpeg 0.5 from official website. 2. Extract to some working folder. 
3. Complie and install ffmpeg per INSTALL document.    $ ./configure    $ ./make    $ sudo make install

$ ls -al /usr/local/bin/   : 
-rwxr-xr-x  1 root root 5799064 2010-02-09 13:58 ffmpeg
-rwxr-xr-x  1 root root 5782616 2010-02-09 13:58 ffserver
   :


$ ls -al /usr/local/lib/   :
-rw-r--r--  1 root root  </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3899658172614825564/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3899658172614825564' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3899658172614825564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3899658172614825564'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2010/02/experience-on-ffmpeg.html' title='Experience on FFmpeg'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_siJf1Om87qw/S3Isd7bWKEI/AAAAAAAAB0Y/wJjcp0SyfA8/s72-c/Screenshot-1235.avi.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2012588753270389606</id><published>2009-11-29T11:24:00.000+08:00</published><updated>2009-11-29T11:24:01.098+08:00</updated><title type='text'>buildroot</title><summary type='text'>REF:  http://opencsl.openfoundry.org/Lab01_intro.rst.html

1. Get the latest Buildroot ... I do in this way...
svn co svn://uclibc.org/trunk/buildroot:
At revision 262502. make menuconfig(a) Target Architecture ==&gt; (X) arm(b) Toolchain ==&gt; [*] Enable RPC(c) Target filesystem options ==&gt; [ ] ext2 root filesystem(d) Kernel -&gt; Kernel type ==&gt; (X) none3. make:extra/scripts/unifdef.c:209: error: </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2012588753270389606/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2012588753270389606' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2012588753270389606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2012588753270389606'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/11/buildroot.html' title='buildroot'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6310011008981867564</id><published>2009-11-23T22:24:00.002+08:00</published><updated>2009-11-23T22:25:51.308+08:00</updated><title type='text'>gconf-sanity-check-2 exited with status 256</title><summary type='text'>Terrible !!!

This morning, my Ubuntu 9.10 box message box showed 'gconf-sanity-check-2 exited with status 256' , and then I could not login my box anymore !!! But it's lucky, I could login as root.  Try to look for answers from google, but none of them worked !
[1] sudo chmod 755 /etc/gconf/*
[2] sudo chmod -Rc yenping:yenping /home/yenping

However, case [1] gave me some ideas, and I found </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6310011008981867564/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6310011008981867564' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6310011008981867564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6310011008981867564'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/11/gconf-sanity-check-2-exited-with-status.html' title='gconf-sanity-check-2 exited with status 256'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-649112349161462931</id><published>2009-11-14T11:00:00.005+08:00</published><updated>2009-11-27T16:37:18.543+08:00</updated><title type='text'>Ubuntu 9.10, One Graphic Card for Dual Monitors</title><summary type='text'>Ubuntu 9.10 x86_64 on Intel Q8490 + Nvidia GeForce 9400GT ...
the TwinView ...



[SYSTEM] - [MANAGEMENT] - [NVIDIA X Server Settings]


[O] X Server Information














[O] GPU 0 - (GeForce 9400 GT)














[O] X Server Display Configuration




















Found NEX T4211N disabled (in fact, it shall be CHIMEI DTL-742E400, 42" LCD TV connected via HDMI)

Select Model: NEX T4211N</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/649112349161462931/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=649112349161462931' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/649112349161462931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/649112349161462931'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/11/ubuntu-910-one-graphic-card-for-dual.html' title='Ubuntu 9.10, One Graphic Card for Dual Monitors'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/Sv4bU10EZdI/AAAAAAAABzc/trUwZpzLXGs/s72-c/Screenshot-NVIDIA+X+Server+Settings-1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6138158813841937315</id><published>2009-11-06T10:45:00.002+08:00</published><updated>2009-11-23T22:27:29.793+08:00</updated><title type='text'>OpenOffice 3.1.1 Installation</title><summary type='text'>1. Download latest openoffice tar ball from http://download.openoffice.org/other.html

2. Extract tar ball to somewhere 

3. cd somewhere/DEBS
4. sudo dpkg - i *.deb
5. cd desktop-integration
6. sudo dpkg - i *.deb

7. If something wrong with unexpected error and trying to recover Untitle 1 document again and again, just do 'rm ~/.openoffice.org', and re-install openoffice.


After that, </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6138158813841937315/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6138158813841937315' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6138158813841937315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6138158813841937315'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/11/openoffice-311-installation.html' title='OpenOffice 3.1.1 Installation'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5532063947418368420</id><published>2009-10-27T10:32:00.001+08:00</published><updated>2009-10-27T10:33:38.473+08:00</updated><title type='text'>make swap file</title><summary type='text'>
Something found in the rcS,and try to understand what it is.

--- rcS --------------------------

dd if=/Test.fat of=/dev/rd/0
mount -t vfat /dev/rd/0 /mnt/rd
swapon /mnt/rd/swap.img 

 :
---------------------------------- 

   
1. What is /dev/rd/0 ? 

The RAMDISCS are placed in their own directory, and are named thus: 
/dev/rd/{0,1,2,...}
ref: Linux Devfs (Device File System) FAQ
  

2. What </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5532063947418368420/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5532063947418368420' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5532063947418368420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5532063947418368420'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/10/make-swap-file.html' title='make swap file'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-9075767631550851151</id><published>2009-10-13T23:21:00.000+08:00</published><updated>2009-10-13T23:21:57.285+08:00</updated><title type='text'>pthread in eclipse</title><summary type='text'>click Project -&gt; Properties

C/C++ Build - Settings - [Tool Settings] - GCC C++ Linker

- Libraries ............. add  pthread 
- Miscellaneous ..... add -lpthread</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/9075767631550851151/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=9075767631550851151' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9075767631550851151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/9075767631550851151'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/10/pthread-in-eclipse.html' title='pthread in eclipse'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6877487434934274583</id><published>2009-09-19T10:53:00.000+08:00</published><updated>2009-09-19T10:53:07.484+08:00</updated><title type='text'>doxygen - Source Code Documentation Tools</title><summary type='text'>One day we were requested to document some source codes, and then I found Doxygen can do this well.  The output formats supported are HTML, PDF, LATEX, PS, RTF, QCH, QPH, MAN... It also provides some good graph/diagram output with graphViz. 

You may visit them here ...
Doxygen http://www.stack.nl/~dimitri/doxygen/index.html  
GraphViz http://www.graphviz.org/ 

Besides, Eclox (http://eclox.eu/) </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6877487434934274583/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6877487434934274583' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6877487434934274583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6877487434934274583'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/09/doxygen-source-code-documentation-tools.html' title='doxygen - Source Code Documentation Tools'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-833690459423449804</id><published>2009-09-15T18:06:00.005+08:00</published><updated>2009-11-27T16:35:09.288+08:00</updated><title type='text'>OpenSolaries 2009.06</title><summary type='text'>Finally the OpenSolaries 2009.06 was successfully installed.

















RESOURCES: 
OpenSolaris Live USB Creator (Windows/.NET) GENUNIX
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/833690459423449804/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=833690459423449804' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/833690459423449804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/833690459423449804'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/09/opensolaries-200906.html' title='OpenSolaries 2009.06'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/Sq9kXkEU3AI/AAAAAAAABx8/ORUjSPz--0s/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4211757088818944185</id><published>2009-09-10T14:48:00.004+08:00</published><updated>2009-09-15T18:08:05.360+08:00</updated><title type='text'>USB dongle detection</title><summary type='text'>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;ctype.h&gt;
#include &lt;sys/un.h&gt;
#include &lt;sys/ioctl.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;linux/types.h&gt;
#include &lt;linux/netlink.h&gt;
#include &lt;errno.h&gt;
#include &lt;unistd.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;netinet/in.h&gt;

#define UEVENT_BUFFER_SIZE 2048

static int init_hotplug_sock()
{
const int buffersize = 1024;
int ret;

struct </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4211757088818944185/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4211757088818944185' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4211757088818944185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4211757088818944185'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/09/include-stdio.html' title='USB dongle detection'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2784206135637239405</id><published>2009-08-23T16:52:00.002+08:00</published><updated>2009-08-23T16:53:03.057+08:00</updated><title type='text'>Socket Programming with Multi-Process and IPC/FIFO</title><summary type='text'>(later)</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2784206135637239405/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2784206135637239405' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2784206135637239405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2784206135637239405'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/08/socket-programming-with-multi-process.html' title='Socket Programming with Multi-Process and IPC/FIFO'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5270213697329988775</id><published>2009-08-23T16:51:00.000+08:00</published><updated>2009-08-23T16:52:17.157+08:00</updated><title type='text'>Socket Programming with Multi-Thread</title><summary type='text'>(later)</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5270213697329988775/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5270213697329988775' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5270213697329988775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5270213697329988775'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/08/socket-programming-with-multi-thread.html' title='Socket Programming with Multi-Thread'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1069830887605707226</id><published>2009-08-23T16:50:00.001+08:00</published><updated>2009-08-23T16:51:36.801+08:00</updated><title type='text'>Socket Programming with I/O Multiplexing</title><summary type='text'>(later)</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1069830887605707226/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1069830887605707226' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1069830887605707226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1069830887605707226'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/08/socket-programming-with-io-multiplexing.html' title='Socket Programming with I/O Multiplexing'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3551915250332318550</id><published>2009-07-19T23:36:00.002+08:00</published><updated>2009-07-19T23:37:11.916+08:00</updated><title type='text'>Linked List (Single/Double)</title><summary type='text'>


=================== LINKED LIST DEMO ===================
[ ] [D]-[0xbfb6b5cc]-[11]-[Albert]
[ ] [D]-[0xbfb6b5f0]-[12]-[Benson]
[ ] [D]-[0xbfb6b614]-[13]-[Cano  ]
[ ] [D]-[0xbfb6b638]-[14]-[David ]
[ ] [D]-[0xbfb6b65c]-[15]-[Elvin ]
[ ] [D]-[0xbfb6b680]-[16]-[Fan   ]
[ ] [D]-[0xbfb6b6a4]-[17]-[Gary  ]
[ ] [D]-[0xbfb6b6c8]-[18]-[Helen ]
[ ] [D]-[0xbfb6b6ec]-[19]-[Ivan  ]
[ ] [D]-[0xbfb6b710]-[20</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3551915250332318550/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3551915250332318550' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3551915250332318550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3551915250332318550'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/07/linked-list-singledouble.html' title='Linked List (Single/Double)'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/SmM9golc8GI/AAAAAAAABuM/CSWBYVwRSl8/s72-c/Screenshot-chanyenping%40chanyenping:+%7E-%E6%A1%8C%E9%9D%A2-myLL.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3278587872532070218</id><published>2009-07-19T23:32:00.005+08:00</published><updated>2009-07-19T23:49:11.937+08:00</updated><title type='text'>Balanced Tree</title><summary type='text'>AVL Balanced tree program written in C. Refer to http://en.wikipedia.org/wiki/AVL_tree.

This program can display a tree structure as below. It also have a cursor which can be moved by numeric key (1-9). Cursor node is also highlight displayed :) 





==================== Balance Tree (6)====================
[13](-1)----[38](-1)----[57](+1)----[90](+0)----[99](+0)
  |           |           |</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3278587872532070218/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3278587872532070218' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3278587872532070218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3278587872532070218'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/07/your-choice.html' title='Balanced Tree'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/SmM8itJ_GbI/AAAAAAAABuE/2YjOcjH0oEA/s72-c/Screenshot-chanyenping%40chanyenping:+-media-disk-myTree4.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7279988532815924342</id><published>2009-07-12T10:12:00.004+08:00</published><updated>2009-07-12T10:16:03.172+08:00</updated><title type='text'>getch() in Linux</title><summary type='text'>A good reference from http://blog.csdn.net/t_larry/archive/2006/04/06/653124.aspx

#include &lt;termios.h&gt;
#include &lt;unistd.h&gt;
#include &lt;assert.h&gt;
#include &lt;string.h&gt;
/*------------------------------------------------*/
int getch(void) {
      int c=0;

      struct termios org_opts, new_opts;
      int res=0;
          //-----  store old settings -----------
      res=tcgetattr(STDIN_FILENO, &amp;</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7279988532815924342/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7279988532815924342' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7279988532815924342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7279988532815924342'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/07/getch-in-linux.html' title='getch() in Linux'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1333275137052214043</id><published>2009-06-30T09:49:00.002+08:00</published><updated>2009-06-30T09:53:37.823+08:00</updated><title type='text'>Updates to Qt and Qt Creator ...</title><summary type='text'>On June 25, Nokia announced the release of updates to Qt.

- Qt Creator 1.2
- Qt 4.5.2

Download is available at http://www.qtsoftware.com/downloads
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1333275137052214043/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1333275137052214043' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1333275137052214043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1333275137052214043'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/updates-to-qt-and-qt-creator.html' title='Updates to Qt and Qt Creator ...'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7112061266502003687</id><published>2009-06-23T21:50:00.002+08:00</published><updated>2009-06-23T21:57:35.477+08:00</updated><title type='text'>SQLite</title><summary type='text'>

SQLite in 5 minutes or less

http://www.sqlite.org/quickstart.html</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7112061266502003687/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7112061266502003687' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7112061266502003687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7112061266502003687'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/sqlite.html' title='SQLite'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-506274776271390087</id><published>2009-06-23T21:29:00.007+08:00</published><updated>2009-06-23T21:48:46.908+08:00</updated><title type='text'>RFID Application</title><summary type='text'>RFID Application - SQLite + Serial/Socket Programming

SQLite DB&lt;=&gt;logServer&lt;=&gt;RFID Reader(S/W)&lt;=&gt;RFID Reader(H/W)&lt;=&gt;Tag

1. Create a database for RFID Tags.




2. RFID Reader(S/W) read tag information via /dev/ttyS0.It sends the Tag ID to logServer for identification.



3. logServer receives Tag Info from RFID Reader and checks with SQLIte DB. Then feedback results to RFID Reader to take </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/506274776271390087/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=506274776271390087' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/506274776271390087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/506274776271390087'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/rfid-application.html' title='RFID Application'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/SkDZgGi5BHI/AAAAAAAABtM/X0OlUgvsDlY/s72-c/userList.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4897008905210295560</id><published>2009-06-21T22:22:00.003+08:00</published><updated>2009-06-22T10:11:37.880+08:00</updated><title type='text'>RFID Reader - ttyS0</title><summary type='text'>Refererence,
1. Serial Programming Guide for POSIX Operating Systems 
2. Serial Programming HOWTO  (Translated) 
3. Summit RFID Reader
4. QextSerialPort ... a Qt Serial Class

Programmed as below,
#include &lt;stdio.h&gt;   /* Standard input/output definitions */
#include &lt;string.h&gt;  /* String function definitions */
#include &lt;unistd.h&gt;  /* UNIX standard function definitions */
#include &lt;fcntl.h&gt;   /* </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4897008905210295560/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4897008905210295560' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4897008905210295560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4897008905210295560'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/rfid-reader-ttys0.html' title='RFID Reader - ttyS0'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4349769484934027476</id><published>2009-06-03T23:51:00.002+08:00</published><updated>2009-06-03T23:56:16.913+08:00</updated><title type='text'>Bluetooth - Programming</title><summary type='text'>Codes modified from Bluetooth Essential for Programmer.

#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;bluetooth/bluetooth.h&gt;
#include &lt;bluetooth/rfcomm.h&gt;

int main(int argc, char **argv)
{
   struct sockaddr_rc addr = { 0 };
   int s, status, bytes_read;
   char buf[1] = { 0 };
   char dest[18] = "00:0B:0D:6C:36:0B";

   // allocate a socket
   s = socket(AF_BLUETOOTH</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4349769484934027476/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4349769484934027476' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4349769484934027476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4349769484934027476'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/bluetooth-programming.html' title='Bluetooth - Programming'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-8934622258439595753</id><published>2009-06-03T22:59:00.004+08:00</published><updated>2009-06-04T00:00:04.999+08:00</updated><title type='text'>Bluetooth - Resources</title><summary type='text'>Bluez is the Official Linux Bluetooth protocol stack.

Bluetooth Essential for Programmer has some sample codes.

An Introduction to Bluetooth Programming

...
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/8934622258439595753/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=8934622258439595753' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8934622258439595753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8934622258439595753'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/bluetooth-resources.html' title='Bluetooth - Resources'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2605206073252701794</id><published>2009-06-03T22:22:00.006+08:00</published><updated>2009-06-03T22:54:42.641+08:00</updated><title type='text'>Bluetooth - GPSlim236 GPS (2)</title><summary type='text'>1. Scan if any bluetooth device here ...

# hcitool scan
Scanning ...
   00:0B:0D:6C:36:0B    HOLUX GPSlim236

2. Bind the RFCOMM device to the remote bluetooth device.

# rfcomm bind /dev/rfcomm0 00:0B:0D:6C:36:0B 

3. Check the RFCOMM device is created or not.

# ls -al /dev/rfcomm0 
crw-rw---- 1 root root 216, 0 2009-06-03 21:19 /dev/rfcomm0

4. Check current RFCOMM device informaion.

# </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2605206073252701794/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2605206073252701794' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2605206073252701794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2605206073252701794'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/bluetooth-gpslim236-gps-2.html' title='Bluetooth - GPSlim236 GPS (2)'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/SiaL-JsulrI/AAAAAAAABsk/viRSWLzBkPM/s72-c/Screenshot-%E8%97%8D%E8%8A%BD%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A-2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4739070575240474673</id><published>2009-06-03T21:24:00.009+08:00</published><updated>2009-06-03T22:19:11.198+08:00</updated><title type='text'>Bluetooth - GPSlim236 GPS</title><summary type='text'>Bluetooth is supported in Linux kernel 2.4 and 2.6.

Holux GPSlim236 GPS information can be found in http://www.holux.com/JCore/en/products/products_content.jsp?pno=340


To make GPSlim236 works in Ubuntu 9.04, 

1. Insert an USB Bluetooth Dongle.(D-Link DBT-122T)

2. The device shall be detected automatically by Ubuntu, and the bluetooth icon shall appear in the system tray.

3. Right click the </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4739070575240474673/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4739070575240474673' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4739070575240474673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4739070575240474673'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/06/bluetooth-gpslim236-gps.html' title='Bluetooth - GPSlim236 GPS'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_siJf1Om87qw/SiZ-D3z1E1I/AAAAAAAABsU/1Lt2yELxeTk/s72-c/Screenshot-%E8%97%8D%E8%8A%BD%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7182838386170398826</id><published>2009-05-28T16:16:00.026+08:00</published><updated>2009-05-28T17:54:23.379+08:00</updated><title type='text'>Google Maps API</title><summary type='text'>


/*
*/    function initialize() {/*
*/      if (GBrowserIsCompatible()) {/*
*/          var map = new GMap2(document.getElementById("map_canvas"));/*
*/          var IOI = new GLatLng(25.0336, 121.5644);/*
*/          map.setCenter( IOI, 13);/*
*/          map.addOverlay(new GMarker(IOI));/*
*/          var MSG = "TAIPEI 101 @ "+ IOI ;/*
*/          map.openInfoWindowHtml(</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7182838386170398826/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7182838386170398826' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7182838386170398826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7182838386170398826'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/google-maps-api-sample-function.html' title='Google Maps API'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7551819126279185668</id><published>2009-05-26T22:45:00.003+08:00</published><updated>2009-05-26T22:55:28.572+08:00</updated><title type='text'>nmap - port scanner</title><summary type='text'>When surfing internet, somebody mentioned nmap - a powerful port scanning program.

$ sudo apt-get install nmap

$ nmap -A localhost

Starting Nmap 4.76 ( http://nmap.org ) at 2009-05-26 22:48 CST
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
SCRIPT ENGINE: '/usr/share/nmap/scripts/dns-test-open-recursion.nse' threw a run time error and could not be loaded.
SCRIPT ENGINE: '/usr/</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7551819126279185668/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7551819126279185668' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7551819126279185668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7551819126279185668'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/nmap-port-scanner.html' title='nmap - port scanner'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5861976038576825306</id><published>2009-05-19T21:41:00.003+08:00</published><updated>2009-05-19T22:25:45.465+08:00</updated><title type='text'>semaphore</title><summary type='text'>A simple semaphore program modified from Beginning Linux Programming 4/e. The sem_getvalue() is used to get semaphore value for test purpose only.And also the return value of a thread is given by pthread_exit() in thread function.
#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;pthread.h&gt;
#include &lt;semaphore.h&gt;

#define  SIZE   64
char     work_area[SIZE];</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5861976038576825306/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5861976038576825306' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5861976038576825306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5861976038576825306'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/semaphore.html' title='semaphore'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3904489135033702893</id><published>2009-05-18T21:58:00.011+08:00</published><updated>2009-05-18T22:48:31.952+08:00</updated><title type='text'>pthread - pthread_create(), pthread_join()</title><summary type='text'>
A simple program with threads. It also demostrates how the parameters are passed to the thread functions.
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;time.h&gt;
#include &lt;pthread.h&gt;

#define MAX_1    5
#define MAX_2   10  

/* ref: http://en.wikipedia.org/wiki/POSIX_Threads */

static void wait(void)
{
 time_t start_time = time(NULL);

 while (time(NULL) == start_time)
 {
     /* do nothing </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3904489135033702893/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3904489135033702893' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3904489135033702893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3904489135033702893'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/pthread.html' title='pthread - pthread_create(), pthread_join()'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4791446079934050651</id><published>2009-05-18T18:37:00.004+08:00</published><updated>2009-05-18T18:55:32.261+08:00</updated><title type='text'>ARM Emulator by QEMU on Ubuntu 9.04</title><summary type='text'>From google, we know it's possible to emulate ARM in Ubuntu.
First, we have to install qemu.

$ sudo apt-get install qemu

It seems version qemu 0.10.0. If you want to get the latest one, please link to http://www.nongnu.org/qemu/download.html.

Second, we have to get an ARM image in above page or direct download from http://www.nongnu.org/qemu/arm-test-0.2.tar.gz

Decompress the tarball into </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4791446079934050651/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4791446079934050651' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4791446079934050651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4791446079934050651'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/install-qemu-on-ubuntu-904.html' title='ARM Emulator by QEMU on Ubuntu 9.04'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_siJf1Om87qw/ShE8DwmDkmI/AAAAAAAABrg/8oLdQe_kAJM/s72-c/Screenshot-QEMU.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5417538699867201661</id><published>2009-05-16T08:44:00.004+08:00</published><updated>2009-11-17T21:27:36.365+08:00</updated><title type='text'>No manual entry</title><summary type='text'>For Ubuntu 9.04

When requesting the usage of fputs() in my Ubuntu 9.04, I got no manual entry for fputs(). Google tells me ...

$ man fputs
No manual entry for fputs
$ sudo apt-get install manpages-dev  manpages-posix-dev glibc-doc

@ 2009-11-17
manpages-posix-dev ... for pthread ...

glibc-doc ... for others...

.</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5417538699867201661/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5417538699867201661' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5417538699867201661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5417538699867201661'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/no-manual-entry.html' title='No manual entry'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5522922055364143051</id><published>2009-05-15T20:54:00.022+08:00</published><updated>2009-05-15T22:17:19.258+08:00</updated><title type='text'>signal() and kill command</title><summary type='text'>#include &lt;signal.h&gt;
#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;

void ouch(int sig)
{
printf(" &lt;--- OUCH ! - Got signal - %d\n", sig);
signal(SIGINT, SIG_DFL);
}

int main()
{
signal(SIGINT, ouch);

while(1) {
  printf("Hello SIGINT !\n");
  sleep(1);
}
}
signal in main(): set ouch() as the SIGINT handler
signal in ouch(): set SIGINT handler to default, terminate process

If you SIGINT handler is not </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5522922055364143051/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5522922055364143051' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5522922055364143051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5522922055364143051'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/signal-and-kill-command.html' title='signal() and kill command'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-2577571722587388323</id><published>2009-05-12T11:48:00.011+08:00</published><updated>2009-05-12T16:29:23.191+08:00</updated><title type='text'>QT Resource File</title><summary type='text'>
Create your own RESOURCE FILE with .qrc extension, and its format as below

&lt;!DOCTYPE RCC&gt;&lt;RCC version="1.0"&gt; 
&lt;qresource&gt;
    &lt;file&gt;Panda_32x32.png&lt;/file&gt;     
&lt;file&gt;Turtle_32x32.png&lt;/file&gt; 
&lt;/qresource&gt; 
&lt;/RCC&gt;

Execute qmake -project, the RESOURCES += myRC.qrc  will be added in project (.pro) file


##################################################################### 
# Automatically </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/2577571722587388323/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=2577571722587388323' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2577571722587388323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/2577571722587388323'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/qt-resource-file.html' title='QT Resource File'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/Sgj05ljjtGI/AAAAAAAABqg/iMetuNfuX9k/s72-c/Screenshot-QListWidget+%26+Item.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-51010626724038524</id><published>2009-05-11T11:59:00.003+08:00</published><updated>2009-05-12T15:59:46.315+08:00</updated><title type='text'>fork() demo</title><summary type='text'>#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;

int main()
{
pid_t self, parent, child;

self   = getpid();
parent = getppid();

int i=0, n=0;

printf("PID: %d, PPID: %d (before fork) \n", self, parent);

child =fork();

if(child==0) { // child process
  printf("child=fork() == 0 (child process)\n");
  printf("PID: %d, PPID= %d\n", getpid(), getppid());

  // i, n in child process
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/51010626724038524/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=51010626724038524' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/51010626724038524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/51010626724038524'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/include-stdio.html' title='fork() demo'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3755401957755003275</id><published>2009-05-06T22:21:00.007+08:00</published><updated>2009-05-07T09:13:40.740+08:00</updated><title type='text'>LDD3 Errata</title><summary type='text'>When I read Chapter 3 - Char Drivers of the LDD3 from internet, I found request_chrdev_region seems to be a typo of register_chrdev_region, and then found the errata of this book. Please refer to this page for detail.  http://oreilly.com/catalog/linuxdrive3/errata/

You can find the on-line book of Linux Device Drivers, Third Edition in O'Reilly Open Books Project
:)
</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3755401957755003275/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3755401957755003275' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3755401957755003275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3755401957755003275'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/ldd3-errata.html' title='LDD3 Errata'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1877542004518273116</id><published>2009-05-05T22:03:00.007+08:00</published><updated>2009-05-05T22:41:10.429+08:00</updated><title type='text'>Play .vmdk by Virtual Box in Ubuntu</title><summary type='text'>Ubuntu 9.04 + VirtualBox 2.2.2

1. Add your .vmdk in Virtual Media Manager.



2. Create a new virtual machine.



3. Use existing hard disk. (the one just added in step 1.)


4. Power on the new Fedora.


5. Fedora Core 2.6.9 is booting :)


Then I can do something with Fedora in Ubuntu...
No more Windows and VM Ware !</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1877542004518273116/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1877542004518273116' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1877542004518273116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1877542004518273116'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/play-vmdk-by-virtual-box-in-ubuntu.html' title='Play .vmdk by Virtual Box in Ubuntu'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/SgBIK1eplfI/AAAAAAAABqQ/6ZiEGd7tnMA/s72-c/Screenshot-Virtual+Media+Manager.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5284517243212294847</id><published>2009-05-01T22:53:00.010+08:00</published><updated>2009-05-15T22:28:06.153+08:00</updated><title type='text'>The Hello kernel module  in Ubuntu 9.04</title><summary type='text'>Prepare hello.c and Makefile as below for the first kernel module.

hello.c
#include &lt;linux/kernel.h&gt;
#include &lt;linux/module.h&gt;
#include &lt;linux/init.h&gt;

/*
 use insmod to load module
 msg log to /var/log/messages
 use tail or lsmod to check
*/

static int __init my_init(void)
{
  printk("&lt;1&gt; Hello, Orz...\n");
    return 0;  /* if -1, operation not permitted */
}


/* use rmmod to unload module *</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5284517243212294847/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5284517243212294847' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5284517243212294847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5284517243212294847'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/my-first-kernel-module-hello-in-ubuntu.html' title='The Hello kernel module  in Ubuntu 9.04'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4757355428862624590</id><published>2009-05-01T22:26:00.005+08:00</published><updated>2009-05-01T22:52:49.245+08:00</updated><title type='text'>Compile kernel module in Ubuntu 9.04 - Preparation</title><summary type='text'>The installed Ubuntu 9.04 here is a desktop version. Therefore I need to install the additional linux source before next step.

apt-get install linux-source 

Then you will get a tarball linux-source-2.6.28.tar.bz2 in your /usr/src.
Now change your directory to /usr/src and unpack the tarball.

cd /usr/src
tar xjf linux-source-2.6.28.tar.bz2 &amp;

(or you may unpack in this way
bzip2 -d linux-source</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4757355428862624590/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4757355428862624590' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4757355428862624590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4757355428862624590'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/05/compile-kernel-module-in-ubuntu-904.html' title='Compile kernel module in Ubuntu 9.04 - Preparation'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-7939194567739850695</id><published>2009-04-30T16:21:00.005+08:00</published><updated>2009-05-16T10:02:26.752+08:00</updated><title type='text'>Screen Capture in Ubuntu</title><summary type='text'>In Ubuntu, you can easily capture the full screen by press [Print Screen]or [Alt]+[Print Screen] to capture the image of an activated window.And then image processing program can be used to modify the captured image if necessary.</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/7939194567739850695/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=7939194567739850695' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7939194567739850695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/7939194567739850695'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/screen-capture-in-ubuntu.html' title='Screen Capture in Ubuntu'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5084567984946592265</id><published>2009-04-30T11:59:00.005+08:00</published><updated>2009-04-30T12:15:46.584+08:00</updated><title type='text'>Windows XP in Virtual Box on Unbuntu</title><summary type='text'>Some website applications are not running well in Linux platform. So that I shall have one copy of Windows XP. And the free solution is Virtual Box...

[*] Host  OS : Ubuntu 9.04

[*] Virtual Box 2.2.2 r46594

Download your Virtual Box from its website first. (http://www.virtualbox.org/wiki/Downloads) And then install it.






[*] Guest OS : Windows XP Service Pack 2

</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5084567984946592265/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5084567984946592265' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5084567984946592265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5084567984946592265'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/windows-xp-in-virtual-box-on-unbuntu.html' title='Windows XP in Virtual Box on Unbuntu'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/Sfki1UAS_hI/AAAAAAAABoU/tYL9ztu0I4I/s72-c/Screenshot-VirtualBox+-+%E9%97%9C%E6%96%BC.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-5445900902516025347</id><published>2009-04-30T11:09:00.004+08:00</published><updated>2010-05-21T15:23:42.981+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>OS Exercise - Disk Scheduler</title><summary type='text'>A simple C program which implements the disk scheduling algorithm including FCFS, SSTF, SCAN, CSCAN, LOOK and CLOOK.  


Please choose your disk scheduling algorithm:
1. FCFS  - First Come First Serve
2. SSTF  - Shortest Seek Time First
3. SCAN  -
4. CSCAN - Circular Scan
5. LOOK  - Scan without moving to ends
6. CLOOK - Circular Look without moving to ends
Your choice is (1~6, other input means </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/5445900902516025347/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=5445900902516025347' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5445900902516025347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/5445900902516025347'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/os-exercise-disk-scheduler.html' title='OS Exercise - Disk Scheduler'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/SfkYTMtgAFI/AAAAAAAABns/2PyRqthqbAI/s72-c/Screenshot-chanyenping%40chanyenping:+-media-4G+USB-_OperationSystem-DiskScheduler.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-6909991315155762757</id><published>2009-04-30T10:50:00.012+08:00</published><updated>2010-05-21T15:24:00.825+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>OS Exercise - Memory Allocation</title><summary type='text'>Screenshot as below. It can do First/Best/Worst Fit...  


Please choose your allocation algorithm:
1. First Fit
2. Best Fit
3. Worst Fit
Your choose is (1/2/3, other input means EXIT): 2

MAIN MEUN
1. Display memory usage status
2. Input memory request to request queue
3. Allocate memory to the first requestor in queue
4. Terminate process in memory
5. Exit
Please enter your choice (1-5):2

</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/6909991315155762757/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=6909991315155762757' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6909991315155762757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/6909991315155762757'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/2-os-exercises.html' title='OS Exercise - Memory Allocation'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_siJf1Om87qw/SfkeMTOn8_I/AAAAAAAABoM/oBzSDzBHQVo/s72-c/Screenshot-memalloc.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-8390059012132155300</id><published>2009-04-30T10:33:00.005+08:00</published><updated>2010-05-21T15:23:04.614+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Qt'/><title type='text'>3 Qt Exercises After 1 Week Classess</title><summary type='text'>After one week classes, we are asked to write some codes.

 1. Something like ping-pong. &gt;&gt; (2 buttons are used, one as ball and another as board).  


 2. A simple painter. &gt;&gt; Undo 

 3. An address book records some basic information. &gt;&gt; Open/Save/Insert/Delete/Head/Prev/Next/Tail
 
 It's a pity that I don't have time to improve them at this moment. Because more other lessons are there.</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/8390059012132155300/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=8390059012132155300' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8390059012132155300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/8390059012132155300'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/3-qt-exercises-after-1-week-classess.html' title='3 Qt Exercises After 1 Week Classess'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/SfkYxYbyAQI/AAAAAAAABn0/F8IzDKmeSRc/s72-c/Screenshot-myMainWindow.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-880510278885339784</id><published>2009-04-25T11:13:00.004+08:00</published><updated>2009-04-30T16:55:31.336+08:00</updated><title type='text'>Qt 4.5 SDK Installation</title><summary type='text'>
Download the SDK from Qt website.
http://get.qtsoftware.com/qtsdk/qt-sdk-linux-x86-opensource-2009.02.bin

Then make the file executable by chmod u+x. 
 
Execute as root.
./qt-sdk-linux-x86-opensource-2009.02.bin

Then you can find Qt Creator in /opt/qtsdk-2009.01 (default) or somewhere you specify during installation.

However something may be required if someother packages are not present.

</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/880510278885339784/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=880510278885339784' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/880510278885339784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/880510278885339784'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/qt-45-sdk-installation.html' title='Qt 4.5 SDK Installation'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-4250585290455533522</id><published>2009-04-25T10:49:00.003+08:00</published><updated>2009-04-30T11:25:01.908+08:00</updated><title type='text'>ubuntu 9.04 Installation from HDD</title><summary type='text'>If you want to taste Ubuntu in your XP only, click the wubi.exe in the live cd.
or you want a new Ubuntu in another partitiom.

1. Put the live iso in a FAT partition.
2. Extract the vmlinuz, initrid.gz from casper in iso file...
3. Install Grub4dos if you have XP only.
4. and add some words in your menu.lst as below

title (090424) Install Ubuntu 9.04
root (hd0,5)
kernel /vmlinuz boot=casper </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/4250585290455533522/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=4250585290455533522' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4250585290455533522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/4250585290455533522'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/ubuntu-904-installation-from-hdd.html' title='ubuntu 9.04 Installation from HDD'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_siJf1Om87qw/SfkZhjJdUAI/AAAAAAAABn8/OFLnSFpMdDg/s72-c/Screenshot-%E7%B3%BB%E7%B5%B1%E7%9B%A3%E6%8E%A7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-3997051967537296673</id><published>2009-04-25T10:43:00.003+08:00</published><updated>2009-04-30T11:28:42.954+08:00</updated><title type='text'>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)</title><summary type='text'>


chanyenping@chanyenping:~$ mysql 
ERROR 1045 (28000): Access denied for user 'chanyenping'@'localhost' (using password: NO)
chanyenping@chanyenping:~$ mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.75-0ubuntu10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql&gt; </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/3997051967537296673/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=3997051967537296673' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3997051967537296673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/3997051967537296673'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/04/error-1045-28000-access-denied-for-user.html' title='ERROR 1045 (28000): Access denied for user &apos;root&apos;@&apos;localhost&apos; (using password: NO)'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_siJf1Om87qw/SfkakhkofMI/AAAAAAAABoE/0dEQavOcqW8/s72-c/Screenshot-mysql.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-393951904422108551</id><published>2009-02-15T10:14:00.004+08:00</published><updated>2009-04-30T12:20:42.552+08:00</updated><title type='text'>Fedora 10 Installation</title><summary type='text'>We're requested to develop programs in Linux in the future. Therefore I've to move Linux in my home box.

Becasue the OS used in class is Fedora 10, then I choose Fedora 10 as my first Linux OS. If the VM Ware is used in my old Windows XP, it will get poor performance due to the main memory is only 512MB. So I decided to install the Fedora 10 to physical partitions.  

Because I don't want to </summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/393951904422108551/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=393951904422108551' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/393951904422108551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/393951904422108551'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/02/fedora-10-installation.html' title='Fedora 10 Installation'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2445209733060424915.post-1837182389311392486</id><published>2009-02-15T09:59:00.000+08:00</published><updated>2009-02-15T10:02:02.715+08:00</updated><title type='text'>DEBUG</title><summary type='text'>Finally I knew that we mayuse gdb to debug my c program.</summary><link rel='replies' type='application/atom+xml' href='http://cyp1973.blogspot.com/feeds/1837182389311392486/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2445209733060424915&amp;postID=1837182389311392486' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1837182389311392486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2445209733060424915/posts/default/1837182389311392486'/><link rel='alternate' type='text/html' href='http://cyp1973.blogspot.com/2009/02/debug.html' title='DEBUG'/><author><name>CYP1973</name><uri>http://www.blogger.com/profile/03671907795740153572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
