Liu 的个人资料唯有仰望是真实的照片日志列表更多 工具 帮助

日志


2007/3/30

风味绝佳观后感

这部电影的名字很奇怪,似乎是片中那盒糖上的字迹"滋养丰富,风味绝佳", 片中的标题当然日文我看不懂,它的注释英文是What Little Girls Are Made of,而网上搜到的别名也叫Sugar&Spice, 是片中Grandma告诉至郎的话。

看到最后,觉得编剧一定是有过同样的经历,一切都是这么的相似,就像6年前的我,至郎一样的年龄,一样飘雪的冬天,一样美丽的女生,一样的白信封,一样的骑着单车疯了般的哭,不一样的仅是我当时撞入的是民主楼前的灌木丛。

可悲的是我现在怎么努力脑子里也没有她清晰的样子了,可悲?可怜?可恨?可耻?...

2007/3/26

quotes from The Cathedral and the Bazaar

1. Every good work of software starts by scratching a developer's personal itch.

2. Good programmers know what to write. Great ones know what to rewrite (and reuse).

3. "Plan to throw one away; you will, anyhow."
-- Fred Brooks, "The Mythical Man-Month", Chapter 11

4. If you have the right attitude, interesting problems will find you.

5. When you lose interest in a program, your last duty to it is to hand it off to a competent successor.

6. Treating your users as co-developers is your least-hassle route to rapid code improvement and effective debugging.

7. Release early. Release often. And listen to your customers.

8. Given a large enough beta-tester and co-developer base, almost everyproblem will be characterized quickly and the fix obvious to someone.

9. Smart data structures and dumb code works a lot better than the other way around.

10. If you treat your beta-testers as if they're your most valuable resource, they will respond by becoming your most valuable resource.

11. The next best thing to having good ideas is recognizing good ideasfrom your users. Sometimes the latter is better.

12. Often, the most striking and innovative solutions come from realizing that your concept of the problem was wrong.

13. "Perfection (in design) is achieved not when there is nothing more to add, but rather when there is nothing more to take away."

14. Any tool should be useful in the expected way, but a truly great tool lends itself to uses you never expected.

15. When writing gateway software of any kind, take pains to disturb the data stream as little as possible -- and *never* throw away information unless the recipient forces you to!

16. When your language is nowhere near Turing-complete, syntactic sugar can be your friend.

17. A security system is only as secure as its secret. Beware of pseudo-secrets.

18. To solve an interesting problem, start by finding a problem that is interesting to you.

19. Provided the development coordinator has a medium at least as good as the Internet, and knows how to lead without coercion, many heads are inevitably better than one.

昌平盲人岛上没讲完的joke

Marketing Concepts http://raymondzhou.yculblog.com/post.4107611578.html
 You see a gorgeous girl at a party. You go up to her and say: "I am very
 rich. Marry me!"
 - That's Direct Marketing.
 You're at a party with a bunch of friends and see a gorgeous girl. One
 of your friends goes up to her and pointing at you says: "He's very
 rich. Marry him."
 - That's Advertising.
 You see a gorgeous girl at a party. You go up to her and get her
 telephone number. The next day, you call and say: "Hi, I'm very rich.
 Marry me."
 - That's Telemarketing.
 You're at a party and see a gorgeous girl. You get up and straighten
 your tie, you walk up to her and pour her a drink, you open the door (of
 the car) for her, pick up her bag after she drops it, offer her ride and
 then say: "By the way, I'm rich. Will you marry me?"
 - That's Public Relations.
 You're at a party and see gorgeous girl. She walks up to you and says:
 "You are very rich! Can you marry me?"
 - That's Brand Recognition.
 You see a gorgeous girl at a party. You go up to her and say: "I am very
 rich. Marry me!" She gives you a nice hard slap on your face.
 - That's Customer Feedback.
 You see a gorgeous girl at a party. You go up to her and say: "I am very
 rich. Marry me!" And she introduces you to her husband.
 - That's demand and supply gap.

 You see a gorgeous girl at a party. You go up to her and before you say
 anything, another person come and tell her: "I'm rich. Will you marry
 me?" and she goes with him.
 - That's competition eating into your market share.
 You see a gorgeous girl at a party. You go up to her and before you say:
 "I'm rich, Marry me!" your wife arrives.
 - That's restriction for entering new markets.

