It’s a major release this time, Horizon 6.0 is out. You can get to the downloadshere. As always, here’s theWhat’s New from the release notes:This rele...
分类:
其他好文 时间:
2014-07-06 22:43:46
阅读次数:
244
这年头和LBS相关的应用越来越火。从foursquare的热闹程度就可见一般(什么,没听过 foursquare…. 哥们,你 out 了)。和 LBS有关的应用一般都包括一些共同的操作,最常见的一个,就是找附近的东东(餐馆, 商店, 妞…)。 所以, 这里就抛出了一个问题, 怎样才能知道两个物体离...
分类:
其他好文 时间:
2014-07-05 18:04:04
阅读次数:
224
C#中方法的参数有四种类型:1. 值参数类型 (不加任何修饰符,是默认的类型) 2. 引用型参数 (以ref 修饰符声明) 3. 输出型参数 (以out 修饰符声明) 4. 数组型参数 (以params 修饰符声明)
分类:
其他好文 时间:
2014-07-05 17:46:21
阅读次数:
194
最近阅读leveldb源码,作为一个保证可靠性的kv数据库其数据与磁盘的交互可谓是极其关键,其中涉及到了不少内存和磁盘同步的操作和策略。为了加深理解,从网上整理了linux池畔同步IO相关的函数,这里做一个罗列和对比。大部分为copy,仅为记录,请各位看官勿喷。 传统的UNIX实现在内核中设有缓冲区...
分类:
系统相关 时间:
2014-07-04 00:08:09
阅读次数:
414
/*****openssl 系统命令 x509输入文件类型 -in 是参数输入文件 -inform本地文件 -out是参数 是生成文件 ***/openssl x509 -in *.cer -inform der -out *.pem openssl pkcs12 -nocets -...
分类:
Web程序 时间:
2014-07-03 23:53:50
阅读次数:
439
输入:s,然后利用快捷提示键(alt+/)快速的打出:System.out.println("");
这样可以节省不少时间,使用了三个按键,却打出了这么多的字。其实,这个功能是利用eclipse的Templates模板实现的,具体的设置过程如下所示:
Window->Preference 打开参数设置面板,然后选择:Java-> Editor -> Templates,打开Templates窗...
分类:
系统相关 时间:
2014-07-03 17:04:27
阅读次数:
276
【程序1】
题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?
//这是一个菲波拉契数列问题
public class lianxi01 {
public static void main(String[] args) {
System.out.println...
分类:
编程语言 时间:
2014-07-03 16:33:20
阅读次数:
260
静态方法里可以调用静态方法和静态变量,同时也能调用非静态方法和非静态变量。
public class Test {
public Test() {};
public Test(int i) {this.n = i;}
public static int m = 5;
public int n = 10;
public void fun1() {System.out.println("非...
分类:
其他好文 时间:
2014-07-03 16:19:05
阅读次数:
188
publicStringgetDeptOuId(StringopenId)throwsIOException{
StringdeptId="";
//存储信息的文件的绝对路径
StringcsvPath=FileUtil.getWorkingPath()
.resolve(ConfigUtil.getConfig().get("idmappings")).toString();
System.out.print(csvPath);
//此处可以用..
分类:
其他好文 时间:
2014-07-03 15:04:05
阅读次数:
191
Java中的类成员基本分为静态成员,实例变量方法中特别的是静态方法和构造方法。1、定义一个类publicclassClassLoaderTest{publicinta;publicStringb;privatestaticintc;publicClassLoaderTest(){System.out.println("执行前:"+a+""+b);a=10;b="lisi";System.out.println("构造..
分类:
编程语言 时间:
2014-07-03 14:35:53
阅读次数:
226