自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 Installing software from source in Linux

< Installing software from source in Linux - 1.2 > So you've downloaded a software package with tar.gz or tar.bz2 exte...

2011-01-06 20:31:56 59 0

MySQL DML

1. to show current mysql version: >show variables like '%version%';   2. create database or table with specified character set &a...

2011-01-04 08:28:38 40 0

Colors

1. Classic windows backgroup: R:58 G:110 B:165

2010-12-30 23:16:08 63 0

vim preferences

  How to use 4 spaces instead of tab in vim:   1 :set ts=4   2 :set number   3 :set autoindent   4 :set expandtab   5 :set softtabstop=4   6 :...

2010-12-26 15:06:16 34 0

How to build static library and how to use it in Linux

1. declare the interface of libray:  max.h  ------------------------------  int max(int,int); 2. implement the interface:  max.c  ------------------...

2010-12-23 08:46:57 64 0

const

There are two type of const: 1. const int  *p;  <----- pointer 'p' is not const, while to what it points is const.e.g.: int i; co...

2010-12-22 21:33:14 57 0

Eclipse

1. highlight warning log message in eclipse console: Configure two separate appenders. One for the levels WARN and higher and one for the levels ...

2010-12-22 13:29:40 24 0

Programming C in Linux

0. install compiler and associate environment. sudo apt-get install build-essential or install with CD(without internet): sudo apt-cdrom add s...

2010-12-22 13:28:47 33 0

Java Advance

1. A class with a given name can only be loaded once by a given classloader.   2. When the JVM is started, three class loaders are used:     1....

2010-12-22 13:27:40 43 0

J2EE EJB OpenEJB

1.Generally speaking the only way to get a Container-Managed Resource is via dependency injection or lookup from within a Container-Managed Compon...

2010-12-22 13:26:46 54 0

Spring

1. @Autowired vs. setter @Autowired can mark in field or setter, with @Autowired, setter is not necessary; If @Autowired is not apply to propert...

2010-12-22 13:25:41 37 0

JPA Toplink

1.persistence.xml -------------------------------------------------------------------------------- <?xml version="1.0" encoding...

2010-12-22 13:25:01 23 0

Apache Ant

1. Add additional command line arguments for <javac> task: <javac srcdir="${dist}/trsWeb" destdir="${dist}/bu...

2010-12-22 13:22:47 25 0

Trouble Shooting

1. Problem: log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null". Solution: Add '&...

2010-12-22 13:22:13 26 0

Maven Basic

0. useful commands:     mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=${myArtifactId} -Dversion=RELEASE -Dpackaging...

2010-12-22 13:20:49 43 0

Install Ubuntu9.10 in Oracle VirtualBox

