TH 的个人资料River Side Bird照片日志列表 工具 帮助

River Side Bird

享受代码,享受咖啡,享受人生
5月10日

New born baby girl

Thank God, my second baby girl is safely birth on last week. I went through the whole delivery process. Really felt, being a mother is not easy, 9 months carrying a heavy "burden" at all the time, cannot sleep well, sit well, or sometime will feel pain. When come to delivering, another suffering again, pain...pain. At a man or husband, i cannot do anything at all, only can give moral and love support. I feel very sad and down after the delivering, just suddenly come into my mind, thinking how my mun gave birth to me without father at her side, she alone, rushing to the clinic alone when feel want to deliver. How she felt, now i roughly can feel it. Feel sorry to mun, don't even have change to say thank you and "love u" to her. Only can say in the heart. To my wife and angel, i will do my best to love them, take care of them. I think this should be the best way to thank my mun for giving birth to me.

Happy mother day to all the mun....


9月24日

Interface-Oriented Design

An implementation of an interface should obey the three laws:
• Do what its methods say it does.
• Do no harm.
• Notify its caller with meaningful errors if unable to perform its
responsibilities.
Establish a contract for each interface (either formally or informally):
• Indicate the preconditions and postconditions for each method.

1. An Interface’s Implementation Shall Do What Its Methods Says It Does
This law may seem fairly obvious. The name of a method should correspond
to the operations that the implementation actually performs.2
Conversely, an implementation should perform the operations intended
by the creator of the interface. The method should return a value or
signal an error in accordance with the explained purpose of the method.
If the purpose and meaning of a method are not unambiguously obvious
from the method’s name and its place within an interface, then
those aspects should be clearly documented.3 The documentation may
refer to interface tests, such as those described later in this chapter, to
demonstrate method meaning in a practical, usage context.
An implementation needs to honor the meaning of a return value.

2. An Interface Implementation Shall Do No Harm

Harm refers to an implementation interfering with other modules in a
program or with other programs. The user of an interface implementation
should expect that the implementation performs its services in an
efficient manner.4
In particular, an implementation should not hog resources. Resources
in this case might include time, memory, file handles, database connections,
and threads. For example, if the implementation requires
connecting to a database that has limited connections, it should disconnect
as soon as the required database operation is complete. Alter-natively, the implementation could use a shared connection and release
that connection as soon as the operation finishes.5
If an implementation uses excessive memory, then it may cause page
faults that can slow down not only the program itself but also other
programs.

3. If An Implementation Is Unable to Perform Its
Responsibilities, It Shall Notify Its Caller

An implementation should always report problems that are encountered
and that it cannot fix itself. The manner of report (e.g., the error
signal) can either be a return code or be an exception. For example, if
the implementation requires a connection to a web service (as described
in Chapter 5) and it cannot establish that connection, then it should
report the problem. If there are two or more providers of a web service,
then the implementation should try to establish a connection with each
of the providers.
• Specify the protocol—the sequence of allowable method calls.
• Optionally, spell out nonfunctional aspects such as performance
or quality of implementation.
• Create tests to check that an implementation performs according
to its contract and that it obeys the three laws.
9月13日

一个十岁孩子的心声

 主题:一个十岁孩子的心声
作者:啊随心 12:22pm 12/07/2007

{ 你做么把嗲地的vcd关掉} “啪”一声很响亮的耳光声传来。眼前突然发生的事情真叫我不敢相信,{妈咪!你打我,为什么?为什么?}

*哇*一声我哭起来了,打从我学会记忆以来,你几乎每天都不在家陪我和妈妈,爸爸,您知道吗?

爸爸,我恨你,恨你一在家就霸占我唯一的娱乐*电视节目*你知道我已经习惯没你在家的日子吗?我只习惯和妈妈在一起的日子,无论吃饭,逛街,聊天,都是妈妈与我共享罢了,你在那里呢?心中的爸爸离开我好遥远好陌生,你疏忽我,冷落妈妈,爸爸!你知道吗?

