星期三, 四月 29, 2009

[People]hackerqc

该来的总归要来!传说中的卡耐基梅隆,传说中的计算机四大金刚
http://hackerqc.spaces.live.com/blog/cns!46EDBF3678B01DB1!925.entry?sa=489788572

星期一, 四月 27, 2009

[Readings] Computer Programming as an Art

钱学森先生的艺术修养是很高的,他夫人就是著名的歌唱家,他在提到科学与艺术的关系时说:"处理好科学和艺术的关系,就能够创新,中国人就一定能赛过外国人"
Knuth在他的这篇文章中更是很好地说明了计算机和艺术之间的关系。

一些摘录:
Computer Programming as an Art
by Donald E. Knuth, 1974

Meanwhile we have actually succeeded in making our discipline a science, and in a remarkably simple way: merely by deciding to call it "computer science."

If we go back to Latin roots, we find ars, artis meaning "skill." It is perhaps significant that the corresponding Greek word was τεχνη, the root of both "technology" and "technique."

the process of going from an art to a science means that we learn how to automate something.

Fifteen years ago computer programming was so badly understood that hardly anyone even thought about ... The point is that when we write programs today, we know that we could in principle construct formal proofs of their correctness if we really wanted to, now that we understand how such proofs are formulated.

Our discussion indicates that computer programming is by now both a science and an art, and that the two aspects nicely complement each other. Apparently most authors who examine such a question come to this same conclusion, that their subject is both a science and an art, whatever their subject is.

The science without the art is likely to be ineffective; the art without the science is certain to be inaccurate.

A scientific approach is generally characterized by the words logical, systematic, impersonal, calm, rational, while an artistic approach is characterized by the words aesthetic, creative, humanitarian, anxious, irrational. It seems to me that both of these apparently contradictory approaches have great value with respect to computer programming. 

Works of Art
My feeling is that when we prepare a program, it can be like composing poetry or music; as Andrei Ershov has said [9], programming can give us both intellectual and emotional satisfaction, because it is a real achievement to master complexity and to establish a system of consistent rules.

Furthermore when we read other people's programs, we can recognize some of them as genuine works of art. I can still remember the great thrill it was for me to read the listing of Stan Poley's SOAP II assembly program in 1958; you probably think I'm crazy, and styles have certainly changed greatly since then, but at the time it meant a great deal to me to see how elegant a system program could be, especially by comparison with the heavy-handed coding found in other listings I had been studying at the same time. The possibility of writing beautiful programs, even in assembly language, is what got me hooked on programming in the first place. 

When we apply our own prejudices to "reform" someone else's taste, we may be unconsciously denying him some entirely legitimate pleasure. That's why I don't condemn a lot of things programmers do, even though I would never enjoy doing them myself. The important thing is that they are creating something they feel is beautiful

I must confess that I really enjoy writing computer programs; and 1 especially enjoy writing programs which do the greatest good, in some sense. 

The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. 

We shouldn't be penny wise and pound foolish, nor should we always think of efficiency in terms of so many percent gained or lost in total running time or space. 

How did they develop their skill? The best film makers through the years usually seem to have learned their art in comparatively primitive circumstances, often in other countries with a limited movie industry. And in recent years the most important things we have been learning about programming seem to have originated with people who did not have access to very large computers. The moral of this story, it seems to me, is that we should make use of the idea of limited resources in our own education. We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. We shouldn't live in the lap of luxury all the time, since that tends to make us lethargic. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems, and the experience will help us to get more pleasure from our accomplishments on less restricted equipment.

星期五, 四月 24, 2009

Keep Swimming

