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

日常秘技小輯錄

媽媽傳授: 用爉燭塗在線上縫紉,可以更容易打結,以及拉縫線更順 爸爸傳授: 貼玻璃紙前在玻璃面塗上肥皂水,可以移動玻璃紙不留摺痕