docker配置 1.先接入daocloud 在虚拟机上执行: curl -sSL https://get.daocloud.io/daomonit/install.sh | sh -s a82dcdd62d3d1b452b49c2664334b05119c3e2a9 该命令实在daocloud的启动加速器上,配置集群信息中获取。 执行完成后,就可以在daocloud的集群管理中看到
ubuntu安装docker失败,提示404 现象:root@ubuntu:~# apt-get install -y docker.ioReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed:
技巧 cron计划任务模块的使用tasks:- cron: name="check dirs" hour="5,2" job="ls -alh > /dev/null"- name: create {{ user }} on web user: name="{{ user }}"执行可选择的tagansible-play
数字转换为罗马数字 Integer to Romanhttps://leetcode.com/problems/integer-to-roman/Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.#includ
sort排序 要使用此函数只需用#include sort即可使用,语法描述为:sort(begin,end),表示一个范围,例如:int _tmain(int argc, _TCHAR* argv[]){ int a[20]={2,4,1,23,5,76,0,43,24,65},i; for(i=0;i cout sort(a,a+20); for(i=0;
对vector成员进行排序 对vector成员进行排序#include "stdafx.h"#include "vector"#include using namespace std;class TappD{public:unsigned int appid;unsigned int d;unsigned int D;public:TappD(unsign
数组反转试题解答 题目:Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:Try to come up as many solutions as
使用map后,屏蔽warning 4786 问题:编译时,总是报告警4786。是因为使用了map的stl方法。无影响可以屏蔽D:\prg test\helloworld\helloworld.cpp(44) : warning C4786: 'std::reverse_bidirectional_iterator,std::map,std::allocator >::_Kfn,std::less,std::allocator >::
查找试题--map方法应用 题目:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2解答:#include "stdafx.h"#include "map"#include "st
查找试题--互换函数swap初试 题目:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2 试题解答:#include "stdafx.h"#include "map"#include
如何通过ping识别操作系统 TLL=32——WIN98TLL=64——LINUX2.2.X/2.4.XTLL=128——WIN NT/2000/XPTLL=255——UNIX/BSDPS:以上TLL值均为近似值,因为数据包在传输过程中每经过一个路由TLL值就会减1,可以通过TRACETT命令获得与远程主机间存在的路由个数,精确TLL值
设置屏幕颜色 设置方法:桌面空白处右键,属性,外观-高级,然后在项目那栏选窗口,再点颜色-其它,然后把色调设为85(默认是160),饱和度设为90(默认是0),亮度设为205(默认是240), 然后单击 添加到自定义颜色,按“OK”...一直OK。 把窗口设成绿色之后,再来把IE的网页背景也变成养眼的绿色吧:打开IE,点击工具,点INTERNET选项,点右下角的 辅助功能,然后勾选 不使用网页
linux下inode深入浅出 一、inode是什么?理解inode,要从文件储存说起。文件储存在硬盘上,硬盘的最小存储单位叫做"扇区"(Sector)。每个扇区储存512字节(相当于0.5KB)。 操作系统读取硬盘的时候,不会一个个扇区地读取,这样效率太低,而是一次性连续读取多个扇区,即一次性读取一个"块"(block)。这种由多个扇区组成的"块",是文件存取的最小单位。"块"的大小,最常见的是
VLOOKUP函数用法详解、注意事项、错误值处理 一、用法详解。在表格或数值数组的首列查找指定的数值,并由此返回表格或数组中该数值所在行中指定列处的数值。这里所说的“数组”,可以理解为表格中的一个区域。数组的列序号:数组的“首列”,就是这个区域的第一纵列,此列右边依次为第2列、3列……。假定某数组区域为B2:E10,那么,B2:B10为第1列、C2:C10为第2列……。语法:VLOOKUP(查找值,区域,列序号,逻辑值)“查找
EXCEL常用函数详解 1、ABS函数 函数名称:ABS 主要功能:求出相应数字的绝对值。 使用格式:ABS(number) 参数说明:number代表需要求绝对值的数值或引用的单元格。 应用举例:如果在B2单元格中输入公式:=ABS(A2),则在A2单元格中无论输入正数(如100)还是负数(如-100),B2中均显示出正数(如100)。 特别提醒:如果number参数不是数值,而是一