zabbix 默认会有3个script功能,分别是Detect operating system,ping ,traceroute ,都比较好用。默认安装完毕需要做一些修改才能正常使用。1.traceroute ,默认的path 不对, whichtraceroute ,然后把正确的信息填上去就行了...
分类:
其他好文 时间:
2014-07-16 19:06:42
阅读次数:
344
1. 背景音乐1> 添加AVFoundation.framework框架,import该框架头文件2> 加载背景音乐路径 NSString *path = [[NSBundle mainBundle] pathForResource:@”music.mp3” ofType:nil];3> 路径转化....
分类:
其他好文 时间:
2014-07-16 18:42:21
阅读次数:
220
问题如何发送一个简单的HTTP GET请求并且取回相应的HTTP响应。设计创建一个WebClient类的实例,然后使用它的DownloadData()方法。方案string uri = "http://server/path/WebForm.aspx";WebClient wc = new WebC...
分类:
其他好文 时间:
2014-07-16 18:42:15
阅读次数:
186
public class FileSplit extends InputSplit implements Writable { private Path file; private long start; private long length; private String[] hosts; pu...
分类:
其他好文 时间:
2014-07-16 18:32:45
阅读次数:
236
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"Corner Cases:Did you con...
分类:
其他好文 时间:
2014-07-16 17:54:16
阅读次数:
156
一、路径1、dirname -- 返回路径中的目录部分 $path = "/etc/passwd"; $file = dirname($path); // "/etc"2、basename -- 返回路径中的文件名部分 $path = "/home/httpd/html/index.php"; $f...
分类:
Web程序 时间:
2014-07-16 17:47:43
阅读次数:
241
#宏函数my-dir返回编译系统提供的当前路径,即Android.mk的目录
#如(HelloWorld/proj.android/jni/XX)
LOCAL_PATH := $(call my-dir)
#初始化模块 重置除LOCAL_PATH变量以外的所有变量
include $(CLEAR_VARS)
#导入库目录
$(call import-add-path,$(LOCAL_P...
分类:
移动开发 时间:
2014-07-16 17:25:20
阅读次数:
262
1. UIBezierPath* path = [UIBezierPathbezierPathWithRoundedRect:CGRectMake(30,30,100,100)cornerRadius:0]; CAShapeLayer* layer = [CAShapeLayerlayer]; l....
分类:
其他好文 时间:
2014-07-15 23:58:10
阅读次数:
554