爸爸,很多时候我多希望您能够陪我和妈妈,但!你每次都有应不完的酬,唱不完的歌,比不完的赛,你每天都有千万种理由来做为借口,每当夜深人静的时候,我怕孤独,曾有几次,妈妈的房间传来声声的哭泣声,妈妈内心所受的委屈,爸爸!你知道吗?

爸爸,没你在家的日子我觉得很自由自在,我可以随意的看自己喜爱的电视节目,感觉家唯我最大,妈妈每次都躲在厨房里,故意以忙来安慰自己,每天就剩下我一人孤零零在客厅。所有的空间都属于我的,慢慢的我也习惯孤独一人的日子,造成我不喜欢爸爸您在家的日子,我恨爸爸霸占我的空间,这不是我的错,是爸爸您一手造成今天的我,是爸爸养成我孤独的性格,是爸爸培养我有了这个坏习惯,爸爸!你知道吗?

爸爸,很多时候,我们一家人难得有机会出外用餐还是跑街,我和妈妈最怕听到您的手机响起,我怕,妈妈心里比我更怕,更加多一点失望,因为,爸爸的手机铃声会使爸爸您魂不守舍,会使爸爸您坐立不安找借口丢下我和妈妈两人就离开,我每次都会偷偷看到妈妈眼眶泛起了泪水,爸爸!你知道吗?

爸爸,为什么我今天会有这样的思想呢?我很想告诉爸爸您,因为在我最需要父爱的时候,你没在我身边陪我长大,你每天只顾着您所谓的私人空间,千万个理由,但是爸爸,我觉得您好自私,今天虽然是妈妈打了我一个耳光,但!我不怪妈妈,我知道妈妈是为了能够留住爸爸在家的心才这样,我只恨爸爸您,是您是您!但!无论我多恨爸爸您,但我的心更爱爸爸您,爸爸!你知道吗?


 

6月21日

thank u

I’ve been promoted to a father of a lovely girl since couple of years ago. I received my first Father Day card from my girl! When I just opened the door after back from working, she quickly opened up her school bag and digs out a colorful card and hand over to me, wishing me healthy and happy ( some more, “don’t forgot to buy air-cream for me J ). The card is a hand-make card provided by her school teacher, the coloring done by her. The card has some wishing wordings and a big “love” in the center of the card. I will keep this card safely.

 

Thank girl girl.

6月4日

生命的流转

生命的流转
 基督教说:“信上帝得永生。”但是佛教认为,信仰佛教并非就没有生死问题,而是要人勘破生死!生死是再自然不过的事,即使是佛陀,也要“有缘佛出世,无缘佛入灭;来为众生来,去为众生去!”

    根据佛教的“十二因缘”说:有情众生由于累劫的“无明”烦恼,早作各种“行”为,因此产生业“识”。随着阿赖耶识在母体子宫里渐渐孕育成生命体,是为“明色”;名是生命体的精神部分,色则指物质部分。数月之后,生命体的眼、耳、鼻、舌、身、意六根成熟,称为“六入”;胎儿脱离母体后渐渐开始解“触”外境,并对外界的苦乐感“受”产生“爱”与不爱,进而有了执“取”所爱的行动,结果由于身、口、意行为的造作,又种下了后“有”的生命体,有了“生”终将难免“老死”,“死”又是另一期生命的开始。所以佛教说:生命的流转,是无始无终的“生死轮回”。

    道元禅师说:“若生死中有佛,便能无生死。若知生死即涅槃之理,便能无可厌生死,亦能无可愿涅槃,自是超脱生死。”如果我们能过认清这个道理,断惑证真,觉悟生死同于涅槃的道理,自然不会受生死迷惑,而能安住于超越生死的藩篱,如此,纵死又有何惧呢?(

 
May 13  
第 1 张,共 1 张
尚未添加列表。