2006年12月25日星期一

圣诞快乐


圣诞快乐
祝实验室大伙圣诞快乐。
简约快速版一定要成功,验收一定要没有问题。年前一定要烧香。
考试一定要通过。复习一定要玩命。过年一定要愉快。
忘了,晚上是平安夜,不知道六里桥在哪里。拥抱,是很温暖。让我们互相拥抱吧。
对不起,不能陪你。
圣诞是圣诞老人的生日(应该是吧?)。挑今天过生日的人,就有双份的祝福。
Mr Anderson, Merry Christmas, thank you for teaching me this year. Just now i am watching your algorithm video. It is really hard and almost kill me.

2006年12月17日星期日

RP问题,不是NP问题


最近总在怀疑,是否真的人品有点问题。不然为什么小概率不可能事件都发生在我身上了呢。连续的以精确到小数点后两位的差值而位列第三,这已经让我郁闷不已了,说明要进入一个新的圈子是如何地不易,不论国内还是国外,都是互相包庇,你没在那个圈子,你就很难进入。大班这么多号人和动物,我也能荣幸进入“光荣榜”,然后我要认真的学习一mpeg2编码了。
    昨晚和林一起回去的时候,已经两点多了。送她到宿舍门口,体现一下自己是男生,同时赚点“人品”。我现在初步感受到迷信的起源了。在我对这些事情无法给出解释的时候,我希望有一个原因,而我甚至开始有一点点相信这和我的人品有关,是太好了,还是太坏了呢?这是个问题。当然这也和他们总说报告一次“赚点人品”的起哄有关。
我用我的左手,拍拍我的右肩,对自己说:“Yingqiang,做得不错,继续努力!”

2006年12月11日星期一

文品分析测试的材料


文品分析测试的材料 
今天天气很好,也就零下3度到5度,阳光明媚,安装了窗帘。北京一如既往地早醒,睁开眼睛,十一点半。
“她不可否认地洗完了澡”,我坚信这句话是对的,印象很深刻,这让我有点想吃东西。我的生活中有两件事很重要,一件是吃饭,还有一件也是吃饭。
“我遇见谁,会有怎样的对白。。。”,耳机里的音乐响起,这让我有点想吃东西。我的生活中有两件事很重要,一件是吃饭,还有一件也是吃饭
I really don’t like coding in C#, not because of … but …..,这让我有点想吃东西。我的生活中有两件事很重要,一件是吃饭,还有一件也是吃饭。
尽我所能,添加了一些我知道的人的blog,原来每个人都是那么不同。Shangshu 正在为考研而奋战着,我祝福他,金榜题名。Xianjing 正忙着自己也许并不如意的工作,为家里的事儿担忧,我祝福她,事事顺心。Fairylandfir 刚做了一个很具故事片风格的梦,我也祝福她,梦醒时不再流泪。Bingcan 正拿着自己有限的工资在这个“和谐”的社会,光荣地享受着作为一个纳税人的权利,我也祝福他,工作顺利。还有一些,就不一一说了,但是,也祝福他(她)们。大部分都是高中的同学。
终于然而可是尽管却,我晚饭的时候交了人文科学思想史的作业。关于课程内容,我试图去探讨中国为什么出了这么多诗人和老奸巨滑的道德伦理专家,而没有一个自然科学家。关于学习这门课对自己专业的感受,我整理了一份短短的程序设计语言发展简史。关于这门课的真实感受,是那个老师其实讲的挺好,还有就是我睡觉也睡得挺香的。
终于然而可是尽管却,我应该凑足了三百字,我激动人心地要去测试我的“文品”了,尽管很多年前给一个人写了一封信,她说她看出了村上春树的风格。那个人昨天说我“乱岗,那是她的新号码”,在家发烧中,我祝福她烧退病好。
听从自然的召唤,于是我们经常上厕所。谁又能知道,一个人为什么需要买一袋酸的牛奶,而我坚信牛奶只对牛有用。
我凑足三百字,得到了下面的东西。如果你看上面的文字,如果你还能理解,那么你将和我一样每天都在关注芙蓉姐姐。

评测结果:

61%
可以看出,你对他/她的关注程度不低哟,行文的雷同度还是有一些的。
9%
如果不是我们科学的分析结果,你没有发觉自己还有些许这位作家的风格吧^_^
9%
放心吧,你和他/她的相似度基本可以忽略不计。

地图


三门县

亭旁镇

坝头乡

从百度弄的地图。我出生的地方。
那是个小山村,那里风景不好,可是比起北京,还算不错。
我对那个村里的事和人基本上没有了解。
我的印象中尽是一些短短的地名。
那里有一个叫“草场门缺”的地方(有一个老枫树),那里有一个叫“岙里”的地方(有一棵老枫树),那里有一条可以游泳的小溪(可以抓很多小的蟹)。




2006年12月10日星期日

据说该照片可以用来相亲

中午吃饭,饭后拍照,据说是我一生中最牛B的照片

2006年12月1日星期五

marriage


some one is going to get married with his fiancee today. (no fiancee anymore)
and i lost my 500$ the day before yesterday.(in fact it is not my money.)
i fuck the dammit world everyday. (anywhere anytime)

2006年11月8日星期三

随便


形式搞成这样,真不容易啊。庄严神圣地被强奸。
开始上课了,要好好学习了。

2006年11月5日星期日

Eclipse快捷键大全


Eclipse快捷键大全
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)
Ctrl+D: 删除当前行
Ctrl+Alt+↓ 复制当前行到下一行(复制增加)
Ctrl+Alt+↑ 复制当前行到上一行(复制增加)
Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)
Alt+↑ 当前行和上面一行交互位置(同上)
Alt+← 前一个编辑的页面
Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)
Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性
Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)
Shift+Ctrl+Enter 在当前行插入空行(原理同上条)
Ctrl+Q 定位到最后编辑的地方
Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)
Ctrl+M 最大化当前的Edit或View (再按则反之)
Ctrl+/ 注释当前行,再按则取消注释
Ctrl+O 快速显示 OutLine
Ctrl+T 快速显示当前类的继承结构
Ctrl+W 关闭当前Editer
Ctrl+K 参照选中的Word快速定位到下一个
Ctrl+E 快速显示当前Editer的下拉列表(如果当前页面没有显示的用黑体表示)
Ctrl+/(小键盘) 折叠当前类中的所有代码
Ctrl+×(小键盘) 展开当前类中的所有代码
Ctrl+Space 代码助手完成一些代码的插入(但一般和输入法有冲突,可以修改输入法的热键,也可以暂用Alt+/来代替)
Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)
Ctrl+J 正向增量查找(按下Ctrl+J后,你所输入的每个字母编辑器都提供快速匹配定位到某个单词,如果没有,则在stutes line中显示没有找到了,查一个单词时,特别实用,这个功能Idea两年前就有了)
Ctrl+Shift+J 反向增量查找(和上条相同,只不过是从后往前查)
Ctrl+Shift+F4 关闭所有打开的Editer
Ctrl+Shift+X 把当前选中的文本全部变味小写
Ctrl+Shift+Y 把当前选中的文本全部变为小写
Ctrl+Shift+F 格式化当前代码
Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)
下面的快捷键是重构里面常用的,本人就自己喜欢且常用的整理一下(注:一般重构的快捷键都是Alt+Shift开头的了)
Alt+Shift+R 重命名 (是我自己最爱用的一个了,尤其是变量和类的Rename,比手工方法能节省很多劳动力)
Alt+Shift+M 抽取方法 (这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)
Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)
Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)
Alt+Shift+F 把Class中的local变量变为field变量 (比较实用的功能)
Alt+Shift+I 合并变量(可能这样说有点不妥Inline)
Alt+Shift+V 移动函数和变量(不怎么常用)
Alt+Shift+Z 重构的后悔药(Undo)

