OPENFILENAME ofn; // common dialog box structure TCHAR szFile[MAX_PATH]; // buffer for file name // Initialize OPENFILENAME ZeroMemory...
摘自::存储系统研究:socket connect error 99(Cannot assign request address)这是最近使用libcurl写http服务的压力测试的时候遇到的一个问题,其直接表象是客户端在发送http请求时失败,最终原因是客户端的TIME_WAIT状态的socket...
分类:
Web程序 时间:
2014-12-18 13:16:47
阅读次数:
666
面试里面泛型被问的很多,但是回答的时候,除了说在集合类里面使用泛型以外,好像也不知道该说点啥了
看完 effective java,觉得还是有点东西说的,
1 先看一个编译错误
Cannot perform instanceof check against parameterized type Set. Use the form Set instead since further g...
分类:
编程语言 时间:
2014-12-18 12:01:00
阅读次数:
156
问题:在linux环境编译应用程式或lib的source code时常常会出现如下的错误讯息:/usr/bin/ld: cannot find -lxxx这些讯息会随着编译不同类型的source code 而有不同的结果出来如:/usr/bin/ld: cannot find -lc/usr/bin...
分类:
系统相关 时间:
2014-12-18 11:37:59
阅读次数:
300
AbstractApplicationContext 分析启动流程 // Prepare this context for refreshing.prepareRefresh(); 1. // Initialize any placeholder property sources in the c....
分类:
编程语言 时间:
2014-12-17 20:40:57
阅读次数:
234
git 基本命令 作为开发者,别人搭建git服务器之后,我们就配置个人的客户端: git config --global user.name "yourname" git config --global user.email "xxxx@gmail.com" 检出仓库: git cl...
分类:
其他好文 时间:
2014-12-17 20:21:04
阅读次数:
141
android开发,我在我的 activity 插入一个按钮,如果andriod market找不到的话就使用 toast进行提示,在使用的时候出现了一些问题,下面的代码报错了 Context cannot be resolved to a variable
1
2
3
4
5
6
7
Uri
uri = U...
分类:
移动开发 时间:
2014-12-17 18:35:36
阅读次数:
192
1、当前状态
2、在172.10.2.172(node2)再添加一个mon(mon.node2)
ssh node2
vim /etc/ceph/ceph.conf 添加mon.node2的相关配置
ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.cl...
分类:
其他好文 时间:
2014-12-17 18:33:10
阅读次数:
536
http://blog.csdn.net/lilu_leo/article/details/11952717 有时候需要在在代码中设置LayoutParams,自己为一个FrameLayout设置LayoutParams的时候,遇上如题问题,java.lang.ClassCastExceptio.....
分类:
移动开发 时间:
2014-12-17 17:47:45
阅读次数:
154
先来BOA,搬自:http://www.cl.cam.ac.uk/research/dtg/attarchive/omniORB/doc/2.8/omniORB2/node6.htmlThe Basic Object Adaptor (BOA)This chapter describes the B...
分类:
其他好文 时间:
2014-12-17 12:24:21
阅读次数:
285