31
Oct

杂想2007·10·31

今天花了半个下午看了一下时下比较流行的一个javascript framework: ext js 2.0,抛开技术层面的东西不说,得到两个收获,或者说疑惑:

  1. 老外善于归纳整理出一些比较有用的框架,除了技术上的孜孜追求,是否和他们做事比较踏实有关?对比国内的浮躁作风,是应该值得好好反思一下
  2. 几个小时的文档看下来,头有些晕,感觉做技术确实是条辛苦的道路,怀疑是否适合将这个作为自己最终的出路?

10月应该是个收获的季节,我得到的只有恼人的颈椎顽疾,无尽的疲倦,和迷茫的前途。

30
Oct

HP大中华区总裁孙振耀撰文谈退休并畅谈人生

关于工作与生活的转帖

 我有个有趣的观察,外企公司多的是25-35岁的白领,40岁以上的员工很少,二三十岁的外企员工是意气风发的,但外企公司40岁附近的经理人是很尴尬的。我见过的40岁附近的外企经理人大多在一直跳槽,最后大多跳到民企,比方说,唐骏。外企员工的成功很大程度上是公司的成功,并非个人的成功,西门子的确比国美大,但并不代表西门子中国经理比国美的老板强,甚至可以说差得很远。而进外企的人往往并不能很早理解这一点,把自己的成功90%归功于自己的能力,实际上,外企公司随便换个中国区总经理并不会给业绩带来什么了不起的影响。好了问题来了,当这些经理人40多岁了,他们的薪资要求变得很高,而他们的才能其实又不是那么出众,作为外企公司的老板,你会怎么选择?有的是只要不高薪水的,要出位的精明强干精力冲沛的年轻人,有的是,为什么还要用你?
  从上面这个例子,其实可以看到我们的工作轨迹,二三十岁的时候,生活的压力还比较小,身体还比较好,上面的父母身体还好,下面又没有孩子,不用还房贷,也没有孩子要上大学,当个外企小白领还是很光鲜的,挣得不多也够花了。但是人终归要结婚生子,终归会老,到了40岁,父母老了,要看病要吃药,要有人看护,自己要还房贷,要过基本体面的生活,要养小孩……那个时候需要挣多少钱才够花才重要。所以,看待工作,眼光要放远一点,一时的谁高谁低并不能说明什么。
  从这个角度上来说,我不太赞成过于关注第一份工作的薪水,更没有必要攀比第一份工作的薪水,这在刚刚出校园的学生中间是很常见的。正常人大概要工作35年,这好比是一场马拉松比赛,和真正的马拉松比赛不同的是,这次比赛没有职业选手,每个人都只有一次机会。要知到,有很多人甚至坚持不到终点,大多数人最后是走到终点的,只有少数人是跑过终点的,因此在刚开始的时候,去抢领先的位置并没有太大的意义。刚进社会的时候如果进500强公司,大概能拿到3k-6k/月的工资,有些特别技术的人才可能可以到8k/月,可问题是,5年以后拿多少?估计5k-10k了不起了。起点虽然高,但增幅有限,而且,后面的年轻人追赶的压力越来越大。
  我前两天问我的一个销售,你会的这些东西一个新人2年就都学会了,但新人所要求的薪水却只是你的一半,到时候,你怎么办?
  职业生涯就像一场体育比赛,有初赛、复赛、决赛。初赛的时候大家都刚刚进社会,大多数都是实力一般的人,这时候努力一点认真一点很快就能让人脱颖而出,于是有的人二十多岁做了经理,有的人迟些也终于赢得了初赛,三十多岁成了经理。然后是复赛,能参加复赛的都是赢得初赛的,每个人都有些能耐,在聪明才智上都不成问题,这个时候再想要胜出就不那么容易了,单靠一点点努力和认真还不够,要有很强的坚忍精神,要懂得靠团队的力量,要懂得收服人心,要有长远的眼光……
  看上去赢得复赛并不容易,但,还不是那么难。因为这个世界的规律就是给人一点成功的同时让人骄傲自满,刚刚赢得初赛的人往往不知道自己赢得的仅仅是初赛,有了一点小小的成绩大多数人都会骄傲自满起来,认为自己已经懂得了全部,不需要再努力再学习了,他们会认为之所以不能再进一步已经不是自己的原因了。虽然他们仍然不好对付,但是他们没有耐性,没有容人的度量,更没有清晰长远的目光。就像一只愤怒的斗牛,虽然猛烈,最终是会败的,而赢得复赛的人则象斗牛士一样,不急不躁,跟随着自己的节拍,慢慢耗尽对手的耐心和体力。赢得了复赛以后,大约已经是一位很了不起的职业经理人了,当上了中小公司的总经理,大公司的副总经理,主管着每年几千万乃至几亿的生意。
  最终的决赛来了,说实话我自己都还没有赢得决赛,因此对于决赛的决胜因素也只能凭自己的猜测而已,这个时候的输赢或许就像武侠小说里写得那样,大家都是高手,只能等待对方犯错了,要想轻易击败对手是不可能的,除了使上浑身解数,还需要一点运气和时间。世界的规律依然发挥着作用,赢得复赛的人已经不只是骄傲自满了,他们往往刚愎自用,听不进去别人的话,有些人的脾气变得暴躁,心情变得浮躁,身体变得糟糕,他们最大的敌人就是他们自己,在决赛中要做的只是不被自己击败,等着别人被自己击败。这和体育比赛是一样的,最后高手之间的比赛,就看谁失误少谁就赢得了决赛。

