Thank you, Tim Hortons!

hpim0035学 IT 的人,给绝大多数人的形象可能就是左手披萨、右手可乐。而这种印象往往来自于某个软件公司老板的自传。披萨我经常吃──便宜、省时间,ITB 的人没有不喜欢的。不论是校内的 Pizza Pizza,还是校外的 Gino Pizza(右),基本上所有的品种都吃遍了。有时侯看着手中花花绿绿的意大利馅饼,总幻想若干年后某天是不是要写个自传也自我唏嘘一番。

至于可乐,只会在买麦当劳套餐时一不小心忘了叮嘱收银的帅哥美女把饮料换成冰茶的时候才会喝到。我主观上不讨厌可乐,不过被一些朋友灌输一些“可乐有害论”久了,自然而然地多了那么一丁点抗体。相比之下,咖啡对人脑的刺激我相信比可乐更大,据说还会上瘾……分不清这是咖啡的优点还是缺点,不过我记不起从什么时候开始,咖啡成了我的首选;平常除了住所和办公室,最经常去的地方就是附近的 Tim Hortons

学校西边的 Tim Hortons 不远,走路 5 分钟就到。一个不大的餐厅模样,也不会经常人山人海。人最多的时候,往往是春末和年底。那个时候考试最多,学生们自修都找不到地方,自然会向这类咖啡屋靠拢。以前住在市区,晚上 12 点以后学校那边搭不到回家的巴士,就需要早点回市区。回到市区又不想回家──家里有吃有喝有睡有玩,根本无心学习──可是又没有哪个地方有桌子椅子可以写作业。那时路过 Tim Hortons,就看见学生模样的在里面奋笔疾书,然后有一天就被同化了。头一次在里面复习功课,依着咖啡因的作用一下子熬了一晚上,补回了很多上课听不懂的重点,很是欣喜。对于有人说我小资,我从来都是反对的。这只不过是一个典型的实用主义者找到的一个有效的学习途径。于是就养成了这样的习惯,一直到现在。

很惭愧从小做什么事情都不会有很大的毅力,母亲为了让我完成一件事情,经常需要变着花样来哄我。即使到现在,也经常会变着环境去温习功课,否则就会六神无主人在心不在。所以有时侯路上碰到熟人问我去哪儿,我会说我去TH。因为 Tim Hortons 叫 TH,学校的 Thode Library 也叫 TH,都是能让我坐下学习的地方。安静的地方我呆闷了,就会换去喧闹的环境。我发现,其实有时侯周围人声吵杂的时候,我反而能静下心来看书。因为他们讲的事情跟我所要想的事情是不同的领域。脑子就像一个笼子,放了一只老虎在里面,就会整个笼子蹒跚来回;放了两只或两只以上的老虎,每个老虎就会割据自己的地盘,活动的范围也自然缩小。想法,就像这些老虎一样,当你的脑子是空的时候,就会飞来飞去;当你腾出来一部分注意力去吸收周围街坊的你长我短的时候,大脑能活动的范围已经被其它声音占据,而书本上需要注意的知识要点就会更加明显。中学的时候,老师告诉我马克思为了锻炼自己的注意力,专门跑到声音分贝级很大的地方去看书。现在看来,可能马克思也可能跟我是同流罢了。

去 Tim Hortons 的人,年长一点的,都会买 Whole Black;我这种年轻的,一般都要 Double Double(加糖加奶)的。我们有句成语叫“忆苦思甜”,或许老人家喝了一辈子 “Double Double”,想从纯纯的苦咖啡里弥补人生路漫的沧桑吧。可乐这种纯糖的东西,喝的最多的也只有小孩子吧。一杯咖啡,一个窗口;窗外人来车往,日落月升,难怪有人要说我小资呢。最喜欢喝的是“加糖加奶”,最喜欢坐的地方是窗口,最喜欢吃的甜点当然也需要有同样的感觉。橱柜上那么多品种,我经常点的是 Chocolate Croissant。不想描述那是什么味道,也描述不出来。即使描述出来,吃过的人也不一定会赞同。照片在下面,一图胜千言。

hpim0040

ACM Day 2

Don’t be surprise if you find this blog somehow read like a mathematical precise proof, just like my other assignments. I had been working on the three assignments, which were all due today, for 2 days. The CAS professors always want to keep we graduate students busy and busier, so I really did not have enough time to update the story I had since I came back from ACM 2005 Day 2.

