原创 [note] date, timestamp & time string converter

backup~ package sys.function; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Cale

原创 blog又被封了

 http://www.x2blog.cn/Maxwinsigh... 多用戶blog,不知道哪位仁兄又發了什麼文章,空間又被河蟹。定居在csdn了。

原创 mark: firefox獲取dom節點css屬性

https://developer.mozilla.org/En/DOM/Window.getComputedStyle以前寫過一個笨方法來獲取,ff自身就提供了一個方法(獲取自firebug)<html>    <head>      

原创 NOTE: javascript prototype chain

=== copy from mastering dojo === What Is a Prototype?Every object in JavaScript contains a reference to anotherobject t

原创 mark: 重載模板類輸出操作符

C++ primer4 Ch16首先了解Specific Template Friendship、General Template Friendshi

原创 the focus event seems like asynchronize under IE7/8

here is the test example:   under firefox (3.5) :   under ie:   <textarea cols="50" rows="15" name="code" class="xhtm

原创 Javascript對象,prototype鏈

Doc鏈接: http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjA2Y2ZqZ2szZ2g&hl=en 關鍵詞:JavaScript;對象;prototype;pro

原创 Note:Behavior of polymorphic methods inside constructors

thinking in java中的一個例子,java和C++表現不是特別一致: #include <iostream> using namespace std; class Base { public: Base() { cout

原创 mark: 寫了一個複雜的sql

SELECT ftable.pid, ftable.sid, fcnt, mcnt, fcnt + mcnt AS tcntFROM ( SELECT main.pid, main.sid, COALESCE( main.cnt + vo

原创 單機環境構建WebSphere Application Server Community Edition V2.1.1集羣環境

3.2         創建新的服務實例 3.2.1     新服務實例(instance2)的配置 WAS CE的服務配置信息都在var目錄下,創建一個新的服務實例步驟如下: 1.        在<WASCE_HOME>下創建一個文

原创 原來firebug下的的console可以在js中調用

安裝firebug後就可以在自己的js裏使用console了(最新的firebug要首先啓用console)。 e.g. console.log('hello world');   props(console) Methods: asse

原创 pvpgn戰網添加dota戰績統計功能(Ghost++)。

關鍵詞:pvpgn, war3, warcraft III,Ghost++,dota,stats,戰績,統計,幽靈主 前段時間看到igame8.net上的dota戰績統計功能不錯,不過一眼看去這東西就是基於別人的框架做的,否則這技術早在國

原创 ie7 zoom caused some js behavior weird

we always use js to calculate and set the DOM node's position. but under ie7, you should consider the zoom factor of th

原创 自定義JavaScript類

Doc:http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjEyaG5tNGdncXQ&hl=en   繼續裝機。看到裝機能賺錢,但咱沒特別的廠家支持,不過也沒關係,這

原创 remove cvs folders. [java]

import java.io.File; public class DeleteCvsFile { public static void main(String[] args) { String filepath