日期: 2009-10-21
类别: reference
接口如下: http://data.alexa.com/data/+wQ411en8000lA?cli=10&dat=snba&ver=7.0&cdt=alx_vw=20&wid=12206&act=00000000000&ss=1680×1050&bw=964&t=0&ttl=35371&vis=1&rq=4&url=http://www.baidu.com http://data.alexa.com/data/TCaX/0+qO000fV?cli=10&dat=snba&ver=7.0&cdt=alx_vw=20&wid=31472&act=00000000000&ss=1024×768&bw=639&t=0&ttl=4907&vis=1&rq=23&url=http://www.baidu.com http://data.alexa.com/data/ezdy01DOo100QI?cli=10&dat=snba&ver=7.0&cdt=alx_vw=20&wid=16865&act=00000000000&ss=1024×768&bw=775&t=0&ttl=1125&vis=1&rq=2&url=http://www.baidu.com http://data.alexa.com/data/+wQ411en8000lA?cli=10&dat=snba&ver=7.0&cdt=alx_vw=20&wid=12206&act=00000000000&ss=1680×1050&bw=964&t=0&ttl=35371&vis=1&rq=4&url=http://www.baidu.com 参数说明: ezdy01DOo100QI是aid “cli=10&dat=snba&ver=7.0&cdt=alx_vw=20&”这部分是固定值 wid是个随机数 act数据包含了Alexa Toobar功能的被使用情况 ss很明显是屏幕分辨率了 bw是IE窗口的宽度 t取值是0或1,和当前IE的window对象还有referrer有关 ttl是当前页面打开速度,和Site Stats中的Speed有关 vis表明IE是否显示工具条 rq是对象计数器 返回xml文档,其中<POPULARITY URL=”baidu.com/” TEXT=”9″/>中的Text为排名值。 ps: 今天查询太多,被alexa封了ip – -!
日期: 2009-10-17
类别: office二次开发
Office编程在dot Net环境中总结(Excel篇) Excel 二次开发系列(1): Excel 编成模型 Excel 二次开发系列(2): Excel 常用操作(创建、打开、读取、写入) c#中将DataSet导出到Excel
日期: 2009-10-13
类别: Linq
使用Linq遍历一个指定的目录,并生成xml。 public static XElement ToXml(this DirectoryInfo dir, SearchOption searchOption, params string[] searchPatterns) { XElement temp = new XElement("Dir", new XAttribute("Name", dir.Name), from subDir in dir.GetDirectories("*", searchOption) select subDir.ToXml(searchOption, searchPatterns), from pattern in searchPatterns.DefaultIfEmpty("*.*") from file in dir.GetFiles(pattern) select new XElement("File", file.Name)); return temp; } 使用: DirectoryInfo di = new DirectoryInfo(@"D:\"); XElement dirXml = di.ToXml(SearchOption.AllDirectories, new [...]
日期: 2009-10-11
类别: C#
1. Web.Config vs App.Config web.config is used with web applications. web.config will by default have several configurations required for the web application. It’s automatically generated when new web application created. You can have a web.config for each folder under your web application. app.config is used for windows applications. When you build the application in vs.net, [...]