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

[康復路] 試完又試

見了醫生,因為血色素又變低了,醫生想檢查是否「缺鐵」為成因,檢查又檢查…… 感覺有些麻煩……又抽血,又要留樣本…… 令我回想起當日入院的時光,因為一些原因,留樣本只需留一次,免卻留三次的麻煩;現在每天都要留一次,連續三天。每天早上就要跑醫院一趟再上班。 幸好也完成了。 第二次抽血...