预览模式: 普通 | 列表

删除所有.svn目录

当使用了svn版本控制系统后每个目录下都会有一个.svn目录存在,开发完当交付产品或者上传到服务器时一般要把这些目录删除,这里总结了一下在linux和win下的办法。

一、在linux下

删除这些目录是很简单的,命令如下 find . -type d -name ".svn"|xargs rm -rf

或者

find . -type d -iname ".svn" -exec rm -rf {} ";  

全部搞定。(http:/

[阅读全文]

chm索引不见,也不能搜索

应该是 hhctrl.ocx 等文件出现了问题
可以尝试
  1. regsvr32 hhctrl.ocx
  2. regsvr32 itss.dll
  3. regsvr32 itircl.dll //这个很重要,是关于全文搜索的。

mysql忘记密码怎么办?

Windows:
1.用系统管理员登陆系统。
2.停止MySQL的服务。
3.进入命令窗口,然后进入MySQL的安装目录,比如我的安装目录是c:mysql,进入C:mysqlbin
4.跳过权限检查启动MySQL,
c:mysqlbin>mysqld-nt --skip-grant-tables
5.重新打开一个窗口,进入c:mysqlbin目录,设置root的新密码
c:mysqlbin>mysqladmin -u root flush-privileges password "newpassword"
c:mysqlbin>mysqladmin -u root -p

[阅读全文]

判断网页DocType类型

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
</head>
<body>
<script>
function detectDoctype(){
    try{
        var re=/s+(X?HTML)s+([d.]+)s*([^/]+)*//gi;
        var res=false;
        /*********************************************
        Just check for internet explorer.
        **********************************************/
        if(typeof document.namespaces != "undefined")
            res=document.all[0].nodeType==8 ? re.test(document.all[0].nodeValue) : false;
        else
            res=document.doctype != null ? re.test(document.doctype.publicId) : false;
        res=new Object();
        if(res && RegExp.$1){
            res['xhtml']=RegExp.$1;
            res['xhtml'] = res['xhtml'].toUpperCase();
            res['version']=RegExp.$2;
            res['importance']=RegExp.$3;
            return res;
        }
    }catch(e){

    }
    return null;
}
var myversionInfo = detectDoctype();
if(myversionInfo != null){
    alert(myversionInfo.xhtml);
    alert(myversionInfo.version);
    alert(myversionInfo.importance);
}
else{
    alert("There is no DOCTYPE in the code!");
}
</script>
</body>
</html>

下载文件doctype.rar (678 Byte , 下载:45次)

格式化数字的多个

//格式化数字
function format_number(num, dot, dec_point){
    try{
        num = parseFloat(num);
        if(typeof(dot) == 'undefined')var dot=2;
        if(typeof(dec_point) == 'undefined'

[阅读全文]

使用 PHP 和 Oracle 实施分页结果集

http://www.oracle.com/technology/global/cn/pub/articles/oracle_php_cookbook/fuecks_paged.html

使用 PHP 和 Oracle 实施分页结果集
作者:Harry Fuecks

学习如何实施分页结果集并高效显示大型结果集。

[阅读全文]

如何使用oracle的date型数据

SQL>   select   to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss   am')   from   dual;  
   
  TO_CHAR(SYSDATE,'YYYY-MM  
  ------------------------  
  2002-08-31   10:34:07   上午 


存的时候可以用to_date(‘

[阅读全文]

Oracle 数据库date与Unix时间戳转换

http://www.oracle.com/technology/global/cn/pub/articles/oracle_php_cookbook/fuecks_dates.html
Unix时间戳记是从'1970-01-01 00:00:00'GMT开始的秒数,表现为整数型。

Oracle中的时间是Date型,以下函数提供了两种时间转换的Oracle函数 bitscn.com

(1)从Unix时间戳记转换为Oracle时间

create or replace function unix_to_oracle(in_number NUMBER) return date

[阅读全文]

本博客立志于收集各类技术信息,便于本人和广大网友检索,无论公司或个人认为本站存在侵权内容均可与本站联系,任何此类反馈信息一经查明属实后,将立即删除!