
cs
bill1973
这个作者很懒,什么都没留下…
展开
-
算法学习笔记
算法虐我千百遍,我待算法如初恋学习方法把所有经典算法写一遍 看算法有关源码 加入算法学习社区,相互鼓励学习 看经典书籍 刷题基本数据结构和算法链表链表双向链表二叉树转载 2016-08-15 13:22:06 · 650 阅读 · 0 评论 -
Eclipse.ini config error in XP Japanese version
new eclipse for j2ee 3.3 and 3.4 version can not run with default eclipse.ini file, which is in eclipse dir.eclipse.ini ... ...-vmargs-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512mit wrongs excep原创 2008-07-22 10:22:00 · 809 阅读 · 1 评论 -
Six Simple Steps to High Quality Coding
1. Describe fully the required functionality of the program.Don’t start coding until you are sure you understand what is needed. We developers like to jump right in and start coding, but t转载 2008-04-30 17:50:00 · 852 阅读 · 0 评论 -
Dos bat loop sample
Dos bat loop sampleecho offn:cd magixdevmainbinmgx_utilfor /L %%i in (38,1,50) do start multiple_client.bat %%i原创 2008-04-28 11:23:00 · 1380 阅读 · 0 评论 -
Associations between classes
原创 2008-04-10 00:39:00 · 551 阅读 · 0 评论 -
eclipse icons meaning
so many icons in eclipse. and the clue is to search "JDT icons" in eclipses help.原创 2008-01-08 09:54:00 · 703 阅读 · 0 评论 -
JSTL config 4 step
1.将standard.jar和jstl.jar文件拷贝到/WEB-INF/lib/2.将jakarta-taglibs-standard-1.1.1/tld/下的tld类型文件拷到"/WEB-INF/tlds"下(1.1是15个文件,1.0是8个)3.在/WEB-INF/web.xml文件中:(以下定义是针对1.0的) http://java.sun.com/xml/ns/j2ee"转载 2008-01-07 14:53:00 · 630 阅读 · 0 评论 -
测试员转型为测试管理人员的要求
如果你是测试员或是高级测试员,有志转向管理发展,那么需要加强以下内容,至少要做到几点: 1. 测试计划的编写(要结合测试的项目,能以此来控制和确定测试所需人员,设备及时间来管理测试时间) 2. 要熟悉 BUG跟踪工具及软件测试流程。(如: TD, Bugzilla, CQ等) 3. 要熟悉配置管理工具。 (如: CVS, VSS等) 4. 要熟悉自动化工具。(例如:原创 2008-01-07 10:58:00 · 583 阅读 · 0 评论 -
tomcat ssl config
tomcat version: apache-tomcat-6.0.2 (without apache and under windows)op: windows xptwo main step: 1. create a certificate file 2. change some config in conf/server.xml 1. create a原创 2007-12-28 14:47:00 · 550 阅读 · 0 评论 -
jasperreport ireport Asian word issue
The process should follow as this: In Ireportafter create new report, first step you should setting style - fontChinese setting like this: font name SansSerf原创 2008-08-01 10:15:00 · 966 阅读 · 0 评论 -
location of xsd file
"1.0" encoding="UTF-8"?>"../swixml.xsd" size="640,280" title="Hello SWIXML World" defaultCloseOperation="JFrame.EXIT_ON_CLOSE" > "BorderLayout.CENTER"> "tf" font="原创 2008-08-06 11:37:00 · 467 阅读 · 0 评论 -
https and hessian
after you enable https on tomcat, you have to export the certificate to the local java runtime. To do that you follow these steps:1) Export the public keykeytool -export -class tomcat -file public.cer转载 2008-08-05 18:21:00 · 809 阅读 · 0 评论 -
注册与破解
<br />简单说一下注册的相关原理。<br /><br />大部分注册算法的原理是:软件或者用户自己触发了软件的注册模块-》软件跳转到注册认证模块。-》弹出注册窗口-》用户输入注册名+注册码A,把它们存放在内存中。然后软件的注册码验证部分根据用户输入的注册名生成正确的注册码B并和用户输入的注册码A做对比。如果结果为相同则注册通过,并运行“注册成功”后面的程序分支,比如解除各种软件限制。如果不相同则提示“无效的注册码,请重新输入!”或者“Invalid key!”等等警告。 <br /><br />知道了原转载 2010-07-07 00:03:00 · 578 阅读 · 0 评论 -
JBPM Timer Dynamically change durtime
part of processdefine.xml timer working! package com.sample.action;import java.util.Date;import org.jbpm.calendar.Busines原创 2009-02-18 05:25:00 · 1139 阅读 · 1 评论 -
Ant+JUnit+Cobertura
看标题就知道,这个是开发一个Java应用的利器组合,使用Ant完成工程的构建(Build),使用JUnit完成单元测试,使用Cobertura完成代码覆盖测试,也可以辅助查找性能瓶颈和一些类型的BUG,下面是一个完整的build.xml范例,可以完全拿来用,不需任何修改,只要你的目录和这里的目录一致(应该也是很通用的):下载下面的build.xml文件转载 2009-01-21 13:18:00 · 1196 阅读 · 0 评论 -
Hibernate XA transaction
there is something need to be careful about Hibernate XA transaction. UserTransaction utx = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");Session session1 = null原创 2008-11-13 10:04:00 · 878 阅读 · 0 评论 -
unix compile
As the number of UNIX variants increased, it became harder to write programs which could run on all variants. Developers frequently did not have access to every system, and the characteristics of some转载 2008-10-12 12:26:00 · 637 阅读 · 0 评论 -
20 java relevant web site
http://www.javaalmanac.com - Java开发者年鉴一书的在线版本. 要想快速查到某种Java技巧的用法及示例代码, 这是一个不错的去处. http://www.onjava.com - OReilly的Java网站. 每周都有新文章. http://java.sun.com - 官方的Java开发者网站 - 每周都有新文章发表. http://www.devel转载 2008-06-22 15:32:00 · 536 阅读 · 0 评论 -
找 Java,J2EE 工作之我见
找 Java,J2EE 工作之我见最近这一两年,我是公司 interview panel 里的一员,面试有百余人。积累了一些经验。希望给目前找工作的同学一些参考。 首先,确定你找什么样的职位? - Junior (1-2 years) - intermediate (3-5 years) - senior (5-7 years) - architect (7-10 year转载 2008-06-19 02:07:00 · 871 阅读 · 0 评论 -
三五个人十来条枪 如何走出软件作坊成为开发正规军
自从发了上一篇博文,这几天收到很多朋友的来信。大家从各个开发语言的优缺点和适用领域,一直讨论到设计模式、框架、重构、单元测试,乃至敏捷编程,最后都讨论到了软件开发过程管理,甚至都谈到了盈利模式和中国软件的悲哀。最后不了了之,都觉得改善中国内地现在的软件生产状况不可能。为什么呢?我重新把这几天大家的讨论留言翻了一遍,发现大家的软件团队都存在着这样一种普遍现象1大部分人所在的公司,转载 2008-05-28 10:34:00 · 374 阅读 · 0 评论 -
Ant build.xml sample
A sample of my project file. There are still some bugs with dbunit and mysql. maybe it can work with other database. But it is still a good sample of how to compile, to run junit, to manage dat原创 2008-03-10 10:38:00 · 1423 阅读 · 0 评论 -
Practical Javascript Sample
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return false;" oncut="return false;" 防止复制 5. IE地原创 2007-12-05 17:35:00 · 605 阅读 · 0 评论 -
sample log4j.properites
default this file is in classpath root.# DEBUG INFO WARN ERROR FATAL # log4j.rootLogger=info, CONSOLE,FILE,ROLLING_FILE,SOCKET... log4j.rootLogger=info, CONSOLE,FILE# consolelog4j.app原创 2007-10-12 10:57:00 · 536 阅读 · 0 评论 -
a simple jsm sample
PS:1. implements MessageListener 2. create TopicConnection [using jndi]3. create two session4. create publisher and subscriber5. set listener6. connection start() , publisher.publish(messag原创 2007-10-11 11:19:00 · 615 阅读 · 0 评论 -
SAX notes
source class: File or URLhelper class: InputStreamReader, InputSource,SAXParserFactorycore class: your handler extends DefaultHandler , saxParser.core method: saxParser.parse(); DefaultHandler原创 2007-10-25 16:20:00 · 610 阅读 · 0 评论 -
Spring Acegi notes
tutorial 1. what happens when you access a secured web application resource?1) check if the resource is secured; 2) check if the requesting user has been authenticated;3) check if the authentic原创 2007-10-20 10:43:00 · 879 阅读 · 0 评论 -
my password
WebSphere Application Server Community Edition 默认的用户名/密码是 system/managercant believe it that some online documents of IBM is wrong. (2007-10-23) Beyond Comp原创 2007-10-23 13:26:00 · 500 阅读 · 0 评论 -
Java 的 日期处理
the process of date operate in java is really messy. A simple issue is made really easy to confuse and hard to remember.you may need three class to deal with date: date or System.currentTimeMillis(原创 2007-10-22 15:54:00 · 781 阅读 · 0 评论 -
FacesIDE
It is said that it can support graphic page design. it looks cool. there is also a plugin from elcipse.org. but currently it still dont support graphic page design.http://amateras.sourceforge.jp/cg原创 2007-09-02 09:37:00 · 584 阅读 · 0 评论 -
avoid cache in jsp
a good way to deal cache in jsp is add the following code in the beginning of the page. response.setHeader("Pragma","No-cache"); response.setHeader("Cache-Control","no-cache");//HTTP 1.0 response.原创 2007-08-08 10:11:00 · 533 阅读 · 0 评论 -
lucene study notes
create index package org.apache.lucene.demo;import org.apache.lucene.analysis.standard.StandardAnalyzer;import org.apache.lucene.index.IndexWriter;import java.io.File;import java.io.FileNotFoundE原创 2007-11-01 10:56:00 · 614 阅读 · 0 评论 -
Html Dom add and delete element
Javascript is sometimes troublesome. this is some code fragments that add and delete Html element.(PS: cause of this site issue, I found that the variable newInputStr is not showed correctly without s原创 2007-11-07 16:31:00 · 1340 阅读 · 0 评论 -
my regular expression notes
Java String match codeboolean match = Pattern.matches(regex, input); ^ 和 $ 他们是分别用来匹配字符串的开始和结束,以下分别举例说明: "^The": 开头一定要有"The"字符串; "of despair$": 结尾一定要有"of despair" 的字符串; 那么, "^abc$":原创 2007-11-07 09:38:00 · 505 阅读 · 0 评论 -
Miscellaneous NOTES
JavaScipt¨ input表单不显示历史记录 input select 镶套(IE) Test ¨ 改变 right click showdocument.oncontextmenu = showmenuie5; ¨ iframe vs document 跳转iframe原创 2007-12-05 17:24:00 · 655 阅读 · 0 评论 -
java TimeZone lesson
It take me two days to figure out the problem. If you run a java application with JRE installed on OS. the JRE can get a default TimeZone informtion. But if you jar your application with a private JR原创 2008-02-22 11:06:00 · 636 阅读 · 0 评论 -
continuous-integration
This is article just a mark giving some clue.Today I finally make "luntbuild" to work. It is really exciting! It is a requirement to build a qualified development team.a good article: https://www6原创 2007-11-23 16:13:00 · 534 阅读 · 0 评论 -
Junit 4 test suit
spend lots of time to find the corresponding codes of JUnit 4 test suit for JUnit 3 TestSuit.I addmit less config is good. but annotation makes Java code weird. All are because of IOC. we use IOC t原创 2007-11-24 11:48:00 · 724 阅读 · 0 评论 -
struts-2.0.11 doubleselect problems
there are two problems in tag in struts version 2.0.11 need a tag and name property must not present String compare using equals rather than "==" s:form name="f"> s:doubles原创 2008-02-14 16:27:00 · 702 阅读 · 0 评论 -
架构师的能力模型(图)
转载 2007-11-22 14:30:00 · 530 阅读 · 0 评论 -
Hibernate - Clob
you can use Hibernate.createClob("") to create ClobImpl which is a hibernate clob implement. you can not call this clobs getSubString() method. It will throws an exception(which you can see from hib原创 2007-11-19 14:41:00 · 528 阅读 · 0 评论