2006年11月2日星期四

rt

有 12 颗玻璃球大小一样, 不知道哪一颗重了, 还是轻了. 请用天平秤秤3次, 把其中的一颗重量不均匀的玻璃球取出来!

2006年10月18日星期三

最近有点上火


以下文字摘自  "新语丝"方舟子
“上火”是中医对许多症状的一个笼统、模糊的说法,因素很多,因此在现代医学中不可能找到对应的称呼。例如口腔“上火”症状,有的可能是因为缺乏维生素B2导致的唇炎、口角炎,有的可能是缺乏维生素C导致的牙龈、粘膜出血,有的可能是细菌、病毒感染引起的炎症。不同的病因要做不同的治疗。中国的许多医生的科学素养和专业能力都不高,再加上为了从药厂收回扣等利益驱动,所以就不对症治疗,乱开药,使得“遵医嘱”在中国成了不可轻易接受的忠告。
  牛黄解毒片是中成药,而且是含剧毒成分的中成药。按照组方,每片牛黄解毒片含有50毫克雄黄。雄黄的化学成分为二硫化二砷,遇热分解变成剧毒的三氧化二砷,也就是俗称的砒霜,口服10毫克即可中毒,100毫克即可致死。而且砷进入体内后即使没有马上引起中毒,也会在体内累积起来,长期服用会导致慢性中毒。美国允许中药做为保健品(而不是药物)销售,但是一旦发现其含有毒成分就禁止销售,有一百多种中成药因此被禁,其中就有牛黄解毒片。为了“清火”而去让自己慢性中毒显然是不合算的。
  市场上的感冒冲剂有的是西药,有的是中成药,但许多治感冒的中成药都添加了扑热息痛(对乙酰氨基酚)等镇热解痛的西药,有的标明有的没标明但被香港、台湾的药检部门检出。这种中西合璧的中成药实际上是西药在起作用,不如直接吃西药。
    顺便说一下,“名牌”中成药偷加西药成分的现象相当普遍:治糖尿病的药偷加格列本脲(优降糖),“壮阳补肾药”偷加西地那非(伟哥),减肥药偷加芬氟拉明,曾经风靡一时的“章光101”系列产品则被香港卫生署检测出全都偷加治疗脱发的外用西药米诺地尔。对中医中药最没有信心的其实正是中药厂商。

2006年10月14日星期六

God is a girl


Forgotten as the past Cause history will last
                    ------- God is a girl
夜已深,赵同学第一次翻门入大运村。
深夜的馄饨,比白天的好吃一点。
上课没有兴趣,吃饭没有兴趣。睡觉很有兴趣。
每天就这么宫颈糜烂地过着。

2006年10月10日星期二

领导最新指示

根据领导最新指示,说以后家里将不添置电视。

2006年10月3日星期二

10.3



木有月饼,仅此聊表葡萄很酸。感谢garfield友情提供图片。

小时候,和弟弟两个人吃一个月饼还有剩的。仿佛已经很多年没有中秋了。

2006年10月2日星期一

10.2

有一种鱼,出生在源头,它从小就沿着一条河流,就是那条它的祖祖辈辈们都经过的那条河流,一直不停地往海里游,等到了大海,发现其实这里也没有什么。于是又沿着那条河流,逆流而上,又回到最初的地方,繁衍后代,安静老去。

一代一代都是如此,整个生命就是一个圆。


我们是不是都是那条鱼呢?

2006年9月28日星期四

carry on till tomorrow

In younger days, I told myself my life would be my own
And I'd leave the place where sunshine never shone
For my life's too short for waiting when I see the rising sun
Then I know again that I must carry on
Carry on till tomorow, there's no reason to look back
Carry on, carry on, carry on
Beyond the shadows of the clouds and onward to the sky
Carry on till I find the rainbow's end
For my life's too short for waiting when I see the rising sun
Then I know again that I must carry on
Carry on till tomorow, there's no reason to look back
Carry on, carry on, carry on
Drifting on the wings of freedom, leave this stormy day
And we'll ride to tomorrow's golden fields
For my life's too short for waiting when I see the rising sun
Then I know again that I must carry on
Carry on till tomorow, there's no reason to look back
Carry on, carry on, carry on
And when the heavy journey's done, I'll rest my weary head
For the world and it's colours will be mine
For my life's too short for waiting when I see the setting sun
Then I know again that I must carry on
Carry on till tomorow, there's no reason to look back
Carry on, carry on, carry on

2006年4月19日星期三


纷纷绕绕的人和事。道路是曲折的,前途还是黑暗的,可我们还是要努力的探索,为了仅存的一点让它向光明发展的希望而努力。祝心情愉快。
“我一直很喜欢你的文字,呵呵。还有你背广告的神情,一直记者,想起来就开心!高中真好!”said  by zxj。自恋一下。
说文字,就算了吧,我脸红,高中我还语文科代表呢,从来成绩班级倒数,我统计语文分分数的时候比谁都清楚。说广告,以前觉得电视没什么好看的,就广告还有点意思。现在也没有电视,还有什么广告可以看啊。还有,广告也越来越没劲了,以前是外婆看不懂,为什么“他好我也好”,我还扭捏的不知道怎么解释。现在我看不懂了,比如,画面一排皮鞋上飘过几片秋天的落叶,错!不是皮鞋的广告,也和秋天落叶无关,总之我是没看懂,也不愿去想他要说的是什么产品,随它去。现在我看广告主要是在等电梯的时候,由分众传媒送上的垃圾,无比的小资,身为无产阶级,对这种情调是很不屑的。
北航最近又要兴土木,拆了北门往顺新市场的一排小屋,西门那边也画了好多圈,里边写个铿锵有力的“拆”字。不知道这些地方要用来干嘛。现在已是一片废墟。曾经这里有最流行的垃圾音乐,还有各种各样的女生小饰品,以及假得很真的藏饰品,伪名牌,伪韩货。不曾考究,只是感觉。来来往往走着很小资的红男绿女,大部分是学生,当然也包括白领和暗娼。当然不能少掉那些只有胸部,没有理想的北京本地妞,有的连胸部也没有,只剩下冒京骂的嘴巴。
终于要安静一段时间了。将来会是什呢?不期待。反正会看到的。
和郑涛在群里,把“梦,遗落在草原”上了。
也许有女生在的时候不应该有这种低级趣味,我想某位淑女同志又要扭我的腰部肥肉了。
Lucy is on line , but I am busy。。。
想到拆字,那天我在食堂那边,把一辆车给拆了。画个圈,写个字。聪明的你一定猜到了,是拆字。那时在车上沉积的浮尘上写的。

2006年4月17日星期一

浮尘和雨水


昨晚严重的浮尘,车辆和道路上都布满尘埃。我的可怜的自行车也不能幸免遇难。它一个晚上的尘埃积累厚度,比在杭州时自行车停着不用两个学期不用还要厉害。
每次一下雨,洗车店的老板就要会心的笑了,就像每次浮尘那样。来柏彦的路上那家洗车店门前停满了待洗的车。以前还以为雨水会冲刷一下灰尘,带来清新的空气。后来发现自己错了。北京的雨不同于我原来印象中浙江的雨。那里的雨水是干净的,虽然近年由于污染ph值偶尔也偏酸了,但至少不会像这儿一样,那是什么样的雨,分明就是泥浆嘛。
浮尘,雨水都这么联合了,北京的春天真的是没有什么好说的,四月真是残忍的月份。居然还有雨夹雪,算是让我开了眼界。
不过前几天满天飞舞的杨絮,还是比较美的。让我想起雪。飘在春天阳光里的雪,要是这春天不打折,那就更好。

2006年4月16日星期日

蜗牛和珊瑚


