一、Bower的安装 ? ?npm install bower -g 安装依赖:NodeJS 、Git ? ?解决方法一: ? ?添加git到window的环境变量中。设置path路径为C:\Program Files\Git\bin(填写自己的路径) ? ? ?解决方法二: $?...
分类:
其他好文 时间:
2015-07-29 12:31:23
阅读次数:
132
#requires-Version5$Source=‘C:\somezipfile.zip‘$Destination=‘C:\somefolder‘$Overwrite=$true$ShowDestinationFolder=$trueExpand-Archive-Path$Source-DestinationPath$Destination-Force:$Overwriteif($ShowDestinationFolder){explorer.exe$Destination}
分类:
系统相关 时间:
2015-07-29 12:25:41
阅读次数:
392
1.由于最近用到mongodb但查询时前十分左右,用压力测试不太稳定,所以换成第三方引擎试试,但效果还是一样。具说第三方引擎比较给力,但在使用没有发现。现将mongodb切换wiredtiger引擎的配置如下; destination: file path: /soft/mongodb/log/lo...
分类:
数据库 时间:
2015-07-29 12:08:09
阅读次数:
690
nginx参数:
--prefix=指向安装目录
--sbin-path指向(执行)程序文件(nginx)
--conf-path=指向配置文件(nginx.conf)
--error-log-path=指向错误日志目录
--pid-path=指向pid文件(nginx.pid)
--lock-path=指向lock文件(nginx.lock)(安装文件锁定,防止安装文件被别人..
分类:
其他好文 时间:
2015-07-29 10:25:28
阅读次数:
213
给定两个四位素数a b,要求把a变换到b变换的过程要保证 每次变换出来的数都是一个 四位素数,而且当前这步的变换所得的素数 与 前一步得到的素数 只能有一个位不同,而且每步得到的素数都不能重复。求从a到b最少需要的变换次数。无法变换则输出Impossible输入:第一行 是一个数T 表示下面有T个测...
分类:
其他好文 时间:
2015-07-29 10:13:04
阅读次数:
139
原文出处提供两种实现方法,但是第一种效率最好第一种: "; //此处设一个计时器 开始时间$fp = fopen($file_path , 'r') or die("open file failure!");if($fp){//获取文件的一行内容,注意:需要php5才支持该函数;while(str....
分类:
Web程序 时间:
2015-07-29 09:02:07
阅读次数:
116
Apache配置文件详解之httpd.conf(2)一.<directory></directory>语指令句(说明:<directory>path</directory>主要是对目录文件访问权限的控制)我们都知道Apache配置文件:httpd.conf文件中有这么几行内容,如下<Directory/>AllowOverridenone..
分类:
Web程序 时间:
2015-07-29 06:35:32
阅读次数:
138
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
">
My JSP 'c.jsp' starting pag...
分类:
其他好文 时间:
2015-07-29 06:26:55
阅读次数:
110
find·find path -option [ -print ] [ -exec -ok command ] {} \;find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将...
分类:
其他好文 时间:
2015-07-29 06:14:38
阅读次数:
143
1.下载tomcat7并配置好JAVA_HOME,tomcat7\webapps目录除了manager之外,其它都可以删除(删除没用的,可加速tomcat的启动).2.新建系统变量CATALINA_HOME,值为:C:\opensource\tomcat-7.0.34,在系统变量Path的最后面添加...
分类:
Web程序 时间:
2015-07-29 06:12:38
阅读次数:
170