hpim0015As we can seen in Pictures, most of the pictures I took during the contest were already uploaded. My team worked out one problem and we were ranked at 45th place, out of more than 130 teams. The 15th place, McMonkeys, another team of us, got three problems correct. The first four places, two from University of Waterloo, two from University of Toronto, had worked out all eight problems. More results can be found here.

hpim0016The real contest problem set can be downloaded at here, as well as judges’ solutions. The problem we worked out is problem D, as known as “Queens, Knights and Pawns”. We spent less than 2 hours on it, and actually more than 30 minutes were debugging. It turned out that it was a mistake in setting the maximum size of the chess board. For the rest of the time, we worked on 3 other problems but had some problems in designing the algorithms.

To solve this kind of problems in contest, it really needs people to concentrate on the details and be careful on the special cases when testing. Most of the time the speed of coding is more important than skill of designing an algorithm with less running time complexity or more efficient. Programming in a contest and programming in software production are different, but both require a good understanding on the problems you are facing before the coding. Once the idea is correct and the frame of algorithm becomes clear enough, go for it. A good resource for practicing such problems, is http://acm.uva.es/problemset/

After the contest, all contestants were invited to the dinner. I like the food.
hpim0022

Shaved

Just shaved my beard, for ACM Contest. More than half of my friends believe I was more handsome with beard, rather than shaved. Hmm, need to think bit more about how they define ‘handsome’ in their dictionaries. Anyway, changing the outlook is always good.

pictures taken on the day of ACM Programming Contest for my new outlook. The picture on the left is a webcam picture of me with beard a day before.

开拍

刚刚忙完第一天的ACM比赛,晚上回到住所就看见室友摆在客厅的邮包。虽然没有看清上面的字样,但是我很确定这就是我等待已久的HP Photosmart R717
HP Photosmart R717
打开包裹,放入手中,感觉比想像中要轻巧一些。不过,当然不能跟William的那个超薄SONY Cybershot相比了。之所以挑中这款DC,最主要的原因是它的性价比。虽然对摄影摄像并不感冒,但是根据几张照下来的图像来看,效果还是不错的。一直想捕捉生活的影子,现在有工具了,要是再啥都捕捉不到,那就只能骂自己懒了。

夜深了,明天还要继续ACM Day 2,要早点休息去了。从明天开始,开拍!

ACM Day 1

Just came back from Sheridan College for the first day of 2005 ACM East Central North America Regional Programming Contest. The events started from 5pm today.

05 11 04 19 35We have two teams from McMaster University, and I was with Yinghai and Eugene as McMaster A . The name of another team is McMonkey, consisting of William, Shiqi and Jeff. Note that Shiqi has just won the first place of International Conference on Functional Programming Contest, with another student in the Department of Computing and Software.

05 11 04 19 34After a brief introduction to PC Square, a software that collects codes from contestants and display the result from judge, we were led to the practice session. It was aimed at making contestants more familiar with the contest environment. In the practice contest, we were actually given three problems. It is really helpful to make as many mistakes as possible, as we want to get the feedback from PC Square and the judge, to find out different possible problems which potentially will occur in the real contest tomorrow.

Write to public, write for public.

Since Microsoft started MSN Spaces, which is binding with MSN Messenger, 90% of my friends have started writing blogs. It is good, because we all love writing stuff. Technically, most of these blogs are publicly viewable, but some of them are being used as personal private diaries.

I don’t like writing diary. Instead, I like blogging. But you might be wondering, “Hey, what are the differences?”. I have been blogging for 2 or 3 years, as a newbie – I must have already failed if this is a course =). What make diary and blog different in my opinion, is that blog is a way to communicate, and diary is not. We have post offices, cell phones, internet and many other means to communicate, just because we always have our own opinions on different things or some of us just want to get rid of loneliness due to our human nature. I write to public, and for public.

So far, there are still many issues challenging me. As many of you can see, I am writing my stories in Chinese and English in an interleaved way. The reason I am doing this, is that I want to maximize the number of readers from any corners in this world. Everyday I have many ideas and thoughts, but some times I found that writing a topic, which I can easily wrap around in Chinese, can be very buggy to myself if I want to write it in English. Clearly, the reason for this situation is because of my skill in written English. Thus I’d like to share the comments about how to write good blogs in English, if anyone has any, such as topic choosing, paragraph organizing and etc. In addition, I’d also like to know what I was writing good and wrong in my past blogs.

