posts - 108,comments - 157,trackbacks - 22
     摘要: 例如现有文件内容如下:
-----------文件内容开始--------
Column1,Column2
00001234,00005678
-----------文件内容结束--------

读得的结果是<1234, 5678>,即它“智能”地认为我里面的内容为数字;而我希望它把内容当文本来处理,期望的结果是<00001234,00005678>,请问有没有什么方法可以直接用?  阅读全文
posted @ 2008-06-22 09:44 Silent Void 阅读(60) | 评论 (0)编辑
     摘要: N个元素的集合中,任选M个元素所构成的排列P(M in N)、组合C(M in N)  阅读全文
posted @ 2008-03-10 19:47 Silent Void 阅读(269) | 评论 (2)编辑
     摘要: SQL Statement  阅读全文
posted @ 2008-02-03 13:58 Silent Void 阅读(233) | 评论 (0)编辑
     摘要: loop  阅读全文
posted @ 2008-02-03 09:54 Silent Void 阅读(97) | 评论 (3)编辑
     摘要: 0. 一个单向链表,请设计算法判断该链表中有没有环?
1. 两个单向链表,有可能交叉,请设计算法判断是否交叉,如果交叉,返回交叉点。  阅读全文
posted @ 2008-02-02 16:53 Silent Void 阅读(483) | 评论 (5)编辑
     摘要: 1. 承载和使用 WCF 服务
2. WCF 深度寻址
3. WCF 消息传递基础  阅读全文
posted @ 2008-01-24 20:58 Silent Void 阅读(194) | 评论 (0)编辑
     摘要: 0. Auto-Implemented Properties;
1. Object initializers;
2. Collection Initializers;
3. Anonymous Types;
4. Extension Methods;
5. Lambda Expressions;
6. Partial Methods  阅读全文
posted @ 2008-01-17 19:50 Silent Void 阅读(241) | 评论 (0)编辑
     摘要: 使用的工具
GC 性能计数器
Windows 性能计数器
确认托管进程中的 OOM 异常
确定导致 OOM 异常的原因
衡量托管堆的大小
如果对象保留下来会怎样?
托管堆上的碎片是否会造成问题?
衡量在垃圾收集上花费的时间
研究高 CPU 使用  阅读全文
posted @ 2008-01-14 20:17 Silent Void 阅读(174) | 评论 (0)编辑
     摘要: 2008, A New Start!
2008, Life Still Rules....  阅读全文
posted @ 2008-01-05 16:45 Silent Void 阅读(85) | 评论 (0)编辑
     摘要: [Asp.Net]GridView中根据前后列之间的关联关系合并单元格  阅读全文
posted @ 2007-12-26 19:58 Silent Void 阅读(466) | 评论 (5)编辑
     摘要: 安全应用程序块提供的代码提供如下功能:
(1) 身份验证
(2) 授权
(3) 角色管理
(4) 配置文件管理
(5) 缓存主体   阅读全文
posted @ 2007-08-16 19:49 Silent Void 阅读(359) | 评论 (0)编辑
     摘要: 异常处理应用程序块被设计为支持包含在应用程序组件的 catch 语句中的典型代码。该应用程序块允许开发人员将此逻辑封装为可重用的异常处理程序,而不是在应用程序组件的相同 catch 块中重复这段代码(例如,记录异常信息)。异常处理程序是封装异常处理逻辑和实现名为 IExceptionHandler 的异常处理应用程序块接口的 .NET 类.  阅读全文
posted @ 2007-08-16 19:37 Silent Void 阅读(275) | 评论 (0)编辑
     摘要: 应用程序可以使用日志块在多个位置记录事件:
(1) 事件日志
(2) 电子邮件
(3) 数据库
(4) 消息队列
(5) 文件
(6) WMI   阅读全文
posted @ 2007-08-15 09:06 Silent Void 阅读(329) | 评论 (0)编辑
     摘要: 只支持对称加密和Hash摘要  阅读全文
posted @ 2007-08-15 08:58 Silent Void 阅读(167) | 评论 (0)编辑
     摘要: 简化实现通用数据访问功能的开发任务。应用程序可以在很多情况下使用应用程序块,例如读取显示数据、获得通过应用程序层的数据,以及将更改过的数据提交回数据库系统等。应用程序块包括对存储过程和内嵌 SQL 以及常见内务处理任务(例如,管理连接、创建与缓存封装在应用程序块的方法中的参数)的支持。换句话说,数据访问应用程序块提供对最常用的 ADO.NET 功能的访问。  阅读全文
posted @ 2007-08-08 20:32 Silent Void 阅读(296) | 评论 (1)编辑
     摘要: It supports both an in-memory cache and, optionally, a backing store that can either be the database store or isolated storage. The application block can be used without modification; it provides all the needed functionality to retrieve, add, and remove cached data.   阅读全文