more…

25
Oct

Some link

这两天看到的好玩的或者比较有意思的link,放在这里做个宣传:

关于最后一条,我也收到了注册邀请邮件,想来是当年注册过留下的email,其他的事情不太清楚,未尝不是空穴来风。不推荐大家去注册。

23
Oct

Ubuntu 7.10 (GutsyGibbon) quick setup reference - keep updating

My target:

  • English user interface, full support to Chinese display, input and storage
  • Be applicable for daily use, such as office, music, movie, rar, etc
  • T.B.D

So let’s start…
more…

23
Oct

Two oracle functions created with PL/SQL

The problem came when I was trying to create a dynamic “where” statement in Universe Designer (BuisnessObjects product).

In general, the designer will try to help you build the model between the database schema and your business logic with an easy, user-friendly, drag-and-drop way. It also provides options to pass parameters (from the user). But here is the problem: it can not handle dynamic column names. In other words, the column name must be known while the value can be passed in. Example:

where ColumnA = @variable

here the “ColumnA” must be determined at the time you build this universe.

In our project, we need to search the database according to different user input. Just think about the following scenario:

  1. we have three columns that allow the user to choose or enter some value
  2. each column is bounded with an operator, like: “=”, “>”, or “like”
  3. for those columns that the user leaves blank, discard the constrain

So how should we solve this with the universe designer?
more…

16
Oct

BusinessObjects, libeay32.dll, PHP and curl ?

Sounds strange, but we got these things together.

The problem occured when we installed the BusinessObjects Enterprise XI Release 2 Fix Pack (FP2.5). The Center Management Service(CMS) could not be started and it continues to complain:

"Failed to get database connection string from the system"

or

"Failed to write database connection string to registry"

First I though it might be caused by the registry key change after the FP installation. But no matter how I tried (reset configuration, restart computer, etc), there’s no luck. The error message remains.

After calling the 800 customer support hotline and searching on the internet, we found this useful link:

http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=7C2327DAA8AF9CE72FB7589CD3200E2C?cmd=displayKC&docType=kc&externalId=c2018758&sliceId=&dialogID=9346926&stateId=1%200%209344712

I recalled that we also installed PHP on the server on which BusinessObjects products were installed. And a special extension is enabled: curl. This extension needs two additional dll files to be present in the PATH variable: “libeay32.dll” and “ssleay32.dll“.

First I put these two files in the PHP installation directory and add that to the PATH, but the information from phpinfo() shows that this extension is not properly installed. So I dig into “system32” folder and found another one(”libeay32.dll“) there. I didn’t check the version at that time, just replace the file. Then curl begins to work on PHP.

Later, when we install the FP2.5, the problem occured. The file “libeay32.dll” within the product is used for SSL operation. I checked its version and figured out that BusinessObjects has re-compile it and give it a different version number, which is compatible with their product line - 11.5.8.826. Actually the relevant version from openssl is 0.9.6.

But during the upgrade process it could not replace the “libeay32.dll” because this file is used by apache. So when the CMS tried to start, it failed to retrieve an expected version number from the dll file and throw that weird message.

Finally I got the solution:

Replace the “libeay32.dll” in “system32” with the one that comes along with BusinessObjects products, and put “libeay32.dll” and “ssleay32.dll” that come along with PHP into “apache\bin” folder. Thanks to god, the “apache\bin” folder has higher priority than the “system32” folder. Then the two (BusinessObjects and PHP/Curl) both works.

Just wondering why the CMS throws such a misleading message …