//pbak是要检查是否为空的文件夹路径 if (Directory.GetDirectories(pbak).Length > 0 || Directory.GetFiles(pbak).Length > 0) { Response.Write(""); }
分类:
其他好文 时间:
2014-07-06 22:13:49
阅读次数:
629
Mac 使用 NFS 连接 Centos 上的共享文件夹NFS介绍网络文件系统(Network File System,NFS),一种使用于分散式文件系统的协议,由升阳公司开发,于1984年向外公布。功能是通过网络让不同的机器、不同的操作系统能够彼此分享个别的数据,让应用程序在客户端通过网络访问位于...
分类:
其他好文 时间:
2014-07-06 22:04:23
阅读次数:
328
1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:
编程语言 时间:
2014-07-06 21:57:42
阅读次数:
236
//Situation System prompts"xxx is not in the sudoers file"(xxx equals the user name)while executing command "sudo": sudo-i Password: xxx ...
分类:
其他好文 时间:
2014-07-06 21:39:36
阅读次数:
175
前言环境:ubuntu12.04一. ubuntu设置默认开机界面在网上查看了好几种方法,对于当前环境方便或者有用的方式是对/etc/default/grub文件进行设置。1.默认开机命令行界面file: /etc/default/grub文件中GRUB_CMDLINE_LINUX_DEFAULT=...
分类:
其他好文 时间:
2014-07-06 21:29:16
阅读次数:
195
1、导入命令:imp userId/psw@orcl full=y file=D:\data\T_DAYLOG_CALLANALYSIS.dmp ignore=y2、导出命令exp userId/psw@orcl file=d:\dkj\test.dmp tables=(wf_test)如出现:”只...
分类:
数据库 时间:
2014-07-06 21:27:15
阅读次数:
239
1. Block Change Tracking 启用块修改跟踪特性,0级的增量备份肯定还得扫描所有数据文件,不过其后依赖这一0级备份集创建的增量备份就可以通过块修改跟踪文件来获取修改过的块了。 修改跟踪文件是基于整个数据库的,如果使用了OMF,该文件创建于DB_CREATE_FILE_DEST参数...
分类:
其他好文 时间:
2014-07-06 20:14:04
阅读次数:
175
生成器>>> def func1():... yield 0... yield 1... >>> a=func1()>>> a.next()0>>> a.next()1>>> a.next()Traceback (most recent call last): File "", l...
分类:
编程语言 时间:
2014-07-06 20:07:34
阅读次数:
251
linux中tail命令---用于查看文件内容最基本的是cat、more和less。1. 如果你只想看文件的前5行,可以使用head命令,如:head -5 /etc/passwd2. 如果你想查看文件的后10行,可以使用tail命令,如:tail -2 /etc/passwd 或 tail -n ...
分类:
其他好文 时间:
2014-07-06 19:40:39
阅读次数:
161
流方式上传:$post_input = 'php://input';$save_path = dirname( __FILE__ );$postdata = file_get_contents( $post_input );if ( isset( $postdata ) && strlen( $po...
分类:
其他好文 时间:
2014-07-06 19:08:44
阅读次数:
177