一、技术门户类 1、微软开发者网络(MSDN):http://msdn.microsoft.com/ 2、IBM开发者网络:http://www.ibm.com/developerworks/ 3、Borland开发者网络(BDN):http://bdn.borland.com/ 4、SUN开发者网络(SDN) : http://developers.sun.com/ 5、塞迪网:http://www.ccidnet.com/ 6、计算机世界网:http://www.ccw.com.cn/ 7、中国软件网:http://www.csdn.net/ |
二、软件工程类 1、UML播种机:http://www.umlchina.com 2、UML软件工程组织:http://www.uml.org.cn 3、IT之源:http://www.iturls.com 4、中国系统分析员协会网站:http://www.csai.cn 5、软件工程专家网:http://www.51cmm.com 6、系统/软件工程研究与实践论坛:http:www.seforum.net/ 阅读全文 >> |
如何查找JBoss所发布的JNDI资源
![](https://yanbin.blog/wp-content/uploads/2018/06/java-logo.png)
J2EE容器分为Servlet容器和EJB容器,例如Tomcat就是一个Servlet容器,WebLogic,WebSphere Application Server,JBoss就是EJB容器。他们都提供JNDI的支持,你可以把任何资源(如DataSource、JMS、Queue、Mail甚至是URL资源)都绑定到JNDI上下文中,这样可以降低组件间的耦合性。
通常的Servlet容器(如Tomcat、Resin)中的JNDI资源只能被容器中的程序查到、使用,而不能在容器外引用,也就是只能被容器所以进程所用;而EJB容器中的JNDI资源却可以在容器外,或者是另一台机器上的程序查找到并透明使用,因为EJB本来就是要为分布式服务的。EJB容器中的JNDI资源可以通过JNP、RMI、IIOP、T3或文件引用的方式发布出去。 阅读全文 >>
刚开始学习使用JBoss就被绊了一下
刚开始碰到的一个问题是我JDK安装的是1.5,启动jboss-3.2.3就有问题,出现的错误提示是
Failed to boot JBoss:
javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:499)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:335) 阅读全文 >>
Every day English(2005-11-17–2005-11-24)
2005-11-17
老外不说:
1)What time is convenient for you?(fault) What time is good for you?(correct)/什么时间你有空?
2)I slept early.(fault) I went to bed early./我睡得早。
词组:
1)go jogging/慢跑(不说"run") 阅读全文 >>
研究 WebSphere MQ (Workflow) 时在网上幸遇IBM技术支持工程师
在公司加入了一个新的项目组,被分配去研究 WebSphere MQ Workflow,Workflow是有些基本的了解,但是MQ和JMS还不是很清楚,更主要的是环境不知道怎么去搭建,也不知道MQ与Workflow有什么关系。
最开始只知道有一个软件是WebSphere MQ Workflow,于是安装它吧,没想我无论是选择安装服务器端还是客户端都提示我需要MQSeries这个东西,我该到哪儿去找这个东西呢?而此时我旁边的同事却把Workflow给装上了,怎么回事呢?他说他的添加删除程序里有一个WebSphere MQ,他也不知道是几时安装的,查查安装路径才知道是WAS5.1自己带的一个MQ。于是我也装上WAS 5.1的MQ部件,果然Workflow也能安装上了。 阅读全文 >>
在网上找到了一款非常好用的吉他调音器
许久没摸过吉他了,忽一拿来连调音时耳朵都不那么顺了,于是就想:应该有一种电脑调音软件,只要我把声音输入到电脑,就会显示输入声音的音高,这样岂不是非常简单又实用。Google一下"电脑 吉他 调音软件",真找到了,是Dasein Guitar Tuner,一用,真是精彩超乎想象。 下载页面:http://web.my8d.net/gita2/soft.htm
下载地址1:http://web.my8d.net/gita/download/dgt.zip
下载地址2:http://web.my8d.net/gita2/download/dgt.zip
下载地址3:http://web.my8d.net/gita2/download/Ctuner2e.zip
地址1和2是英文版,释放Crack中文件到安装目录,执行其中的sdkill.exe就行了,地址3是一个中文乱码版,我用MagicWin都没能成功转码。Dasein Guitar Tuner的使用界面如左边,多好啊,弹一下就知道是什么调,我用的是电箱琴,吉他直接连电脑,不用经MIC拾音。看看左边我的E弦可是标准音了(指针指到正中央)。还有示范音,提供多种定调,如FADGBE、DADGBE和自定义方式。就是你没有声卡都能从PC Speaker中发出声来,还有多种声音的显示方式,如Needle、Ellipse、Skyline。在某些有噪音背景下都能正常使用,真是考虑周到。快去体验一下吧!
六根弦全指向中央零,琶一下C和弦试,嗯!真是乐耳,这把破吉他恐怕是头一回让们所有的弦调到了标准音,感觉真是美妙极了。以前的话别说每根弦上标准音,就连六根空弦音之间正确的间距度数都没达不到要求。
我还想,要是找不到类似的软件,我自己也可以试着开发一个这样的东西来玩玩,应该不难吧,对声卡采集到声音进行声谱分析,再深入一下,未必就很简单,还是需要一点点的专业知识的。
在上面那个下载页面中还有两个节拍器软件可以下载:
一个是:超方便的 http://web.my8d.net/gita2/download/lala.ZIP
另一个是:功能齐全的 http://web.my8d.net/gita2/download/metrotim.zip
Every day English(2005-11-8–2005-11-14)
2005-11-8 出席会议/attending a meeting
1) I would like you to attend the meeting./我希望你能参加这个会议。
2)The president wish to see you at the meeting./总裁让你出席这次会议。
3)I think I can attend./我想我能出席。
4)I must be present./我一定出席。
5)I'm terribly sorry, but I can't attend it since I have to be with a client./非常抱歉,我无法参加,因为到时候我得陪一位客户。
6)Can I let others attend on my behalf?/我让别人代表我出席行吗? 阅读全文 >>
一个切实可用的CheckStyle的build.xml文件
![](https://yanbin.blog/wp-content/uploads/2006/01/checkstyle-logo.png)
网上找了好些个关于CheckStyle的文章都是抄抄抄一大通,却没有一个build.xml着实可运行,
在这里我也是参考着一编,改改成能成功运行并能生成正确报告,发送 Email 的build.xml文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<?xml version="1.0" encoding="gb2312"?> <!-- ANT make file checkstype --> <!-- See <a href="http://jakarta.apache.org/ant" data-mce-href="http://jakarta.apache.org/ant">http://jakarta.apache.org/ant</a> for info about ANT --> <!-- 网上下来的CheckStyle解压在d:/javalib/CheckStyle/checkstyle-4.1中 --> <project name="checkstyle" default="checkstyle" basedir="d:/javalib/CheckStyle/checkstyle-4.1"> <!-- CheckStyle配置,这里你替换成你实际的环境 --> <property name="project.docs.dir" value="${basedir}/contrib"/> <!-- 源代码的目录是e:/eclipseworkspace/talupdate/src --> <property name="project.src.dir" value="e:/eclipseworkspace/talupdate/src"/> <!-- 建立了build目录在其中生成报告 --> <property name="project.checkstyleReport.dir" value="${basedir}/build"/> <property name="checkstyle.jar" value="${basedir}/checkstyle-all-4.1.jar"/> <!-- 使用SUN的代码规范,可替换成公司自己的规范 --> <property name="checkstyle.config" value="${basedir}/sun_checks.xml"/> <property name="checkstyle.report.style" value="${project.docs.dir}/checkstyle-noframes.xsl"/> <property name="checkstyle.result" value="${project.checkstyleReport.dir}/checkstyle_result.xml"/> <property name="checkstyle.report" value="${project.checkstyleReport.dir}/checkstyle_report.html"/> <!-- 定义发送邮件列表 --> <property name="mail.list" value="(User1)user1@xxx.com,(User2)user2@xxx.com"/> <target name="init"> <tstamp/> </target> <!--CheckStyle脚步--> <taskdef resource="checkstyletask.properties" classpath="${checkstyle.jar}"/> <target name="checkstyle" depends="init" description="对java源代码进行检查并产生检查报告. "> <checkstyle config="${checkstyle.config}" failOnViolation="false" failureProperty="checkstyle.failure"> <formatter type="xml" tofile="${checkstyle.result}"/> <fileset dir="${project.src.dir}" includes="**/*.java"/> </checkstyle> <!-- 生成报告,其格式取决于${checkstyle.report.style} --> <style in="${checkstyle.result}" out="${checkstyle.report}" style="${checkstyle.report.style}"/> </target> <!-- 当有不规范的情况发生时将检查结果发送到 --> <target name="checkstyle-nightly" depends="checkstyle" if="checkstyle.failure" description="Sends email if checkstyle detected code conventions violations."> <!-- 如果邮件服务器需要验证,则加上 user 和 password 属性 --> <mail from="(Admin)admin@xxx.com" tolist="${mail.list}" mailhost="mail.xxx.com" subject=" checkstyle result from project reports" files="${checkstyle.report}"/> </target> </project> |
<继续补充内容>
使用EMMA生成代码测试覆盖率报告简单应用
![](https://yanbin.blog/wp-content/uploads/2006/01/emma-logo.png)
Java测试代码覆盖率工具有Clover, Jcoverage和Emma等,其中只有Emma才算是彻底免费开源的,用起来也比较方便。
而Jcoverage使用起来就有些繁琐,必须一步步按照规定的方式走,步骤为 debug方式compile->instrument->test->coverage。
下面将简单介绍emma的使用,以下方法告诉你如以以命令的方式来生成代码测试覆盖率,当然你也可以写成 Ant 任务的方式,这就要求自己写几个 Ant 用的Task类,其实也不难。
emma的下载地址是:http://emma.sourceforge.net/downloads.html 阅读全文 >>
用Ant进行单元测试并生成测试报告
![](https://yanbin.blog/wp-content/uploads/2006/01/ant-logo.png)
关键Ant的build文件如下(已加上比较详细的说明)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
<?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="main" name="excute TestCase and build test report"> <!-- 测试报告存放目录 --> <property name="build.reports.dir" value="${basedir}/report" /> <target name="main"> <!-- 删除测试报告数据,重新生成 --> <delete> <fileset dir="${basedir}/report"> <include name="*.*" /> </fileset> </delete> <junit fork="yes" printsummary="true"> <!-- 生成的class目录以及执行TestCase所依赖的库 无论是用<test>还是<batchtest>都要这个配置 --> <classpath location="${basedir}/bin" /> <!-- 生成报告数据的格式,可能多个,支持xml/brief/plain --> <formatter type="xml" /> <formatter type="brief" usefile="false" /> <!-- 可以用<test>也可以用<batchtest>,但两种的设置有一些区别 以下<test>和<batchtest>三种形式用某一种就可以的 --> <!-- name指定Class的名称,如CatTest或com.unmi.CatTest --> <test name="CatTest" todir="${build.reports.dir}" /> <!-- 注意其中<fileset>的dir属性及<include>的name属性指代的意义 --> <batchtest todir="${build.reports.dir}"> <!-- dir属性指定TestCase类的源代码的路径 --> <fileset dir="${basedir}/src"> <!-- name属性指定TestCase源文件规则 --> <include name="**/*Test.java" /> </fileset> </batchtest> <!-- 上面的<batchtest>还可以写成如下形式,<fileset>按指定为class 注意其中<fileset>的dir属性及<include>的name属性指代的意义 --> <batchtest todir="${build.reports.dir}"> <!-- dir属性指定TestCase类的路径 --> <fileset dir="${basedir}/bin"> <!-- name属性指定TestCase类文件规则 --> <include name="**/*Test.class" /> </fileset> </batchtest> </junit> <!-- 用执行以上TestCase生成的报告数据生成测试报告 --> <junitreport todir="${build.reports.dir}"> <fileset dir="${build.reports.dir}"> <include name="TEST-*.xml" /> </fileset> <!-- 指定生成测试报告的格式frames/noframes,和报告存放目录 --> <report format="frames" todir="${build.reports.dir}" /> </junitreport> </target> </project> |
下面以后也会加上测试报告的贴图的。