Friday, October 24, 2008

MV



1 nites work.

Sunday, October 12, 2008

ExtJS learning notes

Useful tips.
1. 'mousewheel' event indeed can be removed. Something is messed up in my code. Need to figure out a way to avoid functions registered twice.
2. Ext.apply, Ext.applyIf, can quickly apply options to a given object;
3. function.call(this), execute the function under a specific scope.
4. Ext.reg(), register custom xtypes
5. EventManger.onWindowResize(), add custom window resize functions, which are performed right AFTER the viewport sync functions.
6. Function.createSequence can create a function that call same params with the original



Btw, !important in CSS means immutable..and non-overidable D:

Friday, October 10, 2008

Updates



Updates:
1. Added column names and rownames into index, remote loading data.
2. Added the mini map...no click & go functions yet
3. Mousewheel in/out

Weird ext bugs:
1. mousewheel event can't be removed! annoying.
2. same function if registered twice will be performed twice. Trying to sort this out.
3. Weird behavior of selection models. I will get back to this when i have more time.

Wednesday, October 8, 2008

Time Stamp

偶然在Google的右下角看到一个链接:
'try a search from our early days.'

点击进入了2001年的Google。那个时候,我不上百合,也几乎不知网络为何物。
好奇心驱使下,在搜索栏里填入了自己的名字和南京大学。第一个hit,也是
唯一一个和我有关的hit,却打开了我记忆的盒子。

原始的网站早已404了;一个在我活跃在浦口的时代的网站,也许它的一生也不到4位数的
访问量。它默默消失之后,在Google的故纸堆里,如此期待之外的出现。这里面有的人,
早已天各一方;有的人,若干年后在美国偶遇;有些人,也许大家早已互相忘记,只是看
到这个名字,脑海中浮现出一个模糊的影子,然后一瞬间这些画面就清晰了起来。8年前青
涩而充满激情的校园生活,和那其间的我,现在完全feels like a dream.

What has been lost, should not be forgotten.

Tuesday, October 7, 2008

Quick Chip viewer

Around 6-7 hrs of dev time including debugging and fine tuning.


Some new experiences with Ext:
The hidden Ext.lib.Dom provides some handy functions like to calculate the size of the browser window, thanks Jack, it's not in the documentation but i was able to dig it out :)

Viewport is neat but it may take a while to get it work properly; everytime add/remove elements don't forget to call viewport.doLayout()