您现在的位置:首页>>
2014
05月30

在Android中使用 asmack 实现文件的接收和发送

Android Android asmack 文件接收和发送

本篇主要是基于最近帮助朋友在 Android 中使用 asmack 库实现文件的接收和发送 功能时,写了个参考示例,这里做个记录,以便于自己以后参考。

文件传输相关的XEP协议参考:

2【XEP-0095】StreamInitiation: http://xmpp.org/extensions/xep-0095.html

2【XEP-0096】SI FileTransfer: http://xmpp.org/extensions/xep-0096.html

2【XEP-0030】ServiceDiscovery:

2014
05月28

Android task和back stack详解

Android Android task back stack

一个应用往往包含很多activities.每个activity都应围绕着用户可执行的特定动作来设计,并且可以启动其它activitie.例如,一个email应用可能可能有一个显示新邮件列表的activity.当用户选择一个邮件,一个新的activity被打开以显示邮件内容.

2014
05月11

linux--watch命令使用

Linux Linux Watch

watch [options] command
The watch program executes a given command at regular inter-vals; the default is every two seconds. The command is passed to the shell (so be sure to quote or escape any special characters), and the results are displayed in a full-screen mode, so you can observe the output conveniently and see what has changed. For example, 
每隔一段时间重复运行一个命令,默认间隔时间是2秒。要运行的命令直接传给shell(注意引用和转义特殊字符)。结果会展示为全屏模式,这样你可以很方便的观察改变。例如:
 
2014
05月11

XenServer 6: Disable GPT and get a larger root partition

首页 XenServer

XenServer 6 is a solid virtualization platform, but the installer doesn’t give you many options for customized configurations. By default, it installs with a 4GB root partition and uses GUID Partition Tables (GPT). GPT is new in XenServer 6.
2014
05月11

在XenServer 6.0中设置自动启动虚拟机

Linux XenServer

在XenServer的较早前版本(6.0以前)中,启动XenServer时,可以选择自动启动在其中安装的虚拟机。这个功能在XenServer 6.0中被Citrix取消了,原因是会干扰到XenServer的HA(高可用性)和Failover(故障转移)功能的兼容性。但是,如果只运行一个XenServer,这个功能还是非常好的。
2014
05月11

XenServer重装系统后,导入原有的存储数据

Linux XenServer

XenServer重装系统后,导入原有的存储数据
2014
05月11

linux下测试磁盘的读写IO速度

Linux Linux

有时候我们在做维护的时候,总会遇到类似于IO特别高,但不能判定是IO瓶颈还是软件参数设置不当导致热盘的问题.这时候通常希望能知道磁盘的读写速度,来进行下一步的决策.

下面是两种测试方法:

首页 1 末页 共 1 页 7 条记录
推荐相册
  • 美丽港城-烟台
  • 烟台南山公园
  • 这个男人值得你拥有
  • 老家
  • 春节【2012】
历史统计
  • 2016年04月 ( 3 )
  • 2016年01月 ( 1 )
  • 2015年11月 ( 2 )
  • 2015年09月 ( 1 )
  • 2015年05月 ( 1 )
  • 2015年04月 ( 1 )
  • 2015年03月 ( 2 )
  • 2015年02月 ( 2 )
  • 2014年12月 ( 2 )
  • 2014年07月 ( 5 )
  • 2014年06月 ( 1 )
  • 2014年05月 ( 7 )

欢迎光临野马一号个人博客!
本站是兴趣使然,学习之用!
记录生活点滴,享受网络人生!

野马一号
Copyright © 2012-2013 All Rights Reserved 野马一号