- 博客(56)
- 收藏
- 关注
原创 前端学习点滴留痕1: bgcolor+background
bgcolor: 背景颜色 background:背景图片,可以是gif/jpg格式图片,不可以是png格式图片 eg: <body bgcolor="blue" background="img/xxx.jpg"> <table border="1" bgcolor="blue" background="img/xxx.jpg">
2017-08-06 21:59:04 330
原创 oracle delete all object under an user
BEGINFOR cur_rec IN(SELECT object_name, object_type FROM user_objects WHERE object_type IN('TABLE','VIEW','PACKAGE','PROCEDURE','FUNCTION','SEQUENCE', ...
2013-11-22 11:36:54 164
原创 common toString using reflection
core class: package com.itreply.oschina; import java.lang.reflect.Field; public class GeneralToString { public static String toString(Object obj) { if(obj == null) return "null";...
2013-05-22 13:58:38 144
原创 git tutorial
http://rogerdudler.github.io/git-guide/index.zh.html http://marklodato.github.io/visual-git-guide/index-en.html
2013-05-03 17:05:21 123
Hibernate one -to -one mapping for Oracle auto-increment key
1. DB table create The parent table create table stock ( stock_id number(10) not null, stock_code varchar2(10) not null, stock_name varchar2(10) not null, primary ke...
2013-04-05 17:53:24 114
struts1: ForwardAction example
1st. create simple web app mvn archetype:create -DgroupId=com.iteye.struts1 -DartifactId=struts1 -DarchetypeArtifactId=maven -archetype-webapp 2nd. update pom.xml ... <dependency> ...
2013-04-04 17:31:12 92
1. maven常用命令
1. create simple web app mvn archetype:create -DgroupId=com.iteye.struts1 -DartifactId=struts1 -DarchetypeArtifactId=maven -archetype-webapp http://www.cnblogs.com/BenWong/archive/2013/03/25/...
2013-04-04 12:21:49 102
原创 eclipse hotkey
1. view variable value during debug: ctrl + shift + i 2. modify all same variable's value: alt + shift + R 3. convert to lowercase: ctrl + shift +Y 4. convert to uppercase ctrl + shift...
2013-03-26 16:21:44 91
java JVM
1. Generations for Garbage Collection info: Java objects are created in Heap and Heap is divided into three parts, these are called as Young generation, Tenured or Old Generation and Perm Area. ...
2013-03-21 16:57:32 93
原创 multi-thread
1. sleep() and yield() don't release the object lock 2. wait will release the object lock when called
2013-03-19 12:07:01 83
Business requirements relates
Business requirements usually consist of both functional requirements and non-functional requirements. The plan for implementing functional requirements is detailed in the system design. The plan for...
2013-03-14 15:29:40 157
Fixed Deposit account / savings account / installment load
Fixed Deposit Account (定期存款账户): customer deposits a big sum of money for a fixed duration of time (Atleast 3 months or higher). bank gives a very good interest as payment for keeping the deposit sav...
2013-03-14 15:28:03 636
原创 SAVEPOINT
http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10001.htm 4. savepoint Use the SAVEPOINT statement to identify a point in a transaction to which you can later roll back.
2013-03-13 16:43:02 80
trigger
Triggers are procedures that are stored in the database and are implicitly run, or fired, when something happens. Traditionally, triggers supported the execution of a PL/SQL block when an INSERT, U...
2013-03-13 16:22:04 91
原创 oracle wrap
Wrapping is the process of hiding PL/SQL source code. Wrapping helps to protect your source code from business competitors and others who might misuse it. You can wrap PL/SQL source code with either...
2013-03-13 15:45:11 104
PACKAGE
oracle sample schema 'HR' & 'SCOTT' locate at : http://code.google.com/p/adf-samples-demos/downloads/detail?name=demoscripts.zip&can=2&q= 1. Package (Package is simply a collection of...
2013-03-13 15:17:14 125
原创 Asset Accounts & Liability Accounts & balance sheet & batch
1. Asset Accounts Anything owned, whether tangible (a physical item) or intangible (the right to something) is an asset. Assets are generally separated into two groups: Current Assets(流动资产) - Cas...
2013-03-13 11:29:08 440
原创 good url for database
[url]http://www.codeproject.com/Articles/9990/SQL-Tuning-Tutorial-Understanding-a-Database-Execu[/url] [url]http://www.downloadmela.com/interview-paper?sno=30[/url] [url]http://stackoverflow.com...
2013-03-11 22:44:23 98
原创 transient
[b]What are transient variables? What role do they play in Serialization process?[/b] The transient keyword in Java is used to indicate that a field should not be serialized. Once the process of de-s...
2013-02-27 18:29:11 149
原创 1: string VS stringBuffer VS StringBuilder
[b]1)[/b] String is immutable while StringBuffer and StringBuilder is mutable object. [b]2)[/b] StringBuffer is synchronized while StringBuilder is not which makes StringBuilder faster than StringBuf...
2013-02-27 11:24:16 97
原创 0 multi-thread: summary
[url]http://www.journaldev.com/1162/java-multi-threading-concurrency-interview-questions-with-answers[/url]
2013-02-27 09:44:54 65
原创 7. multi-thread: deadlock
1. [b]What is deadlock[/b] ? when two or more threads waiting for each other to release lock and get stuck for infinite time , situation is called deadlock . it will only happen in case of multitaski...
2013-02-27 09:32:35 111
原创 6. multi-thread: consumer & producer
[url]http://tutorials.jenkov.com/java-util-concurrent/blockingqueue.html[/url] [url]http://jiji87432.iteye.com/blog/1773770[/url]
2013-02-26 16:25:23 93
原创 5. multi-thread: different between yield()/join()/sleep()
[list] [*][b]yield()[/b] method pauses the currently executing thread temporarily for giving a chance to the remaining waiting threads of the same priority to execute. If there is no waiting thread o...
2013-02-26 15:31:53 96
原创 4. multi-thread : thread status
转载自此 A java thread is an execution context or a lightweight process. It is a single sequential flow of control within a program. Programmer may use java thread mechanism to execute multiple tasks a...
2013-02-26 15:29:22 117
原创 3. multi-thread: different between process & thread
[b]Processes[/b] A process generally has a complete, private set of basic run-time resources; in particular, each process has its own memory space. (To facilitate communication between processes, mo...
2013-02-26 11:19:23 83
原创 2.multi-thread: life cycle
[img]http://www.roseindia.net/java/thread/life-c1.gif[/img] 1. [b]New state[/b] After the creations of Thread instance the thread is in this state but before the start() method invocation. At this...
2013-02-26 10:58:31 113
原创 1. multi-thread --volatile
[b]1.[/b] If a variable is declared with the [b]volatile [/b]keyword then it is guaranteed that any thread that reads the field will see the most recently written value. The volatile keyword will not ...
2013-02-25 21:30:39 75
原创 5 point
1. collection: map/hashmap 2. string(like reverse string, stringBuffer...) 3. multi-thread 4.valatile
2013-02-25 16:29:20 113
原创 good url for hash relate
http://stackoverflow.com/questions/9133603/java-programming-language-online-tests [url]http://winse.iteye.com/blog/1331725[/url] [url]http://laotu5i0.iteye.com/blog/1021583[/url]
2013-02-06 16:44:06 84
原创 eclipse hotkey
1. Auoto add override method hotkey CTRL + 3, in the open window, enter "override" http://stackoverflow.com/questions/54886/hidden-features-of-eclipse http://www.gocertify.com/quizzes/#java
2013-01-27 14:16:29 98
原创 update redhat dynamic IP to static IP
step1: add gateway vi /etc/sysconfig/network add below "GATEWAY" line NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=localhost.localdomain [b]GATEWAY=192.168.1.1[/b] step2: add your n...
2013-01-20 15:14:07 84
原创 thinkpad DVD/CD-ROM HL-DT-ST GSA-T50N 升级SP3后丢失驱动问题
前几天XP升级了SP3,导至thinkpad的光盘不可用,光驱型号HL-DT-ST GSA-T50N。找了很多资料都不行,就是微软自己的这个检测工具都不行: [url]http://diagnostics.support.microsoft.com/diagprov/provision/MicrosoftFixit.dvd.RNP.160282074827208017.3.1.Run.exe?_...
2013-01-20 11:24:08 356
原创 daily used command[just for remember]
[b]1. change user : SU[/b] eg: if current user is root, u want to change to another user A, then : su userA 1. just list directory: ls -l| grep ^d 2. list specific character directory ls...
2013-01-19 22:19:13 188
TOP 8 people you should know in java world
[size=large][b]1. Father of the Java programming language[/b][/size] [align=center][img]http://www.mkyong.com/wp-content/uploads/2010/08/James-Gosling-150.png[/img][/align] James Gosling, generall...
2012-10-12 23:42:49 76
原创 初次使用Junit
前言:今天被人问到了TDD和Junit,竟然不会,太out了,回来看了几分钟,没想到junit这么简单,写个程序记一下。 Junit是同极限编程中的TDD联系在一起的,所谓TDD就是Test Driven Development. [b]1,安装Junit[/b] eclipse---windows--Preferences--java---Build Path ---new...
2012-09-12 23:52:37 104
Spring beans life cycle management
开发环境:SpringSource Tool Suite 2.9.2 RELEASE JDK: 1.6 程序类别: Spring Template Project--->Simple Spring Utility Project Spring bean的生命周期如下,以下程序实验图中红框内容: [img]http://dl.iteye.com/upload/attachment/0...
2012-09-02 09:40:11 106
原创 (转载)如何获取新插入Oracle数据库Sequence值的5种方法
[url]http://blog.csdn.net/linwei_1029/article/details/7010539[/url]
2012-08-16 16:50:52 97
原创 Oracle 建表,添加主外键,序列,触发器
[code="java"]select * from user_objects where object_type='TABLE'; --删除contact表,包括删除与其相关的约束 drop table contact cascade constraints --创建contact表 create table contact( id number(6) not null primary...
2012-08-15 23:35:59 300
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人