在看《Linux多线程服务端编程:使用muduo C++网络库》 的时候,在说到如何防止在将对象的 this 指针作为返回值返回给了调用者时可能会造成的 core dump。需使用enable_share_from_this。 首先要说明的一个问题是如何安全地将 this 指针返回给调用者。一般来....
分类:
其他好文 时间:
2014-11-15 18:49:55
阅读次数:
219
java判断字符串中是否包含汉字 源代码下载地址: http://www.zuidaima.com/share/1550463517428736.htm...
分类:
编程语言 时间:
2014-11-15 10:08:19
阅读次数:
228
For a guy who has experienced his fair share of mysteries,on mystery,I still can't figure out is why some people come into our lives.Why some people g...
分类:
其他好文 时间:
2014-11-14 21:08:27
阅读次数:
200
本文分享自 http://miliwo.com/w/1859/26062---------------------------华丽的分割线----------------------------------最近使用Swipe.js,发现中文的资料很少,试着翻译了一下。能力有限,翻译难免错漏,欢迎指出...
一、查看信息1、查看puppet版本[root@puppet~]#puppet--version
3.7.12、查看模块位置[root@puppet~]#puppetconfigprintmodulepath
/etc/puppet/modules:/usr/share/puppet/modules3、查看报告[root@puppet~]#puppetagent-t--summarize
Info:Retrievingpluginfacts
Info:Retrie..
分类:
其他好文 时间:
2014-11-14 10:50:00
阅读次数:
199
目的是实现点击屏幕上方的按钮然后让ScrollView自动定位到按钮对应的栏目位置
笔记详细及源码:
http://note.youdao.com/share/?id=3e016147d74f57b56887dffc486a39af&type=note...
分类:
移动开发 时间:
2014-11-12 16:37:43
阅读次数:
166
记录下 变更原因
最近在内网服务器上架构了redmine 服务用的是redmine自带的服务(/usr/bin/ruby /usr/share/redmine/script/rails server webrick -e production -d) 但是运营一段时间后发现用域名访问时总是出现redmine服务无故的停止,就是通过域名不停止的刷新 redmine页面 服务也会崩溃的。最后没办法换...
分类:
Web程序 时间:
2014-11-12 16:37:08
阅读次数:
244
企业人力资源管理项目SSH+EXT+MySQL+MD5...... 源代码下载地址:http://www.zuidaima.com/share/1550463514102784.htm...
分类:
数据库 时间:
2014-11-12 11:49:35
阅读次数:
278
yum install nginx php php-fpm#vim /etc/nginx/conf.d/default.conf location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass ...
分类:
Web程序 时间:
2014-11-11 18:04:12
阅读次数:
305