public class ToLog { public static void
main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt");
if(!f.ex...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
300
1. build path:a) source
folder:包括openfire和各插件的代码。b)
libraries:build/lib下jar包和插件下jar包,jdk/lib/tools.jar(编译jsp需要)。2. ant
build:build/build.xmla) openfir...
分类:
其他好文 时间:
2014-07-22 23:12:36
阅读次数:
489
[share]path=/home/an/shareavailable=yesbrowse
able=yespublic=yeswritable=yessecurity = userusername map =
/etc/samba/smbusers[share]comment = Shared F...
分类:
其他好文 时间:
2014-07-22 23:11:34
阅读次数:
332
转载请注明出处控制文件(Control
File)是Oracle的物理文件之一,它记录了数据库的物理结构(数据文件、日志文件等的名称和位置),数据库转载和打开都需要控制文件,还记录了日志序列号,检查点和日志历史信息,同步和恢复数据库都需要控制文件。控制文件包含以下信息:
数据名称 数据文件名称和位置...
分类:
数据库 时间:
2014-07-22 23:11:16
阅读次数:
474
$_$PROCESS_ID$$read a file line by
line#!/usr/bin/perluse strict;use warnings;my $dir ="./tmp";open (FH, ") {print
"$_";}
分类:
其他好文 时间:
2014-07-22 23:09:35
阅读次数:
293
本人使用的是poi-bin-3.10-FINAL-20140208.zip
版本的poi以下是程序关键代码://需要引用的类import java.io.File;import
java.io.FileInputStream;import java.io.FileOutputStream;impor...
分类:
其他好文 时间:
2014-07-22 23:09:34
阅读次数:
266
事情是这样的,今天写测试代码的时候发现,进程 A 调用进程 B,A 与 B不在同一路径下,B
中使用Environment.CurrentDirectory获取当前路径,本以为获取的路径应为 B 所在目录,结果证明,获取路径为 A 路径;要获取 B
所在路径,需使用:Path.GetDirector...
分类:
其他好文 时间:
2014-07-22 23:09:33
阅读次数:
250
1、解压源码2、把build/eclipse中的文件cp到源码跟目录,并修改文件名,前面增加"."号,变成eclipse工程。3、导入eclipse,
把build/lib/, build/lib/dist, build/lib/merge,build/lib/src 下的包放到build path...
分类:
其他好文 时间:
2014-07-22 23:08:35
阅读次数:
309
/** * Definition for binary tree * struct
TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :
val(x), left(...
分类:
其他好文 时间:
2014-07-22 23:07:34
阅读次数:
312
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379