Thursday, November 24, 2011

我的生活

书桌上一片凌乱,书桌下也一样,衣橱还有许多晾干了还没折好的衣服…
我的生活。一片凌乱。

Sunday, May 22, 2011

How to identify File encoding in Java?



I have this error "cannot read the file xxxx.jsp" when i am accessing some jsp screen..

I am ran into this issue when try to access some jsp page in my project. I found that Input data was not encoded in UTF-8 but our default encoding on Windows was set to UTF-8.

I fixed the input data to be UTF-8 encoded. It works well.

You can either fix the input or change the default encoding to something else.

This is the useful info is

http://www-128.ibm.com/developerworks/java/jdk/linux/142/runtimeguide.lnx.en.html

If your system locale is using a UTF-8 encoding, some SDK tools might throw a sun.io.MalformedInputException. To find out whether your system is using a UTF-8 encoding, examine the locale-specific environment variables such as LANG or LC_ALL to see if they end with the suffix ".UTF-8". If you get this sun.io.MalformedInputException, change characters that are not within the 7-bit ASCII range (0x00 - 0x7f) and are not represented as Java Unicode character literals to Java Unicode character literals (for example: '\u0080'). You can also work around this problem by removing the ".UTF-8" suffix from the locale-specific environment variables; for example, if your machine has default locale of "en_US.UTF-8", set LANG to "en_US".

2011年05月22日

礼拜天,没事做。

zzZzz...

Sunday, May 8, 2011

SQL1092N "USER" does not have the authority to perform therequested command

1. Set the registry variable DB2_GRP_LOOKUP = local and add the domain accounts (or global groups) to the local Administrators group.
- db2set DB2_GRP_LOOKUP=local ?g
2. create new group ?DB2ADMNS?
3. Add both db2admin user and domain user into DB2ADMNS group
4.Update the database manager configuration file to specify a new group.
Db2 update dbm cfg using sysadm_group DB2ADMNS
5. db2stop
6. db2start

Sunday, March 27, 2011

Day 9 in Ho Chi Minh City



UAT testing Day 2 at vietnam Sacom bank.

I onsite at vietnam sacombank again.. this time very tired. Working from 9am to 10pm, a very tired business trip... The time schedule is so tight until we need fully work at weekend. everyday 9am-10pm. tiring...

Wednesday, March 2, 2011

无奈

前天, 得知朋友的弟弟突如其来的死讯, 看到他这这几天几乎崩溃的心情, 我也深受其中.

一脸憔悴的样子, 好同情他.人生无常,世事难料.

这也许新年期间, 我的公公也刚刚过世, 我也比较容易伤感吧. 尤其是我们这些离乡背井的一群, 特没时间回去陪家人.

想起突然觉得很害怕,人生无常,世事难料,个中变化,全不由人,而生命却又是那么的脆弱,转眼间说不在就不在了,瞬间便已是阴阳相隔,再无相见之日

没人能有预知未来的本领,就算是大闹天宫的孙悟空,纵然他有72般变化,纵他有通天本领,还有经炼就的火眼金金,可他都不能预知取经路途将要面临什么样的妖精鬼怪,将要遇着怎样的灾难与困苦,更何况我们这些凡人呢?唯有祈求所有的人不管认不认识的,都能健康,都能平安,愿都能珍惜眼前的人,都珍惜眼前所拥有的一切


-------------------------------------------------------------------------------------
任你红尘滚滚,我自清风郎月。

一辈子做人,怎样算是做好了人?一辈子处世,怎么样算是成功的处世?

不如豁豁达达的心态,一切归于平静,一切就会平静。

人生在世,无非是让人笑笑,偶尔也笑笑别人。

曾经沧海之后,再去看世情,无非是云淡风清,不过是日升日落般的泰然了-

人生无常,世事难料,唯一一颗平静的心能抚平一切~
-------------------------------------------------------------------------------------

Tuesday, January 11, 2011

PASSIONLESS

I’m starting to notice that I’m having trouble waking up in the morning to go to work. I’ve never had this problem before. I would prefer thinking of taking MC and continue sleep after wake up by the alarm. Passionless symtons? I think so.. I have force myself wake up and prepare everything and go to work.

What do you do when the passion disappears?

Monday, January 3, 2011

不多... 3个笑话

1. 三个男子去女方提亲,女方家长让他们各自介绍一下自己的情况。第一个男子说:“我有1000万!” 第二个男子说:“我有豪宅,价值 2000万!” 女方家长很满意,问第三个男子:“你有什么?” 第三个男子答道:“我只有一个孩子,现在孩子在你女儿的肚子里。” 前两个男子听后,非常无语,走了!这个案例告诉了我们一个道理:核心竞争力不是钱和房子,而是在关键的岗位上,要有自己的人!

2. .夫妻俩起床后,妻子洗漱后,站在体重计上称了称。 妻子兴奋的说:亲爱的,我的体重又减掉了两斤! 丈夫说:是吗?你可是刚起床,要知道,你还没有化妆呢。

3. 麦当劳对肯德基说:“你以后别再做鸡了!” 肯德基对麦当劳说:“那你以后也别老化着浓妆在门口接客了!!”

Man Utd's next generation of wonderkids

Manchester United have set off on their pre-season United States tour with a number of young stars involved, but some other talents have lef...