摘要:
日志滚动,获取 tail -f 里的信息 如果 存在“Too many open files”那么重启apache 设置开机运行 [root@2082 etc]# vi rc.local su root -c "/usr/bin/perl /lcx/reapache.pl &" 阅读全文
摘要:
在web.config这样声明编码 <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />左框架静态页面这样声明<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />右框... 阅读全文
摘要:
从http://ftp.apnic.net/apnic/dbase/tools/获取地址shell> wget http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz shell> tar xzvf ripe-dbase-client-v3.tar.gzshell> cd whois-3.1shell&... 阅读全文
摘要:
文件操作,最难的部分就是编码问题了。using System;using System.Collections.Generic;using System.Text;using System.IO;namespace Microshaoft.Text{ #region Class IdentifyEncoding..... /// <summary> /// 检测字符编码的类 /// &... 阅读全文
摘要:
今天一台MSSQL2000出问题,SQLSERVERAGENT服务又启不过来,胡乱撮写的一个脚本。 '*******************************************************************' 目的:当MSSQL的SQLSERVERAGENT启不过来时,可以用这个脚本来备份全部数据库,也可以做成计划任务来执行' 注意还原master数据库要用单用户启动... 阅读全文
摘要:
mssql 的sp_help好难看。//mysql的desc/ 阅读全文
摘要:
<script language=javascript> function reloadpage() { parent.parent.location.reload(); parent.parent.GB_hide(); } </script> <a href="javascript:reloadpage()">关闭 </a> http://gexc... 阅读全文
摘要:
获取一组radio被选中项的值 var item = $('input[@name=items][@checked]').val(); 获取select被选中项的文本 var item = $("select[@name=items] option[@selected]").text(); select下拉框的第二个元素为当前选中值 $('#select_id')[0].selectedIndex... 阅读全文
摘要:
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')http://support.microsoft.com/kb/321185/zh-cn 阅读全文
摘要:
[代码]IE8取不到 select 的option值,而IE7正常,可以声明用IE7来解析页面<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7"/> 阅读全文