生物界中动物对美的追求,基本上都可以归结为追求异性,为争取繁殖机会的结果。呵呵,人类中女人会打扮,其实动物界中打扮的往往是雄性动物。
动物为争夺交配权的斗争从来都是残冷。人类也是如此。
看到了,蜗牛和珊瑚,觉得那么共产主义。
蜗牛同时具有雌性和雄性两套生殖器器官,所以无论什么时候遇到另一只蜗牛都有可能形成美妙的约会。蜗牛的速度我们不敢恭维,所以也许有了最漫长和最黏糊的挑逗和前戏。
珊瑚,色彩中闪耀的生命。当许多动物为配偶烦恼的时候,珊瑚,早已进入“共产主义”了,实现了“共产共妻”。它们只是将精子和卵子排到水中,真正让命运来决定精子x和卵子y是否有缘分相遇。

好乱阿,西班牙人来了,仅仅55个人就攻陷了印加人的辉煌的黄金城市。黄金再多也没有用了。马克拉巴可还是印加之王吗。。如果印加文明还存在,没有毁于一旦,他们对世界会有什么贡献呢?印加帝国逝去的神灵。

今天是周末。组里出去玩了。我没与参加,只是不想去。

Ps
翻译的累了。my english is poor...and my chinese too.

2006年4月5日星期三

あれがあなたの未来


ほら足元を见てごらん
これがあなたの步む道
ほら前を见てごらん
あれがあなたの未来
母がくれたたくさんの优しさ
爱を抱いて步めと缲り返した
あの时はまだ幼くて意味など知らない
そんな私の手を握り
一绪に步んできた
梦はいつ空高くあるから
届かなくて怖いねだけど追い?i壳けるの
自分の物语(スト-リ-)だからこそ谛めたくない
不安になると手を握り
一绪に步んできた
その优しさを时には嫌がり
离れた母へ素直になれず
ほら足元を见てごらん
これがあなたの步む道
ほら前を见てごらん
あれがあなたの未来
その优しさを时には嫌がり
离れた母へ素直になれず
ほら足元を见てごらん
これがあなたの步む道
ほら前を见てごらん
あれがあなたの未来
ほら足元を见てごらん
これがあなたの步む道
ほら前を见てごらん
あれがあなたの未来

2006年4月1日星期六

4 yue 1 ri


又是装了一个下午的linuxPhp4.4.2竟然编译有错误,真是恼火。呵呵。Sansung的活动,呵呵,赢了个小奖品。我从来没有打过golf,很幸运,进球了。

那个家伙被老妈骂了,心里不爽呢。

2006年3月25日星期六

zz---话


男人要永远感谢在他20多岁的时候曾经陪在他身边的女人。
因为20多岁的男人处在一生中的最低点,没钱、没事业;
而20多岁的女人却是她最灿烂的时候。
女人要永远感谢在她20多岁的时候曾经陪在她身边的男人。
因为20多岁的男人处在一生中的最宝贵的时刻,一刻千金;
而20多岁的女人却是她最寂寞的时候。
珍惜在一起的时光,共同走过的路,互相扶持,谁都付出了所有。

2006年3月21日星期二

java 常用属性

系统属性是指与用户程序相关的操作系统配置信息以及软件信息。通常与用户程序相关的属性关键字包括: 
●file.separator : 文件分隔符, Windows环境下为“\",Unix环境下为“/”; 
●user.home :用户主目录; 
●java.home :Java实时运行环境的安装目录; 
●java.ext.dirs :JDK的安装目录; 
●os.name :操作系统名称; 
●user.name :用户登录名称; 
●os.version :操作系统版本; 
●path.separator :当前操作系统的路径分隔符; 
●user.dir :当前用户程序所在目录。

2006年3月18日星期六

海盗分金币--zz

数学的逻辑有时会导致看来十分怪异的结论。一般的规则是,如果逻辑推理没有漏洞,那么结论就必定站得住脚,即使它与你的直觉矛盾。 1998年9月,加利福尼亚州帕洛阿尔托的Stephen M. Omohundro寄给我一道难题,它恰好就属于这一类。这难题已经流传了至少十年,但是Omohundro对它作了改动,使它的逻辑问题变得分外复杂了。 
    先来看看此难题原先的形状。10名海盗抢得了窖藏的100块金子,并打算瓜分这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名最厉害的海盗又重复上述过程。
    所有的海盗都乐于看到他们的一位同伙被扔进海里,不过,如果让他们选择的话,他们还是宁可得一笔现金。他们当然也不愿意自己被扔到海里。所有的海盗都是有理性的,而且知道其他的海盗也是有理性的。此外,没有两名海盗是同等厉害的――这些海盗按照完全由上到下的等级排好了座次,并且每个人都清楚自己和其他所有人的等级。这些金块不能再分,也不允许几名海盗共有金块,因为任何海盗都不相信他的同伙会遵守关于共享金块的安排。这是一伙每人都只为自己打算的海盗。最凶的一名海盗应当提出什么样的分配方案才能使他获得最多的金子呢? 
    为方便起见,我们按照这些海盗的怯懦程度来给他们编号。最怯懦的海盗为1号海盗,次怯懦的海盗为2号海盗,如此类推。这样最厉害的海盗就应当得到最大的编号,而方案的提出就将倒过来从上至下地进行。 
    分析所有这类策略游戏的奥妙就在于应当从结尾出发倒推回去。游戏结束时,你容易知道何种决策有利而何种决策不利。确定了这一点后,你就可以把它用到倒数第2次决策上,如此类推。如果从游戏的开头出发进行分析,那是走不了多远的。其原因在于,所有的战略决策都是要确定:“如果我这样做,那么下一个人会怎样做?”
    因此在你以下海盗所做的决定对你来说是重要的,而在你之前的海盗所做的决定并不重要,因为你反正对这些决定也无能为力了。 
    记住了这一点,就可以知道我们的出发点应当是游戏进行到只剩两名海盗――即1号和2号――的时候。这时最厉害的海盗是2号,而他的最佳分配方案是一目了然的:100块金子全归他一人所有,1号海盗什么也得不到。由于他自己肯定为这个方案投赞成票,这样就占了总数的50%,因此方案获得通过。 
    现在加上3号海盗。1号海盗知道,如果3号的方案被否决,那么最后将只剩2个海盗,而1号将肯定一无所获――此外,3号也明白1号了解这一形势。因此,只要3号的分配方案给1号一点甜头使他不至于空手而归,那么不论3号提出什么样的分配方案,1号都将投赞成票。因此3号需要分出尽可能少的一点金子来贿赂1号海盗,这样就有了下面的分配方案: 3号海盗分得99块金子,2号海盗一无所获,1号海盗得1块金子。 
    4号海盗的策略也差不多。他需要有50%的支持票,因此同3号一样也需再找一人做同党。他可以给同党的最低贿赂是1块金子,而他可以用这块金子来收买2号海盗。因为如果4号被否决而3号得以通过,则2号将一文不名。因此,4号的分配方案应是:99块金子归自己,3号一块也得不到,2号得1块金子,1号也是一块也得不到。
    5号海盗的策略稍有不同。他需要收买另两名海盗,因此至少得用2块金子来贿赂,才能使自己的方案得到采纳。他的分配方案应该是:98块金子归自己,1块金子给3号,1块金子给1号。 
    这一分析过程可以照着上述思路继续进行下去。每个分配方案都是唯一确定的,它可以使提出该方案的海盗获得尽可能多的金子,同时又保证该方案肯定能通过。照这一模式进行下去,10号海盗提出的方案将是96块金子归他所有,其他编号为偶数的海盗各得1块金子,而编号为奇数的海盗则什么也得不到。这就解决了10名海盗的分配难题。
    Omohundro的贡献是他把这一问题扩大到有500名海盗的情形,即500名海盗瓜分100块金子。显然,类似的规律依然成立――至少是在一定范围内成立。事实上,前面所述的规律直到第200号海盗都成立。 200号海盗的方案将是:从1到199号的所有奇数号的海盗都将一无所获,而从2到198号的所有偶数号海盗将各得1块金子,剩下的1块金子归200号海盗自己所有。 
    乍看起来,这一论证方法到200号之后将不再适用了,因为201号拿不出更多的金子来收买其他海盗。但是即使分不到金子,201号至少还希望自己不会被扔进海里,因此他可以这样分配:给1到199号的所有奇数号海盗每人1块金子,自己一块也不要。
    202号海盗同样别无选择,只能一块金子都不要了――他必须把这100块金子全部用来收买100名海盗,而且这100名海盗还必须是那些按照201号方案将一无所获的人。由于这样的海盗有101名,因此202号的方案将不再是唯一的――贿赂方案有101种。
    203号海盗必须获得102张赞成票,但他显然没有足够的金子去收买101名同伙。因此,无论提出什么样的分配方案,他都注定会被扔到海里去喂鱼。不过,尽管203号命中注定死路一条,但并不是说他在游戏进程中不起任何作用。相反,204号现在知道,203号为了能保住性命,就必须避免由他自己来提出分配方案这么一种局面,所以无论204号海盗提出什么样的方案,203号都一定会投赞成票。这样204号海盗总算侥幸拣到一条命:他可以得到他自己的1票、203号的1票、以及另外100名收买的海盗的赞成票,刚好达到保命所需的50%。获得金子的海盗,必属于根据202号方案肯定将一无所获的那101名海盗之列。 
    205号海盗的命运又如何呢?他可没有这样走运了。他不能指望203号和204号支持他的方案,因为如果他们投票反对205号方案,就可以幸灾乐祸地看到205号被扔到海里去喂鱼,而他们自己的性命却仍然能够保全。这样,无论205号海盗提出什么方案都必死无疑。206号海盗也是如此――他肯定可以得到205号的支持,但这不足以救他一命。类似地,207号海盗需要104张赞成票――除了他收买的100张赞成票以及他自己的1张赞成票之外,他还需3张赞成票才能免于一死。他可以获得205号和206号的支持,但还差一张票却是无论如何也弄不到了,因此207号海盗的命运也是下海喂鱼。
    208号又时来运转了。他需要104张赞成票,而205、206、207号都会支持他,加上他自己一票及收买的100票,他得以过关保命。获得他贿赂的必属于那些根据204号方案肯定将一无所获的人(候选人包括2到200号中所有偶数号的海盗、以及201、203、204号)。 
    现在可以看出一条新的、此后将一直有效的规律:那些方案能过关的海盗(他们的分配方案全都是把金子用来收买100名同伙而自己一点都得不到)相隔的距离越来越远,而在他们之间的海盗则无论提什么样的方案都会被扔进海里――因此为了保命,他们必会投票支持比他们厉害的海盗提出的任何分配方案。得以避免葬身鱼腹的海盗包括201、202、204、208、216、232、264、328、456号,即其号码等于200加2的某一方幂的海盗。 
    现在我们来看看哪些海盗是获得贿赂的幸运儿。分配贿赂的方法是不唯一的,其中一种方法是让201号海盗把贿赂分给1到199号的所有奇数编号的海盗,让202号分给2到200号的所有偶数编号的海盗,然后是让204号贿赂奇数编号的海盗,208号贿赂偶数编号的海盗,如此类推,也就是轮流贿赂奇数编号和偶数编号的海盗。 
    结论是:当500名海盗运用最优策略来瓜分金子时,头44名海盗必死无疑,而456号海盗则给从1到199号中所有奇数编号的海盗每人分1块金子,问题就解决了。由于这些海盗所实行的那种民主制度,他们的事情就搞成了最厉害的一批海盗多半都是下海喂鱼,不过有时他们也会觉得自己很幸运――虽然分不到抢来的金子,但总可以免于一死。只有最怯懦的200名海盗有可能分得一份脏物,而他们之中又只有一半的人能真正得到一块金子,的确是怯懦者继承财富。

