ITeye博客

东风不度痴年少

jarod2008 · 共 52 篇文章

[置顶] 使用log4j为Tomcat输出日志

【转自】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 的日志 Tomcat 5.0.x 主要由两个途径记…

2008-08-20 13:42 · struts · 评论(1)

innerHTML中载入js的方法

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 changing P…

2009-09-05 11:01 · 静态语言 · 评论(0)

Tomcat启动后加载两次servlet的问题

前提: 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/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=...%0A%3CContext%20path%…

2009-08-22 16:02 · jsp · 评论(1)

Java static block静态快

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". So calling it t…

2009-08-04 09:07 · java · 评论(0)

CSS兼容IE6,IE7,FIREFOX的hack收集

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 #example { color:…

2009-05-14 17:32 · 静态语言 · 评论(0)

excel统计函数

(十)统计函数(3) 39.LOGINV 用途:返回x的对数正态分布累积函数的逆函数,此处的ln(x)是含有mean(平均数)与standard-dev(标准差)参数的正态分布。如果p=LOGNORMDIST(x,...),那么LOGINV(p,...)=x。 语法:LOGINV(probability,mean,standard_dev) 参数:Probability是与对数正态分布相关的概率,Mean为ln(x)的平均数,Standard_dev为ln(x)的标准偏差。 实例:公式“=LOGINV(0.036,2.5,1.5)”返回0.819815949。 40.LOGNORMDIST …

2009-05-13 18:15 · R · 评论(0)

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 its framework. Ontology can be said to study conceptions of reality .…

2009-05-11 17:04 · data mining · 评论(0)

离开页面前提示

<head> <script type="text/javascript"> function doOnBeforeUnload(){ return "您有内容尚未保存,离开将丢失当前编辑的内容。"; } </script> </head> <body onbeforeunload="javascript:return doOnBeforeUnload();">

2009-05-09 16:32 · 静态语言 · 评论(0)

java annotation 入门

版权声明:本文可以自由转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明 作者:cleverpig(作者的Blog: http://blog.matrix.org.cn/page/cleverpig ) 原 文:[http://www.matrix.org.cn/resource/article/44/44048_Java+Annotation.html]http://www.matrix.org.cn/resource/article/44/44048_Java+Annotation.html[/url] 关键字:Java,annotation,标注 摘要: 本 文针对jav…

2009-05-09 10:47 · java · 评论(0)

remove_rows_data_frame -+Table of Cont

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 delete r ows by extr acting all other r ows of th…

2009-04-16 08:59 · R · 评论(0)

“少用继承,多用组合”之CSS篇

继承是 css中经常要用到的技术,好处是可以尽量让页面的代码减少重复利用,但是随时项目越来越大,需求的不断变化,css代码就会变得越来越臃肿,后期难以控 制和维护。其实,css代码和普通程序代码在编写的时候有很多的相似之处,下面我们就用试试用组合的方式是不是能更好的解决这个问题。 下面是一段普通的代码: css: .box { border: 1 px solid #ccc ; font-size: 12 px ; background: #f1f1f1 ; padding: 10 px ; } html: < div class = " box " > this is a gray box…

2009-04-15 17:08 · 静态语言 · 评论(0)

10个你应该了解的极少用的HTML标签

1. <cite> 我们大多数人都知道 <blockquote>标签,但是你是否知道它的兄弟 <cite>呢?<cite> 允许你定义元素内的引用。典型的情况就是浏览器会将<cite>标签的内容选染成斜体,但是如果你设置了CSS样式的话,那么还是会以CSS 样式为准的。 <cite>对于书目和其他网站索引是非常有用的。请看下面这个例子: David Allen’s breakthrough organization book Getting Things Done has taken the web by storm. 2. <optgroup> <optgroup>对于在选择菜单下的选择组…

2009-04-15 17:06 · 静态语言 · 评论(0)

js 保留n为小数

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); } var t=parseFloat(form1.text2.value)*parseFloat(form1.text3.value); form1.text1.value=t.toFixed(2)

2009-03-31 18:07 · 静态语言 · 评论(0)

association rules关联规则

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 association rule mining is Ma…

2009-03-25 21:35 · data mining · 评论(0)

JSP代码段中直接访问值valuestack栈内容

有些特殊情下,需要在JSP的<%%>java代码段中直接访问值栈内容。而不使用<ww:property value="name"/>获取,可以通过如下方式进行: String name = (String)ActionContext.getContext().getValueStack().findValue( "name" ); 为了正常运行,还需要在jsp将这com.opensymphony.xwork.ActionContext 类引入 <%@ page import= "com.opensymphony.xwork.ActionContext" %>

2009-03-25 15:26 · jsp · 评论(0)