2009年1月31日星期六

blogger daily 01/31/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月28日星期三

blogger daily 01/28/2009

  • tags: transaction

  • tags: no_tag

      • 把non-transactional resource和transactional resource放在一个事务中,就是把对non-transactional resource的操作放在最后。
        很土的一个方式,原来也是这么做的,只是没总结出来。 - post by lithium
    • By putting the interaction with the non-transactional
      resource as the final action in the transaction, we limit the chance of error
      occurring after interaction with the non-transactional resource
    • in a pseudo-transaction that has any number of interactions
      with transactional resources and a single interaction with a non-transactional
      resource, make the non-transactional interaction the final activity in the
      pseudo-transaction.
    • To achieve a pseudo transaction, we encapsulate each non-transactional interaction
      into a Command object. In each Command object, we implement a rollback method,
      which is called if a rollback of the pseudo-transaction occurs sometime after
      the Command has been executed.

Posted from Diigo. The rest of my favorite links are here.

2009年1月27日星期二

创业不嫌晚


刘伯温,名刘基,字伯温,明朝开国元勋,上通天文,下晓地理,能掐会算,前知五百年,后知五百载,被后人比作为诸葛亮。
这么大的一位能人,最初为元朝效力25年,宦海沉浮四起四落,48岁弃官回家乡隐居,50岁被朱元璋盛情邀请出山,进献"十八策",论天下安危,在创建明王朝的过程中,立下了汗马功劳。
刘伯温50岁才追随朱元璋创业,所以,创业不嫌晚。

blogger daily 01/27/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月26日星期一

牛年到了

一年时间可真快呀,完全没有征兆就过去了。
去年的大年三十在干嘛,在搜陈冠希的照片,呵呵,那时还在广州,天河公园旁边租住的房子里。今天呢,已经身在杭州。鞭炮声渐渐的淡去了,我却不想入睡。我太不想让这个时刻就这么过去了!生活,就像从手边流过的水,你怎么努力也阻挡不了它,也抓不住他,眼睁睁的看着它流过。我特别的怀旧,但却没时间回忆过去,只是一路拼命向前奔跑,好像在追逐我的目标,但那真的是我想要的吗。

也许在特别的日子里看着时间的流过,触发了我特别的感伤,其实每一天不是一样在过。打起精神来,还有很多有意义的事要做。放下理想,那一瞬间可能会很轻松,但我却不知道该如何前行。没办法,有抱负的中年。

2009年1月20日星期二

blogger daily 01/20/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月18日星期日

blogger daily 01/18/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月17日星期六

blogger daily 01/17/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月16日星期五

blogger daily 01/16/2009


Posted from Diigo. The rest of my favorite links are here.

2009年1月1日星期四

blogger daily 01/01/2009

  • tags: concurrency

    • 阿姆达定律讲的是这么一件事:一个程序存在两部分,
      只能串行计算的部分 S,和能够并行计算地部分 P。
      两部分之和是整个程序,因此 S+P=1。
      这个程序如果在一个具有N个核心的处理器上运行,
      那么和它在一个单核处理器上运行相比,速度的提升是 1/(S
      + P/N)。当 N 趋近于无穷大时(即假设我们有无穷多个核心),
      速度提升的上限是 1/S,
      即速度提升的上限取决于程序不能被并行计算的部分。

Posted from Diigo. The rest of my favorite links are here.