寺委书记

Good good study, day day up!

导航

2011年8月18日

摘要: Message Type ID: 0×01 Chunk Size changes the chunk size for packets 0×02 Unknown anyone know this one? 0×03 Bytes Read send every x bytes read by both sides 0×04 Ping ping is a stream control message, has subtypes 0×05 Server BW the servers downstream bw 0×06 Client BW 阅读全文

posted @ 2011-08-18 00:10 MonkChen 阅读(1225) 评论(0) 推荐(0)

2011年8月17日

摘要: +-------------+----------------+-------------------+--------------+ | Basic header|Chunk Msg Header|Extended Time Stamp| Chunk Data | +-------------+----------------+-------------------+--------------+ (图1.包头header 构成)0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ |fmt| cs id | +-+-+-+-+-+-+-+-+ Figure 6 Chunk . 阅读全文

posted @ 2011-08-17 02:07 MonkChen 阅读(929) 评论(0) 推荐(0)

2011年8月15日

摘要: RTMP Message Formats June 2009 Adobe Systems Inc. [Page 6] with IDs 3-6 are reserved for usage of RTMP. Protocol message with ID 7 is used between edge server and origin server. Protocol control messages MUST have message stream ID 0 (called as control stream) and chunk stream ID 2, and are sent wit 阅读全文

posted @ 2011-08-15 22:25 MonkChen 阅读(522) 评论(0) 推荐(0)

2011年1月17日

摘要: 原文 http://www.alteridem.net/2008/05/20/read-properties-from-an-msi-file/It took a fair amount of searching and code tweaking, but I finally worked it all out. Add a reference to the COM Microsoft Windows Installer Object Library.Add a using WindowsInstaller;Add the following static method to your co 阅读全文

posted @ 2011-01-17 09:40 MonkChen 阅读(777) 评论(0) 推荐(0)

2011年1月6日

摘要: 昨天发现一个现象, WCF回调接口不可直接继承,它的直接继承体系只能有一层,这话怎么说都别扭,还是举例说明吧:1.WCF 服务契约接口可以继承,伪代码如下:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--同时,你设计了一个实现类publicclassServiceBase:IServiceBase{ publicvoidFooBase(){    //Dosomethinghere}}由于业务的需要,你需要扩展服务接口,于是设计一个新接口pu 阅读全文

posted @ 2011-01-06 10:46 MonkChen 阅读(736) 评论(0) 推荐(0)

2011年1月5日

摘要: 枚举资源文件中文件名的方法,备忘,代码如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varrs=Resource1.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture,true,true).OfTypeDictionaryEntry();stringstr=string.Empty;foreach(DictionaryEntry 阅读全文

posted @ 2011-01-05 10:28 MonkChen 阅读(241) 评论(0) 推荐(0)

2010年12月29日

摘要: vs Setup项目默认不带卸载功能,通常的做法是 http://www.cnblogs.com/michaelxu/archive/2009/12/26/1632972.html此方式不便之处在于一旦Setup的项目的版本号升级,IDE会自动生成新的ProductCode,因此需要手动更新msiexec的参数。本人向来不喜欢这种琐碎的事情,因此寻求可以避免手动更新的方法,经过一番google,在借鉴老外思路的基础上,摸索出一个自认为较好的解决方案,步骤如下:1. 新建一个空的文本文件,更名为UnInstall.bat,之所以是空的,因为我们只需要这个文件实体,以便添加到安装项目中,bat的内 阅读全文

posted @ 2010-12-29 10:02 MonkChen 阅读(2741) 评论(0) 推荐(1)

2010年12月27日

摘要: 应用场景:我的WCF服务以Windows服务形式承载,如图(Service右键-》添加安装程序)此种方式通常进行版本升级的时候需要将旧版本手动卸载,再安装新版本,麻烦!若直接安装新版本,则会报类似“Windows服务已经存在”的异常,此异常是因为旧版的服务还存在。因此,图方便的话,还需要安装新版服务之前卸载服务,可以在ProjectInstaller里解决,代码如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--[RunInstaller(t 阅读全文

posted @ 2010-12-27 21:04 MonkChen 阅读(2636) 评论(0) 推荐(1)

2010年12月25日

摘要: WCF Duplex 注意事项 和 Demo 阅读全文

posted @ 2010-12-25 16:37 MonkChen 阅读(280) 评论(0) 推荐(0)

2007年8月14日

摘要: 搞过web编程的人十有八九都遇到过分页问题,(本人是Windows平台的忠实用户,所以只讨论Windows平台),asp时代的就不说,先讨论asp.net2.0的解决方案,常用的方案有以下两种:1. 基于界面层的分页方案。Asp.net的很多数据显示控件提供了分页功能,其原理是每次都从数据库取得所有目标数据,然后在控件内部进行分页,再将目标页面数据显示,代表控件是GridView。此方案的优点是使... 阅读全文

posted @ 2007-08-14 21:44 MonkChen 阅读(733) 评论(0) 推荐(0)