2006年3月15日星期三

A brief history of Eclipse---zz


Gary Cernosek, Market Manager, IBM Software Group, IBM
15 Nov 2005
from The Rational Edge: In the late 1990s, IBM began development of what we now know as Eclipse. This article reviews the inception and growing acceptance of this popular computing platform, illustrating the role Eclipse plays in today's development tool arena.

In the late 1990s, IBM began development of what we now know as Eclipse. Today we see high adoption rates and evidence of successful application of this technology across the software industry. The purpose of this article is to review the inception of Eclipse, to illustrate the role it plays in today's development tools, and to convey how we see the technology evolving over time.
In the mid-1990s, a number of powerful commercial development environments were available; Microsoft Visual Studio was becoming a more general-purpose tools platform. A number of Java-based IDEs were also coming into play, including Symantec's Visual Café, Borland's JBuilder, IBM's Visual Age for Java, and others.
This period also saw the emergence of application servers designed to decouple a client-side programmer from the many details found in the operating system and associated interfaces. For Java development, the marketplace offered us IBM's WebSphere Application Server, BEA's WebLogic, and Sun's iPlanet suite. From Microsoft, MTS and COM+ were the runtime environments in play at the time.
This landscape actually contained two worlds: one centered on tools that enabled Microsoft's directions on runtime execution support, the other focused on a more open industry approach centered on the Java platform. Confident that a more open approach to IT was the best way to ensure its customer's long-term success, IBM saw Java development tooling as key to enabling growth in the open community. So its goal at the time was to bring developers closer to Java-based middleware.
We wanted to establish a common platform for all IBM development products to avoid duplicating the most common elements of infrastructure. This would allow customers using multiple tools built by different parts of IBM to have a more integrated experience as they switched from one tool to another. We envisioned the customer's complete development environment to be composed of a heterogeneous combination of tools from IBM, the customer's custom toolbox, and third-party tools. This heterogeneous, but compatible, tool environment was the inception of a software tools ecosystem.
In November 1998, IBM Software Group began creating a development tools platform that eventually became known as Eclipse. We first built a new Java IDE with resources from our Object Technology International (OTI) labs, along with the broader platform to go with it. The OTI team had extensive experience building several generations of IDEs with small, highly skilled teams. At the same time, the larger IBM began setting up additional teams to create new products built on top of this platform.
We knew that a vibrant ecosystem of third parties would be critical for achieving broad adoption of Eclipse. But business partners were initially reluctant to invest in our (as yet unproven) platform. So in November 2001, we decided to adopt the open source licensing and operating model for this technology to increase exposure and accelerate adoption. IBM, along with eight other organizations, established the Eclipse consortium and eclipse.org. Initial members included (then-partners) Rational Software and TogetherSoft, as well as competitors WebGain and Borland. Membership in the consortium required only a bona fide (but non-enforced) commitment to Eclipse to use it internally, to promote it, and to ship a product based on it.
The consortium's operating principles assumed that the open source community would control the code and the commercial consortium would drive "marketing" and commercial relations. This was a new and interesting application of the open source model. It was still based on an open, free platform, but that base would be complemented by commercial companies encouraged to create for-profit tools built on top of it. Most of the committers and contributors to Eclipse came from a short list of the commercial vendors, with IBM being the largest contributor of both content and financial and staff resources.
By 2003, the first major releases of Eclipse were well-received and were getting strong adoption by developers. But industry analysts told us that the marketplace perceived Eclipse as an IBM-controlled effort. Users were confused about what Eclipse really was. This perception left major vendors reluctant to make a strategic commitment to Eclipse while it was under IBM control. If we wanted to see more serious commitment from other vendors, Eclipse had to be perceived as more independent -- more decoupled from IBM.
So we began talking to others about how a more independent concern could take control of Eclipse so as to eliminate this perception. Working with these companies, we helped formulate and create the Eclipse Foundation. We then announced the new foundation, just in time for EclipseCon 2004, as a not-for-profit organization with its own independent, paid professional staff, supported by dues from member companies.
The move has been a success. The new and independent Eclipse Foundation shipped Eclipse 3.0, and soon afterwards, Eclipse 3.1; both were received with even higher degrees of interest and adoption rates than the prior version. Soon afterwards, Eclipse 3.1 was released to resounding interest. We've seen dramatic growth in membership at all levels, and a deeper commitment by all independent tools vendors and most platform vendors. The Eclipse Foundation and its members made a number of announcements at EclipseCon 2005, including the emergence of powerful Eclipse projects such as Rich Client Platform, Web Tools Platform, Data Tools Platform, Business Intelligence Reporting Tool, and a dramatically reduced level of fragmentation in our efforts.
We've seen exciting levels of growth in Eclipse commitment and support. There are now twelve strategic developer member companies, each of whom commits at least eight full-time developers and up to $250,000 annually to the Eclipse foundation. The Eclipse Foundation also has four strategic consumers who also make a similar economic commitment. There are sixty-nine companies serving as add-in providers, and another thirteen associate member companies. If you peruse the software industry, you'll find hundreds of commercial plug-ins and products for Eclipse. Eclipse is now the industry's major non-Microsoft software tool platform.
In December 2004, IBM Rational aggressively revamped its product portfolio to move to a more Eclipse-based foundation. We referred to the result as the IBM Rational Software Development Platform, which includes new and improved products from IBM Rational, all built directly on top of the Eclipse platform, as illustrated in Figure 1. The platform also includes other lifecycle support tools that were already integrated with Eclipse.
Figure 1: As of December 2004, IBM Rational tools for the major roles in the software lifecycle are built on top of the Eclipse platform.
In this new platform, the developer role offerings extend the base Eclipse IDE with additional functionality to make developers more productive. We also created tools optimized for other practitioner roles throughout the application lifecycle, and, by leveraging the underlying mechanisms of Eclipse, we expanded the applicability of Eclipse across the lifecycle. Eclipse has become our next-generation tools integration platform.
IBM created Eclipse and is more committed to it now than ever. Eclipse is stable, mature, and independently managed. Most companies no longer view Eclipse as risky and, in fact, are comfortable starting with base Eclipse and adding support services and additional tools in an incremental fashion. We see commercial vendors evolving to support this shift, poised to offer more componentized versions of both value-added tooling and vendor support services. And as Eclipse and its associated plug-ins continue to grow, the Eclipse Foundation will be well-positioned to manage that growth and resulting complexity.

