Just for Fun

Sunday, May 16, 2010

How to serve in tennis?

Toss

Image there are three balls and hit all the three balls across. This is the same idea to return a deep forehand/backhand stroke.

Labels:

Saturday, August 25, 2007

How to watch TV with sopcast

6/ Play a channel

go to the channel page on sopcast: http://www.sopcast.org/channel/

copy the link of the channel you want to watch, for example, espn:
sop://broker.sopcast.org:3919/official/espn

in a terminal, type:
Code:

/home/yourname/sopcast/sp-sc sop:sop://broker.sopcast.org:3919/official/espn 8900 8800

Wait for around 15 seconds, open mplayer, go to play location and play: http://localhost:8800

Friday, August 24, 2007

install qsopcast on ubuntu

成功在ubuntu上实现网络电视的经验……

首先,
sudo apt-get install alien gcc make (如果已经安装alien,您可以取消此句)

然后就可以到以下网址下载:
http://www.sopcast.com/download/

sp-sc.tgz,libstdcpp5.tgz

http://apt.magiclinux.org/magic/2.1/unstable/RPMS.os/qsopcast-0.3.1-1mgc.i686.rpm

再将sp-sc.tgz中的文件解压到/usr/local/bin/下,再用
sudo alien qsopcast-0.3.1-1mgc.i686.rpm
sudo dpkg -i qsopcast_0.3.1-2_i386.deb
其次是安装kaffeine or mplayer,
sudo apt-get install kaffeine
这样就可以在“应用程序”->中的“Internet"看到qsopcast了。

Saturday, June 02, 2007

kde configure problem

When installing KDE applications, its best to do

./configure --prefix=`kde-config --prefix`

This makes sure that everything is installed in the right KDE directories.

Monday, December 25, 2006

Card games

Every card game is a journey.

Friday, December 08, 2006

Enable Java for firefox

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:

$cd
$cd .mozilla/plugins
$ln -s /usr/java//jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.
so
********************
Enable and Configure
Mozilla 1.4 and later

1. Go to the plugins sub-directory under the Mozilla installation directory
cd /plugins
2. In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type:
ln -s /plugin/i386/ns7/libjavaplugin_oji.so

Example:
* If Mozilla is installed in this directory:
/usr/lib/mozilla-1.4/
* and if the JRE is installed at this directory:
/usr/java/jre1.5.0
* Then type at the terminal to go to the browser plug-in directory:
cd /usr/lib/mozilla-1.4/plugins
* Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
ln -s /usr/java/jre1.5.0/plugin/i386/ns7
/libjavaplugin_oji.so .

Monday, November 13, 2006

Likelihood ratio test is more powerful when ...?

the underlying distribution is more close to normal distribution?