2007/3/23

:P, 被点名了

被Bethany点到了, :P, 完全不适合我的问题吗,我是理论实践两个一穷一白,瀑布汗啊......
 
遊戲介紹:
這是博客裏流行的擊鼓傳花遊戲,傳給誰誰就得接著,否則就會挨罰,請認真對待
,不要怕暴露私隱。 
1.被點到名字得要在自己的博客裏寫下自己的答案,然後去掉一個你最不喜欢的问
题再加上一個你的問題(这条规则原为“然後去掉第一個問題再加上一個問題”,够无
聊吧),仍然組成4個問題,傳給其他8個人,列出其他8個需要回答問題的人的名字,
還要到這8個人的博客裏留言通知對方——你被點名了,被點名者不得拒絕回答問題,
完成遊戲的人將會永遠得到大家的祝福。  
2.這8個人要在自己的博客裏注明是從哪裏接到的,並且再想一個問題傳給其他8個
人,讓遊戲繼續下去,不得回傳。被點到名字的人將會得到大家的祝福,並且所有美好
的願望都會在不久的將來實現。
----------------------------------------------------------------------------------------------------------
游戏开始

1.Emily提的问题:相信真正的爱情只有3个月的理论吗?
真正的爱情是什么啊,谁给个实现算法和测试方法先

2.Qwf的问题是:爱,究竟是不是一种责任呢?亦或只是如很多人所说的,更多的是一
种感觉??
感觉是感性的东东,到承担责任就很理性了,很多人说,两人相爱了,是动了感情,两人
分了,是因为理性了, 我觉得蛮有道理。
3.michael的问题:上一次哭是什么时候…为什么…
05年春节,我哥哥结婚,自己当时刚退学,一个人寒假跑到天津去给有钱人家淘气小孩做
家教, 我哥打电话来要我回去,我说我回不去了,当时想到很欠我哥的,就哭了

4.Bethany的问题:相信狂追不舍产生的爱情吗?
参见我前面一片关于暗恋的,我相信只要努力,就会有回报,但是爱情除外吧...
但是从博弈的角度来分析这个问题,狂追不舍将两个人都逼到了一个很尴尬的地步。
 
能不能问为什么都是感情问题啊?OK, 不搞笑了,还是沿着主题来提问吧
5.我的问题:爱上你爱的人那一刻是什么样子的呢? (暗恋也算,暗恋也算哦:)
 
现在开始点名:
cici, color, cryingcat, jingfx, kolafish, litto, totfly, xxmo
真是困难,mmd 还得一个一个通知吗?
我对不起大家……
2007/3/21

google /*code search*/ ~~ not that new news

notice the examples below, hoho..., if you understand all those, congratulations!!!, i think you should get out more to meet some girls:)

Google Code Search

Advanced Code Search

Search public source code.

Syntax and Examples (more about regexp syntax)

regexp
Search for a regular expression
go{2}gle hello,\ world ^int printk

"exact string"
Search for exact string
"compiler happy"

file:regexp
Search only in files or directories matching regexp
file:\.js$ XMLHttpRequest file:include/ ioctl
file:/usr/sys/ken/slp.c "You are not expected to understand this."

