`
slippy
  • 浏览: 32794 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
  Public key cryptography is a well-known concept, but for some reason the JCE (Java Cryptography Extensions) documentation doesn't at all make it clear how to interoperate with common public key formats such as those produced by openssl. If you try to do a search on the web for how to make ...
1. Install tftpd and related packages.   $ sudo apt-get install xinetd tftpd tftp 2. Create /etc/xinetd.d/tftp and put this entry:   service tftp { protocol        = udp port            = 69 socket_type     = dgram wait            = yes user            = nobody server          = /usr/s ...
public class StaticVar { private static StaticVar sv = new StaticVar(); public static int i; public static int j = 0; private StaticVar() { i ++; j ++; } public static StaticVar getInstance(){ return sv; } public static void main(String[] args) { //StaticVar sv ...
一直以来没有对程序执行的时间不是很清楚,今天大概研究了一下,为了减少语言的因素对程序的影响,在这里采用c语言来测试,因为如果采用java的话,执行一条java字节码,可能需要好几调机器指令。看如下代码 #include <stdio.h> #include <stdlib.h> #include <time.h> int main(){ int j = 0; long long i = 0; srand(time(NULL)); for(i = 0; i < 100000000ll; i++){ j += rand(); ...
A user-settable boolean to determine whether ClassLoader.loadClass should accept array syntax.  This value may be changed during VM initialization via the system property "sun.lang.ClassLoader.allowArraySyntax". 原因  jdk 1.5,1.6 对sun.lang.ClassLoader.allowArraySyntax的默认值设置不同1.5为true, 1.6为fa ...
Today I was briefly confused by an error message issued by the OSGi Equinox runtime’s Declarative Services runtime which I did not understand immediately. For your – and my own – reference find the solution here. First, this was the error message I got: 1281104579615=1::[SCR] Found components with d ...
先上代码 class MyException extends Exception { private static final long serialVersionUID = 1L; } public class UnusedTest { static boolean b = false; static void method() throws MyException { if (b) { throw new MyException(); } } ...
某Architect给他的Engineering团队的写了一封信《From an architect to a programmer》,在信中,结合他20多年在软件圈的经验,他为程序员提出了9条建议,去做一个快乐、受人尊敬的程序员。酷壳网站版主陈皓将这封信进行了翻译,相信所 ...
 这么题目看起来就比较有争议:运行起来专业的代码才专业嘛。但是从另外一个角度来说"让代码看上去比较专业"是一个积极的做法,无论对谁都没有坏处,对工程师,管理者和用户都有益无弊。  首先这个题目说的是 ...
作者:小强 MSN:blood1949@msn.com 本人为作者原创,若转贴,请保留作者署名,谢谢!1. 必须限制口令文件读取访问 错误. A. 错误描述: 在配置好JVM启动参数后, 启动RESIN, 过程中发生错误,无法正常启动. 1)错误信息如下:
 一年前斯坦福和Apple联手推出了基于iPhone平台的开发课程, 这个课程的ppt被放在网上分享,反响非常好。这个学期,斯坦福将课程进行了录像,放在了iTunes university上提供下载,目前这个课程在iTunes的下载排行第一,达到了100 ...
下面是来自 Commandlinefu 网站由用户投票决出的 10 个最酷的 Linux 单行命令,希望对你有用。 sudo !! 以 root 帐户执行上一条命令。 python -m SimpleHTTPServer 利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee % 在 Vim 中无需权限保存编辑的文件。 cd - 更改到上一次访问的目录。 ^foo^bar 将上一条命令中的 foo 替换为 bar,并执行。 cp filenam ...
全功能内置分析器,如 JConsole 和 VisualVM 的成本有时比它们的性能费用还要高 — 尤其是在生产软件上运行的系统中。因此,在聚焦 Java 性能监控的第 2 篇文章中,我将介绍 5 个命令行分析工具,使开发人员仅关注运行的 Java 进 ...
Found a cause the problem. There was a behavior change in ClassLoader.loadClass() handling byte array. As discussed inhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149Adding this VM argument to client JVM preserves the backward compatible behavior of loadClass() and provides a workaround wit ...
Intent i = new Intent(Intent.ACTION_VIEW); String filePath = "/sdcard/XXX.apk"; i.setDataAndType(Uri.parse("file://" + filePath),"application/vnd.android.package-archive"); context.startActivity(i);
Global site tag (gtag.js) - Google Analytics