Loading Blog Search...

Saturday, October 30, 2004


材料:羊肉500G, 老姜50G, 当归18G,桂枝,川芎,桂皮,黄芪,枸杞,红枣各15G (可去中药铺配齐)
工序:1。羊肉切块, 热水烫过,冷水冲, 桂枝入袋 2。老姜拍烂 3。其他材料洗净入锅煮1小时 Posted by Hello

Thursday, October 28, 2004

A Bovine Guide to Political Theory from The Utne Reader

From Roy Chan's blog

Feudalism: You have two cows. Your lord takes some of the milk.

Fascism: You have two cows. The government takes both, hires you to take care of them, and sells you the milk.

Pure socialism: You have two cows. The government takes them and puts them in a barn with everyone else’s cows. You have to take care of all the cows. The government gives you as much milk as you need.

Pure communism: You have two cows. Your neighbors help you take care of them, and you all share the milk.

Bureaucratic socialism: You have two cows. The government takes them and puts them in a barn with everyone else’s cows. They are cared for by ex-chicken farmers. You have to take care of the chickens the government took from the chicken farmers. The government gives you as much milk and as many eggs as the regulations say you should need.

Russian communism: You have two cows. You have to take care of them, but the government takes all the milk.

Pure democracy: You have two cows. Your neighbors decide who gets the milk.

Representative democracy: You have two cows. Your neighbors pick someone to tell you who gets the milk.

American democracy: The government promises to give you two cows if you vote for it. After the election, the president is impeached for speculating in cow futures.

Capitalism: You have two cows. You sell one and buy a bull.

Local governmental capitalism: The government condemns your cows under rights of eminent domain, knocks them over, and allows the mall to expand its parking lot.

Hong Kong capitalism: You have two cows. You sell three of them to your publicly listed company, using letters of credit opened by your brother-in-law at the bank ,then execute a debt-equity swap with associated general offer so that you get all four cows back, with a tax deduction for keeping five cows. The milk rights of six cows are transferred via a Panamanian intermediary to Cayman Islands company secretly owned by the majority shareholder who sells the rights to all seven cow’s milk back to the listed company. The annual report says that the company owns eight cows, with an option on one more. Meanwhile, you kill the two cows because the feng shui is bad.

Totalitarianism: You have two cows. The government takes them and denies they ever existed. Milk is banned.

Anarchism: You have two cows. Either you sell the milk at a fair price or your neighbors try to kill you and take the cows.

Dictatorship: You have two cows. The government takes both and shoots you.

Surrealism: You have two giraffes. The government requires you to take harmonica lessons.

How to call ocaml functions from C.

Here is an example of how to invoke a ocaml function from c codes.
/* str.c --- readin a string and format it as italy */
#include <stdio.h>
#include <caml/mlvalues.h>
#include <caml/callback.h>
int main (int argc,char **argv)
   if (argc>1)
     printf( callback(*caml_named_value("format string"),copy_string(argv[1])));
   return 0;

(* forstr.ml *)
let format_str (w:string) =
Callback.register "format string" format_str;;

to compile as native format:
1. ocamlopt -output-obj forstr.ml -o forstring.o
2. gcc -c str.c  /* cannot use g++ */
3. gcc -o test forstring.o str.o -L/usr/lib/ocaml/3.08/ -lasmrun -ldl -lm

Tuesday, October 26, 2004

How to get a free top-level domain name?

Tokelau brought a plan to introduce him on Web. OK, who is Tokelau? It's a small island (more several small islands?) country near New Zealand. I have never heard it several months before. The same goes on most people, I think. Now, their project to provide free .tk top-level domain name works.
To get your .tk name, plz:

  1. Goto its website and follow instruction to apply
  2. It will ask for a Ambassador coupon number, you can use 172818

Saturday, October 23, 2004

vedio under linux

It's not a happy experience to find all encoders to watch movies. even more, we know, media player won't play rm and realplay won't play wmv, as they are adversary. although i seldom watch movies on my linux box, i am still very happy to hear that there is no such boring issues if you installed xine and mplayer. The two players solves all. actually, on fedora i only use mplayer, on debian i only use xine, and i have almost never need to consider where to grab encoders -- they can all be apt-gotten or downloaded from mplayers's homepage. i donno what's the underlying architecture of vedio players under linux, it's a bit strange that xine can use encoders provided by mplayer with a small trick. (just copy all encoders to /usr/lib/win32)

Wednesday, October 20, 2004


