IC窗口
community.icburner.com

Browse by Tags

  • 解决Kigg不能进行中文查询的问题

    Kigg采用SQL Server的全文索引机制对文摘、评论进行全文索引。默认情况下,Kigg的SQL脚本设置全文索引使用默认语言English: /****** Object: FullTextIndex [PK_Story] Script Date: 04/07/2009 13:59:53 ******/ /****** Object: FullTextIndex Script Date: 04/07/2009 13:59:53 ******/ CREATE FULLTEXT INDEX ON...
    Published 2009/7/27 22:33 by 革命
    Filed under: ,
  • 快速配置Kigg底层使用Entity Framework仓储

    默认情况下,Kigg的web.config中配置底层使用LINQ to SQL仓储进行数据库操作。Kigg 2.5引入了仓储提供者概念,当前支持使用Entity Framework仓储、MySQL仓储。以下是快速配置Kigg使用Entity Framework仓储的实践: 第一步,将安装目录下SharedFiles子目录中的EF数据模型文件(CSDL、SSDL、和MSL)拷贝到App_Data目录下去。包括: DomainObjects.csdl (此文件应该只读,别修改它) DomainObjects...
  • 彻底解决Kigg内容服务和Html工具HtmlAgilityPack抓取页面中文乱码问题

    为了解决采用<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />网页上的乱码问题, 经过不断地测试和查找,对于Kigg做如下工作:修改HttpForm.cs文件中的如下方法(红色为修改部分) internal static HttpFormResponse ReadResponse(WebRequest request) { const int MaxTry...
    Published 2009/7/9 23:27 by 革命
    Filed under:
  • Kigg系列文章1 - 使用ASP.NET MVC开发一个类似Digg的应用

      过去几个星期我忙着使用ASP.NET MVC框架开发一个示范应用,很高兴最终完成了它。因此,从 DotNetSlackers.com 团队我呈现了Kigg。Kigg主要使用如下技术开发: 视图使用的是常规的Web Forms。 使用LINQ to SQL进行数据建模。 使用ASP.NET Ajax做Ajax操作。 使用VSTest和NUnit做单元测试。 使用Rhino Mock模拟测试环境。 开发Kigg期间,我们主要目标是尽可能简单,不去考虑Ioc/DI、View Engine...
    Published 2009/6/10 1:37 by 革命
    Filed under: ,
  • 如何有效地使用DotNetShoutout

    在此与 DotNetShoutout 用户分享一些提示,或许您已经知道了,如果您不知道那么请享用吧。 网摘Feed 如果您订阅了我们已发布 published 或将发布 upcoming 网摘feed,您会注意到,点击网摘的链接标题不会带您到DotNetShoutout新闻页面,而是直接带您到网摘源文章内容页面,从而节省了您不必要的点击。 跟随网摘摘要,您会看到许多“顶”Shout it/或“踩”Mute it,以及一个小的页面预览,如果您想要“顶”此网摘,则点击“Shout it”来增加赞成票次数...
    Published 2009/6/10 1:34 by 革命
    Filed under: ,
  • ASP.NET MVC RC1, ValidateInput, A potential dangerous request and the Pitfall

    In the latest release of ASP.NET MVC, a new attribute ValidateInput is introduced which is same as Web Forms ValidateRequest page directive, certainly a good choice. Phil Haack blogged it , so as Steven Smith and also Nick Berarrdi . But it starts to...
    Published 2009/6/10 1:33 by 革命
    Filed under: ,
  • 100% Unit Testable Linq To Sql Repository

    In this post, I will show you how you can architect your Linq To Sql repository which will have 100% code coverage. I will use our favorite Northwind database along with my ongoing UnityCommonServiceLocatorMVC project. First, lets add a Linq To Sql diagram...
    Published 2009/6/10 1:31 by 革命
    Filed under: ,
  • Unit Testable Configuration Manager

    If you are a TDD purist, you should know that accessing file system in Unit Test is violating the rule. But in our application, our infrastructural code often requires to access the configuration values form web.config/app.config. In this post, I will...
    Published 2009/6/10 1:27 by 革命
    Filed under: ,
  • Use Event Aggregator to make your application more extensible

    Recently, in KiGG / DotNetShoutout we have integrated Twitter , nothing complex, very basic thing like when a story is submitted or appears in the front page it will broadcast in Twitter and like our feed it will post the short url of the original story...
    Published 2009/6/10 1:26 by 革命
    Filed under: ,