摘要: (1)NULL null 关键字是表示不引用任何对象的空引用的文字值。null 是引用类型变量的默认值。那么也只有引用型的变量可以为NULL,如果 int i=null,的话,是不可以的,因为Int是值类型的。 (2)""和String.Empty 这两个都是表示空字符串。只不过""理论上... 阅读全文
posted @ 2016-01-26 13:33 刘小草 阅读(8012) 评论(0) 推荐(0) 编辑
摘要: BSON是由10gen开发的一个数据格式,目前主要用于MongoDB中,是MongoDB的数据存储格式。BSON基于JSON格式,选择JSON进行改造的原因主要是JSON的通用性及JSON的schemaless的特性。BSON主要会实现以下三点目标:1.更快的遍历速度对JSON格式来说,太大的JSO... 阅读全文
posted @ 2016-01-20 15:27 刘小草 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 指定安装路径不指定prefix,则可执行文件默认放在/usr /local/bin,库文件默认放在/usr/local/lib,配置文件默认放在/usr/local/etc。其它的资源文件放在/usr /local/share。你要卸载这个程序,要么在原来的make目录下用一次make uninst... 阅读全文
posted @ 2016-01-15 17:43 刘小草 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.os模块 os模块包装了不同操作系统的通用接口,使用户在不同操作系统下,可以使用相同的函数接口,返回相同结构的结果。 os.name:返回当前操作系统名称('posix', 'nt', 'os2', 'mac', 'ce' or 'riscos') os中定义了一组文件、路径在不同操作系统... 阅读全文
posted @ 2016-01-15 16:17 刘小草 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://blog.163.com/yang_jianli/blog/static/161990006201162152724339/ 阅读全文
posted @ 2016-01-15 15:58 刘小草 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、Linq的likelist l=new list();l.add("ss")l.add("ss123");l.add("sssdf");查找方式 ss___ 查找前面2个是ss后面是3位的, 类似sql的select * from table where col like 'ss___'需要怎... 阅读全文
posted @ 2016-01-15 14:27 刘小草 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: Installing 'flask'You are using pip version 6.1.1, however version 7.1.2 is available.You should consider upgrading via the 'pip install --upgrade pip... 阅读全文
posted @ 2016-01-13 17:02 刘小草 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://mp.weixin.qq.com/s?__biz=MzAxMTEyOTQ5OQ==&mid=402105111&idx=1&sn=d2901def95937f3a737f6171ec0b8b2a#rd 阅读全文
posted @ 2016-01-13 10:19 刘小草 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://rfyiamcool.blog.51cto.com/1030776/1329351 阅读全文
posted @ 2016-01-12 22:13 刘小草 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、Mongovue里面可以直接group by ,这个时候一定要注意,group by的任何条件的是 json, 注意当值是Int,非string型的时候,值不要加上双引号2、注意group by的时候,key的行数不能超过2万3、function Reduce(doc, out) { /* //... 阅读全文
posted @ 2015-12-23 18:33 刘小草 阅读(253) 评论(0) 推荐(0) 编辑