Tony's profileThinking The WayPhotosBlogLists Tools Help

Blog


    2/27/2009

    2038年问题( New Y2000 Issue)

    在计算机应用上,2038年问题可能会导致某些软件在2038年无法正常工作。所有使用POSIX时间表示时间的程序都将受其影响,因为它们以自1970年1月1日经过的秒数(忽略闰秒)来表示时间。这种时间表示法在类Unix(Unix-like)操作系统上是一个标准,并会影响以其C编程语言开发给其他大部份操作系统使用的软件。在大部份的32位操作系统上,此「time_t」数据模式使用一个有正負號的32位元整數(signed int32)存储计算的秒数。依照此「time_t」标准,在此格式能被表示的最后时间是2038年1月19日03:14:07,星期二(UTC)。超过此一瞬间,时间将会被掩盖(wrap around)且在内部被表示为一个负数,并造成程序无法工作,因为它们无法将此时间识别为2038年,而可能会依個別實作而跳回1970年1901年。错误的计算及动作可能因此产生。


    2/25/2009

    什么在制约企业内容管理产品的应用?

    1. 繁琐的安装和配置过程?
    2. 冗长而漏洞百出的文档?
    3. 二次开发成本?
    4. 企业无业务需要?
    5. 不了解企业内容管理是干啥的?
    6. 缺乏典型和成功案例的demo
     

    传言国内CM用的不好,是为啥呢?

    2/12/2009

    How To Collect DB2 JCC Trace

    Please collect a JCC Trace. Here are the instructions how to do this:

    1) If you are using the datasource, then use the datasource.setTraceFile(TRACEFILE) to enable tracing.

    2) If you are using DriverManger, the easiest way will be to set the logWriter on DriverManager before obtaining a connection.
        For example:
             DriverManager.setLogWriter(new PrintWriter(new FileOutputStream("trace.txt")));

    3) You can also set the traceFile property on the URL. If traceFile property is specified, by default traceLevel is TRACE_ALL
        String databaseURL = "jdbc:db2://hal:50000/sample:traceFile=c:/temp/foobar.txt;" ;


    How To Collect a DB2 Trace

    Please collect a DB2 trace. Here are the instructions how to do this:
    1) Minimize activity on the server.  Ideally, only the application or query required should be performed while the trace is on.
    2) Rename the db2diag.log and if possible upgrade diaglevel to 4 in the DBM CFG:
        db2 update dbm cfg using diaglevel 4

    3) Start the trace:
        db2trc on -t -f XXXXX.dmp

    4) Recreate the error   -   call the Stored procudure.

    5) Turn off the trace:
        db2trc off

    6) Format and flow the trace files:
        db2trc flw XXXXX.dmp XXXXX.flw
        db2trc fmt XXXXX.dmp XXXXX.fmt
        db2trc fmt -c XXXXX.dmp XXXXX.fmtc
             (At this stage, the traces should not wrap.)
             Example of a good trace:
                  Trace truncated     : NO
                  Trace wrapped       : NO
             if trace continues to wrap, please contact me and we can determine whether the trace is usable or not.

    7) From the above files generated, you would need to provide us with the .dmp, .flw, .fmt, .fmtc, and db2diag.log files.

    8) Tar or zip the files.  To tar do:
           tar -cvf xxxxx.yyy.zzz.files.tar  <list of files separated by spaces>
           compress xxxxx.yyy.zzz.files.tar
           Then send the xxxxx.yyy.zzz.files.tar.Z

    2/7/2009

    One Billion Customers

    image

    作者James McGrego 日报母公司道琼斯公司在中国的首席业务代表

    阅读全书  十亿消费者

    全球贸易、外国投资和中国经济的商业化促使法律主体扩大,法律体系不断得到完善。但是核心理念依然是“以法制国”(rule by law),而非“依法治国”(rule of law)。被蒙上双眼的正义女神并不是中国文化的一部分。在中国,法律就是为了统治者的利益而对社会进行统治的一套枷锁。在过去20多年制定法律、建立法院体系的过程中,中国采纳了日本和德国的民法理念,而不是英国和美国所采用的普通法理念。因此,法官并不是公正的仲裁人,而是审判官。反过来说,法官本人也受到一个名为“政法委”的组织监督,这个党组织从北京的中央政法委书记一直延声到最基层的法院。中国的正义最终只是政治决策。

    本书是想向诸位展示 ——而非阐述——在中国经商是怎么一回事。这里没有简单的公式或魔法咒语。只有通过展示那些异常复杂的细节:交易如何达成或破裂;人们如何看待、对待彼此;政治和偏见如何影响预期和结果,我才能够让你了解那些微妙之处,而正是这些微妙之处才使得中国给外国老板们既带来挫折也带来回报。每一章的开始都有简单的人物和背景介绍。接下来在总体概要部分,我将人物和背景放置到适当的场景中。然后整个故事通过平铺直叙展开。最后一部分标题为“这对你意味着什么”,我将解释这一章中发生的事情将如何影响你在中国的经商之路。最后,我希望通过简洁的语言,模仿毛泽东红宝书的形式来总结我自己的一些心得。