<?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-8080943375072050381</id><updated>2012-02-15T23:46:35.611-08:00</updated><category term='postgres'/><category term='postgresql'/><category term='protocol'/><category term='simulator'/><category term='glibc'/><category term='robot'/><category term='doctrine'/><category term='scaling'/><category term='gettid'/><category term='createElement'/><category term='cookie'/><category term='query'/><category term='www'/><category term='module'/><category term='timer'/><category term='nginx'/><category term='license'/><category term='email'/><category term='tpcw'/><category term='slow query'/><category term='compress'/><category term='gcj'/><category term='proc'/><category term='hit'/><category term='table'/><category term='E75'/><category term='eAccelerator'/><category term='301'/><category term='java'/><category term='absolute'/><category term='lock'/><category term='lkm'/><category term='commit'/><category term='p'/><category term='sparc'/><category term='wordpress'/><category term='page'/><category term='read'/><category term='lmgrd'/><category term='Firefox'/><category term='build.xml'/><category term='build'/><category term='z-index'/><category term='myi repair'/><category term='javac'/><category term='optimization'/><category term='network'/><category term='dbt'/><category term='character'/><category term='error'/><category term='url redirect'/><category term='subversion'/><category term='svn'/><category term='google'/><category term='mail'/><category term='smtp'/><category term='client'/><category term='list'/><category term='useage'/><category term='search engine'/><category term='mask'/><category term='acpi'/><category term='Chinese'/><category term='option'/><category term='tomcat'/><category term='command'/><category term='application server'/><category term='httpd.conf'/><category term='response'/><category term='crond'/><category term='contact'/><category term='context switch'/><category term='web server'/><category term='image'/><category term='ifconfig'/><category term='named'/><category term='manual'/><category term='operation'/><category term='bot'/><category term='netstat'/><category term='geronimo'/><category term='osdl'/><category term='ssh'/><category term='lynx'/><category term='join'/><category term='thread'/><category term='gij'/><category term='queue'/><category term='seo'/><category term='simics'/><category term='meta'/><category term='mail server'/><category term='php configure setup install'/><category term='status code'/><category term='sql'/><category term='arg'/><category term='div'/><category term='task'/><category term='kernel'/><category term='log'/><category term='webstone'/><category term='source code'/><category term='server'/><category term='index'/><category term='gcc'/><category term='exception'/><category term='htaccess'/><category term='symfony'/><category term='ftp'/><category term='gmail'/><category term='install'/><category term='UTF8'/><category term='DNS'/><category term='path'/><category term='display'/><category term='relative'/><category term='web'/><category term='encoding'/><category term='url rewrite'/><category term='contact list'/><category term='backoff'/><category term='disk'/><category term='date'/><category term='delay'/><category term='Chinese Font'/><category term='lxr'/><category term='phone'/><category term='library'/><category term='js'/><category term='flag'/><category term='IP'/><category term='link'/><category term='repair'/><category term='performance'/><category term='vim'/><category term='cron'/><category term='bind'/><category term='cpu'/><category term='php mysql extension'/><category term='propel'/><category term='at t'/><category term='mysql'/><category term='jre'/><category term='x11'/><category term='Nokia'/><category term='jdk'/><category term='vmware'/><category term='language'/><category term='sendmail'/><category term='compile'/><category term='user'/><category term='messager'/><category term='style'/><category term='frequency'/><category term='getpid'/><category term='edit'/><category term='custom'/><category term='html'/><category term='session'/><category term='speedup'/><category term='request'/><category term='jdbc'/><category term='javascript'/><category term='affinity'/><category term='hosts'/><category term='x86'/><category term='benchmark'/><category term='spin'/><category term='gzip'/><category term='http'/><category term='cas'/><category term='svnserve'/><category term='assembly'/><category term='memcache'/><category term='optimial'/><category term='console'/><category term='vsftpd'/><category term='msn'/><category term='browser'/><category term='setting'/><category term='windows'/><category term='port mapping'/><category term='scsi'/><category term='file'/><category term='cache miss'/><category term='database'/><category term='deploy'/><category term='my.cnf'/><category term='system call'/><category term='linux'/><category term='apache'/><category term='ant'/><category term='innerHTML'/><category term='vi'/><category term='ext'/><category term='php'/><category term='process'/><category term='convert'/><category term='culture'/><category term='configure'/><category term='SimFlex'/><category term='overlay'/><category term='website'/><category term='sitemap.xml'/><category term='config'/><category term='position'/><category term='time'/><category term='conflict'/><category term='nat'/><category term='icon'/><category term='IE'/><category term='error_log'/><category term='atomic'/><category term='g++'/><category term='password'/><category term='mail queue'/><category term='profile'/><title type='text'>xiaoga</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default?start-index=101&amp;max-results=100'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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>101</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8080943375072050381.post-7689904964242413423</id><published>2011-10-31T18:44:00.000-07:00</published><updated>2011-10-31T18:47:47.754-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php mysql extension'/><title type='text'>Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15</title><content type='html'>vi  /etc/ld.so.conf.d/mysql-x86_64.conf&lt;br /&gt;    /usr/lib64/mysql&lt;br /&gt;&lt;br /&gt;&lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=176353"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=176353&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7689904964242413423?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7689904964242413423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2011/10/unable-to-load-dynamic-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7689904964242413423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7689904964242413423'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2011/10/unable-to-load-dynamic-library.html' title='Unable to load dynamic library &apos;/usr/lib64/php/modules/mysql.so&apos; - libmysqlclient.so.15'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5006835108727991534</id><published>2011-04-12T05:51:00.000-07:00</published><updated>2011-04-12T05:53:49.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='doctrine'/><title type='text'>fix exception Unknown relation alias Translation in Doctrine</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception 'Doctrine_Table_Exception' with message 'Unknown relation alias Translation' in&lt;span class="Apple-converted-space"&gt;&lt;br /&gt;&lt;br /&gt;method:&lt;br /&gt;rm model/*Translation*&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5006835108727991534?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5006835108727991534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2011/04/fix-exception-unknown-relation-alias.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5006835108727991534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5006835108727991534'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2011/04/fix-exception-unknown-relation-alias.html' title='fix exception Unknown relation alias Translation in Doctrine'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8504592538716112449</id><published>2011-02-26T21:48:00.000-08:00</published><updated>2011-02-26T22:48:23.596-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><title type='text'>download directory by ftp</title><content type='html'>wget -m -rt10 ftp://user:pass@somehost/x/y/z&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8504592538716112449?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8504592538716112449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2011/02/download-directory-by-ftp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8504592538716112449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8504592538716112449'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2011/02/download-directory-by-ftp.html' title='download directory by ftp'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6030571661192717429</id><published>2010-06-23T21:11:00.000-07:00</published><updated>2010-06-24T01:08:18.569-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eAccelerator'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>eAccelerator  install</title><content type='html'>wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.zip&lt;br /&gt;or&lt;br /&gt;wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.zip&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif; font-size: 13px;"&gt;&lt;pre class="wiki" style="border: 1px solid rgb(215, 215, 215); margin: 1em 1.75em; padding: 0.25em; overflow: auto; background-color: rgb(247, 247, 247);"&gt;phpize&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt; cp eaccelerator.ini /etc/php.d/&lt;br /&gt;vi /etc/php.d/eaccelerator.ini&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif; font-size: 13px;"&gt;&lt;pre class="wiki" style="border: 1px solid rgb(215, 215, 215); margin: 1em 1.75em; padding: 0.25em; overflow: auto; background-color: rgb(247, 247, 247);"&gt;mkdir /tmp/eaccelerator&lt;br /&gt;chmod 0777 /tmp/eaccelerator&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6030571661192717429?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6030571661192717429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2010/06/eaccelerator-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6030571661192717429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6030571661192717429'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2010/06/eaccelerator-install.html' title='eAccelerator  install'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7130056736310429869</id><published>2010-05-29T09:19:00.000-07:00</published><updated>2010-05-29T09:20:35.411-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php configure setup install'/><title type='text'>php 5.2.13 configure sample</title><content type='html'>./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --program-suffix=_5.2.13 --prefix=/home/setup/usr --exec-prefix=/home/setup/usr --bindir=/home/setup/usr/bin --sbindir=/home/setup/usr/sbin --sysconfdir=/home/setup/etc --datadir=/home/setup/usr/share --includedir=/home/setup/usr/include --libdir=/home/setup/usr/lib --libexecdir=/home/setup/usr/libexec --localstatedir=/home/setup/var --sharedstatedir=/home/setup/usr/com --mandir=/home/setup/usr/share/man --infodir=/home/setup/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/home/setup/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --with-mime-magic=/usr/share/file/magic.mime --without-sqlite  --with-system-tzdata  --without-mysql --without-gd --without-odbc --disable-dba --without-unixODBC --disable-pdo --with-xml --enable-soap&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7130056736310429869?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7130056736310429869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2010/05/php-5213-configure-sample.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7130056736310429869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7130056736310429869'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2010/05/php-5213-configure-sample.html' title='php 5.2.13 configure sample'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6222718093848712352</id><published>2010-05-11T20:29:00.000-07:00</published><updated>2010-05-11T20:30:37.279-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mail queue'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><title type='text'>clear sendmail queue</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande',Verdana,Arial,sans-serif; font-size: 12px; line-height: 16px; text-align: justify;"&gt;&lt;p style="font-size: 1.05em;"&gt;If you ever felt the need of flushing the sendmail queue then this post will be handy to you.&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;If u r worried about sendmail pending mail flush do the following 2 things.&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;1) manually method –&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;delete /var/spool/mail/*.* files in this dir –&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;delete /var/mqueue/*.* files&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;delete /var/spool/mqueue/*.* files&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;then check if all mail gone using mailq command. all mail will be deleted.&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;2) using command:&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;use simple command sendmail -v -q in root prompt. it will flush all pending mails. rest to confirm u can run mailq command if all are really gone !!….&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;3) if u want perticular domain or user or recepitience mail to delete use this command&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;sendmail -qS -v test.com it will delete all mail from *@test.com&lt;/p&gt;&lt;p style="font-size: 1.05em;"&gt;sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail….&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6222718093848712352?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6222718093848712352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2010/05/clear-sendmail-queue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6222718093848712352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6222718093848712352'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2010/05/clear-sendmail-queue.html' title='clear sendmail queue'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5339850145298380500</id><published>2010-01-19T09:23:00.000-08:00</published><updated>2010-01-19T09:25:24.181-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='optimial'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>mysql performance optimization -- add filter</title><content type='html'>SELECT id&lt;br /&gt;FROM question&lt;br /&gt;WHERE id &lt;&gt; 8668&lt;br /&gt;AND deleted=0&lt;br /&gt;AND status = 'resolved'&lt;br /&gt;ORDER BY created_at DESC&lt;br /&gt;limit 0,10;&lt;br /&gt;&lt;br /&gt;43814 lines&lt;br /&gt;0.26s&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT id&lt;br /&gt;FROM question&lt;br /&gt;WHERE id &lt;&gt; 8668&lt;br /&gt;AND deleted=0&lt;br /&gt;AND status = 'resolved'&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;AND created_at &gt; '2010-01-18'&lt;/span&gt;&lt;br /&gt;ORDER BY created_at DESC&lt;br /&gt;limit 0,10;&lt;br /&gt;&lt;br /&gt;40 lines&lt;br /&gt;0.01s&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5339850145298380500?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5339850145298380500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2010/01/mysql-performance-optimization-add.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5339850145298380500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5339850145298380500'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2010/01/mysql-performance-optimization-add.html' title='mysql performance optimization -- add filter'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-235516257463129620</id><published>2009-10-17T19:32:00.001-07:00</published><updated>2009-10-17T19:32:33.956-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mail queue'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><title type='text'>clear sendmail mail queue</title><content type='html'>rm -f /var/spool/mqueue/*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-235516257463129620?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/235516257463129620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/clear-sendmail-mail-queue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/235516257463129620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/235516257463129620'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/clear-sendmail-mail-queue.html' title='clear sendmail mail queue'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-39679227596048395</id><published>2009-10-16T23:02:00.000-07:00</published><updated>2010-04-02T03:41:22.845-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='memcache'/><title type='text'>php memcache</title><content type='html'>1. install memcached&lt;br /&gt;&lt;br /&gt;wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;br /&gt;rpm --install rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;yum install --enablerepo=rpmforge memcached&lt;br /&gt;&lt;br /&gt;2. download memcache.php&lt;br /&gt;wget http://livebookmark.net/memcachephp/memcachephp.zip&lt;br /&gt;&lt;br /&gt;3. start memcache&lt;br /&gt;&lt;br /&gt;service memcached restart&lt;br /&gt;/usr/local/bin/memcached -d -u root -m 512&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://www.howtoforge.com/php_memcache_centos5.0&lt;br /&gt;http://www.nioxiao.com/php-memcached&lt;br /&gt;http://www.ibm.com/developerworks/cn/opensource/os-php-fastapps3/index.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-39679227596048395?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/39679227596048395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/php-memcache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/39679227596048395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/39679227596048395'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/php-memcache.html' title='php memcache'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8593112460468203724</id><published>2009-10-11T22:25:00.000-07:00</published><updated>2009-10-11T22:28:54.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><title type='text'>smtp receive mail error</title><content type='html'>ERROR: &lt;br /&gt;(reason: 553 5.3.5 system config error)&lt;br /&gt;config error: mail loops back to me (MX problem?)&lt;br /&gt;554 5.3.5 Local configuration error&lt;br /&gt;Diagnostic-Code: SMTP; 553 5.3.5 system config error&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;If it is Sendmail that you're using, then you should be able to just edit the /etc/mail/local-host-names file and add your domain names that the MTA should recognize as being its self.&lt;br /&gt;&lt;br /&gt;REFERENCE:&lt;br /&gt;http://www.webdeveloper.com/forum/showthread.php?t=173882&lt;br /&gt;open webmail&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8593112460468203724?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8593112460468203724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/smtp-receive-mail-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8593112460468203724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8593112460468203724'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/10/smtp-receive-mail-error.html' title='smtp receive mail error'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3760608490166479658</id><published>2009-09-17T12:11:00.000-07:00</published><updated>2009-09-17T12:12:05.317-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='netstat'/><title type='text'>check network listen and connect</title><content type='html'>netstat -anp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3760608490166479658?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3760608490166479658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/check-network-listen-and-connect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3760608490166479658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3760608490166479658'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/check-network-listen-and-connect.html' title='check network listen and connect'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8249000754675253117</id><published>2009-09-17T00:11:00.000-07:00</published><updated>2009-09-25T14:44:08.182-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><category scheme='http://www.blogger.com/atom/ns#' term='mail server'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><title type='text'>config smtp server using sendmail</title><content type='html'>service saslauthd  restart&lt;br /&gt;service sendmail restart&lt;br /&gt;&lt;br /&gt;PHPMailer&lt;br /&gt;http://sourceforge.net/projects/phpmailer/files/&lt;br /&gt;&lt;br /&gt;redhat下的sendmail+smtp 的配置&lt;br /&gt;http://www.myfaq.com.cn/2005September/2005-09-13/198608.html&lt;br /&gt;&lt;br /&gt;用Sendmail配置你的第一台e-mail服务器&lt;br /&gt;http://www.5dmail.net/html/2004-10-26/20041026133839.htm&lt;br /&gt;&lt;br /&gt;Configuring Linux Mail Servers&lt;br /&gt;http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8249000754675253117?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8249000754675253117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/config-smtp-server-using-sendmail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8249000754675253117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8249000754675253117'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/config-smtp-server-using-sendmail.html' title='config smtp server using sendmail'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1514908919136603086</id><published>2009-09-13T19:08:00.000-07:00</published><updated>2009-09-13T19:13:47.313-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nokia'/><category scheme='http://www.blogger.com/atom/ns#' term='Chinese Font'/><category scheme='http://www.blogger.com/atom/ns#' term='E75'/><category scheme='http://www.blogger.com/atom/ns#' term='phone'/><title type='text'>setup Chinese Font in Nokia E75</title><content type='html'>1. get a cer file and "DOSPY SignTool v2.2.9.0627.exe" from http://cer.dospy.com/&lt;br /&gt;2. get FontRouter.LT.for.v9.Build20071109.unsigned.sis&lt;br /&gt;3. use the cer file sign FontRouter get Administrator_Signed_FontRouter.LT.for.v9.Build20071109.sisx&lt;br /&gt;4. setup FontRouter on E75&lt;br /&gt;5. copy Simsun Nina ZL by Loname.ttf to E:/data/fonts&lt;br /&gt;6. restart E75&lt;br /&gt;&lt;br /&gt;http://www.mitbbs.com/clubarticle/smartphone/30994727_0.html&lt;br /&gt;http://www.dospy.com/bbs/thread-4550277-1-1.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1514908919136603086?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1514908919136603086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/setup-chinese-font-in-nokia-e75.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1514908919136603086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1514908919136603086'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/setup-chinese-font-in-nokia-e75.html' title='setup Chinese Font in Nokia E75'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3597787635353339278</id><published>2009-09-10T19:49:00.000-07:00</published><updated>2009-09-10T19:52:54.513-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='innerHTML'/><category scheme='http://www.blogger.com/atom/ns#' term='div'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='createElement'/><category scheme='http://www.blogger.com/atom/ns#' term='p'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>createElement('div').innerHTML</title><content type='html'>function fnGetId(){&lt;br /&gt;    var aa = document.getElementById('aa');&lt;br /&gt;    alert(aa.innerHTML);&lt;br /&gt;    var bb = document.createElement('div');&lt;br /&gt;    bb.innerHTML = '&lt;div&gt;bb&lt;/div&gt;';&lt;br /&gt;    aa.insertBefore(bb, aa.firstChild);&lt;br /&gt;    alert(aa.innerHTML);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;to easy use element.innerHTML, you should document.createElement('div'), but not document.createElement('p');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3597787635353339278?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3597787635353339278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/createelementdivinnerhtml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3597787635353339278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3597787635353339278'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/09/createelementdivinnerhtml.html' title='createElement(&apos;div&apos;).innerHTML'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5433987960439628448</id><published>2009-08-13T21:11:00.000-07:00</published><updated>2009-08-13T21:13:45.851-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simics'/><category scheme='http://www.blogger.com/atom/ns#' term='license'/><category scheme='http://www.blogger.com/atom/ns#' term='lmgrd'/><title type='text'>license server of simics</title><content type='html'>export LM_LICENSE_FILE=/opt/virtutech/simics-3.0.31/licenses/simics.lic&lt;br /&gt;lmgrd &amp;amp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5433987960439628448?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5433987960439628448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/08/license-server-of-simics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5433987960439628448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5433987960439628448'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/08/license-server-of-simics.html' title='license server of simics'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1385581460542814235</id><published>2009-07-23T12:42:00.000-07:00</published><updated>2009-07-23T12:46:08.726-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='g++'/><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='library'/><category scheme='http://www.blogger.com/atom/ns#' term='link'/><category scheme='http://www.blogger.com/atom/ns#' term='path'/><title type='text'>gcc keep library path information in binary</title><content type='html'>-Wl,-rpath -Wl,/op/gcc-4.2.2/lib&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1385581460542814235?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1385581460542814235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/gcc-keep-library-path-information-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1385581460542814235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1385581460542814235'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/gcc-keep-library-path-information-in.html' title='gcc keep library path information in binary'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3421154212018016545</id><published>2009-07-21T13:33:00.000-07:00</published><updated>2009-07-21T13:35:04.286-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symfony'/><category scheme='http://www.blogger.com/atom/ns#' term='propel'/><category scheme='http://www.blogger.com/atom/ns#' term='custom'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>coustom sql query on propel</title><content type='html'>$dbMap = Propel::getDatabaseMap();&lt;br /&gt;                $con = Propel::getConnection();&lt;br /&gt;                $sql = 'xxx sql query...';&lt;br /&gt;                $stmt = $con-&gt;prepareStatement($sql);&lt;br /&gt;                $rs = $stmt-&gt;executeQuery(ResultSet::FETCHMODE_NUM);&lt;br /&gt;                return XXXPeer::populateObjects($rs);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3421154212018016545?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3421154212018016545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/coustom-sql-query-on-propel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3421154212018016545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3421154212018016545'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/coustom-sql-query-on-propel.html' title='coustom sql query on propel'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1886825274724659465</id><published>2009-07-13T13:20:00.000-07:00</published><updated>2009-07-13T13:21:20.170-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='search engine'/><title type='text'>get google search result</title><content type='html'>http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;$url &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;amp;q=Paris%20Hilton"&lt;/span&gt;&lt;span class="pun"&gt;;&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="com"&gt;// sendRequest&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="com"&gt;// note how referer is set manually&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;$ch &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; curl_init&lt;/span&gt;&lt;span class="pun"&gt;();&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;curl_setopt&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$ch&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; CURLOPT_URL&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; $url&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;curl_setopt&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$ch&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; CURLOPT_RETURNTRANSFER&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="lit"&gt;1&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;curl_setopt&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$ch&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; CURLOPT_REFERER&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;"http://www.mysite.com/index.html"&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;$body &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; curl_exec&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$ch&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;curl_close&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$ch&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="com"&gt;// now, process the JSON string&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;$json &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; json_decode&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;$body&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="com"&gt;// now have some fun with the results...&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1886825274724659465?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1886825274724659465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/get-google-search-result.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1886825274724659465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1886825274724659465'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/get-google-search-result.html' title='get google search result'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6095049229912992841</id><published>2009-07-08T14:21:00.000-07:00</published><updated>2009-07-08T14:22:37.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><title type='text'>sort links on wordpress</title><content type='html'>wp_list_bookmarks($args = '') {&lt;br /&gt;        $defaults = array(&lt;br /&gt;                'orderby' =&gt; 'rating'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Change the orderby parameter in function  wp_list_bookmarks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6095049229912992841?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6095049229912992841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/sort-links-on-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6095049229912992841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6095049229912992841'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/07/sort-links-on-wordpress.html' title='sort links on wordpress'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3008356395025878913</id><published>2009-06-15T11:08:00.000-07:00</published><updated>2009-06-15T11:12:45.691-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='time'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>set time and date in Linux</title><content type='html'>&lt;code&gt;date --set="2 OCT 2006 18:00:00"&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3008356395025878913?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3008356395025878913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/set-time-and-date-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3008356395025878913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3008356395025878913'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/set-time-and-date-in-linux.html' title='set time and date in Linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1586761403390499957</id><published>2009-06-11T13:12:00.000-07:00</published><updated>2009-06-11T13:13:00.252-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='named'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='bind'/><title type='text'>bind &amp; named DNS service</title><content type='html'>http://zh.linuxvirtualserver.org/node/695&lt;br /&gt;http://hi.baidu.com/it0820/blog/item/d37cb7021b7e677f3812bb8e.html&lt;br /&gt;http://blog.csdn.net/orapeasant/archive/2007/09/26/1801395.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1586761403390499957?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1586761403390499957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/bind-named-dns-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1586761403390499957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1586761403390499957'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/bind-named-dns-service.html' title='bind &amp; named DNS service'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8360972536110935963</id><published>2009-06-05T18:07:00.000-07:00</published><updated>2009-06-08T20:05:39.624-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simics'/><category scheme='http://www.blogger.com/atom/ns#' term='simulator'/><category scheme='http://www.blogger.com/atom/ns#' term='SimFlex'/><title type='text'>SimFlex changing for Sparc+Linux</title><content type='html'>/opt/virtutech/flexus-3.0.0/components/DecoupledFeeder/SimicsTracer.cpp&lt;br /&gt;line 389&lt;br /&gt;//DBG_Assert(false);&lt;br /&gt;&lt;br /&gt;/opt/virtutech/flexus-3.0.0/core/simics/mai_api.hpp&lt;br /&gt;line 386&lt;br /&gt;//DBG_Assert(false);&lt;br /&gt;&lt;br /&gt;/opt/virtutech/flexus-3.0.0/core/simics/sparcmmu.cpp  &lt;br /&gt;line 1297&lt;br /&gt;FM_COPY_LIST_FROM_SIMICS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/opt/virtutech/flexus-3.0.0/components/uArch/CoreModel/cycle.cpp&lt;br /&gt;line 1321&lt;br /&gt;//DBG_Assert( getTL() + 1 &lt; 5, ( &lt;&lt; theName &lt;&lt; " Trap when TL == 5.  Processor enters RED_state.  Unsupported." ) );&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8360972536110935963?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8360972536110935963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/simflex-changing-for-sparclinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8360972536110935963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8360972536110935963'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/06/simflex-changing-for-sparclinux.html' title='SimFlex changing for Sparc+Linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4351381239972343751</id><published>2009-05-20T07:51:00.000-07:00</published><updated>2009-05-20T08:21:18.116-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hosts'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>host ip file</title><content type='html'>&lt;p align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:100%;"&gt;&lt;i&gt;Windows      95/98/Me&lt;/i&gt; &lt;b&gt;c:\windows\hosts &lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:100%;"&gt;&lt;i&gt;Windows NT/2000/XP      Pro&lt;/i&gt;  &lt;b&gt;c:\winnt\system32\drivers\etc\hosts&lt;/b&gt; &lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;       &lt;p align="left"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:100%;"&gt;&lt;i&gt;Windows        XP Home&lt;/i&gt; &lt;b&gt;c:\windows\system32\drivers\etc\hosts&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align="left"&gt;Linux (/etc/hosts)&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4351381239972343751?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4351381239972343751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/host-ip-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4351381239972343751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4351381239972343751'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/host-ip-file.html' title='host ip file'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4534141122925651850</id><published>2009-05-19T12:25:00.000-07:00</published><updated>2009-05-19T12:49:57.540-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IP'/><category scheme='http://www.blogger.com/atom/ns#' term='ifconfig'/><title type='text'>create multiple IP for one net card</title><content type='html'>ifconfig eth0:0 xx.xx.xx.xx netmask xx.xx.xx.xx&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://publish.it168.com/2005/0925/20050925041401.shtml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4534141122925651850?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4534141122925651850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/create-multiple-ip-for-one-net-card.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4534141122925651850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4534141122925651850'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/create-multiple-ip-for-one-net-card.html' title='create multiple IP for one net card'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1909178081898110960</id><published>2009-05-18T13:13:00.000-07:00</published><updated>2009-05-18T13:23:36.789-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scsi'/><category scheme='http://www.blogger.com/atom/ns#' term='disk'/><category scheme='http://www.blogger.com/atom/ns#' term='simics'/><title type='text'>create a scsi disk on Simics</title><content type='html'>1. create a image file&lt;br /&gt;craff --decompress -o mydisk.img mydisk.craff&lt;br /&gt;&lt;br /&gt;2. edit machine config file&lt;br /&gt;&lt;br /&gt;$scsi_disk2 = (create-std-scsi-disk scsi_id = 2 size = $disk_size)&lt;br /&gt;&lt;br /&gt;$scsi_bus.connect $scsi_disk2&lt;br /&gt;&lt;br /&gt;@image2 = sim.objects[simenv.scsi_disk2].object_list['sd_image']&lt;br /&gt;@image2.files = [["/mnt/sdb1/simics_image/mydisk.img", simenv.disk_perm, 0, simenv.disk_size]]&lt;br /&gt;&lt;br /&gt;4. create partition on new disk&lt;br /&gt;fdisk /dev/sdb&lt;br /&gt;&lt;br /&gt;5. format new disk&lt;br /&gt;mkfs.ext3 /dev/sdb1&lt;br /&gt;&lt;br /&gt;5. mount new disk&lt;br /&gt;mount /dev/sdb1 /mnt/sdb1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1909178081898110960?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1909178081898110960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/create-scsi-disk-on-simics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1909178081898110960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1909178081898110960'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/create-scsi-disk-on-simics.html' title='create a scsi disk on Simics'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6077567057758539268</id><published>2009-05-07T12:42:00.000-07:00</published><updated>2009-05-07T15:25:51.301-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simics'/><category scheme='http://www.blogger.com/atom/ns#' term='profile'/><category scheme='http://www.blogger.com/atom/ns#' term='cache miss'/><title type='text'>simics profiling cache miss</title><content type='html'>./simics -stall targets/sunfire/walnut-common.simics&lt;br /&gt;&lt;br /&gt;list-components&lt;br /&gt;list-modules&lt;br /&gt;list-objects&lt;br /&gt;&lt;br /&gt;cache_cpu0.add-profiler type = data-read-miss-per-instruction&lt;br /&gt;cache_cpu0.add-profiler type = data-write-miss-per-instruction&lt;br /&gt;&lt;br /&gt;c 10000000&lt;br /&gt;r&lt;br /&gt;&lt;br /&gt;cache_cpu0.statistics&lt;br /&gt;cache_cpu0_prof_data_read_miss_per_instruction.address-profile-data&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!619.entry&lt;br /&gt;http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!640.entry&lt;br /&gt;http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!641.entry&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6077567057758539268?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6077567057758539268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/simics-profiling-cache-miss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6077567057758539268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6077567057758539268'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/simics-profiling-cache-miss.html' title='simics profiling cache miss'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6644640755012297820</id><published>2009-05-05T07:10:00.001-07:00</published><updated>2009-05-05T07:10:51.562-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sitemap.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>submit and update sitemap.xml to Google</title><content type='html'>http://www.google.com/support/webmasters/bin/answer.py?answer=34609&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To resubmit your Sitemap using an HTTP request:&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Issue your request to the following URL: &lt;pre&gt;www.google.com/webmasters/tools/ping?sitemap=sitemap_url&lt;/pre&gt; &lt;p&gt; For example, if your Sitemap is located at http://www.example.com/sitemap.gz, your URL will become: &lt;/p&gt; &lt;pre&gt;www.google.com/webmasters/tools/ping?sitemap=http://www.example.com/sitemap.gz&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.google.com/search?q=url+encode"&gt;URL encode&lt;/a&gt; everything after the /ping?sitemap=:  &lt;pre&gt;www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2Fwww.yoursite.com%2Fsitemap.gz&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Issue the HTTP request using &lt;a href="http://www.google.com/search?q=wget"&gt;wget&lt;/a&gt;, &lt;a href="http://www.google.com/search?q=curl"&gt;curl&lt;/a&gt;, or another mechanism of your choosing.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6644640755012297820?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6644640755012297820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/submit-and-update-sitemapxml-to-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6644640755012297820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6644640755012297820'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/05/submit-and-update-sitemapxml-to-google.html' title='submit and update sitemap.xml to Google'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-78108506742794960</id><published>2009-04-30T14:58:00.000-07:00</published><updated>2009-04-30T14:59:48.836-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='build'/><category scheme='http://www.blogger.com/atom/ns#' term='ant'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='javac'/><category scheme='http://www.blogger.com/atom/ns#' term='tpcw'/><title type='text'>complie tpcw java using gij</title><content type='html'>javac -classpath /root/setup/apache-tomcat-5.5.27/common/lib/servlet-api.jar:/root/setup/tpc-w/src/servlets/ *.java&lt;br /&gt;&lt;br /&gt;&lt;javac srcdir="${srcServDir}" destdir="${buildServDir}" executable="/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/javac" compiler="org.eclipse.jdt.internal.compiler.batch.Main" bootclasspath="/usr/share/java/libgcj-4.1.2.jar" classpath="/usr/share/java/ecj.jar"&gt;&lt;br /&gt;                        &lt;compilerarg line="-source 1.3"/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-78108506742794960?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/78108506742794960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/complie-tpcw-java-using-gij.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/78108506742794960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/78108506742794960'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/complie-tpcw-java-using-gij.html' title='complie tpcw java using gij'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5002349617146143578</id><published>2009-04-30T14:51:00.000-07:00</published><updated>2009-04-30T14:58:05.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='gij'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='gcj'/><category scheme='http://www.blogger.com/atom/ns#' term='jdbc'/><category scheme='http://www.blogger.com/atom/ns#' term='javac'/><title type='text'>gij connect mysql using jdbc</title><content type='html'>please using mysql-connector-java-3.0.17-ga-bin.jar&lt;br /&gt;mysql jdbc driver version 3.1, 5.0, 5.1 all not available.&lt;br /&gt;&lt;br /&gt;java -cp .:/root/setup/mysql-connector-java-3.0.17-ga/mysql-connector-java-3.0.17-ga-bin.jar TPCW_Populate&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; mysql -V&lt;br /&gt;mysql  Ver 14.7 Distrib 4.1.12, for unknown-linux-gnu (sparc) using readline 4.3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;gij --version&lt;br /&gt;java version "1.4.2"&lt;br /&gt;gij (GNU libgcj) version 4.1.2&lt;br /&gt;&lt;br /&gt;Copyright (C) 2006 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions.  There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5002349617146143578?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5002349617146143578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/gij-connect-mysql-using-jdbc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5002349617146143578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5002349617146143578'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/gij-connect-mysql-using-jdbc.html' title='gij connect mysql using jdbc'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3482715455559100358</id><published>2009-04-28T09:49:00.000-07:00</published><updated>2009-06-15T10:41:57.655-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sparc'/><category scheme='http://www.blogger.com/atom/ns#' term='gij'/><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat'/><title type='text'>setup tomcat under sparc linux</title><content type='html'>1. install gcc, g++, gcj, gij 4.1.2&lt;br /&gt;../gcc-4.1.2/configure --prefix=/opt/gcc-4.1.2 --program-suffix=4.1.2 --host=sparc-redhat-linux  --build=sparc-redhat-linux   --target=sparc-redhat-linux&lt;br /&gt;&lt;br /&gt;2. install java compat&lt;br /&gt;&lt;br /&gt;3. export JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0&lt;br /&gt;&lt;br /&gt;4. download apache-tomcat-5.5.27.tar.gz and apache-tomcat-5.5.27-compat.tar.gz&lt;br /&gt;&lt;br /&gt;5. vi bin/setclasspath.sh&lt;br /&gt;_RUNJAVA='/opt/gcc-4.1.2/bin/gij4.1.2'&lt;br /&gt;&lt;br /&gt;6.  ./startup.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3482715455559100358?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3482715455559100358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/setup-tomcat-under-sparc-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3482715455559100358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3482715455559100358'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/setup-tomcat-under-sparc-linux.html' title='setup tomcat under sparc linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6472878871012656565</id><published>2009-04-26T20:48:00.000-07:00</published><updated>2009-04-26T20:49:37.118-07:00</updated><title type='text'>rss feed xml parser</title><content type='html'>http://rssphp.net/&lt;br /&gt;http://www.phpclasses.org/browse/package/3724.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6472878871012656565?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6472878871012656565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/rss-feed-xml-parser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6472878871012656565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6472878871012656565'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/rss-feed-xml-parser.html' title='rss feed xml parser'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8825755190060369484</id><published>2009-04-26T15:45:00.000-07:00</published><updated>2009-04-26T15:50:18.192-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='www'/><category scheme='http://www.blogger.com/atom/ns#' term='301'/><category scheme='http://www.blogger.com/atom/ns#' term='htaccess'/><category scheme='http://www.blogger.com/atom/ns#' term='url redirect'/><title type='text'>URL redirect 301 by .htaccess file</title><content type='html'>&lt;ifmodule&gt;&lt;br /&gt;  RewriteEngine On&lt;br /&gt;&lt;br /&gt;  RewriteCond %{HTTP_HOST} ^francetop.net [NC]&lt;br /&gt;  RewriteRule ^(.*)$ http://www.francetop.net/$1 [L,R=301]&lt;br /&gt;&lt;br /&gt;&lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;Reference&lt;br /&gt;http://www.webweaver.nu/html-tips/web-redirection.shtml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8825755190060369484?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8825755190060369484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/url-redirect-301-by-htaccess-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8825755190060369484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8825755190060369484'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/url-redirect-301-by-htaccess-file.html' title='URL redirect 301 by .htaccess file'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1824043342666832569</id><published>2009-04-23T12:13:00.000-07:00</published><updated>2009-12-26T09:52:40.217-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='slow query'/><title type='text'>mysql slow queries log</title><content type='html'>1. config start slow query log&lt;br /&gt;vi my.cnf&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;set-variable=long_query_time=1&lt;br /&gt;log-slow-queries=/home/www/log/mysql-log-slow-queries.log&lt;br /&gt;&lt;br /&gt;2. restart mysql server&lt;br /&gt;&lt;br /&gt;3. setup mysqlsla&lt;br /&gt;yum install perl-DBI perl-DBD-MySQL perl-DBD-Pg&lt;br /&gt;wget http://hackmysql.com/scripts/mysqlsla&lt;br /&gt;&lt;br /&gt;4. using mysqlsla parse mysql slow query log&lt;br /&gt;&lt;br /&gt;./mysqlsla-2.03/bin/mysqlsla --user xxx --password -lt slow --ex mysql-log-slow-queries.log --socke=/tmp/mysql.sock&lt;br /&gt;&lt;br /&gt;./mysqlsla-1.8-DEBUG --user xxx --password --slow mysql-log-slow-queries.log --socke=/tmp/mysql.sock&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1824043342666832569?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1824043342666832569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/mysql-slow-queries-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1824043342666832569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1824043342666832569'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/mysql-slow-queries-log.html' title='mysql slow queries log'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6130053658636252043</id><published>2009-04-23T12:11:00.000-07:00</published><updated>2009-04-23T12:13:05.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='web server'/><category scheme='http://www.blogger.com/atom/ns#' term='optimial'/><title type='text'>web server performance analysis</title><content type='html'>1. check system load&lt;br /&gt;   w&lt;br /&gt;&lt;br /&gt;2. check cpu utilization&lt;br /&gt;  ps&lt;br /&gt;&lt;br /&gt;3. check memory usage and swap disk usage&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6130053658636252043?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6130053658636252043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/web-server-performance-analysis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6130053658636252043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6130053658636252043'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/web-server-performance-analysis.html' title='web server performance analysis'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5969110772946838212</id><published>2009-04-13T05:47:00.000-07:00</published><updated>2009-04-13T05:49:30.427-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hit'/><category scheme='http://www.blogger.com/atom/ns#' term='eAccelerator'/><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='error_log'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>eAccelerator log</title><content type='html'>eAccelerator will write many log on apache error_log, link this:&lt;br /&gt;&lt;pre&gt;&lt;i&gt;&lt;i&gt;EACCELERATOR hit:"/usr/local/www/xxxx.php"&lt;br /&gt;&lt;br /&gt;To avoid this,&lt;br /&gt;add option &lt;/i&gt;&lt;/i&gt;&lt;br /&gt;eaccelerator.debug="0"&lt;br /&gt;to your server php.ini configure.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5969110772946838212?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5969110772946838212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/eaccelerator-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5969110772946838212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5969110772946838212'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/eaccelerator-log.html' title='eAccelerator log'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7498854319027424998</id><published>2009-04-10T12:15:00.000-07:00</published><updated>2009-04-10T12:16:07.076-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='301'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='url redirect'/><title type='text'>php 301 redirect</title><content type='html'>&lt;pre&gt;header ('HTTP/1.1 301 Moved Permanently');&lt;br /&gt;header ('Location: '.$location);&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7498854319027424998?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7498854319027424998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/php-301-redirect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7498854319027424998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7498854319027424998'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/php-301-redirect.html' title='php 301 redirect'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-482724914062627865</id><published>2009-04-10T11:56:00.000-07:00</published><updated>2009-04-10T11:57:39.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='status code'/><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='url redirect'/><title type='text'>HTTP Status Code Definitions</title><content type='html'>301 Moved Permanently&lt;br /&gt;&lt;br /&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-482724914062627865?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/482724914062627865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/h-status-code-definitions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/482724914062627865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/482724914062627865'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/h-status-code-definitions.html' title='HTTP Status Code Definitions'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-9106616879967646744</id><published>2009-04-10T11:09:00.000-07:00</published><updated>2009-04-10T11:10:16.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tpcw'/><title type='text'>tpcw</title><content type='html'>homepage&lt;br /&gt;http://localhost:8080/tpcw/TPCW_home_interaction&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-9106616879967646744?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/9106616879967646744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/tpcw.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9106616879967646744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9106616879967646744'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/tpcw.html' title='tpcw'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4807225181994891993</id><published>2009-04-10T07:25:00.000-07:00</published><updated>2009-04-10T07:27:06.043-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='character'/><category scheme='http://www.blogger.com/atom/ns#' term='encoding'/><category scheme='http://www.blogger.com/atom/ns#' term='UTF8'/><category scheme='http://www.blogger.com/atom/ns#' term='Chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Chinese character UTF8 encoding</title><content type='html'>http://theorem.ca/~mvcorks/cgi-bin/unicode.pl.cgi?start=4E00&amp;amp;end=9FFF&lt;br /&gt;http://www.zhouhaihe.com/tool/UTF-8.htm&lt;br /&gt;http://www.dc9.cn/post/85.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4807225181994891993?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4807225181994891993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/chinese-character-utf8-encoding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4807225181994891993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4807225181994891993'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/chinese-character-utf8-encoding.html' title='Chinese character UTF8 encoding'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4648827724389068266</id><published>2009-04-09T13:06:00.000-07:00</published><updated>2009-04-09T13:21:30.477-07:00</updated><title type='text'>ssh</title><content type='html'>problem:&lt;br /&gt;&lt;br /&gt;ssh_exchange_identification: Connection closed by remote host&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check /etc/hosts.allow and /etc/hosts.deny.&lt;br /&gt;/etc/init.d/sshd restart&lt;br /&gt;&lt;br /&gt; /etc/ssh/sshd_config&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4648827724389068266?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4648827724389068266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/ssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4648827724389068266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4648827724389068266'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/ssh.html' title='ssh'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-2641017204475272673</id><published>2009-04-06T12:00:00.000-07:00</published><updated>2009-04-13T14:36:09.652-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simics'/><category scheme='http://www.blogger.com/atom/ns#' term='useage'/><title type='text'>simics usage</title><content type='html'>&lt;ul&gt;&lt;li&gt;start&lt;/li&gt;&lt;/ul&gt;./simics targets/x86-440bx/enterprise-common.simics&lt;br /&gt;continue&lt;br /&gt;&lt;ul&gt;&lt;li&gt;copy file into simics&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;mkisofs -r -o setup.iso ./setup/&lt;br /&gt;new-file-cdrom setup.iso&lt;br /&gt;cd0.insert setup&lt;br /&gt;mkdir /mnt/cdrom&lt;br /&gt;mount /dev/cdrom /mnt/cdrom&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;network&lt;/li&gt;&lt;/ul&gt;connect-real-network 10.10.0.12&lt;br /&gt;list-port-forwarding-setup&lt;br /&gt;connect-real-network-port-in ethernet-link=link0 target-ip=10.10.0.12 target-port=8080 host-port=4880 -tcp&lt;br /&gt;&lt;pre&gt;ifconfig eth0 10.10.0.12 netmask 255.255.255.0 broadcast 10.10.0.255&lt;br /&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;setup new OS&lt;/li&gt;&lt;/ul&gt;./simics targets/sunfire/walnut-cd-install1.simics&lt;br /&gt;new-file-cdrom install-sparc64-universal-2008.0.iso&lt;br /&gt;cd0.insert install-sparc64-universal-2008&lt;br /&gt;save-persistent-state install-phase1.state&lt;br /&gt;&lt;br /&gt;./simics targets/sunfire/walnut-cd-install2.simics&lt;br /&gt;load-persistent-state install-phase1.state&lt;br /&gt;save-persistent-state install-phase2.state&lt;br /&gt;&lt;br /&gt;./simics targets/sunfire/walnut-common.simics&lt;br /&gt;&lt;br /&gt;bin/craff walnut-install.disk&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-2641017204475272673?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/2641017204475272673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/simics-usage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2641017204475272673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2641017204475272673'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/simics-usage.html' title='simics usage'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4455626695709853338</id><published>2009-04-06T11:20:00.000-07:00</published><updated>2009-04-06T12:10:42.271-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><category scheme='http://www.blogger.com/atom/ns#' term='mail'/><title type='text'>send mail in linux server</title><content type='html'>&lt;ul&gt;&lt;li&gt;send a mail&lt;/li&gt;&lt;/ul&gt;mail -v -s "test of my mail on fr" xxx@gmail.com&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;start mail service&lt;/li&gt;&lt;/ul&gt;service sendmail start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4455626695709853338?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4455626695709853338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/send-mail-in-linux-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4455626695709853338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4455626695709853338'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/send-mail-in-linux-server.html' title='send mail in linux server'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5413532479938400320</id><published>2009-04-05T10:39:00.000-07:00</published><updated>2009-04-10T11:47:46.226-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='x11'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='display'/><category scheme='http://www.blogger.com/atom/ns#' term='client'/><title type='text'>forward ssh server's graphic display to client</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;on client:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;vi /etc/ssh/ssh_config&lt;br /&gt;&lt;br /&gt;ForwardX11 yes&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;test&lt;/li&gt;&lt;/ul&gt; firefox -no-remote&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;Reference:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;http://www.ixdba.net/article/29/2026.html&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5413532479938400320?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5413532479938400320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/forward-ssh-servers-graphic-display-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5413532479938400320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5413532479938400320'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/forward-ssh-servers-graphic-display-to.html' title='forward ssh server&apos;s graphic display to client'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3493350702904587041</id><published>2009-04-05T09:41:00.000-07:00</published><updated>2009-04-05T09:45:04.330-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='search engine'/><title type='text'>website seo</title><content type='html'>&lt;span style="color: rgb(0, 0, 0); font-family: MS Shell Dlg;"&gt;http://www.seomoz.org&lt;br /&gt;http://www.seomoz.org/blog/the-beginners-checklist-for-small-business-seo&lt;br /&gt;http://www.seomoz.org/blog/the-beginners-checklist-for-learning-seo&lt;br /&gt;http://www.seomoz.org/tools&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3493350702904587041?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3493350702904587041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/website-seo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3493350702904587041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3493350702904587041'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/website-seo.html' title='website seo'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7080894252132927593</id><published>2009-04-04T13:52:00.000-07:00</published><updated>2009-04-19T15:03:20.113-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='svnserve'/><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>SVN server configure</title><content type='html'>0. setup svn&lt;br /&gt;mkdir svn_dir&lt;br /&gt;cd svn_dir&lt;br /&gt;svnadmin create xxx_dir&lt;br /&gt;svn import . file:///xxx_dir/&lt;br /&gt;svnserve -d -r svn_dir&lt;br /&gt;svn co svn://domain/xxx_dir/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. not allow anonymous access&lt;br /&gt;vi conf/svnserve.conf&lt;br /&gt;anon-access = none&lt;br /&gt;auth-access = write&lt;br /&gt;password-db = passwd&lt;br /&gt;&lt;br /&gt;2. not cache password&lt;br /&gt;vi ~/.subversion/config&lt;br /&gt;store-passwords = no&lt;br /&gt;store-auth-creds = no&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://www.subversion.org.cn/svnbook/1.4/index.html&lt;br /&gt;http://www.subversion.org.cn/?action-viewnews-itemid-1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7080894252132927593?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7080894252132927593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/svn-server-configure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7080894252132927593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7080894252132927593'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/svn-server-configure.html' title='SVN server configure'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4055652105212248812</id><published>2009-04-04T11:16:00.001-07:00</published><updated>2009-04-04T11:16:58.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='timer'/><category scheme='http://www.blogger.com/atom/ns#' term='crond'/><category scheme='http://www.blogger.com/atom/ns#' term='task'/><category scheme='http://www.blogger.com/atom/ns#' term='cron'/><title type='text'>Cron timer in Linux</title><content type='html'>timer task in Linux&lt;br /&gt;http://cn.tech.yahoo.com/050531/55/26zxf.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4055652105212248812?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4055652105212248812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/cron-timer-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4055652105212248812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4055652105212248812'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/cron-timer-in-linux.html' title='Cron timer in Linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4346639188676540117</id><published>2009-04-02T12:00:00.000-07:00</published><updated>2009-04-02T12:02:03.703-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jdk'/><category scheme='http://www.blogger.com/atom/ns#' term='jre'/><title type='text'>setup JDK JRE</title><content type='html'>http://java.sun.com/javase/6/webnotes/install/jdk/install-linux.html&lt;br /&gt;&lt;br /&gt;get a setup file such as jdk-6u12-linux-i586.bin&lt;br /&gt;run it directly&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4346639188676540117?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4346639188676540117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/setup-jdk-jre.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4346639188676540117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4346639188676540117'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/setup-jdk-jre.html' title='setup JDK JRE'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5120751838888459288</id><published>2009-04-02T11:57:00.000-07:00</published><updated>2009-04-06T17:25:35.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lynx'/><category scheme='http://www.blogger.com/atom/ns#' term='character'/><category scheme='http://www.blogger.com/atom/ns#' term='console'/><category scheme='http://www.blogger.com/atom/ns#' term='browser'/><title type='text'>character web browser: lynx</title><content type='html'>get it from http://lynx.isc.org/current/index.html&lt;br /&gt;very cool when you on a console&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;cp lynx.cfg /usr/local/etc/&lt;br /&gt;cp samples/lynx.lss /usr/local/etc/&lt;br /&gt;./lynx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5120751838888459288?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5120751838888459288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/character-web-browser-lynx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5120751838888459288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5120751838888459288'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/04/character-web-browser-lynx.html' title='character web browser: lynx'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1948779027682736666</id><published>2009-03-30T16:56:00.000-07:00</published><updated>2009-03-30T16:57:48.336-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='protocol'/><category scheme='http://www.blogger.com/atom/ns#' term='msn'/><category scheme='http://www.blogger.com/atom/ns#' term='bot'/><category scheme='http://www.blogger.com/atom/ns#' term='messager'/><title type='text'>msn protocol and bot</title><content type='html'>http://www.hypothetic.org/docs/msn/notification/authentication.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1948779027682736666?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1948779027682736666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/msn-protocol-and-bot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1948779027682736666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1948779027682736666'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/msn-protocol-and-bot.html' title='msn protocol and bot'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7002165424860707415</id><published>2009-03-27T13:39:00.000-07:00</published><updated>2010-03-28T22:28:14.248-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web server'/><category scheme='http://www.blogger.com/atom/ns#' term='gzip'/><category scheme='http://www.blogger.com/atom/ns#' term='compress'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>serve gzip compressed content using apache 2</title><content type='html'>&lt;ul&gt;&lt;li&gt;enable mod_deflate in httpd.conf&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;edit .htaccess file&lt;/li&gt;&lt;/ul&gt;&lt;code&gt;AddOutputFilterByType DEFLATE text/&lt;a href="http://www.sitepoint.com/glossary.php?q=H#term_75" class="glossary" title="HTML stands for HyperText Markup Language."&gt;html&lt;/a&gt; text/&lt;a href="http://www.sitepoint.com/glossary.php?q=C#term_8" class="glossary" title="CSS, or Cascading Style Sheets, comprise styling and formatting rules that are applied to Web documents."&gt;css&lt;/a&gt; text/plain text/&lt;a href="http://www.sitepoint.com/glossary.php?q=X#term_3" class="glossary" title="eXtensible Markup Language, or XML, is a text markup language designed for the easy sharing of data."&gt;xml&lt;/a&gt; application/x-&lt;a href="http://www.sitepoint.com/glossary.php?q=J#term_9" class="glossary" title="JavaScript is a Web scripting language most commonly used for client-side applications."&gt;javascript&lt;/a&gt; application/json&lt;br /&gt;Header append Vary Accept-Encoding&lt;br /&gt;&lt;/code&gt;&lt;ul&gt;&lt;li&gt;check&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;http://www.port80software.com/tools/compresscheck.asp&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7002165424860707415?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7002165424860707415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/serve-gzip-compressed-content-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7002165424860707415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7002165424860707415'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/serve-gzip-compressed-content-using.html' title='serve gzip compressed content using apache 2'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4489210787367388938</id><published>2009-03-26T06:52:00.000-07:00</published><updated>2009-03-26T06:54:00.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='nginx'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>nginx</title><content type='html'>&lt;h4&gt;&lt;a href="http://blog.s135.com/nginx_php_v4/"&gt;Nginx 0.7.x + PHP 5.2.8（FastCGI）搭建胜过Apache十倍的Web服务器（第4版） http://blog.s135.com/post/366/&lt;br /&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4489210787367388938?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4489210787367388938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/nginx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4489210787367388938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4489210787367388938'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/nginx.html' title='nginx'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7467637594947310896</id><published>2009-03-19T07:24:00.000-07:00</published><updated>2009-03-19T07:50:39.610-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='postgres'/><category scheme='http://www.blogger.com/atom/ns#' term='postgresql'/><title type='text'>setup Postgresql</title><content type='html'>1. download Postgresql (postgresql-8.3.7.tar.gz) from http://www.postgresql.org/download/&lt;br /&gt;&lt;br /&gt;2. ./configure --prefix=&lt;install_dir&gt;&lt;br /&gt;&lt;br /&gt;3. gmake&lt;br /&gt;&lt;br /&gt;4. gmake install&lt;br /&gt;&lt;br /&gt;5. adduser postgres&lt;br /&gt;&lt;br /&gt;6. mkdir &lt;install_dir&gt;/data&lt;br /&gt;&lt;br /&gt;7. chown postgres &lt;install_dir&gt;/data&lt;br /&gt;&lt;br /&gt;8. initdb -D &lt;install_dir&gt;/data&lt;br /&gt;&lt;br /&gt;9. export PATH=$PATH:&lt;install_dir&gt;/bin/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7467637594947310896?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7467637594947310896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/setup-postgresql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7467637594947310896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7467637594947310896'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/setup-postgresql.html' title='setup Postgresql'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3838837840242453686</id><published>2009-03-19T07:12:00.000-07:00</published><updated>2009-03-19T07:19:03.128-07:00</updated><title type='text'>setup axis2</title><content type='html'>1. download axis2 from http://ws.apache.org/axis2/&lt;br /&gt;2. unzip axis2-std-0.95-bin.zip&lt;br /&gt;3. jar -xvf ../axis2.war&lt;br /&gt;4. export AXIS2_HOME=....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3838837840242453686?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3838837840242453686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/setup-axis2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3838837840242453686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3838837840242453686'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/setup-axis2.html' title='setup axis2'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7643636981987188741</id><published>2009-03-19T06:57:00.000-07:00</published><updated>2009-03-19T07:21:42.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='deploy'/><category scheme='http://www.blogger.com/atom/ns#' term='geronimo'/><category scheme='http://www.blogger.com/atom/ns#' term='application server'/><title type='text'>Geronimo setup</title><content type='html'>1. download Geronimo (Geronimo 1.0 with Tomcat) from http://geronimo.apache.org/&lt;br /&gt;&lt;br /&gt;2. follow the steps in Quick start&lt;br /&gt;&lt;br /&gt;3. start the server&lt;br /&gt;  java -jar server.jar&lt;br /&gt;  then you can see Geronimo's welcome page in http://localhost:8080/&lt;br /&gt;&lt;br /&gt;4. mkdir webapps as &lt;app_home&gt;&lt;br /&gt;&lt;br /&gt;5. Deploy an application&lt;br /&gt;  java -jar deployer.jar --user system --password manager deploy &lt;app_home&gt;/HelloWorld.war&lt;br /&gt;&lt;br /&gt;6. manage applications&lt;br /&gt;  http://localhost:8080/console&lt;br /&gt;  default user: system:manager&lt;br /&gt;&lt;br /&gt;7. export GERONIMO_HOME=...&lt;br /&gt;&lt;/app_home&gt;&lt;/app_home&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7643636981987188741?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7643636981987188741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/geronimo-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7643636981987188741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7643636981987188741'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/geronimo-setup.html' title='Geronimo setup'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7364635847592549277</id><published>2009-03-19T06:55:00.000-07:00</published><updated>2009-03-19T08:38:02.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbt'/><category scheme='http://www.blogger.com/atom/ns#' term='osdl'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='benchmark'/><title type='text'>DBT4 setup</title><content type='html'>1. download DBT4 from http://osdldbt.sourceforge.net/&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://xiao-ga.blogspot.com/2009/03/geronimo-setup.html"&gt;setup Germonimo 1.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;a href="http://xiao-ga.blogspot.com/2009/03/setup-axis2.html"&gt;setup Axis2 version 0.95&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href="http://xiao-ga.blogspot.com/2009/03/setup-postgresql.html"&gt;setup Postgresql&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;5. vi scripts/pgsql/pgsql_profile.in&lt;br /&gt;&lt;br /&gt;6. autoreconf --install&lt;br /&gt;&lt;br /&gt;7. ./configure&lt;br /&gt;&lt;br /&gt;8. vi src/Lcg64Rng/build.xml&lt;br /&gt; &lt;property name="classes" value="../../${build}/classes"&gt;&lt;br /&gt;&lt;br /&gt;9. cd src/Lcg64Rng/; ant&lt;br /&gt;&lt;br /&gt;10. vi src/data/build.xml&lt;br /&gt; &lt;property name="classes" value="../../${build}/classes"&gt;&lt;br /&gt;&lt;br /&gt;11. cd src/data/; ant&lt;br /&gt;&lt;br /&gt;12.  vi src/app/build.xml&lt;br /&gt; &lt;property name="classes" value="../../${build}/classes"&gt;&lt;br /&gt;&lt;br /&gt;13. cd src/app/; ant&lt;br /&gt;&lt;br /&gt;14. vi src/driver/build.xml&lt;br /&gt;&lt;br /&gt;15. cd src/driver/; ant&lt;br /&gt;&lt;br /&gt;16. ./scripts/pgsql/build_db.sh -e 1 -g&lt;br /&gt;&lt;br /&gt;17. unzip axis2.war&lt;br /&gt;&lt;br /&gt;18. cp geronimo-1.0/repository/activemq/jars/activemq-core-3.2.1.jar WEB-INF/lib/&lt;br /&gt;&lt;br /&gt;19. cp dbt4-0.5/build/lib/Lcg64Rng.jar WEB-INF/lib/&lt;br /&gt;&lt;br /&gt;20. cp postgresql-8.3-604.jdbc4.jar WEB-INF/lib/&lt;br /&gt;&lt;br /&gt;21. cp dbt4-0.5/build/lib/Dbt4Service.aar WEB-INF/services/&lt;br /&gt;&lt;br /&gt;22. jar cvf ~/axis2.war ./*&lt;br /&gt;&lt;br /&gt;23. java -jar deployer.jar --user system --password manager deploy ~/axis2.war&lt;br /&gt;now you can see dbt4 service from http://localhost:8080/axis2&lt;br /&gt;&lt;br /&gt;24. vi scripts/myjava&lt;br /&gt;JDBC_DRIVER=........./postgresql-8.3-604.jdbc4.jar&lt;br /&gt;&lt;br /&gt;24. ./scripts/run_workload.sh -b 1 -d 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;project basedir="." default="jar"&gt;&lt;br /&gt;&lt;property environment="env"&gt;&lt;br /&gt;&lt;property name="axis2.home" value="${env.AXIS2_HOME}"&gt;&lt;br /&gt;&lt;property name="geronimo.home" value="${env.GERONIMO_HOME}"&gt;&lt;br /&gt;&lt;br /&gt;&lt;property name="project.base.dir" value="."&gt;&lt;br /&gt;&lt;property name="src" value="${project.base.dir}/src"&gt;&lt;br /&gt;&lt;property name="build" value="${project.base.dir}/build"&gt;&lt;br /&gt;&lt;property name="classes" value="../../${build}/classes"&gt;&lt;br /&gt;&lt;property name="lib" value="../../${build}/lib"&gt;&lt;br /&gt;&lt;property name="rng.jarfile" value="${lib}/Lcg64Rng.jar"&gt;&lt;br /&gt;&lt;property name="jarfile" value="${lib}/dbt4-driver.jar"&gt;&lt;br /&gt;&lt;br /&gt;&lt;path id="class.path"&gt;&lt;br /&gt; &lt;fileset dir="${geronimo.home}/repository/commons-cli"&gt;&lt;br /&gt;   &lt;include name="jars/*.jar"&gt;&lt;br /&gt; &lt;/include&gt;&lt;br /&gt; &lt;fileset dir="${lib}"&gt;&lt;br /&gt;   &lt;include name="*.jar"&gt;&lt;br /&gt; &lt;/include&gt;&lt;br /&gt; &lt;fileset dir="${axis2.home}"&gt;&lt;br /&gt;   &lt;include name="lib/*.jar"&gt;&lt;br /&gt; &lt;/include&gt;&lt;br /&gt;&lt;/fileset&gt;&lt;br /&gt;&lt;br /&gt;&lt;target name="init"&gt;&lt;br /&gt; &lt;mkdir dir="${build}"&gt;&lt;br /&gt; &lt;mkdir dir="${classes}"&gt;&lt;br /&gt; &lt;mkdir dir="${lib}"&gt;&lt;br /&gt;&lt;/mkdir&gt;&lt;br /&gt;&lt;br /&gt;&lt;target name="compile" depends="init"&gt;&lt;br /&gt; &lt;javac debug="on" destdir="${classes}" srcdir="${src}"&gt;&lt;br /&gt;   &lt;compilerarg value="-Xlint:unchecked"&gt;&lt;br /&gt;   &lt;classpath location="${rng.jarfile}"&gt;&lt;br /&gt;   &lt;classpath refid="class.path"&gt;&lt;br /&gt; &lt;/classpath&gt;&lt;br /&gt;&lt;/classpath&gt;&lt;br /&gt;&lt;br /&gt;&lt;target name="jar" depends="compile"&gt;&lt;br /&gt; &lt;jar basedir="${classes}" destfile="${jarfile}"&gt;&lt;br /&gt;&lt;/jar&gt;&lt;br /&gt;&lt;br /&gt;&lt;target name="clean"&gt;&lt;br /&gt; &lt;delete dir="${build}"&gt;&lt;br /&gt; &lt;delete file="${jarfile}"&gt;&lt;br /&gt;&lt;/delete&gt;&lt;br /&gt;&lt;br /&gt;&lt;/delete&gt;&lt;/target&gt;&lt;/target&gt;&lt;/compilerarg&gt;&lt;/javac&gt;&lt;/target&gt;&lt;/mkdir&gt;&lt;/mkdir&gt;&lt;/target&gt;&lt;/fileset&gt;&lt;/fileset&gt;&lt;/path&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;/project&gt;&lt;/property&gt;&lt;/property&gt;&lt;/property&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7364635847592549277?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7364635847592549277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/dbt4-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7364635847592549277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7364635847592549277'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/dbt4-setup.html' title='DBT4 setup'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5593386910449874570</id><published>2009-03-09T08:17:00.000-07:00</published><updated>2010-01-21T23:02:27.170-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='my.cnf'/><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='optimization'/><title type='text'>mysql config</title><content type='html'>connect number&lt;br /&gt;&lt;br /&gt;add to my.cnf mysqld part&lt;br /&gt;&lt;br /&gt;max_connections=250&lt;br /&gt;tmp_table_size=67108864&lt;br /&gt;sort_buffer_size=4194288&lt;br /&gt;table_cache=128&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&lt;br /&gt;show variables; to query config data for mysql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5593386910449874570?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5593386910449874570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/mysql-config.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5593386910449874570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5593386910449874570'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/mysql-config.html' title='mysql config'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3535395270667168835</id><published>2009-03-07T14:15:00.000-08:00</published><updated>2009-03-07T14:16:43.956-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='build.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='option'/><category scheme='http://www.blogger.com/atom/ns#' term='flag'/><category scheme='http://www.blogger.com/atom/ns#' term='arg'/><category scheme='http://www.blogger.com/atom/ns#' term='ant'/><category scheme='http://www.blogger.com/atom/ns#' term='javac'/><title type='text'>build.xml java</title><content type='html'>&lt;javac srcdir="${srcServDir}" destdir="${buildServDir}"&gt;&lt;br /&gt;                        &lt;compilerarg line="-source 1.3"/&gt;&lt;br /&gt;                        &lt;classpath&gt;&lt;br /&gt;                                &lt;pathelement path="${classpath}"/&gt;&lt;br /&gt;                                &lt;pathelement path="${srcServDir}"/&gt;&lt;br /&gt;                                &lt;pathelement location="${cpServ}"/&gt;&lt;br /&gt;                        &lt;/classpath&gt;&lt;br /&gt;                &lt;/javac&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3535395270667168835?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3535395270667168835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/buildxml-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3535395270667168835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3535395270667168835'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/buildxml-java.html' title='build.xml java'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7242353358442982199</id><published>2009-03-07T13:18:00.000-08:00</published><updated>2010-04-05T22:48:32.431-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><title type='text'>mysql operation</title><content type='html'>/usr/bin/mysqladmin -u root password 'new-password'&lt;br /&gt;&lt;br /&gt;GRANT ALL ON *.* TO 'myuser'@'somehost' IDENTIFIED BY 'mypass';&lt;br /&gt;&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO msentissi@"192.168.3.10" identified by&lt;br /&gt;"yourpassword";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7242353358442982199?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7242353358442982199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/mysql-operation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7242353358442982199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7242353358442982199'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/mysql-operation.html' title='mysql operation'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3344202877589679686</id><published>2009-03-06T14:40:00.001-08:00</published><updated>2009-03-06T14:40:17.027-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>apache log</title><content type='html'>log format&lt;br /&gt;http://httpd.apache.org/docs/2.2/mod/mod_log_config.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3344202877589679686?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3344202877589679686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/apache-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3344202877589679686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3344202877589679686'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/apache-log.html' title='apache log'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-2854575196143703574</id><published>2009-03-06T12:21:00.000-08:00</published><updated>2009-03-06T12:53:30.101-08:00</updated><title type='text'>apache code read</title><content type='html'>httpd.h&lt;br /&gt;struct request_rec&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mod_log_config.c&lt;br /&gt;&lt;br /&gt;static const char *process_item(request_rec *r, request_rec *orig, log_format_item *item)&lt;br /&gt;&lt;br /&gt;log_request_time()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-2854575196143703574?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/2854575196143703574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/apache-code-read.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2854575196143703574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2854575196143703574'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/apache-code-read.html' title='apache code read'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6838623977405547911</id><published>2009-03-06T12:10:00.000-08:00</published><updated>2009-03-06T12:11:52.190-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web server'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='webstone'/><title type='text'>web server measurment tool</title><content type='html'>webstone&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6838623977405547911?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6838623977405547911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/web-server-measurment-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6838623977405547911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6838623977405547911'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/web-server-measurment-tool.html' title='web server measurment tool'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-9042279486307853188</id><published>2009-03-06T12:02:00.000-08:00</published><updated>2009-03-06T12:03:30.024-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='context switch'/><title type='text'>linux context switch number query</title><content type='html'>sar -w 2 5&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-9042279486307853188?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/9042279486307853188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/linux-context-switch-number-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9042279486307853188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9042279486307853188'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/linux-context-switch-number-query.html' title='linux context switch number query'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1137951607668721566</id><published>2009-03-06T11:57:00.000-08:00</published><updated>2009-03-06T11:59:10.429-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='read'/><category scheme='http://www.blogger.com/atom/ns#' term='lxr'/><category scheme='http://www.blogger.com/atom/ns#' term='source code'/><title type='text'>lxr</title><content type='html'>/tmp/lxr/bin/genxref  /www/lxr/source/httpd-2.2.11&lt;br /&gt;glimpseindex -n -o -H /www/lxr/source/httpd-2.2.11 www/lxr/source/httpd-2.2.11&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1137951607668721566?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1137951607668721566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/lxr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1137951607668721566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1137951607668721566'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/03/lxr.html' title='lxr'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3151463208383371643</id><published>2009-02-27T08:45:00.000-08:00</published><updated>2009-03-27T07:35:50.621-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='optimial'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='speedup'/><title type='text'>website speed up</title><content type='html'>&lt;ul&gt;&lt;li&gt;page analysis tool&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;http://www.websiteoptimization.com/services/analyze/&lt;br /&gt;&lt;ul&gt;&lt;li&gt;tutorial&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;http://www.sitepoint.com/article/web-site-optimization-steps/&lt;br /&gt;http://developer.yahoo.com/performance/rules.html&lt;br /&gt;&lt;ul&gt;&lt;li&gt;SEO&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 0, 0); font-family: MS Shell Dlg;"&gt;http://www.seomoz.org&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3151463208383371643?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3151463208383371643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/website-speed-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3151463208383371643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3151463208383371643'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/website-speed-up.html' title='website speed up'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5319579336319552090</id><published>2009-02-25T05:55:00.000-08:00</published><updated>2009-02-25T05:56:07.815-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='robot'/><category scheme='http://www.blogger.com/atom/ns#' term='msn'/><category scheme='http://www.blogger.com/atom/ns#' term='bot'/><title type='text'>msn messager robot</title><content type='html'>http://flumpcakes.co.uk/php/msn-messenger&lt;br /&gt;&lt;br /&gt;http://www.findmysoft.com/scripts/msn_web_messenger_script/&lt;br /&gt;&lt;br /&gt;http://www.phpclasses.org/browse/package/1407.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5319579336319552090?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5319579336319552090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/msn-messager-robot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5319579336319552090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5319579336319552090'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/msn-messager-robot.html' title='msn messager robot'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-574074044953977829</id><published>2009-02-25T05:45:00.000-08:00</published><updated>2009-02-27T17:06:06.500-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='contact list'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><title type='text'>get contact list from email account</title><content type='html'>http://drupal.org/node/297877&lt;br /&gt;&lt;br /&gt;http://forums.pligg.com/modification-tutorials/9637-contact-import-msn-yahoo-gmail-myspace.html&lt;br /&gt;&lt;br /&gt;http://www.e-citizen.com/contacts/libs/&lt;br /&gt;&lt;br /&gt;http://www.dominican.eventsworldwide.net/include/contactgrabber/contacts/libs/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://forums.devarticles.com/php-development-48/import-email-addressess-from-yahoo-gmail-hotmail-86529.html&lt;br /&gt;&lt;br /&gt;http://www.phphulp.nl/php/print/4/1355/0/scripts/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-574074044953977829?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/574074044953977829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/get-contact-list-from-email-account.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/574074044953977829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/574074044953977829'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/get-contact-list-from-email-account.html' title='get contact list from email account'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6129492037221343238</id><published>2009-02-24T06:36:00.000-08:00</published><updated>2009-02-24T06:37:09.197-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symfony'/><category scheme='http://www.blogger.com/atom/ns#' term='culture'/><category scheme='http://www.blogger.com/atom/ns#' term='setting'/><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>configure culture in symfony</title><content type='html'>./apps/frontend/config/settings.yml:    default_culture:        fr&lt;br /&gt;&lt;br /&gt;./apps/frontend/config/i18n.yml:  default_culture:     en&lt;br /&gt;&lt;br /&gt;./apps/frontend/config/factories.yml:#      default_culture: %SF_DEFAULT_CULTURE%&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6129492037221343238?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6129492037221343238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/configure-culture-in-symfony.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6129492037221343238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6129492037221343238'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/configure-culture-in-symfony.html' title='configure culture in symfony'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7227972960809758457</id><published>2009-02-23T10:19:00.000-08:00</published><updated>2009-02-23T17:33:22.335-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='contact'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>gmail contactor list</title><content type='html'>setup python&lt;br /&gt;http://code.google.com/support/bin/answer.py?answer=75582&lt;br /&gt;&lt;br /&gt;http://code.google.com/apis/contacts/docs/1.0/developers_guide_python.html&lt;br /&gt;&lt;br /&gt;http://code.google.com/apis/gdata/articles/php_client_lib.html&lt;br /&gt;http://code.google.com/apis/gdata/samples.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://code.google.com/apis/contacts/&lt;br /&gt;http://code.google.com/apis/contacts/docs/2.0/developers_guide_protocol.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7227972960809758457?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7227972960809758457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/gmail-contactor-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7227972960809758457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7227972960809758457'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/gmail-contactor-list.html' title='gmail contactor list'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-2309017802955184419</id><published>2009-02-23T05:17:00.000-08:00</published><updated>2009-02-23T05:19:51.802-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symfony'/><category scheme='http://www.blogger.com/atom/ns#' term='cookie'/><category scheme='http://www.blogger.com/atom/ns#' term='response'/><category scheme='http://www.blogger.com/atom/ns#' term='request'/><category scheme='http://www.blogger.com/atom/ns#' term='session'/><title type='text'>cookie in symfony</title><content type='html'>http://www.symfony-project.org/cookbook/1_0/en/cookie&lt;br /&gt;http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer&lt;br /&gt;http://us2.php.net/setcookie&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-2309017802955184419?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/2309017802955184419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/cookie-in-symfony.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2309017802955184419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2309017802955184419'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/cookie-in-symfony.html' title='cookie in symfony'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7379938761690875785</id><published>2009-02-21T08:51:00.001-08:00</published><updated>2009-02-21T08:51:51.399-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='table'/><category scheme='http://www.blogger.com/atom/ns#' term='style'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title type='text'>html table style</title><content type='html'>&amp;lt;style&amp;gt;&lt;br /&gt;th{background-color:#bbbbbb;}&lt;br /&gt;td{padding-left:5px;padding-top:5px;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7379938761690875785?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7379938761690875785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/html-table-style.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7379938761690875785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7379938761690875785'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/html-table-style.html' title='html table style'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5631243933307468996</id><published>2009-02-20T13:55:00.000-08:00</published><updated>2009-02-20T13:56:27.716-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commit'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><category scheme='http://www.blogger.com/atom/ns#' term='conflict'/><title type='text'>svn command</title><content type='html'>svn log -v&lt;br /&gt;svn revert --recursive .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5631243933307468996?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5631243933307468996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/svn-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5631243933307468996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5631243933307468996'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/svn-command.html' title='svn command'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5831147928328230992</id><published>2009-02-19T09:08:00.000-08:00</published><updated>2009-02-19T09:09:37.660-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>ssh to remote host without password</title><content type='html'>ssh-keygen -t dsa&lt;br /&gt;ssh-copy-id -i ~/.ssh/id_dsa.pub user_name@remote_host_name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5831147928328230992?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5831147928328230992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/ssh-to-remote-host-without-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5831147928328230992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5831147928328230992'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/ssh-to-remote-host-without-password.html' title='ssh to remote host without password'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7022876130603565412</id><published>2009-02-18T13:30:00.000-08:00</published><updated>2009-02-18T13:35:03.368-08:00</updated><title type='text'>spin lock perfer same chip core</title><content type='html'>typedef struct{&lt;br /&gt;        int __triger;&lt;br /&gt;        volatile int spin;&lt;br /&gt;        volatile int flags[800];&lt;br /&gt;        volatile int queueLast;&lt;br /&gt;        volatile int owner;&lt;br /&gt;        volatile int count;&lt;br /&gt;}my_spinlock_t;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *);&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_dump(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#define HAS_LOCK 0&lt;br /&gt;#define MUST_WAIT 1&lt;br /&gt;#define BACKOFF_BASE 100000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;inline int g_atomic_int_exchange_and_add (int *atomic, int val)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;  __asm__ __volatile__ ("lock; xaddl %0,%1"&lt;br /&gt;                        : "=r" (result), "=m" (*atomic)&lt;br /&gt;                        : "0" (val), "m" (*atomic));&lt;br /&gt;  return result;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;inline int g_atomic_int_compare_and_exchange (int *atomic, int oldval, int newval)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;&lt;br /&gt;  __asm__ __volatile__ ("lock; cmpxchgl %2, %1"&lt;br /&gt;                        : "=a" (result), "=m" (*atomic)&lt;br /&gt;                        : "r" (newval), "m" (*atomic), "0" (oldval));&lt;br /&gt;&lt;br /&gt;  return result;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int my_gettid()&lt;br /&gt;{&lt;br /&gt;int * p = (int*)pthread_self();&lt;br /&gt;return p[18];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *p)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        volatile int i;&lt;br /&gt;        int b;&lt;br /&gt;        int cur_id, my_id = my_gettid();&lt;br /&gt;        my_id = my_id%8/2+1;&lt;br /&gt;&lt;br /&gt;        while( cur_id = g_atomic_int_compare_and_exchange(&amp;s-&gt;spin, HAS_LOCK, my_id) ){&lt;br /&gt;                b = BACKOFF_BASE;&lt;br /&gt;                if(cur_id == my_id) b=0;&lt;br /&gt;                while(s-&gt;spin != HAS_LOCK)&lt;br /&gt;                for(i=b;i;i--);&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7022876130603565412?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7022876130603565412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/spin-lock-perfer-same-chip-core.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7022876130603565412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7022876130603565412'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/spin-lock-perfer-same-chip-core.html' title='spin lock perfer same chip core'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4324593068908791662</id><published>2009-02-18T11:21:00.000-08:00</published><updated>2009-02-18T11:31:30.048-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spin'/><category scheme='http://www.blogger.com/atom/ns#' term='lock'/><category scheme='http://www.blogger.com/atom/ns#' term='delay'/><category scheme='http://www.blogger.com/atom/ns#' term='backoff'/><title type='text'>simple spin lock with backoff delay</title><content type='html'>typedef struct{&lt;br /&gt;        volatile int spin;&lt;br /&gt;}my_spinlock_t;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *);&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_dump(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;#define HAS_LOCK 0&lt;br /&gt;#define MUST_WAIT 1&lt;br /&gt;#define BACKOFF_BASE 100000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;inline int g_atomic_int_exchange_and_add (int *atomic, int val)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;  __asm__ __volatile__ ("lock; xaddl %0,%1"&lt;br /&gt;                        : "=r" (result), "=m" (*atomic)&lt;br /&gt;                        : "0" (val), "m" (*atomic));&lt;br /&gt;  return result;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;inline int g_atomic_int_compare_and_exchange (int *atomic, int oldval, int newval)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;&lt;br /&gt;  __asm__ __volatile__ ("lock; cmpxchgl %2, %1"&lt;br /&gt;                        : "=a" (result), "=m" (*atomic)&lt;br /&gt;                        : "r" (newval), "m" (*atomic), "0" (oldval));&lt;br /&gt;&lt;br /&gt;  return result == oldval;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *p)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        volatile int i;&lt;br /&gt;        while( !g_atomic_int_compare_and_exchange(&amp;s-&gt;spin, HAS_LOCK, MUST_WAIT) ){&lt;br /&gt;                for(i=BACKOFF_BASE;i;i--);&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        volatile int i;&lt;br /&gt;        while( !g_atomic_int_compare_and_exchange(&amp;s-&gt;spin, HAS_LOCK, MUST_WAIT) ){&lt;br /&gt;                while(s-&gt;spin == MUST_WAIT)&lt;br /&gt;                for(i=BACKOFF_BASE;i;i--);&lt;br /&gt;        }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4324593068908791662?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4324593068908791662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/simple-spin-lock-with-backoff-delay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4324593068908791662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4324593068908791662'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/simple-spin-lock-with-backoff-delay.html' title='simple spin lock with backoff delay'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7909481427787061947</id><published>2009-02-18T10:50:00.000-08:00</published><updated>2009-02-18T10:56:20.079-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spin'/><category scheme='http://www.blogger.com/atom/ns#' term='lock'/><title type='text'>simple spin lock</title><content type='html'>typedef struct{&lt;br /&gt;        int spin;&lt;br /&gt;}my_spinlock_t;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *);&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_dump(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;#define HAS_LOCK 0&lt;br /&gt;#define MUST_WAIT 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;inline int g_atomic_int_compare_and_exchange (int *atomic, int oldval, int newval)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;&lt;br /&gt;  __asm__ __volatile__ ("lock; cmpxchgl %2, %1"&lt;br /&gt;                        : "=a" (result), "=m" (*atomic)&lt;br /&gt;                        : "r" (newval), "m" (*atomic), "0" (oldval));&lt;br /&gt;&lt;br /&gt;  return result == oldval;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *p)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        while( !g_atomic_int_compare_and_exchange(&amp;s-&gt;spin, HAS_LOCK, MUST_WAIT) );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt;        s-&gt;spin = HAS_LOCK;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7909481427787061947?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7909481427787061947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/simple-spin-lock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7909481427787061947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7909481427787061947'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/simple-spin-lock.html' title='simple spin lock'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1834600380813762089</id><published>2009-02-18T10:27:00.000-08:00</published><updated>2009-02-18T10:32:49.381-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='queue'/><category scheme='http://www.blogger.com/atom/ns#' term='spin'/><category scheme='http://www.blogger.com/atom/ns#' term='lock'/><title type='text'>queue-based spin lock</title><content type='html'>typedef struct{&lt;br /&gt;        volatile int flags[80];&lt;br /&gt;        volatile int queueLast;&lt;br /&gt;        volatile int owner;&lt;br /&gt;}my_spinlock_t;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *);&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#define HAS_LOCK 0&lt;br /&gt;#define MUST_WAIT 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int g_atomic_int_exchange_and_add (int *atomic, int val)&lt;br /&gt;{&lt;br /&gt;  int result;&lt;br /&gt;  __asm__ __volatile__ ("lock; xaddl %0,%1"&lt;br /&gt;                        : "=r" (result), "=m" (*atomic) &lt;br /&gt;   : "0" (val), "m" (*atomic));&lt;br /&gt;  return result;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int my_gettid()&lt;br /&gt;{&lt;br /&gt;int * p = (int*)pthread_self();&lt;br /&gt;return p[18];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int my_spin_init(my_spinlock_t * s, void *p)&lt;br /&gt;{&lt;br /&gt; int i;&lt;br /&gt; s-&gt;flags[0] = HAS_LOCK;&lt;br /&gt; for(i=1;i&lt;8;i++)&lt;br /&gt;  s-&gt;flags[i*10] = MUST_WAIT;&lt;br /&gt; s-&gt;queueLast = 0;&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_lock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt; int myPlace, t;&lt;br /&gt; volatile int * p;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; myPlace = g_atomic_int_exchange_and_add(&amp;s-&gt;queueLast, 1); &lt;br /&gt; //myPlace = my_gettid();&lt;br /&gt;&lt;br /&gt; t = myPlace % 8; &lt;br /&gt;&lt;br /&gt; p = &amp;s-&gt;flags[t*10];&lt;br /&gt; while(*p == MUST_WAIT);&lt;br /&gt; s-&gt;flags[t*10] = MUST_WAIT;&lt;br /&gt; s-&gt;owner = myPlace;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void my_spin_unlock(my_spinlock_t * s)&lt;br /&gt;{&lt;br /&gt; int myPlace = s-&gt;owner;&lt;br /&gt; s-&gt;flags[((myPlace+1) % 8)*10] = HAS_LOCK;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference&lt;br /&gt;Thomas E. Anderson, "The Performance of Spin Lock Alternatives for Shared-Memory Multiprocessors", IEEE Transactions on Parallel and Distributed Systems, 1990&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1834600380813762089?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1834600380813762089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/queue-based-spin-lock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1834600380813762089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1834600380813762089'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/queue-based-spin-lock.html' title='queue-based spin lock'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3688733261997005557</id><published>2009-02-17T12:58:00.000-08:00</published><updated>2009-02-17T13:18:21.296-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='atomic'/><category scheme='http://www.blogger.com/atom/ns#' term='cas'/><category scheme='http://www.blogger.com/atom/ns#' term='operation'/><title type='text'>atomic operation function in C language</title><content type='html'>http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html&lt;br /&gt;http://library.gnome.org/devel/glib/2.16/glib-Atomic-Operations.html&lt;br /&gt;http://java.sun.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.html&lt;br /&gt;https://stage.maemo.org/svn/maemo/projects/haf/branches/glib2.0/2.8.6-1osso5/glib/gatomic.c&lt;br /&gt;http://www.sogou.com/labs/report/4-2.pdf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3688733261997005557?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3688733261997005557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/atomic-operation-function-in-c-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3688733261997005557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3688733261997005557'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/atomic-operation-function-in-c-language.html' title='atomic operation function in C language'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1002359772304741474</id><published>2009-02-15T14:24:00.000-08:00</published><updated>2009-02-15T14:31:37.791-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='overlay'/><category scheme='http://www.blogger.com/atom/ns#' term='z-index'/><category scheme='http://www.blogger.com/atom/ns#' term='div'/><category scheme='http://www.blogger.com/atom/ns#' term='relative'/><category scheme='http://www.blogger.com/atom/ns#' term='style'/><category scheme='http://www.blogger.com/atom/ns#' term='position'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='absolute'/><title type='text'>div's position and overlap</title><content type='html'>&amp;lt;div style="width: 150px; height: 100px; background-color: blue;"&amp;gt;&lt;br /&gt;blue&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style="width: 100px; height: 150px; background-color: red;"&amp;gt;&lt;br /&gt;red&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="width: 150px; height: 100px; background-color: blue;"&gt;&lt;br /&gt;blue&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="width: 100px; height: 150px; background-color: red;"&gt;&lt;br /&gt;red&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style="width: 150px; height: 100px; background-color: blue;position: absolute;"&amp;gt;&lt;br /&gt;blue&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style="width: 100px; height: 150px; background-color: red; position: relative;"&amp;gt;&lt;br /&gt;red&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="width: 150px; height: 100px; background-color: blue; position: absolute;"&gt;&lt;br /&gt;blue&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="width: 100px; height: 150px; background-color: red; position: relative;"&gt;&lt;br /&gt;red&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style="width: 150px; height: 100px; background-color: blue;position: absolute;z-index:2;"&amp;gt;&lt;br /&gt;blue&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style="width: 100px; height: 150px; background-color: red; position: relative;z-index:1;"&amp;gt;&lt;br /&gt;red&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="width: 150px; height: 100px; background-color: blue; position: absolute; z-index: 2;"&gt;&lt;br /&gt;blue&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="width: 100px; height: 150px; background-color: red; position: relative; z-index: 1;"&gt;&lt;br /&gt;red&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1002359772304741474?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1002359772304741474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/divs-position-and-overlap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1002359772304741474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1002359772304741474'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/divs-position-and-overlap.html' title='div&apos;s position and overlap'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1510185681148100329</id><published>2009-02-15T12:15:00.000-08:00</published><updated>2009-02-15T12:52:35.562-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='js'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ext'/><title type='text'>ext js library</title><content type='html'>Firfox error message: ext is not defined&lt;br /&gt;&lt;br /&gt;&amp;lt;link type="text/css" rel="stylesheet" href="/js/ext-2.2/resources/css/ext-all.css"/&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript" src="/js/ext-2.2/adapter/ext/ext-base.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript" src="/js/ext-2.2/ext-all.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1510185681148100329?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1510185681148100329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/ext-js-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1510185681148100329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1510185681148100329'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/ext-js-library.html' title='ext js library'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-2165667418355546055</id><published>2009-02-12T09:40:00.000-08:00</published><updated>2009-02-12T09:41:56.007-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><category scheme='http://www.blogger.com/atom/ns#' term='vsftpd'/><title type='text'>vsftpd config</title><content type='html'>&lt;ul&gt;&lt;li&gt;add user&lt;/li&gt;&lt;/ul&gt;useradd -d /dir -s /sbin/nologin ftpusername&lt;br /&gt;passwd ftpusername&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-2165667418355546055?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/2165667418355546055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vsftpd-config.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2165667418355546055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2165667418355546055'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vsftpd-config.html' title='vsftpd config'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-9051591721302092478</id><published>2009-02-11T10:01:00.000-08:00</published><updated>2009-02-11T10:03:11.102-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='join'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>SQL sample</title><content type='html'>1. one table join itself&lt;br /&gt;select file.id from history t1, history t2, file where file.id=t1.file_id and t1.id&lt;&gt;t2.id and t1.updated_at=t2.updated_at and t1.ip=t2.ip and t1.file_id&lt;&gt;114 and t2.file_id=114 group by t1.file_id order by count(t1.file_id) desc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-9051591721302092478?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/9051591721302092478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/sql-sample.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9051591721302092478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/9051591721302092478'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/sql-sample.html' title='SQL sample'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3341385584167345829</id><published>2009-02-09T16:25:00.000-08:00</published><updated>2009-02-09T16:29:50.818-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='url rewrite'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='htaccess'/><title type='text'>URL rewrite</title><content type='html'>vi .htaccess&lt;br /&gt;&lt;br /&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt; RewriteEngine On&lt;br /&gt;&lt;br /&gt; #rewrite xxxx.org to www.xxxx.org&lt;br /&gt; RewriteCond %{HTTP_HOST} ^xxxx.org$&lt;br /&gt; RewriteRule ^(.*) http://www.xxxx.org/$1  [QSA,L,R=301]&lt;br /&gt;&lt;br /&gt;&amp;lt;/ifmodule&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3341385584167345829?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3341385584167345829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/url-rewrite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3341385584167345829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3341385584167345829'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/url-rewrite.html' title='URL rewrite'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1801969832452644894</id><published>2009-02-09T09:06:00.000-08:00</published><updated>2009-02-09T09:40:33.054-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='httpd.conf'/><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Apache log setting</title><content type='html'>&lt;code&gt;LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common&lt;br /&gt;      CustomLog logs/access_log common&lt;br /&gt;&lt;br /&gt;&amp;lt;virtualhost&amp;gt;&lt;br /&gt;  ServerName xxxx&lt;br /&gt;  ServerAlias xxxx.com&lt;br /&gt;  DocumentRoot /home/www/xxxx.com/web&lt;br /&gt;  AddType application/x-httpd-php .php&lt;br /&gt;      &amp;lt;directory&amp;gt;&lt;br /&gt;          AllowOverride All&lt;br /&gt;          Order allow,deny&lt;br /&gt;          Allow from all&lt;br /&gt;      &amp;lt;/directory&amp;gt;&lt;br /&gt;  RewriteLog /home/www/xxxx.com/log/xxxx.com_rewrite_log&lt;br /&gt;  RewriteLogLevel 3&lt;br /&gt;  ErrorLog /home/www/xxxx.com/log/xxxx.com_error_log&lt;br /&gt;  CustomLog /home/www/xxxx.com/log/xxxx.com_access_log common&lt;br /&gt;&amp;lt;/virtualhost&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;Reference&lt;br /&gt;http://httpd.apache.org/docs/1.3/logs.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1801969832452644894?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1801969832452644894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/apache-log-setting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1801969832452644894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1801969832452644894'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/apache-log-setting.html' title='Apache log setting'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5325127618311630335</id><published>2009-02-09T08:06:00.000-08:00</published><updated>2009-02-09T13:26:43.791-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system call'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Linux system call</title><content type='html'>include/asm/unistd_32.h&lt;br /&gt;arch/x86/kernel/syscall_table_32.S&lt;br /&gt;&lt;br /&gt;#include &amp;lt;linux/unistd.h&amp;gt;&lt;br /&gt;#define __NR_my_kernel_init     327&lt;br /&gt;&lt;br /&gt;//_syscall1(int, my_kernel_init, int, debug);&lt;br /&gt;int my_kernel_init(int debug)&lt;br /&gt;{&lt;br /&gt;return syscall(__NR_my_kernel_init, debug);&lt;br /&gt;}&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int ret = my_kernel_init(1);&lt;br /&gt;printf( "%d\n",  ret);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;when I using _syscall1(int, my_kernel_init, int, debug), I got an error:&lt;br /&gt;test.c:6: error: expected declaration specifiers or ‘...’ before ‘my_kernel_init’&lt;br /&gt;test.c:6: error: expected declaration specifiers or ‘...’ before ‘debug’&lt;br /&gt;test.c:6: warning: data definition has no type or storage class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/cn/linux/kernel/syscall/part1/appendix.html"&gt;Linux system call list&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://www.ibm.com/developerworks/cn/linux/l-system-calls/"&gt;Kernel command using Linux system calls&lt;/a&gt;&lt;/span&gt;&lt;a href="http://www.ibm.com/developerworks/cn/linux/l-system-calls/"&gt;&lt;em&gt;, Explore the SCI and add your own calls&lt;/em&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5325127618311630335?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5325127618311630335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/linux-system-call.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5325127618311630335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5325127618311630335'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/linux-system-call.html' title='Linux system call'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-399483080469579397</id><published>2009-02-07T12:01:00.000-08:00</published><updated>2009-07-06T14:47:42.772-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='repair'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><category scheme='http://www.blogger.com/atom/ns#' term='exception'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='myi repair'/><title type='text'>MySql error</title><content type='html'>&lt;ul&gt;&lt;li&gt;Can't open file: 'xxxx.MYI' (errno: 13)&lt;/li&gt;&lt;/ul&gt;perror 13&lt;br /&gt;OS error code  13:  Permission denied&lt;br /&gt;chmod 777 xxxx.MYI&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Repair MySql database table index file&lt;/li&gt;&lt;/ul&gt;myisamchk -r -q xxxx.MYI&lt;br /&gt;&lt;ul&gt;&lt;li&gt;MySQL said: Documentation&lt;br /&gt;#1114 - The table 'xxxx' is full&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;table xxxx is too large&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ERROR 1030 (HY000): Got error 127 from storage engine&lt;/li&gt;&lt;/ul&gt; perror 127&lt;br /&gt;MySQL error code 127: Record-file is crashed&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;repair table xxx USE_FRM;&lt;/li&gt;&lt;/ul&gt;Reference&lt;br /&gt;http://bbs.ylqonline.net/redirect.php?tid=332&amp;amp;goto=lastpost&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-399483080469579397?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/399483080469579397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/mysql-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/399483080469579397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/399483080469579397'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/mysql-error.html' title='MySql error'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4897224568827538789</id><published>2009-02-05T14:35:00.000-08:00</published><updated>2009-02-05T14:39:14.165-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='icon'/><category scheme='http://www.blogger.com/atom/ns#' term='page'/><title type='text'>set icon for your website</title><content type='html'>add in head part of page&lt;br /&gt;&lt;br /&gt; &amp;lt;link rel="shortcut icon" href="/img/favicon.png"&amp;gt;&lt;br /&gt;&lt;br /&gt;not only ico file, but also png image work well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4897224568827538789?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4897224568827538789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-icon-for-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4897224568827538789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4897224568827538789'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-icon-for-your-website.html' title='set icon for your website'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-6898438845414037733</id><published>2009-02-05T14:31:00.000-08:00</published><updated>2009-02-09T08:32:03.121-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><title type='text'>vi config</title><content type='html'>vi ~/.vimrc&lt;br /&gt;&lt;br /&gt;set tabstop=4&lt;br /&gt;set shiftwidth=4&lt;br /&gt;set nu&lt;br /&gt;syntax on&lt;br /&gt;set smartindent&lt;br /&gt;set incsearch&lt;br /&gt;set vb t_vb=&lt;br /&gt;&lt;br /&gt;In CentOS, vim doesn't alias to vi for root (see /etc/profile.d/vim.sh)&lt;br /&gt;so root must use vim directly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-6898438845414037733?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/6898438845414037733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vi-config.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6898438845414037733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/6898438845414037733'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vi-config.html' title='vi config'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4095785629922359758</id><published>2009-02-05T13:43:00.000-08:00</published><updated>2009-02-05T13:50:03.684-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scaling'/><category scheme='http://www.blogger.com/atom/ns#' term='cpu'/><category scheme='http://www.blogger.com/atom/ns#' term='acpi'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='frequency'/><title type='text'>set CPU frequency in Linux</title><content type='html'>&lt;ul&gt;&lt;li&gt;ls /sys/devices/system/cpu/cpu0/&lt;/li&gt;&lt;li&gt;cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver etc.&lt;/li&gt;&lt;/ul&gt;scaling_available_governors: ondemand userspace performance&lt;br /&gt;scaling_available_frequencies&lt;br /&gt;&lt;ul&gt;&lt;li&gt;modprobe acpi-cpufreq&lt;/li&gt;&lt;li&gt;cat /proc/cpuinfo | grep 'cpu MHz'&lt;/li&gt;&lt;li&gt;cpufreq-selector&lt;br /&gt;  -c, --cpu           CPU Number&lt;br /&gt;  -g, --governor      Governor&lt;br /&gt;  -f, --frequency     Frequency in KHz&lt;br /&gt;&lt;/li&gt;&lt;li&gt;/usr/sbin/cpuspeed -m 2000000 -M 2000000 -s 7&lt;/li&gt;&lt;/ul&gt;/etc/sysconfig/cpuspeed, configuration file&lt;br /&gt;/etc/init.d/cpuspeed, initialzation script&lt;br /&gt;/usr/sbin/cpuspeed, cpuspeed program&lt;br /&gt;&lt;ul&gt;&lt;li&gt;cpufreq-set&lt;/li&gt;&lt;/ul&gt;cpufreq-set -d 2667000 -u 2667000 -c 0&lt;br /&gt;&lt;ul&gt;&lt;li&gt;cpufreq-info&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4095785629922359758?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4095785629922359758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-cpu-frequency-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4095785629922359758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4095785629922359758'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-cpu-frequency-in-linux.html' title='set CPU frequency in Linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-1288068122328416421</id><published>2009-02-05T13:36:00.000-08:00</published><updated>2009-02-05T13:39:51.155-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><title type='text'>linux networking command</title><content type='html'>&lt;ul&gt;&lt;li&gt;print route table&lt;/li&gt;&lt;/ul&gt;netstat -r&lt;br /&gt;&lt;ul&gt;&lt;li&gt;add route table entry&lt;/li&gt;&lt;/ul&gt;route add -net 172.16.2.0 netmask 255.255.255.0 gw 172.16.2.2&lt;br /&gt;&lt;ul&gt;&lt;li&gt;restart network&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;/etc/init.d/networking restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-1288068122328416421?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/1288068122328416421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/linux-networking-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1288068122328416421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/1288068122328416421'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/linux-networking-command.html' title='linux networking command'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-8976241240784613827</id><published>2009-02-05T13:25:00.000-08:00</published><updated>2009-02-05T13:33:25.745-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glibc'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='build'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='link'/><title type='text'>Build and using a new glibc</title><content type='html'>&lt;ol&gt;&lt;li&gt;export LD_LIBRARY_PATH=&lt;/li&gt;&lt;li&gt;../glibc-2.5/configure --prefix=/home/xxxx/nptl/install&lt;/li&gt;&lt;li&gt;make&lt;/li&gt;&lt;li&gt;make install&lt;/li&gt;&lt;li&gt;link to new glibc&lt;/li&gt;&lt;/ol&gt;gcc test.c -L/home/xxxx/nptl/install/lib -I/home/xxxx/nptl/install/include -static -lpthread&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;modify glibc&lt;/li&gt;&lt;/ul&gt;some definition, include pthread_mutex_t etc.&lt;br /&gt;glibc-2.5/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h&lt;br /&gt;&lt;br /&gt;some nptl function&lt;br /&gt;glibc-2.5/nptl/pthread_mutex_lock.c&lt;br /&gt;glibc-2.5/nptl/sysdeps/i386/pthread_spin_lock.c&lt;br /&gt;&lt;br /&gt;cp glibc-2.5/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h install/include/bits/pthreadtypes.h&lt;br /&gt;cp build/nptl/libp* install/lib&lt;br /&gt;rm build/libc.so&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-8976241240784613827?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/8976241240784613827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/build-and-using-new-glibc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8976241240784613827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/8976241240784613827'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/build-and-using-new-glibc.html' title='Build and using a new glibc'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5004920163366589881</id><published>2009-02-05T09:43:00.000-08:00</published><updated>2009-02-05T09:57:46.600-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x86'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='at t'/><category scheme='http://www.blogger.com/atom/ns#' term='manual'/><category scheme='http://www.blogger.com/atom/ns#' term='assembly'/><title type='text'>Assembly manual</title><content type='html'>&lt;h1 style="font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://www.ibm.com/developerworks/library/l-ia.html"&gt;Inline assembly for x86 in Linux&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://www.huihoo.org/gnu_linux/own_os/preparing-asm_3.htm"&gt;&lt;span style="font-family: 宋体;"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span style=""&gt;&lt;strong&gt;AT&amp;amp;T ASM  Syntax&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://weibing.blogbus.com/logs/3094931.html"&gt;manual&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5004920163366589881?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5004920163366589881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/assembly-manual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5004920163366589881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5004920163366589881'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/assembly-manual.html' title='Assembly manual'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-426812352785761243</id><published>2009-02-04T14:57:00.000-08:00</published><updated>2009-02-04T16:21:06.107-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symfony'/><category scheme='http://www.blogger.com/atom/ns#' term='page'/><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>set meta information for a page in Symfony</title><content type='html'>$response = $this-&gt;getResponse();&lt;br /&gt;$response-&gt;setTitle($title);&lt;br /&gt;$response-&gt;addMeta('keywords', $kws);&lt;br /&gt;$response-&gt;addMeta('description', $desc);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-426812352785761243?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/426812352785761243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-meta-information-for-page-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/426812352785761243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/426812352785761243'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/set-meta-information-for-page-in.html' title='set meta information for a page in Symfony'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4950033622745871034</id><published>2009-02-04T11:47:00.000-08:00</published><updated>2009-02-05T13:18:30.299-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettid'/><category scheme='http://www.blogger.com/atom/ns#' term='process'/><category scheme='http://www.blogger.com/atom/ns#' term='thread'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='getpid'/><title type='text'>get thread id</title><content type='html'>#include &lt;stdio.h&gt;&lt;br /&gt;#include &lt;pthread.h&gt;&lt;br /&gt;#include &lt;assert.h&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int my_gettid()&lt;br /&gt;{&lt;br /&gt;       int * p = (int*)pthread_self();&lt;br /&gt;       int pid = getpid();&lt;br /&gt;       assert(pid == p[19]);&lt;br /&gt;       return p[18];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int my_gettid(pthread_t thread)&lt;br /&gt;{&lt;br /&gt;        int *p = (int*)thread;&lt;br /&gt;        return p[18];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void BusyWork(void* t)&lt;br /&gt;{&lt;br /&gt;       int tid = my_gettid();&lt;br /&gt;       int pid = getpid();&lt;br /&gt;       printf("worker tid %d pid %d\n",tid,pid);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;       int tid = my_gettid();&lt;br /&gt;       int pid = getpid();&lt;br /&gt;       printf("main tid %d pid %d\n",tid,pid);&lt;br /&gt;&lt;br /&gt;       pthread_t thread;&lt;br /&gt;       pthread_create(&amp;amp;thread, NULL, BusyWork, NULL);&lt;br /&gt;&lt;br /&gt;       pthread_join(thread,NULL);&lt;br /&gt;       return 0;&lt;br /&gt;}&lt;/assert.h&gt;&lt;/pthread.h&gt;&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4950033622745871034?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4950033622745871034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/get-thread-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4950033622745871034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4950033622745871034'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/get-thread-id.html' title='get thread id'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-3664868016456464356</id><published>2009-02-04T11:17:00.000-08:00</published><updated>2009-02-04T11:39:42.051-08:00</updated><title type='text'>pthread spin lock in glibc nptl</title><content type='html'>&lt;ul&gt;&lt;li&gt;The Glibc I using is glibc-2.5, computer architecture is i386&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;type definition of pthread_spinlock_t&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h&lt;br /&gt;/* POSIX spinlock data type.  */&lt;br /&gt;typedef volatile int pthread_spinlock_t;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;function pthread_spin_lock&lt;/li&gt;&lt;/ul&gt;nptl/sysdeps/i386/pthread_spin_lock.c&lt;br /&gt;&lt;ul&gt;&lt;li&gt;my test of spin lock&lt;/li&gt;&lt;/ul&gt;#include  &lt;pthread.h&gt;&lt;pthread.h&gt;&lt;br /&gt;#include  &lt;stdio.h&gt;&lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;#define NUM_THREADS     8&lt;br /&gt;long sum;&lt;br /&gt;pthread_spinlock_t sumlock;&lt;br /&gt;&lt;br /&gt;int my_sleep(int i)&lt;br /&gt;{&lt;br /&gt;       int j,k,n=0;&lt;br /&gt;       for(;i&gt;0;i--)&lt;br /&gt;               for(j=0;j&lt;100;j++)&lt;br /&gt;                       for(k=0;k&lt;100;k++)&lt;br /&gt;                               n++;&lt;br /&gt;       return n;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void *BusyWork(void *threadid)&lt;br /&gt;{&lt;br /&gt;  int i,k;&lt;br /&gt;  long tid = (long)threadid;&lt;br /&gt;  for(i=0;i&lt;10;i++){&lt;br /&gt;    k = my_sleep(3);&lt;br /&gt;    pthread_spin_lock (&amp;amp;sumlock);&lt;br /&gt;    printf("%d ", tid);&lt;br /&gt;    sum += k;&lt;br /&gt;    pthread_spin_unlock (&amp;amp;sumlock);&lt;br /&gt;  }&lt;br /&gt;  pthread_exit((void *) 0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main (int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;  pthread_t thread[NUM_THREADS];&lt;br /&gt;  int rc, t;&lt;br /&gt;  void *status;&lt;br /&gt;  pthread_spin_init(&amp;amp;sumlock, NULL);&lt;br /&gt;  for(t=0; t&lt;num_threads;&gt;&lt;br /&gt;     rc = pthread_create(&amp;amp;thread[t], NULL, BusyWork, (void*)t);&lt;br /&gt;     if (rc){&lt;br /&gt;        return 0;&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;  for(t=0; t&lt;num_threads;&gt;&lt;br /&gt;     rc = pthread_join(thread[t], &amp;amp;status);&lt;br /&gt;     if (rc){&lt;br /&gt;        printf("ERROR; return code from pthread_join() is %d\n", rc);&lt;br /&gt;        return 0;&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;  printf("sum = %ld\n", sum);&lt;br /&gt;  pthread_spin_destroy(&amp;amp;sumlock);&lt;br /&gt;  pthread_exit(NULL);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/num_threads;&gt;&lt;/num_threads;&gt;&lt;/stdio.h&gt;&lt;/pthread.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-3664868016456464356?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/3664868016456464356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/pthread-spin-lock-in-glibc-nptl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3664868016456464356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/3664868016456464356'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/pthread-spin-lock-in-glibc-nptl.html' title='pthread spin lock in glibc nptl'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-4681486295922040470</id><published>2009-02-04T10:59:00.000-08:00</published><updated>2009-02-13T11:13:32.757-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mask'/><category scheme='http://www.blogger.com/atom/ns#' term='cpu'/><category scheme='http://www.blogger.com/atom/ns#' term='thread'/><category scheme='http://www.blogger.com/atom/ns#' term='affinity'/><title type='text'>Bind a thread/process to a CPU core</title><content type='html'>#include &amp;lt;sched.h&amp;gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Bind the invoke thread to a CPU core which id is &lt;span style="font-style: italic;"&gt;p&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;void thread_bind(int p)&lt;br /&gt;{&lt;br /&gt;      cpu_set_t mask;&lt;br /&gt;      __CPU_ZERO(&amp;amp;mask);&lt;br /&gt;      __CPU_SET(p, &amp;amp;mask);&lt;br /&gt;      sched_setaffinity(0, sizeof(mask), &amp;amp;mask);&lt;br /&gt;}&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Bind thread which id is &lt;span style="font-style: italic;"&gt;tid&lt;/span&gt; to a CPU core &lt;span style="font-style: italic;"&gt;p&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;void thread_bind(int p, int tid)&lt;br /&gt;{&lt;br /&gt;       cpu_set_t mask;&lt;br /&gt;       __CPU_ZERO(&amp;amp;mask);&lt;br /&gt;       __CPU_SET(p, &amp;amp;mask);&lt;br /&gt;       sched_setaffinity(tid, sizeof(mask), &amp;amp;mask);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Reference&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://xiao-ga.blogspot.com/2009/02/get-thread-id.html"&gt;Get thread id&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-4681486295922040470?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/4681486295922040470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/bind-threadprocess-to-cpu-core.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4681486295922040470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/4681486295922040470'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/bind-threadprocess-to-cpu-core.html' title='Bind a thread/process to a CPU core'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-2105622513561829285</id><published>2009-02-04T10:46:00.000-08:00</published><updated>2009-02-04T10:51:29.185-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='proc'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='module'/><title type='text'>Add a /proc/ file using Linux kernel module</title><content type='html'>Reference&lt;br /&gt;&lt;a href="http://xiao-ga.blogspot.com/2009/02/create-linux-module.html"&gt;1. Create a Linux Module&lt;/a&gt;&lt;br /&gt;2. http://www.ibm.com/developerworks/linux/library/l-proc.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-2105622513561829285?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/2105622513561829285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/add-proc-file-using-linux-kernel-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2105622513561829285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/2105622513561829285'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/add-proc-file-using-linux-kernel-module.html' title='Add a /proc/ file using Linux kernel module'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-225153108147445057</id><published>2009-02-04T08:19:00.000-08:00</published><updated>2009-02-04T09:06:45.692-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><title type='text'>vi command</title><content type='html'>1. full text replacement&lt;br /&gt;&lt;span class="docEmphStrong"&gt;:1,$s/tom/David/g&lt;br /&gt;from first line to last line, replace tom with David&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-225153108147445057?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/225153108147445057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vi-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/225153108147445057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/225153108147445057'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/vi-command.html' title='vi command'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-577782353728001991</id><published>2009-02-04T08:15:00.001-08:00</published><updated>2009-02-04T08:19:35.324-08:00</updated><title type='text'>Search in Linux</title><content type='html'>grep -R xxxx .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-577782353728001991?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/577782353728001991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/search-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/577782353728001991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/577782353728001991'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/search-in-linux.html' title='Search in Linux'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-7904747338886222360</id><published>2009-02-03T19:02:00.000-08:00</published><updated>2009-02-04T06:17:30.713-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='lkm'/><category scheme='http://www.blogger.com/atom/ns#' term='module'/><title type='text'>Create a Linux module</title><content type='html'>1. vi simple-lmk.c&lt;b&gt;&lt;a name="N1011F"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/b&gt;&lt;pre class="displaycode"&gt;#include &lt;linux h=""&gt;&lt;br /&gt;&lt;br /&gt;/* Defines the license for this LKM */&lt;br /&gt;&lt;span class="boldcode"&gt;MODULE_LICENSE&lt;/span&gt;("GPL");&lt;br /&gt;&lt;br /&gt;/* Init function called on module entry */&lt;br /&gt;int my_module_init( void )&lt;br /&gt;{&lt;br /&gt;printk(KERN_INFO "my_module_init called.  Module is now loaded.\n");&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* Cleanup function called on module exit */&lt;br /&gt;void my_module_cleanup( void )&lt;br /&gt;{&lt;br /&gt;printk(KERN_INFO "my_module_cleanup called.  Module is now unloaded.\n");&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* Declare entry and exit functions */&lt;br /&gt;&lt;span class="boldcode"&gt;module_init&lt;/span&gt;( my_module_init );&lt;br /&gt;&lt;span class="boldcode"&gt;module_exit&lt;/span&gt;( my_module_cleanup );&lt;br /&gt;&lt;/linux&gt;&lt;/pre&gt;&lt;a name="N1011F"&gt;&lt;br /&gt;2. vi Makefile&lt;br /&gt;&lt;/a&gt;&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;obj-m += simple-lkm.o&lt;br /&gt;&lt;br /&gt;3. build&lt;br /&gt;&lt;pre class="displaycode"&gt;&lt;span class="boldcode"&gt;make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modules&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. insert module&lt;br /&gt;&lt;span class="boldcode"&gt;insmod simple-lkm.ko&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. check module&lt;br /&gt;&lt;span class="boldcode"&gt;lsmod&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. check print message&lt;br /&gt;&lt;span class="boldcode"&gt;dmesg | tail -5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. remove module&lt;br /&gt;&lt;span class="boldcode"&gt;rmmod simple-lkm&lt;/span&gt;&lt;br /&gt; &lt;/pre&gt;&lt;br /&gt;&lt;b&gt;&lt;a name="N1011F"&gt;&lt;/a&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-7904747338886222360?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/7904747338886222360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/create-linux-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7904747338886222360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/7904747338886222360'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/create-linux-module.html' title='Create a Linux module'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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-8080943375072050381.post-5961630221355366636</id><published>2009-02-03T18:07:00.000-08:00</published><updated>2009-02-03T18:22:34.190-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='port mapping'/><category scheme='http://www.blogger.com/atom/ns#' term='nat'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>Connect VMware client from Linux host</title><content type='html'>I setup a Linux virtual machine on a Linux host, using NAT network.&lt;br /&gt;When connect from virtual machine to host, it is successful. But there is a problem from host connect to virtual machine, the error message of ping is:&lt;br /&gt;ping sendmsg operation not permitted&lt;br /&gt;&lt;br /&gt;There need set an port mapping of NAT.&lt;br /&gt;In host Linux, edit configure file &lt;tt&gt;/etc/vmware/vmnet8/nat/nat.conf&lt;/tt&gt;&lt;br /&gt;add one line "&lt;span style="font-family: monospace;"&gt;2222 &lt;/span&gt;&lt;tt&gt;= 192.168.27.128:22"&lt;/tt&gt; under &lt;tt&gt;[incomingtcp]&lt;br /&gt;&lt;/tt&gt;&lt;tt&gt;192.168.27.128 is IP of virtual machine.&lt;br /&gt;&lt;br /&gt;Then reboot&lt;br /&gt;&lt;br /&gt;ssh -l root -p 2222 localhost&lt;br /&gt;will telnet to virtual machine from host Linux.&lt;br /&gt;&lt;/tt&gt;&lt;br /&gt;Reference&lt;br /&gt;1. http://www.vmware.com/support/ws55/doc/ws_net_nat_advanced.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8080943375072050381-5961630221355366636?l=xiao-ga.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xiao-ga.blogspot.com/feeds/5961630221355366636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/connect-vmware-client-from-linux-host.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5961630221355366636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8080943375072050381/posts/default/5961630221355366636'/><link rel='alternate' type='text/html' href='http://xiao-ga.blogspot.com/2009/02/connect-vmware-client-from-linux-host.html' title='Connect VMware client from Linux host'/><author><name>xiaoga</name><uri>http://www.blogger.com/profile/01750346242439702087</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>
