2006年06月30日

在参阅英文资料时发现这么一句

With stories, an estimate is associated with each story right up front

在dictionary.com上找到了解释

up-front or up·front (pfrnt) Informal
adj.

  1. Straightforward; frank.
  2. Paid or due in advance: up-front cash.


adv. also up front

In advance; beforehand: demanded to be paid up front for the photographs.
2006年06月13日

我们的能力之于过去的事情,称为记忆,我们的能力之于以后的事情,称为预知。

经常有一种说法,叫做改变未来,还有一种说法叫做与命运抗争。未来既然意味着还没有发生,那又有什么改变可说?与命运抗争,你知道命运了?如果你不知道,何来抗争?

如同二维坐标一样,把时间也画一个维度,0代表现在,负数代表过去,正数代表未来,只有一个-1,也只有一个-2,如同1小时以前,你做的事,是没有办法改变的一样,只有一份客观的存在,留在时间的长廊。如此想来,作为正数的未来,不仅是定数,并且同样是无法改变的 (不知道有没有一个超越时间的维度)。

我们被赋予了记忆的能力,这是一笔宝贵的财富。我们被赋予了不能预知的能力,这同样是一笔宝贵的财富。

过去看过一个童话故事,讲的是兔子们安装了窃听器在狼窝,于是,他们有能力知道狼邻居的行动计划。后来,他们的确有效避免了被狼邻居美食,但却天天生活在恐惧,猜忌,压力之下,以至于最后不得不放弃窃听。

如果未来是不能改变的,那么我们来到这个世界的确是被安排的(非自己选择)。如果我们不仅知道时间轴上的负数,并且能知道时间轴上的正数,那么我们不仅知道自己是被安排的,并且知道是被如何安排的,那样会对许多人的人生观世界观产生消极的影响,那样人类也不可能像现在这样成为自认的“高等动物”。

对未来的不可知,成为了我们存在并战斗的源泉,那不是一笔财富吗?

使用Spring框架一个很大的好处在于可以方便地对代码进行测试,涉及到数据库加Hibernate,Spring也为此提供了便利,参见Spring官方文档

官方文档中的23.2.3对测试中的事务 (Transaction) 处理作了解释,默认情况下,使用了Spring框架提供的AbstractTransactionalDataSourceSpringContextTests以及它的扩展类,将会使每一个test case测试完毕以后,数据自动回滚。这是一个很贴心的服务,理论上来说,我们的确不希望测试数据被加入数据库中,所以,测试完以后的数据库,最好能和测试以前一样。

但是,不知怎么的,我的一个测试用例每次都在数据库里留下蛛丝马迹,让人非常费解。最后定位到了问题所在,(占个位子,未完待续)。

2006年06月08日

Dr. Tancredi: Yeah, you scared? Men! Okay. Here’s what I think. I think you are scared and you wouldn’t be human if you weren’t scared in a place like this.

Michael: When I was young, I couldn’t sleep at night because I thought there was a monster in the closet. But my brother told me there wasn’t anything in the closet but fear.  And fear wasn’t real. He said it wasn’t made of anything just air. Not even that. He said you just have to face it. You just have to open that closet and the monster would disappear.

Dr. Tancredi: Your brother sounds like a smart man.

Michael: He is. In here though, you face your fear, you open that door and there’s a hundred more doors behind it. And the monsters that are hiding behind them are all real.

2006年06月04日

About the "Sience", Phoebe backed me up in "Friends"…
Well, not so convincible, but pretty funny :)

ROSS: How can you not believe in evolution?
PHOEBE: Just don’t. Look at this funky shirt!
ROSS: Pheebs, I have studied evolution my entire adult life. Ok, I can tell you, we have collected fossils from all over the world that actually show the evolution of different species, ok? You can literally see them evolving through time.
PHOEBE: Really? You can actually see it?
ROSS: You bet. In the U.S., China, Africa, all over.
PHOEBE: See, I didn’t know that.
ROSS: Well, there you go.
PHOEBE: Huh. So now, the real question is, who put those fossils there, and why?
……
ROSS: Ok, Pheebs. See how I’m making these little toys move? Opposable thumbs. Without evolution, how do you explain opposable thumbs?
PHOEBE: Maybe the overlords needed them to steer their spacecrafts.
ROSS: Please tell me you’re joking.
PHOEBE: Look, can’t we just say that you believe in something, and I don’t.
ROSS: No, no, Pheebs, we can’t, ok, because–
PHOEBE: What is this obsessive need you have to make everyone agree with you? No, what’s that all about? I think, I think maybe it’s time you put Ross under the microscope.
ROSS: Is there blood coming out of my ears?
……
ROSS: Ok, Phoebe, this is it. In this briefcase I carry actual scientific facts. A briefcase of facts, if you will. Some of these fossils are over 200 million years old.
PHOEBE: Ok, look, before you even start, I’m not denying evolution, ok, I’m just saying that it’s one of the possibilities.
ROSS: It’s the only possibility, Phoebe.
PHOEBE: Ok, Ross, could you just open your mind like this much, ok? Wasn’t there a time when the brightest minds in the world believed that the world was flat? And, up until like what, 50 years ago, you all thought the atom was the smallest thing, until you split it open, and this like, whole mess of crap came out. Now, are you telling me that you are so unbelievably arrogant that you can’t admit that there’s a teeny tiny possibility that you could be wrong about this?
ROSS: There might be, a teeny, tiny, possibility.
PHOEBE: I can’t believe you caved.
ROSS: What?
PHOEBE: You just abandoned your whole belief system. I mean, before, I didn’t agree with you, but at least I respected you. How, how, how are you going to go into work tomorrow? How, how are you going to face the other science guys? How, how are you going to face yourself?

2006年06月03日

这个世界,已经有了很系统的规则和秩序。人类凭借着自己的智慧去发现其中的部分,那些已经被发现的部分,应该就是科学。

科学是对的吗?科学是值得相信的吗?科学是真理吗?相信科学,就该反对迷信吗?

我们提倡透过现象看本质,这个本质,就是规则规律,它们组成了科学,发现了规则规律,有利于帮助我们准确分析判断还没有经历的情况或现象。但是,本质毕竟是一个无底的概念,你所发现的规律,只能比你所看到的表象,离本质更近一些而已。所以,人们可以知道鸡来自于鸡蛋,鸡蛋来自于鸡–这就是科学–但却无法知道先有蛋还是先有鸡,即使有一天真的知道了,还有一个“为什么会如此”留着。

所以,科学只是我们发现的东西,而不是我们发明的东西。既然如此,科学又有什么理由去蒙住人们的眼睛,阻碍人们去发现那些未被发现的规律呢?

迷信好像是站在科学的对立面的。那迷信是什么呢?迷信就是那些同样从现象中得来,并且发现了的一些“规律”,这些所谓的规律,由于不能被印证可以非常准确地帮助推断分析还没有经历的情况或现象,而被扣上了与科学截然相反的帽子。因为,科学本身是一丝不苟的。

所以,我们就没有必要对在教科书上的铅字图腾崇拜,那甚至可能是一个并不完美的谎言,只是你没有思考到破绽。而迷信与宗教,起码,它们解释了科学所不能解释的,也许离本质更远,但也有可能更近。

并没有否定科学的意思,只是,希望摘去那块蒙眼布。