2013年7月22日

knowing abstract,virtual,override,new

摘要: If a class has at least one member which modified by "abstract",this class is an abstract class and you have to modify this class using keyword "abstract", while the member is called "abstract member"(say,abstract method or abstract property).Actual implementation is no 阅读全文

posted @ 2013-07-22 14:15 wyman25 阅读(261) 评论(0) 推荐(0) 编辑

2013年5月15日

SQL SERVER 2005 基于证书的镜像配置步骤

摘要: 一:前言 SQL SERVER数据库镜像其实是对一个数据库建立一个副本,并保持主数据库和副本数据库数据的同步。这样当主数据库遇到问题需要停止运行,就可以切换到副本数据库继续工作,保持系统的持续可用。主数据库称为"主体(principal)",而副本数据库成为"镜像(mirror)"。而主体和镜像之间互称为“伙伴(partner)”。主体和镜像相互切换这个动作称作"角色切换(role switching)",或者叫做"故障转移(failover)"。另外为了能在遇到问题后自动执行角色切换,可以加入一个见证服务器&qu 阅读全文

posted @ 2013-05-15 14:51 wyman25 阅读(669) 评论(0) 推荐(0) 编辑

2013年4月23日

difference between "on" and "where" when using left/right join query

摘要: I used to put the where-condiction in the "on" substatement in a join query,wishing that can help reducing the join count and improving the performence.But totally i was wrong.It seems the on-condiction is not like the where-condiction in a left/right join query. For example, there are two 阅读全文

posted @ 2013-04-23 18:38 wyman25 阅读(191) 评论(0) 推荐(0) 编辑

2013年4月17日

分享一个基于FileSystemWatcher的文件自动备份程序

摘要: 一:背景 我们公司asp.net的项目都是使用FTP进行上传下载来发布和更新的。尽管我们在发布修改之前都在本地进行进行测试,但本地的开发环境始终和外网上的实际环境还是有差别的(特别在一些数据上的差别),所以有时不可避免地出现在本地测试时没有Bug,但上传到外网就出现Bug的情况。 很多时候我们在ftp后如果出现bug,第一个反应就是马上还原回更新前的状态,也就是将旧问题替换回去。但这样也就需要在ftp上传前先将旧文件备份。但因为这样做太繁琐,有时候更新量大而且文件分散,备份旧文件就变成一件还是挺烦人的事情。虽然ftp工具都有简单的自动提示功能,例如filezilla就可以设定同名文件的处理.. 阅读全文

posted @ 2013-04-17 22:57 wyman25 阅读(2547) 评论(15) 推荐(3) 编辑

2013年3月21日

const VS readonly in detail

摘要: We know both const and readonly can be used to define unchangeablevariables,but what is the difference between'em since they are so similar to each other? There are a few points below: 1.const variables must have a certain value in the compilation time, but for readonly variables, its value can 阅读全文

posted @ 2013-03-21 15:57 wyman25 阅读(215) 评论(0) 推荐(0) 编辑

2013年3月12日

一个编码引发js错误的问题

摘要: 在做一个网站后台的时候,网页引用的一个删除商品的函数在IE6,IE7中死活不能执行。狗血的IE6 IE7不像chrome那样有控制台,因此调试起来非常麻烦,只给了一个大概行数,和对象undefined。 既然在chrome,ie9,ff中能执行,在IE6,IE7中失败,首先想到的就是兼容问题。但函数里面都是用jquery实现的,除了confirm(),应该不存在兼容问题。于是又想到一个事情:网站是基于frameset,难道在frame页中引用js,不能在子frame中调用?于是将原来的onclick="deleteProduct()"改成onclick="wind 阅读全文

posted @ 2013-03-12 01:03 wyman25 阅读(261) 评论(0) 推荐(0) 编辑

2013年2月25日

Difference between node and element in xml

摘要: Everything is a node in a xml document.Element is a node beside this,there are many others nodes in a xml document,such as:text node,attribute node and so on(even a comment is a node).Element is a whole tag(<xx />). 阅读全文

posted @ 2013-02-25 18:44 wyman25 阅读(241) 评论(0) 推荐(0) 编辑

IIS7对于IIS6的改进及配置系统的差异

摘要: 在IIS 6中asp.net的运行机制文章中,我们大致了解了HTTP请求在IIS6中的流转以及asp.net在IIS6中是如何运行的。但比较,IIS6毕竟是10年前的产物,尽管现在还有很多asp.net应用是部署在win2003+iis6平台下,但我相信,IIS7+会越来越受到人们的喜爱。就我自己而言,我是用上了win7才开始使用IIS7.5的,随着不断使用,我觉得IIS7+是到目前为止用得最爽的一个版本。 据说IIS7对于IIS6有很多改进的地方(例如模块化,更好的安全性和扩展性),但最令我印象深刻的是两点改变: 一:IIS7对asp.net的集成。 二:IIS7的配置系统(相对于... 阅读全文

posted @ 2013-02-25 18:37 wyman25 阅读(1286) 评论(0) 推荐(0) 编辑

2013年1月30日

Back/Forward and Refresh in browser

摘要: What's the difference between pressing back/forward button and pressing refresh button? And what would happen inside a browser when we press those three button? Basically,the back and forward button just simply "keep the previous state of the page",letting the page looks like the same 阅读全文

posted @ 2013-01-30 17:43 wyman25 阅读(345) 评论(0) 推荐(0) 编辑

2013年1月23日

Will static methods over multithreading cause thread-safe problem?

摘要: Most of the time when we are using multi-threading we are likely facing the thread-safe issue,it seems that this problem always come up withcallingstatic methods or functions in a thread when multi-threading coding.But is it correct? For more detail, i've done a lot google to search this issue i 阅读全文

posted @ 2013-01-23 00:15 wyman25 阅读(260) 评论(0) 推荐(0) 编辑

导航