在Windows Azure上现在有两个cacheing解决方案,Shared Caching和Caching,如果你需要一个能够被很多云服务和网站使用的中央Cache服务,你需要使用Shared Caching,但是如果你想使用一个快速、就近分布的Cache,Caching是更好的方法,并且完全免...
分类:
其他好文 时间:
2014-08-14 16:38:48
阅读次数:
181
angular 提供了表单指令,它和ng-model会有很密切的互动。我们先来了解一下基本的ng-modelng-model 通常放在input上,用来同步elem & scope 的数据ng-model 在不同的element上会有不同的同步模式,这些angular已经帮我封装了许多 .ng-mo...
分类:
其他好文 时间:
2014-08-14 16:08:58
阅读次数:
266
Virtual addresses from multiple address spaces are translated to real addresses in main memory by generating for each virtual address an address space...
分类:
移动开发 时间:
2014-08-14 13:24:28
阅读次数:
489
1 2 3 24 25 26 hbase.rootdir 27 file:///tmp/hbase-${user.name}/hbase 28 The directory shared by region servers and into 29 ...
分类:
其他好文 时间:
2014-08-14 10:32:28
阅读次数:
279
条款1:不要把一个原生指针给多个shared_ptr管理int* ptr = new int;shared_ptr p1(ptr);shared_ptr p2(ptr); //logic errorptr对象被删除了2次这种问题比喻成“二龙治水”,在原生指针中也同样可能发生。条款2:不要把this指...
分类:
其他好文 时间:
2014-08-14 01:16:47
阅读次数:
286
boost中提供了几种智能指针方法:scoped_ptr shared_ptr intrusive_ptr weak_ptr,而标准库中提供的智能指针为auto_ptr.这其中,我最喜欢,使用最多的是shared_ptr,也最让人随心所欲.使用很简单,如下:头文件 class A{virtual v...
分类:
其他好文 时间:
2014-08-14 01:16:37
阅读次数:
243
Q: 那个auto_ptr是什么东东啊?为什么没有auto_array?A: 哦,auto_ptr是一个很简单的资源封装类,是在头文件中定义的。它使用“资源分配即初始化”技术来保证资源在发生异常时也能被安全释放(“exception safety”)。一个auto_ptr封装了一个指针,也可以被当作...
分类:
其他好文 时间:
2014-08-14 01:12:07
阅读次数:
340
1整体架构2中央日志服务器配置2.1配置时钟同步2.1.1方式一中央日志服务器和Tomcat节点均向同一个时钟源(例如:pool.ntp.org)进行对时即可。说明:本小节下面命令均以root用户执行,并且在中央日志服务器和Tomcat节点均要执行。首先,需要关闭ntpd服务:servicentpdstopchkcon..
分类:
其他好文 时间:
2014-08-13 19:27:18
阅读次数:
345
今天公司一个实习小妹子问我两段JS代码的区别:[javascript] view plaincopyprint?[javascript] view plaincopyprint? 我想,好简单呀,不就是全局变量跟局部变量的scope问题吗?我说:"当全局变量跟局部变量重名时,局部变量的scope会覆...
分类:
Web程序 时间:
2014-08-13 14:31:36
阅读次数:
252
Short answer: no practical danger yet, but read on for a better way...What's this ptrace thing anyway?this is due to a bug in the Ubuntu kernel that p...
分类:
其他好文 时间:
2014-08-13 12:36:16
阅读次数:
697