自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(78)
  • 资源 (1)
  • 收藏
  • 关注

原创 C# Run a console application without Window

<br />// This snippet needs the "System.Diagnostics"<br />// library<br /> <br />// Application path and command line arguments<br />string ApplicationPath = "C://example.exe";<br />string ApplicationArguments = "-c -x";<br /> <br />// Create

2010-09-14 14:12:00 705

原创 Log4net - How to add a converter into log4net.Util.PatternString

<br />Here is the sample, <br />Comment:<br />Please note the red text "Citi.Eqtg.Grid.Utilities.Log4Net+Log4NetOutputDir", the Log4NetOutputDir is inner class of Log4Net, we need use "+" character to connect Log4Net and Log4NetOutputDir<br /><br /><br /><

2010-09-03 20:09:00 1014

原创 Serialization

Definition of SerializationSerializationis the process of taking an object and converting it to a format inwhich it can be transported across a network or persisted to a storagelocation. The storage location could be as simple as using a file or a

2010-08-31 14:37:00 637

转载 A Brief Introduction to the log4net logging library, using C#

Source from CodeProjectA Brief Introduction to the log4net logging library, using C# - Part 1A Brief Introduction to the log4net logging library, using C# - Part 2

2010-08-30 17:59:00 501

原创 How to configure default browser in registry

Start the registry editor (regedit.exe)Move to HKEY_CLASSES_ROOT/httpExpand the tree and move to HKEY_CLASSES_ROOT/http/shell/open/command,double click on default and set the string to the command you wish to run forInternet addresses, for example<br /

2010-08-25 09:46:00 756

原创 Limit of Named Pipe connections for single workstation

<br />This limit on the number of network connections to named pipes from asingle client is imposed by the MaxMpxCt registry value for theLanmanServer service on the Windows NT Server.<br /> Registry path:<br /><br />HKEY_LOCAL_MACHINE/SYSTEM<br />

2010-08-18 17:11:00 472

原创 Warning C4819 - Troubleshooting

You may meet below errors before:error C2220: warning treated as error - no 'object' file generated warning C4819: The file contains a character that cannot berepresented in the current code page (936). Save the file in Unicodeformat to prevent data l

2010-08-17 17:01:00 1310

原创 Named Pipe

<br />Named Pipe is full-duplex.<br />http://blogs.msdn.com/b/bclteam/archive/2006/12/07/introducing-pipes-justin-van-patten.aspx<br />http://msdn.microsoft.com/en-us/magazine/cc163441.aspx#S7

2010-08-17 14:11:00 750

转载 CLR -- Loader

<br />The CLR loader is responsible for loading and initializing assemblies,modules, resources, and types. The CLR loader loads and initializes as little asit can get away with. Unlike the Win32 loader, the CLR loader does not resolveand automaticall

2010-08-06 16:11:00 972

原创 Multiple Processes

<br />http://www.codeproject.com/KB/DLL/MultiProcess.aspx

2010-08-02 15:33:00 536

原创 Understanding Assembly, Application, AppDomain and ApplicationContext

<br />1.Assemblies, Threads, and AppDomains<br />http://www.codeproject.com/kb/books/1893115593_6.aspx

2010-08-02 15:07:00 469

原创 Spring.Net -- 如何使用用户自定义类型转换器 (Custom Type Converter )

