在两台Linux服务器ddd(IP:10.3.93.212)和tsung213(IP:10.3.93.213)上安装了Tigase,要把这两台服务器组成一个Tigase集群,只需要修改这两台服务器的init.properties文件的相关配置即可。config-type=--gen-config-d...
分类:
其他好文 时间:
2014-08-26 15:09:56
阅读次数:
389
(1)初级我们从几个简单的使用场景开始:重命名属性,忽略属性,以及修改属性所使用的类型。注意:下面的例子仅仅显示了成员属性(field properties),注解同样也可以用在成员方法(getter/setter)上。①属性重命名时使用的注解最常见的使用方式之一就是改变某个成员属性所使用的JSON...
分类:
其他好文 时间:
2014-08-26 13:19:46
阅读次数:
203
eclipse中默认是不能直接打开文件所在的目录的,需要在文件中右键--》properties--》location,复制到资源管理器中才能打开文件所在的目录。这种方法很麻烦。这里介绍一种在eclipse中直接打开文件所在目录的方法。工具/原料eclipse方法/步骤展开如下菜单:Run ---- ...
分类:
系统相关 时间:
2014-08-26 09:42:15
阅读次数:
253
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-26 00:14:25
阅读次数:
334
1、java处理国际化片段 static ? ? { ? ? ? ? logger.log(Level.INFO, "开始加载语言环境"); ? ? ? ? // 默许中文 ? ? ? ? locale = new Locale(UtilsConstants.UTILS_LANGUAGE, ? ? ? ? ? ?...
分类:
编程语言 时间:
2014-08-25 21:19:35
阅读次数:
256
Erlang原理 (转载自ITEYE cryolite博客 ps:精彩)by Robert VirdingThis is a description of some of the basic properties and features of Erlang and an attempt to de...
分类:
其他好文 时间:
2014-08-25 16:21:54
阅读次数:
185
1、perm.properties文件的配置
iapp.perm.CAMERA=摄像头
iapp.perm.SMS=短信
2、读取properties配置文件的内容(通过java.lang.Class类的getResourceAsStream(String name) 方法来实现)
public class Test {
public static void main(Str...
分类:
编程语言 时间:
2014-08-25 11:54:34
阅读次数:
208
SharedPreferences提供一种按“Key=value”的形式进行数据存储
android.content.SharedPreferences借口所保存的信息只能是一些基本的数据类型,如字符串,整形,布尔型等
SharedPreferences保存的是配置文件,文件后缀默认为 *.xml,跟Java中的Properties类一样(只能保存基本的数据类型)
不能保存中文,中文需要...
分类:
移动开发 时间:
2014-08-25 10:04:53
阅读次数:
188
The steps:First you need to edit the file in:/etc/hostconfigand remove the lineSince this is a system file I advise you to open it with nano in termin...
分类:
数据库 时间:
2014-08-24 20:45:02
阅读次数:
183
你打开tomcat7\conf\catalina.properties文件再打开tomcat5的,看完后, 你就知道了tomcat 5.5.35## List of comma-separated paths defining the contents of the "shared" # class...
分类:
其他好文 时间:
2014-08-24 16:39:22
阅读次数:
181