修改Mcollective支持syslog输出,同时将默认的utc时间修改为本地时间。moduleMCollective
moduleRPC
#Anauditpluginthatjustlogstoafile
#
#Youcanconfigurewhichfileitlogstowiththesetting
#
#plugin.rpcaudit.logfile
classLogfile<Audit
require‘pp‘
require‘syslog‘
..
分类:
其他好文 时间:
2014-12-08 19:46:36
阅读次数:
207
题目的意思大概是给你一个数,让你判断这个数转为2到16进制的数是否为回文数,如果是的话直接输出转的进制数。。果然基础差的不行,各种错误,写了40多分钟,最后格式还错了两遍。!!直接上代码吧。
#include
int main()
{
int n,i,j,l,p,sum,pp,k,m,ppppp;
int a[1000],b[1000];
while(scanf("%d",&n)...
分类:
其他好文 时间:
2014-12-05 15:29:55
阅读次数:
178
感谢孙潇楠前辈的总结,地址http://www.cnblogs.com/sunxiaonan/archive/2009/11/24/1609439.html例如: id name value 1 a pp 2 a pp 3 b iii 4 b pp 5 b pp 6 c pp 7 c pp 8 c ...
分类:
数据库 时间:
2014-11-25 17:57:31
阅读次数:
270
定义:1 private RelativeLayout mrlay;调高度:1 mrlay = (RelativeLayout) findViewById(R.id.rlay_1);2 android.view.ViewGroup.LayoutParams pp =mrlay.get...
分类:
移动开发 时间:
2014-11-22 18:41:18
阅读次数:
228
http://blog.csdn.net/clever101/article/details/5334369http://wenku.baidu.com/link?url=pP-VcLXtAIZacfEmAC7VEg1nRJkV32ol3s4W0U5YWYsqQ78234wctW_A9ECkqpJe...
分类:
其他好文 时间:
2014-11-19 18:06:44
阅读次数:
170
直接上代码 不说什么 这一款源代码 注释及多 PublicDef.h 公共头文件#define NF_PLATFORM 1 //当前版本(默认为普通版)
//版本列表
#define NF_PLATFORM_NORMAL 1 //normal
#define NF_PLATFORM_91 2 //91 playform
#define NF_PLATFORM_PP ...
分类:
其他好文 时间:
2014-11-19 14:20:31
阅读次数:
172
//实现类似QQ停靠桌面上边缘隐藏的效果! private void timer1_Tick(object sender, EventArgs e) { System.Drawing.Point pp = new Point(Cursor.Posi...
作用:自动为客户端配置YUM源,为使用yum安装软件包提供便捷。1、服务端配置yum模块(1)模块清单[root@puppet~]#tree/etc/puppet/modules/yum/
/etc/puppet/modules/yum/
├──files
│├──yum.conf
│└──RPM-GPG-KEY-CentOS-6
├──manifests
│├──config.pp
│├..
分类:
其他好文 时间:
2014-11-17 14:16:38
阅读次数:
299
作用:通过puppet模块自动控制客户端的puppet配置,当需要修改客户端的puppet配置时不用在客户端一一设置。1、服务端配置puppet模块(1)模块清单[root@puppet~]#tree/etc/puppet/modules/puppet//etc/puppet/modules/puppet/├──files├──manifests│├──config.pp│├..
分类:
其他好文 时间:
2014-11-17 14:14:08
阅读次数:
145