即时通信功能已经开发完毕,现在还木有时间整理,打算后期抽时间整理后发一下源码跟教程。现在记录一下遇到的问题,首先是获取离线消息。
OfflineMessageManager是官方获取离线消息的,但是直接获取,是获取不到任何消息的,需要先设置离线,然后获取后,再上线。功能代码如下。
1、离线
// 初始化
public XMPPConnection init(LoginConfig lo...
分类:
系统相关 时间:
2014-11-05 13:07:21
阅读次数:
322
一、html代码最近浏览记录asp.net处理代码private void get_history_log(HttpContext context) { string id = DTRequest.GetFormString("id_arr"); ...
分类:
Web程序 时间:
2014-11-04 19:06:26
阅读次数:
202
#include
#include
#include
using namespace std;
int dp[30][30];
int ord[30];
int stu[30];
int main()
{
//freopen("in","r",stdin);
int n,i,j,t;
cin>>n;
for(i=1;i<=n;i++)
{
c...
分类:
其他好文 时间:
2014-11-04 17:28:21
阅读次数:
203
DP,题意晦涩难懂。LCS问题。
源序列要经过转换。 比如 4 2 1 3. 是指 事件1 发生在第四,事件2 发生在第二,事件3发生在第一 ,事件4发生在 第三。
转换后的序列为 : 3 2 4 1 。
所以说很丧病。UVA很多题都是一大堆题意。
我用的二维数组。其实可以优化 滚动或者一维。
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-11-04 13:12:24
阅读次数:
127
1.document.write("");输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5....
分类:
编程语言 时间:
2014-11-04 12:39:45
阅读次数:
182
如何配置高性能的spark集群?如何配置Hadoop的配置文件?如何对spark配置进行合理的优化?...
分类:
其他好文 时间:
2014-11-04 09:26:07
阅读次数:
298
一、下载并安装openfire 1、下载最新的openfire安装文件 官方下载站点:http://www.igniterealtime.org/downloads/index.jsp#openfire openfire是服务器,下面还有一个spark,这个是一个XMPP协议通信聊天的C...
分类:
系统相关 时间:
2014-11-04 01:40:50
阅读次数:
219
田忌赛马
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Here is a famous story in Chinese history.
"That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to...
分类:
其他好文 时间:
2014-11-03 19:28:49
阅读次数:
133
一、History对象 History 对象包含用户(在浏览器窗口中)访问过的 URL。 History 对象是 window 对象的一部分,可通过 window.history 属性对其进行访问。 注释:没有应用于 History 对象的公开标准,不过所有浏...
分类:
Web程序 时间:
2014-11-03 16:39:02
阅读次数:
185
结束historyserver的命令如下所示: 第四步:验证Hadoop分布式集群 首先在hdfs文件系统上创建两个目录,创建过程如下所示: Hdfs中的/data/wordcount用来存放Hadoop自带的WordCount例子的数据文件,程序运行的结果...
分类:
其他好文 时间:
2014-11-03 16:38:12
阅读次数:
215