Sunday, June 21, 2009

可以做的, 都做完了

曾經有一位小朋友問我... 讀大學跟讀中學有什麼分別??

當時我不懂怎樣回答. 因為.. 我的大學生涯實在有點乏味!

現在... 作個總結吧.


yr1:
* 為金錢打拚... 打拚... 打拚... 打拚... 打拚... 打拚... 打拚...
* 曾參與 career center 的一些活動... 為將來的金錢打拚... 打拚... 打拚...
* 曾以打拚的金錢, 在summer 時參加了日本與台灣遊學 (好像是工作人士一樣呢... 搵完錢, 放下大假)
* tour 完之後... summer job 為金錢打拚... 打拚...
yr2:
* 為金錢打拚... 打拚... 打拚... 打拚... 打拚... 打拚... 打拚...
* 因遊學認識了些師兄, 從而神推鬼使的參與了faculty支持的"自主研發"項目...
* 曾為項目負出時間, 因不知怎的原因... 項目步入爛尾之路.... orz
* 曾以打拚的金錢, 在summer 時參加了英國遊學 (又放下大假)
* 踏入placement年...
yr3:
* 在大笨象公司實習.....為金錢打拚... 打拚... 打拚... 打拚... 打拚...
* 在"空餘"時間, 完成了"接近爛尾"項目... BUT, 到最後都是一個爛尾的經驗 (因為項目早以失去其意義)
* 受聘於外資科技公司, "推動校園開源文化"?? (終於有一點點的味道了)
* summer .... 與同學歐遊 =] (又放假)
yr4:
* 開始不再把"為金錢打拚"放到第一位 ... 因為好累 =.="
* 盡心為畢業設計努力.. (終於明白到..成果是怎樣並不太重要... 重要的是過程是怎樣)
* 繼續"推動校園開源文化" ... (黎緊919見 =])
* 與業內社區組織打交道, oaka.. agilehk.. barcamp.. fxair.. olpc.. 等等
* 參與了很多開源/義務/技術發展工作與活動. 認識了很多很多很多的朋友. (是我最開心的其中一件事吧)
* 有幸參與 Google Summer of Code. 參與php internal util 開發(完夢了!?)
* 參與 acm-hk-contest, 終於可以為"電腦科學系學生"這字眼添上一些色彩.
* 還有.. 認識了她 (是我最開心的另一件事)


在寫之前... 我都不知道自己在大學做了什麼... 寫了之後...才發現.. 原來大學跟中學最不同的地方... 就是自由.

我在大學"可以做的, 都做完了。" 你在大學做了些什麼? 可以跟我分享一下嗎 ^^?

Thursday, June 11, 2009

my gsoc2009 @ June 11

As doc-editor has many sub-components open a code-mirror editor.. i'm trying to make the editor becomes a reusable ui component.

Today ... i'm working on that and trying to allows two editor to synchronize their scroll bar...

BUT... problemsssssssssssssssssssssssssssss :)

Let's consider this!
Editor-A scroll for 40px from top
Editor-A's scroll listener catch the event and ask Editor-B to scroll to 40px from top
Editor-B scroll for 40px from top
Editor-B's scroll listener catch the event and ask Editor-A to scroll to 40px from top
Editor-A scroll for 40px from top
:
:
:
who scroll NEXT?

in Chrome ... the logic seems working.... but in Firefox ... the logic breaks.

To handle this.... I added a "scroll-lock" to the editors :] (just a conventional solution to handle synchronization problem)

New logic follows....

Editor-A scroll for 40px from top
Editor-A listener gains lock as Editor-B is not scrolling
Editor-B scroll for 40px from top asked by Editor-A listener
Editor-B listener cannot gain lock as Editor-A gained
Editor-B listener gives up asking Editor-A to scroll and force Editor-A to release the lock

So... scrolling won't be propagated
if Editor-A/Editor-B scroll again, lock can be gained and logic applies

Sync is FUNNY XD

Friday, June 05, 2009

My Firefox3 was HACKED!! Did yours?

:( very very unhappy ... my firefox was hacked by m$ /___\

damn m$.

Thursday, June 04, 2009

A joke?? Google Squared

Google Squared ... a new comers to goog-lab ...

Actually ... it's a lie :p

I see no square in google squared but rectanglesssssssss
If squared means google x google (google ^ 2) ... then this means squared amount of queries which is inbelieveable

So ... I bet ... the name squared is a lie~~~~~

Anyway ... good fight to Wolfram Alpha as Squared is already in beta as initial XDDDDDDDDDDDD

waiting for Google Cube @.@v~

Wednesday, June 03, 2009

Google is Different!!!

Take a look of Google in FF3 vs IE7 by https://browserlab.adobe.com/



Google is asking you to download Chrome in IE7 ^^ (but not in FF)

GOOD!!!!!!!!!!!!!

Sunday, May 31, 2009

my gsoc2009 @ May 31

This is again not a good day for coding .... But the day to learn coding -.-"

Let's consider the following js...


var items = this.items;
if (items) {
delete this.items;
...
}


Have you ever think of ... "this.items" is still exist after the delete statement??

This is why i said today is not that good for coding :p

Sooooooooooo, let me explain wt's actually happening...

When i'm refactoring the codes of doc-editor ... I do something like this ...



items of the ui-component are directly defined in the Ext.extend function.

BUT............ The devil comes!!!!!!



As you can see from the nice FireBug console ... Before the delete statement ... items are there... After the delete statement ... ITEMS ARE STILL THERE and making the initComponent CRASHES!!!

Right before I know the problem behind ... i guess it's Firefox bug ^^ then I tried on Chrome ... Same thing happen in Chrome's console .... SO... THat's not bug of browser ....

Wt next?? I dig into Ext.extend ... and think that's bug of Ext.extent ... BUT... Indeed ... it's not a bug but my poor understanding of javascript ~~~~~

From Ext.extend ... items are considered as prototype attribute SO THAT delete statement WONT work here....

Solution! prevent using extend statement for defining the itemssssssssssssssss

---
Update@4-June-2009
This morning... I spent another hour to fight against a bug due to Ext.extend(). In addition to items, overriding tbar + bbar as prototype attribute DOES ALSO CRASH extjs. Looook OUT!!

Monday, May 25, 2009

The GSOC Package

When I awoke this morning, a FedEx package arrived ~~~ It's My GSOC Package!!


A little bit blur as my phone doesn't have anti-handshake ~o~"

So~ Let's have a macro-shot on the notebook!!


It's pretty the same as Google Notebook XD
 
© 2009 Emptiness Blogging. All Rights Reserved | Powered by Blogger
Design by psdvibe | Bloggerized By LawnyDesignz