posted @ 2007-08-08 20:27 Silent Void 阅读(255) | 评论 (0)编辑
     摘要: Enterprise Library 3.1–May 2007 contains the following general purpose application blocks  阅读全文
posted @ 2007-08-08 20:15 Silent Void 阅读(201) | 评论 (0)编辑
     摘要: 又添新枕头...  阅读全文
posted @ 2007-08-07 12:16 Silent Void 阅读(197) | 评论 (1)编辑
     摘要: HttpApplication 类的实例是在 ASP.NET 基础结构中创建的,而不是由用户直接创建的。HttpApplication 类的一个实例在其生存期内被用于处理多个请求,但它一次只能处理一个请求。这样,成员变量才可用于存储针对每个请求的数据。
应用程序按照以下顺序执行由 global.asax 文件中定义的模块或用户代码处理的事件:
BeginRequest
AuthenticateRequest
PostAuthenticateRequest
AuthorizeRequest
PostAuthorizeRequest
ResolveRequestCache
PostResolveRequestCache
在 PostResolveRequestCache 事件之后、PostMapRequestHandler 事件之前创建一个事件处理程序(对应于请求 URL 的页)。
PostMapRequestHandler
AcquireRequestState
PostAc  阅读全文
posted @ 2007-08-06 19:32 Silent Void 阅读(828) | 评论 (0)编辑
     摘要: JS+XMLDOM+XSL:实现中英文界面切换、排序、分页显示、增删改查XML文件数据源  阅读全文
posted @ 2007-07-26 00:41 Silent Void 阅读(659) | 评论 (9)编辑
     摘要: XSLT  阅读全文
posted @ 2007-07-25 23:49 Silent Void 阅读(294) | 评论 (2)编辑
     摘要: 空值、隐式类型转换、数据类型、操作符、Object & Array、特殊对象、自定义对象、document.write()/document.writeln();、MessageBox  阅读全文
posted @ 2007-07-24 09:05 Silent Void 阅读(189) | 评论 (3)编辑
     摘要: 常用的增删查改操作和Xpath介绍  阅读全文
posted @ 2007-07-24 08:59 Silent Void 阅读(300) | 评论 (2)编辑
     摘要: 1. 用EndInvoke等待异步调用;
2. 用WaitHandle等待异步调用;
3. 轮训查询等待异步调用;
4. 异步调用完成后,执行回调......  阅读全文
posted @ 2007-07-23 10:07 Silent Void 阅读(86) | 评论 (0)编辑
     摘要: 深入介绍virtual/new/override 这些关键字的意义
  阅读全文
posted @ 2007-07-22 21:52 Silent Void 阅读(615) | 评论 (8)编辑
     摘要: Date and Time Arithmetic in JScript  阅读全文
posted @ 2007-07-17 20:37 Silent Void 阅读(47) | 评论 (0)编辑
     摘要: All mouse events fire on an object with setCapture.  阅读全文
posted @ 2007-07-12 20:03 Silent Void 阅读(227) | 评论 (5)编辑
     摘要: :定义HTC,这个标签是其他定义的父元素。
: 定义HTC的属性,里面三个定义分别代表属性名、读取属性、设置属性时HTC所调用的方法。
:定义HTC的方法,NAME定义了方法名。
:定义了HTC的事件,NAME定义了事件名,ID是个可选属性,在HTC中唯一标识这个事件。
:定义了浏览器传给HTC事件的相应方法,其中EVENT是浏览器传入的事件,ONEVENT是处理事件的方法。  阅读全文
posted @ 2007-07-12 19:31 Silent Void 阅读(43) | 评论 (0)编辑
     摘要: Strategy Pattern,
Template Method Pattern,
Observer Pattern,
MVC Pattern,
Iterator Pattern,
Chain of Responsibility Pattern,
Command Pattern,
Memento Pattern,
State Pattern,
Interpreter Pattern,
Visitor Pattern,
Mediator Pattern
  阅读全文
posted @ 2007-06-22 09:47 Silent Void 阅读(32) | 评论 (0)编辑
     摘要: Adapter Pattern,
Composite Pattern,
Decorator Pattern,
Flyweight Pattern,
Facade Pattern,
Brige Pattern  阅读全文
posted @ 2007-06-22 09:40 Silent Void 阅读(25) | 评论 (0)编辑
     摘要: Simple Factory Pattern,
Factory Method Pattern,
Abstract Factory Pattern,
Singleton pattern,
Mutition Pattern,
Builder Pattern,
Prototype Pattern  阅读全文
posted @ 2007-06-22 09:26 Silent Void 阅读(31) | 评论 (0)编辑
     摘要: 1.开发人员在设计和实现系统时,关联资源和操作,并创造权限;
