2014年8月9日 星期六

[Save Brain Cells] [JS] Check All and Uncheck All by 5 Lines of JS Codes

http://injerry.pixnet.net/blog/post/6477885-%E4%BA%94%E8%A1%8C%E6%90%9E%E5%AE%9Acheckbox%E5%85%A8%E9%81%B8%E6%88%96%E5%85%A8%E4%B8%8D%E9%81%B8

Having examples right away:
http://www.wowbox.com.tw/blog/article.asp?id=2923

<script type="text/javascript">
function check_all(obj,cName)
{
    var checkboxs = document.getElementsByName(cName);
    for(var i=0;i<checkboxs.length;i++){checkboxs[i].checked = obj.checked;}
}
</script> 

 
<body> 
<p><input type="checkbox" name="all" onclick="check_all(this,'c')" />全選/全不選</p> 
<p><input type="checkbox" name="c" value="" /></p> 
<p><input type="checkbox" name="c" value="" /></p> 
<p><input type="checkbox" name="c" value="" /></p> 
<p><input type="checkbox" name="c" value="" /></p> 
</body> 

2014年8月6日 星期三

[Next Level Challenge!] How to Present Your System to New Users

[ This is written based on my personal experience. And this is my first attempt! ]

Task Oriented Approach
 - give them some instructions, then have a little assignment / task for them to accomplish.
 - try to make the first task as simple as possible, so that they will not be afraid of it at the first sight.

Do not provide them too much information at the first moment. That can scare the new users. Teach only some key concepts relating to the task.

Have some attractive diagrams to present the fundamental concepts. This can make the explanation much easier.







How to start writing a user manual for completely new users

Preface

1. what the system is for
2. what is the difference between the new system and the other existing systems
3. How the system model is constructed [ Some simple diagrams ]
4. How does the above relating to other systems [ Diagram of the relationship between system model drawn above and the models of the existing systems ]
5.

2014年8月2日 星期六

[Linux Datetime] Synchronize Server Datetime

NTP Server - We need a Network Time Protocol Server to do the time synchronization task.
Example Domain: time.stdtime.gov.tw, stdtime.gov.hk
http://www.vixual.net/blog/archives/5
http://www.hko.gov.hk/nts/ntimec.htm

Run these commands:
ntpdate -s stdtime.gov.hk
hwclock --systohc

ntpdate : set server clock time
hwclock - set hardware clock time

辦公室心態秘技輯錄

要過感恩的生活,在工作中也要如是。 有同事脾氣暴躁,所以跟他相處不刺激到他已值得感恩了,可是當他發脾氣的時候,告訴自已不要放於心裏,不要被他的說話影響自己就好了。 有同事不負責任,這個很難相處,就做好自己本份,辛苦委屈唯有交托給主。 有同事懶懶閒,這也改變不到他的心態,不與他說話...