- 浏览: 171299 次
- 性别:
- 来自: 南京
-
最新评论
文章列表
ECLIPSE 开启断言
- 博客分类:
- JAVA
eclipse中开启断言
选择菜单:Run ---> Run... ---> 选择 Arguments 选项卡
在 VM arguments 文本框中输入: -ea 注意中间没有空格,如果输入 -da 表示禁止断言。
List<Number> nums = new ArrayList<Number>();
nums.add(2); //boxing Integer.Valueof()
nums.add(3.14); //boxing Double.Valueof()
//assert nums.toString().equ ...
以下为项目代码的节选:
/// 得到标准差
/// </summary>
public virtual double? Standard_deviation
{
get
{
double? value = 0;
System.Data.DataTable dt = new System.Data.DataTable();
dt.Columns.Add("value&qu ...
安装CENTOS时候碰到一句提示 关于kdump,不懂所以查资料如下.
转载:http://www.geek521.com/?p=1492
kdump 是一个新的,而且非常可信赖的内核崩溃转储机制。崩溃转储数据可以从一个新启动的内核的上下文中获取,而不是从已经崩溃的内核的上下文。当系统崩溃 时,kdump使用kexec启动到第二个内核。第二个内核通常叫做捕获内核(capture kernel),以很小内存启动,并且捕获转储镜像。除了执行既定的kdump任务,它还允许自定义执行脚本,下面介绍一下如何在新内核上执行自定义的操 作:
安装kdump环境
yum install kexec-tool ...
-----------------------------------------------------
-- Export file for user SCOTT --
-- Created by Administrator on 2013-5-16, 15:31:31 --
-----------------------------------------------------
--http://wenku.baidu.com/view/6894a5290066f5335a812157.html###
--修改用户密码:
alter user s ...
12.Execution:
The Java Virtual Machine starts execution by invoking the method main of some
specified class, passing it a single argument, which is an array of strings
1 Load the Class.
The loading process is implemented by the class ClassLoader and its subclasses.
Different subclasses of ClassL ...
common-logging
- 博客分类:
- 开源项目
同一项目:http://yanqingluo.iteye.com/admin/blogs/1954385
新增类:
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class CommonLogTest {
private static Log log = LogFactory.getLog(CommonLogTest.class);
public void log(){
log.debug(".... ...
http://www.ibm.com/developerworks/cn/java/j-dyn0429/
http://www.iteye.com/topic/84566
http://commons.apache.org/proper/commons-logging/tech.html#Loading
http://www.ibm.com/developerworks/cn/java/j-lo-classloader/index.html
http://blog.csdn.net/sureyonder/article/details/5726994
JAVA 类加载1.
- 博客分类:
- JAVA
由COMMON-LOGGING 和jcl-over-slf4j类加载困惑而看文档.
1.http://commons.apache.org/proper/commons-logging/tech.html
2.jls7_.pdf 中的12章.
3.jvms7.pdf 中的5章.
其中碰到一个没见过的ERROR:java.lang.LinkageError
JAVA DOC的意思:
Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latt ...
http://www.voip-info.org/wiki/view/Asterisk+dimensioning
http://blog.csdn.net/zuoluoboy/article/details/4034943
在commons-logging中
实现PrivilegedAction接口中的RUN函数.根据调用函数的要求返回不同对象.
1.org.apache.commons.logging.impl.SimpleLog
private static InputStream getResourceAsStream(final String name) {
return (InputStream) AccessController.doPrivileged(new Priv ...
JAVA 关键字 volatile
- 博客分类:
- JAVA
http://www.infoq.com/cn/articles/ftf-java-volatile
http://sakyone.iteye.com/blog/668091#bc2310849
http://www.ibm.com/developerworks/cn/java/j-jtp06197.html
建立一个简单的工程.加上各种日志,LOG4J,COMMONLOGGING,SLF4J,LOGBACK所有JAR,及源码,做个比较.
pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4. ...