package:regexp
Search packages with names matching regexp.
(A package's name is its URL or CVS server information.)
package:perl Frodo package:linux-2.6 int\ printk

lang:regexp
Search only for programs written in languages matching regexp
lang:lisp xml lang:"c++" sprintf.*%s

license:regexp
Search only for files with licenses matching regexp.
license:bsd int\ printf -license:gpl heapsort

Google Home - Google Labs - Discuss - Terms of Service - Help
©2007 Google

John W.Backus, 82, Fortran Developer, Dies(zz for nytimes)

machine language to Fortran, Fortran to Functional Programming, notice the pattern, he wanted to be more abstract, more to the problem space, and he cares a lot of code readability...

 http://www.nytimes.com/2007/03/19/obituaries/20cnd-backus.html

March 19, 2007

John W. Backus, 82, Fortran Developer, Dies

By STEVE LOHR

John W. Backus, who assembled and led the I.B.M. team that created Fortran, the first widely used programming language, which helped open the door to modern computing, died on Saturday at his home in Ashland, Ore. He was 82.

His daughter Karen Backus announced the death, saying the family did not know the cause, other than age.

Fortran, released in 1957, was “the turning point” in computer software, much as the microprocessor was a giant step forward in hardware, according to J. A. N. Lee, a leading computer historian.

Fortran changed the terms of communication between humans and computers, moving up a level to a language that was more comprehensible by humans. So Fortran, in computing vernacular, is considered the first successful higher-level language.

Mr. Backus and his youthful team, then all in their 20s and 30s, devised a programming language that resembled a combination of English shorthand and algebra. Fortran, short for Formula Translator, was very similar to the algebraic formulas that scientists and engineers used in their daily work. With some training, they were no longer dependent on a programming priesthood to translate their science and engineering problems into a language a computer would understand.

In an interview several years ago, Ken Thompson, who developed the Unix operating system at Bell Labs in 1969, observed that “95 percent of the people who programmed in the early years would never have done it without Fortran.”

He added: “It was a massive step.”

Fortran was also extremely efficient, running as fast as programs painstakingly hand-coded by the programming elite, who worked in arcane machine languages. This was a feat considered impossible before Fortran. It was achieved by the masterful design of the Fortran compiler, a program that captures the human intent of a program and recasts it in a way that a computer can process.

In the Fortran project, Mr. Backus tackled two fundamental problems in computing — how to make programming easier for humans, and how to structure the underlying code to make that possible. Mr. Backus continued to work on those challenges for much of his career, and he encouraged others as well.

“His contribution was immense, and it influenced the work of many, including me,” Frances Allen, a retired research fellow at I.B.M., said yesterday.

Mr. Backus was a bit of a maverick even as a teenager. He grew up in an affluent family in Wilmington, Del., the son of a stockbroker. He had a complicated, difficult relationship with his family, and he was a wayward student.

In a series of interviews in 2000 and 2001 in San Francisco, where he lived at the time, Mr. Backus recalled that his family had sent him to an exclusive private high school, the Hill School in Pennsylvania.

“The delight of that place was all the rules you could break,” he recalled.

After flunking out of the University of Virginia, Mr. Backus was drafted in 1943. But his scores on Army aptitude tests were so high that he was dispatched on government-financed programs to three universities, with his studies ranging from engineering to medicine.

After the war, Mr. Backus found his footing as a student at Columbia University and pursued an interest in mathematics, receiving his master’s degree in 1950. Shortly before he graduated, Mr. Backus wandered by the I.B.M. headquarters on Madison Avenue in New York, where one of its room-size electronic calculators was on display.

When a tour guide inquired, Mr. Backus mentioned that he was a graduate student in math; he was whisked upstairs and asked a series of questions Mr. Backus described as math “brain teasers.” It was an informal oral exam, with no recorded score.

He was hired on the spot. As what? “As a programmer,” Mr. Backus replied, shrugging. “That was the way it was done in those days.”

Back then, there was no field of computer science, no courses or schools. The first written reference to “software” as a computer term, as something distinct from hardware, did not come until 1958.

In 1953, frustrated by his experience of “hand-to-hand combat with the machine,” Mr. Backus was eager to somehow simplify programming. He wrote a brief note to his superior, asking to be allowed to head a research project with that goal. “I figured there had to be a better way,” he said.

Mr. Backus got approval and began hiring, one by one, until the team reached 10. It was an eclectic bunch that included a crystallographer, a cryptographer, a chess wizard, an employee on loan from United Aircraft, a researcher from the Massachusetts Institute of Technology and a young woman who joined the project straight out of Vassar College.

“They took anyone who seemed to have an aptitude for problem-solving skills — bridge players, chess players, even women,” Lois Haibt, the Vassar graduate, recalled in an interview in 2000.

Mr. Backus, colleagues said, managed the research team with a light hand. The hours were long but informal. Snowball fights relieved lengthy days of work in winter. I.B.M. had a system of rigid yearly performance reviews, which Mr. Backus deemed ill-suited for his programmers, so he ignored it. “We were the hackers of those days,” Richard Goldberg, a member of the Fortran team, recalled in an interview in 2000.

After Fortran, Mr. Backus developed, with Peter Naur, a Danish computer scientist, a notation for describing the structure of programming languages, much like grammar for natural languages. It became known as Backus-Naur form.

Later, Mr. Backus worked for years with a group at I.B.M. in an area called functional programming. The notion, Mr. Backus said, was to develop a system of programming that would focus more on describing the problem a person wanted the computer to solve and less on giving the computer step-by-step instructions.

“That field owes a lot to John Backus and his early efforts to promote it,” said Alex Aiken, a former researcher at I.B.M. who is now a professor at Stanford University.

In addition to his daughter Karen, of New York, Mr. Backus is survived by another daughter, Paula Backus, of Ashland, Ore.; and a brother, Cecil Backus, of Easton, Md.

His second wife, Barbara Stannard, died in 2004. His first marriage, to Marjorie Jamison, ended in divorce.

It was Mr. Backus who set the tone for the Fortran team. Yet if the style was informal, the work was intense, a four-year venture with no guarantee of success and many small setbacks along the way.

Innovation, Mr. Backus said, was a constant process of trial and error.

“You need the willingness to fail all the time,” he said. “You have to generate many ideas and then you have to work very hard only to discover that they don’t work. And you keep doing that over and over until you find one that does work.”

Apache MPM event doc

这个东东满有趣,贴出来刺激自己好好看看
Description:
An experimental variant of the standard worker MPM

Status:
MPM

Module Identifier:
mpm_event_module

Source File:
event.c

Summary
Warning

This MPM is experimental, so it may or may not work as expected.

The event Multi-Processing Module (MPM) is designed to allow more requests to be served simultaneously by passing off some processing work to supporting threads, freeing up the main threads to work on new requests. It is based on the worker MPM, which implements a hybrid multi-process multi-threaded server. Run-time configuration directives are identical to those provided by worker.

To use the event MPM, add --with-mpm=event to the configure script's arguments when building the httpd.

How it Works

This MPM tries to fix the 'keep alive problem' in HTTP. After a client completes the first request, the client can keep the connection open, and send further requests using the same socket. This can save signifigant overhead in creating TCP connections. However, Apache traditionally keeps an entire child process/thread waiting for data from the client, which brings its own disadvantages. To solve this problem, this MPM uses a dedicated thread to handle both the Listening sockets, and all sockets that are in a Keep Alive state.

The MPM assumes that the underlying apr_pollset implementation is reasonably threadsafe. This enables the MPM to avoid excessive high level locking, or having to wake up the listener thread in order to send it a keep-alive socket. This is currently only compatible with KQueue and EPoll.

Requirements

This MPM depends on APR's atomic compare-and-swap operations for thread synchronization. If you are compiling for an x86 target and you don't need to support 386s, or you are compiling for a SPARC and you don't need to run on pre-UltraSPARC chips, add --enable-nonportable-atomics=yes to the configure script's arguments. This will cause APR to implement atomic operations using efficient opcodes not available in older CPUs.

This MPM does not perform well on older platforms which lack good threading, but the requirement for EPoll or KQueue makes this moot.

  • To use this MPM on FreeBSD, FreeBSD 5.3 or higher is recommended. However, it is possible to run this MPM on FreeBSD 5.2.1, if you use libkse (see man libmap.conf).
  • For NetBSD, at least version 2.0 is recommended.
  • For Linux, a 2.6 kernel is recommended. It is also necessary to ensure that your version of glibc has been compiled with support for EPoll.

Issues

At present, this MPM is incompatible with mod_ssl, and other input filters.

2007/3/19

用心去发现美丽

看到一个有趣的blog, http://sherrymylife.spaces.live.com

呵呵,开始网速慢图片没下下来,看半天不知道是怎么回事,很有趣的照片,要向她学习,用相机更是用心记住一点点的美丽

木兰词 拟古决绝词柬友

这首诗怪怪的......

人生若只如初见,何事西风悲画扇?等闲变却故人心,却道故人心易变。
骊山语罢清宵半,夜雨霖铃终不怨。何如薄幸锦衣儿,比翼连枝当日愿。 
                                                                   -----清.纳兰性德

2007/3/14

一本书和阅读代码(zz)

http://blog.csdn.net/g9yuayon/archive/2007/03/13/1...

g9老大这篇文章不错,好好翻番Grady Booch的blog先,然后满心欢喜期待这本Beautiful Code: Leading Programmers Explain How They Think, hoho...

 

很难想象钢琴家不用聆听大师的作品;诗人不用揣摩传世的经典;画家不用体会前辈的佳作;拳手不用参详高人的示范。那我们怎么能想象程序员不用仔细学习性感的代码?可惜的是,美妙的代码往往有如像Shrek,乍一看也就是面目丑陋的庞然大物。没有Fionna的聪慧,我们也难欣赏Shrek洋葱一般层次丰富的心灵。再说,代码一旦写成,我们看到的也就是一段神来之笔。再难体会到作者在难题前内心有如困兽般地冲撞,面临多种选择时精神的激荡。我们也再难追溯每个数据结构背后的理念,每段算法成型过程中每一步的由来(顺便说一句。这也是为什么Knuth的书引人入胜的原因。每段算法怎么从无到有,自粗而细,由慢转快,通通脉络清晰)。就算是理解代码本身,想来每人的体会也有深有浅。不知道多少老大因为这些困难没能体会到阅读代码时心头肿胀(乱用冯唐语)的快感?除非,除非有高手引领我们入门,给我们细述经典代码如何玲珑浮屠,如何眼波婉转。

IBM的Grady Booch也强力推荐程序员大量阅读代码,认为这是从新手到高手的必要手段。如果喜欢软件开发老大还没有订阅Grady Booch的博客的话,现在是时候了。G老大的私人项目Architecture Handbook想必更是每位对软件架构有兴趣的老大的必读材料吧?他在这本公开的手册将归类整理历史上各式架构。虽然这些工作开始还不到四年,但上面已经有不少高质量的资料。比如以前提到过的Eclipse架构考古。也许用G老大自己的话最能雄辩地道出软件考古的意义:经典科学通过在定量观察和理论构建间曼舞取得进展。前者细致而刻意,后者富于创新且能经受检验。计算机科学充满了经验的观察和理论的构造,但软件世界里,我们往往把所有时间用于搭建实物,却疏于科学研究。我们有自己关于流程和工具的理论,但它们大部分都基于坊间传闻和个人经验,而不是基于反映了可靠经验研究的确凿且中立的数据(classical science advances via the dance between quantitative observation and theoretical construction." The former is deliberate and intentional; the latter is creative and testable. Computer science is full of empirical observation and the construction of theories, but in the world of software we often spend all of time building artifacts and not enough time doing science. We have our share of theories, about process and tools, but much of that work is based on anecdote and personal experience, not the hard, dispassionate data that reflects good empirical work)

G老大的架构手册有一栏read list,目前推荐的两个条目都是代码阅读。一是C++的STL(设计源代码)。二是qmail(设计源代码)。今年的SIGCSE年会上,G老大做了主题演讲。不,我没去。我也是看别人的博客写的,现在就等Podcast出来了。里面提到计算机系不仅要交给学生知识,也要让学生领会“激情,美丽,快乐,和敬畏”,真是深得我心啊。在演讲里,G老大频繁用“正确和高尚”来描述计算机业界众人的努力,说从事软硬件研发的工作既是特权也是义务。它是特权,因为我们从根本上多方面深刻地改变这个世界。基于同样的原因,这也是我们的义务。我们应当牢记这点,并让我们的学生同样明白。不知道G老大和蜘蛛人有什么瓜葛。

又跑题了。还是说回来。

大家都熟悉的Code Reading: The Open Source Perspective是本不错的入门书。不过作者着眼于零散的代码,注重局部细节的实现(比如第三章第四章),很少分析一段完整程序:这段程序的动机是什么?解决了什么好玩儿的问题?哪些地方体现了作者的天才?代码的设计理念是什么?面临选择,怎么做出取舍。。。

令人欣慰的是,人见人耐的老牌geek,资深出版人,Tim O’Reilly终于按耐不住出手了。今年6月,O’Reilly将推出新书Beautiful Code: Leading Programmers Explain How They Think。瞧这书名取的,多诱人啊。“Explain How They Think”,啧啧,这不引诱俺体验一下当Craig Schwartz的经验么?

再看看目录,禁不住口水滴滴答答地流哈。Enough showed. Pre-ordered.

  1. Greg Wilson: Foreword
  2. Brian Kernighan: Beautiful Brevity: Rob Pike’s Regular Expression Matcher
  3. Karl Fogel: Subversion’s Delta Editor: Interface as Ontology
  4. Jon Bentley: The Most Beautiful Code I Never Wrote
  5. Tim Bray: Finding Things
  6. Elliotte Rusty Harold: Correct, Beautiful, Fast (In That Order): Lessons From Designing XML Validators
  7. Michael Feathers: The Framework for Integrated Test: Beauty through Fragility
  8. Alberto Savoia: Beautiful Tests
  9. Charles Petzold: On-the-Fly Code Generation for Image Processing
  10. Douglas Crockford: Top Down Operator Precedence
  11. Henry Warren: Accelerating Population Count
  12. Ashish Gulhati: Secure Communication: The Technology of Freedom
  13. Lincoln Stein: Growing Beautiful Code in BioPerl
  14. Jim Kent: The Design of the Gene Sorter
  15. Jack Dongarra and Piotr Luszczek: How Elegant Code Evolves With Hardware: The Case Of Gaussian Elimination
  16. Adam Kolawa: Beautiful Numerics
  17. Greg Kroah-Hartman: The Linux Kernel Driver Model
  18. Diomidis Spinellis: Another Level of Indirection
  19. Andrew Kuchling: An Examination of Python’s Dictionary Implementation
  20. Travis Oliphant: Multi-Dimensional Iterators in NumPy
  21. Ronald Mak: A Highly Reliable Enterprise System for NASA’s Mars Rover Mission
  22. Rogerio Atem de Carvalho and Rafael Monnerat: ERP5: Designing for Maximum Adaptability
  23. Bryan Cantrill: A Spoonful of Sewage
  24. Jeff Dean and Sanjay Ghemawat: Distributed Programming with MapReduce
  25. Simon Peyton Jones: Beautiful Concurrency
  26. Kent Dybvig: Syntactic Abstraction: The syntax-case expander
  27. William Otte and Doug Schmidt: Object-Oriented Patterns and a Framework for Networked Software
  28. Andrew Patzer: Integrating Business Partners the RESTful Way
  29. Andreas Zeller: Beautiful Debugging
  30. Yukihiro Matsumoto: Code That’s Like an Essay
  31. Arun Mehta: Designing Interfaces Under Extreme Constraints: the Stephen Hawking Editor
  32. TV Raman: Emacspeak: The Complete Audio Desktop
  33. Christopher Seiwald and Laura Wingerd: Code in Motion
  34. Brian Hayes: Writing Programs for “The Book”
  35. Andy Oram: Afterword

2007/3/12

暗恋是什么

就是在痛苦的煎熬中,期待着有一天那个人也会同样爱上我,或者总是在很久之后,发现自己不是那么care了,可怜,不是吗?
还是自己blog的题目那句话,唯有仰望是真实的...

2007/3/6

Importance of Statistics(zz)

March 03, 2007
swilvel.com这个网站超级赞,非常有想法,两人半年写的,是ruby on rails哦.

Sad_bean_counter

"How sad. All governments find it tempting to tweak the numbers they are judged by. But in doing this they deprive themselves of the best guide to future policymaking. And they also create a self-defeating spiral of distrust in which even the numbers they have not tweaked are disbelieved."

From The Economist print edition
March 1st 2007, p. 18
The importance of statistics

Lies, damned lies
Also available online here with a subscription.

BTW, at Swivel we're anti-government-number-tweaking.

2007/3/4

[转]缠绵悱恻的中国情诗名句排行榜

1柳永 凤栖梧 衣带渐宽终不悔,为伊消得人憔悴。
2佚名 诗经·邶风·击鼓死生契阔,与子成说。执子之手,与子偕老。
3秦观 鹊桥仙 两情若是久长时,又岂在朝朝暮暮。
4李白 三五七言 相思相见知何日?此时此夜难为情。
5佚名 凤求凰·琴歌 有美人兮,见之不忘,一日不见兮,思之如狂。
6郑愁予 赋别 这次我离开你,是风,是雨,是夜晚;你笑了笑,我摆一摆手,一条寂寞的路便展向两头了。
7李白 三五七言 入我相思门,知我相思苦,长相思兮长相忆,短相思兮无穷极。
8元稹 离思五首其四 曾经沧海难为水,除却巫山不是云。
9曹植 明月上高楼 君若扬路尘,妾若浊水泥,浮沈各异势,会合何时谐?
10纳兰性德虞美人 凄凉别後两应同,最是不胜清怨月明中。
11张籍 节妇吟 还君明珠双泪垂,恨不相逢未嫁时。
12席慕蓉 一棵开花的树 如何让你遇见我,在我最美丽的时刻为这,我已在佛前求了五百年,求他让我们结一段尘缘。
13陈衡恪 题春绮遗像 嗟余只影系人间,如何同生不同死?
14梁启超 台湾竹枝词 相思树底说相思,思郎恨郎郎不知。
15徐干 室思 自君之出矣,明镜暗不治。思君如流水,何有穷已时。
16司马光 西江月 相见争如不见,有情何似无情。
17龚自珍 己亥杂诗 落红不是无情物,化作春泥更护花。
18张先 千秋岁 天不老,情难绝。心似双丝网,中有千千结。
19黄景仁 绮怀诗二首其一 似此星辰非昨夜,为谁风露立中宵。
20李商隐 无题六首其三 直道相思了无益,未妨惆怅是清狂。
21李商隐 暮秋独游曲江 深知身在情长在,怅望江头江水声。
22纳兰性德摊破浣溪沙 人到情多情转薄,而今真个不多情。
23李商隐 锦瑟 此情可待成追忆,只是当时已惘然。
24张仲素 燕子楼 相思一夜情多少,地角天涯未是长。
25元好问 摸鱼儿二首其一 问世间,情是何物,直教生死相许。
26李商隐 无题 身无彩凤双飞翼,心有灵犀一点通。
27张可久 塞鸿秋 兽炉沈水烟,翠沼残花片,一行行写入相思传。
28徐再思 折桂令 平生不会相思,才会相思,便害相思。
29李冠 蝶恋花 一寸相思千万绪,人间没箇安排处。
30苏轼 江城子 十年生死两茫茫,不思量,自难忘,千里孤坟,无处话凄凉。
31佚名 诗经·唐风·绸缪今夕何夕,见此良人。
32白居易 长恨歌 天长地久有时尽,此恨绵绵无绝期。
33白居易 长恨歌 在天愿作比翼鸟,在地愿为连理枝。
34文廷式 蝶恋花 重叠泪痕缄锦字,人生只有情难死。
35曹雪芹 枉凝眉 一个是阆苑仙葩,一个是美玉无瑕。若说没奇缘,今生偏又遇著他;若说有奇缘,如何心事终虚话?
36李商隐 无题 春蚕到死丝方尽,蜡炬成灰泪始乾。
37况周颐 减字浣溪沙 他生莫作有情痴,人间无地著相思。
38欧阳修 玉楼春 尊前拟把归期说,未语春容先惨咽。
39佚名 诗经·周南·关雎关关雎鸠,在河之洲。窈宨淑女,君子好逑。
40欧阳修 玉楼春 人生自是有情痴,此恨不关风与月。
41柳永 雨霖铃 此去经年,应是良辰好景虚设。便纵有,千种风情,更与何人说。
42李之仪 卜算子 只愿君心似我心,定不负相思意。
43晏几道 临江仙二首其二 落花人独立,微雨燕双飞。
44陈陶 陇西行 可怜无定河边骨,犹是春闺梦裏人。
45辛弃疾 摸鱼儿 千金纵买相如赋,脉脉此情谁诉。
46温庭筠 更漏子三首其三 梧桐树,三更雨,不道离情正苦。一叶叶,一声声,空阶滴到明。
47苏武 结发为夫妻 结发为夫妻,恩爱两不疑。
48聂胜琼 鹧鸪天 寻好梦,梦难成。况谁知我此时情。枕前泪共帘前雨,隔箇窗儿滴到明。
49柳永 昼夜乐 一场寂寞凭谁诉。算前言,总轻负。
50李白 长相思二首其一 天长路远魂飞苦,梦魂不到关山难,长相思,摧心肝。
51席慕蓉 印记 不要因为也许会改变,就不肯说那句美丽的誓言,不要因为也许会分离,就不敢求一次倾心的相遇。
52范成大 车遥遥篇 愿我如星君如月,夜夜流光相皎洁。
53戴叔伦 相思曲 鱼沈雁杳天涯路,始信人间别离苦。
54柳永 雨霖铃 执手相看泪眼,竟无语凝噎。
55元稹 遣悲怀三首其二 诚知此恨人人有,贫贱夫妻百事哀。
56顾敻 诉衷情 换我心,为你心,始知相忆深。
57鱼玄机 江陵愁望有寄 忆君心似西江水,日夜东流无歇时。
58李商隐 无题六首其六 春心莫共花争发,一寸相思一寸灰。
59乐婉 卜算子 相思似海深,旧事如天远。
60白居易 浪淘沙 相恨不如潮有信,相思始觉海非深。
61温庭筠 杨柳枝 玲珑骰子安红豆,入骨相思知不知?
62邵瑞彭 蝶恋花 忍把千金酬一笑?毕竟相思,不似相逢好。
63晏殊 玉楼春 天涯地角有穷时,只有相思无尽处。
64曹雪芹 终身误 都道是金玉良缘,俺只念木石前盟。空对著,山中高士晶莹雪;终不忘,世外仙姝寂寞林。
65周邦彦 玉楼春 人如风後入江云,情似雨馀黏地絮。
66曹雪芹 红豆词 滴不尽相思血泪抛红豆,开不完春柳春花满画楼。
67欧阳修 蝶恋花二首其一 泪眼问花花不语,乱红飞过秋千去。
68冯小青 怨 瘦影自怜秋水照,卿须怜我我怜卿。
69朱彝尊 高阳台 锺情怕到相思路。盼长堤,草尽红心。动愁吟,碧落黄泉,两处难寻。
70贺铸 横塘路 若问闲情都几许?一川烟草,满城风絮,梅子黄时雨。
71张泌 寄人 多情只有春庭月,犹为离人照落花。
72刘禹锡 竹枝词四首其二 花红易衰似郎意,水流无限似侬愁。
73晏殊 山亭柳·赠歌者 若有知音见采,不辞遍唱阳春。
74范仲淹 苏幕遮 明月楼高休独倚,酒入愁肠,化作相思泪。
75陈叔达 自君之出矣 思君如明烛,煎心且衔泪。
76苏武 结发为夫妻 生当复来归,死当长相思。
77陈蓬姐 寄外二首其二 休言半纸无多重,万斛离愁尽耐担。
78朱彝尊 鸳鸯湖棹歌 妾似胥山长在眼,郎如石佛本无心。
79韦庄 女冠子二首其一 不知魂已断,空有梦相随。除却天边月,没人知。
80佚名 涉江采芙蓉 同心而离居,忧伤以终老。
81秦观 八六子 夜月一帘幽梦,春风十里柔情。
82晏几道 鹧鸪天三首其一 从别後,忆相逢,几回魂梦与君同。
83柳永 雨霖铃 多情自古伤离别。更那堪,冷落清秋节。
84晏殊 玉楼春 无情不似多情苦,一寸还成千万缕。
85元稹 遣悲怀三首其三 唯将终夜长开眼,报答平生未展眉。
86韦庄 应天长 别来半岁音书绝,一寸离肠千万结。
87卢仝 有所思 相思一夜梅花发,忽到窗前疑是君。
88卢仝 楼上女儿曲 直缘感君恩爱一回顾,使我双泪长珊珊。
89晏几道 鹧鸪天三首其二 相思本是无凭语,莫向花牋费泪行。
90欧阳修 踏莎行 离愁渐远渐无穷,迢迢不断如春水。
91辛弃疾 鹧鸪天 若教眼底无离恨,不信人间有白头。
92曹雪芹 红楼梦引子 开辟鸿蒙,谁为情种?都只为风月情浓。
93晏殊 鹊踏枝 明月不谙离恨苦,斜光到晓穿朱户。
94白居易 长恨歌 临别殷勤重寄词,词中有誓两心知。
95陈端生 寄外 泪纵能乾终有迹,语多难寄反无词。
96苏曼殊 本事诗 还卿一钵无情泪,恨不相逢未剃时。
97温庭筠 南歌子四首其二 终日两相思,为君憔悴尽,百花时。
98晏殊 鹊踏枝 欲寄彩笺兼尺素,山长水阔知何处。
99李煜 清平乐 离恨却如春草,更行更远还生。
100晏殊 清平乐二首其二 鸿雁在云鱼在水,惆怅此情难寄.

注:很是奇怪,全部都是悲情的诗句。后来想通了,当享受爱情的时候,诗人们是没有时间写诗的;只有没有爱情了,才开始用文字来宣泄自己的情绪,所以都是悲情的诗句了。(同事原创的注, 超级强:)