`
aaron_ch
  • 浏览: 173843 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
Prerequisite:   JUNIT4.0 , Ant 1.6.5 Due to accessing DB, also need classes12.jar Throw the junit.jar into the ant/lib, and configure the ANT_HOME in ENV,  asscociate with the %ANT_HOME%\bin in PATH. the tree of file as below list:   .    build.xml    build.properties    src(all source files)    lib( ...
现在许多系统的注册、登录或者发布信息模块都添加的随机码功能,就是为了避免自动注册程序或者自动发布程序的使用。 验证码实际上就是随机选择一些字符以图片的形式展现在页面上,如果进行提交操作的同时需要将图片上的字符同时提交,如果提交的字符与服务器session保存的不同,则认为提交信息无效。为了避免自动程序分析解析图片,通常会在图片上随机生成一些干扰线或者将字符进行扭曲,增加自动识别的难度。 在这里,我们使用servlet来实现随机验证码的实现。 package com.servlet; import java.awt.Color; import java.awt.Font; im ...
1. 介绍  1>DOM(JAXP Crimson解析器)     DOM是用与平台和语言无关的方式表示XML文档的官方W3C标准。DOM是以层次结构组织的节点或信息片断的集合。这个层次结构允许开发人员在树中寻找特定信息。分析该结构通常需要加载整个文档和构造层次结构,然后才能做任何工作。由于它是基于信息层次的,因而DOM被认为是基于树或基于对象的。DOM 以及广义的基于树的处理具有几个优点。首先,由于树在内存中是持久的,因此可以修改它以便应用程序能对数据和结构作出更改。它还可以在任何时候在树中上下导航,而不是像SAX那样是一次性的处理。DOM使用起来也要简单得多。  2>SAX   ...
光学变焦英文名称为Optical Zoom,数码相机依靠光学镜头结构来实现变焦。数码相机的光学变焦方式与传统35mm相机差不多,就是通过镜片移动来放大与缩小需要拍摄的景物,光学变焦倍数越大,能拍摄的景物就越远。光学变焦是通 ...
陀螺仪基本上就是运用物体高速旋转时,角动量很大,旋转轴会一直稳定指向一个方向的性质,所制造出来的定向仪器。不过它必需转得够快,或者惯量够大(也可以说是角动量要够大)。不然,只要一个很小的力矩,就会严重影响到它的稳定性。就像前面第四页的活动中,我们可以轻易的改变旋转中车轮转轴的方向一样。所以设置在飞机、飞弹中的陀螺仪是靠内部所提供的动力,使其保持高速转动。 陀螺仪通常装置在除了要定出东西南北方向,还要能判断上方跟下方的交通工具或载具上,像是飞机、飞船、飞弹、人造卫星、潜艇......等等。它是航空、航海及太空导航系统中判断方位的主要依据。这是因为在高速旋转下,陀螺仪的转轴稳定的指向固定方向,将 ...
Albert Einstein was born at Ulm, in Württemberg, Germany, on March 14, 1879. Six weeks later the family moved to Munich and he began his schooling there at the Luitpold Gymnasium. Later, they moved to Italy and Albert continued his education at Aarau, Switzerland and in 1896 he entered the Swiss Fede ...
CREATE TABLE COTS_TAB_BENE_LOOKUP_CODE(   BRANCH         VARCHAR2(3  BYTE)              NOT NULL,   MSGTYPE        VARCHAR2(50 BYTE)              NOT NULL,   PARAM          VARCHAR2(30 BYTE)              NOT NULL,   VALUE          VARCHAR2(70 BYTE)                      ,     ACTIVE_IND     VARCHAR2( ...
One perl script, For extracting information from mbox. #~~~~~ Author Aaron chen ~~~~~~# use Mail::Util qw(read_mbox); use Mail::Internet; use DBI; #use strict; #-------------------------Table fields -----------------------------# #SENDER_ID           VARCHAR2(50) NOT NULL,      ---> sender's email ...

C++ string sort

#include<iostream> #include<string> int main(){          void sort(string *p,int);          int i=0;          string a[10];          for(i=0;i<10;i++){             cin>>a[i];          }          for(i=0;i<10;i++){              cout<<a[i]<<endl;          }         s ...
http://www.raqu.com/main/Article/develop/java/newbie/base/200607/39059.shtml
1.Adapter 对象适配(Object) 假设我们要打桩,有两种类:方形桩 圆形桩.  public class SquarePeg{     public void insert(String str){            System.out.println("SquarePeg insert():"+str);     } } public class RoundPeg{     public void insertIntohole(String msg){            System.out.println("RoundPeg inser ...

Unix command

    博客分类:
  • Java
ps  --display all process status kill -9 processid tar cvf usr.tar /home   --- Put the /home directory and subdir to user.tar tar tvf aaron.tar | more  --- show the files in tar gzip aaron.tar   --- zip file gzip -dv aaron.tar.gz  --- the unzip details of compress gzip -l ln -s source_file targ ...
Regular expressions A regular expression is contained in slashes, and matching occurs with the =~ operator. The following expression is true if the string the appears in variable $sentence. $sentence =~ /the/ The RE is case sensitive, so if $sentence = "The quick brown fox"; then the abov ...
隔离级别(isolation level)   l         隔离级别定义了事务与事务之间的隔离程度。 l         隔离级别与并发性是互为矛盾的:隔离程度越高,数据库的并发性越差;隔离程度越低,数据库的并发性越好。 l         ANSI/ISO SQL92标准定义了一些数据库操作的隔离级别: l          未提交读(read uncommitted) l          提交读(read committed) l          重复

Exercise

    博客分类:
  • Java
package com.aaron.lang; class A{     static{         System.out.print("1");     }     public A(){         System.out.print("2");     } } class B extends A{     static{         System.out.print("a");     }     public B(){         System.out.print("b");     }   ...
Global site tag (gtag.js) - Google Analytics