若等闲
衣带渐宽终不悔,为伊消得人憔悴
摘要: P2P之UDP穿透NAT的原理与实现声明:原文来自P2P中国网,C#实现是也是转载别人的,供参考 关键字:P2P, UDP, NAT, .NET 论坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。 首先先介绍一些基本概念: NAT(Network Address Translators),网络地址... 阅读全文
posted @ 2004-11-27 03:18 飘飘洒洒...... 阅读(6367) 评论(13) 推荐(2) 编辑
摘要: In this example we will create a Windows Form Project that will create new FTP and Web IIS Virtual Directories from code based on the name and path specified by the user. You can create virtual direct... 阅读全文
posted @ 2004-11-27 02:24 飘飘洒洒...... 阅读(1369) 评论(0) 推荐(0) 编辑
摘要: '///////////////////////////ImportsSystem.IOImportsSystem.NetImportsSystemImportsSystem.TextImportsSystem.Text.RegularExpressionsPublicClassHTMLContentParserClassHTMLContentParserFunctionReturn_HTMLCo... 阅读全文
posted @ 2004-11-27 01:26 飘飘洒洒...... 阅读(861) 评论(1) 推荐(0) 编辑
摘要: /**//**Thisisaconversionofsomeoftheregularexpressionslistedin*thePerlCookBook.*compilethissamplewiththecommandline:*csc/debug/r:System.Text.RegularExpressions.dllcookbook.cs*ThishasbeentestedwithBeta1... 阅读全文
posted @ 2004-11-27 01:23 飘飘洒洒...... 阅读(710) 评论(0) 推荐(0) 编辑
摘要: Solution Title: Regular Expressions to remove or replaceAuthor: pmengalPoints: 500 Grade: ADate: 05/12/2003 01:18AM PDT Hello,I want to use a regular expression to replace or remove some texts.Replac... 阅读全文
posted @ 2004-11-27 01:21 飘飘洒洒...... 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 正则表达式(一) 一、简介 正则表达式这个名词,相信很多人都听说过,这个名词最早起源于1956 年, 一位叫 Stephen Kleene 的美国数学家在 McCulloch 和 Pitts 早期工作的基础上,发表了一篇标题为“神经网事件的表示法”的论文,引入了正则表达式的概念。正则表达式就是用来描述他称为“正则集的代数”的表达式,因此采用“正则表达式”这个术语。 随后,发现可以将这一工作应用于使... 阅读全文
posted @ 2004-11-27 01:19 飘飘洒洒...... 阅读(383) 评论(0) 推荐(0) 编辑
摘要: .NET框架下MD5实现已经集成于System.Web.Security名称空间,只需简单调用即获取结果:string 结果字符串=System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(输入字符串,"MD5"); 以下包装函数根据code参数的不同(可取16或32),分别返回参数STR的16位和32位M... 阅读全文
posted @ 2004-11-27 01:11 飘飘洒洒...... 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 不知大家有没有玩过“QQ秀”?玩过的话一定会想自己也做一个类似的功能。不过没有玩过也没关系,你可以看看下面的演示。用户可以在列出的图片中自由定制自己的形象,用在论坛社区、留言本等地方的形象显示可是个不错的主意哦!怎么样?心动了吧?那让我们看看这东西到底是怎么回事吧!演示:实际上,左边“形象预览”的形象是由多幅图片一层一层拼成的,呵呵,了解Photoshop的层技术就很容易理解了。每层图片的大小... 阅读全文
posted @ 2004-11-27 01:05 飘飘洒洒...... 阅读(633) 评论(0) 推荐(0) 编辑