2006年3月14日星期二

莫名其妙,突如其来的高烧


莫名其妙,突如其来的高烧。
在日语课上,突然觉得发冷,教室变得灰暗,眼皮很重很重,就这么压下来。然后高烧,然后口渴。在地大“网吧”等她的那十几分钟,感觉时间是如此漫长,不停的发抖,寒冷,零下4度。
喝了一杯热饮,没有味道,不过好多了。不忍让她担心,回来,天桥上的风,快要将我吹走。开始头晕,痛。药店的药30块钱,后来发现有效果的是那7毛钱的药。后悔当时买贵的药。头痛的只想快点好,贵也就买了。
闷睡,还是冷。
中间鲳鱼回来,又走了。因为这样发烧,也没有送他。不好意思,真的是招待不周。
继续睡,后来有转机,开始出汗了。整个寝室都是汗酸味。
想她在上体育课,不能打扰。想她快点过来。
给阿姨发了几条短信,嘱咐我一定要去医院看看。我说没事的,马上就会好得。
放心我没事的,我只是躺着就像起你了。就像远离家人的孩子,在头痛脑热的时候想起妈妈那样自然,记着的是被人照顾的温暖与舒心。无论将来我走多远,我都想就住在那个书房,那里给我家的感觉,而你就像妈妈,给我一切所需要的爱,照顾着我。在我人生性格形成的几年,开始有自己的人生观和价值观,你们影响着我去做一个乐观向上的人,而不像一般单亲家庭的孩子那样背负着太多的阴影与自卑。想起这些,都想流泪,这是永远都无法回报的。我只是想你了。
后来她过来了,给我带来吃的。我心情好很多。然后就渐渐的没有烧了。真的,烧得也快,退的也快。莫名其妙。虽然还是乏力,但是可以顽皮的做个男人了。哈哈。
早上洗完脸,弄了点香水,刚才她说好香,是不是洗澡了。我只是笑了。记得她说的,在病好的时候,弄一点香味,心情啊,身体啊,都会快点好起来的,于是就这样去做了。
随风潜入夜,润物细无声。
就这样被你影响着。

2006年3月8日星期三

那座山和那个小水池


Shine bright morning light
now in the air the spring is coming
。。。
听着尾浦由记的歌忧伤而又缥缈,又是一个春天。
莫名地想起那片山,很久没有想起,也从来没有再踏进。不再悲伤,只有遗憾。
不知道你现在怎么样了?走的那天下着雨,忘了你是否有带伞。
我从来都不知道你为什么这么选择,我也无法知道。
只是现在回想起那天下午,我还知道你是用怎样的眼神,怎样的动作,帮我整理我的衣领。那是在城关中学破旧的台阶上。我一直都想不起你那天你和我说了什么。我很后悔,很懊恼,自己一直记不起。我只是很清楚的知道这是你和我说的最后的话。
你出事的时候,学校正在开运动会,连续三天。只是你没有出现。这其实都很正常。班很多人都和我一样,一点都没有感觉。其间有消息灵的女生在私下很神秘的讨论,被我知道。我很生气地说她们怎么可以这样不负责任的胡说八道。我那时候,从来都没有相信。你一直都笑着,我怎么也不会想到你会那样。后来我知道,一个人内心可以很脆弱,也可以很坚强。也知道一个人的内心可以掩盖得多么深。你办公室的那些同事也是惊讶。
你上课我从来都很仔细的听,因为你讲的好,偶尔还挺有趣。那年你刚评了“教坛新秀”,我记得你上课的时候提起过。还有,因为我叫你阿姨的,可是我都来不及告诉你。
后来我和几个朋友偶尔还去过那座山,带了鲜花。
在三门中学的时候,去过两次。一次很多人,一班二班都有。还有一次,就我和册砚。
现在人也不在三门了,回家的时间也不多了。好多人都出来了,各自忙着,我想这也是你希望看到的。
突然,想起你,问声好,老师。还有,你那年的暑假班,我没有去,是因为我要去上数学,呵呵,现在有点后悔哦。还有我以前日记都没有认真地写过,甚至还抄一下书。可你都原谅我了。

2006年3月7日星期二

爱既是肌肤相亲的缠绵,又是一粥一饭的平淡;既是心心相印的举案齐眉,又是疲惫生活的英雄幻想。
                                                             杜拉斯

2006年3月3日星期五

what's time now?

Time is the motion of particles relative to each other. From a scientific perspective, without motion and without matter there is no time. If the material universe had a beginning, time as we know it began when the universe began. But science can postulate no such beginning.
So what't time now ? he:)

2006年3月1日星期三

前几天下过小雪,于我南方人,感觉还是很好的。
要做毕业设计,确定题目。
元搜索或者爬虫,机器人。我想还是爬虫比较好。开题,上交。
准备拿人家的搜索结果,放到我们自己当中,偷袭?违法?不管了。
和她去吃了一条鲤鱼,红烧,慢,味道一般。
刚才聊天,中国队输了,其实和我无关。足球。

2006年2月26日星期日

わたし

