线上

每一次看到妳在线上都有一股冲动想问你... "How are you?"。每一次看到你在我的脸书上搭腔,我都很想回复你。可是我始终都强忍着,我心里知道同样的错不可以再犯了。

今晚

今晚,有少许的感慨,有少许的惆怅。

周末

周末,让自己静下来,沉着地(从新)思考人生的定位。
充充电好让自己确认再肯定方向。

电影Chronicle编年史 - 看后感










我看了电影预告、看了他们的宣传手法(用人形遥控直升机在NCY飞行)。觉得应该是是不错的电影,所以就选择相信自己的直觉,去看这套电影。 很不错的超能力电影,拍摄手法新鲜, 特别是主角用超能力操控镜头。 非凡的故事,并不是一般超能力电影——好人打倒坏人那类超幼稚剧情。 虽然非常黑暗,有点血腥但剧情有点深度、发展也合乎逻辑。 

一般的超能力电影,都有着一贯的剧情,就是一个饱受欺凌的弱者,如何得到超能力,如何学会运用超能力,突然出现一个十怨九仇的坏蛋,然后主角打倒了坏蛋。好人 vs 坏人诸如此类的俗套剧情。但,这套不一样... 很不一样... 未免透露剧情,我还是别细述了,你看了就知道了。

可惜的是,导演貌似为了营造真实感几乎全程都用家用摄像机的手法拍摄。虽然我很欣赏这样大胆的拍摄手法,不过这种接近第一人称的拍摄手法,最终还是辛苦了观众,尤其是开始的时候,画面晃动得我眼花撩乱了,还好电影中期开始画面开始改善了。 但对于那些一味最求华丽画面(这电影的CG并不是最华丽的,但绝对是最真实的其中之一)、超夸张的剧情的观众来说,这套电影会令你们失望了。

个人评分:8/10 绝对值得去看的电影。

I had a Dream...

When I was first introduced to C programming many years ago, I had a crazy dream to create a self evolving and self compiling program which basically can build it self from fundamental rules and fundamental building blocks that I had given to it. The program will randomly take inputs from the network, keyboard, web cam, and etc. Basically any inputs, information and data that is the program is accessible. Then, the program will randomly process the data with any algorithms it can find. Each generation of the program compile a few variation of itself base on random seeds, and they will 'interact' and exchange information with a built-in communication channel. I had a naive thought at that time, it shouldn't be too hard to create such program. Yes, all the data exchanged might means nothing to us. At that moment, I feel that it will eventually become a self-aware and do something meaningful. That time, I wasn't realized the whole concept is something called genetic algorithms. I spent months into putting myself into deep thought, thinking ways to realize such program. After a lot of thinking, I had came out of a theory that the program will do nothing other generating variations of itself that also do nothing... eventually it will become a program that generating copies but do nothing since I didn't program a purpose into it. After months, I came into an article describing the Halting problem. This is where i meet the dead end of my geek fantasy...

TEDxKL 2011

剛從TEDxKL回來, 現場看的氣氛真的完全不一樣! 這是我第一次出席TEDxKL,、第一次去到Publika - Solaris Dutamas. 雖然不完全認同有些演說但那些畢竟是他們人生最精彩的縮影,的確是『聽君一席話勝讀十年書』。而且,一次過觀賞了12席話,吸收了12位成功人士的精華。開闊了思想,也增長了見聞。這類型的演說太有營養價值了,錯過的人明年一定要出席啊!

獵命師传奇

讀了【獵命師传奇】第一卷的開頭!感覺還真不錯!雖然一開始刀大的羅嗦有點冷場。但繼續看下去就被緊湊的故事情節吸引了。沒想到【獵】盡然會和【臥底】扯上關係。獵取『命運』這個點子還真不錯!章節之間還插入了命格的設定簡介實在非常有趣!好吧,就先寫這簡短的更新,有空(心情)再續!

可怜的Linux普通用户

L: Linux很好但不够人性化也是它不争的事实...
L: Linux出现太多variations了..
W: 不像Windows...学一次终身受用.
W: 我在98SE年代买了一本《白痴学Windows 95》.
L: 我在2002年买了Red Hat 7的使用手册...
W:虽然人人大骂Windows Vista/7对UI做了很大的改动但到现在我还能顺畅的对Windows进行基本操作无需重新学习...反正在Windows不是yes就是no...就是那么简单.
L: 2004年Ubuntu开始盛行...短短两年我又要重新学会怎样用Linux, 又需要买另一本使用手册. 什么KDE, GNOME的...麻烦死了...那是普通用户需要去烦的吗?过后Ubuntu 每年推一个新版...每个新版都说比旧版好...我这个可怜的普通用户每年都得花上不少时间重新适应.... 囧

Firefox setInterval passes Random number as parameter bug

I was working on a web development project. Until 30 minutes ago, I had discovered something strange with my code. It worked well on IE and Chrome but it created random results on Mozilla Firefox version 3.6.12. So i did some quick alert()s to find out whats went wrong. Surprisingly, I found out that  if you pass a callback function that can accept parameter into setInterval. It will pass random numbers into the callback function when it wasn't suppose to. I tried to start Firefox in safe mode and run the test again. Unfortunately, the bug still exists.

If you're geeky enough to watch the bug live in action just head over the demo page to reproduce the bug.

Update #1: I just tested the code with setTimeout() it seems like setTimeout() is affected as well.
Update #2: I just filed a report at Bugzilla@Mozilla.
Update #3: It was my mistake. :P It isn't a bug but an inconsistency between browsers.

删除