Any comments are greatly appreciated.

Recursion

是谁
谁把我掷入这递归
这递归 这宇宙 这我……

天上那星 是我心脏
那银河 是我脂肪
两眼左右 是那太阳

分秒挣扎 变电光蝴蝶
天崩地裂 或 海落石枯
将我生 化为这宇宙
将我命 化为这递归

谁把这递归……无我其有?
可笑!
我有多久
永远即有多久

One More Kilogram


Are you travelling a lot or planning to have a trip in China? Are you a person who concerns about the life of children in poor area? Now here is a piece of suggestion from the website http://1kg.cn:

Bring about 1kg of stationeries or toys as gifts for the children in the area you travalling to.

Shown by statistics, in some area of China, in children age from 6 to 12, there are about 10% of them have never been to schools. For children who got chances to go to school, there are about 5-6% of them left primary schools before graduate, and the reason for 75% of them is because of financial problem. Most of them are below grade 3. For children who are actually taking classes, a large portion of them are actually doing part-time study before Winter comes. For the rest of the time besides study at that time, they help their parents for the harvest. These children come back to full-time study after the harvest. 60% of them are girls. Actually, the per centage for girls to go to schools in some poor area is only about 20% to 30%

The project “One more kilogram” is not asking people for help to make these children to get rid of such situation. There are many other projects in China are doing that, such as The Project of Hope (希望工程). Instead, “One More Kilogram” are aiming at bringing happiness and knowledge to the children in poor area. Other than just “bring about 1kg of stationeries or toys as gifts for the children”, what people really want to do, is actually set up a channel of communication between these children and people who always want to share their lifes. Having done that, the children are in fact given a direction and a vision of where the “world” is and what does “love” look like.

.

For more pictures, visit 1kg.cn online photo show.

做了个梦

最近老是左手食指中指一并在半空比划,要么就是零碎的记忆片段显示绝不可能发生过的现实,于是我曾晚做了个梦,梦见我是那个世界的大哥。或许应该说,梦把我给做了:

那是一个类似高校的山寨,很多非常熟悉的面孔给我打着招呼,虽然我如何也想不起他们的名字。他们似乎是我的朋友,又似乎对我有很高的崇敬。我发现这个高校也似曾相识,可我却如何也记不起这样的画面。但我如何也不慌张,似乎是我地方。

他们管我叫大哥,我也跟兄弟们打成一片。虽然我若干时日仍未记得他们姓名,却深知手足情深。我们一起爬山,我们一起涉水。一次探险,我们在山崖摇摇欲坠。我用身体当绳索,让弟兄们从肩头爬过。我终用落下时身边一颗绳草重回山脊,迎来的是豪迈的欢呼。

许久,我们迎见一群东瀛唐刀的鸟人的挑衅,冲上前去挡住一笔刷向左边手足的黑刃。我对身后喊:“还当我是大哥的就给我跑!”。青色污染了我的视野,也许是我眩晕,也许是我在那个世界的血液。我搪促地用四肢奔跑,像野兽一般──我带鸟人们去撞邪恶山!身后是疯狂的呼喊,越来越近。

到达邪恶山的时候,涨潮的湖水夹杂着山涧的毒草,喷放着浪漫的死气,如此香气迷人的死气。据弟兄们说,是之前我在这里救到迷失的玲。将死的她被我背上山寨,终回人间。

现在的我,正在违背着“再也不来邪恶山玩”的发誓和玲可爱的笑,带着鸟人们终回地狱。我模糊了,黑了;麻了,木了;笑了──该死的鸟人,跟我一起去下面旅游吧!

什么都看不到了,我仿佛真空中漂浮。我听到书页被风吹过的声音。我似乎看到一本书,一本线缝的书。上面有描红用的字格;上面有工整的楷体;上面有很多字,按照名号排比着。

我看到书页停了,其中上下两个大小不一的安静的字:王正

我伸手去抓它,书却合上了。

扉页写着三个字:生死薄

……

许久,我又有了知觉;许久,我发现我依旧存在;许久,我感觉到右手麻了;许久,我发现自己躺在一张床上;许久,我瞄了床边旅行箱上的名字:“王小虎”