<?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-8822542</id><updated>2011-07-07T19:09:54.483-07:00</updated><category term='tennis'/><title type='text'>Just for Fun</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8822542.post-6413118493228478256</id><published>2010-05-16T19:09:00.000-07:00</published><updated>2010-05-16T19:12:19.268-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tennis'/><title type='text'>How to serve in tennis?</title><content type='html'>Toss&lt;div&gt;Image there are three balls and hit all the three balls across. This is the same idea to return a deep forehand/backhand stroke.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-6413118493228478256?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/6413118493228478256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=6413118493228478256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/6413118493228478256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/6413118493228478256'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2010/05/how-to-serve-in-tennis.html' title='How to serve in tennis?'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-4759152518919190040</id><published>2007-08-25T11:19:00.001-07:00</published><updated>2007-08-25T11:28:43.871-07:00</updated><title type='text'>How to watch TV with sopcast</title><content type='html'>6/ Play a channel&lt;br /&gt;&lt;br /&gt;go to the channel page on sopcast: http://www.sopcast.org/channel/&lt;br /&gt;&lt;br /&gt;copy the link of the channel you want to watch, for example, espn:&lt;br /&gt;sop://broker.sopcast.org:3919/official/espn&lt;br /&gt;&lt;br /&gt;in a terminal, type:&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;/home/yourname/sopcast/sp-sc sop:sop://broker.sopcast.org:3919/official/espn 8900 8800&lt;br /&gt;&lt;br /&gt;Wait for around 15 seconds, open mplayer, go to play location and play: http://localhost:8800&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-4759152518919190040?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/4759152518919190040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=4759152518919190040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/4759152518919190040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/4759152518919190040'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2007/08/how-to-watch-tv-with-sopcast.html' title='How to watch TV with sopcast'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-2478961492233318904</id><published>2007-08-24T18:59:00.000-07:00</published><updated>2007-08-25T11:19:24.245-07:00</updated><title type='text'>install qsopcast on ubuntu</title><content type='html'>成功在ubuntu上实现网络电视的经验……&lt;br /&gt;&lt;br /&gt;首先，&lt;br /&gt;sudo apt-get install alien gcc make （如果已经安装alien，您可以取消此句）&lt;br /&gt;&lt;br /&gt;然后就可以到以下网址下载：&lt;br /&gt;http://www.sopcast.com/download/&lt;br /&gt;&lt;br /&gt;sp-sc.tgz,libstdcpp5.tgz&lt;br /&gt;&lt;br /&gt;http://apt.magiclinux.org/magic/2.1/unstable/RPMS.os/qsopcast-0.3.1-1mgc.i686.rpm&lt;br /&gt;&lt;br /&gt;再将sp-sc.tgz中的文件解压到/usr/local/bin/下，再用&lt;br /&gt;sudo alien qsopcast-0.3.1-1mgc.i686.rpm&lt;br /&gt;sudo dpkg -i qsopcast_0.3.1-2_i386.deb&lt;br /&gt;其次是安装kaffeine or mplayer,&lt;br /&gt;sudo apt-get install kaffeine&lt;br /&gt;这样就可以在“应用程序”－＞中的“Internet"看到qsopcast了。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-2478961492233318904?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/2478961492233318904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=2478961492233318904' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/2478961492233318904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/2478961492233318904'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2007/08/install-qsopcast-on-ubuntu.html' title='install qsopcast on ubuntu'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-3448584936357024273</id><published>2007-06-02T20:36:00.000-07:00</published><updated>2007-06-02T20:37:58.741-07:00</updated><title type='text'>kde configure problem</title><content type='html'>When installing KDE applications, its best to do&lt;br /&gt;&lt;br /&gt;./configure --prefix=`kde-config --prefix`&lt;br /&gt;&lt;br /&gt;This makes sure that everything is installed in the right KDE directories.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-3448584936357024273?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/3448584936357024273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=3448584936357024273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/3448584936357024273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/3448584936357024273'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2007/06/kde-configure-problem.html' title='kde configure problem'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-116707191068092762</id><published>2006-12-25T10:38:00.000-08:00</published><updated>2006-12-25T10:38:30.680-08:00</updated><title type='text'>Card games</title><content type='html'>Every card game is a journey.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-116707191068092762?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/116707191068092762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=116707191068092762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116707191068092762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116707191068092762'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2006/12/card-games.html' title='Card games'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-116564322461977068</id><published>2006-12-08T21:41:00.000-08:00</published><updated>2006-12-08T21:47:04.633-08:00</updated><title type='text'>Enable Java for firefox</title><content type='html'>After installing Sun's Java and the steps (see below) to enable Java for firefox, I still couldn't make it work until I did the following steps:&lt;br /&gt; &lt;br /&gt;$cd&lt;br /&gt;$cd .mozilla/plugins&lt;br /&gt;$ln -s /usr/java//jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.&lt;br /&gt;so&lt;br /&gt;********************&lt;br /&gt;Enable and Configure&lt;br /&gt; Mozilla 1.4 and later&lt;br /&gt;&lt;br /&gt;   1. Go to the plugins sub-directory under the Mozilla installation directory&lt;br /&gt;      cd &lt;Mozilla installation directory&gt;/plugins&lt;br /&gt;   2. In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type:&lt;br /&gt;      ln -s &lt;JRE installation directory&gt;/plugin/i386/ns7/libjavaplugin_oji.so&lt;br /&gt;&lt;br /&gt;      Example:&lt;br /&gt;          * If Mozilla is installed in this directory:&lt;br /&gt;            /usr/lib/mozilla-1.4/&lt;br /&gt;          * and if the JRE is installed at this directory:&lt;br /&gt;            /usr/java/jre1.5.0&lt;br /&gt;          * Then type at the terminal to go to the browser plug-in directory:&lt;br /&gt;            cd /usr/lib/mozilla-1.4/plugins&lt;br /&gt;          * Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.&lt;br /&gt;            ln -s /usr/java/jre1.5.0/plugin/i386/ns7&lt;br /&gt;            /libjavaplugin_oji.so .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-116564322461977068?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/116564322461977068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=116564322461977068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116564322461977068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116564322461977068'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2006/12/enable-java-for-firefox.html' title='Enable Java for firefox'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-116344008614084061</id><published>2006-11-13T09:46:00.000-08:00</published><updated>2006-11-13T09:48:06.150-08:00</updated><title type='text'>Likelihood ratio test is more powerful when ...?</title><content type='html'>the underlying distribution is more close to normal distribution?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-116344008614084061?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/116344008614084061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=116344008614084061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116344008614084061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116344008614084061'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2006/11/likelihood-ratio-test-is-more-powerful.html' title='Likelihood ratio test is more powerful when ...?'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-116318543369138434</id><published>2006-11-10T11:02:00.000-08:00</published><updated>2006-11-10T11:03:53.700-08:00</updated><title type='text'>Shutdown Linux and ACPI</title><content type='html'>The Advanced Control and Power Interface, ACPI, allows IPCop to monitor key hardware metrics such as power and processor temprature. If necessary, IPCop, will power itself off to protect your processor and motherboard. ACPI requires an ACPI enabled chip set on your motherboard, ACPI aware BIOS, and the use of the “IPCop ( ACPI enabled )” kernel. If you don't know if your motherboard is ACPI enabled, check your motherboard or computer's documentation. If you can't find out, try booting one of the ACPI enabled kernels and check to see if the apci driver came up properly by logging in as root and typing:&lt;br /&gt;&lt;br /&gt;    # dmesg|grep ^ACPI:&lt;br /&gt;&lt;br /&gt;    Verify the ACPI reported no errors. If an error is reported, reboot and select another kernel configuation. &lt;br /&gt;&lt;br /&gt;Change /etc/grub.conf and add&lt;br /&gt;&lt;br /&gt;append="acpi=force"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-116318543369138434?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/116318543369138434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=116318543369138434' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116318543369138434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116318543369138434'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2006/11/shutdown-linux-and-acpi.html' title='Shutdown Linux and ACPI'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8822542.post-116198574373398363</id><published>2006-10-27T14:45:00.000-07:00</published><updated>2006-10-27T14:55:24.456-07:00</updated><title type='text'>Flush buffer in Fortran</title><content type='html'>&lt;span style="font-family: times new roman;font-family:Courier,Monospaced;" class="fixed_width" &gt;I have a long-running job that writes messages to a file to tell how it&lt;br /&gt;is doing.  The job runs in the background under UNIX (f77 under SUN&lt;br /&gt;Sparc running  Solaris, and also on a DEC alpha under ULTRIX).&lt;br /&gt;&lt;/span&gt;&lt;p style="font-family: times new roman;"&gt;&lt;span class="fixed_width"&gt;Trouble is I can't read the messages till they are ancient history.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: times new roman;"&gt;&lt;span class="fixed_width"&gt;Is there a way to &lt;span style="font-weight: bold;"&gt;flush&lt;/span&gt; the output buffer each time a message is&lt;br /&gt;written?  Most likely this is operating system specific, but&lt;br /&gt;any help would be appreciated.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: times new roman;"&gt;Answer 1:&lt;/p&gt;&lt;span style="font-family: times new roman;font-family:Courier,Monospaced;" class="fixed_width" &gt;Many FORTRAN systems have a &lt;span style="font-weight: bold;"&gt;flush&lt;/span&gt; routine:&lt;br /&gt;&lt;/span&gt;&lt;p style="font-family: times new roman;"&gt;&lt;span class="fixed_width"&gt;      &lt;span style="font-weight: bold;"&gt;call flush&lt;/span&gt;(6)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: times new roman;"&gt;&lt;span class="fixed_width"&gt;You can insert this line just after the print statement that you want&lt;br /&gt;to see the output from immediately after it is executed.  On some&lt;br /&gt;machines the unit number is different.  For example, on Cray computers&lt;br /&gt;you would do something like&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: times new roman;"&gt;&lt;span class="fixed_width"&gt;      print'(a,/,(1p10e13.5))',' DEBUG ARRAY:',array&lt;br /&gt;cal flush(101)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: times new roman;font-family:Courier,Monospaced;" class="fixed_width" &gt;Check the FORTRAN documentation or online man page for FLUSH&lt;/span&gt;&lt;br /&gt;&lt;p style="font-family: times new roman;"&gt;Answer 2:&lt;/p&gt;&lt;span style="font-family: times new roman;font-family:Courier,Monospaced;" class="fixed_width" &gt;OPEN the file once with STATUS='UNKNOWN' and CLOSE it immediately.&lt;br /&gt;Then OPEN it everytime before you write the message with STATUS='OLD'&lt;br /&gt;and CLOSE it after the message.  The CLOSE should &lt;span style="font-weight: bold;"&gt;flush&lt;/span&gt; the output&lt;br /&gt;buffer.  I don't think that this is covered by the standard, but it's&lt;br /&gt;hard to imagine a runtime than would not &lt;span style="font-weight: bold;"&gt;flush&lt;/span&gt; the buffer after a&lt;br /&gt;CLOSE.  It worked for me on various UN*X systems.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8822542-116198574373398363?l=zhuwang.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhuwang.blogspot.com/feeds/116198574373398363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8822542&amp;postID=116198574373398363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116198574373398363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8822542/posts/default/116198574373398363'/><link rel='alternate' type='text/html' href='http://zhuwang.blogspot.com/2006/10/flush-buffer-in-fortran.html' title='Flush buffer in Fortran'/><author><name>drew</name><uri>http://www.blogger.com/profile/17650195940268155849</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
