摘要: After creating an assembly and before registering it to the Global Assembly Cache the first thing that is required is to assign a strong name to the a... 阅读全文
posted @ 2010-04-02 10:09 半克拉鹅卵石 阅读(220) 评论(0) 推荐(0) 编辑
摘要: --exec sp_addlinkedserver --@server='DB', --@srvproduct='',--@provider='SQLNCLI', --@datasrc='192.168.0.1', --@location=null, --@provstr=null, --@cata... 阅读全文
posted @ 2010-02-08 15:29 半克拉鹅卵石 阅读(204) 评论(0) 推荐(0) 编辑
摘要: D:\WINDOWS\system32\shutdown.exe -s start notepad D:\WINDOWS\system32\drivers\etc\hosts exist 阅读全文
posted @ 2009-10-16 15:37 半克拉鹅卵石 阅读(339) 评论(0) 推荐(0) 编辑
摘要: //获取某年某月天数function GetDays(Year,Month){return new Date(Year,Month,0).getDate(); } 阅读全文
posted @ 2008-11-26 10:45 半克拉鹅卵石 阅读(818) 评论(1) 推荐(0) 编辑
摘要: public static double GetCoorDistance(double x1, double y1, double x2, double y2) { double num = 111120.0; double num2 = num * Math.Cos((y1 + y2) * ... 阅读全文
posted @ 2008-10-15 15:32 半克拉鹅卵石 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 用正则表达式分割数组很方便:例如:一个字符串"天马山","天马山","0XFF07","310117000","地址",121.141618,31.064277的分割:Code highlighting produced by Actipro CodeHighlighter (freeware)ht... 阅读全文
posted @ 2008-09-26 11:51 半克拉鹅卵石 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 修改系统时间:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->classAPP{[StructLayout(LayoutKind.Sequential)... 阅读全文
posted @ 2008-09-26 11:46 半克拉鹅卵石 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 通过Searcher.explain(Query query, int doc)方法可以查看某个文档的得分的具体构成。 在Lucene中score简单说是由 tf * idf * boost * lengthNorm计算得出的。 tf:是查询的词在文档中出现的次数的平方根 id... 阅读全文
posted @ 2008-09-24 11:24 半克拉鹅卵石 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 搜索引擎CACHE策略研究 张俊林 timestamp:2005年10月 一.关于搜索引擎用户查询得出的结论: (1) 用户查询有很大比例的重复性。有30%到40%的用户查询是重复查询。 (2) 大多数重复的用户查询会在较短的间隔时间被再次重复访问。 (3) 大多数用户的查询是短查询,大约包... 阅读全文
posted @ 2008-09-23 13:33 半克拉鹅卵石 阅读(363) 评论(0) 推荐(0) 编辑
摘要: MSDN中对DllImportAttribute的解释是这样的:可将该属性应用于方法。DllImportAttribute 属性提供对从非托管 DLL 导出的函数进行调用所必需的信息。作为最低要求,必须提供包含入口点的 DLL 的名称。 并给了一个示例: [DllImport("KERNEL32.D... 阅读全文
posted @ 2008-09-23 11:07 半克拉鹅卵石 阅读(450) 评论(0) 推荐(0) 编辑