2009-09-29

What is the difference between an accelerators and a hotkey?

http://www.codeproject.com/KB/tips/cppfaq25apr8jun.aspx#q410

Q 4.10 What is the difference between an accelerators and a hotkey? [top^]

A. Iain Clarke Quoted :-

People use the two names interchangably.
Hot Key is a common user name for an accelerator. Being pedantic... An accelerator is a part of an accelerator table. (LoadAccelerator, TranslateAccelerator, etc.) It only works when your application has the keyboard focus.

A Hot Key is a a system wide key (RegisterHotKey, UnregisterHotKey). When pressed, windows send a WM_HOTKEY message to you. It works all the time. You could use it to make a certain key combination do something even when your application is hidden. (eg. screen capture, etc).

I would not recommend having it active all the time, as it may collide with accelerators of other applications.

James R. Twine Quoted :-

Some also confuse one or both of those words with a "mnemonic", which is the underlined character you get on dialog controls allowing you to focus or activate that control using the <ALT>key along with the key of the underlined character. They (mnemonics) are also used on top-level Menus and Menu Items (although you do not need to use the <ALT>key when a menu or menubar is active).


2009-09-27

VMware虚拟机时间同步

把.vmx的tools.syncTime选型设成TRUE,则每次启动虚拟机时,Guest的时间会自动与Host同步。

详情请参考:

Synchronizing the Time in the Guest with the Host Operating System

Timekeeping in VMware Virtual Machines

2009-09-24

Source Insight的bug

查找一个 A[B|C] 的字符串,Source Insight总是当作正规表达式来查找,即使Search Method是Simple String。

2009-09-23

任何学校都不能以学生为赚钱的对象,没有哪个国家把学生作为商品或财源来榨取的。

1. 转自 组织小学生看广告,愚蠢干部还是愚蠢老师?
鹿城区教师组织各班小学生和家长共同看浙江少儿频道9月13日早上7点35分的节目,还要填写调查问卷交给老师。认真看下来,原来是推销《助你早成才》的光盘的广告片。一套光盘好几百啊!这样愚蠢的事情,温州以前出过,也是教育局通知学生组织看广告片,还被媒体曝光了,被人笑话。但是,就是没有问责。这次又是这样!我想,政府官员是不至于这样愚昧的,其间是否有利益问题?值得彻查!坐这样的事情,教育局和学校的形象太差了!太倒霉了!

2. 看教育讲座记录

3. 转自 电视台,学校有这样推销伪科学的?
小孩学校里发了张调查问卷,要求周日观看浙江少儿频道的助你早成才节目,并填写问卷。
主要内容是单词联想记忆法。比如pest(害虫),联想到"拍死他"就很容易记住了。内容没讲多少,主要让人买他几百块的光盘。
电视台这样主流媒体大肆宣扬这种小道方法,我觉得可能会误人子弟!
这种记忆法好不好,我问过自己大学老师,而且自己大学三年级就过了六级的。
我觉得:
这种方法针对年龄大、记忆力衰退、从来没有学习过英语的人群也许会有一定销路。
这种方法容易使同学在英汉互译时混淆,不大好,而且不能显示单词的变化,扩展。最后记忆量也有限,短期可能有效,长期来说对学英语帮助可能为负。
,但最好的还是还是用音标,音标的读音很准确,我建议还是用音标.配合词根法比较好。大点的学生可以用阅读来在文章中记忆。