作为数据库软件,我们要确保数据的安全,不是谁都可以访问的,所以mongodb也像其他的数据库软件一样可以采用用户验证的方法, mongodb 3.0之前的版本提供了addUser方法向不同的数据库添加可信任的用户,mongodb 3.0开始之后的版本则改成了createUser方法, 我这里用的最新 ...
分类:
数据库 时间:
2016-11-08 19:26:42
阅读次数:
189
要把应用程序添加为服务,你需要两个小软件:Instsrv.exe和Srvany.exe。Instsrv.exe可以给系统安装和删除服务,Srvany.exe可以让程序以服务的方式运行。这两个软件都包含在Windows NT Resource Kit里,如果你没有,也可以到网上下载。把这两个程序保存在 ...
分类:
其他好文 时间:
2016-11-08 16:38:07
阅读次数:
155
<s:element ref="s:schema" /> <s:any /> <s:any minOccurs="2" maxOccurs="2" /> 免费的webservice接口:http://www.webxml.com.cn/zh_cn/web_services.aspx 天气查询的wsd ...
分类:
移动开发 时间:
2016-11-08 13:42:12
阅读次数:
197
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: Solution: Because "There are many ...
分类:
其他好文 时间:
2016-11-08 08:00:54
阅读次数:
179
A part of Natural Language Processing (NLP) is processing text by “tokenizing” language strings. This means we can break up a string of text into part ...
分类:
编程语言 时间:
2016-11-08 07:40:07
阅读次数:
192
一看跟子串相关,就是后缀那一套了。想法是这样的,尽量在文本串中找到更长的子串与当前串匹配。若无法继续匹配了,则重新匹配,答案+1。这里我选择了后缀自动机,实现起来好写。 这也算是SAM的模版了叭。 ...
分类:
其他好文 时间:
2016-11-07 22:20:33
阅读次数:
281
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13920 Accepted: 6965 Description Given n, a positive integer, how many positive integers le ...
分类:
其他好文 时间:
2016-11-07 22:05:27
阅读次数:
165
在/tomcat/bin/catalina.sh 中添加: CATALINA_OPTS='-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1 ...
分类:
其他好文 时间:
2016-11-07 17:49:39
阅读次数:
235
#!/bin/shBACK_DB=carsharingDbOUT_DIR=/home/jianyeruan/app/mongo #临时备份目录TAR_DIR=/home/jianyeruan/app/mongotar #备份存放路径DATE=`date +%Y%m%d%H` #获取当前系统时间DB_ ...
分类:
其他好文 时间:
2016-11-07 07:47:42
阅读次数:
204
当你的selenium WebDriver 启动IE11报这个错时:Unable to find element on closed window (WARNING: The server did not provide any stacktrace information),通过Google解决了 ...