ITeye博客

bitan的博客

bitan · 共 9 篇文章

linux 命令

远程复制:scp -Pport source target scp -P10022 aaa ./ ssh 登录:ssh user@host -pport ssh hadoop@localhost -p1111 ssh 实现机器跳转: ssh -f -N -L localport:targethost:targethostport user@transferHost 配置系统中所用软件的版本(当安装了多个版本时) sudo update-alternatives --config valac 查看文件夹中每个子目录或文件所占的空间 du -h --max-depth=1 查看系统启动时间:da…

2012-07-18 11:05 · linux · 评论(0)

ipv6造成的死锁问题

Description For sites using only IPv4, you may find better performance and simplicity in configuring the environment to use only IPv4, wherever possible. This wiki page provides guidance on forcing applications to use IPv4 when possible. Many OSs will enable IPv6 by default, even if the environment…

2012-07-18 10:59 · Java · 评论(2)

Service provider

Overview Files in the META-INF/services directory are service provider configuration files. A service is a well-known set of interfaces and (usually abstract) classes. A service provider is a specific implementation of a service. The classes in a provider typically implement the interfaces and subc…

2012-07-18 10:58 · Java · 评论(0)

ftp replycode summary

Reply code summary Here is an overview of the most important reply codes that will be displayed by the FTP Protocol. These triple-digit codes indicate a positive response, a successful operation, a positive interim response, provisional negative response or a permanent negative response, depending …

2012-05-24 13:43 · Java · 评论(0)

vim 格式化xml

.vimrc au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null gg=G 格式化

2012-04-18 12:56 · linux · 评论(0)

VI 基本命令

进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename....filename :打开多个文件,依次进行编辑 移动光标类命令** h :光标左移一个字符 l :光标右移一个字符 space:光标右移一个字符 Backspace:光标左…

2012-04-13 16:54 · linux · 评论(0)

GVIM 自动在新标签页中打开文件

在打开方式中,自定义命令 gvim -p --remote-tab-silent "%1"

2012-04-13 12:48 · linux · 评论(0)

JAVA 常用工具类(转)

StringUtils 这是象面包和奶油一样必须的通用语言库,这个实用工具类包括一些很早以前在String中未包含的重要方法。 StringUtils.isEmpty(null) && StringUtils.isEmpty(""); // true StringUtils.isBlank(" \n\t"); // true StringUtils.substringAfterLast("foo.bar.baz", "."); // "baz" StringUtils.substringBeforeLast("foo.bar.baz", "."); // "foo.bar" StringUt…

2012-04-01 14:17 · Java · 评论(0)

Java 对象加密解密

import java.io.*; import javax.crypto.*; import java.security.*; class A implements Serializable { private String a; public String getA() { return a; } public void setA(String a) { this.a = a; } public String toString(){ return a; } } public class DESObjectToFile { public static void main(String[] …

2012-03-31 13:22 · Java · 评论(0)