在maven中如何使用Jboss,在网上找了下,一般都是使用cargo-maven2-plugin这个插件来操作的,但是maven中明明提供了jboss-maven-plugin为啥不能用呢?历经千辛万苦终于找到了使用方法
1,配置pom.xml文件,增加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<jbossHome>/opt/jboss-4.2.2.GA</jbossHome><!-- jboss 安装目录 -->
<port>8080</port> <!-- jboss使用端口 -->
</configuration>
</plugin>
Read the rest of this entry »
自己常用的ubuntu软件及安装,高手大虾可以直接无视。
注意: 下面提供下载的所有软件都是Ubuntu 8.10 i386 x86环境下的,如果系统或者硬件环境不同,请到Google上去找或者下面这个地方下载
安装说明:
使用源安装,直接使用命令
sudo apt-get install xxx或者 sudo aptitude install xxx
deb文件使用命令
sudo dpkg -i xxx 或者 sudo gdebi xxx
因为这是个初级教程,没有需要自己编译的软件,这里顺便说下编译吧,通常是使用以下命令
./configure(这里可能要接一些参数,参数一般在目录下的README里有详细说明)
make
sudo make install
当然中间可能出现缺少编译环境的情况,从源里或者网上把缺少的编译环境装上就可以了
Dojo出的用于测试纯DOM操作和几个流行JS包操作DOM的速度,只是很奇怪为啥没有Ext
This is not SlickSpeed, though uses the same framework.
Tests are run against a local copy of this document. They add, remove, append, connect and otherwise mangle the DOM as defined by the sample-tests.js file.
下面是我本机测的结果(Inetl T2080*2+DDR2 800 2.5G+Ubuntu 8.10+Firefox3.0.8),点击进入 Report能看到所有参加测试并提交后的平均结果。
这是个比较有意思的对比
首先作者使用了基于Events的DOMContentLoaded来执行两个单独的初始化工作
document.addEventListener("DOMContentLoaded", function() { console.log("Init: 1"); DOES_NOT_EXIST++; // this will throw an error }, false); document.addEventListener("DOMContentLoaded", function() { console.log("Init: 2"); }, false);
得到结果
Init: 1
Error: DOES_NOT_EXIST is not defined
Init: 2
虽然产生了错误,但是两个初始化都是有执行的。
Read the rest of this entry »
第一个接触的JS lib,现在转向jQuery,用得比较少了。这个版本主要是对 Internet Explorer 8 进行了一些兼容方面的优化。
更新如下:
- Full compatibility with Internet Explorer 8. Juriy has spearheaded the effort to replace most of our IE “sniffs” into outright capability checks — making it far easier to support IE8 in both “super-standards” mode and compatibility mode.
- Element storage, a feature announced previously. Safely associate complex metadata with individual elements.
mouseenterandmouseleaveevents — simulating the IE-proprietary events that tend to be far more useful thanmouseoverandmouseout.- An
Element#clonemethod for cloning DOM nodes in a way that lets you perform “cleanup” on the new copies.
一些改进:
- Better housekeeping on event handlers in order to prevent memory leaks.
- Better performance in
Function#bind,Element#down, and a number of other often-used methods. - A number of bug fixes.
Links: prototype Download: prototype 1.6.1 RC2 API: api doc






Recent Comments