Wednesday, October 19, 2011

java & tuxedo @@

Was facing issue where my java program failed to load the so library from Tuxedo8.

Spent quite much time. Finally solved it today. I am so happy!!! The feeling is the same every time my article got published on newspaper!

I got to decompile the tuxedo.jar, which comes with tuxedo installer. From there i put in as many system out as possible for troubleshooting. The program actually stopped at the part where System.loadLibrary is being called. It failed to load a particular so file even tough physically the file is there.

I started to check if the bit version of java matches the one of so file. My machine is AIX6.1 and i got to know that AIX6.1 only supports 64bit kernel. Hence i decided to run my program using 64bit version5 java.

After running the program using 64bit java, i saw more meaningful error messages this time as compared to the previous non-informative messages. From there i got to know the SO file failed to load its dependencies.

So i started to look for the dependencies, and put them under the same directory where the major SO file is located.

Of course i also set the path of where my SO file is to the variable LIBPATH and also to the -Djava.library.path

That's it :) Of course before writing this down i actually have gone through so many researches and trial and errors. Gosh. Imagine how happy am i now! :)

Oh ya, i dropped the System.loadLibrary, instead i hard coded the path using System.load :)

Some helpful commands along the way of my troubleshooting process

1) java -d64 -version
2) nm -X64

Thursday, September 29, 2011

当我感觉生病时。。。

一天,晚餐后回房休息。

那天的空调特别的冷,奇怪,平常都是调在这个温度的。

正经事要紧,赶快开了电脑处理一些事项。做着做着,突然间鼻子痒痒的,猛地打了个大大的喷嚏!糟,流鼻水了,而此时也感到喉头干干痒痒。。。

这不就是生病前症状吗?之前每次感冒或伤风前就是这样的。

之前生病时,我都是靠维生素c来加强免疫力抗病菌的,一天要服用好几千mg的方能其感到效果,即生病症状停了,病情慢慢好转了。

当天刚好没了维生素c,想起不久前买了“转移因子”(Transfer Factor)。听过解说,服用此营养品可以让免疫力增强437%。我想都不想,赶快拿出两粒吞下去。

刷牙洗脸后,赶快躲进温暖的被子里休息了。

第二天,可以说是若无其事了。就像平常服用多粒维生素c般,症状没了。庆幸自己能于病情恶化前,用转移因子加强身体抵抗力杀尽各病毒细菌等。

大胜!

Monday, September 12, 2011

灵异事件分享




以下所言,皆是事实。信与否,都无所谓,吾只望读者能日后借鉴。

一)民间所传,夜间听闻铁链声,乃刚往生亲人于七七四十九天未到时,回魂探望。我只能说,此事千真万确!

二)今人以环保为上,鼓励少烧或不烧冥纸,惟祖先亡魂往往需要冥纸以打通冥间路(若有烧或不烧之烦恼,建议于祖先牌位前掷铜钱或使用各占卜器物请示,连掷三次,若三次皆得同一成绩,就是答案了)。至于所烧给各菩萨神仙之冥纸,则能为菩萨做施舍于路过之亡魂所用(可能是为烧者累积善德)。

所谓冥纸,以传统金纸为准,而非如今之印有号码的冥府银行等之冥钱。

三)若梦到已往生亲人流泪不说话,乃已近寿终之象。此时可以再求延长多三年寿命。如何求?于家里平常上香时,对祖先(或天公或一众神仙?)说明为何要“迟走”等。

希望能帮到读者,尤其是第三点。

Monday, August 22, 2011

东甲炒虾面

我好爱这道东甲炒虾面啊!往往从马六甲会昔加末时,若正值晚餐时间,就会到此处大开杀戒。

档口就在东甲巴士站附近而已。这地方大概有整十多档。


这里全是露天小食档。炒虾面档就藏在其中。老板炒面的姿态一流,看他的炒法就能想象那炒面有多好吃了。


面炒好时湿湿的,香喷喷,用料有虾与猪肉片,配上特制辣椒,好吃!可惜照片暗了点。对不起哦!


吃完这盘面只需十五分钟而已。盘子光光的,你能想象其好吃程度吗?

新加坡印尼鸡饭

叫Ayam Penyet,档口就在樟宜乡村酒店(Changi Village Hotel)对面的饮食中心而已。

我们到时正是晚餐时间,却没人,真怀疑是弄错了。

哇,等了一阵子,鸡饭来了,温温的,一入口,赞哦!鸡烤得香而不干,鲜嫩多汁,夹起鸡肉沾上那特制辣椒酱,十足印尼风味。肉吃腻了还能吃盘中的生菜番茄等。




饭香,汤则类似味精汤。

很满足的一餐!

Wednesday, August 10, 2011

基督教丧礼

今日随友人往其表兄丧礼。

其表兄生得聪慧,中小学时期学业成绩特优,后领奖学金前往新国深造,后更被其大学送往国外作交流,为时一年余。惜期间遭受种族歧视,精神备受虐待,竟至得精神忧郁症,唯有停学归乡修养。在家乡征得公务员,工作轻松,家常便饭,生活平淡,实也不错。唯月前竟突然昏倒,医生诊断为肝癌末期,魂归天国,迟早而已。间中竟回光返照,清醒数日,能食稀饭,亦能说话。突而又不省人事,直至前日终于断气,英年早逝,无可奈何。

丧处布置简单,棚未如其他人般搭至屋外,亦没待客以正食,简单整齐。我到之时,有天主教团体为死者灵魂以英语诵唱经文,有如佛教净宗般。无乐器伴奏,纯人声而已。

诵经团散后,我随友人入屋,死者遗体在棺材内,如一般华人般摆在厅中,身后有十字架刻有耶稣像,旁有一支白烛。

随后往前院坐,喝水吃花生。

人生无常,希望死者魂已归天国,安息。





Sunday, June 19, 2011

Making the world work better

It was IBM's 100 year old birthday. As an IBM staff i was given a book "Making the world work better".

"Making the world work better", this has inspired me. This is such a great idea. I am so touched by it.

This is what human need, isn't it?

The world is in the mess, we really need people to have a common goal, which is to make this world work better! After all we, human, are far too fragile in the universe.

Honestly speaking, i never have the sense of belonging to IBM since day 1 i joined. My perspective is i work in many projects, close them to make sure clients pay IBM and that's it. Never have i had a single thought that my work actually contributes to the human civilization in a direct manner, just like scientists do.

In fact, some of the projects were actually initiated from some awesome ideas! It will be cool if the consumers are able to enjoy the final result from these projects. The thing is, clients always make sure gaining profit is the priority, and that's the perspective they will look at all the time.

Resource constraint should not be the barrier that stops us to make the world work better. After all, it is such a great honor being part of the members to help the civilization grow.