String d = "汗d"; String e = "喊"; String f = "d"; System.out.println("String length is " + d.length() + ". " + d.getBytes("GBK").length + " byte...
分类:
编程语言 时间:
2014-09-12 18:37:43
阅读次数:
274
今天重新调整了下配置文件,之前的apache_errorlog未匹配到clientip。1.首先修改shipper.confinput{
file{
type=>"apache-accesslog"
path=>"/var/log/httpd/access_log"
}
file{
type=>"apache-errorlog"
path=>"/var/log/httpd/error_log"
}
}
filter{
if[type..
分类:
其他好文 时间:
2014-09-12 17:24:04
阅读次数:
786
/**
* 上海汽车集团财务有限责任公司
* Copyright (c) 1994-2014 All Rights
Reserved.
*/
package com.saicfc.pmpf.internal.manage.utils;
import java.io.File;
import java.io.IOException;
import java.util.Iterator...
分类:
编程语言 时间:
2014-09-12 17:14:23
阅读次数:
173
package com.saicfc.pmpf.internal.manage.utils;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util....
分类:
编程语言 时间:
2014-09-12 17:14:03
阅读次数:
609
“C:/Program Files/Microsoft Visual Studio 10.0/VC/atlmfc/include/atlcore.h(35): fatal error C1189: #error :This file requires _WIN32_WINNT to be #defi...
#line指令用于改变 __LINE__和__FILE__的内容.__LINE__和__FILE__都是编译程序中预定义的标识符,其中标识符__LINE__的内容是当前被编译代码行的行号,__FILE__的内容是当前被编译源文件的文件名.#line的一般形式是:#line number"filen....
分类:
编程语言 时间:
2014-09-12 16:52:43
阅读次数:
241
举个例子:import csvimport ospath='/tmp/'file='test.csv'def generate_csv(path,file): if not os.path.exists(path): os.mkdir(path) files=os.path...
分类:
编程语言 时间:
2014-09-12 16:51:53
阅读次数:
235
一个简单的动态加载js和css的jquery代码,用于在生成页面时通过js函数加载一些共通的js和css文件。Java代码//howtousethefunctionbelow://$.include('file/ajaxa.js');$.include('file/ajaxa.css');//or$...
分类:
Web程序 时间:
2014-09-12 16:35:43
阅读次数:
214
Android中导入工程出现Project has no default.properties file! Edit the project properties to set one错误...
分类:
移动开发 时间:
2014-09-12 15:06:23
阅读次数:
291
一个分布式系统基础架构,由Apache基金会所开发。
用户可以在不了解分布式底层细节的情况下,开发分布式程序。充分利用集群的威力进行高速运算和存储。
[1] Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错性的特点,并且设计用来部署在低廉的硬件上;而且它提供高吞吐量(high throughput)来访问应用程...
分类:
其他好文 时间:
2014-09-12 13:33:03
阅读次数:
284