原创 網絡爬蟲

Nutch開發語言:Javahttp://lucene.apache.org/nutch/簡介:Apache的子項目之一,屬於Lucene項目下的子項目。Nutch是一個基於Lucene,類似Google的

原创 linux常用命令收集

文本查找find ./ -type f | xargs grep str

原创 Oracle 遊標使用

-- 聲明遊標;CURSOR cursor_name IS select_statement--For 循環遊標--(1)定義遊標--(2)定義遊標變量--(3)使用for循環來使用這個遊標declare --類型定義

原创 Discuz!論壇通行證與JSP網站的整合

需求:現有行業應用網站一個,使用JSP開發,假設網址爲app.com;及Discuz論壇一個,使用PHP開發,假設網址爲bbs.com。 現在希望將應用網站和論壇的用戶進行整合,即,如果用戶在應用網站已經登

原创 正則表達式

匹配中文字符的正則表達式: [u4e00-u9fa5] 評註:匹配中文還真是個頭疼的事,有了這個表達式就好辦了匹配雙字節字符(包括漢字在內):[^x00-xff] 評註:可以用來計算字符串的長度(一個雙字節

原创 Myeclipes 註冊機源碼

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class

原创 獲取指定URL html 代碼

public class Test { public static void main(String[] args) { try { java.net.URL url = new java.

原创 ibatis # $區別

1、#可以進行預編譯,進行類型匹配,#變量名# 會轉化爲 jdbc 的 ? $不進行數據類型匹配,$變量名$就直接把 $name$替換爲 name的內容 例如: select * from

原创 Discuz!論壇通行證與JSP網站的整合

需求:現有行業應用網站一個,使用JSP開發,假設網址爲app.com;及Discuz論壇一個,使用PHP開發,假設網址爲bbs.com。 現在希望將應用網站和論壇的用戶進行整合,即,如果用戶在應用網站已經登

原创 創建訪問本地文件系統的信任APPLET

Written By Olexiy & Alexander Prokhorenko Translated by Caiyi0903(Willpower),2004.1.29創建一個信任的APPLET,使其擁

原创 oracle for update of 和 for update區別

select * from TTable1 for update 鎖定表的所有行,只能讀不能寫  2 select * from TTable1 where pkid = 1 for update 只鎖定

原创 php免費空間

1.FreeWebhostingArea的免費空間  網站:[url]http://www.freewha.com/[/url]  1500MB容量,無限流量,支持PHP+MYSQL.  無廣告[據說流量大

原创 兩日期間隔

import java.util.Calendar;import java.util.GregorianCalendar;import java.sql.Date;public class DateUtil

原创 struts + spring + dwr + ibatis最簡包

struts 2應用只需要下列幾個必須的jar: commons-logging-1.0.4.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.