自由泳能一次游到300米了,算是一个小的突破。也许对于业余的游泳爱好者们已经够了,但是这个不是跟别人较劲,而是跟自己较劲。
专业运动员训练的时候每次是要游5000米,至少等到你游到5000米了再考虑够了吧。(与专业的比,Why not?和专业运动员比,What's the difference?)
每周的游泳继续。

培养这么一种心态:
对自己满意但是不停止。快乐应该来自每次的进步而不是在已经达到的程度。
努力做到完美,努力打破自己的极限。在落后于别人的时候不丧失信心,在领先别人的时候不自满。(即使落后一大截,即使领先一大堆。)

学英语的细节 - 如何查单词

以前的习惯,每次查单词都是很急躁,直接查了中文,这次用完了,忘记了,下次还要再查。现在意识到要改进一下。

对比两种查单词的方式:

查单词的方式

花时间

学到了

以后可以用在

直接查中文意思

3s - 5s

中文意思

阅读

查英文意思+中文意思、造一个句子

30s - 50s

中文意思、英文同义词、语境

阅读、口语、作文


还是多花点功夫比较划算。

星期三, 四月 22, 2009

沟通的注意点

“当两只鸡一样大的时候,人家肯定觉得你比他小;当你是火鸡,人家是小鸡的时候,你会觉得自己很大,人家会觉得咱们一样大;只有当你是只鸵鸟的时候,别人才会承认你大。所以,千万不要把自己的力量估计得过高。”
--柳传志的鸵鸟理论

乐意成为他人朋友的人,能够进行愉快的谈话。他们有能力“打破僵局”,能在适当的时候找到话题,使对方感到舒服。

2.  SILENCE.  Speak not but what may benefit others or yourself; avoid trifling conversation.
--The autobiography by benjamin franklin

音量15

一般我都是整天听着音乐,早上放古典音乐,困了放摇滚乐,偶尔听听流行音乐。一天下来,带着耳塞的时间>8h,所以,耳朵会不舒服。最近去游泳的时候就感觉耳朵有点疼(也有可能是别的原因)。

所以,现在的做法是,把音乐开到很小的音量,只有自己能听到而又不影响到他人。调了一下,音量10~15刚好。问隔壁工位的gl同学的意见:"我开这个声音的音乐不会影响你吧?",回答说:"没听到啊~"嗯,要的就是这个效果。

音量15的大提琴,可以伴我一整天。

[Reading]The Singularity is Near: When Humans Transcend Biology

之前就下了这本书,但是因为工作忙放着就没看。今天听到Craig Mundie提到这本书,才把他从"厚厚"的一堆电子书中翻出来。
虽然只看了前面的几页,就觉得这本书会值得一看了。因为:做书评的人很牛。其中有(我认识的):Bill Gates, Raj Reddy(图灵奖获得者), Bill Joy(Sun前首席科学家)……
"Ray Kurzweil is one of the world's leading inventors, thinkers, and futurists, with a twenty-year track record of accurate prediction.

[活动]"Dreams Ignite the Future" - A dialogue with Craig Mundie

Three emerging directions of Microsoft: health, education, and global emerging middle class
More and more knowledge will be represented in software
Expert systems solve the problem
I will never retire. As "Sigularity" say, ... live longer. Help with important problems, and MS is a good platform.
Lucky = find passion early and do what you like.
Student more lucky in the future. My granddaughter will physically wired differently from me in the brain.

星期二, 四月 21, 2009

[Reseach]读paper的顺序: 关于Reference

前辈建议读paper的顺序是(包括审paper):
Title 关键词
Organization 是否有可信度
Abstract 有什么有趣的发现么?
Reference 基于什么工作做的
Results/Evaluation 做出了什么结果

之前一直不知道为什么从Abstract就跳到了Reference,今天读一篇paper的时候发现了道理,因为水平一般的paper的工作引用的paper也基本都是不那么重要的paper。不是说你的工作不重要,只是你做的工作既然以前这么多年都没有在重要的会议上有发过的类似工作,要么就是整个评审委员会对这件工作的重要性都忽视了,要么就是你没有找到重要的问题做。

To follow the path: look to the master, follow the master, walk with the master, see through the master, become the master.
要look to the master。

星期日, 四月 19, 2009

[音乐]巴赫大提琴集(Bach Cello Suite)

Cello,大提琴。因为声音低沉,有深度,所以我比较喜欢在写程序或者看paper的时候听。

巴赫的大提琴集,"some of the greatest works ever written for solo cello and some of the greatest of all music". 其中的Suite No. 1 In G Major: Prelude,先是因为马友友的精选中听到,所以就喜欢上了。而pp极力推荐Starker的版本。于是就拷了mp3来听。感觉Starker拉琴时思考的时间长一点,好像用大提琴来表达我在思考一些比较深的问题而没有答案(倒是挺符合我的心情)。而马友友则似乎是用欢快的弓来表达他对生活的赞美一样,运弓很连贯,一气呵成。(正在下马友友版本的巴赫大提琴集,回头同Starker比较一下。)


星期五, 四月 17, 2009

[Reading] The Autobiography of Benjamin Franklin

============================================================
1.  TEMPERANCE.  Eat not to dullness; drink not to elevation.

2.  SILENCE.  Speak not but what may benefit others or yourself;
avoid trifling conversation.

3.  ORDER.  Let all your things have their places; let each part
of your business have its time.

4.  RESOLUTION.  Resolve to perform what you ought; perform without
fail what you resolve.

5.  FRUGALITY.  Make no expense but to do good to others or yourself;
i.e., waste nothing.

6.  INDUSTRY.  Lose no time; be always employ'd in something useful;
cut off all unnecessary actions.

7.  SINCERITY.  Use no hurtful deceit; think innocently and justly,
and, if you speak, speak accordingly.

8.  JUSTICE.  Wrong none by doing injuries, or omitting the benefits
that are your duty.

9.  MODERATION.  Avoid extreams; forbear resenting injuries so much
as you think they deserve.

10.  CLEANLINESS.  Tolerate no uncleanliness in body, cloaths,
or habitation.

11.  TRANQUILLITY.  Be not disturbed at trifles, or at accidents
common or unavoidable.

12.  CHASTITY.  Rarely use venery but for health or offspring,
never to dulness, weakness, or the injury of your own or another's
peace or reputation.

13.  HUMILITY.  Imitate Jesus and Socrates.

============================================================
     THE MORNING.            {  5 } Rise, wash, and address
                             {    } Powerful Goodness!  Contrive
Question.  What good  shall  {  6 } day's business, and take the
I do this day?               {    } resolution of the day; prose-
                             {  7 } cute the present study, and
                             {    } breakfast.
                                8 }
                                9 } Work.
                               10 }
                               11 }

     NOON.                   { 12 } Read, or overlook my ac-
                             {  1 } counts, and dine.
                                2 }
                                3 } Work.
                                4 }
                                5 }

     EVENING.                {  6 } Put things in their places.
                             {  7 } Supper.  Music or diversion,
