文章分类 -  技术

1 2 下一页

调试Web页面时,如果页面引用了外部JS代码,会被IE缓存的解决方法
摘要:做Web页面开发时,经常会遇到Web表单引用的外部JS被IE缓存,导致刚修改的JS无法执行的问题。可以试试下面的方法 阅读全文

posted @ 2009-02-17 12:31 Mainz 阅读(790) 评论(1) 推荐(0) 编辑

Dataset的序列化传输,压缩和反序列化
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.Data; using System.Runtime.Serialization; using System.Runtime.Seriali... 阅读全文

posted @ 2008-09-05 09:58 Mainz 阅读(849) 评论(0) 推荐(0) 编辑

[转].NET程序员面试应知应会
摘要:描述线程与进程的区别? 进程是指在系统中正在运行的一个应用程序;线程是系统分配处理器时间资源的基本单元,或者说进程之内独立执行的一个单元。对于操作系统而言,其调度单元是线程。一个进程至少包括一个线程,通常将该线程称为主线程。 · 什么是Windows服务,它的生命周期与标准的EXE程序有什么不同 Windows服务只是运行于后台的一种进程而已,并且它们的绝大部分并不要求用户交互。由三部分组成:1.... 阅读全文

posted @ 2008-07-26 10:44 Mainz 阅读(606) 评论(0) 推荐(0) 编辑

[转]使用XMLSerializer类持久化数据
摘要: XML 序列化是将一个对象的公有属性(property)和域(field)转换到一个序列化格式(在这里是 XML)用于存储或传输的过程。反序列化是从 XML 输出中按照对象的原始状态重新创建对象的过程。因此,你可以将序列化看作是一种将对象状态保存到一个流或缓冲区的方法。序列的两个常用的地方是数据持久化和数据交换。持久化指在用户的会话间保存数据的过程。当应用程序关闭时数据被存储(序列化),当用户回来时数据被重新装载(反序列化)。数据交换是将数据提供其它系统的过程。使用序列化和 XML 可以很简单地实现数据交换。 阅读全文

posted @ 2008-03-30 12:01 Mainz 阅读(978) 评论(2) 推荐(0) 编辑

数据压缩
摘要:在服务器客户端程序中使用压缩可以极大的减少对带宽的依赖并提高程序性能。CLR2.0里带来很多新东东,其中System.IO.Compression就是一个新的命名空间,里面包括两个类GzipStream和DeflaterStream,它们都可以用于解压缩,但是不支持ZIP、RAR等常用的压缩文件,RAR是涉及到专利的问题,而ZIP虽然格式是公开的,但是我想微软不太想支持,它可能更想大家用它自家的私房菜CAB格式,可是Dotnet CLR居然也不支持。 阅读全文

posted @ 2008-03-08 15:03 Mainz 阅读(205) 评论(1) 推荐(0) 编辑

搜索爬虫与Lucene.net
摘要:Discussed search spider and Lucene.net. This article I describes building a simple search engine that crawls the file system from a specified folder, and indexing all HTML (or other types) of documents. A basic design and object model was developed as well as a query/results page which you can see here. 阅读全文

posted @ 2008-03-02 21:45 Mainz 阅读(1559) 评论(1) 推荐(0) 编辑

How to use configSource to split configuration files in App.config/Web.config
摘要:如何使用其他独立的配置文件来拆分Web.config/App.config, 如何设置重启选项等 (涉及.Net framework System.Configuration && Enterprise Library) 阅读全文

posted @ 2008-02-04 10:27 Mainz 阅读(440) 评论(1) 推荐(0) 编辑

[转]六大原因 为何Linux比Windows更安全
摘要:1.更加卓越的补丁管理工具 2. 更加健壮的默认设置 3. 模块化设计 4. 更棒的“零日攻击(zero-day attacks)”防御工具 5. 开放源代码构架 6. 多样化的系统环境 阅读全文

posted @ 2008-02-02 11:47 Mainz 阅读(287) 评论(1) 推荐(0) 编辑

The Configuration API in .NET 2.0
摘要:The configuration API and associated command line tools offer flexibility and convenience in updating, encrypting, and managing configuration files. When modifying configuration files, think about application restart issues and how to ensure write permissions to the configuration files. 阅读全文

posted @ 2008-02-02 11:06 Mainz 阅读(522) 评论(1) 推荐(0) 编辑

DOS批处理脚本
摘要:文章写了如何写DOS批处理脚本的一些经验 阅读全文

posted @ 2008-01-16 13:03 Mainz 阅读(2060) 评论(3) 推荐(4) 编辑

