mongodb远程服务器连接mongo -uroot -p321 master.puppet.org:27017/admin基于libvcirt的虚拟化guest domain overview:A guest domain may be transient, or persistent. A tr...
本贴在http://www.cnblogs.com/hanyonglu/archive/2012/03/16/2399655.html下略为改动。Apndroid Push Notification的特点:快速集成:提供一种比C2DM更加快捷的使用方式,避免各种限制. 无需架设服务器:通过使用"云服...
分类:
移动开发 时间:
2014-06-25 22:23:39
阅读次数:
387
appium client扩展了原生的webdriver client方法下面以java代码为例,简单过一下appium client提供的适合移动端使用的新方法resetApp()getAppString()sendKeyEvent()currentActivity()pullFile()push...
分类:
移动开发 时间:
2014-06-25 21:49:51
阅读次数:
513
PuppetDB安装
#######################################
2014年6月23日 10:25:36
一、安装要求:
1.JDK1.7或以上版本
2.Puppet3.5.1或更高版本
3.Puppet已配置执行Puppet agent --test没有问题
二、安装步骤
1.puppet源配置好
2.apt-get install pupp...
分类:
数据库 时间:
2014-06-25 19:28:48
阅读次数:
285
1.在Android开发中调用adb命令进行应用安装,将应用安装到 /system/app目录下
/**
* install the app in use adb command,this style is silent
*
*/
private void adbInstallTheAPP(){
//adb push cor...
分类:
移动开发 时间:
2014-06-24 18:04:18
阅读次数:
291
直接上Code,上Pic
#include
#include
using namespace std;
// STL在迭代的过程中,删除指定的元素
int main()
{
list listTest;
listTest.push_back(-1);
listTest.push_back(-1);
listTest.push_back(-1);
listTest.push_b...
分类:
其他好文 时间:
2014-06-22 22:31:07
阅读次数:
280
双向循环链表list
list是双向循环链表,每一个元素都知道前面一个元素和后面一个元素。
list和vector的区别:
在list中,由于其内存分配是非连续的,因此不能像vector那样用[]操作符取值,而只能用迭代器来访问list中的元素。list中提供的成员函数与vector类似,不过list提供对表首元素的操作push_front、pop_front,这是vec...
分类:
其他好文 时间:
2014-06-22 21:33:58
阅读次数:
215
先普及小知识:
STL 中栈的使用方法(stack)
基本操作:
push(x) 将x加入栈中,即入栈操作
pop() 出栈操作(删除栈顶),只是出栈,没有返回值
top() 返回第一个元素(栈顶元素)
size() 返回栈中的元素个数
empty() 当栈为空时,返回 true
STL 中队列的使用(queue)
基本操作:...
分类:
其他好文 时间:
2014-06-22 19:09:51
阅读次数:
169
再探迭代器
这里有插入迭代器,有流迭代器,反向迭代器,移动迭代器。
插入迭代器
这是一种迭代器适配器,接受一个容器,生成一个迭代器,实现向给定容器添加元素。
插入迭代器有三种类型,差异在于元素插入的位置
back_inserter创建一个使用push_back的迭代器。
front_inserter创建一个使用push_front的迭代器。
inserter创建一个使用i...
分类:
编程语言 时间:
2014-06-22 17:50:05
阅读次数:
253
以下的一段代码:
#include
greeting()
{
printf("Hello, world!\n");
}
main()
{
greeting();
}
经过gcc、ld(链接、编译)之后,生成一个elf可执行文件,再使用objdump处理,生成的反汇编代码如下:
08048368 :
8048368: 55 push %ebp
8048369: 89 e5 mov %esp,...
分类:
系统相关 时间:
2014-06-22 17:34:39
阅读次数:
351