摘要: XmlDocumentdoc=newXmlDocument();doc.LoadXml(@"<?xmlversion='1.0'encoding='utf-8'?><root><foo><table><tr><td><div><div>a<div>abc</div>b</div></div></td></tr><tr><tdclass='abc'>阅读全文
posted @ 2012-01-10 17:05 华志昊 阅读(5) 评论(0) 编辑
摘要: 继承 Abstract CollectionBase<T> Implement Bag<T> OrderedBag<T> OrderedSet<T> Feature duplicated ordered ordered & non-duplicated Abstract ListBase<T> Implement Deque<T> ...阅读全文
posted @ 2011-10-20 11:26 华志昊 阅读(14) 评论(0) 编辑
摘要: publicclassBag<T>:CollectionBase<T>,ICloneable//Bag<T>isacollectionthatcontainsitemsoftypeT.UnlikeaSet,duplicateitems(itemsthatcompareequaltoeachother)areallowedinanBag.publicclassBigList<T>:ListBase<T>,ICloneable//BigList<T>providesalistofitems,inorder,withindice阅读全文
posted @ 2011-10-20 10:38 华志昊 阅读(19) 评论(0) 编辑
摘要: 理想情况是:usingSystem;usingSystem.Collections.Generic;usingSystem.Threading;usingSystem.Text;usingSystem.Diagnostics;usingSystem.Net;usingSystem.IO;usingSystem.Net.Sockets;namespaceHTTPProxyServer{classProgram{staticvoidMain(string[]args){Server.Start(10);IPHostEntryIpEntry=Dns.GetHostEntry(Dns.GetHostN阅读全文
posted @ 2011-10-14 10:15 华志昊 阅读(20) 评论(0) 编辑
摘要: 通常大部分语言中"布尔表达式"的值不是True就是False。然而也有个把例外,比如SQL中,你可以尝试运行以下两行代码,select 1 where 1 not in (null)select 1 where 1 in (null)有意思的是它们都返回0行结果。阅读全文
posted @ 2011-08-03 17:32 华志昊 阅读(16) 评论(0) 编辑
摘要: dm_exec_query_stats是MS SQL Server2005新提供的系统函数,初次使用发现功能非常全面。可以提供一些特殊的解决问题的思路。1SELECTqs.execution_count,2SUBSTRING(qt.text,qs.statement_start_offset/2+1,3(CASEWHENqs.statement_end_offset=-14THENLEN(CONVERT(nvarchar(max),qt.text))*25ELSEqs.statement_end_offsetend-6qs.statement_start_offset7)/28)ASquery阅读全文
posted @ 2011-07-13 15:41 华志昊 阅读(53) 评论(0) 编辑
摘要: Client sideServer side(1) Invokesshutdown(s, SD_SEND) to signal end of session and that client has no more data to send.(2) Receives FD_CLOSE, indicating graceful shutdown in progress and that all data has been received.(3) Sends any remaining response data.(local timing significance only) Gets FD_R阅读全文
posted @ 2011-04-25 11:41 华志昊 阅读(107) 评论(0) 编辑
摘要: Arp,Hostname,Ipconfig,Lpq,Nbtstat,Netsh,Netstat,Nslookup,Ping,Route,Tracert,Pathping,阅读全文
posted @ 2011-04-25 11:04 华志昊 阅读(58) 评论(0) 编辑
摘要: Photon是exitgames开发的MMO服务器端引擎。这里将介绍Photon开发中经常遇到的一些术语,它们可能是一些概念,或重要的类。阅读全文
posted @ 2011-03-11 16:02 华志昊 阅读(1114) 评论(0) 编辑
摘要: Photon是exitgames开发的MMO服务器端引擎。它的client SDK支持包括android, Flash, iPhone, iPad, .NET., Unity 3D, Windows,甚至silverlight的大部分客户端平台。阅读全文
posted @ 2011-02-27 03:46 华志昊 阅读(1317) 评论(0) 编辑