just replace fedora on my desktop and laptop with debian, as there are some debian mirrors in singapore and they are highspeed, with apt, to install debian is really a enjoyment. it's easy to config and easier to get various softwares, i love it.

Sunday, October 17, 2004

Chinese traditional medicine

芳 香化湿药 草 豆蔻(草蔻) 砂仁(缩砂 仁、阳春砂仁)  白豆蔻 (白蔻仁)  苍术 佩兰 
温 化寒痰药
旋复花  白芥子  天南星  半夏  
活 血祛瘀药
藏红花 (西红花) 桃仁 益母草 (坤草) 三棱 乳香 郁金 (玉金) 
丹参(紫丹参) 刘寄奴 牛膝 (川牛膝、怀牛膝) 土鳖虫 虻虫 水蛭 
王不留 皂角刺 穿山甲 (山甲珠) 酸枣仁 元胡 (玄胡、延胡索) 苏木
五灵脂 红花 (南红花) 泽兰 莪术 没药 姜黄 鸡血藤 
紫参 (石见穿、石打穿) 川芎 珍珠母
清 热燥湿药
伸筋草  海桐皮  五加皮  白花蛇  桑寄生  千年健  络石藤  
海风藤  xi莶 草  木瓜  秦艽
威灵仙  黄连 (川连)  黄芩
路路通 石苇 海金沙 地肤子 冬葵子 bian 蓄 冬瓜皮 木通 滑石 
车前子 泽泻 茯苓 赤小豆 金钱草 萆xie  瞿麦 通草 
薏苡仁 (苡仁米) 大腹皮 茵陈 (茵陈蒿) 猪苓 防己   葫 芦(抽葫芦)
消 化热痰药
海藻  昆布  海浮石  胖大海  竹茹  天竺黄  贝母 (浙贝母、川贝母)
紫贝齿  磁石 (灵磁石)  琥珀  朱砂 (辰砂)  
木贼草  淡豆豉  升麻  浮萍  蔓荆子  蝉蜕 (蝉衣)  牛蒡子  薄荷  
菊花  桑叶  葛根  柴胡
羚羊角 代赭石 龙骨 地龙 (蚯蚓) 白蒺藜 (刺蒺藜) 僵蚕 天麻
 石决明 牡蛎 蜈蚣 地龙 (蚯蚓) 全蝎(全虫) 僵蚕 
知母  木蝴蝶 (玉蝴蝶、千张纸)  海蛤壳  葶苈子  马兜铃  枇杷叶  
百部  款冬花 (冬花)  紫菀  桔梗  白前  杏仁
灵芝 (赤灵芝)  夜交藤(首乌藤)  合欢皮  远志  柏子仁
罗布麻  芦根 (苇茎)  竹叶  夏枯草  夜明砂  密蒙花  谷精草  
决明子 (草决明)  石膏  
郁李仁  大麻仁 (火麻仁)

攻 下 药 番泻叶  芒硝  大黄 (川军、锦纹)
玄参 (元参) 桑椹 鳖甲 龟板 山茱萸 (山萸肉) 潼蒺藜(沙苑蒺藜) 
旱莲草 女贞子 枸杞子  蜂蜜  玉竹 (葳蕤) 百合 石斛 天冬 
麦冬 (寸冬) 沙参(南沙参、北沙参) 
伏龙肝 (灶心土)  蒲黄  花蕊石  棕榈炭 (陈棕炭)  血余炭  
白茅根  侧柏叶  槐花  地榆  茜草  小蓟 (刺儿菜)  大蓟  
白芨   三七 (人参三七)  仙鹤草  苎麻根  
贯众  雷丸  槟榔  芜荑  鹤虱  苦楝根 皮  南瓜子  榧子  
紫河车 (胎盘)  何首乌  阿胶 (阿胶珠)  龙眼肉(桂元肉)  
白芍 (杭芍)  当归  熟地黄 (熟地)
乌药 (台乌药) 刀豆子 柿蒂 降香 沉香 绿萼梅 佛手 香橼
 檀香 香附 厚朴 枳实 川楝子(金铃子) 木香 (广木香) 荔枝核 
青皮 薤白 陈皮 (橘皮)
补 气药 扁豆  白术  山药 (薯蓣)  太子参(孩儿参、童参)  党参  西洋参  
人参  甘草  大枣 (红枣) 黄精  黄芪