Question.  What good have    {  8 } or conversation.  Examination
I done to-day?               {  9 } of the day.
                             { 10 }
                             { 11 }
                             { 12 }

     NIGHT.                  {  1 } Sleep.
                             {  2 }
                             {  3 }
                             {  4 }

凡事预则立

凡事预则立,不预则废。
在睡觉之前回顾今天做的事情,并且计划好第二天的事情。
前几次可能要强制一下,后面就养成习惯。
如果"忙"得没时间回顾,那肯定是头一天没有计划好或者是第二天实施的时候出现了问题。大部分原因其实是因为做了些不值得做的事情。少做几件事,重要的是形成order。

重新挑着看了一遍Benjamin Franklin的自传。他似乎每天睡4个小时(而且没有午睡),这点让我非常羡慕。我可能根深蒂固地认为每天要睡8个小时+才够。最近太困,晚上8个,中午还有2个小时用来睡觉。说明自己对自己的physical intelligence不够关注。仅仅过得去是不够的,要精力充沛才行。

读《Powerful Sleep - Secrets of the Inner Sleep Clock》,摘录一些观点做参考:
睡眠是质量问题,而不是数量问题。
头3、4个小时里大部分是深度睡眠。
进入第一个深度睡眠时段需要45分钟。如果能把小睡限制在45分钟之内,醒来就会感到精力充沛。午觉的时间建议是10-45分钟。
提早上床或者迟起床并不能补偿睡觉,这是因为你的生物钟(体温曲线)并没有变化。
多喝水。使血液在深度睡眠时候从内脏顺畅流动到肌肉。
晚上吃得少一点,减轻消化系统负担。
越是放松就越容易睡着。把注意力放在放松而不是放在睡觉上。
减少睡眠时间之前,先提高睡眠质量和白天的精神。


