using System;using System.Collections.Generic;using System.Collections.Concurrent;using System.Linq;using System.Text;using System.Net.Sockets;using System.Net;namespace TcpRouter{ class Program { private int listenPort; private
public static class EmitDynamicProperty { private static ConcurrentDictionary<string, Delegate> action = new ConcurrentDictionary<string, Delegate>(); public static TRet DynamicGetProperty<TRet>(this object obj,
由於採用Ajax.Net技術,要求客戶不能用瀏覽器的後退來導航,因為這樣會產生不正確的頁面.因為有時,結果是Ajax查詢返回的,不會儲存住.JQuery是一個好東西,可以很方便的給每個 <A> 加上事件,來重寫它的預設的跳轉,我們把它改成單擊時,調用Location.replace來完成頁面切換.代碼如下:CodeCode highlighting produced by Actipro CodeHighlighter
I haven't seen this format fully documented, so I got it from the source code to the SubRip program:The format has no header, and no footer. Each subtitle has four parts:Line 1 is a sequential count of subtitles, starting with 1.Line 2 is the start
在進行網站更新時,往往更新的檔案不太多,但檔案處於不同的目錄中。這樣更新時,既要備份原始檔案,又要進行更新,很是麻煩。如果是7個前端機,真是煩不勝煩。所以便有了此工具。 其實,Xcopy命令已經實現了,我們只要好好的利用它就可以。即:先把要更新的複製到備份目錄,然後從目的目錄中把備份目錄中存在的檔案複製過來。再把新檔案複製過去就可以了。 CodeCode highlighting produced by Actipro CodeHighlighter
_PROCESSOR DETECTION SCHEMES_by Richard C. Leinecker [LISTING ONE] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Detect the Processor Type -- by Richard C. Leinecker ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;