1. How to use share folder in VirtualBox for Windows XP -> Ubuntu:   a. From VBox menu, Install Guest Additional first (your guest os s...

2010-12-22 13:12:44 34 0

Oracle

1. SHOW USER(or SELECT USER FROM DUAL) /   2. SELECT USERNAME, USER_ID, PASSWORD FROM DBA_USERS ORDER BY USERNAME /   3. SELECT DEFAULT_T...

2010-12-22 13:09:44 29 0

Utility bat scripts

1. To launch a application in command-line without open a cmd window: >start putty -load Ubuntu -l root -pw ***     2. copy /Y file1 d...

2010-12-22 11:57:32 27 0

Ubuntu Beginer

  Ubuntu version ======================================================== uname -a uname -r   Ubuntu rpm / VMware / root / java / vi / putty / ...

2010-12-22 00:26:04 37 0

How to boot up Ubuntu in text terminal mode?

Ubuntu9.10 boot by 'grub', to change the boot mode to text-mode, we just need to change boot settings in '/boot/grub/grub.cfg'. ...

2010-12-22 00:21:08 39 0

Ubuntu scripts executing sequence after user sign in

1. Before user sign in, the '/etc/rc$runlevel.d/*' will be execute according the runlevel.   2. After user sign in, the Ubuntu9.10 will e...

2010-12-21 23:03:04 14 0

typedef

1. primitive typedef int Integer; Integer i;   2. array typedef int Arr[10]; Arr a, b, c;   3. function pointer #include<stdio.h&...

2010-12-21 22:52:39 13 0

Install ttylinux

1. gcc tbz ftp: ftp://ftp.int.ru/pub/FreeBSD/ports/i386/packages-8-stable/lang/ 2. mount cdrom: mount /dev/hdc /mnt/cdrom   Install ttylinux in...

2010-12-19 21:15:32 58 0

原创 Data Abstraction and Problem solving with Java

1.求数组中的最大数2.1+2+3+...+n3.求n个整数的积4.求n个整数的平均值5.求n个自然数的最大公约数与最小公倍数6.有一对雌雄兔,每两个月就繁殖雌雄各一对兔子.问n个月后共有多少对兔子?7.已知:数列1,1,2,4,7,13,24,44,...求数列的第 n项.8. Eight Qu...

2007-08-09 17:25:00 1119 0

原创 2007-8-3 Eclipse plug-in

11:24 2007-8-31. Tomcat5.5.23 can only run on JDK5.0 or later version.2. Struts 2.0 just can run on Tomcat5.5.23 or later version.11:41 2007-8-31. Th...

2007-08-05 16:17:00 530 0

原创 body events

1. onbeforeunload    This event trigger when the page will unload, the browser will popup a confirm message box to ask whether you want to navigate f...

2007-07-26 10:57:00 416 0

原创 JSP---web.xml

1. JSP EL just support by JSP2.0 or above, the servlet 2.3 works for JSP1.2. If we want to use EL in JSP page, we should declare the version of servl...

2007-07-20 00:39:00 614 0

原创 SCJP 2007-06-14

1. There are only abstract or final is permitted in local inner class.2. An Anonymous inner class means that  creating an object of an anonymous clas...

2007-06-15 00:05:00 493 0

原创 scjp 2007-06-11

1. String s1 = new String("MyString");    String s2 = new  String("MyString");    s1 == s2;Answer:  false.2. A  abstract  class  ...

2007-06-11 09:09:00 419 0

原创 SCJP2007-06-10

1. Cant override static method to non-static method. 

2007-06-10 19:20:00 562 0

原创 深入理解JavaScript中的函数

        概述  函数是进行模块化程序设计的基础,编写复杂的Ajax应用程序,必须对函数有更深入的了解。JavaScript中的函数不同于其他的语言,每个函数都是作为一个对象被维护和运行的。通过函数对象的性质,可以很方便的将一个函数赋值给一个变量或者将函数作为参数传递。在继续讲述之前,先看一...

2007-05-12 23:17:00 566 0

原创 a rmi simple demo

     这个例子模拟了一个远程请求对象属性的过程。有一个远程对象Dog在网络上,现在要得到它的名字(strName)属性。程序在客户端设一个存根(Dog_Stub)类,在服务器端启动一个骨架(dog_Skeleton)类,这两个类都实现了Dog接口,Dog_Stub与 Dog_Skeleton通...

2007-05-12 10:41:00 567 0

转载 一个JNI的小例子

最近要在JAVA程序里调用C++写的.dll文件,要用到JNI技术,找了些资料,自己做了个小例子.步骤如下:JAVA 代码:public class testdll{  static {   System.loadLibrary("DLL");  } public native...

2007-05-12 02:25:00 6245 3

原创 Oracle Commands

1. select   table_name   from   user_tables;     //当前用户的表       select   table_name   from   all_tables;     //所有用户的表    select   table_name   from  ...

2007-04-19 00:37:00 594 0

原创 hashcode

Java 理论与实践: 哈希 有效和正确定义hashCode()和equals()   ...

2007-04-17 22:22:00 654 2

原创 log4j.properties

## LOGGERS ###define a logger named helloAppLogger log4j.rootLogger=DEBUG,console,file## APPENDERS ### define an appender named console, which is set...

2007-04-12 18:06:00 456 0

原创 Can you explain the result of the following example? Oh, my!

class Base { public boolean foo(Base b) { return true; } } class Sub extends Base { public boolean foo(Sub s) { return false; } }...

2007-04-05 16:30:00 539 0

原创 How to redirect Sysout.out?

Use System.setOut()package io;import java.io.FileOutputStream;import java.io.IOException;import java.io.PrintStream;public class Redirection {    pub...

2007-04-04 13:52:00 536 0

原创 Can we put a continue in a switch-case statement?

// Guess the print out, then run it.// A good IQ testpublic class A { public static void main(String args[]) { int x = 0; while (x...

2007-04-04 13:19:00 575 0

原创 Degester

                        mysql            oracle.jdbc.driver.OracleDriver            com.mysql.jdbc.Driver                            See JDBC documen...

2007-04-03 23:13:00 703 0

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