星期四, 四月 16, 2009

[Quotation]华罗庚 - 发白才知智叟呆

神气妙算古名词,师承前人沿用之。神气化易是坦途,易化神气不足提。妙算还从拙中来,愚公智叟两分开。发白才知智叟呆,埋头苦干是第一。勤能补拙是良训,一分辛苦一分才。
-- 华罗庚・写在《从孙子的神气妙算谈起》扉页的诗

星期二, 四月 14, 2009

世界由极少数的聪明人创造

一年前黄老师上了云计算的课,现在云计算才开始慢慢被周围更多同学知道了。(要让大众知道估计更晚。)
08年Intel和Microsoft共同投资$10M给Berkeley和UIUC,来推动并行编程成为以后的主流。现在并行编程逐渐被推广。(Maugan Kaufman出了一本书The Art of Multiprocessor Programming,估计接下去几年很多人会要学。)UIUC的summit开得如火如荼,而国内还没有听到类似动静。The Bulk Multicore项目,Intel已经开始付诸FPGA,而国内关于manycore还是没有动静。
聪明的人解决还没有解决的问题,笨的人只是follow。极少数的人创造了整个世界。

游泳

只要不停地游,总是会进步的。
今天一口气游了250米,单次25米的计时是24秒,相比半个月前单程200米、单次30+秒有了进步。

再接下去进步就慢了,上升的空间有限。看那几个常游的单次是18秒,先定个20秒的目标吧。

星期一, 四月 13, 2009

在线听音乐咯

Google音乐last.fm

基本上,平时听什么都够了。
比如:
Bob Dylan
巴赫小提琴

当然,懒人们可以在LaunchyWeby里面添加这么一项:
Name URL Query
Music http://www.google.cn/music/ search?q=%s&qa=f
当你搜什么音乐的时候,只要在launchy里面输入"Music[TAB]歌手名"就可以了。就像last.fm一样。

星期日, 四月 12, 2009

开源软件协会活动

半年没有参加协会的活动了,这次活动还挺成功的。又认识了不少人。
记得上次AKA的活动,看到一只很可爱的企鹅,原来是BLUG的。
另外,Unix-Center.net竟然是蒋清野一个人建的站。3个机柜每月租金1.8W,流量费每个月1.5W,非常佩服他做的事情。

马丁路德说,有一件事情是所有人都可以做的,那就是service。为他人服务而不图回报,这是一种非常宝贵的品质。这种品质在开源界就很常见。

星期二, 四月 07, 2009

讨论班

关于集群文件系统的元数据的管理的一个讨论。

没怎么听懂,背景和难点没有介绍清楚,而是按照写paper的方式在罗列自己的工作。所以后面的提问有关于背景和关于实现关键细节的。至于我,因为没有听懂背景,连问题都提不出来。

