Cheet's profile忘了烦恼 可爱多好™PhotosBlogLists Tools Help

最新评论

Loading...Loading...

Cheet Dora

Windows Media Player

Photo 1 of 5

忘了烦恼 可爱多好™

http://www.pokesoft.org/blog
November 10

Machine-Talking

My own real-life experience:

reboot
Command not recognized.
restart
Command not recognized.
shutdown
Command not recognized.
shutup


Connection to host lost.

November 02

Something useful for Bugzilla DB migration

http://www.ravenbrook.com/project/p4dti/tool/cgi/bugzilla-schema/

There's a complete database of all bugzilla db schema

You can diff them easily by selecting the versions....saved me lots of time try to dig out schema by my self
October 07

奇怪死人了...

我的ADSL router 一直有这样一个问题...

我只要一开MSN -> 20秒后, 所有的无线/有线连接都断掉....只能重启router....

我多方研究考察,未果

于是我无聊开始给我的router downgrade....down完了,不能上网了...DSL 灯一直2Hz地闪...看来是不能建立ADSL连接, 但我的LAN还是ok的,可以继续连接router...

%*$(@$^了一圈,还是没结果, 强制reset....还是不行

于是我有upgrade回来...也一样...强制reset...还是不行...

气死我nnd了...用我的Mobile Broadband上网吧....2镑呢!!

网上搜了一圈,也没什么办法....得了,咱就别装NB了,给support打电话吧

听了10分钟的无聊噪音电话通了...说明了情况...对方说这样,你把墙上的电话接口拆了,里面有个test socket, 插那里插20~30分钟,不行在给我打电话...

嗯,可能是Sync问题. 于是我就找螺丝刀...找啊找,找到了....正要撬墙角呢...猛然瞥见router的internet灯亮了!!

然后就有能上网了...nnd真奇怪....

这电话打的还挺神奇...直接fix了...

而且更神奇的是MSN问题也有所改善....现在不是20秒了...该20分钟断网了.....

....我不敢乱搞了...就用山寨版MSN得了...

UPDATE

又有问题了...我继续打电话....后来懒得打了..

端着螺丝刀就冲了过去...

你猜怎么着?

好了!

气死我了..

September 09

英国一猫咪被卷洗衣机 眼冒金星奇迹幸存


当地时间8月25日,英国伊普斯威奇一只名叫Reefa的冒失猫咪被洗衣机狂卷后被救出,想必它的世界早已颠倒混乱,表情极其扭曲,好在小猫命大奇迹幸存。Reefa的主人多米尼克·哈丁说,5个月大的顽皮小猫爬进洗衣机后缩成黑色的一团,所以没有被发现。直到洗衣机转动Reefa发出惨叫,多米尼克·哈丁的女友才将它救出。


August 18

Submit a HTML form with disabled fields

I have been trying to disable all the fields before submit, so no extra validation will be needed for the edit page.

It is not possible to submit a DISABLED field…


A possible solution is use READONLY attribute, but this is for textfield and textarea ONLY,  but I want all the fields to be un-changeable.

After some research, I summerised the following techniques (hacks):


  1. The first is ugly, it involves using JavaScript on the onsubmit handler to enable all of the disabled fields. Yucky, bit some people perfer this to the next method.
  2. The second is rather easy, change the fields to readOnly instead of diabled. If you want to have the same look as disabled apply some css classes to those elements.
    Looks disabled: http://codingforums.com/showthread.php?t=13372
  3. Hidden fields: When you submit the form with the disabled fields, intercept that and  transfer all the entries into the hidden fields, and then submit that.
    http://www.faqts.com/knowledge_base/view.phtml/aid/18073

And guess what, I’ve chosen the ugly approach, #1:



function lockValues()
{
       var x = elem(”Edit”).elements;

	for(var i=0; i
…because it is the simplest working solution~

dhtml tree menus

Tree menus look very good on pages, but hard to implement (well, not easy to implement) by hand, so here are some written code for building tree menus:

Professional and Nice-looking, commerical product :(  I recommend you see the demos on their website!


This one, simple but effective, and it has a good tutorial walking you through the process


August 06

JavaScript Time Picker

The first ever Time Picker that utilize a very easy drag and drop interface. With it’s unique design, anyone can drag the minutes or hour hands independently to select a time.


Not very easy to use, I have to say ;( Im not going to use that, but it’s good enough for JS.

http://pttimeselect.sourceforge.net/example/index.html <- this is cool but does not have seconds & requires jQuery.



http://home.jongsma.org/software/js/datepicker <- nice, got standalone TimePicker, but not for secs :(

After all, I decided to do my own time picker (with sec and TZ ) using HTML….