XMPP/Smack/Openfire javax.net.ssl.SSLException:
Received fatal alert:
internal_error解决:1、在链接openfire服务器后,线程休眠一段时间,再进行登录login操作。connection.connect();Th...
分类:
其他好文 时间:
2014-05-10 19:39:25
阅读次数:
349
新浪微博关注代码生成地址:http://open.weibo.com/widget/followbutton.php腾讯微博收听代码生成地址:http://dev.t.qq.com/websites/usefollowcompQQ空间关注代码生成地址:http://connect.qq.com/in...
分类:
其他好文 时间:
2014-05-06 00:58:52
阅读次数:
301
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=45301#problem/A题意:有n个人,k个理发师一。每个人需要理两次头发。每人有到达时间和他们等待的最大时间。求每个人能不能在他们等待的最长时间之前理完发。如果能,输出他理发的时刻。题...
分类:
其他好文 时间:
2014-05-06 00:22:52
阅读次数:
334
1、ifconfig eth0 promisc 设置eth0为混杂模式。ifconfig eth0
-promisc 取消它的混杂模式botnet@botnet-virtual-machine:~$ ifconfigeth0 Link
encap:Ethernet HWaddr 00:0...
分类:
其他好文 时间:
2014-05-06 00:09:59
阅读次数:
625
原地址:http://zengwu3915.blog.163.com/blog/static/2783489720137485857701?suggestedreading如果要在苹果商城发布收费应用或在苹果应用中使用内购收费,首先需要设置你的iTunes
Connect的Contracts, Ta...
分类:
移动开发 时间:
2014-05-05 11:27:35
阅读次数:
514
加快Android模拟器运行速度本文部分参考,原文:http://www.imzzy.com/andorid-virtual-device-intel-hardware-accelerated.html安装英特尔硬件加速执行管理器可以让安卓模拟器加快运行速度。原文:http://www.imzzy....
分类:
移动开发 时间:
2014-05-04 10:41:12
阅读次数:
480
劳动节最后一天没事,想捣鼓一下BT5破解无线wep/wpa,BT5+virtual
box早已准备就绪,上网专门找了一些资料,并买了一个据评测很兼容的usb网卡tp-link
wn722n,芯片代号AR9271,本来想着这一下午可有趣了,没想到事情变的比我想的更有趣。。。首先是惊奇的发现tl这个us...
分类:
其他好文 时间:
2014-05-04 09:56:13
阅读次数:
278
在派生类中序列化一个基类
假如有一个基类如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
student_info(const std::string& sn, const std::string& snm, const std::string& sg)
: name_(sn),...
分类:
其他好文 时间:
2014-05-03 21:41:12
阅读次数:
356
本篇是boost::serialization 用基类指针转存派生类(错误多多,一波三折)的姊妹篇,这里只不过做一个总结。
先来看一个基类
class base_class
{
public:
base_class(int m=0) : base_member_(0) {}
virtual ~base_class() {}
virtual void print_data() = 0;
...
分类:
其他好文 时间:
2014-05-03 21:24:33
阅读次数:
247
boost::serialization 也支持c++的多态,这样我们就可以通过使用基类的指针来转存派生类,
我们接着上一篇(
boost::serialization(2)序列化基类
)的例子来看:
基类和派生类的代码如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
s...
分类:
其他好文 时间:
2014-05-03 21:08:18
阅读次数:
280