结合《像外行一样思考,像专家一样实践》做一些总结:
越简单化、抽象化就会产生越绝妙、越鲜明的理论。
能否将想到的问题简单化,是成功与失败的差别所在。成功的人会向简单的方向迈进,而失败的人只会担心"变得这么简单了能行吗",却不肯迈出一步。
做得很好的人和做不好的人到底有什么不同呢?我总认为,做得很好的人,应该在开始研究之前,就做好了充足的准备和计划,而且目的明确,清楚完成研究可以对 社会做出什么样的贡献。在对别人讲解之前,就应该想好这些问题,理清研究脉络。"请看这个,它产生了这样的结果。"这样组织语言和段落,才能让人感到舒 心。要像推理小说一样设置各个步骤,以做到完备。首先让人了解其难度:"要实现这样的事很难吧?"然后继续说"你注意到这个了吧,实际上这与刚才的困难是 有关系的,采用这个办法就能解决了。那样每天就可以省很多工夫。"
抓住要点,在讲话和做研究上都是一样的。无论在什么领域里有所建树的人,都有能力把自己专业的问题抽象化,再进行思考。即是是不同的领域,抽象化后的思考 方法也是相同的。用这种方法,不同领域的人之间就可以了解的更多。我这里所说的抽象化并不是指说话抽象,而是说可以通过特定的事例、事情抽象出共同的概 念,也就是抓住要点的能力。无论什么领域、什么研究、什么说话方式、什么教育背景,抓住要点的方法都是相同的。
既然交谈的对象有能力抓住说话的要点,那么仅是泛泛的发言就没有任何意义了。要像主场作战一样,把实践经验、优势运用出来是最重要的。……但客场就是孤军奋战了,想要赢也难了。客场作战赢了才是真正实力的体现。

星期一, 四月 06, 2009

看完了Atom Smasher

看完一集national geography,在atom smasher建造过程中,会遇到各种以前从来没有遇到过的问题。这个世界上最大的粒子对撞机,部件的可靠性、制冷都是前所未有的规模。看着担任项目总负责人的首席物理学家在建造过程中那种眉飞色舞的感觉,那种探索的喜悦,那种解决从来没有人解决过的问题(Everyday it's something different.)时候的幸福。不自觉地问自己一个问题:Do I like to solve problems?

觉得自己的好奇心还是不够强。可能需要自己培养。
――专注在某一件事情上的好奇心。

星期四, 四月 02, 2009

Re: [Readings]An Interview with Barbara Liskov

要focus,又要as broad as possible,真不容易做到。
The best you can do is work, work, work!

re:
http://www.acm.org/membership/liskov-interview

Re: [Readings]An Interview with Barbara Liskov

The best thing you can to is have a broad education. You should get a depth in ..., Talking about Undergraduate education, not to focus too much on one paticular field, because you don't know what you are going in the future, and you need to have the grouding that would make it possible for you to move your area because what's happening in the future is not the same as what's happening today, will be different then, the main thing is you don't know what will happen in the future, so the most you can do is to sort of be ready, so you can move when time comes.



[Readings]An Interview with Barbara Liskov

1.You need focus and also need downtime.
2.Another important thing is to have a sense of humor, which will turn a negative thing to a positive thing.
3.In the meeting, make sure people do get credit for what they said. (encourage)

http://www.acm.org/membership/liskov-interview

[札记]关于google的自定义搜索引擎

自定义了一个搜索自己博客的引擎,搜自己过去的文章,发现最新能搜到的标题是3月25号的。也就是说google自定义引擎建索引的时间大概是10天左右。
也是,全世界这么多个网站,等google的爬虫重新来爬一遍你不起眼的网址,10天已经算是很快了。

札记

1、原来真的有google  mp3,只不过我还没找到网址。�(�_�)�

2、前些日子看到新闻说Michael要复出,于是昨天在东北大学bt(要支持ipv6才能访问)下了他的演唱会(有张他的DVD,不过放在家里)。昨天看了一遍,今天又看了一遍。太完美了!以前我可能思想还不够open到欣赏Michael的不俗之处,最近看他的魅力真是了不得。

3、晚上游了一次泳。ty真是强,自由泳连续游了300米。为了赶上他,咬牙游了150米。有一个比你游得好的朋友一起游,可以向他学习真是一件很快乐的事情。
每次游泳自己都可以体会到很多。真正的水性都是靠下水游出来的。

4、Large Hadron Collider
下了一集《国家地理》看,是关于世界上最大的强子对撞机。看了这个以后,我就不觉得计算机系统有多复杂了。