Archive for 02月, 2009

2038年问题( New Y2000 Issue)

星期五, 02月 27th, 2009

在计算机应用上,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年。错误的计算及动作可能因此产生。

http://zh.wikipedia.org/wiki/2038%E5%B9%B4%E9%97%AE%E9%A2%98

正视“金融达尔文主义”

星期三, 02月 25th, 2009

危机是一个最为公平的竞技场,并以惨烈的方式决定市场竞争的结局

沈联涛/文

2008年是鼠年,这一年可能会被人们永远记住。最难忘的章节,一定落不下纳斯达克前主席伯纳德·麦道夫(Bernard Madoff)的惊天骗局。
特别可笑的是,麦道夫的侄女是他的合规部门的负责人,而他侄女的丈夫则是前美国证监会律师。不是有人在1997年指控亚洲的“裙带资本主义”吗?那么,麦道夫先生的故事应该算怎样的资本主义?
前几天,我收到了一条幽默的短信:“一年前,苏格兰皇家银行并购荷兰银行花了1000亿美元。今天,同样的价钱可以买花旗银行(225亿美元)、摩根士丹利(105亿美元)、高盛公司(210亿美元)、美林公司(123亿美元)、德意志银行(130亿美元)、巴克莱银行(127亿美元),还剩下80亿美元现金零头——用这些零头,你还可以买下通用汽车、福特汽车、克莱斯勒和本田F1车队。”设想一下,如果麦道夫先生的骗局可以继续下去,那么,他用 500亿美元就可以买花旗银行、德意志银行和巴克莱银行,从而能够控制2万亿美元的金融资产——假设到那个时候谜底才被揭穿,结果将是多么可怕啊!

 

http://magazine.caijing.com.cn/2009-01-03/110058444.html

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

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

 

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

9999

星期六, 02月 14th, 2009

9999

How To Collect DB2 JCC Trace

星期四, 02月 12th, 2009

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;" ;

Please see the following URLs for additional assistance :
http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/ad/cjvjcdig.htm
http://www.ibm.com/software/data/pubs/papers/sqlj (Section 3.4 – Trace)

How To Collect a DB2 Trace

星期四, 02月 12th, 2009

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

Oracle doesn’t support 32bit external procedure on Windows 64bit

星期六, 02月 7th, 2009

We’re working on windows 64bit support for our 32bit application. But we found there is no extproc32 and lib32 in the ORACLE_HOME. Then I open

SR Number
7410009.992

and get the following informaion from Oracle.

—————————————————————————–

QUESTION
========
HOW TO RUN 32-BIT PRO*C EXTERNAL PROCEDURE ON 64-BIT WINDOWS ?
ANSWER
======
Hi,
It is not possible To Call 32Bit Libraries Using External Procedure Agent Extproc On Windows
64Bit.
Because there is no 32bit "extproc" agent available on Windows 64bit.
Oracle currently does not support running the 32-Bit versions of its database software on Windows 64-Bit (AMD64 / EM64T, Itanium)
As extproc is part of the server there is no 32bit of it available for Windows 64bit.
If you try to run a 32bit application, you will get the following error :
ORA-06520: PL/SQL: Error loading external library
ORA-06522: Unable to load DLL
Please note that there is already an enhancement request is filed with Oracle
development for the same.

One Billion Customers

星期六, 02月 7th, 2009

image

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

阅读全书  十亿消费者

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

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

(阅读全文……)