我向来不是喜新厌旧之人。但手机毕竟是人类制造的,经不起日月的摧残(换手机的借口)。打从拥有了第一支手机起,前前后后我已换了好几架 (每一支都仍然能用哦)... 有的被我搁在家里,有的已换了新主人。物换星移,许许多多的事情一直在改变。在最新的手机里联络表也为了庆祝迁入新居而做出了一番整顿。它的脑海里已不再存有一直不舍丢弃的短讯 - 那些不该属于他的回忆。它们都被... 删除了。

Confidence

She said that I'm a confidence person whom I think I'm not. A confidence person must be mentally strong and able to face challenges as well as projecting a strong image to others. A lot of things had happened in my life lately, my blog is just showing a tip of the iceberg. Some, which I had decided to withheld until I find the right time to write about them. I keep telling and convincing myself so that I can get to pass these phases. Saying that "Constants cannot be redefined" is merely another way to say "Whatever Happened, Happened". I always believe that things happen for a reason. We could either face it, change it or ignore it. I made up my mind to really deal with the problems and change my life. I have no idea what the changes will bring. Be it good or bad I believed this is what I need to do. It is a right thing to do... I suppose.

你·我

那天发生了一些事情。是关于你和我。我知道挣扎于事无补。我知道伤心你会笑我傻。搞乱了你的生活秩序是我不对。可是,有些事情你不用去疑惑、质疑。友谊是真,一直都存在着的。短讯传来,你告述需要几天时间整顿思绪。我只想说我需要更长的时间...

星际2加速挖矿 StarCraft II 7% Mineral Boosting

有人发觉了挖矿的AI有问题。会有7%的延迟. 用AI采矿后矿工会停留一段时间才把矿运回基地。但是如果你用手动用Shift预先queue up挖矿(shift + right click on mineral)和运矿(shift + c)的热键, 你就可以略过AI(要一直重复), 手动指挥矿工加多7%的资源。

高呼吧!现在开局不用闲着了.

草稿

一堆存放了很久的草稿
以前草拟的一些部落文章。一部分已经写了很久,有些却有种种的原因与借口一直搁着没完成。绝大部分是开了个头却想不到内容写下去。越写觉得越空洞所以就没写下去了。最近想选一部分以前留下的草稿写下去。就让读者以留言投票吧。








Still Learning MySQL, MSSQL, Oracle?

I had long thought that it was stupid to implement data consistency control at application layer when I first started coding with PHP and MySQL. Now, I notice that I wasn't that stupid at all, given that most relational databases are "optimized" and partitioned to allow intensive I/O and higher scalability... As a result relational databases became more like object databases which was introduced in the 80's.

As the web evolves, web applications becoming more and more demanding... Now web giants like Google, Facebook, Ebay and Digg are starting to drop relational databases and going back for non-relational storage solutions for better cloud computing. They called it as NoSQL.

As Instant as Google

As always, Google has been trying to make the search experiences more pleasant and user friendly since day one of the search engine development. There were numerous small changes being carried out through out the years. Most changes are hardly noticeable to normal users but the impact on performance and time spent per search are improving drastically. 

When we thought Google Suggest (predicts, suggest & auto complete the keywords as you type) is the best thing Google search can provide us, Google had just shown us an instant streamed search results as you type and almost as fast as you can think. Google Instant is new but it looks, behaves, feels so familiar with the old version. The improved user interface is silk, minimalist and smooth. 

Various UI elements on the Google Instant are fairy consistent. They don't get pushed to bottom as the search interface has a fixed width which I usually hate when dealing with dynamic changing interface. Thumbs up to the UI design team. The streamed results are predicting your input very well in most cases. Google claims that it reduces the total time per search by two to five seconds. What else can be as instant as Google?

乐高

Lego乐高砖块是我小时候最喜欢的玩具之一。大概在我两三岁时(虽然乐高有指定年龄但当时有妈妈看着),已经开始玩乐高。经过妈妈细心的引导下两岁的我已经能依照图表拼出较简单的乐高模型。妈妈也断断续续的买了好几盒小型(比较便宜)的乐高组合。开始时我还需要依赖图表才能把模型组装起来。

伏笔

那天,我旧地重游了。买了你喜欢的调味豆奶,喝着,一边走一边寻觅着过去的迹影。回味着与你一起喝过的芋味珍奶。脚板隔着鞋底隐约地感受着一起走过的冰冷大理石。感觉你隔着空气的体温。回忆着当天的点点滴滴,那套电影、那只小熊、那顿午餐。 这些事情,大概你都忘了吧?忆起了两年前在送你生日卡片上埋下以诗词写的伏笔。可是,我又能怎么样呢?

Megablue的数独(Sudoku)程式

Sudoku by megablue v0.2 screen capture
数独,一个玩法简单却具有非常挑战性的数字游戏。前一阵子UCPRO编程论坛的版主出了一道题来挑战坛友。可惜最终只有我写出了一个完整的数独程式。既然没有挑战者那活动就这样作废了。

旧版本(v0.1)是一个纯文字界面界面的单线程程式。前天我把程式用图像界面重写了(v0.2),以及改良了演算法.

更新: 刚刚W.Jiun给了一些建议。我也觉得界面太小了,所以在界面上做了一些调整。如果下载了v0.2觉得界面太小的话可以试试v0.2a. 除了界面以外基本上是一样的。



Path


From now on, I must further the journey alone. There are some paths that are meant to be walked by yourself where no one could accompany you. No one will be there for you when you fall. I just hope that I wouldn't fall... at least not too hard. Determination is crucial; I must keep myself reminded.