2.管理员可以为用户分配权限;
3.用户使用权限。  阅读全文
posted @ 2007-06-01 14:14 Silent Void 阅读(265) | 评论 (1)编辑
     摘要: 1. Create SchemaImporterExtension that will recognize the DataSetSchema:
2. Compile and GAC the SchemaImporterExtension;
3. Add it to the existent extensions in machine.config, ysing fully-qualified assembly name  阅读全文
posted @ 2007-05-23 11:44 Silent Void 阅读(115) | 评论 (0)编辑
     摘要: ……  阅读全文
posted @ 2007-05-17 15:33 Silent Void 阅读(69) | 评论 (2)编辑
     摘要: 生活就像一盒巧克力,你永远不知道你会得到什么。
  ——阿甘正传  阅读全文
posted @ 2007-05-17 15:21 Silent Void 阅读(39) | 评论 (0)编辑
     摘要: VS2005的语言设置可能会导致模板丢失和类设计器(Class Designer)不能创建类型  阅读全文
posted @ 2007-05-15 16:37 Silent Void 阅读(424) | 评论 (1)编辑
     摘要: SSL握手有三个目的:
1. 客户端与服务器需要就一组用于保护数据的算法达成一致;
2. 它们需要确立一组由那些算法所使用的加密密钥;
3. 握手还可以选择对客户端进行认证。  阅读全文
posted @ 2007-05-14 23:21 Silent Void 阅读(1102) | 评论 (1)编辑
     摘要: VS2005的类设计器(Class Designer)中,如果显示让类继承接口(closed arrow head line from the class to the interface),而不是实现接口(a "lollipop" shape)?  阅读全文
posted @ 2007-05-09 15:20 Silent Void 阅读(567) | 评论 (4)编辑
     摘要: SRP,单一职责原则(The Single Responsibility Priciple);OCP,开放封闭原则(The Open-Close Priciple);LSP,Liskov替换原则(The Liskov Substitution Priciple);DIP,依赖倒置原则(The Dependency Inversion Priciple);ISP,接口隔离原则(The Interface Segregation Interface);
REP,重用发布等价原则;CCP,共同封闭原则;CRP,共同重用原则;
ADP,无环依赖原则;SDP,稳定依赖原则;SAP,稳定抽象原则  阅读全文
posted @ 2007-05-08 20:40 Silent Void 阅读(221) | 评论 (0)编辑
     摘要: 完整团队;
计划游戏;
客户测试;
简单设计;
结对编程;
测试驱动开发;
改进设计;
持续集成;
集体代码所有权;
编码标准;
隐喻;
可持续的速度  阅读全文
posted @ 2007-05-07 22:10 Silent Void 阅读(170) | 评论 (0)编辑
     摘要: 个体和交互 胜过 过程和工具
可以工作的软件 胜过 面面俱到的文档
客户合作 胜过 合同谈判
响应变化 胜过 遵循计划  阅读全文
posted @ 2007-05-07 22:03 Silent Void 阅读(249) | 评论 (0)编辑
     摘要: 海报:Silverlight 1.1  阅读全文
posted @ 2007-05-06 20:47 Silent Void 阅读(190) | 评论 (0)编辑
     摘要: 目前也有一些技术可以支持我们将合理假设明确化,例如测试驱动开发(Test-Driven Development,TDD)和基于契约设计(Design by Contract,DBC)。但是有谁知道设计的使用者会作出什么样的合理假设呢?大多数这样的假设都很难预料。如果我们预测所有的假设的话,我们设计的系统可能也会充满不必要的复杂性。PPP一书中推荐的做法是:只预测那些最明显的违反LSP的情况,而推迟对所有其他假设的预测,直到出现相关的脆弱性的臭味(Bad Smell)时,才去处理它们。我觉得这句话还不够直白,Martin Fowler的《Refactoring》一书中“Refused Bequest”(拒收的遗赠)描述的更详尽:子类继承父类的methods和data,但子类仅仅只需要父类的部分Methods或data,而不是全部methods和data;当这种情况出现时,就意味这我们的继承体系出现了问题。例如上面的Rectangle和Square,Square本身长和宽相等,几何学中用边长来表示边,而Rectangle长和宽之分,直观地看,Square已经Refused了Rectangl  阅读全文
posted @ 2007-05-06 12:58 Silent Void 阅读(360) | 评论 (6)编辑
     摘要: 额的神啊,可爱的Visual Studio,我只是想找回项目模板而已....  阅读全文
posted @ 2007-05-05 14:54 Silent Void 阅读(839) | 评论 (12)编辑
     摘要: “你不必严格遵守这些原则,违背它们也不会被处以宗教刑罚。但你应当把这些原则看成警铃,若违背了其中的一条,那么警铃就会响起。” ----- Arthur J.Riel   阅读全文
posted @ 2007-05-04 14:26 Silent Void 阅读(253) | 评论 (1)编辑