install VMware Server
Monday, June 23rd, 2008
Ubuntu 8.04安装VMware Server 1.0.6
Category computer | Tags: Tags: VMware,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.
everybody is one single tree
Monday, June 23rd, 2008
Ubuntu 8.04安装VMware Server 1.0.6
Category computer | Tags: Tags: VMware,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.
Wednesday, June 11th, 2008
<?php $old_url = $_SERVER["REQUEST_URI"]; //检查链接中是否存在 ? $check = strpos($old_url, '?'); //如果存在 ? if($check !== false){ //如果 ? 后面没有参数,如 http://www.yitu.org/index.php? if(substr($old_url, $check+1) == ''){ //可以直接加上附加参数 $new_url = $old_url; } else //如果有参数,如:http://www.yitu.org/index.php?ID=12 { $new_url = $old_url.'&'; } }else //如果不存在 ? { $new_url = $old_url.'?'; } echo $new_url; ?>
详情见http://www.codebit.cn/pub/html/php_mysql/tip/other/check_url_parameter/
Category php | Tags: Tags: check url, strpos,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.
Saturday, June 7th, 2008
mpd是作为一个服务运行在后台,它不具备播放功能,你可以把它理解成一个服务端,你还需要一个客户端MPC来执行播放的功能。ubuntu下默认的源里面已经有现成的deb包,具体安装如下:
代码:
sudo apt-get install mpd mpc
这样就装好了mpd,以及命令行下的客户端mpc了,如果你不喜欢命令行下的操作,你还可以安装gmpc,gmpc是一个图形界面的客户端。
安装gmpc:
代码:
sudo apt-get install gmpc (more…)
Category linux | Tags: Tags: mpd,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.
Tuesday, June 3rd, 2008
<?php echo rand(0, 5); ?>
rand这玩意可以用来生成指定范围内的随机数or字符,于是可以拿来做随机展示图片
<?php $domain = 'http://www.fouland.com/'; echo $domain; echo '<img src="' . $domain . '/Path/currentName' . rand(0, 5) . '.gif"'; ?>
Category php | Tags: Tags: rand,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.
Tuesday, June 3rd, 2008
想要这样的娃娃
Category 流水帐 | Tags: Tags: doll,
Social Networks : Technorati, Stumble it!, Digg, de.licio.us, Yahoo, reddit, Blogmarks, Google, Magnolia.