1.在 Apache 配置中启用 Rewrite,打开配置文件 httpd.conf, 若无法找到此文件,可使用 find / -name httpd.conf 如下图所示: 注意:本文搜索的httpd.conf的路径是 /etc/httpd/conf/httpd.conf 文件,此文对此进行说明。 ...
分类:
Web程序 时间:
2016-07-22 20:51:37
阅读次数:
230
useadmin#进入数据库admindb.addUser(‘name‘,‘pwd‘)#增加或修改用户密码db.system.users.find()#查看用户列表db.auth(‘name‘,‘pwd‘)#用户认证db.removeUser(‘name‘)#删除用户showusers#查看所有用户showdbs#查看所有数据库showcollections#查看所有的collectiondb.printCollect..
分类:
其他好文 时间:
2016-07-22 14:52:01
阅读次数:
172
javascript 获取iframe元素的方法 第一种: $("#IframeID").contents().find("div"); 第二种: $(window.frames["IframeID"].document).find("div"); 父窗口: $(window.parent.docu ...
分类:
编程语言 时间:
2016-07-22 12:51:51
阅读次数:
182
1.{}和之间有一个空格 2.find . -name 之间也有空格 3.exec 是一个后续的命令,{}内的内容代表前面查找出来的文件 linux下批量删除空文件(大小等于0的文件)的方法 用这个还可以删除指定大小的文件,只要修改对应的 -size 参数就行,例如: 就是删除1k大小的文件。(但注 ...
分类:
系统相关 时间:
2016-07-22 12:47:23
阅读次数:
136
Description There is a cycle with its center on the origin. Now give you a point on the cycle, you are to find out the other two points on it, to maxi ...
分类:
其他好文 时间:
2016-07-21 23:39:00
阅读次数:
283
1、命令介绍: find用来在整个系统指定的路径下搜索文件,功能强大,但是遍历整个系统时很耗时间。 2、命令格式: find 路径 [选项] [print -exec -ok...] 3、命令参数: -print: find命令将匹配的文件输出到标准输出。 -exec: find命令对匹配的文件执行 ...
分类:
系统相关 时间:
2016-07-21 23:31:09
阅读次数:
267
Description FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as mu ...
分类:
其他好文 时间:
2016-07-21 23:29:09
阅读次数:
275
1.打开韩寒博客列表页面 http://blog.sina.com.cn/s/articlelist_1191258123_0_1.html 目标是获取所有文章的超级链接 2.韩寒文章列表特征 <a title target... href=....html> 3.技术要点 ·字符串函数find · ...
分类:
其他好文 时间:
2016-07-21 22:02:50
阅读次数:
143
find命令选项 -name 按照文件名查找 -type 查找某一类型的文件(b 代表设备块;d 目录;c 字符设备文件;l 符号(软)链接文件;f 普通文件) -size 查找文件长度或者大小 -prune 查找文件时排除当前文件夹,不查找 -path -depth 查找文件时,首先查找当前文件、 ...
分类:
系统相关 时间:
2016-07-21 21:53:36
阅读次数:
281
题目来源:http://www.lintcode.com/zh-cn/problem/find-the-missing-number/ C++版 VS2012测试通过: ...
分类:
其他好文 时间:
2016-07-21 21:50:17
阅读次数:
135