如果我今天没有在这里,我还会留在杭州。和他们一样,安心地找着工作,安心地做着我的毕设,也许是和别人合作,我也不在乎我做多一点,或者他可以什么都不用做,我不会不平衡,我很安心。我说安心,至少那是一个明确的方向。我知道我要走那条路,那我就不会在那个路口徘徊犹豫。我可以每天都呆在实验室,我可以每天都加班,这些我都不在乎,我喜欢这样简简单单的,我喜欢这样的忙忙碌碌,我喜欢这样简单的事,至少那里有一个方向。我讨厌迷惘,我讨厌现在的迷惘。组里的许多人只是在看着时间一秒一秒地走过,我却不能改变什么,甚至不能改变自己,也只能这样的看着。当我和他们一样的时候,我一定不要自己是这样的心态。

2006年2月22日星期三

新学的单词

つくえ     机:桌子
ちかてつ   地下??:地铁
高い  たかい:高的,价格贵的
あつぃ 暑い:天气热
カキクケコ

下载了一个日语输入法


且看效果何如。
あ  い  う  え  お
か  き  く  け  こ
さ  し  す  せ  そ
た  ち つ  て  と
な  に  ぬ  ね  の
は  ひ  ふ  へ ほ
ま  み  む  め  も 
や        ゆ      よ   
ら  り  る  れ  ろ
わ                 を

ぱ  ぴ ぷ  ぺ ぽ
が  ぎ ぐ げ  ご
ざ  じ  ず ぜ  ぞ
だ  ぢ  づ  で  ど
ば  び  ぶ  べ  ぼ
きゃ  きゅ きぇ 
ps。
明天下午去听课,担心被赶出来。不知为什么,真的很不情愿说自己是地大的,只是我不想说谎。我知道这本没什么,可是突然感觉很奇怪,一段时间以来,我都告诉自己不要随便编个谎话,要求自己在谁面前都要诚恳,不愿说就不说,但是也要是真实的。想起自己以前,真的,随便哄一下人家,逗着玩,我很讨厌那样了,我决心不再这样。呵呵,现在是不是又过头了,真是感觉奇怪。

2006年2月20日星期一

Genghis Khan and the Mongols


