上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 两种方法,一种是加括号一种是加叹号,new Function()的方法没有成功。```javascriptvar a = "function(args){console.log(args)}"undefinedeval(eval('(' + a + ')')('test'))test VM239:1... 阅读全文
posted @ 2014-07-29 11:46 nil 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 使用nodejs来模拟form表单进行文件上传,可以同时上传多个文件。以前项目里有这个方法,最近在客户那里出问题了,同事说,这个方法从来就没管用过,SO,用了一天时间把这个方法给搞出来了(觉得花费的时间长了点),分享之。代码及测试用例:```javascriptvar http = require(... 阅读全文
posted @ 2014-07-08 10:01 nil 阅读(5497) 评论(14) 推荐(3) 编辑
摘要: 使用“VS2013 开发人员命令提示”运行签名工具。转到要签名的文件目录运行命令:```csharpsigntool sign /a 要签名的程序.exe```signtool 的相关命令```csharpUsage: signtool [options] Valid command... 阅读全文
posted @ 2014-06-25 17:16 nil 阅读(2165) 评论(0) 推荐(0) 编辑
摘要: 注意配置段中的区域包含关系.proxy_cache_patch 要在proxy_cache前已经定义.>>>> what seems to be the problem?>>>>>>>> [emerg]: the size 52428800 of shared memory zone "media"... 阅读全文
posted @ 2014-04-27 17:55 nil 阅读(5570) 评论(0) 推荐(0) 编辑
摘要: ```rubydef deleteDirectory(dirPath) if File.directory?(dirPath) puts "是文件夹"; Dir.foreach(dirPath) do |subFile| if subFile != '.' and subFile != ... 阅读全文
posted @ 2014-04-16 18:21 nil 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: 只是简单的copy文件和添加快捷方式,安装和卸载时对程序是否运行进行检测```nsi;--------------------------------;Include Modern UI !include "MUI2.nsh";--------------------------------;Interface Settings !define MUI_ABORTWARNING !define PRODUCT_UNINST_KEY "Software/Microsoft/Windwos/CurrentVersion/Uninstall/AppName" 阅读全文
posted @ 2014-02-25 13:29 nil 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 将node-expat扩展编译至node.exe中,编译环境为Windows。 阅读全文
posted @ 2014-02-17 11:31 nil 阅读(1570) 评论(0) 推荐(2) 编辑
摘要: 1. 下载nodejs https://github.com/joyent/node2. 下载odbc for nodejs 扩展 https://registry.npmjs.org/odbc/-/odbc-0.6.2.tgz3. 在nodejs文件夹运行vcbuild.bat,生成成功后使用Visual Studio打开解决方案node.sln。4. 解压odbc-0.6.2.tgz,将lib目录中的所有文件添加至node项目中的lib文件夹中,并添加至解决方案。将src文件夹中的所有文件添加到node项目中src文件夹中,并添加至解决方案。5. 在Visual Studio中选中node 阅读全文
posted @ 2014-02-12 11:12 nil 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 第一次编译的时候电脑上未安装python,遂下载了python最新版本3.3.3,但是报了下面这个错误。 ![](http://images.cnitblog.com/blog/289132/201401/171631443612.png)把python降到2.7.*的版本即可。我这里测试2.7.6和2.7.3版本可以正常编译。 阅读全文
posted @ 2014-01-17 16:34 nil 阅读(444) 评论(1) 推荐(0) 编辑
摘要: PS:第一次写的很详细,可惜发布失败,然后全没了,这是第二次,表示只贴代码,剩下的自己领悟好了,这就是所谓的一鼓作气再而衰吧,希望没有第三次。版本: ruby 2.1.0 rails 4.0.2 nginx 1.5.8mainline version unicorn 4.7.0/usr/local/nginx/conf/nginx.conf 1 user NginxUser NginxGroup; 2 worker_processes 1; 3 4 events { 5 worker_connections 1024; 6 } 7 8 http { 9 incl... 阅读全文
posted @ 2014-01-08 11:15 nil 阅读(905) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页