Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
09 2011 档案
Database Mirroring in SQL Server 2008
摘要:What is Database Mirroring?Database mirroring is the feature in SQL Server 2005 and SQL Server2008 that provides a high availability solution for Databases. This feature canbe enabled and used only on a database with Full recovery models. The databasecan be mirrored from one SQL Server instance to a 阅读全文
posted @ 2011-09-29 13:30 Angelo Lee 阅读(296) 评论(0) 推荐(0)
UTC Time
摘要:整个地球分为二十四时区,每个时区都有自己的本地时间。在国际无线电通信场合,为了统一起见,使用一个统一的时间,称为通用协调时(UTC, Universal Time Coordinated)。UTC与格林尼治平均时(GMT, Greenwich Mean Time)一样,都与英国伦敦的本地时相同。在本文中,UTC与GMT含义完全相同。北京时区是东八区,领先UTC八个小时,在电子邮件信头的Date域记为+0800。如果在电子邮件的信头中有这么一行: Date: Fri, 08 Nov 2002 09:42:22 +0800 说明信件的发送地的地方时间是二○○二年十一月八号,星期五,早上九点四十二分 阅读全文
posted @ 2011-09-26 14:13 Angelo Lee 阅读(468) 评论(0) 推荐(0)
如何将程序集(dll)安装到全局程序集缓存(GAC)中
摘要:针对一些类库项目或用户控件项目(一般来说,这类项目最后编译生成的是一个或多个dll文件),在程序开发完成后,有时需要将开发的程序集(dll文件)安装部署到GAC(全局程序集缓存)中,以便其他的程序也可以调用。 一般来说,将程序集(dll)安装到GAC中有以下几种方法:1. 管理工具->Microsoft.NETFramework2.0配置->管理->我的电脑->程序集缓存->选中右键"添加"->将程序集添加到程序集缓存。2. 手动将要安装部署的dll文件拖至系统目录windows下的assembly文件夹下(一般为C:/windows/a 阅读全文
posted @ 2011-09-23 08:43 Angelo Lee 阅读(266) 评论(0) 推荐(1)
推荐VS2008插件CodeRush Xpress for C#
摘要:前段时间DevExpress和微软共同发布了CodeRush Xpress for C#,它包含了Code Rush和Refactor! Pro中的一些特性。这些特性包括增强的导航、选择工具、代码创建功能以及强大的重构能力。另外CodeRush Xpress还对C#中既有的重构功能做了封装,这些功能用起来更为方便了。不过它不支持Express版的Visual Studio。CodeRush Xpress的强点包括易于访问的重构和代码创建功能、强大的文件和代码导航功能、一组编辑器、选择、剪贴板工具等。下面简单介绍一下几个功能。1. 使用中生成(Generate From Usage) 本来C#中 阅读全文
posted @ 2011-09-21 22:43 Angelo Lee 阅读(239) 评论(0) 推荐(0)
WPF Resource
摘要:什么叫WPF的资源(Resource)?资源是保存在可执行文件中的一种不可执行数据。在WPF的资源中,几乎可以包含图像、字符串等所有的任意CLR对象,只要对象有一个默认的构造函数和独立的属性。也就是说,应用程序中非程序代码的内容,比如点阵图、颜色、字型、动画/影片档以及字符串常量值,可将它们从程序中独立出来,单独包装成"资源(Resource)"。静态资源(Static Resource),动态资源(Dynamic Resources)。这两者的区别是:静态资源在第一次编译后即确定其对象或值,之后不能对其进行修改。动态资源则是在运行时决定,当运行过程中真正需要时,才到资源目 阅读全文
posted @ 2011-09-20 16:32 Angelo Lee 阅读(775) 评论(0) 推荐(0)
Creating a Base Window Class in WPF
摘要:Unlike Windows Forms, there is no Visual Inheritance in WPF. Luckily you don’t need visual inheritance as you can use User Controls to get a re-usable UI. There are times, however, when you want a base Window class so you can have common functionality in all your WPF windows. To accomplish this you 阅读全文
posted @ 2011-09-19 13:42 Angelo Lee 阅读(313) 评论(0) 推荐(0)
WPF Layout Control
摘要:a. 单元格的宽度可以设置三类值绝对值:double数值加单位后缀比例值:double数值加一个星号*自动值: auto,高度将有内部的控件的高度和宽度决定。b. Grid可接受的宽度和高度的单位1in=96px1cm=(96/2.54)px1pt=(96/72) px 阅读全文
posted @ 2011-09-19 13:22 Angelo Lee 阅读(178) 评论(0) 推荐(0)
Add Project Reference vs Add DLL Reference
摘要:Add Project Reference vs Add DLL ReferenceFirst one is - Right click on project << Add Reference << Select Project in Project tabSecond one is - Right click on project << Add Reference << Select DLL in Browse tabThe correct way to do it is to add a project reference.one of th 阅读全文
posted @ 2011-09-14 10:10 Angelo Lee 阅读(229) 评论(0) 推荐(0)
PowerShel Editor
摘要:PowerGUI:免费的PowerShell编辑器==========================下载地址:http://www.powergui.org/index.jspaPowerGUI Visual Studio Extension:集成到Visual Studio中的插件==============================================下载地址:http://powerguivsx.codeplex.com/ 阅读全文
posted @ 2011-09-06 14:37 Angelo Lee 阅读(134) 评论(0) 推荐(0)
Build a PowerShell cmdlet
摘要:Link:http://www.codeproject.com/KB/powershell/PowerShell.aspx?display=MobileWhat is Windows PowerShell?Windows PowerShell (a.k.a. Monad) is a new CLI (Command Line Interface) provided by Microsoft. PowerShell is based on .NET Framework 2.0, and passes data as .NET objects.What are we going to do?In 阅读全文
posted @ 2011-09-06 13:09 Angelo Lee 阅读(399) 评论(0) 推荐(0)
如何编写自己的cmdlet
摘要:如果想自定义一个类似于PowerShell的Get-Process的cmdlet,例如Get-Proc,如何自己编写这样一个cmdlet呢?查阅msdn,其基本步骤是:1.确定cmdlet的名字:通常cmdlet都采取verb-noun的方式,确定自定义的cmdlet属于哪个cmdlet verb,并确定一个具体的名词。本例中,Get-Proc属于Verbs.Common.Get,名词则是"Proc";2. 确定cmdlet的类名,通常,以verbnoun+"command"后缀作为类名。本例中,GetProcCommand;3. 实现类:通常,自定义的 阅读全文
posted @ 2011-09-06 12:55 Angelo Lee 阅读(461) 评论(0) 推荐(0)
Best Practices for C# Exception Handling
摘要:The C# error handling knowledge pack contains preconfigured rules based on the .NETError Raising and Handling Guidelines found in Microsoft's C# Design Guidelines for Class Library Developers, .NET Best Practices for Handling Exceptions found in the .NET Framework developers guide as well as oth 阅读全文
posted @ 2011-09-05 22:41 Angelo Lee 阅读(243) 评论(0) 推荐(0)
How to change MAC address in windows 7
摘要:Today, I installed a software which I activated on a different PC before but it gave an error of MAC address check failure. It was actually checking MAC address from license. Right after that, I started online search for a utility to change MAC address in windows 7. In XP, there were free utilities 阅读全文
posted @ 2011-09-04 19:51 Angelo Lee 阅读(1455) 评论(0) 推荐(0)
Refacing Tool
摘要:CodeRush and Refactor! Pro Version 3.2.3 for Visual Studio .NET最新CodeRush and Refactor! Pro for Visual Studio .NET Version 3.2.3破解合集,采取的破解方式是修改Plugin,对DXCore框架没有做任何修改。本破解包由Danny_su提供,感谢Danny_su!!破解包下载地址:CodeRush.Crack.3.2.3Refactor.Crack.3.2.3CodeRush破解安装:1)下载官方原版CodeRush 3.2.3评估版安装程序,地址:CodeRush 3. 阅读全文
posted @ 2011-09-01 18:00 Angelo Lee 阅读(158) 评论(0) 推荐(0)