上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 将node-expat扩展编译至node.exe中,编译环境为Windows。 阅读全文
posted @ 2014-02-17 11:31 nil 阅读(1587) 评论(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 阅读(751) 评论(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 阅读(464) 评论(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 阅读(914) 评论(0) 推荐(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-04 17:26 nil 阅读(738) 评论(8) 推荐(0)
摘要: 新建项目rails new mongoid_app --skip-active-record --skip-test-unit --skip-bundle create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/javascripts/application.js create app/assets/s... 阅读全文
posted @ 2013-12-30 16:53 nil 阅读(1415) 评论(0) 推荐(0)
摘要: # mongodb.conf# Where to store the data.dbpath=/var/lib/mongodb#where to loglogpath=/var/log/mongodb/mongodb.loglogappend=truebind_ip = 127.0.0.1#port = 27017# Enable journaling, http://www.mongodb.org/display/DOCS/Journalingjournal=true# Enables periodic logging of CPU utilization and I/O wait#cpu 阅读全文
posted @ 2013-12-06 10:30 nil 阅读(818) 评论(0) 推荐(0)
摘要: 闲的JJ疼,用 xaml画了个博客园的logo,Metro风格的。xaml代码 ... 阅读全文
posted @ 2013-11-29 13:53 nil 阅读(1092) 评论(0) 推荐(0)
摘要: sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo mkswap /swap sudo swapon /swapNginx with Passenger support was successfully installed.Please edit your Nginx configuration file (probably /usr/local/nginx//conf/nginx.conf),and set the passenger_root and passenger_ruby configuration options in t... 阅读全文
posted @ 2013-11-20 12:01 nil 阅读(310) 评论(0) 推荐(0)
摘要: || :条件“或”,条件或运算符 (||) 执行的逻辑或其bool操作数。如果第一个操作数计算结果为true,第二个操作数对象不会计算。如果第一个操作数计算结果为false,第二个运算符确定或表达式整体是否计算结果为true或false。http://msdn.microsoft.com/zh-cn/library/6373h346.aspx^:逻辑“或”,二元^运算符是为整型和bool类型预定义的。对于整型,^将计算操作数的按位“异或”。对于bool操作数,^将计算操作数的逻辑“异或”;也就是说,当且仅当只有一个操作数为true时,结果才为true。http://msdn.microsoft 阅读全文
posted @ 2013-11-15 18:12 nil 阅读(1292) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页