Friday, October 24, 2008
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:
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.
'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()
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()
Tuesday, September 16, 2008
Adding Javascript Libs to Blogspot
In the html/javascript widget, don't paste in all your source libs. If you have a static place to host these libs. Then simply:
[script type="text/javascript" src=".."][script] xml not hapy with greater than and less than. :S
It works! =D Now i can add tons of custom functions to Blogspot. The code-ability of this hosting is unbeatable.
[script type="text/javascript" src=".."][script] xml not hapy with greater than and less than. :S
It works! =D Now i can add tons of custom functions to Blogspot. The code-ability of this hosting is unbeatable.
Home Theater + PC Gaming System
To build this whole system requires a lot of PhD research. :)
Display Panels:
Samsung 50" 720p Plasma.
Samsung 22" 1050p LCD.
Power house 1:
Core Duo 2 E8500 3.16GHz
Radeon 4870 HD 512Mb
650G HDD
Eclipse Keyboard + MX518 mouse
Power house 2:
Xbox 360, Playstation 2
Audio: Logitech/Creative 5.1 + 2.1
Controllers:
Key+mouse * 2 sets, PS2 controllers * 2, Logitech Dual Shock * 1, Driving Force * 1, XB360 Controllers * 2, Guitar * 1.
I <3 my den!
Display Panels:
Samsung 50" 720p Plasma.
Samsung 22" 1050p LCD.
Power house 1:
Core Duo 2 E8500 3.16GHz
Radeon 4870 HD 512Mb
650G HDD
Eclipse Keyboard + MX518 mouse
Power house 2:
Xbox 360, Playstation 2
Audio: Logitech/Creative 5.1 + 2.1
Controllers:
Key+mouse * 2 sets, PS2 controllers * 2, Logitech Dual Shock * 1, Driving Force * 1, XB360 Controllers * 2, Guitar * 1.
I <3 my den!
Subscribe to:
Posts (Atom)
