`
jarod2008
  • 浏览: 80527 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
【转自】http://hi.baidu.com/injava/blog/item/e353c1cacc469a46f31fe74b.html   简介 为了能够满足我的一个项目中日志输出的特殊要求,我花了好几个小时配置log4j 为Tomcat5.0.28 输出日志。本文说明了一些机制,并且描述了配置Tomcat 每日生成一个日志文件的步骤,涵盖Tomcat5.0.x 和5.5.x 版本。 注 :   最新的 log4j 1.3 alpha 测试版已经支持每日生成一个日志文件。参考本文 相关链接 了解如何进行安装和配置。 Tomcat 5.0 .x 的日志 ...
A common AJAX technique is to return straight HTML and use the innerHTML element attribute to insert it into the DOM. Unfortunately, JavaScript inserted into the DOM this way (inside a <script> tag) will not execute in all browsers. I found this out when trying to implement a dynamically ch ...
前提:     1、存在某个应用:hello     2、该应用存放路径:D:\apache-tomcat -5.5.17\webapps\hello     3、Tomcat 的server.xml部分配置信息如下: Java代码 <embed type="application/x-shockwave-flash" width="14" height="15" src="http://qixiaopeng.iteye.com/javascripts/syntaxhighlighte ...
static variables or static blocks in a class will be initialised before the class gets instantiated. Also, we all know that the static variables are not tied up with the instances. So even if we have the reference as null, the variable s value had already been initalised to "hello&q ...
 CSS兼容IE6,IE7,FIREFOX的hack收集 一种,是CSS HACK的方法注意顺序。 程序代码 程序代码 height:20px; /*For Firefox*/ *height:25px; /*For IE7 & IE6*/ _height:20px; /*For IE6*/ 下面是针对id或者是自定义的样式也属于CSS HACK,不过没有上面这样简洁。 程序代码 程序代码 #example { color: #333; } /* Moz */ * html #example { color: #666; } /* IE6 */ *+html #exa ...
(十)统计函数(3)   39.LOGINV   用途:返回x的对数正态分布累积函数的逆函数,此处的ln(x)是含有mean(平均数)与standard-dev(标准差)参数的正态分布。如果p=LOGNORMDIST(x,...),那么LOGINV(p,...)=x。   语法:LOGINV(probability,mean ...

ontology

什麼叫Ontology? 根據wikipedia的解釋:  In philosophy , ontology  is the study of being or existence . It seeks to describe or posit the basic categories and relationships of being or existence to define entities and types of entities within ...
    <head>        <script type="text/javascript">         function doOnBeforeUnload(){                   return "您有内容尚未保存,离开将丢失当前编辑的内容。";             }         </script>     </head>     <body onbeforeunload="javascript:return doOnBeforeUnload ...
版权声明:本文可以自由转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明 作者:cleverpig(作者的Blog:http://blog.matrix.org.cn/page/cleverpig ) 原 文:[http://www.matrix.org.cn/resource/article/44/44048_Java+Annotation.html]http://www ...
Using the built-in data set air quality , fir st load the data and check what var iables it contains: data ( air quality ) names ( air quality ) Among ways to subset r ows of a data fr ame in S language, ther e ar e two usual appr oaches. Either you delet ...
继承是 css中经常要用到的技术,好处是可以尽量让页面的代码减少重复利用,但是随时项目越来越大,需求的不断变化,css代码就会变得越来越臃肿,后期难以控 制和维护。其实,css代码和普通程序代码在编写的时候有很多的相似之处,下面我们就用试试用组合的方式是不是能更好的解决这个问题。 下面是一段普通的代码: css: .box {   border: 1 px   solid #ccc ;   font-size: 12 px ;   background: #f1f1f1 ;   padding: 10 ...
1. <cite> 我们大多数人都知道 <blockquote>标签,但是你是否知道它的兄弟 <cite>呢?<cite> 允许你定义元素内的引用。典型的情况就是浏览器会将<cite>标签的内容选染成斜体,但是如果你设置了CSS样式的话,那么还是会以CSS 样式为准的。 <cite>对于书目和其他网站索引是非常有用的。请看下面这个例子: David Allen’s breakthrough organization book Getting Things Done has taken the web by ...
  Number.prototype.toFixed=function(len)//精确小数     {     if(isNaN(len)||len==null)     {     len   =   0;     }     else     {     if(len<0)     {     len   =   0;     }     }     return   Math.round(this   *   Math.pow(10,len))   /   Math.pow(10,len); ...
Introduction Association rule mining finds interesting associations and/or correlation relationships among large set of data items. Association rules show attribute value conditions that occur frequently together in a given dataset. A typical and widely-used example of ass ...
    有些特殊情下,需要在JSP的<%%>java代码段中直接访问值栈内容。而不使用<ww:property value="name"/>获取,可以通过如下方式进行: String name = (String)ActionContext.getContext().getValueStack().findValue( "name" ); 为了正常运行,还需要在jsp将这com.opensymphony.xwork.ActionContext 类引入 <%@ page import= "com.op ...
Global site tag (gtag.js) - Google Analytics