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

回復天然的模樣

曾經面對過皮膚幽谷的日子。總之就是壞,以及惡性循環。發炎與含膿。就此過渡了令人憧憬的青蔥歲月。 歲月摧人,學習愛護自己。 每天出門都搽防曬。好好睡覺。不喝冷飲。少吃辛辣。 發現原來皮脂管絲是正常的皮膚狀況,不用理會。 漸漸的,發炎與紅腫的地方收歛了、縮小了、變平了。 因為少了油脂...