上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 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 阅读(727) 评论(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 阅读(1405) 评论(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 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 闲的JJ疼,用 xaml画了个博客园的logo,Metro风格的。xaml代码 ... 阅读全文
posted @ 2013-11-29 13:53 nil 阅读(1073) 评论(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 阅读(304) 评论(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 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: 问题: 安装好新系统之后(只有Windows8 专业版和企业版支持hyper-v),然后安装vs2012,再安装Wp8 Sdk,安装完毕后新建Windows Phone项目,会提示未将对象引用设置到对象的实例。解决方案: 下载并安装文件 patch_KB2781514.exe 即可解决。下载地址:http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=36020附:我安装的Vs版本文件名为:cn_visual_studio_ultimate_2012_x86_dvd_920954.isoWpsdk文件名为:cn_window.. 阅读全文
posted @ 2013-11-12 12:07 nil 阅读(912) 评论(0) 推荐(0) 编辑
摘要: WriteableBitmap wb = new WriteableBitmap(this.LayoutRoot, new MatrixTransform()); //wb.Render(this.LayoutRoot, new MatrixTransform()); wb.Invalidate(); using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream()) { ... 阅读全文
posted @ 2013-10-23 16:22 nil 阅读(223) 评论(0) 推荐(0) 编辑
摘要: WMAppManifest.xml Assets\ApplicationIcon.png Assets\Tiles\FlipCycleTileSmall.png 0 Assets\Tiles\FlipCycleTileMedium.png PhoneAppPhotoExtensions ... 阅读全文
posted @ 2013-10-12 16:47 nil 阅读(451) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using System.Text;using System.Windows.Media 阅读全文
posted @ 2013-09-24 16:10 nil 阅读(699) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页