摘要:
如果您出现以下错误,本文可能对你有帮助:Error 1:System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[CNBlogs.Zzk.Tests.BClass]' to type 'System.Collections.Generic.List`1[CNBlogs.Zzk.Tests.AClass]'Error 2:System.InvalidCastException: Unable to cast object of type 阅读全文
摘要:
在andrewcx的日志中有相应的教程,但是可能因为豆瓣页面改版了现在已经不能抓取,我把其中的代码重新写了一遍,如果有firefox请先进入红心页面(确保已经登录不然也进不去)请打开Web开发工具中的暂存器然后黏贴代码进去执行就可以了,结果会在copyright的地方显示。 抓取结果 格式为“歌曲名-作者-专辑” 代码: var tpage = 6; var page = 1; var n = 0; var songNum=0; $("div.copyright").html(""); for(page=1;page<=tpage;page++) 阅读全文
摘要:
原文: The Entity Framework creates proxies for POCO entities if the classes meet the requirements described below. POCO entities can have proxy objects that support change tracking or lazy loading. You... 阅读全文
摘要:
由未收录词A、B、C等组成的任意组合在搜索时没有结果的问题。 解决方案很简单在设置中UnknownWordIdentify选项置为False就可以了。 下面是Pangu代码中处理段: if (count == 0) { if (_Options.UnknownWordIdentify) { WordInfo wi = new WordIn... 阅读全文
摘要:
The Archive of Interesting Code The Archive of Interesting Code is an (ambitious) effort on my part to research, intuit, and code up every interesting algorithm and data structure ever invented. In d... 阅读全文