莱菔子  鸡内金  山楂  谷芽 (稻芽)  麦芽  神曲 (建曲)  
蟾酥  马钱子 (番木鳖)  硼砂(月石)  炉甘石  明矾 (白矾)  
蛇床子  血竭  硫磺 
续断 (川断)  狗脊  杜仲  冬虫夏 草  仙灵脾(淫羊藿)  仙茅  
益智仁  葫芦巴  补骨脂 (破故纸)  胡桃肉 (核桃仁)  
巴戟天(巴戟肉)  肉苁蓉 (淡大云)  鹿角霜  鹿角胶  鹿角  
鹿茸  韭菜子 锁阳  蛤蚧  菟丝子  
名称  香薷  生姜  辛荑  苍耳子  细辛  藁本  白芷  防风  
荆芥  桂枝  苏叶  麻黄  
清热解毒药 虎杖  锦灯笼  青果 (橄榄)  马勃  射干  山豆根  土茯苓  
白藓皮  红藤  半边莲  龙葵  漏芦  白花蛇 舌草  穿心莲  
山慈菇  马齿苋  白头翁  败酱草  蚤休 (草河车、七叶一枝花)
 鱼腥草  紫花地丁  蒲公英 (黄花地丁)  板蓝根  连翘  
金银花 (银花、双花、忍冬花)  半枝莲  
麝香 苏合香 菖蒲 (石菖蒲) 牛黄 冰片 (梅片) 
使君子  大戟  芫花  甘遂  牵牛子 (黑白丑、二丑)  
诃子 (诃黎勒) 鸡冠花 白果 (银杏) 乌贼骨(海螵蛸) 莲子 (莲肉) 
石榴皮  米壳 (罂粟壳) 肉豆蔻(肉果) 禹余粮 赤石脂 金樱子
 芡实 复盆子 桑螵蛸 五倍子 五味子 乌梅 麻黄根 

Thursday, October 14, 2004

Another blogger tool (i like it)

Do you know PyQlogger? I found it at kde-apps.org just now. PyQlogger is based on python, u can see from its name. After disappointed by those blogger clients that cannot edit post title, pyqlogger appears finally. It even can save posts as local draft copies. Seems it have some bugs, maybe only on my box. Check out here. WebLog Madness and hereis a very complete list of blog related stuffs.

Sunday, October 10, 2004

Tips about Blogger Archives -- drop-down menu and calendar

The calendar introduced in this article is based on client javascript, I also implement a Web service to generate calendar for you. Please check out at BlogCat, and its tutorial, the Web service is more comprehensive than the javascript version. If you donnot mind to try, you will like it.

For those 'elder' bloggers, archive lists may take up almost whole sidebar. Organizing the archive list in a drop-down menu is a good choice. It's simple, just place the following scripts in your blogger template: <select name="ArchiveMenu" onChange="location.href=this.options[this.selectedIndex].value;">
<option value="/">-------------------</option>
<option value="<$BlogArchiveURL$>">------<$BlogArchiveName$>------</option>
<option value="/">Current Posts</option>

Check out the result effect in my right panel. Before introducing bloglendar, Here is a php-based blog calendar prototype, if you are interested, please check out.

Bloglender is a script add a calendar to blogger, while we know blogger does not provide native calendar like MT, WordProcess. Its idea is simple:

  1. assign a special class to DateHeader of ur blog
  2. draw a calendar of current month
  3. read in all elements of DataHeader class, add a hyperlink in the calendar corresponding to each DataHeader element
Thanks Ming Hong Ng, now, to add the calendar, only need to
  1. copy three script files to ur server,
  2. add the following codes to ur template:
    <script type="text/javascript" charset="<$BlogEncoding$>" src="[your_server]/bloglendar.js">
    </script> <script type="text/javascript" charset="<$BlogEncoding$>" src="[your_server]/bloglendar-main.js">
    </script> <link rel="stylesheet" type="text/css" href="[your_server]/bloglendar.css" />
  3. enclose ur BlogDataHeader in a DIV element with class "blogDate", e.g.:
     <div class="blogDate" title="<$BlogDateHeaderDate$>"></div>
  4. insert the below line to where u want the calendar appears:
    <span id="bloglendar"><!-- Bloglendar here --></span>
Check out effect at my blog homepage

Friday, October 08, 2004

3D Desktop!

these days, here is more like a photo blog due to lack of time to write anything patiently. so, just take photos, copy screens. anyway, the screen copy left is really cute. It's Metisse, an experimental X desktop with some OpenGL capacity. It is constituted by a virtual X server called Xwnc, a special version of FVWM and an FVWM module FvwmAmetista (after Ametista). I'd think Thomas Chung introduces it at fedoranews

wow, my 3D! Desktop Posted by Hello

Tuesday, October 05, 2004