自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (9)
  • 收藏
  • 关注

原创 Tomcat Remote Debug

1.1     Tomcat Remote Debug1.1.1     Run Tomcat as a windows serviceTo configure remote debugging when windows as setup as aservice you edit your tomcat configuration and add these startup paramet

2013-03-07 16:08:51 1409

原创 Greedy quantifiers, Reluctant quantifiers, Possessive quantifiers

Greedy quantifiersX?X, once or not at allX*X, zero or more timesX+X, one or more timesX{n}X, exactly n timesX{n,}X, at least n timesX{n,m}X, at least n

2013-03-06 17:48:45 1281

转载 Mock construction of new objects

Quick summaryUse the @RunWith(PowerMockRunner.class) annotation at the class-level of the test case.Use the @PrepareForTest(ClassThatCreatesTheNewInstance.class) annotation at the class-level of

2013-03-06 13:48:42 1525

原创 Partial mock local private method or public method in the class and suppress static initial block

public class Calc { static { System.out.println("hahaha"); } public int add(int a, int b) { return interADD(a, b); } private int interADD(int a, int b) { return a + b; } public int min

2013-03-06 11:49:21 1797

原创 Enable debug in JRE class

1. Create a temporary directory. Let's say "tmp" > mkdir \tmp > mkdir \tmp\out 2.  Extract src.zip in JDK installation directory to tmp\src 3. Use find utillity to get a list of all java f

2013-03-06 10:42:52 766

原创 ant and ivy

1.download ant2.download ivy3.copy ivy jar to ant's lib4.set ant home in eclipse>window>referance>ant5.add several sections as follow into build.xml6.add ivy.xml as follow

2012-10-18 15:31:37 470

转载 Mocking private methods

Quick summaryUse the @RunWith(PowerMockRunner.class) annotation at the class-level of the test case.Use the @PrepareForTest(ClassWithPrivateMethod.class) annotation at the class-level of the tes

2012-07-21 21:48:05 591

转载 Use junit test private method

The class contain private method need to be test.public class TestPrivateMethod {private int add(int a, int b){return a+b;}}The junit for private method test.public class TestPri

2012-07-21 21:43:28 524

原创 webservice trainning plan

=================================webservice training plan=================================1. Write a HelloWorld with JAX-WS knowledge.2. XSD, For the request, it should be contain below elemen

2012-07-12 12:21:50 495

转载 SSl握手流程

The previous section provides a high-level description of the SSL handshake, which is the exchange of information between the client and the server prior to sending the encrypted message. This section

2012-05-19 23:05:36 1721

转载 通过 Struts提供的Spring插件集成Spring

Edit Page  Browse Space  Add Page   Add News Spring is a lightweight container, providing centralized, automated configuration and wiring of your application objects, using

2012-04-29 07:08:58 1236

转载 Comet (programming)

Comet is a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it.[1][2]Comet is an umbrella term, en

2012-04-27 23:51:49 1016

原创 java中的transient

被声明为transient的属性,在序列化保存时是不会被保存的,比如密码这类信息,为了安全性,在序列化存储对象时不需要保存,则可以把密码声明为transient.如下是transient的例子保存对象前输出:saved User:cn.learn.test.User@1c39a2d->username=googlepassword=aaabbb111从文件中重新读取该对象,输出:rea

2012-04-06 10:52:39 391

原创 java多线程实现生产者消费者模式

package cn.learn.test;public class WaitNotifyTest { /**  * @param args  */ public static void main(String[] args) {  // TODO Auto-generated method stub  Count count = new Count();  MyLock

2012-03-29 00:05:55 328

原创 wwwww

<hr>

2012-03-22 16:29:30 5350

原创 DWR开发环境搭建及HelloWord编写

第一步 准备从http://directwebremoting.org/dwr/downloads/index.html下载dwr.jar包下载dwr依赖的commons-logging-1.0.4.jar,该文件可以从dwr提供的demo程序中解压获取 第二步 搭建dwr环境创建一个web应用工程,将dwr.jar文件和commons-logging-1.0.4.jar拷贝粘

2012-03-17 14:25:11 432

原创 hibernate集合映射,one-to-many,删除集合成员

1、one方映射文件 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">    Mapping file autogenerated by MyEclipse Persistence Tools-->

2012-03-15 23:37:45 2543

原创 Link方式在MyEclipse安装spket插件

1、 下载spket插件,将插件解压缩到指定的目录,例如D:\EclipsePlug目录2、 在Eclipse安装目录中创建文件夹Links,在文件中创建一个文件spket.link,在文件中写入”path=D:\\EclipsePlug”,指向插件所在目录。3、 重新启动MyEclipse,在window->Preferences->Spket->JavaScript Profiles

2012-03-03 13:08:51 1519 1

原创 JavaScript实用技巧

1、禁止右键菜单、选择、复制

2012-02-29 13:40:29 536 1

转载 Types in C++

Enumerated TypesAn integer really represents a value within a sequence — the sequence of numbers. Enumerated typeslet you define your own sequences so that you can declare variables with values in t

2009-04-12 17:04:00 350

原创 自动资源释放-使用对象管理资源,解决资源泄露问题

 自动资源释放-使用对象管理资源,解决资源泄露问题自动资源释放-使用对象管理资源,解决资源泄露问题自动资源释放-使用对象管理资源,解决资源泄露问题

2008-07-19 19:59:00 281

原创 析构函数与异常

析构函数应该从不抛出异常在为某个异常进行栈展开时,如果析构函数又抛出自己的一个未经过处理的另外一个异常,将会导致调用标准库的terminate函数,terninate函数将回调用abort函数,强制从整个程序非正常退出.如果析构函数调用了其他可能抛出异常的过程,    则析构函数应该包含自己的处理这些过程可能抛出的异常的代码.

2008-07-18 01:00:00 366

Flex 4 Cookbook.pdf

Flex 4 Cookbook.pdf

2012-02-05

asterisk-1.8.0.part3.rar

asterisk-1.8.0.part3asterisk-1.8.0.part3.rar.rarasterisk-1.8.0.part3.rar

2010-12-21

asterisk-1.8.0.part2.rar

asterisk-1.8.0.part2.rarasterisk-1.8.0.part2.rarasterisk-1.8.0.part2.rarasterisk-1.8.0.part2.rarasterisk-1.8.0.part2.rarasterisk-1.8.0.part2.rar

2010-12-21

asterisk-1.8.0.part1.rar

asterisk-1.8.0.part1.rarasterisk-1.8.0.part1.rarasterisk-1.8.0.part1.rar

2010-12-21

asterisk code1

asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1asterisk code1

2010-12-21

asterisk code2

asterisk codeasterisk codeasterisk codeasterisk codeasterisk codeasterisk codeasterisk codeasterisk codeasterisk code

2010-12-21

Addison.Wesley-Principles.of.Concurrent.and.Distributed.Programming.

Principles.of.Concurrent.and.Distributed.Programming.chm

2010-04-20

The C++ Standard Library

经典的STL书籍 学习STL不错的参考 内容详实

2010-03-21

GSM智能网原理

智能网原理,从事智能网相关开发技术必备基础

2007-08-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除