1、查询最大值var maxValue=Math.max.apply(Math,array);2、查询最小值var minValue=Math.min.apply(Math,array);
分类:
编程语言 时间:
2015-01-24 20:03:31
阅读次数:
179
Which of the following are true statements? Select all that apply.To make gradient descent converge, we must slowly decreaseαover time.Gradient descen...
分类:
移动开发 时间:
2015-01-24 15:51:33
阅读次数:
191
{CSDN:CODE:587793}
直接运行输出的结果是:输入的参数个数有错误!
原因很简单,因为根本就没有输入参数
下面是输入参数的方法:
点击run>run configurations
点apply,再次运行,ok了。整个世界清爽了...
分类:
编程语言 时间:
2015-01-24 13:13:41
阅读次数:
131
1.准备Linux环境 1.0点击VMware快捷方式,右键打开文件所在位置 -> 双击vmnetcfg.exe -> VMnet1 host-only ->修改subnet ip 设置网段:192.168.68.0 子网掩码:255.255.255.0 -> apply -> ok 回到windo...
分类:
其他好文 时间:
2015-01-23 17:56:41
阅读次数:
143
/*构造函数模式*/function Person(name, age, job) { this.name = name; this.age = age; this.job = job; sayName = function() { alert(this.name); };}var personT....
分类:
移动开发 时间:
2015-01-20 20:05:10
阅读次数:
144
puppet使用SSL(https)协议来进行通讯,默认情况下,puppet server端使用基于Ruby的WEBRick HTTP服务器。由于WEBRick HTTP服务器在处理agent端的性能方面并不是很强劲,因此需要扩展puppet,搭建nginx或者其他强劲的web服务器来处理客户的ht...
分类:
其他好文 时间:
2015-01-20 10:16:57
阅读次数:
201
简介运维人员在管理服务器的时候,为了方便批量管理,就会使用一些工具或小技巧,比如puppet,ansible,saltstack,expect,当然还有做ssh公钥私钥免密码登录。本文介绍的就是ssh免密码登陆的情况。通常情况下,大家是拿一台或两台服务器做跳板机(或者叫堡垒机),用来管理局域网..
分类:
其他好文 时间:
2015-01-20 06:40:35
阅读次数:
279
在安装mysql数据库时,如果重新安装,很容易遇见apply security setting error(access denied for user'root@localhost'(usingpassword: YES)),即在配置mysql启动服务时,在启动apply security set...
分类:
移动开发 时间:
2015-01-19 12:30:17
阅读次数:
191
四、Fact插件4.1 使用pluginsync进行发布这种方法比较特殊,节点factpath目录里除了编写好的rb文件之外,还需要在puppet模块中引用,运行一次之后才会转换成fact。通常在puppetmaster端模块里的lib库中添加,然后在puppet.conf中添加选项pluginsy...
分类:
其他好文 时间:
2015-01-19 10:44:15
阅读次数:
138
OS:CentOS-6.6-x86_64(Minimal)
Puppet3.7.3
Zabbix2.4
Puppet/Zabbixmaster:master/zabbix.redking.com
Puppet/Zabbixagent:agent1~5.redking.comPuppet安装1.服务端安装puppet-serverpuppet不在CentOS的基本源中,需要加入PuppetLabs提供的官方源,PuppetMaster服务器端安装p..
分类:
其他好文 时间:
2015-01-17 11:22:34
阅读次数:
290