<br />有时我们需要在Spring.net创建对象时,自动将spring.xml配置中string类型转换为指定类型。<br />例如:<br />我们有如下两个个自定义类,其中ExoticType类在DependsOnExoticType类中被作为属性使用<br />publicclass ExoticType<br />{<br />    privatestring name;<br />        <br />    public ExoticType(string name)<br />

2010-07-07 18:19:00 1826

原创 Tibco EMS -- Invalid destination exception with TIBCO EMS

<br />The first error message that says what caused the problem is:<br />"Not allowed to create destination"<br /><br />Youare receiving messages on a temporary queue that doesn't exists whenthe process starts so the process must create a new o

2010-06-21 14:31:00 1289

原创 SOA related concepts

<br />1. WSDL (Windows service definition language)<br />http://www.w3.org/TR/wsdl<br /> <br />2. IPC (Inter-Process Communication)<br />http://en.wikipedia.org/wiki/Inter-process_communication<br /> <br />3. MSMQ (Microsft Message Queuing)<br />http://msd

2010-06-13 11:13:00 440

原创 Manager Pattern

<br />Object manager class is to manage (get/update/delete/control) a series of objects.<br /> <br />Reference:<br />http://support.quest3d.com/index.php?title=Tutorials/Object_Oriented_Programming/Manager_Pattern

2010-06-02 13:34:00 441

原创 C# Issues and Solutions -- Method get_XXX from assembly YYYY does not have an implementation

This can occur if you have an interface in one assembly and its implementation in another, and the implementation assembly was built against a different version of the interface.If you want to t

2010-04-30 14:31:00 3033

原创 MSBuild .Targets File

.Targets File is automatically imported into VS project file to simplify maintenace and readability. Its very useful when you need change the reference binaries path frequently.The following is

2010-04-30 09:49:00 994

原创 DB Skills -- Autocommit

Sybase: 1. Links 2. A way to avoid autocommit without setting optoin "chaineddeclare cursor_o cursor forselect distinct yld_id from tempdb..yield_listgoopen cursor_odeclare @yld

2010-04-26 13:40:00 461

原创 Inside SQL Server 2005 -- T-SQL Querying read note

TBD

2010-04-22 18:08:00 487

原创 C# Threading Safety using Lock

Some tips about lock and multi-threading safety:I. Good example for Singleton threading safety instancehttp://en.csharp-online.net/Singleton_design_pattern:_Thread-safe_Singleton II. Understan

2010-04-22 18:05:00 452

原创 XP下安装IIS6.0

首先在运行中输入“c:/windows/inf/sysoc.inf”,系统会自动使用记事本打开sysoc.inf这个文件。 在sysoc.inf中找到“[Components]”这一段,找到类似“iis=iis.dll,OcEntry,iis.inf,,7”的一行字,把这一行替换为“iis=iis2.dll,OcEntry,iis2.inf,,7”。之后保存并关闭。 在iis6.0安装

2010-02-27 10:49:00 516

原创 Windows System Tool -- Windows Sysinternals Tools

Link: http://technet.microsoft.com/en-us/sysinternals/default.aspx

2010-01-07 11:47:00 713

原创 UI Design Related Sites Collection

1. http://www.eicodesign.com/index.htmeico design 为客户提供品牌化的界面解决方案,服务平台涵盖了掌上移动设备、车载系统、桌面平台、互联网平台以及电子消费类产品等,为客户提供从品牌设计、概念设计、用户体验、交互设计、图形界面视觉设计到最终的产品化设计。   2. http://ui-patterns.comUI-Patterns.co

2009-12-29 16:45:00 503

原创 Windows Service 经验总结 1 --- Service Control Manager

1. Service Startuphttp://msdn.microsoft.com/en-us/library/ms685990(VS.85).aspx 2. A way to prolong start time limit of Windows services in Service Control ManagerWhen a service fails to send

2009-12-28 13:17:00 4152

原创 Good Technology Sites Collection

1. Scott Hanselmanhttp://www.hanselman.com( A tool to check out what .Net version you are using - http://www.hanselman.com/smallestdotnet/ )

2009-12-28 13:10:00 406

原创 Asp.Net 学习 01 --- 基本知识及学习资料准备

1. 为什么要学习Asp.Net ?作为互联网时代的IT人,一定要熟悉乃至精通一门Web开发技术,对照比较了几种主流Web开发语言的优缺点(http://www.powereasy.net/HelpYou/Knowledge/CMS/6735.html),加之自己有一定的.Net基础,决定主要学习Asp.net。 2. 为什么相对PHP和JSP而言,采用Asp.net的网站还是很少?

2009-12-27 16:59:00 695

转载 How Important is Learning? That Depends on You.

After my last article, Five Things I Do Every Day, several friends told me about their own priorities. The ones I heard most were to keep learning and be charitable.Well, yes and no. I consider

2009-12-18 14:05:00 755

原创 Design Pattern related links Collection

Design Patterns: Solidify Your C# Application Architecture with Design Patterns(Important Link) http://msdn.microsoft.com/en-us/magazine/cc301852.aspxExploring the Singleton Design Pattern(Important L

2009-12-17 15:16:00 632

原创 Apprentice II -- Material Collection

I. First Season: http://www.tudou.com/playlist/playindex.do?lid=2248475&iid=7038153&cid=22 II. Second Season:http://www.tudou.com/programs/view/MRnewUtSbCQ/

2009-12-13 22:37:00 414

转载 做自己性格的觉者

      CCTV的《心理访谈》节目曾经做了一期“性格决定命运”的节目,我是被采访对象,通过展示自己的生活与职业工作方式来呈现性格(或者人格)在中间的作用。其实很多人都知道当一个人有严重精神问题的时候,她所做的事情,无论是自我强迫、精神分裂,还是幻想狂、思维飘逸,都是没有健全的自我约制与判断能力的,因此他无法为他所进行的行为负真正的责任,就是送他进监狱也不能改造,除非对他进行适当的治疗。但是大多

2009-12-13 22:06:00 532

转载 知识就这样悄悄过时

      我们有两位头脑风暴节目的学者嘉宾,三四年前是我们最棒的评论员,他们经常看新书、翻译新书、出版新书,见解新锐,反应敏捷,敢说敢当,我对他们的见识非常尊敬,对于他们个人也非常喜爱。但三四年过去,现在再上台来的时候,虽则都是担任着比过去崇高的行政职务,但半死不活、言之无物、陈词滥调,在我看来简直就不是同一个人啊。有一位知名的企业高管,经常到处演讲,但我发现他在不同地方和在不同时间讲的几乎是同

2009-12-13 22:02:00 516

原创 Apprentice I -- Introduction to Apprentice

Apprentice中文译为“学徒”,是一个电视系列有奖竞赛节目,一般有有志商务青年报名,经过多轮赛选进入电视直播竞赛环节,优胜者将获得成为知名企业学徒(一般被高薪聘为雇员)的机会。在美国和英国都成功举办过这样的活动,和我国的“赢在中国”有许多相似之处。 参考链接:http://en.wikipedia.org/wiki/The_Apprentice_(US_TV_Series)h

2009-12-10 22:56:00 466

原创 AOP初探

AOP(Aspect Object Programming)面向切面编程,通俗的讲就是将通用的逻辑和逻辑集中的实体类分离开来,以便将通用的逻辑应用到多个实体类中,这些通用的逻辑,我们称之为切面(advice)。例如,银行的ATM机是一个实体对象,我们可以用此查询余额、提取存款,但是我们使用这个对象都要进行权限验证,我们可以再切面层增加权限验证的逻辑,然后将此绑定到ATM对象上。现在流行的AOP

2009-08-09 21:39:00 467

转载 浅析.Net下的AppDomain编程

转自:http://hi.baidu.com/wangzhe1945/blog/item/5ccd3fa46462f8f09052eeb4.html 我们知道,进程是操作系统用于隔离众多正在运行的应用程序的机制。在.Net之前,每一个应用程序被加载到单独的进程中,并为该进程指定私有的虚拟内存。进程不能直接访问物理内存,操作系统通过其它的处理把这些虚拟内存映射到物理内存或IO设备的某个区

2009-06-22 22:28:00 543

转载 .NET与XML解析方法

在程序中访问并操作XML文件一般有两种模型:流模型和DOM(文档对象模型)。流模型中有两种变体——“推”模型和“拉”模型。 “推”模型也就是常说的SAX,SAX是一种靠事件驱动的模型。它每发现一个节点就用“推”模型引发一个事件,而我们必须编写这些事件的处理程序,很麻烦。.NET中使用的是基于“拉”模型的实现方案。 “拉”模型在遍历文档时会把感兴趣的文档部分从读取器中拉出,不需要引发事件,允许我们以

2009-05-24 16:38:00 3043

转载 解决IIS下UTF-8文件报错乱码的问题

解决IIS下UTF-8文件报错乱码的问题  原因:  你的网站是utf-8编码,但iis的错误信息输出默认使用的是gb2312编码。导致iis出现运行时错误的时候显示的页面是乱码。   解决办法:  [办法1]  自己处理错误,不让iis来处理。  在所有可能出错的地方,都用类似下面的方式来捕捉。  On Error Resume Next  Err.Raise 6 这行是可能出错的代码  If

2009-05-04 21:00:00 5298

原创 VC TroubleShooting

A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ http://support.microsoft.com/kb/148652

2009-03-25 11:24:00 499

转载 mscorwks.dll在.Net中的地位以及在.Net代码保护方面的应用

 mscorwks.dll是dotNet的核心文件,尤其是在net2.0中,以前分散的功能都集中到了这个dll中。net1.1中,还有一个文件mscorsvr.dll 和 mscorwks.dll 是同等地位的。它们分别对应于 windows service程序以及 desktop 程序。在net2.0中,它们都统一到了 mscorwks。dll中。同时在net2.0中mscorsn.dll

2009-02-27 11:42:00 491

Unix command in Windows

These windows exe files provides the same functions as usual Unix command, we can use powerful Unix command (very useful for text hanlding) in Windows now.

2010-09-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除