Check nagios配置文件报错例如以下:[nagios@2 etc]$
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgNagios Core
4.0.6Copyright (c) 2009-present Nag...
分类:
移动开发 时间:
2014-05-27 00:07:04
阅读次数:
364
CAtlRegExp ClassCAtlRegExp
类用于表示并处理正则表达式。模板类,定义如下:template class
CAtlRegExp参数CharTraits字符特征对象.例如,默认的CAtlRECharTraitsA.摘要调用Parse方法设置正则表达式CAtlRegExp
re;...
分类:
其他好文 时间:
2014-05-23 04:43:21
阅读次数:
310
题意:
定义栈的数据结构,要求添加一个min 函数,能够得到栈的最小元素。
要求函数min、push 以及pop 的时间复杂度都是O(1)。
思路:定义两个栈,一个用来记录数据的插入和删除,一个用来存储最小值的变化
代码如下:
template
class Stack
{
public:
Stack(int len=100);
T Min();
...
分类:
其他好文 时间:
2014-05-22 23:46:32
阅读次数:
359
/** * @return the ${bare_field_name} *//** *
@param ${param} the ${bare_field_name} to set *//** * ${tags} *//** *
项目名称:${project_name} * 文件名称:${file_...
分类:
系统相关 时间:
2014-05-22 04:52:37
阅读次数:
302
条款01:视C++为一个语言联绑C++的四个语言层次:C:C++是以C为基础的。基本数据类型、语句、预处理器、数组、指针等统统来自C。Oject-Oriented
C++:面向对象这一特性包含了:类,封装,继承,多态,虚函数等Template C++:C++的泛型编程能力。STL:一个标准的temp...
分类:
编程语言 时间:
2014-05-22 03:36:57
阅读次数:
338
template中有三个formatversion,第一种是aws的格式,表示这是一个json文件;第二种是heat为了扩展aws并且更好的加入注释,引入的yaml格式文件;第三种是openstack的heat特有的hot格式的头部,也是基于yaml格式的。
"AWSTemplateFormatVersion": "2010-09-09", HeatTemplateFormatVersi...
分类:
其他好文 时间:
2014-05-21 16:45:14
阅读次数:
401
条款01:视C++为一个语言联绑
C++的四个语言层次:
C:C++是以C为基础的。基本数据类型、语句、预处理器、数组、指针等统统来自C。Oject-Oriented C++:面向对象这一特性包含了:类,封装,继承,多态,虚函数等Template C++:C++的泛型编程能力。STL:一个标准的template库,里面介绍了容器、迭代器、算法以及函数对象等模板类和模板函数。
综述...
分类:
编程语言 时间:
2014-05-21 16:35:40
阅读次数:
265
在Heat中完全使用aws的语法创建一套autoscaling的template。
流程:
Create LaunchConfig (Create basic instance, send mem status to ALARM) ->
Create ASGroup (Define instance num range) ->
Create ScaleUpPolicy (+1 in...
分类:
其他好文 时间:
2014-05-21 16:01:10
阅读次数:
315
模板与泛型编程--类模板成员[续2]六、完整的Queue类Queue的完整定义:template class Queue;
template
ostream &operator &);
template class QueueItem
{
friend class Queue;
friend ostream &
operator(ostream &,const Q...
分类:
编程语言 时间:
2014-05-21 14:07:20
阅读次数:
304
模板与泛型编程--类模板成员[续1]二、非类型形参的模板实参template
class Screen
{
public:
Screen():screen(hi * wid,'#'),
cursor(hi * wid),height(hi),width(wid) {}
//..
private:
std::string screen;
std:...
分类:
编程语言 时间:
2014-05-21 14:00:04
阅读次数:
332