配置项 配置说明 storm.zookeeper.servers ZooKeeper服务器列表 storm.zookeeper.port ZooKeeper连接端口 storm.local.dir storm使用的本地文件系统目录(必须存在并且storm进程可读写) storm.cluster.mode Storm集...
分类:
其他好文 时间:
2014-09-03 17:00:37
阅读次数:
193
方法一:
假设要内置的软件名称为iperf.exe
1. 将iperf.exe放到Codebase的任意一个目录下(该目录必须能够在搜索Android.mk时被搜索到),比如system/iperf/iperf.exe
2. 在system/iperf目录下添加一个Android.mk文件,内容如下:
LOCAL_PATH:= $(call my-dir)
PRODUCT_COPY_F...
分类:
移动开发 时间:
2014-09-03 13:06:46
阅读次数:
253
$contents = "All the content"; $dir = 'c:'; $file_path = $dir . "\\content.txt"; if(is_writable($file_path)) { file_put_contents($file_path , $con...
分类:
Web程序 时间:
2014-09-03 12:50:26
阅读次数:
163
PHP是以UNIX的文件系统为模型的,因此在Windows系统中我们只能获得“file”、“dir”或者“unknown”三中文件类型。而在UNIX系统中,我们可以获得“block”、“char”、“dir”、“fifo”、“file”、“link”和“unknown”7种类型,各文件类型的详细说明...
分类:
Web程序 时间:
2014-09-03 12:46:26
阅读次数:
445
/** * 保存json到本地 * @param mActivity * @param filename * @param content */ public static File dir = new File(Environment.getExter...
分类:
移动开发 时间:
2014-09-03 11:04:56
阅读次数:
411
安装keepalived#./configure--sysconf=/etc--with-kernel-dir=/usr/src/kernels/2.6.32-358.el6.x86_64/&&make&&makeinstall
#ln-s/usr/local/sbin/keepalived/sbin/
#chkconfigkeepalivedon修改网卡配置#vim/etc/sysconfig/network-scripts/ifcfg-lo:0
DEVICE..
分类:
其他好文 时间:
2014-09-02 18:08:35
阅读次数:
210
# c.cpp混合编译的makefile模板 # # BIN = client_systemBASE_INSTALL_DIR := /opt/arm-2009q1BUILD_TOOL_DIR := $(BASE_INSTALL_DIR)BUILD_TOOL_PREFIX :=...
分类:
其他好文 时间:
2014-09-01 20:53:13
阅读次数:
343
自动查找相关文件.上传到服务器#!/usr/bin/ruby
#coding:utf-8
require‘date‘
$result=[]
bak_ser="bacula@192.168.100.24"
defcheck(top_dir,ext_type,exclude,dir_deep)
content=Dir.entries(top_dir)
foriincontent
i=top_dir+"/"+i
#hiddendirorhiddenfile
nextifFile.ba..
分类:
其他好文 时间:
2014-09-01 15:58:34
阅读次数:
286
先上传dll文件到任意目录,如:D:/RECYCLER/lib_mysqludf_sys.dll导入dll,根据版本导入到windows或mysql插件目录(一般执行select@@plugin_dir可看到插件目录具体路径):selectload_file(‘D:/RECYCLER/lib_mysqludf_sys.dll’)intodumpfile’c:/windows/lib_mysqludf_sys.dll’..
分类:
数据库 时间:
2014-09-01 10:53:33
阅读次数:
268
__FILE__ 文件的完整路径和文件名__DIR__ 文件所在的目录__FUNCTION__ 函数名称__CLASS__ 类的名称__METHOD__ 类的方法名__NAMESPACE__ 当前命名空间的名称(大小写敏感)
分类:
其他好文 时间:
2014-08-31 22:46:21
阅读次数:
248