Add the following lines:
XX.XX.XXX.XXX www.thedomainname.com
XX.XX.XXX.XXX thedomainname.com
XX.XX.XXX.XXX www.thedomainname.com
XX.XX.XXX.XXX thedomainname.com
<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>
ntpdate -s stdtime.gov.hkhwclock --systohc
cd [the_cakePHP_project_location_until_app_folder]
cake hello
cake hello hey_there Whimsy
# minute (0 - 59)# hour (0 - 23)# day of month (1 - 31)# month (1 - 12) OR jan,feb,mar,apr ...# day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat# * * * * * command to be executed
30 3 * * * php /home/scripts/do_something.php
30 3 * * * wget your.domain.com/do_something.php
$data = array( array('title' => 'title 1', 'Assoc' => array('field' => 'value')), array('title' => 'title 2'), ); $data = array( array( 'Article' => array('title' => 'title 1'), 'Assoc' => array('field' => 'value') ), array('Article' => array('title' => 'title 2')), ); $Model->saveMany($data, array('deep' => true));saveAssociated()
$data = array( 'Article' => array('title' => 'My first article'), 'Comment' => array( array('body' => 'Comment 1', 'user_id' => 1), array( 'body' => 'Save a new user as well', 'User' => array('first' => 'mad', 'last' => 'coder') ), ), );
$Article->saveAssociated($data, array('deep' => true));
The correct response:
Waiting for VM "{The VM Name}" to power on...
VM "{The VM Name}" has been successfully started
# Inside the crontab file
# * Output a .sql backup file
# Say, do the following at 3:00 a.m. daily
# Note that slash is needed for escaping character '%', and ':' in the file name is prohibited
0 3 * * * mysqldump -u {The MySQL username} --password={The password} {The database name} > {The directory path for storing the backup .sql file, e.g. [/home/me/mysql_backup/]}{file name, e.g. [mysql_backup_`data +\%Y=\%m-\%d_\%H=\%M-\%S`.sql]} 2>&1
# * Synchronize to the other database
# Say, do the following at 4:00 p.m. daily
0 16 * * * mysqldump -u {The MySQL username} --password={The password} {The database name} | mysql -u {The remote MySQL's username} --password={The remote MySQL's password} --host={The remote host's IP, e.g. 192.168.1.40 or external IP} {The remote database name} 2>&1
We generally ignore geo-meta tags like that because we've found that they're generally incorrect (copy & pasted from a template, etc).
print_r($i_am_an_array);To this:
echo '<pre>', print_r($i_am_an_array, true), '</pre>';
Rule of thumb: Tabs should be used at the beginning of the line for indentation, while spaces can be used mid-line for alignment.Comma of Array
Note the comma after the last array itemRegex
It’s most convenient to use single-quoted strings for regular expressionsEnd of Line / End of File
Remove trailing whitespace at the end of each line of code. Omitting the closing PHP tag at the end of a file is preferred.SQL Formatting
$wpdb->prepare()
is a method that handles escaping, quoting, and int-casting for SQL queries.
- “Fixes bug described in #20″
- “XYZ_Class test() method visibility to public to fix errors in #20″
見了醫生,因為血色素又變低了,醫生想檢查是否「缺鐵」為成因,檢查又檢查…… 感覺有些麻煩……又抽血,又要留樣本…… 令我回想起當日入院的時光,因為一些原因,留樣本只需留一次,免卻留三次的麻煩;現在每天都要留一次,連續三天。每天早上就要跑醫院一趟再上班。 幸好也完成了。 第二次抽血...