CentOS下如何安装libevent1.下载安装包新版本是libevent-2.0.10-stable。(如果你的系统已经安装了libevent,可以不用安装)官网:http://www.monkey.org/~provos/libevent/下载:http://www.monkey.org/~p...
分类:
其他好文 时间:
2014-06-18 15:46:17
阅读次数:
273
/*********************************************************************************
Copyright (C), 1988-1999, drvivermonkey. Co., Ltd.
File name:
Author: Driver Monkey
Version:
Mail:bookwor...
分类:
其他好文 时间:
2014-06-15 14:52:23
阅读次数:
267
importCocoavarstr ="Hello, playground"+" and
hyt"vari=10varf=5.0f=f+5.0letfruits =
["apple","banana","orange","cherry"]forsomeinfruits{ println("\(som...
分类:
其他好文 时间:
2014-06-09 20:27:51
阅读次数:
212
题意:有A,B两个人,n道题目,每题有对应的分数,B答对题目的概率是0.5,求A不输给B的概率不小于P要拿的最低分数
思路:DP,dp[i][j]来表示B答了前i题后分数为j的概率,,然后通过B的概率求A的最低分数#include
#include
#include
#include
using namespace std;
const int MAXN = 40010;
int a[...
分类:
其他好文 时间:
2014-06-02 02:25:20
阅读次数:
243
http://blog.csdn.net/mafuli007/article/details/74760141简介主页:http://www.monkey.org/~provos/libevent/。libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,内部使用...
分类:
其他好文 时间:
2014-05-26 08:38:22
阅读次数:
261
一、编译环境的准备 yum install gcc yum install gcc-c++ libstdc++-devel yum install zlib-devel二、源码包准备wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gzwget http://memcached.googlecode.com/files/me...
分类:
系统相关 时间:
2014-05-26 03:38:01
阅读次数:
375
1.先用:ls -al /usr/lib | grep
libevent查看是否已安装,如果已安装且版本低于1.3,则先通过:rpm -e libevent —nodeps进行卸载。安装:# wget
http://www.monkey.org/~provos/libevent-1.4.13-sta...
分类:
其他好文 时间:
2014-05-25 23:34:50
阅读次数:
271
# monkey
usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...]
[-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...]
[--ignore-crash...
分类:
移动开发 时间:
2014-05-18 10:09:09
阅读次数:
314
通过DevicePolicyManager 添加修改手机修改的权限,设置手机开启的密码,设置手机重启的密码,设置手机锁屏的时间,强制锁屏,回复出场设置,中间用到了ActivityManager.isUserAMonkey判断是否是monkey runer进行的随机测试。
DeviceAdminSample.java
/*
* Copyright (C) 2010 The Android Op...
分类:
移动开发 时间:
2014-05-13 06:25:30
阅读次数:
534
dict={"a":"apple","b":"banana","o":"orange"} print
"##########dict######################" for i in dict: print "dict[%s]=" %
i,dict[i] print...
分类:
编程语言 时间:
2014-05-04 20:13:19
阅读次数:
401