代码改变世界

mdeditor

2013-09-11 15:26 by leo.wl2020, 566 阅读, 0 推荐, 收藏, 编辑
摘要:*在线地址:*http://ghosertblog.github.io/mdeditor/# Markdown 语法简明手册### 1. 使用 * 和 ** 表示斜体和粗体示例:这是 *斜体*,这是 **粗体**。### 2. 使用 === 表示一级标题,使用 --- 表示二级标题示例:这是一个一级标题============================这是一个二级标题--------------------------------------------------### 这是一个三级标题你也可以选择在行首加井号表示不同级别的标题,例如:# H1, ## H2, ### H3。### 3 阅读全文

Research Scientists and Engineers

2013-04-26 18:34 by leo.wl2020, 223 阅读, 0 推荐, 收藏, 编辑
摘要:Research Scientists and Engineershttp://research.google.com/people/jeff/Jeffrey DeanGoogle FellowI joined Google in mid-1999, and I'm currently a Google Fellow in the Systems Infrastructure Group. My areas of interest include large-scale distributed systems, performance monitoring, compression t 阅读全文

CacheStrategy缓存

2013-04-18 11:06 by leo.wl2020, 786 阅读, 0 推荐, 收藏, 编辑
摘要:提高应用服务器性能,针对经常不变内容进行缓存. 1.CacheStrategy: using System; using System.Web.Caching; /// <summary> /// CacheStrategy /// </summary> public class CacheStrategy : ICacheStrat... 阅读全文

MEF 和 MAF

2013-03-15 18:30 by leo.wl2020, 791 阅读, 1 推荐, 收藏, 编辑
摘要:今天在MSDN上看了一下微软这俩个可扩展框架,微软技术高手真很有才! MEF 和 MAF区别: 早期的 .NET Framework 版本引入了 Managed Add-in Framework (MAF),旨在使应用程序能够隔离和管理扩展。 MAF 的重点放在比 MEF 稍高的级别,它集中于扩展隔离以及程序集的加载和卸载,而 MEF 则集中于可发现性、扩展性和可移植性。 这两个框架可以顺利... 阅读全文

Asp.net Mvc中扩展ActionFilterAttribute修改Http Cache Header

2013-03-05 16:06 by leo.wl2020, 770 阅读, 0 推荐, 收藏, 编辑
摘要:在asp.net mvc3中扩展ActionFilterAttribute实现Http Cache Header修改ActionFilterAttribute 是 System.Web.Mvc.ActionFilterAttribute来自于:System.Web.Mvc.dll#region Assembly System.Web.Mvc.dll, v4.0.30319// C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll#endregionusing System;nam 阅读全文

正能量

2013-02-01 14:39 by leo.wl2020, 1046 阅读, 0 推荐, 收藏, 编辑
摘要:* 1.01的365次方=37.78343433289 >>>1; * 1的365次方=1; * 0.99的365次方= 0.02551796445229 <<<1; * 1.01=1+0.01,也就是每天进步一点,1.01的365次方也就是说你每天进步一点,一年以后,你将进步很大,远远大于“1”; * 1是指原地踏步,一年以... 阅读全文

关于为什么不推荐使用用户定义表类型的说明

2012-09-21 14:31 by leo.wl2020, 333 阅读, 0 推荐, 收藏, 编辑
摘要:对于用户定义表类型,它实际上并不能提高性能,会觉得它看起来高效的原因,是因为在程序中使用这个种类型的参数的时候,可以把 DataTable 做为参数直接传递给存储过程(看起来非常简洁)但实际上去Trace其行为,会发现其实它相当于把 DataTable 的值包装成了 insert 语句,而不是真正的把数据做为块传给存储过程DBA这边的建议是 1.对于少量数据,我们建议拼成 xml ,存储过程里面做解析(附件有一个开发那边提供的测试,对于少量数据,不足1万条,xml解析的性能并不差). 2.对于大量数据,我们建立使用SqlBulkInsert 来处理.using System;using Sys 阅读全文

What is the single most influential book every programmer should read?

2012-08-28 09:53 by leo.wl2020, 293 阅读, 0 推荐, 收藏, 编辑
摘要:Code Complete(2nd edition) by Steve McConnellThe Pragmatic ProgrammerStructure and Interpretation of Computer ProgramsThe C Programming Languageby Kernighan and RitchieIntroduction to Algorithmsby Cormen, Leiserson, Rivest & SteinDesign Patternsby the Gang of FourRefactoring: Improving the Desig 阅读全文

.NET中一些常用的基本接口IComparable,IComparer,IEnumerable,IEnumerator,IComparable<T>,IList,ICollection,IQueryable,IDictionary

2012-08-03 16:41 by leo.wl2020, 946 阅读, 1 推荐, 收藏, 编辑
摘要:NET中一些常用的基本接口IComparable,IComparer,IEnumerable,IEnumerator,IComparable<T>,IList,ICollection,IQueryable,IDictionary等等,实现自定义类型的foreach ,实现自定义类型的比较,以及索引器等,到MSDN上可以看到大量的资料。 我的代码: using System;using... 阅读全文

程序员必须遵守的编程原则

2012-07-25 14:45 by leo.wl2020, 359 阅读, 0 推荐, 收藏, 编辑
摘要:Ø 不要自我重复(DRY - Don’t repeat yourself)—— 这也许是在编程开发中最最基本的一个信条,就是要告诉你不要出现重复的代码。我们很多的编程结构之所以存在,就是为了帮助我们消除重复(例如,循环语句,函数,类,等等)。一旦程序里开始有重复现象的出现(例如很长的表达式、一大堆的语句,但都是为了表达相同的概念),你就需要对代码进行一次新的提炼,抽象。 Ø 提炼原则(Abstr... 阅读全文