<?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-342064194792946930</id><updated>2012-02-16T12:12:41.320-08:00</updated><category term='setrangeuser'/><category term='prompt'/><category term='gpg'/><category term='quota'/><category term='翻译'/><category term='solution'/><category term='~'/><category term='China'/><category term='skipping'/><category term='bashrc'/><category term='java_home'/><category term='latex'/><category term='reprocessing'/><category term='sed'/><category term='awk'/><category term='newboolean'/><category term='comment out'/><category term='multi'/><category term='username'/><category term='meminfo'/><category term='c++'/><category term='opera'/><category term='wget'/><category term='emjetmatching'/><category term='difference'/><category term='sort'/><category term='proc'/><category term='while'/><category term='backslash'/><category term='sam'/><category term='type'/><category term='java'/><category term='axel'/><category term='effect'/><category term='more'/><category term='zero'/><category term='beamer'/><category term='rcS'/><category term='substring'/><category term='gedit'/><category term='large'/><category term='tilde'/><category term='statistics'/><category term='found'/><category term='figure'/><category term='space'/><category term='return'/><category term='blackhole'/><category term='cluster'/><category term='xunlei'/><category term='quote'/><category term='status'/><category term='gEnv'/><category term='about'/><category term='separator'/><category term='plugin'/><category term='kx509'/><category term='search reference'/><category term='compare'/><category term='computer'/><category term='code'/><category term='head'/><category term='image'/><category term='update'/><category term='alias'/><category term='Statistical Thermodynamics of Materials'/><category term='renew'/><category term='fortran'/><category term='notification area'/><category term='xcolor'/><category term='side by side'/><category term='program'/><category term='ssh'/><category term='size'/><category term='visio'/><category term='vnc'/><category term='clientAliveInterval'/><category term='caf_util'/><category term='openssh'/><category term='tar'/><category term='Connection reset by peer'/><category term='contour'/><category term='print'/><category term='inactive'/><category term='transfer'/><category term='sudo'/><category term='x window'/><category term='palette'/><category term='.rootrc'/><category term='chi square'/><category term='unix'/><category term='getopt'/><category term='Draw'/><category term='newlibrary'/><category term='index'/><category term='quotation mark'/><category term='ifthen'/><category term='management'/><category term='printout'/><category term='subroutine'/><category term='replacement'/><category term='block'/><category term='rsync'/><category term='web'/><category term='TMPTIME'/><category term='符号'/><category term='mktexlsr'/><category term='page up'/><category term='separate'/><category term='pipe'/><category term='freedom'/><category term='library'/><category term='bool_t'/><category term='submit'/><category term='input method'/><category term='t41'/><category term='function'/><category term='vim'/><category term='logon'/><category term='d0'/><category term='welcome text'/><category term='ifthenelse'/><category term='float'/><category term='limit'/><category term='select'/><category term='jdk'/><category term='os'/><category term='browse data'/><category term='vncserver'/><category term='owner'/><category term='regular expression'/><category term='scan'/><category term='feynmen'/><category term='met'/><category term='animated'/><category term='region'/><category term='noclobber'/><category term='software'/><category term='colz'/><category term='partition'/><category term='topology'/><category term='egrep'/><category term='remove'/><category term='cleanup'/><category term='shadow'/><category term='tcp_keepalive_time'/><category term='underline'/><category term='alt'/><category term='fast'/><category term='change'/><category term='map'/><category term='directory'/><category term='krb5'/><category term='Too many unprocessed floats'/><category term='renice'/><category term='http'/><category term='inputrc'/><category term='or'/><category term='xdvi'/><category term='标点'/><category term='download'/><category term='password-less'/><category term='delete'/><category term='browser'/><category term='cut'/><category term='script'/><category term='windows'/><category term='background'/><category term='chown'/><category term='merge'/><category term='crash'/><category term='key'/><category term='cvs'/><category term='ant'/><category term='tool'/><category term='xorg.config'/><category term='rc.local'/><category term='x server'/><category term='font'/><category term='xdefaults'/><category term='int_t'/><category term='open office'/><category term='search'/><category term='smiley'/><category term='slash'/><category term='looking'/><category term='pdflatex'/><category term='package'/><category term='argument'/><category term='Rint'/><category term='configure file'/><category term='ps'/><category term='here'/><category term='westgrid'/><category term='check out'/><category term='set'/><category term='job'/><category term='user name'/><category term='priority'/><category term='t61'/><category term='alternative'/><category term='QQ'/><category term='setpalette'/><category term='whole site'/><category term='table'/><category term='setlimits'/><category term='absolute'/><category term='lenovo'/><category term='gramma'/><category term='theme'/><category term='etc'/><category term='diff'/><category term='backspace'/><category term='root'/><category term='pdf'/><category term='pdftops'/><category term='echo'/><category term='gstyle'/><category term='report'/><category term='text'/><category term='selection'/><category term='network'/><category term='framework'/><category term='overwrite'/><category term='error'/><category term='chinese'/><category term='condition'/><category term='bash_profile'/><category term='loop'/><category term='reboot'/><category term='locale'/><category term='seq'/><category term='Tex'/><category term='tabular'/><category term='command'/><category term='setboolean'/><category term='leading'/><category term='composite'/><category term='vncviewer'/><category term='shell'/><category term='page down'/><category term='depth'/><category term='gimp'/><category term='sshd_config'/><category term='英文'/><category term='firewall'/><category term='pdfedit'/><category term='row'/><category term='append'/><category term='screen'/><category term='tgz'/><category term='speed'/><category term='drawing'/><category term='pluginreg'/><category term='english'/><category term='number'/><category term='remote'/><category term='tr'/><category term='version'/><category term='Multivariate'/><category term='subfigure'/><category term='multivalent'/><category term='vjets'/><category term='thread'/><category term='replace'/><category term='du'/><category term='columns'/><category term='acrobat'/><category term='diagram'/><category term='eps'/><category term='setrange'/><category term='wireless'/><category term='kernel'/><category term='process bar'/><category term='server'/><category term='Toolkit'/><category term='ftp'/><category term='Analysis'/><category term='calculator'/><category term='install'/><category term='3d'/><category term='dowload'/><category term='ghostscript'/><category term='insert'/><category term='kinit'/><category term='jar'/><category term='shortcut'/><category term='firefox'/><category term='get files'/><category term='rev'/><category term='gs'/><category term='gaim'/><category term='RType.h'/><category term='grep'/><category term='selectuserobject'/><category term='arbitrary'/><category term='idle'/><category term='keyboard'/><category term='link'/><category term='group'/><category term='lc_all'/><category term='usepackage'/><category term='cpu'/><category term='kerberos'/><category term='laptop'/><category term='luminosity'/><category term='notebook'/><category term='multiple'/><category term='jaxodraw'/><category term='slow'/><category term='sequence'/><category term='object'/><category term='大全'/><category term='utf-8'/><category term='bash'/><category term='compile'/><category term='printf'/><category term='geometry'/><category term='split'/><category term='fnal'/><category term='editor'/><category term='hidden'/><category term='single top'/><category term='xfig'/><category term='edit'/><category term='xemacs'/><category term='top_cafe'/><category term='escape'/><category term='sign'/><category term='pid'/><category term='color'/><category term='tmva'/><category term='coding'/><category term='certificate'/><category term='fun'/><category term='cafe'/><category term='subcaption'/><category term='plugins'/><category term='cpuinfo'/><category term='pdftk'/><category term='width'/><category term='auto'/><category term='des'/><category term='indent'/><category term='upper case'/><category term='scim'/><category term='export'/><category term='graph'/><category term='kill'/><category term='cheat'/><category term='evolution'/><category term='match'/><category term='string'/><category term='SFU'/><category term='THStack'/><category term='find'/><category term='picture'/><category term='auto-complete'/><category term='layout'/><category term='dos'/><category term='linux'/><category term='argument list too long'/><category term='fermilab'/><category term='browse'/><category term='lower case'/><category term='emacs'/><category term='research'/><category term='counter'/><category term='convert'/><category term='programming'/><category term='加密'/><category term='trigger'/><category term='complete'/><category term='break'/><category term='xstartup'/><category term='mapping'/><category term='sshd'/><category term='caption'/><category term='ascii'/><category term='position'/><category term='viewer'/><category term='autochk.exe'/><category term='netapplet'/><category term='Data'/><category term='end of line'/><category term='jobs'/><category term='cpp'/><category term='axis'/><category term='pdfescape'/><category term='textpos'/><category term='less'/><category term='fdisk'/><category term='password'/><category term='reader'/><category term='profile'/><title type='text'>Sun life</title><subtitle type='html'>The life is too short to be little.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default?start-index=101&amp;max-results=100'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>120</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6447121107226561931</id><published>2011-06-07T10:48:00.000-07:00</published><updated>2011-06-07T10:50:08.352-07:00</updated><title type='text'>linux: check memory usage by 'free'</title><content type='html'>free -m -t&lt;br /&gt;&lt;br /&gt;in MB. &lt;span style="color: rgb(255, 0, 0);"&gt;Note: since the memory is utilized by kernal than it is wasted. If you are curious how much memory you can use for your applications, you should check the 'free' column in the row of '-/+ buffers/cache'.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6447121107226561931?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6447121107226561931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6447121107226561931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6447121107226561931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6447121107226561931'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/06/linux-check-memory-usage-by-free.html' title='linux: check memory usage by &apos;free&apos;'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-914619612034009277</id><published>2011-06-06T11:05:00.000-07:00</published><updated>2011-06-06T11:09:17.285-07:00</updated><title type='text'>linux: sort</title><content type='html'>Use the command&lt;br /&gt;&lt;br /&gt;sort -n -t. -k4&lt;br /&gt;&lt;br /&gt;to sort strings like:&lt;br /&gt;------------------------------&lt;br /&gt;str1.str2.str3.1.txt&lt;br /&gt;str1.str2.str3.10.txt&lt;br /&gt;str1.str2.str3.2.txt&lt;br /&gt;str1.str2.str3.21.txt&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;Use '-t' to define delimiter, '-n' for number sorting, '-k' for column number&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-914619612034009277?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/914619612034009277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=914619612034009277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/914619612034009277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/914619612034009277'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/06/linux-sort.html' title='linux: sort'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4528478743994768253</id><published>2011-06-02T12:50:00.000-07:00</published><updated>2011-06-02T12:52:42.820-07:00</updated><title type='text'>linux: how to generate an animated gif picture</title><content type='html'>&lt;span style="font-style: italic; font-weight: bold;"&gt;gifsicle --loopcount --colors 256 --delay=50 1.gif 2.gif 3.gif &amp;gt; output.gif&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;'delay' is a parameter similar as 'frame rate', 50 means 50/100 seconds between frames.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4528478743994768253?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4528478743994768253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4528478743994768253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4528478743994768253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4528478743994768253'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/06/linux-how-to-generate-animated-gif.html' title='linux: how to generate an animated gif picture'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5582826524302287751</id><published>2011-06-02T12:47:00.000-07:00</published><updated>2011-06-02T12:50:23.162-07:00</updated><title type='text'>linux: convert pictures (jpg) to avi movie</title><content type='html'>If you have pic files like:&lt;br /&gt;drilldata00001.jpg&lt;br /&gt;drilldata00002.jpg&lt;br /&gt;drilldata00003.jpg&lt;br /&gt;&lt;br /&gt;then you can use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mencoder -speed 0.1 "mf://drilldata%05d.jpg" -o movie_drilldata.avi -ovc lavc -lavcopts vcodec=mjpeg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to generate an avi movie. The speed '0.1' is slower, '1' used the default frame rate. '1o' goes faster...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5582826524302287751?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5582826524302287751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5582826524302287751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5582826524302287751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5582826524302287751'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/06/linux-convert-pictures-jpg-to-avi-movie.html' title='linux: convert pictures (jpg) to avi movie'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-192648582740324549</id><published>2011-01-04T09:55:00.001-08:00</published><updated>2011-01-04T09:55:26.445-08:00</updated><title type='text'>linux: merge pdf</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf&lt;/p&gt;&lt;p/&gt;&lt;p/&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-192648582740324549?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/192648582740324549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=192648582740324549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/192648582740324549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/192648582740324549'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/01/linux-merge-pdf.html' title='linux: merge pdf'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3759028165521829793</id><published>2011-01-02T21:03:00.001-08:00</published><updated>2011-01-02T21:03:46.294-08:00</updated><title type='text'>Thinkpad 410 brighness adjustment in ubuntu!</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;http://ubuntuforums.org/showthread.php?t=1515079#post9494941&lt;/p&gt;&lt;p/&gt;&lt;p&gt;Have to add&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;p/&gt;&lt;p&gt;Option "RegistryDwords" "EnableBrightnessControl=1"&lt;/p&gt;&lt;p/&gt;&lt;p&gt;to your /etc/X11/xorg.conf under devices section. Make sure the quotation marks are the same as if you type them.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3759028165521829793?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3759028165521829793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3759028165521829793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3759028165521829793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3759028165521829793'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2011/01/thinkpad-410-brighness-adjustment-in.html' title='Thinkpad 410 brighness adjustment in ubuntu!'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1656025599557125347</id><published>2010-12-08T12:57:00.001-08:00</published><updated>2010-12-08T12:57:06.525-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gedit'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='end of line'/><category scheme='http://www.blogger.com/atom/ns#' term='dos'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>Linux: how to remove ^M at each line end</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;I got an acsii file from a Window's user. If it is a regular windows text file, then I can use a command 'dos2unix' to convert it in unix format. However, it doesn't work. I use 'less' to have a look at it, it looks like:&lt;/p&gt;&lt;p&gt;line1^M line2^M&lt;/p&gt;&lt;p&gt;. If I use emacs to view it, it looks okay like a regular file. In order to convert it to unix format, I use 'gedit' to do the conversion. A user will be reminded that you save as which format...&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/4462074143258065561-5180270152290160403?l=zyliulog.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1656025599557125347?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1656025599557125347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1656025599557125347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1656025599557125347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1656025599557125347'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/12/linux-how-to-remove-m-at-each-line-end.html' title='Linux: how to remove ^M at each line end'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6647296839992689133</id><published>2010-10-30T22:59:00.000-07:00</published><updated>2010-10-30T23:02:23.145-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='page down'/><category scheme='http://www.blogger.com/atom/ns#' term='page up'/><title type='text'>linux: screen</title><content type='html'>screen is a useful command when you do not have other better choice like vnc, specially for background job  running. One thing that bothered me is I cannot page up and down simply even specified  by&lt;br /&gt;&lt;br /&gt;screen -h 2000&lt;br /&gt;&lt;br /&gt;So I have to enter copy/paste mode by: ctrl+a, esc, page down/up&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6647296839992689133?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6647296839992689133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6647296839992689133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6647296839992689133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6647296839992689133'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/10/linux-screen.html' title='linux: screen'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6685254897316316752</id><published>2010-08-25T15:55:00.000-07:00</published><updated>2010-08-25T15:56:31.067-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='renice'/><category scheme='http://www.blogger.com/atom/ns#' term='priority'/><title type='text'>linux: renice</title><content type='html'>from : http://linux.about.com/library/cmd/blcmdl8_renice.htm&lt;br /&gt;&lt;br /&gt;Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their ``nice value'' within the range 0 to &lt;b&gt;PRIO_MAX&lt;/b&gt;  (20). (This prevents overriding administrative fiats.) The super-user may alter the priority of any process and set the priority to any value in the range &lt;b&gt;PRIO_MIN&lt;/b&gt;  (-20) to &lt;b&gt;PRIO_MAX &lt;/b&gt;Useful priorities are: 20 (the affected processes will run only when nothing else in the system wants to), 0 (the ``base'' scheduling priority), anything negative (to make things go very fast).  &lt;a name="lbAE"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6685254897316316752?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6685254897316316752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6685254897316316752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6685254897316316752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6685254897316316752'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/08/linux-renice.html' title='linux: renice'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1173730542800287263</id><published>2010-05-28T20:59:00.000-07:00</published><updated>2010-05-28T21:00:38.733-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='transfer'/><category scheme='http://www.blogger.com/atom/ns#' term='rsync'/><category scheme='http://www.blogger.com/atom/ns#' term='Data'/><title type='text'>linux: data transfter</title><content type='html'>rsync -xval mycomp.xxx.com:/home/xxx .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1173730542800287263?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1173730542800287263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1173730542800287263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1173730542800287263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1173730542800287263'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/05/linux-data-transfter.html' title='linux: data transfter'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3910900194465897235</id><published>2010-04-11T16:50:00.001-07:00</published><updated>2010-04-11T16:52:23.931-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='palette'/><category scheme='http://www.blogger.com/atom/ns#' term='colz'/><category scheme='http://www.blogger.com/atom/ns#' term='gstyle'/><category scheme='http://www.blogger.com/atom/ns#' term='contour'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='setpalette'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><title type='text'>ROOT: make plots more beautiful</title><content type='html'>http://ultrahigh.org/2007/08/20/making-pretty-root-color-palettes/&lt;br /&gt;&lt;br /&gt;In ROOT, we can change its default to make plots more beautiful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;void&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;set_plot_style()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    const Int_t NRGBs = 5;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    const Int_t NCont = 255;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    Double_t red[NRGBs]   = { 0.00, 0.00, 0.87, 1.00, 0.51 };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    Double_t blue[NRGBs]  = { 0.51, 1.00, 0.12, 0.00, 0.00 };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;    gStyle-&gt;SetNumberContours(NCont);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0); font-family: courier new;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3910900194465897235?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3910900194465897235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3910900194465897235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3910900194465897235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3910900194465897235'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/04/root-make-plots-more-beautiful.html' title='ROOT: make plots more beautiful'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8068872562054184360</id><published>2010-04-11T10:14:00.000-07:00</published><updated>2010-04-11T10:22:31.764-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='~'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='key'/><category scheme='http://www.blogger.com/atom/ns#' term='inputrc'/><category scheme='http://www.blogger.com/atom/ns#' term='mapping'/><category scheme='http://www.blogger.com/atom/ns#' term='tilde'/><title type='text'>Linux:bash:about "delete key"</title><content type='html'>When I use "delete key" in some bash terminal, the key sends a tilde "~" instead of deleting the char that is supposed to be deleted.&lt;br /&gt;&lt;br /&gt;Find a solution:&lt;br /&gt;1. In your $HOME directory, create or edit your keyboard-mapping file, $HOME/.inputrc&lt;br /&gt;2. Add one mapping line:&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;"\M-[3~": delete-char&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;3&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;. restart your terminal &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&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/342064194792946930-8068872562054184360?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8068872562054184360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8068872562054184360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8068872562054184360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8068872562054184360'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/04/linuxbashabout-delete-key.html' title='Linux:bash:about &quot;delete key&quot;'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1791471322007150813</id><published>2010-03-29T11:56:00.000-07:00</published><updated>2010-03-29T12:02:46.684-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eps'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='large'/><category scheme='http://www.blogger.com/atom/ns#' term='configure file'/><category scheme='http://www.blogger.com/atom/ns#' term='ps'/><category scheme='http://www.blogger.com/atom/ns#' term='export'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='open office'/><category scheme='http://www.blogger.com/atom/ns#' term='drawing'/><category scheme='http://www.blogger.com/atom/ns#' term='size'/><category scheme='http://www.blogger.com/atom/ns#' term='pdftops'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Linux: how to reduce eps file size?</title><content type='html'>I have couples of eps files which have a large size (&gt;10 MB). Thus when using them in Latex, the output files (either pdf or ps) become very large and very slow to view. So it is necessary to reduce them first. Here provided is an approch working in Linux.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create a new open office drawing file, past your large eps file to the canvas.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Add your canvas hence it has no too much extra-space (magine)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Export your drawing file to a PDF file. Here you can use low compress factors etc.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use "&lt;span style="font-family: courier new;font-size:130%;" &gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;pdftops -eps&lt;/span&gt;&lt;/span&gt; YourFile.pdf" to get your small-size eps file&lt;/li&gt;&lt;/ol&gt;Note: You can use open office drawing to export your file to an eps file directly, however, the eps file is even larger than your original one, so this exporting is not useful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1791471322007150813?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1791471322007150813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1791471322007150813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1791471322007150813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1791471322007150813'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/03/linux-how-to-reduce-eps-file-size.html' title='Linux: how to reduce eps file size?'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1787007959928698117</id><published>2010-01-29T00:18:00.000-08:00</published><updated>2010-01-29T00:19:46.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='overwrite'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='set'/><category scheme='http://www.blogger.com/atom/ns#' term='noclobber'/><title type='text'>Linux: overwrite</title><content type='html'>http://www.cyberciti.biz/tips/howto-keep-file-safe-from-overwriting.html&lt;br /&gt;&lt;br /&gt;&lt;code&gt; set -o noclobber&lt;br /&gt;(no overwrite)&lt;br /&gt;&lt;br /&gt;set +o &lt;/code&gt;&lt;code&gt;noclobber&lt;br /&gt;(overwrite)&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/342064194792946930-1787007959928698117?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1787007959928698117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1787007959928698117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1787007959928698117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1787007959928698117'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/01/linux-overwrite.html' title='Linux: overwrite'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8374441079864410727</id><published>2010-01-29T00:15:00.000-08:00</published><updated>2010-01-29T00:16:54.382-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='depth'/><category scheme='http://www.blogger.com/atom/ns#' term='vnc'/><category scheme='http://www.blogger.com/atom/ns#' term='geometry'/><title type='text'>Linux: VNC</title><content type='html'>I use the following line to start up:&lt;br /&gt;&lt;br /&gt;vncserver :1 -name kde -geometry 1250x760 -depth 24&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8374441079864410727?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8374441079864410727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8374441079864410727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8374441079864410727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8374441079864410727'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2010/01/linux-vnc.html' title='Linux: VNC'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5524316292730115082</id><published>2009-11-18T11:43:00.000-08:00</published><updated>2009-11-18T12:56:24.210-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='fortran'/><category scheme='http://www.blogger.com/atom/ns#' term='subroutine'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Use Fortran subroutines in C++</title><content type='html'>&lt;a href="http://wwwcompass.cern.ch/compass/software/offline/software/fandc/fandc.html"&gt;Good article&lt;/a&gt;&lt;a href="http://arnholm.org/software/cppf77/cppf77.htm"&gt;&lt;br /&gt;&lt;br /&gt;Another one&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5524316292730115082?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5524316292730115082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5524316292730115082' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5524316292730115082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5524316292730115082'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/11/use-fortran-subroutines-in-c.html' title='Use Fortran subroutines in C++'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8242037345524873154</id><published>2009-10-24T20:58:00.000-07:00</published><updated>2009-10-24T21:02:55.520-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='vncserver'/><category scheme='http://www.blogger.com/atom/ns#' term='vncviewer'/><category scheme='http://www.blogger.com/atom/ns#' term='vnc'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='xstartup'/><title type='text'>Linux: vnc via ssh</title><content type='html'>remind myself:&lt;br /&gt;1. start '&lt;span style="color: rgb(204, 0, 0);"&gt;vncserver -name X&lt;/span&gt;' on server computer (that you try to connect by ssh)&lt;br /&gt;   Note: X is a session name which is defined in the file: ~/vnc/xstartup&lt;br /&gt;2. &lt;span style="color: rgb(204, 0, 0);"&gt;ssh -L  5902:localhost:5901 YourAccountName@YourServerID&lt;/span&gt;(or hostname) in one local terminal&lt;br /&gt;3. &lt;span style="color: rgb(204, 0, 0);"&gt;vncviewer  localhost:5902&lt;/span&gt; in your another local terminal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8242037345524873154?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8242037345524873154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8242037345524873154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8242037345524873154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8242037345524873154'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/10/linux-vnc-via-ssh.html' title='Linux: vnc via ssh'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8052540039772114731</id><published>2009-08-14T08:22:00.000-07:00</published><updated>2009-09-18T16:48:23.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gimp'/><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='merge'/><category scheme='http://www.blogger.com/atom/ns#' term='eps'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='pdftk'/><category scheme='http://www.blogger.com/atom/ns#' term='picture'/><category scheme='http://www.blogger.com/atom/ns#' term='insert'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>linux: how to insert an img to pdf files</title><content type='html'>If you want to insert an image (like your picture, signature etc.) to an existing pdf file and you don't have acrobat professional version (that allows you to edit a pdf file within the software). Then you may be able to use the following steps with combination of different tools that are available in linux:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;You have an image file (say, one lovely picture) and one pdf file (Orig.pdf) to which you want to insert your picture&lt;/li&gt;&lt;li&gt;Use "gimp" to open them. For the pdf file, you have to select which page that you want to insert your picture to, and then open the page (NOTE: in order to have good quality and same size as the original page, you may have to set "resolution" as 320. I tried 300 and 400, and realized that 320 is the proper value)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;In "gimp", copy your picture on the pdf page. You can use the menu "Layer -&gt; Scale Layer ..." to scale your picture to fit your requirement.&lt;/li&gt;&lt;li&gt;Save your modified pdf page as one "eps" file.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;In terminal, convert the eps file to a pdf file by "epstopdf MyPage.eps" to get MyPage.pdf&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Then, still in your terminal, use the tool "pdftk" to merge the 2 pdf files (Orig.pdf and MyPage.pdf): &lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);font-family:courier new;" &gt;pdftk A=Orig.pdf B=MyPage.pdf cat A1-4 B1 A6-11 output Combined.pdf&lt;/span&gt;&lt;br /&gt;where we assume MyPage.pdf will be inserted as Page 5 while totoal pages in Orig.pdf are 11 pages.&lt;br /&gt;&lt;br /&gt;Merge pdf files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8052540039772114731?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8052540039772114731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8052540039772114731' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8052540039772114731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8052540039772114731'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/08/linux-how-to-insert-img-to-pdf-files.html' title='linux: how to insert an img to pdf files'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-640657630712128056</id><published>2009-08-13T22:25:00.000-07:00</published><updated>2009-08-13T22:27:03.509-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='pdftk'/><title type='text'>linux:command:pdf: a useful tool</title><content type='html'>In linux, there is a very useful PDF tool called pdftk&lt;br /&gt;&lt;br /&gt;http://www.accesspdf.com/pdftk/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-640657630712128056?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/640657630712128056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=640657630712128056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/640657630712128056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/640657630712128056'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/08/linuxcommandpdf-useful-tool.html' title='linux:command:pdf: a useful tool'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5418486237424722976</id><published>2009-07-02T16:33:00.000-07:00</published><updated>2009-07-02T16:41:50.434-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='feynmen'/><category scheme='http://www.blogger.com/atom/ns#' term='jar'/><category scheme='http://www.blogger.com/atom/ns#' term='java_home'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='ant'/><category scheme='http://www.blogger.com/atom/ns#' term='jaxodraw'/><category scheme='http://www.blogger.com/atom/ns#' term='diagram'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='jdk'/><title type='text'>Java:Compile Errors</title><content type='html'>When I try to install a java program (JaxoDraw) by ant that draws Feynman diagram, I met some errors with my laptop settings. Here are 3 errors that printed on the screen:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/lib/tools.jar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: courier new;"&gt;BUILD FAILED: /work/JaxoDraw-2.0-0/build.xml:xxx:&lt;br /&gt;Unable to find a javac compiler;&lt;br /&gt;com.sun.tools.javac.Main is not on the classpath.&lt;br /&gt;Perhaps JAVA_HOME does not point to the JDK&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-family: courier new;"&gt;/work/JaxoDraw-2.0-0/build.xml:191: Error starting modern compiler&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My solution and checking are:&lt;br /&gt;1. I do not have jdk installed. So I installed it first.&lt;br /&gt;2. Set JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.07/" (which is one java location)&lt;br /&gt;3. compile by ant -lib /usr/lib/jvm/java-6-sun-1.6.0.07/lib/tools.jar (maybe, -lib ... won't be needed any more, I don't know)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5418486237424722976?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5418486237424722976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5418486237424722976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5418486237424722976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5418486237424722976'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/07/javacompile-errors.html' title='Java:Compile Errors'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1036776617154483873</id><published>2009-07-01T18:42:00.000-07:00</published><updated>2009-07-01T18:47:59.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backslash'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='quote'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='slash'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Linux:Shell:Bash: how to search slash or backslash by sed</title><content type='html'>It is tricky to search (or replace) signs slash '\' or backslash '/' by sed. By searching internet, I found 2 approaches:&lt;br /&gt;&lt;br /&gt;1. Put the command line of sed to a file called my.sed:&lt;br /&gt;&lt;br /&gt;/D\\O/p&lt;br /&gt;&lt;br /&gt;(this will print a line containing 'D\O')&lt;br /&gt;&lt;br /&gt;2. Another way is to use single quote instead of double one in your shell command line:&lt;br /&gt;&lt;br /&gt;sed -n '/D\\O/ p' myfile.txt&lt;br /&gt;&lt;br /&gt;(-n is prevent from printing)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1036776617154483873?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1036776617154483873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1036776617154483873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1036776617154483873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1036776617154483873'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/07/linuxshellbash-how-to-search-slash-or.html' title='Linux:Shell:Bash: how to search slash or backslash by sed'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5745609456130696970</id><published>2009-04-20T15:09:00.000-07:00</published><updated>2009-04-20T15:14:13.228-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xdefaults'/><category scheme='http://www.blogger.com/atom/ns#' term='x window'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='xdvi'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='background'/><title type='text'>Linux: how to change background color of xdvi</title><content type='html'>If you want to change background color or whatever other settings of one application under X windows, for example, xdvi, you could set it in your file: &lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;~/.Xdefaults&lt;/span&gt; by&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;xdvi*background: white&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;xdvi*foreground:  black&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;Note: your changes will be starting after you log out and in.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5745609456130696970?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5745609456130696970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5745609456130696970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5745609456130696970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5745609456130696970'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/04/linux-how-to-change-background-color-of.html' title='Linux: how to change background color of xdvi'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3846990532771507322</id><published>2009-04-20T10:58:00.000-07:00</published><updated>2009-04-20T11:01:11.927-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='setrangeuser'/><category scheme='http://www.blogger.com/atom/ns#' term='setrange'/><category scheme='http://www.blogger.com/atom/ns#' term='setlimits'/><category scheme='http://www.blogger.com/atom/ns#' term='limit'/><category scheme='http://www.blogger.com/atom/ns#' term='axis'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><title type='text'>ROOT: how to set TGraph Xaxis range.</title><content type='html'>It seems that I cannot set the x-axis range of TGraph by&lt;br /&gt;&lt;br /&gt;graph-&gt;GetXaxis()-&gt;SetRangeUser(0,1);&lt;br /&gt;&lt;br /&gt;. I have to use&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;graph-&gt;GetXaxis()-&gt;SetLimits(0,1);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to do this task. But the former way is working for y-axis.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3846990532771507322?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3846990532771507322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3846990532771507322' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3846990532771507322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3846990532771507322'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/04/root-how-to-set-tgraph-xaxis-range.html' title='ROOT: how to set TGraph Xaxis range.'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1957634011869979428</id><published>2009-04-09T10:47:00.001-07:00</published><updated>2009-04-09T10:50:39.828-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Linux:shell:BASH: How to delete one line by sed</title><content type='html'>If you want to delete one line containing one word "&lt;span style="color: rgb(51, 204, 0);"&gt;ThisWord&lt;/span&gt;" by sed, then you can do in the way:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;sed -i "/&lt;span style="color: rgb(51, 255, 51);"&gt;ThisWord&lt;/span&gt;/d" YourTextFile.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note, here '-i' is to delete it from the original file. Without it, sed only prints the file on screen. So before using '-i', make sure you are doing correct things.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1957634011869979428?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1957634011869979428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1957634011869979428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1957634011869979428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1957634011869979428'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2009/04/linuxshellbash-how-to-delete-one-line.html' title='Linux:shell:BASH: How to delete one line by sed'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6932157272064754651</id><published>2008-12-18T09:48:00.000-08:00</published><updated>2008-12-18T11:04:31.949-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='echo'/><category scheme='http://www.blogger.com/atom/ns#' term='underline'/><category scheme='http://www.blogger.com/atom/ns#' term='text'/><category scheme='http://www.blogger.com/atom/ns#' term='printf'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='printout'/><category scheme='http://www.blogger.com/atom/ns#' term='escape'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='background'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:shell:Bash: How to change color of your shell printout</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_NWO5a62nb_M/SUqQ4RjOdUI/AAAAAAAAAAg/sUC3JZzBROQ/s1600-h/colortable.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 221px;" src="http://4.bp.blogspot.com/_NWO5a62nb_M/SUqQ4RjOdUI/AAAAAAAAAAg/sUC3JZzBROQ/s320/colortable.gif" alt="" id="BLOGGER_PHOTO_ID_5281192809503552834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;You could use 'echo -e' to change your printout text and background color by some color variables. One of the easiest ways to use them is to define shell variable, for example, define those variables in your shell script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;red='\e[0;31m'&lt;/span&gt; &lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;br /&gt;RED='\e[1;31m'&lt;/span&gt; &lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;br /&gt;blue='\e[0;34m'&lt;/span&gt; &lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;br /&gt;BLUE='\e[1;34m'&lt;/span&gt; &lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;br /&gt;cyan='\e[0;36m'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;CYAN='\e[1;36m'&lt;/span&gt; &lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;br /&gt;NC='\e[0m' # No Color&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. &lt;span style="font-weight: bold;font-family:courier new;" &gt;'\e[0;36m'&lt;/span&gt;: &lt;span style="font-weight: bold;"&gt;0&lt;/span&gt;'s place is the color of background (0, no effect, 1, bold, 4, underline) and &lt;span style="font-weight: bold;"&gt;36&lt;/span&gt; is the text color. You also can change background colors due to color values in the color table. For example, &lt;span style="font-weight: bold;font-family:courier new;" &gt;'\e[41;34m'&lt;/span&gt;   changes background color to red and text color to blue.&lt;br /&gt;&lt;br /&gt;How to print?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;echo -e "$red These texts are in red$NC"&lt;/span&gt; #you must use '-e' to enable interpretation of the backslash-escaped characters, see echo's help.&lt;br /&gt;&lt;br /&gt;or if you want to use it in 'printf':&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;printf "%s\n" "`echo -e $red`These texts are in red`echo -e $NC`"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There is a table of color values attached (this table is from &lt;a href="http://www.funtoo.org/en/articles/linux/tips/prompt/"&gt;the link&lt;/a&gt;). You can find color values what you want.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6932157272064754651?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6932157272064754651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6932157272064754651' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6932157272064754651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6932157272064754651'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/12/linuxshellbash-how-to-change-color-of.html' title='Linux:shell:Bash: How to change color of your shell printout'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_NWO5a62nb_M/SUqQ4RjOdUI/AAAAAAAAAAg/sUC3JZzBROQ/s72-c/colortable.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5130143656025288766</id><published>2008-11-23T12:21:00.000-08:00</published><updated>2008-11-23T12:26:02.951-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tar'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='argument list too long'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>linux:shell: /bin/tar: Argument list too long</title><content type='html'>When you create a tar archive and have an error:&lt;span style="color: rgb(255, 255, 0);"&gt; &lt;span style="color: rgb(0, 153, 0); font-weight: bold; font-style: italic;"&gt;/bin/tar: Argument list too long&lt;/span&gt;&lt;/span&gt;, then you could try an argument of tar:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-family:courier new;" &gt;-T or --files-from=F &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(which allows you to get names to extract or create from file F).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5130143656025288766?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5130143656025288766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5130143656025288766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5130143656025288766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5130143656025288766'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/11/linuxshell-bintar-argument-list-too.html' title='linux:shell: /bin/tar: Argument list too long'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8795735413777498332</id><published>2008-11-12T15:44:00.001-08:00</published><updated>2008-11-12T15:52:03.816-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='while'/><category scheme='http://www.blogger.com/atom/ns#' term='loop'/><category scheme='http://www.blogger.com/atom/ns#' term='break'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>linux:shell: broken 'while' loop</title><content type='html'>When I do a while loop in which there is a command 'ssh', the while loop just goes only one iteration and quits. The problem is from 'ssh' read stdin so that 'while' cannot read anymore and stop afterwards, for example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;while read CompName&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;  do&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;  ssh $CompName 'ls'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;  echo "Done"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;done &lt;&gt;&lt;br /&gt;&lt;br /&gt;In the example, only one iteration is conducted (including the echo line).  The solutions are provided by google searching. One is general one,  I think. 1) Redirect ssh stdin by&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: courier new;"&gt;&lt; /dev/null ssh $CompName 'ls'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2) ssh-specified trick: use '-n':&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ssh -n $CompName 'ls'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8795735413777498332?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8795735413777498332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8795735413777498332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8795735413777498332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8795735413777498332'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/11/linuxshell-broken-while-loop.html' title='linux:shell: broken &apos;while&apos; loop'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5715306435847889162</id><published>2008-11-08T10:51:00.000-08:00</published><updated>2008-11-08T10:58:27.484-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='grep'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='multi'/><category scheme='http://www.blogger.com/atom/ns#' term='egrep'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>linux:shell:bash:grep: multi-grep</title><content type='html'>If I want to search multi words by grep, I could do in the way:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;egrep "a|b|c|d" my_input_file.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then egrep will help you to search OR of a, b, c and d. If searching for AND of multi-words, you can do by pipe:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: courier new;"&gt;grep a my_input_file.txt |grep b |grep c |grep d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. However, sometimes, it is not so easy to use pipe in one line for the above usage. You can always build string of the command first and evaluate it. For example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;cmd="grep $var1 my_input_file.txt|grep $var2"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;cmd="$cmd |grep $var3"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;eval $cmd&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5715306435847889162?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5715306435847889162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5715306435847889162' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5715306435847889162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5715306435847889162'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/11/linuxshellbashgrep-multi-grep.html' title='linux:shell:bash:grep: multi-grep'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-139518509606536927</id><published>2008-11-08T10:40:00.000-08:00</published><updated>2008-11-08T10:50:22.547-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='separator'/><category scheme='http://www.blogger.com/atom/ns#' term='multiple'/><category scheme='http://www.blogger.com/atom/ns#' term='awk'/><category scheme='http://www.blogger.com/atom/ns#' term='regular expression'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='grep'/><category scheme='http://www.blogger.com/atom/ns#' term='separate'/><category scheme='http://www.blogger.com/atom/ns#' term='or'/><category scheme='http://www.blogger.com/atom/ns#' term='multi'/><category scheme='http://www.blogger.com/atom/ns#' term='egrep'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:shell: awk: multiple separators</title><content type='html'>'awk' is a very useful shell command (also a program language) in linux (unix). You split one text line by it. For example, for the line&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;line="aa, b c , d , f "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;what you can do in shell command (bash) is&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;echo $line|awk -F "," '{print $1 $2 $3 $4}' &lt;/span&gt;# to get different columns separated by ","&lt;br /&gt;&lt;br /&gt;However, if you wanna split one line with multi-separators, then you could do in the way, for example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;$ line="aa, bb_ ccd: ee"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;$ echo $line |awk -F ",|_|:" '{print $1$2$3}'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note here "&lt;span style="color: rgb(0, 153, 0);"&gt;|&lt;/span&gt;" will do logic "&lt;span style="color: rgb(0, 153, 0);"&gt;OR&lt;/span&gt;" of all separators. This is similar 'egrep'. If you want to grep multi key words, then you could do in the same way (which has been addressed in my other blog, just search grep ).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-139518509606536927?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/139518509606536927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=139518509606536927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/139518509606536927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/139518509606536927'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/11/linuxshell-awk-multiple-separators.html' title='Linux:shell: awk: multiple separators'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5233813276316833472</id><published>2008-10-23T16:29:00.000-07:00</published><updated>2008-10-23T16:35:06.793-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='counter'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='remove'/><category scheme='http://www.blogger.com/atom/ns#' term='caption'/><category scheme='http://www.blogger.com/atom/ns#' term='subfigure'/><category scheme='http://www.blogger.com/atom/ns#' term='subcaption'/><title type='text'>Latex: subfigure: how to get rid of 'counter' of subcaption</title><content type='html'>&lt;a href="http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/subfigure.pdf"&gt;The subfigure 's tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you want to get rid of 'counter' in front of your sub-captions, use to redefine the command: \thesubfigure by:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold; font-style: italic;"&gt;\renewcommand*{\thesubfigure}{}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(originally one in subfigure.sty is&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;\renewcommand*{\thesubfigure}{(\alph{subfigure})} &lt;/span&gt;&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/342064194792946930-5233813276316833472?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5233813276316833472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5233813276316833472' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5233813276316833472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5233813276316833472'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/10/latex-subfigure-how-to-get-rid-of.html' title='Latex: subfigure: how to get rid of &apos;counter&apos; of subcaption'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2848768950133043294</id><published>2008-10-14T10:16:00.000-07:00</published><updated>2008-10-14T10:19:31.807-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='du'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='quota'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='sort'/><title type='text'>Linux:command: du and quota</title><content type='html'>My disk quota is full on my account at Fermilab (.../home/zhiyil/desktop/...). So I have to clean to get more rooms to store files to SAM. Use the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold; font-family: courier new;"&gt;du -s * .[a-zA-Z]* | sort -n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;get an idea of which file is the largest one so that you could deal with them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2848768950133043294?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2848768950133043294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2848768950133043294' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2848768950133043294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2848768950133043294'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/10/linuxcommand-du-and-quota.html' title='Linux:command: du and quota'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2072157186715521968</id><published>2008-10-09T12:31:00.001-07:00</published><updated>2008-10-09T12:36:22.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='columns'/><category scheme='http://www.blogger.com/atom/ns#' term='width'/><category scheme='http://www.blogger.com/atom/ns#' term='side by side'/><category scheme='http://www.blogger.com/atom/ns#' term='compare'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='difference'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='diff'/><title type='text'>Linux:command:shell: diff</title><content type='html'>One of layouts of printout of the command 'diff' is called: &lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;--side-by-side&lt;/span&gt; or &lt;span style="color: rgb(255, 0, 0);"&gt;-y&lt;/span&gt; &lt;/b&gt;which is also useful. Change the column width, just use      &lt;br /&gt;&lt;dl style="color: rgb(255, 0, 0);" compact="compact"&gt;&lt;dt&gt;&lt;b&gt;-W &lt;/b&gt;&lt;i&gt;columns&lt;/i&gt;  &lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;--width=&lt;/b&gt;&lt;i&gt;columns&lt;/i&gt;&lt;/dt&gt;&lt;/dl&gt;. An example:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;diff --side-by-side -W 130 file1.txt file2.txt&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2072157186715521968?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2072157186715521968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2072157186715521968' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2072157186715521968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2072157186715521968'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/10/linuxcommandshell-diff.html' title='Linux:command:shell: diff'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1084521059770973468</id><published>2008-10-07T16:04:00.000-07:00</published><updated>2008-10-07T16:06:54.741-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seq'/><category scheme='http://www.blogger.com/atom/ns#' term='leading'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='width'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='number'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='zero'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:command: seq</title><content type='html'>When  printing a sequence of numbers, use 'seq'. One of arguments is '-w' or '--equal-width' which will equalize width by padding with leading zeros.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1084521059770973468?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1084521059770973468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1084521059770973468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1084521059770973468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1084521059770973468'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/10/linuxcommand-seq.html' title='Linux:command: seq'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5830164784513531533</id><published>2008-09-18T16:25:00.001-07:00</published><updated>2008-12-08T10:03:27.163-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='check out'/><category scheme='http://www.blogger.com/atom/ns#' term='update'/><category scheme='http://www.blogger.com/atom/ns#' term='cvs'/><title type='text'>CVS: update</title><content type='html'>If you want to checkout the newest version of the package, then do&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;cd &lt;yourpackagedir&gt;&lt;/yourpackagedir&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;cvs update .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;cvs update -A FileWhatYouWantToCheckOut&lt;br /&gt;If you want to get an idea of the difference:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;cvs diff &lt;thefileyouwanttocomparewithoneincvs&gt;&lt;/thefileyouwanttocomparewithoneincvs&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5830164784513531533?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5830164784513531533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5830164784513531533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5830164784513531533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5830164784513531533'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/09/cvs-update.html' title='CVS: update'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5703901743138124708</id><published>2008-09-18T16:25:00.000-07:00</published><updated>2008-09-18T16:26:47.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='chi square'/><category scheme='http://www.blogger.com/atom/ns#' term='calculator'/><category scheme='http://www.blogger.com/atom/ns#' term='freedom'/><title type='text'>statistics:chi-square calculator</title><content type='html'>A page to calculate chi-square.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.stat.tamu.edu/%7Ewest/applets/chisqdemo.html"&gt;http://www.stat.tamu.edu/~west/applets/chisqdemo.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;given freedom.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5703901743138124708?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5703901743138124708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5703901743138124708' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5703901743138124708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5703901743138124708'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/09/statisticschi-square-calculator.html' title='statistics:chi-square calculator'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3945471959815903917</id><published>2008-09-16T17:13:00.000-07:00</published><updated>2008-09-16T17:14:21.852-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdfescape'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='slow'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='pdfedit'/><category scheme='http://www.blogger.com/atom/ns#' term='xfig'/><title type='text'>linux:tools: how to edit pdf files</title><content type='html'>To the Linux Users who need to edit pdf files or figures:&lt;br /&gt;In Linux, you may use pdfedit or xfig etc to edit pdf files, however, they are not good enough. For example, pdfedit is too slow to make users mad ( I am one of victims :-( ). However, you could use an online tool here:&lt;br /&gt;&lt;br /&gt;http://www.pdfescape.com&lt;br /&gt;&lt;br /&gt;to edit your pdf files. Fast, easy to use...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3945471959815903917?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3945471959815903917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3945471959815903917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3945471959815903917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3945471959815903917'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/09/linuxtools-how-to-edit-pdf-files.html' title='linux:tools: how to edit pdf files'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4676719999265238986</id><published>2008-09-16T16:39:00.000-07:00</published><updated>2008-09-16T16:44:00.404-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='utf-8'/><category scheme='http://www.blogger.com/atom/ns#' term='speed'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='slow'/><category scheme='http://www.blogger.com/atom/ns#' term='grep'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='fast'/><category scheme='http://www.blogger.com/atom/ns#' term='locale'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='lc_all'/><title type='text'>Linux:shell:command: speed up 'grep'</title><content type='html'>'grep' is very slow when using it in a UTF-8 mode, specially for a large text file. However, it is fast if using 'C' mode. Use the command 'locale' to check the variable of 'LC_ALL'. Then&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;export LC_ALL="C"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(from &lt;a href="http://tdas.wordpress.com/2008/02/03/speed-up-grep/"&gt;http://tdas.wordpress.com/2008/02/03/speed-up-grep&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;I tested it. The "C" mode is faster 50 times than the regular mode!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4676719999265238986?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4676719999265238986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4676719999265238986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4676719999265238986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4676719999265238986'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/09/linuxshellcommand-speed-up-grep.html' title='Linux:shell:command: speed up &apos;grep&apos;'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1788478862654616090</id><published>2008-08-25T14:45:00.000-07:00</published><updated>2008-08-25T14:48:45.051-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cpuinfo'/><category scheme='http://www.blogger.com/atom/ns#' term='cpu'/><category scheme='http://www.blogger.com/atom/ns#' term='meminfo'/><category scheme='http://www.blogger.com/atom/ns#' term='proc'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Linux: how to get cpu and memory information</title><content type='html'>In linux, look into the files:&lt;span style="font-family: courier new;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; /proc/cpuinfo&lt;/span&gt; &lt;/span&gt;and&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt; /proc/meminfo&lt;/span&gt; to get information about CPU and memory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1788478862654616090?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1788478862654616090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1788478862654616090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1788478862654616090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1788478862654616090'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/08/linux-how-to-get-cpu-and-memory.html' title='Linux: how to get cpu and memory information'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1287337604306000055</id><published>2008-08-19T17:22:00.000-07:00</published><updated>2008-08-19T17:28:10.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdflatex'/><category scheme='http://www.blogger.com/atom/ns#' term='xcolor'/><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='row'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='beamer'/><category scheme='http://www.blogger.com/atom/ns#' term='table'/><category scheme='http://www.blogger.com/atom/ns#' term='tabular'/><category scheme='http://www.blogger.com/atom/ns#' term='usepackage'/><title type='text'>Latex: change row color of table</title><content type='html'>An example here:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;\usepackage[table]{xcolor}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;(if you use pdflatex and/or beamer, perhaps you need to transit 'table' by &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;\documentclass[xcolor=table..]{beamer} or you will have an error like:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic; font-weight: bold;"&gt;! LaTeX Error: Option clash for package xcolor.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\begin{table}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\centering&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;\rowcolors{2}{gray!10}{}\tiny&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\begin{tabular}{c||cc|cc}\hline\hline&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;....&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\end{tabular}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\caption{...}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;\end{table}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1287337604306000055?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1287337604306000055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1287337604306000055' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1287337604306000055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1287337604306000055'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/08/latex-change-row-color-of-table.html' title='Latex: change row color of table'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3421010204360123105</id><published>2008-08-18T22:06:00.000-07:00</published><updated>2008-08-18T22:13:38.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='renew'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='rcS'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='reboot'/><category scheme='http://www.blogger.com/atom/ns#' term='kerberos'/><category scheme='http://www.blogger.com/atom/ns#' term='krb5'/><category scheme='http://www.blogger.com/atom/ns#' term='TMPTIME'/><category scheme='http://www.blogger.com/atom/ns#' term='cleanup'/><category scheme='http://www.blogger.com/atom/ns#' term='kinit'/><title type='text'>Linux: /tmp  cleanup frequency</title><content type='html'>kerberos is working well in my laptop. However, since the temp ticket file krb5*** is stored in /tmp which is cleaned up as reboot, I cannot use kinit -R to renew the ticket-granting ticket even within its renewable life. So what I do is to change /tmp cleanup frequency. How? edit the file:&lt;br /&gt;&lt;br /&gt;/etc/default/rcS&lt;br /&gt;&lt;br /&gt;and check the default value of "TMPTIME", 0 means cleanup as reboot. TMPTIME=14 means that the files in the directory will be deleted in a frequency of 2 weeks. &lt;tt&gt;&lt;br /&gt;&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3421010204360123105?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3421010204360123105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3421010204360123105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3421010204360123105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3421010204360123105'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/08/linux-tmp-cleanup-frequency.html' title='Linux: /tmp  cleanup frequency'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4653823370477135690</id><published>2008-08-15T12:32:00.000-07:00</published><updated>2008-08-15T12:38:36.337-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='RType.h'/><category scheme='http://www.blogger.com/atom/ns#' term='type'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='head'/><category scheme='http://www.blogger.com/atom/ns#' term='bool_t'/><category scheme='http://www.blogger.com/atom/ns#' term='cpp'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='int_t'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><title type='text'>ROOT:  error: `Bool_t' does not name a type</title><content type='html'>In ROOT all 'new' types are defined in the file RType.h and if you wanna use those types in your cpp code you must include any head file based on TObject.h because each head file in ROOT includes RType.h or you just directly include it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4653823370477135690?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4653823370477135690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4653823370477135690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4653823370477135690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4653823370477135690'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/08/root-error-boolt-does-not-name-type.html' title='ROOT:  error: `Bool_t&apos; does not name a type'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7878533975560769888</id><published>2008-08-14T12:32:00.000-07:00</published><updated>2008-08-14T12:36:46.261-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='float'/><category scheme='http://www.blogger.com/atom/ns#' term='here'/><category scheme='http://www.blogger.com/atom/ns#' term='table'/><category scheme='http://www.blogger.com/atom/ns#' term='insert'/><category scheme='http://www.blogger.com/atom/ns#' term='Too many unprocessed floats'/><category scheme='http://www.blogger.com/atom/ns#' term='figure'/><title type='text'>Latex: Error: ! LaTeX Error: Too many unprocessed floats.</title><content type='html'>When using too much floating figures or tables, latex fails to locate those elements, you may counter the error:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;! LaTeX Error: Too many unprocessed floats. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. One of solutions is to use the package 'float' and add [H] in your figure environment. Example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\usepackage{float} %before text body&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\begin{figure}&lt;span style="color: rgb(255, 0, 0);"&gt;[H]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\centering&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\includegraphics[width=0.8\textwidth]{fig_tauid/plot_compare_tauprop_allvar_TTauAndTauIDTree_20080814_Tau_dalpha.eps}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\caption{Comparison between different samples used in tau ID study.}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;\end{figure}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7878533975560769888?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7878533975560769888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7878533975560769888' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7878533975560769888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7878533975560769888'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/08/latex-error-latex-error-too-many.html' title='Latex: Error: ! LaTeX Error: Too many unprocessed floats.'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7688841294002398925</id><published>2008-07-26T08:18:00.000-07:00</published><updated>2008-07-29T13:29:47.671-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openssh'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='configure file'/><category scheme='http://www.blogger.com/atom/ns#' term='kerberos'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='krb5'/><category scheme='http://www.blogger.com/atom/ns#' term='fermilab'/><title type='text'>linux:ssh:kerberos</title><content type='html'>Installing proper kereros and connecting with fermilab by ssh are always a bit tricky. Sometimes it needs old version openssh, sometimes it needs more... I don't know. One guy from Fermilab has a post talking about his experience based on ubuntu:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=486284"&gt;http://ubuntuforums.org/showthread.php?t=486284&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I didn't follow his steps (since I just installed a new system, I need to install what I need). The basic idea is:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;install openssh (I installed newest one)&lt;/li&gt;&lt;li&gt;install krb5&lt;/li&gt;&lt;li&gt;sudo apt-get install krb5-user&lt;/li&gt;&lt;li&gt;copy configure file (/etc/krb5.conf) from any computer of fermilab to your local computer (in the same location)&lt;/li&gt;&lt;/ul&gt;then you could connect !&lt;br /&gt;&lt;br /&gt;Although you could connect, please make sure you have right parameters both in ssh_config and sshd_config due to Fermilab security policy. I have a problem with it (once log in to one computer of clued0, I type klist, nothing found). I got the solution from kerberos-users of fnal:&lt;br /&gt;===&lt;br /&gt;Make sure your SSH client configuration in ssh_config (usually in /etc/ssh/)&lt;br /&gt;contains the lines&lt;br /&gt;&lt;br /&gt;        GSSAPIAuthentication yes&lt;br /&gt;        GSSAPIDelegateCredentials yes&lt;br /&gt;===&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7688841294002398925?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7688841294002398925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7688841294002398925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7688841294002398925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7688841294002398925'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/07/linuxsshkerberos.html' title='linux:ssh:kerberos'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5185251545835665188</id><published>2008-07-26T08:05:00.000-07:00</published><updated>2008-07-26T08:18:06.921-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='t61'/><category scheme='http://www.blogger.com/atom/ns#' term='t41'/><category scheme='http://www.blogger.com/atom/ns#' term='looking'/><category scheme='http://www.blogger.com/atom/ns#' term='layout'/><category scheme='http://www.blogger.com/atom/ns#' term='notebook'/><category scheme='http://www.blogger.com/atom/ns#' term='computer'/><category scheme='http://www.blogger.com/atom/ns#' term='lenovo'/><title type='text'>Computer:laptop: buy a new laptop, Lenovo T61</title><content type='html'>Yesterday I got my new laptop: Lenovo thinkpad T61. I am a thinkpad fan and always crazy about its classic design. IBM thinkpad was gone for ever while this branch was sold to Lenovo. My old one is thinkpad T41 following me for more than 4 years. Until now it is still very stable even after several strong damages by my honey heart (you know what this means :-) ). Before it was acted by falling down, I made an order to my new one: T61, yes, Lenovo T61.&lt;br /&gt;&lt;br /&gt;Looking: thicker than T41. I guess designers wanna better air flow... although T41 is also very good in emiting heats unlike some other brands (the name beginning with 'com', you know this ;-p) which can be able to be a good heater in winter. Of course, the computer is very solid in looking, feeling and essence.&lt;br /&gt;&lt;br /&gt;Layout: I may take a while to be used it. The new layout seems better. for example, mic slot is closer to your ears, more USBs, _shielded_ top light (previous one has a light too, but it is facing your eyes when you looked at it)...&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/342064194792946930-5185251545835665188?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5185251545835665188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5185251545835665188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5185251545835665188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5185251545835665188'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/07/computerlaptop-buy-new-laptop-lenovo.html' title='Computer:laptop: buy a new laptop, Lenovo T61'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3093171585030204072</id><published>2008-07-08T21:22:00.001-07:00</published><updated>2008-07-08T21:25:27.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='substring'/><category scheme='http://www.blogger.com/atom/ns#' term='replacement'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='replace'/><category scheme='http://www.blogger.com/atom/ns#' term='match'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Shell:Bash:replace substring in string</title><content type='html'>&lt;span style="color:#ff0000;"&gt;${string/substring/replacement}&lt;/span&gt; Replace first match of $substring with $replacement&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;${string//substring/replacement}&lt;/span&gt; Replace all matches of $substring with $replacement&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;${string/#substring/replacement}&lt;/span&gt; If $substring matches front end of $string, substitute $replacement for $substring&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;${string/%substring/replacement}&lt;/span&gt; If $substring matches back end of $string, substitute $replacement for $substring&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Refer to &lt;a href="http://tldp.org/LDP/abs/html/refcards.html#AEN20873"&gt;the link&lt;/a&gt; for more information.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3093171585030204072?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3093171585030204072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3093171585030204072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3093171585030204072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3093171585030204072'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/07/shellbashreplace-substring-in-string.html' title='Shell:Bash:replace substring in string'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2938318684005417236</id><published>2008-06-18T09:54:00.000-07:00</published><updated>2008-06-18T09:59:59.235-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='find'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='fast'/><category scheme='http://www.blogger.com/atom/ns#' term='opera'/><category scheme='http://www.blogger.com/atom/ns#' term='browser'/><title type='text'>Software: Opera</title><content type='html'>&lt;p&gt;Firefox released the version of 3.0, however, some favorite add-on are not avaible yet in the mean time. So currently I may not use firefox 3.0. However, a good alternate is opera. Actually I started to use opera since its version of 3.0, now the opera is pretty matual and extremely fast.&lt;/p&gt;&lt;p&gt;At the first, I didn't find how to find or search text in the page what you are browsering, which is not so convenient. Use ctrl+f just actives a window to allow you to search. I want a search function like one in Firefox. Yes, I just find it: use &lt;span style="color:#cc0000;"&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/span&gt; to active it!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2938318684005417236?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2938318684005417236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2938318684005417236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2938318684005417236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2938318684005417236'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/06/software-opera.html' title='Software: Opera'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-538067069518414042</id><published>2008-05-13T17:32:00.000-07:00</published><updated>2008-05-13T18:21:31.588-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='awk'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='quotation mark'/><category scheme='http://www.blogger.com/atom/ns#' term='print'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:Bash:how to print quotation marks in awk</title><content type='html'>&lt;span style="font-size:130%;"&gt;ls | awk '{print "&lt;span style="color: rgb(255, 0, 0);"&gt;'&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;\'&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;'&lt;/span&gt;"$1"'\''"}'&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;awk 'BEGIN { print "Here is a single quote &lt;span style="color: rgb(204, 0, 0);"&gt;\47&lt;/span&gt;" }'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-538067069518414042?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/538067069518414042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=538067069518414042' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/538067069518414042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/538067069518414042'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/05/linuxbashhow-to-print-quotation-marks.html' title='Linux:Bash:how to print quotation marks in awk'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4164765334694824041</id><published>2008-05-06T17:17:00.000-07:00</published><updated>2008-05-06T17:20:25.382-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='change'/><category scheme='http://www.blogger.com/atom/ns#' term='prompt'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:shell: how to change color of your prompt</title><content type='html'>I find a good paper:&lt;br /&gt;&lt;br /&gt;http://www.funtoo.org/en/articles/linux/tips/prompt/&lt;br /&gt;&lt;br /&gt;to teach you how to change the color of your prompt. Actually I did this change long time ago, however, there is a problem in my setting. I didn't use "\[" and "\]" to include the string so that my shell cannot precisely calculate word-wrap and once I input long strings in the command line, my line will mass up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4164765334694824041?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4164765334694824041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4164765334694824041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4164765334694824041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4164765334694824041'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/05/linuxshell-how-to-change-color-of-your.html' title='Linux:shell: how to change color of your prompt'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-9060385779975771025</id><published>2008-04-24T14:31:00.000-07:00</published><updated>2008-04-24T14:36:21.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='cut'/><category scheme='http://www.blogger.com/atom/ns#' term='columns'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>Linux:command:cut</title><content type='html'>see 'man cut' for help information. Example here:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;$ who am i | cut -f1-2 -d " "  #print the first column&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;$ who am i | cut -f2- -d " "    #print non-first columns&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-9060385779975771025?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/9060385779975771025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=9060385779975771025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9060385779975771025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9060385779975771025'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/04/linuxcommandcut.html' title='Linux:command:cut'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3758737095643036349</id><published>2008-04-02T12:13:00.000-07:00</published><updated>2008-04-24T13:59:17.042-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='map'/><category scheme='http://www.blogger.com/atom/ns#' term='cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>Web:cluster maps</title><content type='html'>http://www.clustrmaps.com/getone.php&lt;br /&gt;&lt;a href="http://www4.clustrmaps.com/counter/maps.php?url=http://zyliu2005.blogspot.com/"&gt;http://www4.clustrmaps.com/counter/maps.php?url=http://zyliu2005.blogspot.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www4.clustrmaps.com/counter/maps.php?url=http://zyliu2005.blogspot.com/" id="clustrMapsLink"&gt;&lt;img src="http://www4.clustrmaps.com/counter/index2.php?url=http://zyliu2005.blogspot.com/" style="border:0px;" alt="Locations of visitors to this page" title="Locations of visitors to this page" id="clustrMapsImg" onerror="this.onError=null; this.src='http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://www2.clustrmaps.com'" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3758737095643036349?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3758737095643036349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3758737095643036349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3758737095643036349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3758737095643036349'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/04/webcluster-maps.html' title='Web:cluster maps'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-9027103274458087047</id><published>2008-03-27T16:04:00.000-07:00</published><updated>2008-03-27T16:19:20.460-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='reader'/><category scheme='http://www.blogger.com/atom/ns#' term='plugins'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='acrobat'/><category scheme='http://www.blogger.com/atom/ns#' term='viewer'/><category scheme='http://www.blogger.com/atom/ns#' term='newlibrary'/><category scheme='http://www.blogger.com/atom/ns#' term='pluginreg'/><category scheme='http://www.blogger.com/atom/ns#' term='browse'/><title type='text'>linux: open pdf within a browser window AND how to browse e-books from NetLibrary</title><content type='html'>Lots of interesting e-books from our SFU library are based on the site of www.netlibrary.com . The readers have to go to the online lib. However, the NetLib didn't provide Linux users about their reader softerware (only for windows users). I notice that essentially when one reads an e-book online, it is a pdf file downloaded (only one page each time). No need special reader at all! However, my browser cannot open pdf file within a browser window so that I have to click a diagostic window to save it or read it by certain pdf software. If I can read pdf files within the browser, then the life becomes simpler. No need to open the pdf file each time, just read the book in the browser! I tried some approaches by following instructions on the internet. Finally I solve the problem. I think the essential steps are also useful for windows users.&lt;br /&gt;&lt;br /&gt;- type : about:plugins in your web address blank line to see if acrobat reader plugins over there. If not, see the next&lt;br /&gt;- try to find the lib file which should be located in the directory where acrobat reader is installed, in my case, it is:&lt;br /&gt;&lt;br /&gt;/opt/Adobe/Reader8/Browser/intellinux/nppdf.so . copy it over to the directory where&lt;br /&gt;&lt;br /&gt;firefox is installed, in my case,&lt;br /&gt;&lt;br /&gt;/home/myusername/.mozilla/plugins/&lt;br /&gt;&lt;br /&gt;- check about:plugins again. If not, read the next line.&lt;br /&gt;- re-initialize the data base, remove files pluginreg.dat where your firefox is installed.&lt;br /&gt;- I guess the problem should be solved. I refer to the web page here:&lt;br /&gt;&lt;br /&gt;http://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-9027103274458087047?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/9027103274458087047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=9027103274458087047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9027103274458087047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9027103274458087047'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/03/linux-open-pdf-within-browser-window.html' title='linux: open pdf within a browser window AND how to browse e-books from NetLibrary'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5137273717728693516</id><published>2008-03-09T14:46:00.000-07:00</published><updated>2008-03-09T14:58:05.828-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='auto-complete'/><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='complete'/><category scheme='http://www.blogger.com/atom/ns#' term='compare'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='cheat'/><title type='text'>Emacs: how to auto-complete word</title><content type='html'>Both vim and emacs have a function to auto-complete words. For example, in emacs, type "M-/" then it will help you automatically complete the word currently you are typing in. This specially is useful as programming.&lt;br /&gt;&lt;br /&gt;Also, I find a good file to compare commands in vim and emacs. In order to avoid the original page is dead, I post it here for reference. The original address is: &lt;a href="http://karl-voit.at/vim-emacs-cheatsheet_of_freezing_hell.txt"&gt;http://karl-voit.at/vim-emacs-cheatsheet_of_freezing_hell.txt&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;pre&gt;,----&lt;br /&gt;| emacs-stamp: Time-stamp: &lt;2006-11-07&gt;&lt;br /&gt;| vim-stamp: Latest change: Wed Nov 07 15:34:18 CET 2007&lt;br /&gt;| .... whichever comes last *ggg*&lt;br /&gt;|&lt;br /&gt;| Title:   vim7-emacs21-cheatsheet of freezing hell&lt;br /&gt;|          ... tries to combine the two editors of choice&lt;br /&gt;|&lt;br /&gt;| Author:  Karl Voit&lt;br /&gt;| Purpose: learn emacs21 _and_ vim (for myself)&lt;br /&gt;| License: Creative Commons http://creativecommons.org/licenses/by/2.5/&lt;br /&gt;| Status:  constantly modified and enlarged&lt;br /&gt;`----&lt;br /&gt;&lt;br /&gt;================================================================================&lt;br /&gt;Editor shortcuts: Emacs and vim       vim                   emacs21&lt;br /&gt;================================================================================&lt;br /&gt;&lt;br /&gt;exit                                  :q                    C-x C-c&lt;br /&gt;save                                  :w    :w!             C-x C-s&lt;br /&gt;save as                               :w &lt;path name=""&gt;&lt;br /&gt;&lt;br /&gt;save and exit                         :wq         (or: ZZ)&lt;br /&gt;exit without saving                   :q!         (or: ZQ)&lt;br /&gt;&lt;br /&gt;open file                             :e(dit) file          C-x C-f&lt;br /&gt;open file read only                                         C-x C-r&lt;br /&gt;re-read file (discard changes)        :e(dit)!&lt;br /&gt;&lt;br /&gt;edit file under cursor                gf       (goto file)&lt;br /&gt;&lt;br /&gt;undo last changes                     u          (or: C-_)  C-_&lt;br /&gt;undo one change                       :u(ndo)&lt;br /&gt;undo latest changes on current line   U&lt;br /&gt;redo                                  C-r&lt;br /&gt;&lt;br /&gt;repeat last change                    .&lt;br /&gt;&lt;br /&gt;append text after cursor              a&lt;br /&gt;append text after EOL                 A&lt;br /&gt;&lt;br /&gt;insert text after cursor              i&lt;br /&gt;insert text before first non-whitesp. I&lt;br /&gt;&lt;br /&gt;insert line below cursor and insert   o&lt;br /&gt;insert line above cursor and insert   O&lt;br /&gt;&lt;br /&gt;mark char begin                       v  (column: C-v|C-q)  C-Space&lt;br /&gt;mark line begin                       V&lt;br /&gt;&lt;br /&gt;restore last selection                gv&lt;br /&gt;&lt;br /&gt;copy marked part                      y                     M-w&lt;br /&gt;paste marked part                     p                     C-y           "yank"&lt;br /&gt;cut marked part                       c                     C-w&lt;br /&gt;delete marked part                    d&lt;br /&gt;&lt;br /&gt;delete char                           x                     DEL&lt;br /&gt;delete line                           dd     (or: :d&lt;num&gt;)&lt;br /&gt;copy current line                     yy           (or: Y)&lt;br /&gt;delete to end of word                 cw     (change word)  M-d&lt;br /&gt;delete current word                   caw&lt;br /&gt;delete to EOL                         D                     C-k&lt;br /&gt;&lt;br /&gt;toggle overwrite/insert mode          INS          (or: R)  M-x overwrite-mode&lt;br /&gt;replace current char with &lt;char&gt;      r&lt;char&gt;&lt;br /&gt;&lt;br /&gt;repeat next &lt;cmd&gt; X times             X&lt;cmd&gt;                C-u X &lt;cmd&gt;&lt;br /&gt;&lt;br /&gt;complete word                                               M-/&lt;br /&gt;complete word backward                C-P                   M-/&lt;br /&gt;complete word forward                 C-N                   M-/&lt;br /&gt;&lt;br /&gt;cancel                                C-c                   C-g&lt;br /&gt;&lt;br /&gt;redraw                                C-l&lt;br /&gt;&lt;br /&gt;file info                             C-g&lt;br /&gt;file info (verbose)                   g C-g&lt;br /&gt;&lt;br /&gt;set auto indent                       :set ai               M-x auto-fill-mode&lt;br /&gt;                                    :set textwidth=0&lt;br /&gt;&lt;br /&gt;execute shell code &lt;cmd&gt;              :r(ead) ! &lt;cmd&gt;&lt;br /&gt;&lt;br /&gt;show whitespaces                      :set list&lt;br /&gt;&lt;br /&gt;insert &lt;file&gt;                         :r(ead) &lt;file&gt;        M-x insert-file&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------- Help&lt;br /&gt;&lt;br /&gt;show help of cmd XY                   :help XY&lt;br /&gt;show man-page of current word         K&lt;br /&gt;grep help                             :helpg foobar&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------ Buffers&lt;br /&gt;&lt;br /&gt;close buffer                          C-w c    :clo(se)     C-c k&lt;br /&gt;close all buffers but current         C-w o    :on(ly)&lt;br /&gt;&lt;br /&gt;open file for writing                                       C-x C-f&lt;br /&gt;open file for reading                                       C-x C-r&lt;br /&gt;&lt;br /&gt;change to previous buffer             C-^      C-6          C-x b&lt;br /&gt;change to buffer &lt;xy&gt; number &lt;12&gt;     &lt;12&gt; C-^   &lt;12&gt; C-6   C-x b &lt;xy&gt;&lt;br /&gt;                                    :b &lt;12&gt;&lt;br /&gt;split vertically                      C-w s    :sp(lit)&lt;br /&gt;split horizontally                    C-w v    :vs(split)&lt;br /&gt;&lt;br /&gt;duplicate buffer                      :new&lt;br /&gt;&lt;br /&gt;change to (upper) high buffer         C-w h&lt;br /&gt;change to lower buffer                C-w l&lt;br /&gt;&lt;br /&gt;list buffers                          :ls&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------- Navigation&lt;br /&gt;&lt;br /&gt;goto line &lt;12&gt;                        &lt;12&gt;G                 M-x goto-line &lt;12&gt;&lt;br /&gt;&lt;br /&gt;                      up                k                    C-p&lt;br /&gt;Cursor movements   left    right      h     l               C-f   C-f&lt;br /&gt;                     down             j                      C-n&lt;br /&gt;&lt;br /&gt;buffer begin                          1G       gg           M-&lt;&gt;&lt;br /&gt;&lt;br /&gt;line begin ... end                    0 ... $               C-a ... C-e&lt;br /&gt;line begin (first non-whitespace)       ^&lt;br /&gt;&lt;br /&gt;word next                             w                     M-f&lt;br /&gt;word last                             b                     M-b&lt;br /&gt;&lt;br /&gt;sentence previous                     (                     M-a&lt;br /&gt;sentence next                         )                     M-e&lt;br /&gt;&lt;br /&gt;paragraph begin                       {                     M-{&lt;br /&gt;paragraph end                         }                     M-}&lt;br /&gt;&lt;br /&gt;goto last place                       C-o&lt;br /&gt;goto next place (if any)              C-i&lt;br /&gt;&lt;br /&gt;goto begin of last marked part        '&lt;&gt;&lt;br /&gt;&lt;br /&gt;page up                               C-b                   M-v&lt;br /&gt;page down                             C-f                   C-v&lt;br /&gt;&lt;br /&gt;1/2 page up                           C-u&lt;br /&gt;1/2 page down                         C-d&lt;br /&gt;&lt;br /&gt;scroll one line down (keep cursor)    C-e&lt;br /&gt;scroll one line up (keep cursor)      C-y&lt;br /&gt;&lt;br /&gt;remember position (as p)              m p                   C-x r m&lt;br /&gt;jump to position (p)                  ` p                   C-x r b&lt;br /&gt;jump to last marked position          ``&lt;br /&gt;jump to last place edited             `.&lt;br /&gt;list all marked positions             :marks&lt;br /&gt;&lt;br /&gt;place current line in the center      z.                    C-l        "locate"&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------ Search and replace&lt;br /&gt;&lt;br /&gt;current line: goto character X        fC&lt;br /&gt;current line: goto character X backw. FC&lt;br /&gt;current line: go before character X   tC&lt;br /&gt;current line: go before char. X backw.TC&lt;br /&gt;&lt;br /&gt;activate incremental search           :set incsearch&lt;br /&gt;search incremental                    (if activated) /      C-s&lt;br /&gt;search incremental backwards          (if activated) ?      C-r&lt;br /&gt;repeat search                         n                     C-s or C-r&lt;br /&gt;repeat search in other direction      N&lt;br /&gt;&lt;br /&gt;replace                               s/foo/bar(/gci)       M-%&lt;br /&gt;&lt;br /&gt;search word under cursor              *&lt;br /&gt;search word under cursor backward     #&lt;br /&gt;search local variable under cursor    gd&lt;br /&gt;search buffer variable under cursor   gD&lt;br /&gt;&lt;br /&gt;search correspondent brace/bracker/.. %&lt;br /&gt;&lt;br /&gt;unhighlight the search patterns       :noh&lt;br /&gt;&lt;br /&gt;search for regular expressions        /REG                  C-M-s&lt;br /&gt;repeat search for reg. expr.          n                     C-M-s&lt;br /&gt;search in other directory for reg.ex. N                     C-M-r&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------- Formatting&lt;br /&gt;&lt;br /&gt;lowercase current word                :map &lt;esc&gt;l viwuW     M-l&lt;br /&gt;capitalize current word               :map &lt;esc&gt;c viwu~W    M-c&lt;br /&gt;uppercase current word                :map &lt;esc&gt;u viwUW     M-u&lt;br /&gt;toggle case of current word           :map &lt;esc&gt;t viw~W&lt;br /&gt;toggle case of char under cursor      ~&lt;br /&gt;&lt;br /&gt;quote text                                                  C-c C-q&lt;br /&gt;format line&lt;br /&gt;format paragraph                      gqap                  M-q&lt;br /&gt;format whole document                 gggqG&lt;br /&gt;&lt;br /&gt;shift marked lines to left            &lt;&lt;&gt;&gt;&lt;br /&gt;set shiftwidth                        :set shiftwidth=4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------- Macros&lt;br /&gt;&lt;br /&gt;begin recording (name: foo)           qfoo                  C-x (&lt;br /&gt;end recording                         q                     C-x )&lt;br /&gt;&lt;br /&gt;execute macro foo                     @foo                  C-x e&lt;br /&gt;repeat macro execution                @@&lt;br /&gt;&lt;br /&gt;edit macro                            "ap&lt;br /&gt;end edit macro&lt;br /&gt;&lt;br /&gt;save macro&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------ Columns&lt;br /&gt;&lt;br /&gt;mark column begin                     C-v   (Windows: C-q)  C-space&lt;br /&gt;&lt;br /&gt;set width mark to longest line        $&lt;br /&gt;&lt;br /&gt;copy column(s)                        "*y&lt;br /&gt;paste column(s)                       p                     C-x r y       "yank"&lt;br /&gt;cut column(s)                         d                     C-x r k       "kill"&lt;br /&gt;&lt;br /&gt;insert column text (foo)              (visual:) Ifoo ESC    C-x r t foo&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------- Folding / Outline&lt;br /&gt;&lt;br /&gt;hide all                              zC                    C-c C-t&lt;br /&gt;show all                              zO                    C-c C-a&lt;br /&gt;toggle hide/show all                  zi&lt;br /&gt;&lt;br /&gt;hide this                             zc                    C-c C-d&lt;br /&gt;show this                             zo                    C-c C-s&lt;br /&gt;&lt;br /&gt;goto previous                         zk                    C-c C-p&lt;br /&gt;goto next                             zj                    C-c C-n&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------- Special Characters&lt;br /&gt;&lt;br /&gt;enter carriage return                 C-q ENTER             C-q ENTER&lt;br /&gt;enter newline                         C-q C-j               C-q C-j&lt;br /&gt;enter spoiler character ^L            C-q C-l               C-q C-l&lt;br /&gt;&lt;br /&gt;------------------------------------------------------ Compare/merge differences&lt;br /&gt;&lt;br /&gt;start file A and B in compare mode    vimdiff A B           emerge A B&lt;br /&gt;&lt;br /&gt;emacs: goto fast-mode (C-c C-c doesn't have to be used)     C-c C-c f&lt;br /&gt;emacs: goto edit-mode                                       e&lt;br /&gt;&lt;br /&gt;next difference                       ]c                    (C-c C-c) n&lt;br /&gt;previous difference                   [c                    (C-c C-c) p&lt;br /&gt;goto difference X                                           C-u X j&lt;br /&gt;&lt;br /&gt;change to left file (higher)          C-w h&lt;br /&gt;change to right file (lower)          C-w l&lt;br /&gt;&lt;br /&gt;take this version                     :[range]diffpu(t)  dp&lt;br /&gt;take other version                    :[range]diffg(et)  do&lt;br /&gt;&lt;br /&gt;take A-version                                              (C-c C-c) a&lt;br /&gt;take B-version                                              (C-c C-c) b&lt;br /&gt;&lt;br /&gt;quit without saving the merge                               C-]&lt;br /&gt;recenter buffers                                            l&lt;br /&gt;&lt;br /&gt;emacs: http://www.cs.cmu.edu/cgi-bin/info2www?(emacs)Merge%20Commands&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------- Version Systems&lt;br /&gt;&lt;br /&gt;vim: install vcsnursery from http://www.vim.org/scripts/script.php?script_id=1898&lt;br /&gt;&lt;br /&gt;commit changes                        :VCSCommit            C-x v v&lt;br /&gt;show differences between versions     :VCSVimDiff           C-x v =&lt;br /&gt;show log of current file              :VCSLog               C-x v l&lt;br /&gt;revert changes to most recent version :VCSRevert            C-x v u&lt;br /&gt;update current file from repos        :VCSUpdate&lt;br /&gt;&lt;br /&gt;add file to repos                     :VCSAdd               C-x v i&lt;br /&gt;show annotations                      :VCSAnnotate&lt;br /&gt;delete file (incl. from repos)        :VCSDelete&lt;br /&gt;show difference to previous version   :VCSDiff&lt;br /&gt;view a certain version                :VCSReview 42         C-x v r&lt;br /&gt;show detailed infos                   :VCSStatus&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;================================================================================&lt;br /&gt;vim specific shortcuts:&lt;br /&gt;================================================================================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;================================================================================&lt;br /&gt;Own vim macros&lt;br /&gt;================================================================================&lt;br /&gt;&lt;br /&gt;" move line before boxquote into title field of boxquote&lt;br /&gt;map ,vkbqt kDj6lp0&lt;br /&gt;&lt;br /&gt;" remove/delete trailing whitespace:&lt;br /&gt;nmap ;tr :%s/\s\+$//&lt;br /&gt;vmap ;tr  :s/\s\+$//&lt;br /&gt;&lt;br /&gt;"kill quoted sig&lt;br /&gt;map ,kqs G?^&gt; -- $&lt;cr&gt;d}&lt;br /&gt;&lt;br /&gt;" change subject (Subjectaenderung) (Source: Michael Prokop)&lt;br /&gt;map ,vkcs :set nohlsearch&lt;cr&gt;&lt;br /&gt;  \:1,/^Subject: /g//s/^\(Subject: \)\(Re: \)\=\(.*\)$/&lt;br /&gt;  \\1 (was: \3)/&lt;cr&gt;9&lt;space&gt;i&lt;br /&gt;&lt;br /&gt;" simple quote (insert quote after this line)&lt;br /&gt;map ,vksq 0ji&lt;cr&gt;&lt;cr&gt;&lt;cr&gt;&lt;esc&gt;kki&lt;br /&gt;&lt;br /&gt;" quote between line (insert quote in between the line)&lt;br /&gt;map ,vkqbl i&lt;cr&gt;&lt;cr&gt;&lt;cr&gt;&lt;cr&gt;&lt;esc&gt;0kxkkxjxi&lt;br /&gt;&lt;br /&gt;" update timestamp (make sure that "set paste" is NOT set&lt;br /&gt;iab Tue Jul 31 13:03:52 CEST 2007 &lt;c-r&gt;=strftime("%a %b %d %T %Z %Y")&lt;cr&gt;&lt;br /&gt;"  map ,L  1G/Latest change:\s*/e+1&lt;cr&gt;CYDATE&lt;esc&gt;&lt;br /&gt;map ,L  1G/Latest change:\s*/e&lt;cr&gt; CYDATE&lt;esc&gt;&lt;br /&gt;&lt;br /&gt;" voit 20070306:&lt;br /&gt;" ESC-c ... capitalize current word (and goto next word)&lt;br /&gt;map &lt;esc&gt;c viwu~W&lt;br /&gt;" ESC-l ... lowercase current word (and goto next word)&lt;br /&gt;map &lt;esc&gt;l viwuW&lt;br /&gt;" ESC-u ... uppercase current word (and goto next word)&lt;br /&gt;map &lt;esc&gt;u viwUW&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FIXXME: Bereichsangaben&lt;br /&gt;&lt;br /&gt;" Using (g)vim to colorize sourcecode (from: http://barnson.org/node/295#comment-26758)&lt;br /&gt;" used here: Visual Basic syntax&lt;br /&gt;:cal SetSyn("vb")&lt;br /&gt;:syntax on&lt;br /&gt;:set background=light&lt;br /&gt;:runtime! syntax/2html.vim&lt;br /&gt;ggVG (to select all in this top frame)&lt;br /&gt;"+y (to copy to clipboard)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;              N O T E S   F O L L O W I N G&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;...................................................................&lt;br /&gt;&lt;br /&gt;Svens Vortrag:&lt;br /&gt;------------------------------------------------------------------------- Suchen&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------ Eingabe von Sonderzeichen&lt;br /&gt;&lt;br /&gt;Eingabe über ASCII-Nummer:&lt;br /&gt;ß 223  ä 228  ö 246  ü 252&lt;br /&gt;&lt;br /&gt;Zwei-Zeichen-Kombination:&lt;br /&gt;Digraph Input!  a + : -&gt; ä&lt;br /&gt;&lt;br /&gt;automatische Einrücken (indenting)&lt;br /&gt;Clipboards/Register&lt;br /&gt;Markieren von Text&lt;br /&gt;von Position bis Position&lt;br /&gt;zeilenweise (block)&lt;br /&gt;als Rechteck -&gt; Tabelle&lt;br /&gt;&lt;br /&gt;Zeile?  DOS/Windows, Unix, oder Mac?&lt;br /&gt;Automatische Erkennung&lt;br /&gt;Beliebige Wahl&lt;br /&gt;&lt;br /&gt;%page&lt;br /&gt;Anzeige - Grundlegend&lt;br /&gt;&lt;br /&gt;Aktuelle Position des Cursors (Lineal,ruler)&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;ASCII-Wert von Zeichen&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;Sichtbarmachung von speziellen Zeichen&lt;br /&gt;(TABs, trailing spaces)&lt;br /&gt;:set list -&gt; schon oben drinnen&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;geteilte Fenster (horizontal,vertikal)&lt;br /&gt;-&gt; TextKopieren, Vergleiche&lt;br /&gt;&lt;br /&gt;%page&lt;br /&gt;Anzeige - Fortgeschritten&lt;br /&gt;&lt;br /&gt;Syntax Coloring / Highlighting&lt;br /&gt;%pause&lt;br /&gt;Achtung: ersetzt keinen Parser!&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;Struktur der Datei anzeigen - Baumstruktur&lt;br /&gt;Text verstecken&lt;br /&gt;Syntax dependant&lt;br /&gt;Kommandos zum Einklappen und Verstecken&lt;br /&gt;&lt;br /&gt;%page&lt;br /&gt;Abkürzungen - Abbreviations&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;einfache Wortexpansion:&lt;br /&gt;LS -&gt; Leutheuser-Schnarrenberger&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;mehrere Worte:&lt;br /&gt;LT -&gt; Linux-Tag Chemnitz&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;mehr als nur Buchstaben:&lt;br /&gt;function_mit_viel_bedeutung(*par1,par2)&lt;br /&gt;* = neue Cursorposition&lt;br /&gt;&lt;br /&gt;%pause&lt;br /&gt;mehrzeilige Floskeln:&lt;br /&gt;&lt;br /&gt;Sehr geehrter Herr Spammer..&lt;br /&gt;..Aufnahme ins Killfile..&lt;br /&gt;Gründe:  [Liste]&lt;br /&gt;Mit  freundlichen Grüßen&lt;br /&gt;&lt;br /&gt;%page&lt;br /&gt;Goodies&lt;br /&gt;&lt;br /&gt;Autosave&lt;br /&gt;Backup files&lt;br /&gt;Compiler&lt;br /&gt;Filtering&lt;br /&gt;Sessionfile&lt;br /&gt;Syntax Input&lt;br /&gt;&lt;br /&gt;%page&lt;br /&gt;Grenzen - Limits&lt;br /&gt;&lt;br /&gt;Endlicher Speicher -&gt; Grenzen&lt;br /&gt;&lt;br /&gt;Dateigröße&lt;br /&gt;Dateinamenlänge&lt;br /&gt;Displaybreite&lt;br /&gt;&lt;br /&gt;Zeilenlänge&lt;br /&gt;Zeilenanzahl&lt;br /&gt;&lt;br /&gt;Bufferanzahl&lt;br /&gt;Registergröße&lt;br /&gt;&lt;br /&gt;,----&lt;br /&gt;| 2do&lt;br /&gt;`----&lt;br /&gt;&lt;br /&gt;tabs (vim7)&lt;br /&gt;&lt;br /&gt;retab + ersetzen:&lt;br /&gt;:set tabstop=4&lt;br /&gt;:set expandtab&lt;br /&gt;:%retab&lt;br /&gt;&lt;br /&gt;^M herauslöschen&lt;br /&gt;&lt;br /&gt;align-current&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;query option value        :set OPTION?&lt;br /&gt;&lt;br /&gt;folding + examples (emacs-2do-list and vim-2do-list)&lt;br /&gt;&lt;br /&gt;mika@grml ~ % grep boxes .vimrc&lt;br /&gt;" 040420 introduced history 8-) and slightly modified 'boxes'-stuff&lt;br /&gt;" 030219 VBlockquote.vim - like the tool "boxes" works ;-)&lt;br /&gt;" 030219 Call boxes - with some funny box-styles ;o)&lt;br /&gt;map ;0 &lt;esc&gt;:'&lt;,'&gt;!boxes&lt;br /&gt;map ;1 &lt;esc&gt;:'&lt;,'&gt;!boxes -d boxquote&lt;br /&gt;map ;2 &lt;esc&gt;:'&lt;,'&gt;!boxes -d peek -a c -s 40x5&lt;br /&gt;map ;3 &lt;esc&gt;:'&lt;,'&gt;!boxes -d c-cmt&lt;br /&gt;map ;4 &lt;esc&gt;:'&lt;,'&gt;!boxes -d dog -a c&lt;br /&gt;map ;5 &lt;esc&gt;:'&lt;,'&gt;!boxes -d simple -a&lt;br /&gt;jr&lt;br /&gt;map ;6 &lt;esc&gt;:'&lt;,'&gt;!boxes -d headline&lt;br /&gt;--&gt; Test! (FIXXME)&lt;br /&gt;--&gt; boxes = extra-tool!&lt;br /&gt;&lt;br /&gt;"boxing" text              C-c q&lt;br /&gt;title of box               C-c w&lt;br /&gt;&lt;br /&gt;Snippets einfügen wie zB &lt;a href="http://www.blogger.com/post-edit.g?blogID=342064194792946930&amp;amp;postID=5137273717728693516"&gt;&lt;/a&gt;:&lt;br /&gt;:he :iabbrev&lt;br /&gt;:he mapmode-i&lt;br /&gt;(Vim7: C-x C-o)&lt;br /&gt;&lt;br /&gt;Ranges: . .+3 % ,. .,$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.........................................................&lt;br /&gt;&lt;br /&gt;,----&lt;br /&gt;| notes from a former talk:&lt;br /&gt;`----&lt;br /&gt;:set tw=50 ... set texxt width&lt;br /&gt;map &lt;c-j&gt; gqip ... macro setzen&lt;br /&gt;:set ft=html&lt;br /&gt;:set paste ... Einfuegen ohne Umformatierung&lt;br /&gt;:set nopaste ...&lt;br /&gt;:set sw&lt;tab&gt; ... Option vervollstaendigen lassen&lt;br /&gt;:set sw&lt;tab&gt;=&lt;tab&gt; ... Option plus Wert vervollstaendigen lassen&lt;br /&gt;:set listchars=tab:»·,trail:·,,eol:$ ... wie sollen list-Elemente usw visualisiert werden?&lt;br /&gt;:w datei:.neu ... Kopie mit Anhaengsel ".neu" erstellen, Buffer bleibt bei "datei"&lt;br /&gt;:!ls -l % ... shell-Kommando ls aufrufen (%=aktueller Buffername)&lt;br /&gt;:!&lt;up&gt; ... letzter Befehl, der mit "!" begonnen hat&lt;br /&gt;C-w n ... C-w=Fensterbefehl, n=new&lt;br /&gt;C-w C-r ... unterster Buffer oben einfuegen (rotate)&lt;br /&gt;:help C-v C-w ... show help on windows-commands (C-v nur um C-w einzugeben)&lt;br /&gt;&lt;br /&gt;vimdiff&lt;br /&gt;:diffget ... Aenderungen in den Buffer uebernehmen&lt;br /&gt;&lt;br /&gt;%%% vim: ft=mgp ai noet ts=2&lt;br /&gt;&lt;br /&gt;------------------------------------------&lt;br /&gt;Emacs und ispell:&lt;br /&gt;&lt;br /&gt;;; User-Dictionary ohne Nachfrage speichern&lt;br /&gt;(setq ispell-silently-savep t)&lt;br /&gt;(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)&lt;br /&gt;(autoload 'flyspell-mode "flyspell" "On-the-fly ispell." t)&lt;br /&gt;(setq ispell-program-name "aspell")&lt;br /&gt;&lt;br /&gt;;; Initialize spell checking&lt;br /&gt;(setq-default ispell-program-name "aspell")&lt;br /&gt;(set-default 'ispell-change-directory "ndeutsch8-15")&lt;br /&gt;(set-default 'ispell-local-dictionary "ndeutsch8-15")&lt;br /&gt;;; ========================&lt;br /&gt;;; ISPELL&lt;br /&gt;;; ========================&lt;br /&gt;(require 'ispell)&lt;br /&gt;(add-to-list 'ispell-dictionary-alist&lt;br /&gt;    '("ndeutsch8-15"&lt;br /&gt;      "[a-zA-Z\304\326\334\344\366\337\374]"&lt;br /&gt;      "[^a-zA-Z\304\326\334\344\366\337\374]"&lt;br /&gt;      "[']" t&lt;br /&gt;     ("-C" "-d" "german")&lt;br /&gt;      "~latin1" iso-8859-15))&lt;br /&gt;&lt;br /&gt;;; ========================&lt;br /&gt;;; ISPELL End&lt;br /&gt;;; ========================&lt;br /&gt;&lt;br /&gt;;; ========================&lt;br /&gt;;; FLYSPELL&lt;br /&gt;;; ========================&lt;br /&gt;(add-hook 'flyspell-mode-hook&lt;br /&gt; (function (lambda ()&lt;br /&gt;           (setq ispell-local-dictionary "ndeutsch8-15")&lt;br /&gt;      )))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;M-X change-ispell-dictionary&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;emacs und LaTeX&lt;br /&gt;&lt;br /&gt;Added in file c:\.emacs&lt;br /&gt;&lt;br /&gt;(require 'tex-site)&lt;br /&gt;(setq tex-dvi-view-command "C:\texmf\miktex\bin\yap.exe")&lt;br /&gt;(custom-set-variables&lt;br /&gt;;; custom-set-variables was added by Custom -- don't edit or cut/paste it!&lt;br /&gt;;; Your init file should contain only one such instance.&lt;br /&gt;'(TeX-output-view-style (quote (("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o &amp;amp;&amp;amp; gv %f") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)?\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)?$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)?$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" ("^landscape$" "^pstricks$\\|^psfrag$") "%(o?)dvips -t landscape %d -o &amp;amp;&amp;amp; gv %f") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "^landscape$" "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "\"c:\\Programme\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe\" %o") ("^html?$" "." "netscape %o")))))&lt;br /&gt;(custom-set-faces&lt;br /&gt;;; custom-set-faces was added by Custom -- don't edit or cut/paste it!&lt;br /&gt;;; Your init file should contain only one such instance.&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Change target to PDFLaTeX: C-c C-t C-p&lt;br /&gt;Compiled using C-c C-c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;=== [ ENDE ] === ------------------------------------------------------------------------------&lt;br /&gt;%%% Local Variables:&lt;br /&gt;%%% mode: outline&lt;br /&gt;%%% outline-regexp: "\\(\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\(\\[.+\\]\\)? .*\\)\\|\\(^=== \\[ .* \\] ===.*\\)"&lt;br /&gt;%%% eval: (auto-fill-mode -1)&lt;br /&gt;%%% eval: (flyspell-mode -1)&lt;br /&gt;%%% eval: (end-of-buffer)&lt;br /&gt;%%% eval: (hide-body)&lt;br /&gt;%%% emerge-set-combine-versions-template: "%a\n%b\n"&lt;br /&gt;%%% End:&lt;br /&gt;%%% OLD-outline-regexp: "\\(\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\(\\[\\(maggie\\|lisa\\)\\]\\)? .*\\)"&lt;br /&gt;%%% OLD-outline-regexp nur "[][] Text": "\\(\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\] .*\\)"&lt;br /&gt;%%% OLD-outline-regexp inkl. Sterne als Items: "\\(\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\]\\[\\([1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9]\\)?\\] .*\\)\\|\\(*+ \\)"&lt;br /&gt;&lt;/up&gt;&lt;/tab&gt;&lt;/tab&gt;&lt;/tab&gt;&lt;/c-j&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/cr&gt;&lt;/esc&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/c-r&gt;&lt;/esc&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/esc&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/space&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/cr&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/xy&gt;&lt;/xy&gt;&lt;/file&gt;&lt;/file&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/char&gt;&lt;/char&gt;&lt;/num&gt;&lt;/path&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5137273717728693516?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5137273717728693516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5137273717728693516' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5137273717728693516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5137273717728693516'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/03/emacs-how-to-auto-complete-word.html' title='Emacs: how to auto-complete word'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8999914126530630173</id><published>2008-02-26T20:42:00.000-08:00</published><updated>2008-02-26T20:48:10.527-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='getopt'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='set'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='argument'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>Linux: command: how to use getopt</title><content type='html'>&lt;span style="color: rgb(0, 0, 0);"&gt;A simple example is here:&lt;br /&gt;&lt;a href="http://tldp.org/LDP/abs/html/extmisc.html#EX33A"&gt;http://tldp.org/LDP/abs/html/extmisc.html#EX33A&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;From &lt;/span&gt;&lt;a style="color: rgb(0, 0, 0);" href="http://www.tomshardware.com/ucg/commands/getopt-15186.html"&gt;http://www.tomshardware.com/ucg/commands/getopt-15186.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;getopt&lt;br /&gt;&lt;br /&gt;   UNIX Shell:     Shells (ash, bash, bsh, csh, ksh, sh, tcsh, zsh)&lt;br /&gt;&lt;br /&gt;   Function   &lt;br /&gt;   Cleans up and checks options given to a shell script. It split option given together and place each option in its own variable. Any additional arguments is placed after --&lt;br /&gt;&lt;br /&gt;   Syntax   &lt;br /&gt;   set -- `getopt optstring $*`&lt;br /&gt;getopt optstring parameter&lt;br /&gt;Linux: [ options... ] -- optstring parameter&lt;br /&gt;Linux: getopt [ options... ] -o optstring [ options... ] [ -- ] parame&lt;br /&gt;&lt;br /&gt;   optstring     Specifies a string of option letters that is recognized by the script.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;   NOTE: If a letter is followed by a colon (:) it will take an argument.&lt;br /&gt;&lt;br /&gt;   parameter     Specifies the options to check. (This is often $*, the argument list to the script).&lt;br /&gt;&lt;br /&gt;   set --     Sets the argument list $* .&lt;br /&gt;&lt;br /&gt;   Linux:   &lt;br /&gt;&lt;br /&gt;   -a     Allows long options to start with a single -.&lt;br /&gt;&lt;br /&gt;   -h     Shows help information.&lt;br /&gt;&lt;br /&gt;   -l longoptions     Specifies a long option that will be recognized.&lt;br /&gt;&lt;br /&gt;   -n progname     Specifies a program to use to report errors&lt;br /&gt;&lt;br /&gt;   -o optstring     Specifies a list of short options.&lt;br /&gt;&lt;br /&gt;   -q     Disables error reporting&lt;br /&gt;&lt;br /&gt;   -Q     Doesn't generate any output. Errors are reported unless -q is also given.&lt;br /&gt;&lt;br /&gt;   -s shell     Uses quoting conversions of the specified shell (sh, bash, csh or tcsh)&lt;br /&gt;&lt;br /&gt;   -u     Doesn't quote the output.&lt;br /&gt;&lt;br /&gt;   -T     Will test if this is the enhanced version.&lt;br /&gt;&lt;br /&gt;   -V     Shows version information.&lt;br /&gt;&lt;br /&gt;   File Name:     getopt     Directory:     /usr/bin/     Type:     External&lt;br /&gt;&lt;br /&gt;   Note:   &lt;br /&gt;   This is very useful to make easy option check in a shell script.&lt;br /&gt;&lt;br /&gt;   set -- `getopt ab:c $*`   &lt;br /&gt;   Specifies that a and c don't take an argument but c will.&lt;br /&gt;&lt;br /&gt;   If argument is: -ac -b hello   &lt;br /&gt;   It will be converted to: -a -c -b hello --&lt;br /&gt;&lt;br /&gt;   If argument is: -bhello ucg   &lt;br /&gt;   It will be converted to: -b hello -- ucg&lt;br /&gt;&lt;br /&gt;   set -- `getopt -l help ab:c $*`   &lt;br /&gt;   Also recognizes the long option --help&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8999914126530630173?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8999914126530630173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8999914126530630173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8999914126530630173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8999914126530630173'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/02/linux-command-how-to-use-getopt.html' title='Linux: command: how to use getopt'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8636239777958875564</id><published>2008-02-25T15:42:00.001-08:00</published><updated>2008-02-25T17:18:00.248-08:00</updated><title type='text'>Linux:command: sort</title><content type='html'>'sort' in linux is sometimes very usefult. For example, I have a file like this:&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;pt    2.9&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;eta  3.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;phi  4.5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;px   2.1&lt;/span&gt;&lt;br /&gt;If you want to rank those variables due to the increasing order of the 2nd column, then you can use '&lt;span style="color: rgb(255, 0, 0);"&gt;sort -n -k2 yourfile.txt&lt;/span&gt;'. '&lt;span style="color: rgb(255, 0, 0);"&gt;-k2&lt;/span&gt;' means the position of the key is the 2nd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8636239777958875564?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8636239777958875564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8636239777958875564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8636239777958875564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8636239777958875564'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/02/linuxcommand-sort.html' title='Linux:command: sort'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-254488851872712018</id><published>2008-02-17T21:43:00.000-08:00</published><updated>2008-02-17T21:44:29.848-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='plugin'/><title type='text'>Firefox: how to check plugins</title><content type='html'>Type about:plugins in the address line.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-254488851872712018?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/254488851872712018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=254488851872712018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/254488851872712018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/254488851872712018'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/02/firefox-how-to-check-plugins.html' title='Firefox: how to check plugins'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3508716729051258016</id><published>2008-02-13T20:53:00.000-08:00</published><updated>2008-02-13T21:00:39.561-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x window'/><category scheme='http://www.blogger.com/atom/ns#' term='x server'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='composite'/><category scheme='http://www.blogger.com/atom/ns#' term='3d'/><category scheme='http://www.blogger.com/atom/ns#' term='xorg.config'/><category scheme='http://www.blogger.com/atom/ns#' term='netapplet'/><category scheme='http://www.blogger.com/atom/ns#' term='crash'/><title type='text'>Linux: X server crashes</title><content type='html'>Long time ago, I have a problem that my X server crashed when I change my current profile from one network profile in net applet. I had no clue at all then. I remember that I changed .gnome and some directories, then the problem is gone. But I have to use kde then. Today I logon gnome and X server crashed again. I cannot fix it by upgrading using installation disk. And I create a new account, it is working well. And I searched the internet and realized that some people also have the same problem with me. Actually the problem is from 3D effect. I have to edit the file: /etc/X11/xorg.conf to comment two lines which is bad for x server. They are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;Option "Composite"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;Option "XaaNoOffscreenPixmaps" "1"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After removal, I can restart X server. :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3508716729051258016?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3508716729051258016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3508716729051258016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3508716729051258016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3508716729051258016'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/02/linux-x-server-crashes.html' title='Linux: X server crashes'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7425423430773769338</id><published>2008-01-27T18:48:00.000-08:00</published><updated>2008-01-27T18:51:16.577-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='animated'/><category scheme='http://www.blogger.com/atom/ns#' term='backspace'/><category scheme='http://www.blogger.com/atom/ns#' term='process bar'/><category scheme='http://www.blogger.com/atom/ns#' term='status'/><title type='text'>c++: animated process bar in c++</title><content type='html'>A process bar is useful to present the current processing status, here is my example:&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;void ProcessBar(int thisevt, int totalevt) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  if ( thisevt%1000 != 0 ) return ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  int totalc = 30;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  int ic = (int)1.*totalc*thisevt/totalevt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  cout &lt;&lt; "Status:   [";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  for (int a=0; a&lt;ic;&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;    cout &lt;&lt; "=";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  for (int b=0; b&lt;totalc-ic;&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;    cout &lt;&lt; " ";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  cout &lt;&lt; "]";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  printf("%6.2f%%", 100.*thisevt/totalevt);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  //backspace&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;  for(int a = 0; a &lt;&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;      cout &lt;&lt; "\b";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(of course, the code is specially for high energy physics analysis on event level, you could change it for timing etc...)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7425423430773769338?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7425423430773769338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7425423430773769338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7425423430773769338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7425423430773769338'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2008/01/c-animated-process-bar-in-c.html' title='c++: animated process bar in c++'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6404783164750160881</id><published>2007-11-30T17:15:00.000-08:00</published><updated>2007-11-30T17:22:21.018-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='merge'/><category scheme='http://www.blogger.com/atom/ns#' term='jar'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='acrobat'/><category scheme='http://www.blogger.com/atom/ns#' term='pdftk'/><category scheme='http://www.blogger.com/atom/ns#' term='multivalent'/><title type='text'>linux: how to merge/split pdf files</title><content type='html'>In linux, there is no professional acrobat avaible, which means that sometimes if you edit your pdf files, for example, merge, split pdf files, you may not have clue to do that. Lots of ppl in the net would recommend "pdftk" (pdf toolket) for you. I try to install, but some lib is needed. I have no time to install other dependent lib so I recalled I have a java tool: Multivalent. Just google it and find its page.&lt;br /&gt;&lt;br /&gt;Usage:&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;java -classpath ~/Multivalent20060102.jar tool.pdf.Merge file1.pdf file2.pdf ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That is it. You also can split your pdf file to separated ones. Of course, you need to download Multivalent20060102.jar from somewhere of the net. Yes, you can use "convert" to merge, but bad resolution and very slow, not recommended.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6404783164750160881?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6404783164750160881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6404783164750160881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6404783164750160881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6404783164750160881'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/11/linux-how-to-mergesplit-pdf-files.html' title='linux: how to merge/split pdf files'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6946001595484390335</id><published>2007-11-28T15:23:00.000-08:00</published><updated>2007-11-28T15:25:56.574-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dowload'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='whole site'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><title type='text'>linux:how to download a whole site by wget</title><content type='html'>&lt;span style="font-size:-1;"&gt;&lt;span style="color:#cc0033;"&gt;wget&lt;/span&gt; -r -p -np -k http://Your.Website.ToBeDownloaded.com&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6946001595484390335?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6946001595484390335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6946001595484390335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6946001595484390335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6946001595484390335'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/11/linuxhow-to-download-whole-site-by-wget.html' title='linux:how to download a whole site by wget'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7766190274714291514</id><published>2007-11-20T14:34:00.000-08:00</published><updated>2007-11-20T14:36:38.569-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gaim'/><category scheme='http://www.blogger.com/atom/ns#' term='theme'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='smiley'/><title type='text'>Linux: gaim: how to change lib of smiley</title><content type='html'>Go to the place where your gaim searches for:&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;/usr/share/pixmaps/gaim/smileys/default/&lt;/span&gt;&lt;br /&gt;in my lap.&lt;br /&gt;&lt;br /&gt;Edit the file: theme.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7766190274714291514?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7766190274714291514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7766190274714291514' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7766190274714291514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7766190274714291514'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/11/linux-gaim-how-to-change-lib-of-smiley.html' title='Linux: gaim: how to change lib of smiley'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2315783758563889818</id><published>2007-09-30T13:49:00.000-07:00</published><updated>2007-09-30T13:53:18.541-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='xemacs'/><category scheme='http://www.blogger.com/atom/ns#' term='region'/><category scheme='http://www.blogger.com/atom/ns#' term='space'/><category scheme='http://www.blogger.com/atom/ns#' term='kill'/><category scheme='http://www.blogger.com/atom/ns#' term='block'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='select'/><category scheme='http://www.blogger.com/atom/ns#' term='selection'/><title type='text'>emacs: how to delete a block of region</title><content type='html'>Mark (Ctrl+Space) the beginning of first line and move cursor to the the last line, and move it to the right n chars. Then do “Alt+x kill-rectangle” (Ctrl+x r k). This command can be used to delete any rectangular block of text, not just at the beginning of lines.&lt;br /&gt;&lt;br /&gt;From: &lt;a href="http://xahlee.org/emacs/emacs.html"&gt;http://xahlee.org/emacs/emacs.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2315783758563889818?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2315783758563889818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2315783758563889818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2315783758563889818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2315783758563889818'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/09/emacs-how-to-delete-block-of-region.html' title='emacs: how to delete a block of region'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4336496069595065312</id><published>2007-09-25T12:15:00.001-07:00</published><updated>2007-09-25T12:17:11.542-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='加密'/><title type='text'>Linux:command: vim</title><content type='html'>　　加密和解密&lt;br /&gt;　　&lt;br /&gt;　　加密和解密文件&lt;br /&gt;　　&lt;br /&gt;　　在命令模式输入“:X”命令，接着输入密码、确认输入密码，最后输入“:wq”命令保存退出。文件就已经被加密了。&lt;br /&gt;　　&lt;br /&gt;　　经过上面方法加密后的文件变成密文文件。要阅读原来的明文，则在打开文件后，会提示用户输入密码。如果密码输入正确，就能看到原来的明文。另外可以看到，在最后的状态行上有此文件已被加密的提示。  &lt;div class="Kwf789"&gt;需要什么来搜一搜吧so.bitsCN.com&lt;/div&gt;&lt;br /&gt;　　&lt;br /&gt;　　取消加密&lt;br /&gt;　　&lt;br /&gt;　　取消加密的方法很简单。在命令模式输入“:X”命令，首先会提示输入密码，这时直接敲回车键。接下来在提示重复输入密码时也直接敲回车键，最后输入“:wq”命令保存退出。这样文件的加密就被取消了。&lt;br /&gt;　　&lt;br /&gt;　　注意，以上加密方法是运行在Red Hat Linux 9.0上的vim中。在其它平台可能略有差异，请以实际平台或版本的帮助为准。&lt;br /&gt;From http://www.bitscn.com/linux/command/200604/6563.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4336496069595065312?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4336496069595065312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4336496069595065312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4336496069595065312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4336496069595065312'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/09/linuxcommand-vim.html' title='Linux:command: vim'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2189138107709071197</id><published>2007-09-25T12:05:00.000-07:00</published><updated>2007-09-25T12:16:28.467-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gpg'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='des'/><category scheme='http://www.blogger.com/atom/ns#' term='rev'/><title type='text'>Linux:command: some useful text commands</title><content type='html'>&lt;p align="left"&gt;uniq&lt;br /&gt;         　　（=unique-----唯一的）去掉已排序的文件中的重复行。例如：sort myfile | uniq &lt;/p&gt;           &lt;p align="left"&gt;fold –w 30 –s  my_file.txt &gt; new_file.txt&lt;br /&gt;           　　用空格将文本文件 my_file.txt 中的每行截成30个字符，并输出到 new_file.txt. &lt;/p&gt;           &lt;p align="left"&gt;fmt –w 75 my_file.txt &gt; new_file.txt&lt;br /&gt;           　　格式化文件中的每行为75个字符。把超过75个字符的行截短，把少于75个字符的行补齐，但不会移去空行。 &lt;/p&gt;           &lt;p align="left"&gt;nl myfile &gt; myfile_lines_numbered&lt;br /&gt;           　　给文件 myfile 的每行标上行号。把结果输出给文件 myfiles_lines_numbered。 &lt;/p&gt;           &lt;p align="left"&gt;indent –kr –i8 –ts8 –sob –l80 –ss –bs –psl “$@” *.c&lt;br /&gt;　　通过插入或删除空格来改变“C”源码的外观。上面例子里格式的选项是和 Linux 内核的源码的风格是一至的（script /usr/src/linux/scripts/Lindent）。 看 man indent 来了解各个选项的意义。存在的文件先被备份然后就被格式化好的文件给替代了。 &lt;/p&gt;           &lt;p align="left"&gt;rev filename &gt; filename1&lt;br /&gt;           　　打印文件 filename，每行字符以相反顺序显示。上面的例子里结果直接输入到文件 filename1。 &lt;/p&gt;           &lt;p align="left"&gt;shred filename&lt;br /&gt;           　　用垃圾字符重复并覆盖文件 filename 的内容，使任何人都无法再去阅读文件的内容。 &lt;/p&gt;           &lt;p align="left"&gt;paste file1 file2 &gt; file3&lt;br /&gt;           　　按行把两个或多个文件合并，用&lt;tab&gt;作默认分界符（用选项”d=”来选择自己的分界符）。 &lt;/tab&gt;&lt;/p&gt;           &lt;p align="left"&gt;如果文件 file1 的内容是：&lt;br /&gt;           1&lt;br /&gt;           2&lt;br /&gt;           3 &lt;/p&gt;           &lt;p align="left"&gt;并且文件 file2 的是：&lt;br /&gt;           a&lt;br /&gt;           b&lt;br /&gt;           c&lt;br /&gt;           d &lt;/p&gt;           &lt;p align="left"&gt;那么结果 file3 里的内容就该是： &lt;/p&gt;           &lt;p align="left"&gt;1       a&lt;br /&gt;           2       b&lt;br /&gt;           3       c&lt;br /&gt;           d &lt;/p&gt;           &lt;p align="left"&gt;join file1 file2 &gt; file3 &lt;/p&gt;           &lt;p align="left"&gt;　　把两个文本文件里有相同域的行连成一行。Join 和数据库的“表连接”操作是类似的，但它只是对两个文本文件进行操作。默认的分界符是空格。如果你想用其它的操作符，你可用 man join 去查看里面的选项。 &lt;/p&gt;           &lt;p align="left"&gt;如果 file1 里的内容是： &lt;/p&gt;           &lt;p align="left"&gt;1       Barbara&lt;br /&gt;           2       Peter&lt;br /&gt;           3       Stan&lt;br /&gt;           4       Marie &lt;/p&gt;           &lt;p align="left"&gt;并且 file2 的是：&lt;br /&gt;           2       Dog&lt;br /&gt;           4       Car&lt;br /&gt;           7       Cat &lt;/p&gt;           &lt;p align="left"&gt;那么结果 file3 就该是：&lt;br /&gt;           2       Peter  Dog&lt;br /&gt;           4       Marie   Car &lt;/p&gt;           &lt;p align="left"&gt;des –e plain_file encrypted_file&lt;br /&gt;           　　（=”Data Encryption Standard” 数据加密标准）加密文件 plain_file。你会被要求输入一个键值用于加密算法使用。加密后的结果存放到文件“encrypted_file”。解密就用：&lt;br /&gt;           des –d encrypted_file decrypted_file. &lt;/p&gt;           &lt;p align="left"&gt;gpg&lt;br /&gt;　　“Gnu Privacy Guard-----GNU 的私人警卫”—一个和 PGP（“Pretty Good Privacy”）功能一样的免费软件。gpg 比 PGP 更安全并且没有使用有专利的算法。gpg 主要用于给你的 email 加签名并且检查其它信息的签名。你也可用它来给你的信息加密解密。&lt;a href="http://www.gnupg.org/" target="_blank"&gt;http://www.gnupg.org/&lt;/a&gt;上有所有的详细信息，包括一个易读和详细的手册。 &lt;/p&gt;           &lt;p align="left"&gt;　 　开始，我需要一对匙值：个人匙和公共匙。个人匙用于给我的信息签字。公共匙用于传给他人来确认我的信息的签名在他们收到我的信息后来确认我的信息的签 字。（某人还可用公共匙来给信息加密这样这个信息就只能通过我的个人匙加密并阅读）。我用下面的命令来生成这一对匙值：&lt;br /&gt;&lt;/p&gt;&lt;p align="left"&gt;from http://www.networkdictionary.cn/software/Linux75.php&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2189138107709071197?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2189138107709071197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2189138107709071197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2189138107709071197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2189138107709071197'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/09/linuxcommand-some-useful-text-commands.html' title='Linux:command: some useful text commands'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8698900498247025959</id><published>2007-09-18T23:07:00.000-07:00</published><updated>2007-09-18T23:11:35.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chown'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='directory'/><category scheme='http://www.blogger.com/atom/ns#' term='owner'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='group'/><title type='text'>Linux:command: use chown to change owner of a file or directory</title><content type='html'>The command &lt;span style="font-family: courier new; font-weight: bold; color: rgb(255, 0, 0);"&gt;chown&lt;/span&gt; is used to change the owner of a file/directory. For example:&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-family: courier new;"&gt;chown -hR zhiyil:zhiyil /work&lt;/span&gt;&lt;br /&gt;(change owner of /work to zhiyil and group is zhiyil either)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8698900498247025959?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8698900498247025959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8698900498247025959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8698900498247025959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8698900498247025959'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/09/linuxcommand-use-chown-to-change-owner.html' title='Linux:command: use chown to change owner of a file or directory'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8307642436469073815</id><published>2007-08-26T09:00:00.000-07:00</published><updated>2007-08-26T09:03:41.042-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='xunlei'/><category scheme='http://www.blogger.com/atom/ns#' term='tool'/><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='axel'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>Linux: an accelerator to download</title><content type='html'>There is a good small software in Linux to download by http/ftp. It is called as &lt;a href="http://wilmer.gaast.net/main.php/axel.html"&gt;axel.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is a XunLei-like tool. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8307642436469073815?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8307642436469073815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8307642436469073815' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8307642436469073815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8307642436469073815'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/linux-accelerator-to-download.html' title='Linux: an accelerator to download'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8427788758249078853</id><published>2007-08-25T14:30:00.000-07:00</published><updated>2007-08-25T14:33:22.588-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pid'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kill'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><category scheme='http://www.blogger.com/atom/ns#' term='background'/><title type='text'>Linux:commands: how to kill jobs in background</title><content type='html'>If you have jobs running in background, you could kill them by the easier way than finding their PID and kill them. Just use the command &lt;span style="color: rgb(255, 0, 0); font-style: italic; font-weight: bold;"&gt;jobs&lt;/span&gt; to find which job is running in background, and then pick up the job you want to kill, use &lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;kill %1&lt;/span&gt; (here &lt;span style="color: rgb(255, 0, 0); font-style: italic; font-weight: bold;"&gt;1&lt;/span&gt; is the job number)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8427788758249078853?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8427788758249078853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8427788758249078853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8427788758249078853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8427788758249078853'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/linuxcommands-how-to-kill-jobs-in.html' title='Linux:commands: how to kill jobs in background'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8946644875693829996</id><published>2007-08-18T21:55:00.000-07:00</published><updated>2007-08-18T21:56:51.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='link'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='management'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><title type='text'>D0: code management link</title><content type='html'>This is &lt;a href="http://www-d0.fnal.gov/software/cmgt/getting_started_at_d0.html"&gt;a link&lt;/a&gt; to get started with D0 code management&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8946644875693829996?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8946644875693829996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8946644875693829996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8946644875693829996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8946644875693829996'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/d0-code-management-link.html' title='D0: code management link'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4168372631130218738</id><published>2007-08-13T22:10:00.000-07:00</published><updated>2007-08-13T22:12:48.008-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shadow'/><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='font'/><category scheme='http://www.blogger.com/atom/ns#' term='effect'/><title type='text'>Latex: a good link to description of commonly used Latex packages</title><content type='html'>Some commonly used LaTeX packages are described at &lt;a href="http://zzg34b.w3.c361.com/package/tool.htm"&gt;this link&lt;/a&gt; (in Chinese), including the package how to create shadow effect of fonts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4168372631130218738?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4168372631130218738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4168372631130218738' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4168372631130218738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4168372631130218738'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/latex-good-link-to-description-of.html' title='Latex: a good link to description of commonly used Latex packages'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6519573329852779903</id><published>2007-08-13T11:40:00.000-07:00</published><updated>2007-08-13T11:42:37.727-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='idle'/><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='inactive'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='sshd'/><category scheme='http://www.blogger.com/atom/ns#' term='remote'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='sshd_config'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='openssh'/><category scheme='http://www.blogger.com/atom/ns#' term='Connection reset by peer'/><category scheme='http://www.blogger.com/atom/ns#' term='clientAliveInterval'/><category scheme='http://www.blogger.com/atom/ns#' term='tcp_keepalive_time'/><category scheme='http://www.blogger.com/atom/ns#' term='solution'/><category scheme='http://www.blogger.com/atom/ns#' term='rc.local'/><title type='text'>Network: a problem about 'Connection reset by peer'</title><content type='html'>&lt;tt&gt;When I log in a remote computer by ssh from my home and if I keep it inactive for a&lt;/tt&gt; &lt;tt&gt;while (for example, 10 mins), I often was kicked out with the message, &lt;/tt&gt;&lt;tt&gt;for example:&lt;/tt&gt;&lt;tt&gt;&lt;span style="color: rgb(115, 115, 115);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;=====================&lt;/span&gt;&lt;/span&gt;&lt;/tt&gt;&lt;br /&gt;&lt;tt style="color: rgb(255, 0, 0);"&gt;Read from remote host jasper-clued0.fnal.gov: Connection reset by peer&lt;/tt&gt;&lt;br /&gt;&lt;tt style="color: rgb(255, 0, 0);"&gt;====================&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;This happened probably because a firewall or other packet filtering &lt;/tt&gt;&lt;tt&gt;device (such as your router) drops idle connections after a certain period of time.&lt;br /&gt;&lt;br /&gt;------------------------------------------&lt;br /&gt;A solution based on the ssh server side &lt;/tt&gt;&lt;tt&gt;can be found here (Dugan provided me with this solution):&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;a href="http://www.brandonhutchinson.com/OpenSSH_ClientAliveInterval.html"&gt;http://www.brandonhutchinson.com/OpenSSH_ClientAliveInterval.html&lt;/a&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;Simply speaking, the solution is add a line &lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt style="font-weight: bold; color: rgb(51, 204, 0);"&gt;ClientAliveInterval 300&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;in the file:&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt style="font-weight: bold; color: rgb(51, 204, 0);"&gt;/etc/ssh/sshd_config&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;and reload the sshd server configuration with &lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;span style="font-weight: bold; color: rgb(51, 204, 0);"&gt;/sbin/service sshd reload &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------&lt;br /&gt;Another solution based on client side provided by my colleage Horst at Fermilab is:&lt;/tt&gt;&lt;tt&gt; to add&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt style="color: rgb(255, 0, 0); font-weight: bold;"&gt;echo 300 &gt;  /proc/sys/net/ipv4/tcp_keepalive_time&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;into the file &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;/etc/rc.local&lt;/span&gt;&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-6519573329852779903?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6519573329852779903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6519573329852779903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6519573329852779903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6519573329852779903'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/network-problem-about-connection-reset.html' title='Network: a problem about &apos;Connection reset by peer&apos;'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7766054010215097028</id><published>2007-08-08T16:19:00.000-07:00</published><updated>2007-08-08T16:20:42.140-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='mktexlsr'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>Latex: how to install package</title><content type='html'>Use the command &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;mktexlsr&lt;/span&gt; to update the index of Latex.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7766054010215097028?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7766054010215097028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7766054010215097028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7766054010215097028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7766054010215097028'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/latex-how-to-install-package.html' title='Latex: how to install package'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3241272959118042399</id><published>2007-08-08T16:12:00.000-07:00</published><updated>2007-08-08T16:15:58.233-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='welcome text'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='Tex'/><category scheme='http://www.blogger.com/atom/ns#' term='graph'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrary'/><category scheme='http://www.blogger.com/atom/ns#' term='textpos'/><category scheme='http://www.blogger.com/atom/ns#' term='position'/><category scheme='http://www.blogger.com/atom/ns#' term='absolute'/><category scheme='http://www.blogger.com/atom/ns#' term='figure'/><title type='text'>latex: how to post text and graph on absolute position on one page</title><content type='html'>I copied the introduction from its home page http://nxg.me.uk/dist/textpos/ :&lt;br /&gt;&lt;h1&gt;Textpos&lt;/h1&gt; &lt;div class="abstract"&gt; &lt;p&gt;Lay out text and graphics at arbitrary positions on the LaTeX page.&lt;/p&gt; &lt;p&gt;The textpos home page is at &lt;a href="http://purl.org/nxg/dist/textpos"&gt;&lt;code&gt;http://purl.org/nxg/dist/textpos&lt;/code&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Version 1.7d, 2007 March 30.&lt;/p&gt; &lt;/div&gt;  &lt;p&gt;This package facilitates placing boxes at absolute positions on the LaTeX page.  There are several reasons why this might be useful, but the main one (or at least my motivating one) is to help produce a large-format conference poster.  Other applications include placing material within, say, figures.&lt;/p&gt;  &lt;p&gt;This package provides a single environment, which contains the text (or graphics, or table, or whatever) which is to be placed on the page, and which specifies where it is to be placed.  The environment is accompanied by various configuration commands.  See the &lt;a href="http://nxg.me.uk/dist/textpos/textpos.pdf"&gt;manual (pdf)&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-3241272959118042399?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3241272959118042399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3241272959118042399' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3241272959118042399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3241272959118042399'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/08/latex-how-to-post-text-and-graph-on.html' title='latex: how to post text and graph on absolute position on one page'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-3227537456777698437</id><published>2007-07-25T15:40:00.000-07:00</published><updated>2007-07-25T15:48:56.866-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='more'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='less'/><title type='text'>Linux.shell.command: two usages of 'less'</title><content type='html'>As you know, '&lt;span style="color: rgb(255, 0, 0);"&gt;less&lt;/span&gt;' is a very useful tool to view text files. Today I realize the two more functions new for me:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;You could use less to open more than one file in the buffer, just by "&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;:p&lt;/span&gt;" or "&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;:n&lt;/span&gt;" etc. to switch them&lt;/li&gt;&lt;li&gt;If you have more than 1 key words to search, just use the way &lt;span style="color: rgb(0, 153, 0); font-weight: bold;"&gt;/wordone|wordtwo|wordmore&lt;/span&gt; and then enter, thus those 3 key words will be highlighted in the text body.&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/342064194792946930-3227537456777698437?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/3227537456777698437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=3227537456777698437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3227537456777698437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/3227537456777698437'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/07/linuxshellcommand-two-usages-of-less.html' title='Linux.shell.command: two usages of &apos;less&apos;'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-6303935336681827823</id><published>2007-07-20T14:29:00.000-07:00</published><updated>2009-04-09T10:56:01.612-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='echo'/><category scheme='http://www.blogger.com/atom/ns#' term='China'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='pipe'/><category scheme='http://www.blogger.com/atom/ns#' term='grep'/><category scheme='http://www.blogger.com/atom/ns#' term='return'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:shell:grep how to use grep's result</title><content type='html'>&lt;span style="font-family:courier new;"&gt;mystr="IloveChina"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo $mystr |grep China&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo $?                           #this will return 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo $mystr |grep USA&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo $?                           #this will return 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#so you could use this returned value to justify if grep found the string.&lt;br /&gt;# Or you use how many searched results returned to do this, for example,&lt;br /&gt;echo $mystr |grep -c China # return 1 to you&lt;br /&gt;echo $mystr |grep -c USA   # return 0 to you&lt;br /&gt;# so simply, you can use the number to justify if you found the results like&lt;br /&gt;if [ `&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;echo $mystr |grep -c China&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;` -ge 1 ]; then&lt;br /&gt;  echo "Yes, you are"&lt;br /&gt;fi&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&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/342064194792946930-6303935336681827823?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/6303935336681827823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=6303935336681827823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6303935336681827823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/6303935336681827823'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/07/linuxshellgrep-how-to-use-greps-result.html' title='Linux:shell:grep how to use grep&apos;s result'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8244290535294620580</id><published>2007-06-23T02:36:00.001-07:00</published><updated>2007-06-23T02:42:00.100-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='ifthenelse'/><category scheme='http://www.blogger.com/atom/ns#' term='setboolean'/><category scheme='http://www.blogger.com/atom/ns#' term='ifthen'/><category scheme='http://www.blogger.com/atom/ns#' term='condition'/><category scheme='http://www.blogger.com/atom/ns#' term='newboolean'/><title type='text'>Latex: how to use conditional compilation</title><content type='html'>If you want to use condition to control your texts, better to use \ifthenelse.&lt;br /&gt;Usage in pre-docu:&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;\usepackage{ifthen}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;\newboolean{yourBoolVar}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;\setboolean{yourBoolVar}{boolval}  % boolvar=true or false&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usage in main body:&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: courier new;"&gt;\ifthenelse {\boolean{yourBoolVar}} &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: courier new;"&gt;{if true, go this code} {if false, go this}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8244290535294620580?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8244290535294620580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8244290535294620580' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8244290535294620580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8244290535294620580'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/latex-how-to-use-conditional.html' title='Latex: how to use conditional compilation'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2629364330136553586</id><published>2007-06-21T20:15:00.000-07:00</published><updated>2007-06-21T20:18:14.053-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tar'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tgz'/><category scheme='http://www.blogger.com/atom/ns#' term='append'/><title type='text'>Linux:compress: restrictions about zipped tar files</title><content type='html'>From the&lt;a href="http://www.gnu.org/software/tar/manual/tar.html#index-Deleting-files-from-an-archive-211"&gt; tar's user guide&lt;/a&gt;:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Notice also, that there are several restrictions on operations on compressed archives.  First of all, compressed archives cannot be modified, i.e., you cannot update (&lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="option"&gt;--update&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt; (&lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="option"&gt;-u&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt;)) them or delete (&lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="option"&gt;--delete&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt;) members from them.  Likewise, you cannot append another &lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="command"&gt;tar&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt; archive to a compressed archive using &lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="option"&gt;--append&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt; (&lt;/span&gt;&lt;samp style="font-style: italic;"&gt;&lt;span class="option"&gt;-r&lt;/span&gt;&lt;/samp&gt;&lt;span style="font-style: italic;"&gt;)).  Secondly, multi-volume archives cannot be compressed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="border: 1px solid rgb(0, 0, 0); margin: 0px; padding: 0px; overflow: visible; position: absolute; left: 139px; top: 5px; width: 444px; height: 352px; display: none; z-index: 1000; font-size: 12px; cursor: default;" id="OAK_VOC_DIV_ID"&gt;&lt;div style="border: medium none ; margin: 0px; overflow: hidden; width: 100%; height: 24px;" id="oakvoc-tip-title-div"&gt;&lt;iframe style="border: 0px none ; margin: 0px; padding: 0px; overflow: hidden; width: 100%; height: 24px;" id="oakvoc_iframe_title"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style="border: medium none ; margin: 0px; padding: 0px; overflow: visible; width: 100%; height: 328px;" id="oakvoc-tip-content-div"&gt;&lt;iframe style="border: 0px none ; margin: 0px; padding: 0px; overflow: hidden; width: 100%; height: 328px;" id="oakvoc_iframe"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2629364330136553586?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2629364330136553586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2629364330136553586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2629364330136553586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2629364330136553586'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/linuxcompress-restrictions-about-zipped.html' title='Linux:compress: restrictions about zipped tar files'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2179962940097210087</id><published>2007-06-21T19:40:00.000-07:00</published><updated>2007-06-21T19:45:31.522-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='merge'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='gs'/><category scheme='http://www.blogger.com/atom/ns#' term='ghostscript'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='pdftk'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux:software: How to merge multiple pdf files into one</title><content type='html'>Use the command in Linux to merge some PDF files into one:&lt;br /&gt;&lt;code&gt;&lt;strong&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/code&gt;&lt;br /&gt;Use it, you have two packages installed in your system&lt;br /&gt;&lt;p&gt;&lt;a title="Ghostscript Download Link" href="http://sourceforge.net/project/showfiles.php?group_id=1897"&gt;Link: Ghostscript download&lt;/a&gt;&lt;br /&gt;&lt;a title="PDFtk download link" href="http://www.accesspdf.com/article.php/20041130153545577"&gt;Link: PDFtk download&lt;/a&gt;&lt;/p&gt;For more information, see the reference link: &lt;a href="http://www.newlinuxuser.com/merge-multiple-pdfs-into-one-file/"&gt;http://www.newlinuxuser.com/merge-multiple-pdfs-into-one-file/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2179962940097210087?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2179962940097210087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2179962940097210087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2179962940097210087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2179962940097210087'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/linuxsoftware-how-to-merge-multiple-pdf.html' title='Linux:software: How to merge multiple pdf files into one'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2950543628347783084</id><published>2007-06-05T20:58:00.000-07:00</published><updated>2007-06-05T21:03:09.586-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='profile'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='etc'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='bash_profile'/><category scheme='http://www.blogger.com/atom/ns#' term='alias'/><category scheme='http://www.blogger.com/atom/ns#' term='bashrc'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Linux: alias: shell: define your alias in Linux</title><content type='html'>Except &lt;span style="font-style: italic;"&gt;/etc/profile&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;~/.bashrc&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;~/.bash_profile&lt;/span&gt;, you  can add alias into the file:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;/etc/profile.d/alias.sh&lt;/span&gt; (or alias.csh for c shell)&lt;br /&gt;&lt;br /&gt;This file is effective for all users like &lt;span style="font-style: italic;"&gt;/etc/profile&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2950543628347783084?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2950543628347783084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2950543628347783084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2950543628347783084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2950543628347783084'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/linux-alias-shell-define-your-alias-in.html' title='Linux: alias: shell: define your alias in Linux'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2149194801803005091</id><published>2007-06-04T19:18:00.000-07:00</published><updated>2007-06-04T19:21:45.327-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='Analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='Toolkit'/><category scheme='http://www.blogger.com/atom/ns#' term='Multivariate'/><category scheme='http://www.blogger.com/atom/ns#' term='Data'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><category scheme='http://www.blogger.com/atom/ns#' term='tmva'/><title type='text'>Software: root: tmva: how to install it...</title><content type='html'>TMVA is a &lt;span style="font-size:+3;"&gt;&lt;span style="color:#000099;"&gt;&lt;span style="font-size:+2;"&gt;&lt;span style="color:red;"&gt;Toolkit&lt;/span&gt;                                 for Multivariate Data Analysis with ROOT.&lt;br /&gt;web page: http://tmva.sourceforge.net/&lt;br /&gt;After compiling and before running your code/macros, please make sure your lib is loaded!&lt;br /&gt;&lt;br /&gt;&lt;/span&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/342064194792946930-2149194801803005091?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2149194801803005091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2149194801803005091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2149194801803005091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2149194801803005091'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/software-root-tmva-how-to-install-it.html' title='Software: root: tmva: how to install it...'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5607312758180739546</id><published>2007-06-02T08:36:00.000-07:00</published><updated>2007-06-02T08:40:29.473-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='editor'/><category scheme='http://www.blogger.com/atom/ns#' term='alt'/><category scheme='http://www.blogger.com/atom/ns#' term='xemacs'/><category scheme='http://www.blogger.com/atom/ns#' term='complete'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='shortcut'/><category scheme='http://www.blogger.com/atom/ns#' term='auto'/><title type='text'>Software:programming: how to use auto-complete in xemacs</title><content type='html'>If you are programming, it will be very convenient to ask your editor to auto-complete words for you! Time-saving! In xemacs (I didn't try it in emacs), you could use shortcut: &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;alt+/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5607312758180739546?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5607312758180739546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5607312758180739546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5607312758180739546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5607312758180739546'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/06/softwareprogramming-how-to-use-auto.html' title='Software:programming: how to use auto-complete in xemacs'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2768089062314151659</id><published>2007-05-30T17:12:00.000-07:00</published><updated>2007-05-30T18:35:02.042-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='top_cafe'/><category scheme='http://www.blogger.com/atom/ns#' term='research'/><category scheme='http://www.blogger.com/atom/ns#' term='single top'/><category scheme='http://www.blogger.com/atom/ns#' term='topology'/><category scheme='http://www.blogger.com/atom/ns#' term='cafe'/><title type='text'>Research:D0:cafe:top_cafe: topology variables in top_cafe package</title><content type='html'>We have lots of topological variables used: I have to remember them all :-(&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#a9"&gt;00055&lt;/a&gt;   &lt;span class="keywordtype"&gt;double&lt;/span&gt; TopTopologicalVariables::Centrality()&lt;span class="keyword"&gt; const &lt;/span&gt;&lt;br /&gt;00056 &lt;span class="keyword"&gt;  &lt;/span&gt;{&lt;br /&gt;00057     &lt;span class="keywordflow"&gt;return&lt;/span&gt; &lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#a11"&gt;Ht&lt;/a&gt;()/&lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#a12"&gt;H&lt;/a&gt;(); &lt;br /&gt;00058   } &lt;span class="comment"&gt;// Centrality()&lt;/span&gt;&lt;br /&gt;00059&lt;br /&gt;&lt;a name="l00061"&gt;&lt;/a&gt;&lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#a5"&gt;00061&lt;/a&gt;     &lt;span class="keywordtype"&gt;double&lt;/span&gt; TopTopologicalVariables::Aplanarity()&lt;span class="keyword"&gt; const &lt;/span&gt;&lt;br /&gt;00062 &lt;span class="keyword"&gt;    &lt;/span&gt;{&lt;br /&gt;00063       &lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#d0"&gt;ensurePV&lt;/a&gt;();&lt;br /&gt;00064       &lt;span class="keywordflow"&gt;return&lt;/span&gt; 1.5 * (*_pv)[2]; &lt;span class="comment"&gt;// alternative syntax: ... * _pv-&gt;operator[](2)&lt;/span&gt;&lt;br /&gt;00065     } &lt;span class="comment"&gt;// Aplanarity()&lt;/span&gt;&lt;br /&gt;00066  &lt;br /&gt;&lt;a name="l00068"&gt;&lt;/a&gt;&lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#a6"&gt;00068&lt;/a&gt;   &lt;span class="keywordtype"&gt;double&lt;/span&gt; TopTopologicalVariables::Sphericity()&lt;span class="keyword"&gt; const&lt;/span&gt;&lt;br /&gt;00069 &lt;span class="keyword"&gt;  &lt;/span&gt;{&lt;br /&gt;00070     &lt;a class="code" href="file:///work/jasper-clued0/SFU/p18.10tau/doxydoc/html/classtop__cafe_1_1TopTopologicalVariables.html#d0"&gt;ensurePV&lt;/a&gt;();&lt;br /&gt;00071     &lt;span class="keywordflow"&gt;return&lt;/span&gt; 1.5 * ( (*_pv)[2] + (*_pv)[1] );&lt;br /&gt;00072   } &lt;span class="comment"&gt;// Sphericity()&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/342064194792946930-2768089062314151659?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2768089062314151659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2768089062314151659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2768089062314151659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2768089062314151659'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/researchd0cafetopcafe-topology.html' title='Research:D0:cafe:top_cafe: topology variables in top_cafe package'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8834845222836054312</id><published>2007-05-28T11:18:00.000-07:00</published><updated>2007-05-28T11:24:43.086-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='submit'/><category scheme='http://www.blogger.com/atom/ns#' term='reprocessing'/><category scheme='http://www.blogger.com/atom/ns#' term='merge'/><category scheme='http://www.blogger.com/atom/ns#' term='sam'/><category scheme='http://www.blogger.com/atom/ns#' term='research'/><category scheme='http://www.blogger.com/atom/ns#' term='westgrid'/><category scheme='http://www.blogger.com/atom/ns#' term='user name'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><title type='text'>Research:WestGrid:Reprocessing: sam cannot find the name zhiyil</title><content type='html'>When I submit jobs (d0 data p20 reprocessing) to westgrid, once my keberos expired, I have to type my password again to re-create keberos certificate. However, even I type correct password, I was still given the following error: zhiyil cannot be found.&lt;br /&gt;&lt;br /&gt;The solution should be:&lt;br /&gt;kdestroy&lt;br /&gt;and&lt;br /&gt;remove the file /tmp/PROXY_zhiyil&lt;br /&gt;&lt;br /&gt;But sometimes they are not working. Confused....&lt;br /&gt;==============&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/bin/samg", line 179, in ?&lt;br /&gt;   sys.exit(main(sys.argv))&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/bin/samg", line 175, in main&lt;br /&gt;   command_function(arguments)&lt;br /&gt; File "samg_submit.py", line 262, in samg_submit&lt;br /&gt; File "samg_submit.py", line 133, in translate&lt;br /&gt; File "samg_submit.py", line 157, in translateDoc&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/lib/jim_client/mergejob.py", line 862, in checkSemantic&lt;br /&gt;   samgjob.Doc.checkSemantic(self)&lt;br /&gt; File "/home/parag/wspace/samgrid/V7/JIMSUITE/jim_client/lib/jim_client/samgjob.py", line 828, in checkSemantic&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/lib/jim_client/mergejob.py", line 887, in createAttribute&lt;br /&gt;   attr = Attribute.factory(token, self.context)&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/lib/jim_client/mergejob.py", line 515, in factory&lt;br /&gt;   newDefname,snapId=context.createDatasetfromDimension(tokenValue)&lt;br /&gt; File "/export/D0_products/ups/prd/jim_client/NULL/v3_0_1/lib/jim_client/mergejob.py", line 326, in createDatasetfromDimension&lt;br /&gt;   sam_user = jim_client_util.getUserName()&lt;br /&gt; File "/home/parag/wspace/samgrid/V7/JIMSUITE/jim_client/lib/jim_client/jim_client_util.py", line 177, in getUserName&lt;br /&gt; File "sam_common_pylibSamCommand/BlessedCommandInterfacePlaceHolder.py", line 81, in __call__&lt;br /&gt; File "sam_common_pylibSamCommand/CommandInterface.py", line 251, in __call__&lt;br /&gt; File "sam_common_pylibSamCommand/SamCommandInterface.py", line 243, in apiWrapper&lt;br /&gt; File "sam_user_pyapi/src/samUtility.py", line 317, in implementation&lt;br /&gt; File "sam_common_pylibSamCorba/SamServerProxy.py", line 257, in _callRemoteMethod&lt;br /&gt; File "sam_common_pylibSamCorba/SamServerProxyRetryHandler.py", line 266, in handleCall&lt;br /&gt;SamException.SamExceptions.PersonNotFound: GridSubject with name '/DC=gov/DC=fnal/O=Fermilab/OU=People/CN=Zhiyi Liu/USERID=zhiyil' not found.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8834845222836054312?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8834845222836054312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8834845222836054312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8834845222836054312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8834845222836054312'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/researchwesgridreprocessing-sam-cannot.html' title='Research:WestGrid:Reprocessing: sam cannot find the name zhiyil'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1696419319649789353</id><published>2007-05-26T20:14:00.000-07:00</published><updated>2007-05-26T20:37:38.642-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='selectuserobject'/><category scheme='http://www.blogger.com/atom/ns#' term='research'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='emjetmatching'/><category scheme='http://www.blogger.com/atom/ns#' term='select'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><category scheme='http://www.blogger.com/atom/ns#' term='cafe'/><category scheme='http://www.blogger.com/atom/ns#' term='caf_util'/><title type='text'>Research:D0:caf_util: about processor EMJetMatching</title><content type='html'>The processor EMJetMatching doesn't throw any events away, basically, it just tries to loop all EM objects which may be in the cone with a jet. Here if EM and Jet are in the jet cone, then label this JET as EM, say, change flag isEM() true, if not, label isEM() as false. Why? Since we isEM() is set as reconstructing, so it may not be right.&lt;br /&gt;&lt;br /&gt;The processor EMJetMatching is based on the class SelectUserObjects. The latter has documentation as below.&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * Select objects based on a user defined cut.&lt;br /&gt;     *&lt;br /&gt;     * The cut is supplied by the user by overriding the&lt;br /&gt;     * virtual selectObject(const T&amp; obj) method.&lt;br /&gt;     *&lt;br /&gt;     * To use this class, inherit from it, passing the desired&lt;br /&gt;     * object type to the base class:&lt;br /&gt;     *&lt;br /&gt;     * class MySelector : public SelectUserObjects&lt;tmbjet&gt; {&lt;br /&gt;     *&lt;br /&gt;     * Then override the selectObject(const TMBJet&amp; obj) method.&lt;br /&gt;     * The user can also override two more methods (which do nothing&lt;br /&gt;     * by default):&lt;br /&gt;     *&lt;br /&gt;     *   void before(Collection&lt;t&gt;&amp; from);&lt;br /&gt;     *   void after(Collection&lt;t&gt;&amp; accepted, Collection&lt;t&gt;&amp;amp; rejected);&lt;br /&gt;     *&lt;br /&gt;     * Configuration options:&lt;br /&gt;     *&lt;br /&gt;     * - .From:   OldBranchname [required]&lt;br /&gt;     * - .To:     NewBranchName [required]&lt;br /&gt;     * - .RejectedBranch: NewBranchName for the rejected objects [default none]&lt;br /&gt;     * - .Tree:   OutputTreeName[default: name()]&lt;br /&gt;     * - .Variables: Member variable list [default: all]&lt;br /&gt;     *&lt;br /&gt;     * - .LoadAll: Load whole object before it is copied [default: 1]&lt;br /&gt;     *   You should probably never change this if you don't know exactly&lt;br /&gt;     *   what you are doing.&lt;br /&gt;     *&lt;br /&gt;     * \ingroup cafe&lt;br /&gt;     */&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1696419319649789353?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1696419319649789353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1696419319649789353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1696419319649789353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1696419319649789353'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/researchd0cafutil-about-processor.html' title='Research:D0:caf_util: about processor EMJetMatching'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2824639377774320467</id><published>2007-05-21T08:44:00.000-07:00</published><updated>2007-05-21T08:49:04.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fnal'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='block'/><category scheme='http://www.blogger.com/atom/ns#' term='fermilab'/><category scheme='http://www.blogger.com/atom/ns#' term='certificate'/><category scheme='http://www.blogger.com/atom/ns#' term='kx509'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><title type='text'>D0:software:network: my laptop is blocked</title><content type='html'>Fnal has a network policy, and my laptop is blocked since I open X window without certificates. The method to solve it is to import certificate to my browser. Follow the instruction on the given link. but I don't have kx509 installed. I cannot find any on network (since links are dead), so I find there is kx509 installed and copy it and its corresponding libs to my local laptop. and run the script get-cert.sh with -i, works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2824639377774320467?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2824639377774320467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2824639377774320467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2824639377774320467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2824639377774320467'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/d0softwarenetwork-my-laptop-is-blocked.html' title='D0:software:network: my laptop is blocked'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5260541586325766097</id><published>2007-05-20T15:28:00.000-07:00</published><updated>2007-05-20T15:35:55.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='met'/><category scheme='http://www.blogger.com/atom/ns#' term='framework'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><title type='text'>D0:MET: how to get access to right MET</title><content type='html'>In D0 framework, MET issue is very tricky. I am sick of how to get access to it and always spent lots of time on it. Here, I would try my best to clarify it:&lt;br /&gt;&lt;br /&gt;- MET has several components: CH, JES, MU, Bad Jets. Based on your study, you could choose different configuration, usually, we use:&lt;br /&gt;&lt;br /&gt;  CH+JES+EM+MU&lt;br /&gt;&lt;br /&gt;-However, for JES, we have corrJet, corrmuJet, smear_corrJet, smear_corrmuJET etc, here Jet is JCCA or JCCB. For MU, we have MU or CALOMU.&lt;br /&gt;&lt;br /&gt;- But a point making things more complicated is: in JES, sometime we apply muon correction which may be counted later in MET, in order to avoid double contributions from muon correction, we should keep in mind it!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5260541586325766097?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5260541586325766097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5260541586325766097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5260541586325766097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5260541586325766097'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/d0met-how-to-get-access-to-right-met.html' title='D0:MET: how to get access to right MET'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4460861346879361930</id><published>2007-05-18T22:22:00.000-07:00</published><updated>2007-05-18T22:25:04.980-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gramma'/><category scheme='http://www.blogger.com/atom/ns#' term='英文'/><category scheme='http://www.blogger.com/atom/ns#' term='sign'/><category scheme='http://www.blogger.com/atom/ns#' term='标点'/><category scheme='http://www.blogger.com/atom/ns#' term='符号'/><category scheme='http://www.blogger.com/atom/ns#' term='english'/><category scheme='http://www.blogger.com/atom/ns#' term='翻译'/><category scheme='http://www.blogger.com/atom/ns#' term='大全'/><title type='text'>英文标点符号翻译大全</title><content type='html'>&lt;p&gt;     +  plus 加号；正号&lt;br /&gt;　　-  minus 减号；负号&lt;br /&gt;　　± plus or minus 正负号&lt;br /&gt;　　× is multiplied by 乘号&lt;br /&gt;　　÷ is divided by 除号&lt;br /&gt;　　＝ is equal to 等于号&lt;br /&gt;　　≠ is not equal to 不等于号&lt;br /&gt;　　≡ is equivalent to 全等于号&lt;br /&gt;　　≌ is equal to or approximately equal to 等于或约等于号&lt;br /&gt;　　≈ is approximately equal to 约等于号 &lt;/p&gt; &lt;p&gt;　　＜ is less than 小于号&lt;br /&gt;　　＞ is more than 大于号&lt;br /&gt;　　≮ is not less than 不小于号&lt;br /&gt;　　≯ is not more than 不大于号&lt;br /&gt;　　≤ is less than or equal to 小于或等于号&lt;br /&gt;　　≥ is more than or equal to 大于或等于号&lt;br /&gt;　　%  per cent 百分之...&lt;br /&gt;　　‰ per mill 千分之...&lt;br /&gt;　　∞ infinity 无限大号&lt;br /&gt;　　∝ varies as 与...成比例 &lt;/p&gt; &lt;p&gt;　　√ (square) root 平方根&lt;br /&gt;　　∵ since; because 因为&lt;br /&gt;　　∴ hence 所以&lt;br /&gt;　　∷ equals, as (proportion) 等于，成比例&lt;br /&gt;　　∠ angle 角&lt;br /&gt;　　⌒ semicircle 半圆&lt;br /&gt;　　⊙ circle 圆&lt;br /&gt;　　○ circumference 圆周&lt;br /&gt;　　π pi 圆周率&lt;br /&gt;　　△ triangle 三角形 &lt;/p&gt; &lt;p&gt;　　⊥ perpendicular to 垂直于&lt;br /&gt;　　∪ union of 并，合集&lt;br /&gt;　　∩ intersection of 交，通集&lt;br /&gt;　　∫ the integral of ...的积分&lt;br /&gt;　　∑ (sigma) summation of 总和&lt;br /&gt;　　° degree 度&lt;br /&gt;　　′ minute 分&lt;br /&gt;　　″ second 秒&lt;br /&gt;　　℃ Celsius system 摄氏度 &lt;/p&gt; &lt;p&gt;　　{ open brace, open curly 左花括号&lt;br /&gt;　　} close brace, close curly 右花括号&lt;br /&gt;　　( open parenthesis, open paren 左圆括号&lt;br /&gt;　　) close parenthesis, close paren 右圆括号&lt;br /&gt;　　() brakets/ parentheses 括号&lt;br /&gt;　　[ open bracket 左方括号&lt;br /&gt;　　] close bracket 右方括号&lt;br /&gt;　　[] square brackets 方括号&lt;br /&gt;　　. period, dot 句号，点&lt;br /&gt;　　| vertical bar, vertical virgule 竖线 &lt;/p&gt; &lt;p&gt;　　&amp; ampersand, and, reference, ref 和，引用&lt;br /&gt;　　* asterisk, multiply, star, pointer 星号，乘号，星，指针&lt;br /&gt;　　/ slash, divide, oblique 斜线，斜杠，除号&lt;br /&gt;　　// slash-slash, comment 双斜线，注释符&lt;br /&gt;　　# pound 井号&lt;br /&gt;　　\ backslash, sometimes&lt;br /&gt;　　escape 反斜线转义符，有时表示转义符或续行符&lt;br /&gt;　　~ tilde 波浪符 &lt;/p&gt; &lt;p&gt;　　. full stop 句号&lt;br /&gt;　　, comma 逗号&lt;br /&gt;　　: colon 冒号&lt;br /&gt;　　; semicolon 分号&lt;br /&gt;　　? question mark 问号&lt;br /&gt;　　! exclamation mark (英式英语) exclamation point (美式英语)&lt;br /&gt;　　' apostrophe 撇号&lt;br /&gt;　　- hyphen 连字号&lt;br /&gt;　　-- dash 破折号&lt;br /&gt;　　... dots/ ellipsis 省略号 &lt;/p&gt; &lt;p&gt;　　" single quotation marks 单引号&lt;br /&gt;　　"" double quotation marks 双引号&lt;br /&gt;　　‖ parallel 双线号&lt;br /&gt;　　&amp; ampersand = and&lt;br /&gt;　　～ swung dash 代字号&lt;br /&gt;　　§ section; division 分节号&lt;br /&gt;　　→ arrow 箭号；参见号 &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-4460861346879361930?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4460861346879361930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4460861346879361930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4460861346879361930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4460861346879361930'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/blog-post.html' title='英文标点符号翻译大全'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-4334242237345224494</id><published>2007-05-12T21:39:00.000-07:00</published><updated>2007-05-12T22:08:40.892-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='program'/><category scheme='http://www.blogger.com/atom/ns#' term='partition'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='hidden'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='autochk.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='fdisk'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><category scheme='http://www.blogger.com/atom/ns#' term='skipping'/><category scheme='http://www.blogger.com/atom/ns#' term='found'/><title type='text'>Linux: installation: how to solve the problem: autochk program not found-------skipping autochk</title><content type='html'>&lt;span style="font-size:14;"&gt;Today I help my girlfriend to install the 2nd operating system since she is always bothered by virus under Windows xp. So I decide to help her to install Mandriva 2007 which is the easy-going distribution in the Linux world for a beginner. I ever installed double systems many times and have some ideas how to avoid tricky things like problems caused by partitions.&lt;br /&gt;&lt;br /&gt;Now I will briefly describe the entire steps for other people's reference. First, in windows, I learned partitions by PartitionMagic and try to release a space for Linux installation. This is pretty simple, but I would strongly recommend to backup the table before you may do unrecovered and dangerous things. Okay, thus a space has been built for Linux with the format ex3. And then restart. Insert Mandriva DVD installtion disk to start install as usual. Make sure to pay more attention on partition part! You could use existing partition which just was released from Windows by PartitionMargic or you use 'custom mode' (note: even use this mode, you have to build a free space before doing that since Linux can destroy your data). Okay, thus we have a new system! But a tricky problem is comming as transfering to Windows! The problem is: when I try to start Windows XP, after flashing Windows startup bar, I was given a blue screen with words: &lt;span style="color: rgb(255, 0, 0);"&gt;program autochk.exe not found ===== skipping authochk&lt;/span&gt; and then restart to new loop. Calm down and try to search internet for useful stuff. This can be solved. At last, I think I find the answer. The source is from the partition of Windows has been hidden. What you do is just to unhidden it! The method here is a bit different from the useful message below (I got the basic idea from it).&lt;br /&gt;&lt;br /&gt;1. In the terminal of Linux, type as a rooter:&lt;br /&gt;fdisk -l /dev/hda&lt;br /&gt;(thus you are given a partition table, you should see the windows partition as &lt;span style="color: rgb(255, 0, 0);"&gt;hidden&lt;/span&gt;, please copy the table for backup in case of making mistakes), then run:&lt;br /&gt;fdisk /dev/hda&lt;br /&gt;type &lt;span style="color: rgb(0, 153, 0);"&gt;t&lt;/span&gt; to enter a mode to change &lt;span style="color: rgb(255, 0, 0);"&gt;ID from 17 to 7&lt;/span&gt;. Then done! I don't have too much time to write it down.  Please refer to Chinese version from other body.&lt;br /&gt;=============================================&lt;br /&gt;WinXP下安装Linux9.0实战&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);font-size:12;" &gt;摘自 精彩奇讯   开化党  2005-04-28 13:07&lt;br /&gt;http://www.sun126.com/bbs/ccb/index.cgi &lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 17pt; color: rgb(0, 0, 0);font-size:14;" &gt;暑 假正是我们这些计算机迷学习实战经验的最好时机，所以我选择了一只想要学习的RedHatLinux9.0作为这个暑假的学习重点。但是在安装Linux 的过程中，我先后遇到了很多棘手的问题，我翻阅了一些相关书籍，上网查找资料，经过了一整天的努力，终于实现了WinXP和Linux的双系统。而且最重 要的是，对以前的WinXP系统没有什么影响。现在，我就将我安装过程中总结出来的经验分享给大家。&lt;br /&gt;&lt;br /&gt;我的硬盘是 40G的，分为CDEF四个分区，WinXP就安装在C盘里面。我的D盘为8G，正好可以安装Linux。于是我将D盘的资料移动到F盘里面，并用分区工 具PartitionMagic8.0把D盘改成主分区。由于Linux需要一个相当于内存的两倍大小的swap分区，而且越*近硬盘前面的主面就越好， 因此我用分区工具在刚才删除掉的D盘的空闲空间的前面部分分出一个256M的LinuxSwap分区(因为我的内存为128M)。然后将剩余的空闲空间格 式化成Linux可以用的ext3文件系统。这样，分区准备工作就完成了。&lt;br /&gt;&lt;br /&gt;接着，我就开始用 RedHatLinux9.0的安装盘安装Linux，在分区的时候，选择手动分区，这是只要将以前分好的ext3挂在"/"目录就可以继续安装了。安装 的时候要记住管理员的密码，特别注意的是管理员的账号是root，而不是我们平常Windows里面的Administrator或者Admin。至于多 系统引导，我采用的是简单的GRUB。由于Linux9.0采用了简体中文图形安装界面，安装过程还是比较简单的。&lt;br /&gt;&lt;br /&gt;安装 完以后就能顺利进入Linux操作系统了。但是，这时候我发现位于硬盘第一个分区(hda1)的WinXP不能启动了，启动过程中会出现autochk program not found-------skipping autochk的字样，然后就自动重启，而且总是重复这样的现象，就连安全模式都进不去。&lt;br /&gt;&lt;br /&gt;在查阅相关资料以后，发现应该 是第一个分区被隐藏掉了(Hidden)。于是，我用root账户进入了Linux，修改/boot/grub目录里面的grub.conf文件，在 Title WindowsXP下面加上了一句Unhide (hd0,0)。可是重新启动以后还是出现不能启动的问题。在经过多次尝试后，我打算换一种方法。&lt;br /&gt;&lt;br /&gt;于是我想到了 Linux安装盘中的救援模式(Linux Rescue Mode)，我把第一张安装盘放到光驱里面，从光盘启动，键入linux rescue后回车，进入了救援模式。用fdisk -l /dev/hda命令发现hda1的System为(Hidden)HPFS/NTFS，只要把这个改成HPFS/NTFS就可以了。用fdisk /dev/hda命令开启fdisk模式。用t命令选择hda1后输入7然后回车(7在这里就是代表的HPFS/NTFS，而以前的(Hidden) HPFS/NTFS的ID为17)。紧接着，输入w保存当前硬盘分区信息，再输入exit就可以退出救援模式了。同时，系统也重新启动(记得这时候将安装 盘拿出来，或者在Bios设置里面把第一项Boot改为硬盘启动)。而且我已经能够进入WinXP了。&lt;br /&gt;&lt;br /&gt;可是，我发现这时候的WinXP只有4种颜色，而且在桌面设置里面只有800*600一种分辨率，不过，这只是小问题，只要将显卡的驱动程序重新安装一遍就可以了。&lt;br /&gt;&lt;br /&gt;至此，可以说是大功告成，在没有影响到以前的WinXP的情况下，我安装上了Linux操作系统。希望我的这些经验能够给将要安装学习Linux的朋友们一些帮助。也希望有越来越多的人加入到学习Linux的行列中来。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&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/342064194792946930-4334242237345224494?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/4334242237345224494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=4334242237345224494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4334242237345224494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/4334242237345224494'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/linux-installation-how-to-solve-problem.html' title='Linux: installation: how to solve the problem: autochk program not found-------skipping autochk'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7811182945151209363</id><published>2007-05-07T22:21:00.000-07:00</published><updated>2007-05-07T22:25:07.591-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='remote'/><category scheme='http://www.blogger.com/atom/ns#' term='computer'/><title type='text'>Linux:ssh: how to use ssh command remotely</title><content type='html'>Usually, when you want to run a command on a remote computer, you have to log in first. If you have ssh, you can use remote-command way:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(51, 204, 0);"&gt;ssh your.remote.computer.com yourCommandHere&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;ssh smart.phys.sfu.ca date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7811182945151209363?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7811182945151209363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7811182945151209363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7811182945151209363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7811182945151209363'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/linuxssh-how-to-use-ssh-command.html' title='Linux:ssh: how to use ssh command remotely'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-9022844889191269938</id><published>2007-05-04T00:32:00.000-07:00</published><updated>2007-05-04T00:46:25.363-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='research'/><category scheme='http://www.blogger.com/atom/ns#' term='username'/><category scheme='http://www.blogger.com/atom/ns#' term='report'/><category scheme='http://www.blogger.com/atom/ns#' term='trigger'/><category scheme='http://www.blogger.com/atom/ns#' term='d0'/><title type='text'>Research:D0:Triggers: how to get report of certain triggers or trigger list</title><content type='html'>Now D0 users don't need so-called authentication to get trigger report. The basic approach is&lt;br /&gt;&lt;ol&gt;&lt;li&gt;visit D0 work page: &lt;a href="http://www-d0.fnal.gov/atwork/index.html"&gt;http://www-d0.fnal.gov/atwork/index.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Click &lt;a href="http://www-d0online.fnal.gov/www/groups/tm/tm_main.html"&gt;                TriggerMeister&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Click &lt;span&gt;&lt;u&gt;&lt;b&gt;&lt;a href="https://d0db-prd.fnal.gov:8443/trigdb/"&gt;&lt;span style="color:#000000;"&gt;&lt;u&gt;&lt;b&gt;Trigger Database&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Here click "report", then you are given the page to input username and password, Database: &lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;production&lt;/span&gt;, Role: &lt;span style="font-style: italic; font-weight: bold; color: rgb(255, 0, 0);"&gt;guest&lt;/span&gt;, thus DB username and password can be none! Enjoy trigger database!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-9022844889191269938?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/9022844889191269938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=9022844889191269938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9022844889191269938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/9022844889191269938'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/05/researchd0triggers-how-to-get-report-of.html' title='Research:D0:Triggers: how to get report of certain triggers or trigger list'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8915512065378250045</id><published>2007-04-27T00:39:00.000-07:00</published><updated>2007-04-27T00:43:17.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='palette'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='Draw'/><category scheme='http://www.blogger.com/atom/ns#' term='setpalette'/><category scheme='http://www.blogger.com/atom/ns#' term='root'/><title type='text'>ROOT: how to change palette color</title><content type='html'>&lt;span style="font-family: courier new;"&gt;root [2] gStyle-&gt;SetPalette(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;root [3] eqcd-&gt;Draw("mucalmet:metsig", "Nisotrk!=0","colz")&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-8915512065378250045?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8915512065378250045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8915512065378250045' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8915512065378250045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8915512065378250045'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/root-how-to-change-palette-color.html' title='ROOT: how to change palette color'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2306425241804879920</id><published>2007-04-24T23:53:00.000-07:00</published><updated>2007-04-24T23:56:52.077-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lower case'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='upper case'/><category scheme='http://www.blogger.com/atom/ns#' term='tr'/><title type='text'>Linux:shell: how to exchange case of letters</title><content type='html'>If you wanna exchange between the upper case of one string and the lower case, you could use the command&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;echo "ThisIsAnExample" | tr 'a-z' 'A-Z' &lt;/span&gt;&lt;br /&gt;and&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;echo "ThisIsAnExample" | tr 'A-Z' 'a-z'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2306425241804879920?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2306425241804879920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2306425241804879920' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2306425241804879920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2306425241804879920'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linuxshell-how-to-exchange-case-of.html' title='Linux:shell: how to exchange case of letters'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-8983548786670594471</id><published>2007-04-21T14:21:00.000-07:00</published><updated>2007-04-21T14:26:55.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='complete'/><category scheme='http://www.blogger.com/atom/ns#' term='indent'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>Emacs: how to indent and automatically complete</title><content type='html'>&lt;ul&gt;&lt;li&gt;indent: first select the region what you want to apply indenting (if selecting all, use &lt;span style="font-weight: bold; font-style: italic;"&gt;C-x h&lt;/span&gt;). and then use &lt;span style="font-weight: bold; font-style: italic;"&gt;C-M-\&lt;/span&gt; to indent&lt;br /&gt;&lt;/li&gt;&lt;li&gt;complete auto: &lt;span style="font-weight: bold; font-style: italic;"&gt;M-/&lt;/span&gt; , this is very useful.&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/342064194792946930-8983548786670594471?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/8983548786670594471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=8983548786670594471' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8983548786670594471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/8983548786670594471'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/emacs-how-to-indent-and-automatically.html' title='Emacs: how to indent and automatically complete'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-2649263685351379799</id><published>2007-04-20T22:38:00.000-07:00</published><updated>2007-04-20T22:44:38.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='Tex'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='xemacs'/><category scheme='http://www.blogger.com/atom/ns#' term='comment out'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>Latex: how to comment out lines in emacs</title><content type='html'>If you are editing a latex file by using emacs, then how to comment out lines and uncomment out lines? As you know, commenting out is just add '%' before the lines and uncommenting is remove '%' before the lines.&lt;br /&gt;&lt;br /&gt;People said:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt;It is often necessary to comment out temporarily a region of TeX or LaTeX code.  This can be done with the commands &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-c ;&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt; and &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-c %&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt;.  &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-c ;&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt; will comment out all lines in the current region, while &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-c %&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt; will comment out the current paragraph.  To uncomment, simply type &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-u - C-c ;&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt; to uncomment all lines in the region, or &lt;/span&gt;&lt;kbd style="color: rgb(0, 102, 0); font-style: italic;"&gt;C-u - C-c %&lt;/kbd&gt;&lt;span style="color: rgb(0, 102, 0); font-style: italic;"&gt; uncomment all comment lines around point.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But I find an easier way: just use &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;C-c ;&lt;/span&gt; to switch. For example, you have 3 lines without '%', then use &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;C-c ;&lt;/span&gt; to add '%', then to uncomment, just use &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;C-c ;&lt;/span&gt;  again! Remember, before using the keys, to mark your region which you wanna (un)comment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-2649263685351379799?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/2649263685351379799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=2649263685351379799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2649263685351379799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/2649263685351379799'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/latex-how-to-comment-out-lines-in-emacs.html' title='Latex: how to comment out lines in emacs'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-783334610243364964</id><published>2007-04-20T21:37:00.000-07:00</published><updated>2007-04-21T14:21:21.779-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gaim'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='QQ'/><title type='text'>Linux: gaim and QQ</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Gaim 2.0.0beta6 &lt;/span&gt;in linux starts to support QQ. So we could use it to connect with our friends by QQ. :-)&lt;br /&gt;&lt;br /&gt;http://www.pidgin.im/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-783334610243364964?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/783334610243364964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=783334610243364964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/783334610243364964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/783334610243364964'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linux-gaim-and-qq.html' title='Linux: gaim and QQ'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7653329824974104400</id><published>2007-04-20T00:55:00.000-07:00</published><updated>2007-04-20T00:59:35.044-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gedit'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='coding'/><title type='text'>Linux: how to show Chinese charactors using gedit</title><content type='html'>'&lt;span style="color: rgb(255, 0, 0);" class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;gedit&lt;/span&gt;' is an editor in Linux. It has been internationalized and is an excellent software. In order to show or type Chinese by it, need to select some Chinese codings like GB Hz, GB 2312 ect. First, you open a blank file, when you save it, you will be asked that what kind of coding you wanna use, please pick any one of Chinese code. Do NOT use 'AutoDect', sometimes it is not working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7653329824974104400?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7653329824974104400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7653329824974104400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7653329824974104400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7653329824974104400'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linux-how-to-show-chinese-charactors.html' title='Linux: how to show Chinese charactors using gedit'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1265850348240896747</id><published>2007-04-18T15:13:00.000-07:00</published><updated>2007-04-18T15:18:11.953-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='sam'/><category scheme='http://www.blogger.com/atom/ns#' term='research'/><category scheme='http://www.blogger.com/atom/ns#' term='westgrid'/><category scheme='http://www.blogger.com/atom/ns#' term='blackhole'/><title type='text'>Research: remove merged files on Westgrid</title><content type='html'>Once files produced on Westgrid have been merged, should remember to remove for keeping durable space light. To do this:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Log in &lt;span style="color: rgb(255, 0, 0);"&gt;blackhole&lt;/span&gt; by my account same as SFU's&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;sudo su sam&lt;/span&gt; (run this for getting permission, note!! input my SFU password)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Go to Yann's directory (home)&lt;/li&gt;&lt;li&gt;Run the clean script.&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/342064194792946930-1265850348240896747?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1265850348240896747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1265850348240896747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1265850348240896747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1265850348240896747'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/research-remove-merged-files-on.html' title='Research: remove merged files on Westgrid'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1207350899228197322</id><published>2007-04-17T22:05:00.000-07:00</published><updated>2007-04-17T22:07:38.026-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='compare'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='diff'/><title type='text'>Linux:exmacs: diff or compare</title><content type='html'>&lt;pre&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;                          Move around      |      Toggle features      |        Manipulate&lt;/span&gt;&lt;br /&gt;                    =====================|===========================|=============================&lt;br /&gt;                    p,DEL -previous diff |     | -vert/horiz split   |a/b -copy A/B's region to B/A&lt;br /&gt;                    n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old diff&lt;br /&gt;                        j -jump to diff  |     @ -auto-refinement    |  * -refine current region&lt;br /&gt;                       gx -goto X's point|                           |  ! -update diff regions&lt;br /&gt;                      C-l -recenter      |    ## -ignore whitespace  |&lt;br /&gt;                      v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X&lt;br /&gt;                       -scroll lt/rt  |     X -read-only in buf X | wd -save diff output&lt;br /&gt;                        ~ -swap variants |     m -wide display       |&lt;br /&gt;                    =====================|===========================|=============================&lt;br /&gt;                        R -show registry |     = -compare regions    |  M   -show session group&lt;br /&gt;                        D -diff output   |     E -browse Ediff manual|  G   -send bug report&lt;br /&gt;                        i -status info   |     ? -help off           |  z/q -suspend/quit&lt;br /&gt;                    -------------------------------------------------------------------------------&lt;br /&gt;                    For help on a specific command:  Click Button 2 over it; or&lt;br /&gt;                                                       Put the cursor over it and type RET.&lt;br /&gt;&lt;/pre&gt;&lt;div style="border: 1px solid rgb(0, 0, 0); margin: 0px; padding: 0px; overflow: visible; position: absolute; left: 606px; top: 233px; width: 444px; height: 352px; display: none; z-index: 1000; font-size: 12px; cursor: default;" id="OAK_VOC_DIV_ID"&gt;&lt;div style="border: medium none ; margin: 0px; overflow: hidden; width: 100%; height: 24px;" id="oakvoc-tip-title-div"&gt;&lt;iframe style="border: 0px none ; margin: 0px; padding: 0px; overflow: hidden; width: 100%; height: 24px;" id="oakvoc_iframe_title"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style="border: medium none ; margin: 0px; padding: 0px; overflow: visible; width: 100%; height: 328px;" id="oakvoc-tip-content-div"&gt;&lt;iframe style="border: 0px none ; margin: 0px; padding: 0px; overflow: hidden; width: 100%; height: 328px;" id="oakvoc_iframe"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1207350899228197322?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1207350899228197322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1207350899228197322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1207350899228197322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1207350899228197322'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linuxexmacs-diff-or-compare.html' title='Linux:exmacs: diff or compare'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-5745203187191035153</id><published>2007-04-17T20:38:00.000-07:00</published><updated>2007-04-17T20:44:58.866-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scim'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='input method'/><title type='text'>Linux: chinese input method</title><content type='html'>My laptop has this method available, however, since the reason I &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;mentioned&lt;/span&gt; in the last entry (notification area is not set on the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;panel&lt;/span&gt;), I cannot find it.&lt;br /&gt;&lt;br /&gt;Here I am not gonna talk how to install it. Just say how to use it: open one program, right-click, find an entry 'Input method' and being ready to input.&lt;br /&gt;&lt;br /&gt;After installing &lt;span style="color: rgb(255, 0, 0);"&gt;scim&lt;/span&gt;, make sure add the following lines into the file '&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;~/.xinitrc&lt;/span&gt;'&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;scim -d&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;export XMODIFIERS=@im=SCIM&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;export GTK_IM_MODULE="scim"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:courier new;" &gt;export QT_IM_MODULE=scim&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;so that you don't need other settings.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-5745203187191035153?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/5745203187191035153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=5745203187191035153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5745203187191035153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/5745203187191035153'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linux-chinese-input-method.html' title='Linux: chinese input method'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7940260779398669357</id><published>2007-04-17T20:32:00.000-07:00</published><updated>2007-04-17T20:38:02.106-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='notification area'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Linux: notification area</title><content type='html'>I am using Mandriva 2007. Since I installed that, I could not find icons that I launched every time. For example, I start "scim" (Smart Chinese Input Method), no any icon shows up. Also, 'network appel', it is always there (been started) but I don't know where it is (open its window). They are started, but because I didn't put a 'notification area' on the panel, they are not seen!! Today I suddenly realized that! And more icons running are over there such as 'network', 'power management', ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7940260779398669357?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7940260779398669357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7940260779398669357' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7940260779398669357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7940260779398669357'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linux-notification-area.html' title='Linux: notification area'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-7445586485876818747</id><published>2007-04-12T21:49:00.000-07:00</published><updated>2007-04-12T21:50:46.843-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='welcome text'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>Linux: ssh welcome text</title><content type='html'>Add your SSH welcome information to the file &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;/etc/motd&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-7445586485876818747?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/7445586485876818747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=7445586485876818747' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7445586485876818747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/7445586485876818747'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/linux-ssh-welcome-text.html' title='Linux: ssh welcome text'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-342064194792946930.post-1148015207994084171</id><published>2007-04-12T21:35:00.000-07:00</published><updated>2007-04-12T21:51:22.762-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='fun'/><category scheme='http://www.blogger.com/atom/ns#' term='ascii'/><title type='text'>Fun: image to ascii codes</title><content type='html'>Here a list of available sites/softwares providing convertion from image to ascii.&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;http://dmoz.org/Arts/Visual_Arts/ASCII_Art/Software/&lt;/span&gt;&lt;br /&gt;and a good one:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;http://ascii.mastervb.net/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/342064194792946930-1148015207994084171?l=zyliu2005.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zyliu2005.blogspot.com/feeds/1148015207994084171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=342064194792946930&amp;postID=1148015207994084171' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1148015207994084171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/342064194792946930/posts/default/1148015207994084171'/><link rel='alternate' type='text/html' href='http://zyliu2005.blogspot.com/2007/04/fun-image-to-ascii-codes.html' title='Fun: image to ascii codes'/><author><name>Sun life</name><uri>http://www.blogger.com/profile/03771892899048949082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://hep.phys.sfu.ca/d0/zyliu.page/pobaby.png'/></author><thr:total>0</thr:total></entry></feed>
