Loading

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页
摘要: 有图有真相 ps:上图可以看到中文分词成功,搜索也命中了; 说明:如果想好好学Lucene建议看Lucene in action 2nd version,另外2.9.2中对以前很多方法已经废弃,旧代码就别看了; 下面是代码: 建立索引 public static void IndexFile(this IndexWriter writer, IO.FileInfo fil... 阅读全文
posted @ 2011-08-26 11:59 today4king 阅读(1023) 评论(2) 推荐(0) 编辑
摘要: (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.10.0")这里90对应2008应用如获取解决方案目录:string solutionDirectory = ((EnvDTE.DTE)System.Runtime... 阅读全文
posted @ 2011-08-25 14:13 today4king 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 看了新闻:http://news.cnblogs.com/n/112053/有点想法,请大家怕砖讨论。 关于重构的几个观点: 能跑的就是好代码,这个反对Bob看到代码就clean的观点; 明确重构的目的; 无脑的先从解决重复代码入手; 如果老代码不是过程的而是OO的,那happy了倒杯咖啡慢慢理解,记下不理解或者不认同的地方; 从最难的地方入手,这是一个习惯,往往在解决这个问题的时候对项目理解更... 阅读全文
posted @ 2011-08-16 15:46 today4king 阅读(1888) 评论(4) 推荐(1) 编辑
摘要: 通常在服务器端大家都已经做了很多缓存的工作,ASP.NET CACHE也好MemeryCache也好却总是忽略了客户端缓存。 因为大家都知道不管哪个client都会缓存已经访问过的站点,但是浏览器缓存时间都是短暂的,所以最好是自定义延长浏览器缓存。 这个时候就需要修改Http头信息了,头信息中有个字段: Cache-Control:no-cache 有很多办法可以修改头字段,比较方便通用的就是在w... 阅读全文
posted @ 2011-08-16 11:50 today4king 阅读(1725) 评论(0) 推荐(0) 编辑
摘要: The Joel Test Do you use source control? Can you make a build in one step? Do you make daily builds? Do you have a bug database? Do you fix bugs before writing new code? Do you have an up-to-date sche... 阅读全文
posted @ 2011-08-15 16:42 today4king 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Everybody know its really slowly to use VSComplie usally like F6, but really fast of bath build which use msbuilder directly! But after some days run the bath file agina and again its boring and not c... 阅读全文
posted @ 2011-08-15 16:12 today4king 阅读(291) 评论(0) 推荐(1) 编辑
摘要: You searched for 'linq to entities does not recognize the method 'system.linq.iqueryable' "By design, LINQ to Entities requires the whole LINQ query expression to be translated to a server query. Only... 阅读全文
posted @ 2011-08-11 15:32 today4king 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Unity includes six lifetime managers that you can use directly in your code, but you can create your own lifetime managers to implement specific lifetime scenarios. Unity includes the following lifet... 阅读全文
posted @ 2011-08-11 10:47 today4king 阅读(1384) 评论(0) 推荐(0) 编辑
摘要: 因为在园子里没有查到相关文章,所以发到首页让大家拍砖。 起因:每次跑xUnit总是第一个测试需要十几秒的执行时间而其他最久0.5s都不到,我是个懒人发现这个问题的时候也没有去多想还是做手上的东西,但是心里的刺埋下了。(这里对xUnit说明下老鸟绕过,每个测试都是独立的对象,而我这个resharper的计算也是只计算每个实例的创建执行时间,因为xunit里创建实例的构造函数就是通常说的setup)... 阅读全文
posted @ 2011-08-10 13:46 today4king 阅读(3104) 评论(12) 推荐(2) 编辑
摘要: 先上图 途中目录【Areas】【Admin】名字随便。 目录说明:【Admin】代表当前area,里面就像默认的MVC模板创建的网站一样放你的目录【Controllers】【Views】; 配置说明:需要在【Views】下放MVC的config,最简单的办法就是新建一个MVC项目从【Views】里拷贝一个过来。每个Area中的Views都需一个单独的Config。 配置Area类:{AdminAr... 阅读全文
posted @ 2011-08-04 18:21 today4king 阅读(689) 评论(2) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页