-
“情人眼里出西施”英文版?
Posted on March 29th, 2010 Add comments和Jahan聊天一直是件很有趣的事情:他虽然是伊朗人,但由于在美国生活得太久,以至于经常以西方人的思维考虑问题。不过,他的血统又使他能认同中国的文化。
中午吃完饭闲聊,山木同志和他讲解“中国四大美女”,Jahan突然冒出一句:“beauty is in the eye of the beholder…”突然发现这句话似乎很贴切地形容了这个地球上的中国人都知道的典故的内在含义,不觉感叹起这位国际友人的顿悟能力。
聊完专门查了一下,原来这句话出自公元前三世纪的古希腊。
495 views -
Embed own video player to website
Posted on March 18th, 2010 Add commentsSometimes I hate to embed Youtube to my website, cause somehow it seems like my friends in china can’t watch them. What I need just embed our own video player into the website:
- first, need a free player. There are many streaming player such jwplayer, flowplayer, etc. I prefer flowplayer, cause it’s simple. (download from here)
- Unzip, put all files into web server and choose an easily remembered place as you will place a path to these files later in your web pages.
-
- To include file flowplayer-3.1.4.min.js in the web page you place the following tag in the HEAD section of your web page:
1<script src="yourpath/flowplayer-3.1.4.min.js"></script> - To place the link to your video file in the web page, the simplest way is to use the following A tag on your web page. The video will automatically play there:
123<a href="http://www.mywebsite.com/myVideo.flv"style="display:block;width:425px;height:300px;"id="player"></a> - Finally, to load the player on the A tag just described, you place the following script in your page, following the A tag:
123<script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf");</script> - Also, I really hate autoplay the video when loading pages. So we can modify the configuration:
12345678<script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf", {clip: {autoPlay: false,autoBuffering: true}});</script>
- To include file flowplayer-3.1.4.min.js in the web page you place the following tag in the HEAD section of your web page:
- So a complete functional web page that plays videos with Flowplayer is:
12345678910111213141516171819202122<html><head><title>Your Title</title><script src="yourpath/flowplayer-3.1.4.min.js"></script></head><body><a href="http://www.mywebsite.com/myVideo.flv"style="display:block;width:425px;height:300px;"id="player"></a><script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf", {clip: {autoPlay: false,autoBuffering: true}});</script></body></html>
388 views -
大病初愈
Posted on March 15th, 2010 Add comments好汉架不住三泡稀,何况我还不能算是好汉。总算是彻底好了,拉肚子没什么,就是低烧挺让人无奈。既不缺胳膊,也不断腿,就是躺在床上哪儿也去不了。
还是在办公室喝着茶的感觉好……
305 views -
猴子和新办公室
Posted on March 6th, 2010 Add comments最近刚换办公室,总觉得空空荡荡少点什么。和三木同志在整个office转了一圈,最终还是把会议室的两只猴子给偷了过来。摆几个造型,发现还是满搭的:
394 views -
WordPress with internal server error on 1and1 hosting
Posted on March 3rd, 2010 Add commentsFor some reason, wordpress will always display “Error 500 – internal server error” for some PHP pages. My webhosting is on 1and1, so somehow the setting of PHP server is not correct.
Finally, got a solution and it works:Modify the file .htaccess on the root directory:
- Add the code following at top of .htaccess:
AddType x-mapp-php5 .php
- Changing:
RewriteEngine on
to:
RewriteEngine ON
Save the file, upload to the server. Here you go.
516 views - Add the code following at top of .htaccess:






Recent Comments