要禁止 Apache 显示目录结构列表,只需将 Option 中的 Indexes 去掉即可。
Options Indexes FollowSymLinks #---------->Options FollowSymLinks
AllowOverride None Order ...
分类:
其他好文 时间:
2014-05-16 23:07:01
阅读次数:
373
1.慢查询日志:slow_launch_time=2
查询大于某个时间的值(单位:s)slow_query_log=on/off
开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log
慢查询日志位置2.连接数:max_connections MyS...
分类:
数据库 时间:
2014-05-15 21:44:08
阅读次数:
447
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:
数据库 时间:
2014-05-15 12:44:41
阅读次数:
385
安排任务的问题。
思路:
因为分报告时间和实际执行任务时间,这里要做的就是尽量使得报告时间和实际执行任务的时间重合,并行,那么就可以减小总时间。
原题:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2829
0.012s的算法,达到网站最高纪录。
...
分类:
其他好文 时间:
2014-05-15 04:23:35
阅读次数:
269
Launch Eclipse and click Help > Install New Software....
Click Add.... In the Add Repository dialog, set the Name to "Force.com IDE" and the
Location to "http://media.developerforce.com/...
分类:
系统相关 时间:
2014-05-15 02:51:11
阅读次数:
480
IE7标准模式下select的高度设定并不一定有效.IE7的select高度的显示和option有关.例如:(以下计算忽略border,padding,margin)一个option高度是22px,css样式:select{height:100px;}100/22=4.xxxx,那么实际的高度就是4*22=88px如果设定的是select{height:110px;}110/22=5,实际高度..
分类:
其他好文 时间:
2014-05-14 16:21:51
阅读次数:
236
文本位置跳转快捷键:跳转到一行的开头:Command+左箭头跳转到一行的末尾:Command+右箭头跳转到当前单词的开头(适合英文、拼音):Option+左箭头跳转到当前单词的末尾(适合英文、拼音):Option+右箭头跳转到全部文本的开头:Command+上箭头跳转到全部文本的末尾:Command...
分类:
其他好文 时间:
2014-05-14 13:27:18
阅读次数:
305
NAME cat - concatenate files and print on the
standard output SYNOPSIS cat [OPTION]... [FILE]...DESCRIPTION Concatenate
FILE(s), ...
分类:
系统相关 时间:
2014-05-14 07:34:14
阅读次数:
398
#!/usr/bin/envpython#coding:utf8fromoptparseimportOptionParserimportsys,os#parser=OptionParser()defset():parser=OptionParser("Usage:%prog[file1][file2]...")parser.add_option("-c","--chars",dest="characters",action="store_true",default=False,help="onlycountc..
分类:
编程语言 时间:
2014-05-13 04:31:41
阅读次数:
488
#!/usr/bin/envpythonimportthreadingimporttimeimportparamikoimportos,sysfromipimportip_list,web_server,ip_msgfromoptparseimportOptionParserfromssh_co.cfg.configimporthost_msgdefopts():parser=OptionParser(usage="usage%progoptions")parser.add_option("-i","--it..
分类:
编程语言 时间:
2014-05-13 03:32:03
阅读次数:
537