- 浏览: 173244 次
- 性别:
- 来自: 苏州
最新评论
-
jiasky:
好像是在练书法。
Oracle Function -
blackangel_can:
这样的代码见得多了。
Javascript Print(*) -
tianhendi:
Apache Solr and Tomcat6 Search engine -
laserdance:
我想问下,你怎么从Tomcat等服务器中把上述文件xml准确定 ...
Java parse XML methods(4) -
cskysnew:
第二种如果去掉synchronized,就不是线程安全的,应该 ...
Singlton ture or not?
文章列表
Struts2 is an elegant, wonderful web framework, it boiled down the strength in webwork and struts1.
1.enhance the filter function
2.based on interface program
3.to be easy to integrate with spring framework
4.add the popular ajax framework :dojo
5.make use of the OGNL feature more stronger than JSTL ...
- 2007-09-23 11:20
- 浏览 1029
- 评论(0)
Basically PHP5 or above can run smoothly by me.
Prerequisites: PHP5.2 or above
Install: Replace the go-pear.phar content in php/pear directory with http://go-pear.org/
Double click the go-pear.bat to install PEAR module.
Install XML_Query2XML and MDB2_Driver_mysql packages by dos command: pear inst ...
- 2007-09-23 10:29
- 浏览 923
- 评论(0)
1.simply practice the lucene api for search document and data, post code first
lucene version :2.2.0
set up the index of files
java 代码
package com.aaron.lucene;
import java.io.File;
import java.io.FileReader;
import java.io.Reader;
import java.util.Date;
...
- 2007-09-19 22:23
- 浏览 1002
- 评论(0)
处理目录,文件
PHP5中使用大量Iterator,包括ArrayIterator,CachingIterator,LimitIterator,RecursiveIterator,SimpleXMLIterator和DirectoryIterator.
用PHP和PEAR比较文件内容提交输出,相信很多人在Unix/Linux下面都用过Diff命令,这个命令是个非常方便实用的工具,能够对不同文件进行逐行的对比,最后找出不同的地方。而PEAR提供了一个包,也是用来比较文件,Text_Diff http://pear.php.net/package/Text_Diff
include_once ...
- 2007-09-18 22:38
- 浏览 1071
- 评论(0)
1、序列化是干什么的?
简单说就是为了保存在内存中的各种对象的状态,并且可以把保存的对象状态再读出来。虽然你可以用你自己的各种各样的方法来保存Object States,但是Java给你提供一种应该比你自己好的保存对象状态的机制,那就是序列化。
2、什么情况下需要序列化
a)当你想把的内存中的对象保存到一个文件中或者数据库中时候;
b)当你想用套接字在网络上传送对象的时候;
c)当你想通过RMI传输对象的时候;
3、当对一个对象实现序列化时,究竟发生了什么?
在没有序列化前,每个保存在堆(Heap)中的对象都有相应的状态(state),即实例变量(instance ariable ...
- 2007-09-08 07:29
- 浏览 1179
- 评论(0)
Load all data into a database:
mysql -uroot -pHelloworld db_name<c:\work\backup-file.sql
Backup all data into a file:
mysqldump -uroot -pHelloword db_name > c:\work\backup-file.sql
- 2007-08-25 09:23
- 浏览 1031
- 评论(0)
CREATE OR REPLACE TRIGGER TRAINING.TR_MIDAS_CLOSETT
AFTER UPDATE
ON TRAINING.TT_TROUBLETKT
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
BEGIN
--IF SUBPRODUCT <> PAYPHONE AND SUBPRODUCT <> PW-DID CIRCUIT AND (TT STATUS == CLOSED or TT STATUS == Cancelled)
IF :NEW.SUBPRODUCT &l ...
- 2007-08-25 08:28
- 浏览 1305
- 评论(0)
CREATE OR REPLACE FUNCTION TRAINING.c1c3flt_cat_grp2(cof IN VARCHAR2)
RETURN NUMBER
IS
CAT_GRP NUMBER;
BEGIN
IF cof BETWEEN '604' AND '607' THEN
CAT_GRP := 1;
ELSIF (cof IN ('610', '083', '084', '085')) OR (cof BETWEEN '615' and '619') OR
(cof BETWEE ...
- 2007-08-25 08:25
- 浏览 2479
- 评论(1)
Prerequisites:
Install Apache(my version 2.2) and configure the php in httpd.conf,
Install Mysql
enable LoadModule rewrite_module modules/mod_rewrite.so
Configure the database connection
MVC construct, model,views,controller
Refer to: http://www.ibm.com/developerworks/cn/opensource/os-php-cake/
- 2007-08-20 13:25
- 浏览 944
- 评论(0)
Prerequisites: Install oracle9/10g Client. configure the TNSNAME.ora
Connect oracle database case by OracleConnection:
Private Sub BtnOracle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOracle.Click
Dim OracleConn As New OracleConnection
Dim OracleCo ...
- 2007-08-16 22:05
- 浏览 1175
- 评论(0)
Today,I encountered an issue, that report ORA-12705: Cannot access NLS data files or invalid environme,
I am accessing the oracle database which install in unix ,by php under windowxp. also in my pc, I installed the oracle database due to TOAD, But I prefer to the instantclient to connect to oracle ...
- 2007-08-16 21:33
- 浏览 5447
- 评论(0)
Oracle encoding format: UTF8
package com.aaron.dao;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.sql.Connection;
import j ...
- 2007-08-16 18:01
- 浏览 1585
- 评论(0)
XML is a well-format and generally used in data transfer and store,likewise,JSON is a very convenient format for interchange data, and moreover JSON is easy to be parse by many language,
Based on this, specially when use javascript parse and loop the elements by xml,it's very time-consuming, we reso ...
- 2007-08-15 15:59
- 浏览 1577
- 评论(0)
Oracle 10g Instant Client (free download available) is the easiest way for PHP to connect to a remote Oracle database, requiring installation of only three libraries.
The Instant Client libraries used by PHP access Oracle's current API, called OCI8. (This C interface takes its name from being first ...
- 2007-08-15 15:05
- 浏览 1834
- 评论(0)
Are you ready to start using PHP to talk to an Oracle Database? Let's walk through the steps required to install the Oracle Database, Apache HTTP Server, and PHP as an Apache module on Windows. We will be using Windows XP Professional for this example.
Software Requirements:
...
- 2007-08-15 14:46
- 浏览 1289
- 评论(0)