[转]从底层了解ASP.NET体系结构
摘要:翻译自Rick Strahl先生的"A low-level Look at the ASP.NET Architecture" 阅读全文

posted @ 2008-01-04 12:50 Mainz 阅读(155) 评论(1) 推荐(0) 编辑

[转]业务实体对象(Business Entity Object)的序列化
摘要:在分布式应用系统中,层与层之间的数据,如业务实体对象、DataSet、Typed DataSet等等,传递需要将对象序列化。其中.Net Framework内置支持DataSet, Typed DataSet对象的序列化。这里要讨论的是自定义业务实体对象(Business Entity Object)的序列化。1. 使用 XmlSerializer 序列化自定义实体对象 2. 使用 SoapFormatter 类将自定义实体对象序列化为 SOAP 格式 3. 将业务实体组件序列化为二进制格式 阅读全文

posted @ 2008-01-04 10:59 Mainz 阅读(611) 评论(1) 推荐(0) 编辑

DataSets vs. Collections
摘要:Both DataSets and custom classes don't limit what you can do in any way, and both can be used to accomplish the same aims. That said, DataSets are fantastic tools for prototyping applications and represent excellent solutions for building systems in a kind of emergency—a limited budget, an approaching deadline, or a short application lifetime. For relatively simple applications, custom entities add a perhaps unnecessary level of complexity. In this case, I suggest that you seriously consider usi 阅读全文

posted @ 2008-01-04 10:57 Mainz 阅读(332) 评论(1) 推荐(0) 编辑

《重构-改善既有代码的设计》[转]
摘要:Refactoring means rewriting existing source code with the intent of improving its design rather than changing its external behavior. The focus of refactoring is on the structure of the source code, changing the design to make the code easier to understand, maintain, and modify. 阅读全文

posted @ 2008-01-04 10:33 Mainz 阅读(739) 评论(2) 推荐(0) 编辑

[转]有效编写软件的75条建议
摘要:从软件工程,软件项目,软件编写等多个方面提出了有用的75条建议 阅读全文

posted @ 2008-01-01 20:01 Mainz 阅读(291) 评论(1) 推荐(0) 编辑

ASP.NET 10 Tips for Writing High-Performance Web Applications
摘要:This article discusses: Common ASP.NET performance myths Useful performance tips and tricks for ASP.NET Suggestions for working with a database from ASP.NET Caching and background processing with ASP.NET 阅读全文

posted @ 2007-12-27 17:33 Mainz 阅读(483) 评论(1) 推荐(0) 编辑

退出 DES,进入 Rijndael
摘要:自 20 世纪 70 年代以来一直广泛使用的“数据加密标准”(DES) 日益显出衰老的痕迹,而一种新的算法 -- Rijndael -- 正顺利地逐渐变成新标准。这里,Larry Loeb 详细说明了每一种算法,并提供了关于为什么会发生这种变化的内幕信息。 阅读全文

posted @ 2007-12-25 19:56 Mainz 阅读(658) 评论(1) 推荐(0) 编辑

使用 XPath 2.0 和 XSLT 2.0 节省开发时间并减少代码量
摘要:XPath 2.0 和 XSLT 2.0 中有三个有趣的新特性,分别是:item 数据类型、to 运算符和 序列 的概念。构建一个示例应用程序,在其中使用这些特性生成 XML 文档的复杂 HTML 视图,使用 XSLT 2.0 中的新特性,您可以创建更短、更易于维护的样式表。在此期间,稍微关注一下 XSLT 2.0 中的数据类型,并学习使用新的 元素。 阅读全文

posted @ 2007-12-25 19:54 Mainz 阅读(202) 评论(1) 推荐(0) 编辑

软件设计中的用户体验设计
摘要:用户体验(User experience)设计或者可用性(Usability)设计对软件产品来说非常重要,因为软件产品要面对最终用户,不管功能再强,没有没有良好的用户体验,和方便快捷的可用性设计,这样的软件产品是失败的。文章给出了一些软件产品用户体验设计的原则和思路。 阅读全文

posted @ 2007-12-25 18:36 Mainz 阅读(489) 评论(1) 推荐(1) 编辑

代码复用的规则
摘要:代码复用是绝大多数程序员所期望的,也是OO的目标之一。总结我多年的编码经验,为了使代码能够最大程度上复用,应该特别注意以下几个方面。 阅读全文

posted @ 2007-12-25 18:22 Mainz 阅读(427) 评论(1) 推荐(0) 编辑

1 2 下一页

导航