08 2016 档案
摘要:When I had the requirement to remove duplicate items from a very large array, I found out that the classic method to be not optimized as it took a pre
阅读全文
摘要:最近在想一个问题,关于进程间通信的问题,我们都知道进程间可以通过管道通信,但是为什么进程间可以通过管道通信呢?管道通信的机制又是什么呢?我想很多人应该没有去思考过,下面我来讲讲我对管道通信机制的理解。 如果两个不相关的进程打开同一个文件,一个只读方式开打,一个只写方式打开,不就相当于创建了一个管道了
阅读全文
摘要:短网址服务就是把长的URL地址转换成短的URL。如google提供的http://goo.gl/ 短网址 http://goo.gl/mwsQP 对应的网址就是 http://www.cnblogs.com/zjfree 短网址参考:http://baike.baidu.com/view/26934
阅读全文
摘要:1、首先修改mongodb的配置文件 让其监听所有外网ip 编辑文件:/etc/mongodb.conf 修改后的内容如下: bind_ip = 0.0.0.0 port = 27017 auth=true 2、/etc/init.d/mongodb restart 3、连接 #本地连接 /usr/
阅读全文