Don’t Cheat
by Death on Apr.06, 2010, under Uncategorized
Suppose we’ve got 40 playing cards, from Ace to 10, of Club, Diamond, Heart and Spade. And we want to play the 24 game. Here’s the question: how can we get 4 RANDOM cards?
Well, it’s a simple question. Just shuffle the cards and take 4 of them. But how can we do that with a computer? We assume computer don’t shuffle cards but are capable to generate random numbers within any range.
Continue reading...雨巷
by Death on Apr.01, 2010, under Uncategorized
只是想用自己的声音描绘戴望舒的雨巷。
Continue reading...随意走动(续)
by Death on Mar.18, 2010, under Uncategorized
从上一篇日志中我们得知,前后随意走动时,我们与起点的距离的期望值是越来越大的。
现在我们还有一个问题,如果我们一直这么走下去,我们能够回到原点的概率有多大?
Continue reading...随意走动
by Death on Mar.15, 2010, under Uncategorized
如果我们闭上眼睛,从原点开始随意走动,我们会走到什么地方去?在经过很长很长的时间后,我们是不是能回到原点?
Continue reading...Turning to HTML 5
by Death on Mar.12, 2010, under Uncategorized
This blog is turning to HTML 5.
I will change some of the existing contents into HTML 5 representation and use some HTML 5 features in future posts.
My apologize that I will only make sure that my website can be well displayed in the latest version of FireFox. I expect that other browsers, such Chrome and Opera, can also display my website well. But I guess IE won’t show all things properly.
Continue reading...时差
by Death on Feb.01, 2010, under Uncategorized
毫无疑问,我们的身体里是有一口时钟的,它会告诉我们什么时候该起床了,什么时候该吃饭了,什么时候改睡觉了。我们的生物钟是真的在“滴答”。
虽然都是大自然的鬼斧神工,但生物钟并不像原子钟那般一丝不苟如白金汉宫门前的皇家禁卫。在人的一生中,生物钟的运作周期是在有规律的变化着的。
不要小看了任何来自你身体内部的不受你意志控制的力量。那些看似微弱的力量会在你无理和忤逆的时候慢慢蓄积愤怒,它们会让你付出代价。
Continue reading...三角形面积
by Death on Jan.23, 2010, under Uncategorized
前几天两个无聊的人饶有兴致地讨论一个无聊的问题:怎么得到一个三角形的面积?今天无聊的我决定把这个无聊的问题的讨论结果记录下来。
Continue reading...1024线甩隐飞
by Death on Dec.05, 2009, under Uncategorized
你一定没见过33000的APM是什么样的操作~
Continue reading...家在哪里
by Death on Dec.03, 2009, under Uncategorized
会不会我一搬家,新家就像客栈了,连时间和记忆都攒不起来。可是家毕竟是家,我不在意家容纳了多少我的时间,家容纳的是我的生命。
是不是四海为家的人要把生命扑撒在大江南北,不知道在他死去的时候,他会希望人们把他葬在什么地方。
Continue reading...