RE字符意义与范例^word意义:待搜寻的字串(word)在行首!范例:搜寻行首为#开始的那一行,并列出行号grep-n'^#'regular_express.txtword$意义:待搜寻的字串(word)在行尾!范例:将行尾为!的那一行列印出来,并列出行号grep-n'!$'regular_exp...
分类:
其他好文 时间:
2014-12-17 12:29:46
阅读次数:
243
照前文http://www.cnblogs.com/wtang/articles/4133820.html 给电脑设置了WebStorm的IDE的nodejs开发环境。新建了个express的网站项目。想给网站增加数据库功能,于是需要导入一个包(packages)。在nodejs中操作mongodb...
分类:
Web程序 时间:
2014-12-17 01:32:08
阅读次数:
342
首先是下载包:npm install expressnpm install socket.io建立文件: 服务器端代码:server.js 1 var http=require("http"); 2 var express=require("express"); 3 var sio=require(...
分类:
其他好文 时间:
2014-12-16 23:56:46
阅读次数:
384
Implement regular expression matching with support for '.' and
'*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input...
分类:
其他好文 时间:
2014-12-16 15:12:03
阅读次数:
153
错误描述普通Web项目,Web项目在32位系统上跑的好好的,一点问题没有。使用VS内置的开发服务器调试,页面能正常启动,但一连接数据库就报“ORA-06413: 连接未打开”错误。使用IIS Express或IIS服务器,启动时报错:HTTP 错误 500.21 - Internal Server ...
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-12-15 23:15:31
阅读次数:
231
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2014-12-15 18:48:32
阅读次数:
160
app.js:启动文件,或者说入口文件package.json:存储着工程的信息及模块依赖,当在 dependencies 中添加依赖的模块时,运行npm install,npm 会检查当前目录下的 package.json,并自动安装所有指定的模块node_modules:存放 package.j...
分类:
其他好文 时间:
2014-12-15 17:13:41
阅读次数:
179
在VS主面板打开:工具->选项->调试->编辑继续 取消选中[启用"编辑并继续"] 就OK了 (英文版的请对应相应的操作)不过这是针对所有的调试,如果你想针对单个项目就还是保留VS的设置,直接去项目属性里设置在你的Web项目上右键->属性->Web 取消选中[启用"编辑并继续"] 就OK了VS201...
分类:
其他好文 时间:
2014-12-15 17:10:30
阅读次数:
171
以前安装express总是成功,无意中看到一篇文章,照着安装,成功了,非常感谢!转自:http://blog.csdn.net/mcpang/article/details/26612865今天闲来无事想起了node.js,因此到网上下载了一个node.js的安装程序进行安装。其中:安装程序:nod...