Genghis Khan
The knights at their tournaments, in their finery, armor and emblems of ancestry, believed they were the foremost warriors in the world, while Mongol warriors thought otherwise. Mongol horses were small, but their riders were lightly clad and they moved with greater speed. These were hardy men who grew up on horses and hunting, making them better warriors than those who grew up in agricultural societies and cities. Their main weapon was the bow and arrow. And the Mongols of the early 1200s were highly disciplined, superbly coordinated and brilliant in tactics.
The Mongols were illiterate, religiously shamanistic and sparsely populated, perhaps no more than around 700,000 in number. Their language today is described as Altaic - derived from the Altay mountain range in western Mongolia - a language unrelated to Chinese. They were herdsmen on the grassy plains north of  the Gobi Desert and south of Siberian forests. Before the year 1200, the Mongols were fragmented, moving about in small bands headed by a chief, or khan, and living in portable felt dwellings - gers.
The Mongols endured frequent deprivations and sparse grazing. They frequently fought over turf, and during hard times they occasionally raided, interested in goods rather than bloodshed. They did not collect heads or scalps as trophies and did not notch wood to record their kills.
From his late teens to age thirty-eight in 1200, a Mongol named Temujin (Temüjin) rose as khan over various families. He was a good manager, collecting people of talent. He was vassal to Ong Khan, titular head of a confederacy better organized than other Mongol clans. Temujin joined Ong Khan in a military campaign against Tatars to their east, and following the success of this campaign Ong Khan declared Temujin his adoptive son and heir. Ong Khan's natural son, Senggum (Senggüm), had been expecting to succeed his father and plotted to assassinate Temujin. Temujin learned of this, and those loyal to Temujin defeated those loyal to Senggum. Temujin was now established as the head of what had been Ong Khan's coalition. And in 1206, at the age of 42, Temujin took the title Universal Ruler, which translates to Genghis Khan, and he addressed his joyous supporters thanking them for their help and their loyalty.
Like others, Genghis Khan's subjects saw themselves at the center of the universe, the greatest of people and favored by the gods. They justified Genghis Khan's success in warfare by claiming that he was the rightful master not only over the "peoples of the felt tent" but the entire world.
Genghis Khan continued organizing. He improved his military organization, which was also to serve as a mobile political bureaucracy, and he broke up what was left of old enemy tribes, leaving as ethnically homogeneous only  those tribes that had demonstrated loyalty to him.  He created a body of law that he was to work on throughout his life. The kidnapping of women had caused feuding among the Mongols, and, as a teenager, Temujin had suffered from the kidnapping of his young wife, Borte, whom he had devoted himself to rescuing, and he made it law that there was to be no kidnapping of women. He declared all children legitimate, whomever the mother. He made it law that no woman would be sold into marriage. The stealing of animals had caused dissention among the Mongols, and Genghis made it a capital offense. A lost animal was to be returned to its owner, and taking lost property as one's own was to be considered thievery and a capital offense. Genghis regulated hunting - a winter activity - improving the availability of meat for everyone. He introduced record keeping, taking advantage of his move years before to have his native language put into writing. He created official seals. He created a supreme officer of the law, who was to collect and preserve all judicial decisions, to oversee the trials of all those charged with wrongdoing and to have the power to issue death sentences. He created order in his realm that strengthened it and his ability to expand.
Conquests in Northern China
An artist's imagination: Genghis Khan soft and fatherly and perhaps not as lean as when he died.
Genghis Khan moved to secure his borders. To his south he made an alliance with the Uighurs, who were closer than the Mongols were to the Silk Road and to wealth. Genghis married his daughter to the Uighur Khan, and the Uighur Khan brought to the wedding party a caravan laden with gold, silver, pearls, brocaded fabrics, silks and satins. The Mongols had only leather, fur and felt - a humiliation for a master of the entire world. Genghis needed booty to pay troops securing his northern border and subduing an old enemy there, the Merkits. Genghis acted on his mandate as the rightful ruler of the entire world and attacked the rulers of farmers and herders in northwestern China, the Tangut, who had much in goods like the Uighur Khan. In warriors the Mongols were outnumbered two to one, and they had to learn a new kind of warfare, against fortified cities, including cutting supply lines and diverting rivers. Genghis Khan and his army were victorious, and in 1210 Genghis won from the Tangut recognition as overlord. 
Also in 1210, the Ruzhen, who ruled that part of northern China that included Beijing, sent a delegation to Genghis Khan demanding Mongol submission as vassals. The Ruzhen (Jin) controlled the flow of goods along the Silk Road, and defying them meant a lack of access to those goods. Genghis Khan and the Mongols discussed the matter and chose war. Genghis, according to the scholar Jack Weatherford, prayed alone on a mountain, bowing down and stating his case to "his supernatural guardians," describing the grievances, the tortures and killings that generations of his people had suffered at the hands of the Ruzhen. And he pleaded that he had not sought war against the Ruzhen and had not initiated the quarrel. NOTE
Genghis Khan and the Making of the Modern World, by Jack Weatherford, p. 83. In 1211, Genghis Khan and his army attacked. The Ruzhen had a large and effective army but they were hard pressed by both the Mongols and by a border war with the Tangut. They were also under attacked by Chinese from south of the Yangzi River, the Southern Song emperor wishing to take advantage of the Ruzhen-Mongol conflict to liberate northern China. But the Ruzhen drove the Chinese armies into retreat.
The Mongols were benefiting from China having failed during the previous century to make itself a strong military power. They benefited too from the Ruzhen ruling conquered people. The Mongols used divide and conquer tactics, using benevolence toward those who sided with them and terror and bloodshed against those who did not. They ravaged the countryside, gathering information and booty and driving populations in front of them, clogging the roads and trapping the Ruzhen within their cities, where the Ruzhen were subject to revolts. They used conscripted labor in attacking cities and in operating their newly acquired Chinese siege engines. The Mongols had an advantage in diet, which included a lot of meat, milk and yogurt, and they could miss a day or two of eating better than Ruzhen soldiers, who ate grains. Genghis Khan and his army overran Beijing and pushed into the heartland of northern China. Military success helped as people acquired the impression that Genghis Khan had the Mandate of Heaven and that fighting against him was fighting heaven itself.
The Ruzhen emperor recognized Mongol authority and agreed to pay tribute, and, after six years of fighting, Genghis Khan returned to Mongolia, leaving one of his best generals in charge of Mongol positions opposite the Ruzhen. Returning with Genghis Khan and his Mongols were engineers who had become a permanent part of their army, and there were captive musicians, translators, doctors and scribes, camels and wagonloads of goods. Among the goods were silk, including silken rope, cushions, blankets, robes, rugs, wall hangings, porcelain, iron kettles, armor, perfumes, jewelry, wine, honey, medicines, bronze, silver and gold, and much else. And goods from China would now come in a steady flow.
The Mongols were happy to be back from China, their homeland higher in elevation, less humid and cooler. They had looked down on the peoples of northern China, seeing them as eating grain like cattle and closely packed together as were herds. But they liked what China had to offer, and at home there was change. The continuing flow of goods from China had to be administered and properly distributed, and buildings had to be built to store the goods. Success in war was changing the Mongols - as it had the Romans and the Arabs.  
Into Afghanistan and Persia 
Genghis Khan wanted trade and goods, including new weapons, for his nation. A Mongol caravan of several hundred merchants approached a recently formed empire between Persia to Central Asia. The sultan of this kingdom claimed that spies were in the caravan. Genghis Khan sent envoys, and the sultan had the chief of the envoys killed and the beards of the others burned, and these others he sent back to Genghis Khan. And Genghis retaliated, sending his army westward. 
In the coldest of months the Mongols rode across the desert to Transoxiana with no baggage, slowing to the pace of merchants before appearing as warriors before the smaller towns of the sultan's empire. Their strategy was to frighten their opponents into surrendering without battle, benefiting his own troops, whose lives he valued. Those frightened into surrender were spared violence, those who resisted were slaughtered as an example for others, which sent many fleeing and spreading panic from the first towns to the city of  Bukhara. People in Bukhara opened the city's gates to the Mongols and surrendered. Genghis Khan told them that they, the common people, were not at fault, that high-ranking people among them had committed great sins that inspired God to send him and his army as punishment. The sultan's capital city, Samarkand, surrendered. His army surrendered, and he fled.
Genghis Khan and his army pushed more deeply into the sultan's empire - into Afghanistan and then Persia. It is said that the caliph in Baghdad was hostile toward the sultan and supported Genghis Khan, sending him a regiment of European crusaders who had been his prisoners. Genghis, having no need for infantry, freed them, with those making it to Europe spreading the first news of the Mongol conquests.
Genghis Khan had 100,000 to 125,000 horsemen, with Uighur and Turkic allies, engineers and Chinese doctors - a total of from 150,000 to 200,000 men. To show their submission, some offered food to the Mongols, and Genghis Khan's force guaranteed them protection. Some cities surrendered without fighting. In cities the Mongols were forced to conquer, after killing its fighting men, Genghis divided the survivors by profession. He drafted the few who were literate and anyone who could speak various languages. Those who had been the city's most rich and powerful he wasted no time in killing, remembering that the rulers he had left behind after conquering the Tangut and Ruzhen had betrayed him soon after his army had withdrawn.
The Mongols did not torture, mutilate or maim, but their enemies did. Captured Mongols were dragged through streets and killed for sport and to entertain city residents. The Mongols did not partake in the gruesome displays that European rulers often resorted to elicit fear and discourage potential enemies - none of the stretching, emasculating, belly cutting and hacking to pieces that, for example, was soon to happen to William Wallace at the hands of the English. The Mongols merely slaughtered, preferring to do so at a distance.    [COMMENT]
April 2005: Your assertion that the Mongols "...did not torture people..." is simply wrong and sounds as though you are either trying to protect the Mongol reputation or are afraid of offending someone.
Reply: The anthropologist and historian Jack Weatherford, in his book Genghis Khan, writes that Genghis Khan "...insisted on the rule of law and abolished torture." This is not to say that Mongols never tortured. Where did you read that they did, and when and where did they do it?
The city of Nishapur revolted against Mongol rule. The husband of Genghis Khan's daughter was killed, and, it is said, she asked that everyone in the city be put to death, and, according to the story, they were.
Into Azerbaijan, Armenia and Eastern Europe
While Genghis Khan was consolidating his conquests in Persia and Afghanistan, a force of 40,000 Mongol horsemen pushed through Azerbaijan and Armenia. They defeated Georgian crusaders, captured a Genoese trade-fortress in the Crimea and spent the winter along the coast of the Black Sea. As they were headed back home they met 80,000 warriors led by Prince Mstitslav of Kiev. The battle of Kalka River (1223) commenced. Staying out of range of the crude weapons of peasant infantry, and with better bows than opposing archers, they devastated the prince's standing army. Facing the prince's cavalry, they faked a retreat, drawing the armored cavalry forward, taking advantage of the vanity and over-confidence of the mounted aristocrats. Lighter and more mobile, they strung out and tired the pursuers and then attacked, killed and routed them.
In 1225, Genghis Khan returned to Mongolia. He now ruled everything between the Caspian Sea and Beijing. He looked forward to the Mongols benefits of caravan trade and drawing tribute from agricultural peoples in the west and east. He created an efficient pony express system. Wanting no divisions rising from religion, he declared freedom of religion throughout his empire. Favoring order and tax producing prosperity, he forbade troops and local officials to abuse people.
Soon again, Genghis Khan was at war. He believed that the Tangut were not living up to their obligations to his empire. In 1227, around the age of sixty-five, while leading the fighting against the Tangut, Genghis Khan, it is said, fell off his horse and died.
In terms of square miles conquered, Genghis Khan had been the greatest conqueror of all time - his empire four times larger than the empire of Alexander the Great. The Mongol nation believed that he had been the greatest man of all time and a man sent from heaven. Among the Mongols he was known as the Holy Warrior, and not unlike the Jews, who continued to see hope in a conquering king (messiah) like David, Mongols were to continue to believe that one day Genghis Khan would rise again and lead his people to new victories.
Mongols to the Gates of Vienna
Late in the life of Genghis Khan, members of his family fought over who was to be his heir. To end the dispute, Genghis Khan chose his third son, Ogodei (pronounced oh-go-day). And in 1229, after Genghis Khan's death, a great Mongol assembly confirmed the succession of Ogodei as the Great Khan. Ogodei began his rule aiming to live up to his mandate as ruler of the world.  In earnest he began drafting conquered people into his armies. Around one in ten young men from agricultural societies went into the Mongol infantry or to assist in siege warfare against fortified cities. And tent dwellers (nomadic herdsmen) joined the Mongol cavalry.
In 1231, Ogodei sent an army to police Korean defiance of an agreement made in 1218 to pay annual tribute. In 1232, the Koreans rebelled and a struggle ensued that was to last for decades. Ogodei also sent his armies against the Jurzhen, and in 1234 his armies completed the conquest of northern China. In the mid-thirties Ogodei sent armies against Slavic principalities in Eastern Europe, but resistance by the Asiatic tribes between the Volga and Ural rivers was greater than he had expected, delaying his plans of conquest west of the Ural Mountains. Finally, in 1237, his army pushed against the Russians, conquering the cities of Vladimir,  Kolmna and Moscow in 1238. In 1240, his army destroyed the city of Kiev.
At Liegnitz (in what is now Poland), although outnumbered, his army destroyed a German army of heavily armored knights. His army pushed through Hungary, and in 1241 it reached the outskirts of Vienna. Then, mysteriously to Europeans, the Mongols pulled back from Vienna  To the Europeans it seemed as though they were saved by a miracle. To the Mongols it was something different. The Mongol retreat from central Europe was in response to Ogodei's death. High ranking army leaders believed they had to return to confirm the selecting of a new ruler.
From Ogodei to Mongke the Reformer 
Ogodei had been like some other sons of great men - something less than his father. He had been a profligate spender of money, burdening his conquered subjects with unpredictable increases in taxes for his sudden needs of money. And torn between duty and his having tired of it, Ogodei had been drinking so heavily that a functionary had been assigned to count the number of wine goblets that he emptied daily.  He had died at the age of fifty-six after a binge of drinking during a hunting trip.
However burdensome the position, there was no shortage of  young men from Genghis Khan's extended family eager to become the next Great Khan. Ogodei's widow, Toregene, began administering  Ogodei's estate, ruling her late husband's realm in his name and acting as regent for her eldest son. Military operations slowed, including a reprieve of the fighting in Korea. Fighting began among men in the extended family.  In 1246, one of them, Guyug, was able to buy support and win selection as  Ogodei's successor. He showered gifts on people whose support he continued to seek, from princes to lowly scribes, as if money was in endless supply.
Pope Innocent IV sent an envoy  to the Mongols, and a letter carried by the envoy ordered the Mongols to “desist”  from their invasion of Europe. The pope offered a synopsis of the life of Jesus and Christianity's tenets, hoping to convert the great khan, and he described himself as having been delegated by God as having all earthly power and as the only person authorized by God  to speak for Him. Guyug Khan replied that God had given the Mongols, not the pope, control of the world, from the rising sun to the setting sun. God, he claimed, intended the Mongols to spread His commandments in the form of Genghis Khan’s Great Laws. And he sent back to the pope the demand that he, the pope, submit.
The Mongol Empire, heavenly inspired or not, was subject to the same succession problems as other empires. Guyug's short reign, from 1246 to 1247, ended with Guyug dying mysteriously amid royal family squabbling. The selection of the new Great Khan went in 1251 to another of Genghis Khan's grandsons: Mongke. A plot by rivals to assassinate him at his coronation was uncovered, and this was followed by torture, purges, trials, confessions and much letting of blood - purges within the royal family as well as among government officials.
Mongke attempted to establish efficiency in governing all of his subjects. The postal relay system was freed of being jammed by elites using it for their personal benefit. He established predictable taxation that permitted planning by growers. He demanded that local rule not interfere with productive work. The death penalty was to apply to officers who seized vegetables from the gardens of Chinese peasants. Princes were forbidden to issue orders without approval from the imperial court. Officials, civil and military, were forbidden to enter areas where they had no jurisdiction. Military campaigning was to be done without devastating agricultural land or devastating cities, actions seen as reducing potential tax revenues for the imperial treasury. Private property was to be respected. Theft and brigandage were to be punished, with death the punishment even for minor offenses.
In Mongol society, meanwhile, women had more independence than those in Islamic and western societies. Mongol women could own property and pursue litigation. And they served as auxiliaries in the military, remaining hidden in the encampment during combat but joining the fight if an emergency made that necessary. Under Mongke's rule, clergymen and monks were exempted from labor on community projects. Under  Mongke as under Genghis Khan, people were allowed to worship as they chose. Buddhism, Islam and Christianity flourished. And, in 1252, Mongke's regime made official the worship of Genghis Khan.
Baghdad and the Limits of Empire
In the 1250s, France's king, Louis IX was concerned about the Holy Land and hoped for an alliance with the Mongols in order to destroy Islam. The Mongols were not interested, but they did begin expanding from Persia toward Mesopotamia. To complete the rule of the world, Mongke sent one of his brothers, Hulegu, westward, and Mongke planned to lead the conquest of the whole of China. As Hulegu and his army were passing through Persia, they destroyed the Muslim sect known in Europe as the Assassin, opening the Mongol's route to Baghdad, the largest and richest city in the Muslim world.
Some Christians in Baghdad used the coming of the Mongols as an opportunity to free themselves from Muslim rule or to avenge past wrongs, and Mongol military leaders, as was their habit, used such conflicts to their advantage. Within Hulegu’s army were Christians and Shi’a Muslim, and they are said to have been the most fervent participants in attacking Baghdad’s Sunni Muslim inhabitants. In 1258, Baghdad was destroyed and many Sunni inhabitants butchered, while Christians and Shi’a Muslims were spared. The conquest of Baghdad ended the Abbasid caliphate there and Baghdad as an Islamic spiritual capital. In modern times.
In 1259, Hulegu's army entered the great Syrian city of Damascus, Christians there greeting the Mongol army with joy.  The Mongol army then headed southward toward Egypt, and they learned  that even great empires under God had limits. In 1260, their advance was stopped by the Mamelukes of Egypt, near Nazareth. Taking revenge on the Christians for having allied themselves with the Mongols, the Mamelukes destroyed Crusader strongholds in the Middle East, the beginning of the end of the Crusaders there, leaving them only at the Mediterranean coast, at Acre, Tyre and Tripoli.
Khubilai Khan in China and to Japan
After two years of preparation, Mongke's army had invaded China's Sichuan province. There, in 1259, Mongke died in battle, and he was to be the last of the great khans ruling from Karakorum and the last to exercise authority over the entire Mongol empire. Another fight ensued over who was to become the Great Khan. Succeeding Mongke was one of his brothers, who would be known as Khubilai Khan - a 41-year-old grandson of Genghis Khan who had been fighting alongside Mongke in China. Others in the west, wishing to be the Great Khan declared themselves as the great khan and established independent kingdoms, bringing the division that plagued other empires. 
From his capital, Beijing, Khubilai Khan pursued the subjugation of southern China, attracted by its wealth, including grain surpluses and towns along China's southern coast that were prospering from seaborne trade. China from around the Yangzi River to the south would be the largest area, have the largest population and have the greatest resources of any area yet conquered by the Mongols. Khubilai tried to persuade the Song emperor to subjugate himself peacefully, and when this did not happen he drove his army of various ethnicities (including Chinese and Persians) deeper into China, while his navy, manned by Jurzhen and Koreans, sailed south along China's coast. The drive took sixteen years, the conquest ending around 1276 - the year after a tradesman from Venice, Marco Polo, arrived at Beijing.
Khubilai Khan, interfered little in China's economy, and Confucianists were left without much influence, giving Chinese merchants a temporary break with which to pursue trade. The Mongols assimilated little with the Chinese, Khubilai not wishing to see his army of occupation becoming Chinese. Nevertheless, a little mixing between conquerors and the conquered took place - mainly Mongol soldiers taking Chinese wives.
After consolidating his rule in China, Khubilai Khan sent envoys to demand tribute from Japan and threatened reprisals if they did not. From the palace at Kyoto the Japanese answered, claiming as other rulers did that their nation had divine origins. Therefore, they argued, Japan was not to be subject to anyone, and they began preparing a defense. Khubilai believed that he could not permit the appearance of Japan defying him. In 1274, from southern Korea, he launched an assault  - a Mongol, Chinese and Korean force, with 600 to 900 ships, 23,000 troops, catapults, combustible missiles, bows and arrows. Bad weather compelled the invasion force to return from Japan's southern-most major island: Kyushu. In the summer of 1281, Khubilai Khan tried again, this time sending some 4000 ships. For fifty-three days the Japanese held the invaders to a narrow beachhead on Kyushu. Then a hurricane struck. The Mongols withdrew again, only half of his force making it back to China. The Japanese  interpreted the hurricane as a god wind - kami-kaze. Khubilai was finding the limits that Hulegu had found in the Middle East. It was the last attempt to invade Japan until 1945, at Okinawa, when kamikaze would also be a word of significance