| dots's profile我的TRACEPhotosBlogLists | Help |
|
July 13 Disconnect from Internet新工作,上班时候不能上网了,宿舍又没有宽带。要和Internet断开了。 唯一可以联系我的就是电话了Email到Thomas-ZC.Lei@aig.com 也比较方便。 April 25 Eat a lemon fruit.Lemon Tree
When I was just a lad of ten, my father said to me, "Come here and take a lesson from the lovely lemon tree." "Don't put your faith in love, my boy", my father said to me, "I fear you'll find that love is like the lovely lemon tree." Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. One day beneath the lemon tree, my love and I did lie A girl so sweet that when she smiled the stars rose in the sky. We passed that summer lost in love beneath the lemon tree the music of her laughter hid my father's words from me: Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. One day she left without a word. She took away the sun. And in the dark she left behind, I knew what she had done. She'd left me for another, it's a common tale but true. A sadder man but wiser now I sing these words to you: Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. Lemon tree very pretty and the lemon flower is sweet but the fruit of the poor lemon is impossible to eat. March 06 和飞车党的第一次亲密接触一两年来一直会听说同事的笔记本别偷被抢。我一直很庆幸这样的事情没有发生在我身上。而且坚信只要提高警惕的话,一些反动派都是纸老虎。所以每次我经过公司前面的摩托车之路的时候都会倍加小心。基本上能保证电脑包是斜挎在肩上的。
可是今天下班回家不幸的事情还是发生了。。。。
是的,那是2006年的3月6日。一个平淡的下午。我和我同事在回公司的路上,当时我背着自己的电脑,右手帮同事提着他的电脑,当时和同事说话高兴,完全忘记了我身上背负的是2万多块的东西。我的右手边突然窜出个摩托车,撞到我的大腿上了。我顿时火了:谁这么不小心啊,骑摩托撞到人了!可话还没出口,手里的电脑包好象被什么东西一拽,掉了。在摩托车以飞快的速度前进到前面20几米的地方的这0。1秒之后我才反映过来飞车抢夺原来是这么抢的。
好在,非常值得庆幸的是我的电脑是掉在地上的,飞车党没有抓住我的电脑!恩恩,这个飞车党大概是个新手。这个时候我还能说什么呢。我只能高声大呼:"阿拉真主,我赞美你!"。
在阿拉真主的庇佑之下我现在才有了大难不死的愉快心情,在不损失分毫的情况下切身得体会了一把飞车抢夺的具体操作步骤。
不过我想世界上唯一的阿拉一定很忙,下次遇到摩托车他可不一定有空让我的电脑包从飞车党手里面滑落下来了。
March 05 念亲恩 生日快乐。今年的生日的确是很快乐的。我好朋友都打电话来祝福我生日快乐。还有的祝福我这个生日之后的每一天。
中午,藏在一角的鸡纵油又被我看见。鸡纵油向来是点缀在米线米干里面的,可是受不住它的诱惑,还是拿出来“生吃”了一些。母亲牌的鸡纵油果然不是盖的。鸡纵香浓的味道溢满嘴巴的时候,就想起妈妈在厨房里给我往瓶子里面装鸡纵的样子了:放到瓶子里面的鸡纵又要用勺子把它夯实,一定要把一个瓶子都严严实实得装满,生怕我不够吃。这个场面好像在几个世纪之前也有发生过:
慈母手中线,游子身上衣。
临行密密缝,意恐迟迟归。
千百年来母亲对儿子表达爱意的方式是这样的朴素,又是这么动情。而母亲对儿子的期望是否又是一样的?
我是不是该回家了 January 15 Install DB2 v7 on RedHat Linux 9Long time ago since I installed db2 v7 on my linux box.
a fewsteps I still remembered are:
1. pdksh... don't know the version, RH 9's pdksh is OK
2. old libc... RH had old libc compatible package compat-glibc-6.2-2.1.3.2
3. libncurses, db2setup use old libncurses also, in my box file /usr/libncurses.so.4 is symbol link to /usr/i386-glibc21-linux/lib/libncurses.so.4.0, this file is a part of compat-glibc-6.2-2.1.3.2
4. /etc/sysctl.conf, we need change a default kernel parameter, put those line in to sysctl.conf
# Set maximum number of message queues to 128
# Set this to 1024 or higher on production systems kernel.msgmni = 128 -------------------------
4.5 db2setup goes here....
-------------------------
5. finally we need 2 env. vars export LD_ASSUME_KERNEL=2.2.5
export DB2ENVLIST=LD_ASSUME_KERNEL 6. try db2start ;-)
These'are also a lots of HOWTOs around the net...
Ade, World of Warcraft 为什么突然对WOW失去了兴趣,我想这个应该归功于网络游戏防沉迷系统吧。防沉迷系统在WOW里面可谓是千夫所指啊,把一个好好的游戏糟蹋的不成样子。很多人因为这个放弃这个服务器上的角色,投奔其他服务器。。。。但是"你躲起来是没有用的"。明年所有服务器都会实行防沉迷系统,WOW已经不能做娱乐工具了。党和国家领导人对我们无产阶级的关心可不是一般的国家能比的,他们在辛苦滴处理完一天的工作之后做出指示,"要关心玩网络游戏的青年的身体健康",不要整天玩网络游戏。由此而强制地出现了防沉迷系统。我当然感受到了防沉迷系统的温暖,更感受到的领导对我的关心。。。。。
作为防沉迷系统的惩罚对象,我是很不爽它的,他限制了我的游戏自由,从某种意义上来说,它剥夺了我的人权。我辛辛苦苦在游戏里面塑造的角色,金钱vanish。不在游戏中的人,很难理解虚拟的那些东西为什么对一个人这么重要,甚至会觉得他们很可笑。我现在站在游戏者的另外一边看来,这些东西也没有什么大不了的,可是在他们看来是财富。是不是对别人要多一点尊重和理解?这里我想问候防沉迷系统的设计者一句话就是:"小时候你妈怎么教你的?". 不管怎么说现在看来,这个系统对我造成的影响是积极正面的。我的确把握不了该玩网络游戏的时间。因为WOW我失去了很多时间,这些时间都是很宝贵的时间,是我休息的时间,是我和朋友聊天的时间,是我去钻研技术的时间,是我思考我的人生,我的未来的时间,是我和父母电话的时间。。。。。很高兴我又获得了这些。 今天晚上之后WOW的目录就会被删除了。。。。贴几张在游戏里面照片,纪念这段在WOW的日子,和陪我度过这些日子的朋友们。
November 16 前段时间研究vi宏的一个小实验品在命令模式下按shift-v就可以在当前位置插入系统日期
只要在$(HOME)/.exrc里面加入下面的字符影射代码
map V ma:r !date +\%Y-\%m-\%d^MD`apjdd`a10l Dragostea Din TeiMa-ia-hii Vrei sa pleci dar nu ma, nu ma iei, Vrei sa pleci dar nu ma, nu ma iei, Te sun, sa-ti spun, ce simt acum, Vrei sa pleci dar nu ma, nu ma iei, Vrei sa pleci dar nu ma, nu ma iei, X4 Vrei sa pleci dar nu ma, nu ma iei, Vrei sa pleci dar nu ma, nu ma iei, 深处 - 小柯序:"长亭外,古道边,芳草碧连天. 在人群深处你我都孤独 是为了开始还是为了结束 May it be - EnyaMay it be an evening star Mornie utúlie (Quenya: Darkness has come) May it be the shadow's call Mornie utúlie (Quenya: Darkness has come) Mornie alantie (Quenya: Darkness has fallen) A promise lives within you now libxml2中使用GB2312libxml2 的内部处理使用的是UTF-8取到的字符串是UTF-8编码的,在GB2312的程序中的转码就是下面这样了。感觉还有更好的支持中文的方法。。。。。
char *
xmlNodeGetContentGB2312(xmlNodePtr node) { char *i, *o, *bo, *bi, *fin; int ci, co, memsize; iconv_t gb; i = xmlNodeGetContent(node); if ( i == NULL) { return NULL; } ci = strlen(i)+1; o = (char *)xmlMalloc(ci); co = ci; memsize = co; bo = o; bi = i; gb = iconv_open("GB2312", "UTF-8"); if ((int)gb == -1) { LOGMSG0("打开UTF-8到GB2312的编码转化函数出错"); xmlFree(bo); xmlFree(bi); return NULL; } if (iconv(gb, &i, &ci, &o, &co) != 0) { LOGMSG0("转化UTF-8到GB2312的编码出错"); xmlFree(bo); xmlFree(bi); iconv_close(gb); return NULL; } xmlFree(bi); iconv_close(gb); fin = xmlRealloc(bo, memsize-co); if (fin == NULL) { LOGMSG0("内存出错"); xmlFree(bo); return NULL; } return fin; } April 26 麦兜,麦家碧的杰作,给我讲道理的好儿童電影麥兜故事原聲大碟 (12/2001) |
|
|