2017-04-24 15:59:47
MongoDB主从配置是否可行
Hi, 主 4G RAM, 100G SSD 从2G RAM, 100G SSD. 网站流量不大,读写都是由主机,从机仅仅是为了冗余备份。 问题: 这样能保证强一致性性吗? PHP写操作要不要加fsync = true? thanks
0
1
1131
2017-04-24 15:59:44
2017-04-24 15:59:42
正则表达式 - 正则分组匹配时,使用’\n ‘与 $n 为什么不同?
例如:要将第一分组大写:str = '1abc2aabbcc3aaabbbccc4'pp str.sub(/(a{2})(b{2})/, '\1.upcase\2') # =>"1abc2aa.upcasebbcc3aaabbbccc4" 第一分组怎么没有变大写呢?pp str.sub(/(a{2})(b{2})/, '\1'.upca...
0
3
1644
2017-04-24 09:14:09
2017-04-24 09:14:03
2017-04-24 09:13:49
git - xcode 5 Commit代码后,pull出问题
The operation could not be performed because of one or more tree conflicts. The files .gitignore, xxx.plist, aaa.h, aaa.m, and aaa.xib had a tree conflict. 这样怎么提交代码啊?
0
1
930
2017-04-24 09:13:47
2017-04-24 09:13:43
2017-04-24 09:13:41
Github上git commit 提交注释的规范
例如注释有这样的(转载) 一般情况下,提交 GIT 时的注释可以分成几类,可以用几个动词开始: Added ( 新加入的需求 ) Fixed ( 修复 bug ) Changed ( 完成的任务 ) Updated ( 完成的任务,或者由于第三方模块变...
0
3
1364
2017-04-24 09:13:39