nagios将多个主机放到一个组内步骤:#viming.cfgdefinehost{uselinux-serverhost_namemingaliasmingaddress192.168.1.14action_url/pnp4nagios/index.php/graph?host=$HOSTNAME$}definehost{uselinux-serverhost_nameming2aliasming2address192.168.1.15action_url/pnp4nagios/..
分类:
移动开发 时间:
2014-08-08 18:27:07
阅读次数:
262
这题目写了我好长时间,但还是几乎(不要在意细节)一遍 A 了喵~据说有代码奇短的,Orz 思路巧妙的大爷想我这种 Brute Force 写写的傻 X 真是代码量飞起来了耶,喵~如果把每个人看成点,每个人要 kill 的人向此人连出一条有向边,那么每个点仅有一条出边和一条入边经验告诉我们,这就是 环...
分类:
其他好文 时间:
2014-08-08 17:53:46
阅读次数:
298
尝试了多种方式,包括源码安装,安装后,都会提示Can't locate File/Next.pm安装了File::Next后也报这个错误,感谢stackoverflow,找到一种可用的方式:在cpan中 force install App::Ack搞定,妥妥的。ACK确实比grep用起来方便,更懂程...
http://stackoverflow.com/questions/9627774/android-allow-portrait-and-landscape-for-tablets-but-force-portrait-on-phoneHere's a good way usingresource...
分类:
移动开发 时间:
2014-08-08 17:43:16
阅读次数:
779
linux系统java通过jni方式获取硬盘序列号http://blog.csdn.net/starter110/article/details/8186788使用jni在windows下读取硬盘序列号http://www.iflym.com/index.php/code/201109070001....
分类:
编程语言 时间:
2014-08-08 17:21:36
阅读次数:
291
在Express框架下,使用ejs模板引擎:支持默认的layout布局需要express-partials模块;使用include代替partials;片段视图显示方式也与3.x版不同,采用如下方式:routers/index.js添加:router.get(‘/list‘,function(req,res){
res.render(‘list‘,{
layout:false,
title:‘Express..
分类:
Web程序 时间:
2014-08-08 16:33:19
阅读次数:
312
生成一个名叫web.config文件,放在网站的根目录下,内容设置如下:<?xmlversion="1.0"encoding="UTF-8"?><configuration><system.webServer><!--将下面的规则添加到这里--><rewrite><rules><rulename="index"><matchurl="index.h..
分类:
其他好文 时间:
2014-08-08 16:31:17
阅读次数:
183
堆排序的时间复杂度是O(nlogn),下面上代码
public class HeapSort {
public void adjustHeap(int[] in, int index, int length) {
int leftcIndex = index * 2 + 1;
int rightcIndex = index * 2 + 2;
int bigest = index;...
分类:
其他好文 时间:
2014-08-08 16:04:16
阅读次数:
210
1在网站http://wp.qq.com/index.html上登录自己的QQ2填写3.点击“复制公开代码”
分类:
Web程序 时间:
2014-08-08 15:49:06
阅读次数:
247
1 @{ 2 ViewBag.Title = "Index"; 3 } 4 5 14 15 16 19 获取selected的数据
分类:
Web程序 时间:
2014-08-08 15:38:56
阅读次数:
254