<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/amzcode" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/amzcode" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 02 Aug 2011 14:37:12 GMT</lastBuildDate><title>J1e inside</title><description>又一个新博客,这回真是自己的博客了~~</description><image><url>http://www.feedsky.com/feed/amzcode/sc/gif</url><title>J1e inside</title><link>http://blog.jianmiao.info</link></image><link>http://blog.jianmiao.info</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Tue, 02 Aug 2011 14:37:12 GMT</pubDate><item><title>Reloaded</title><link>http://blog.jianmiao.info/2011/08/reloaded/</link><content:encoded>&lt;p&gt;GFW终于看不上我了～～&lt;/p&gt;
&lt;p&gt;哥复活了！&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863032/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/08/reloaded/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2011/08/reloaded/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;GFW终于看不上我了～～&lt;/p&gt;
&lt;p&gt;哥复活了！&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863032/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/08/reloaded/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>生活</category><pubDate>Tue, 02 Aug 2011 22:37:12 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2011/08/reloaded/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/?p=443</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2011/08/reloaded/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863032/6357494</fs:itemid></item><item><title>本站已被GFW认证</title><link>http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/</link><content:encoded>&lt;p&gt;RT。&lt;br /&gt;
草拟大业！&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863033/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;RT。&lt;br /&gt;
草拟大业！&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863033/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>未分类</category><pubDate>Sun, 12 Jun 2011 17:05:21 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/?p=377</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2011/06/%e6%9c%ac%e7%ab%99%e5%b7%b2%e8%a2%abgfw%e8%ae%a4%e8%af%81/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863033/6357494</fs:itemid></item><item><title>VSTO 2010 部署</title><link>http://blog.jianmiao.info/2011/03/vsto-2010-deploy/</link><content:encoded>&lt;p&gt;在Visual Studio 2010中部署VSTO那是相当的容易.&lt;/p&gt;
&lt;p&gt;在此记录的方法可以保证对方机器上的VSTO插件能够正常部署与运行.&lt;/p&gt;
&lt;p&gt;首先, 请开发完毕你的插件&amp;#8230; 这是一句废话&lt;/p&gt;
&lt;p&gt;然后就是部署:&lt;/p&gt;
&lt;p&gt;1. 右键点击Project文件, 选择Properties&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image.png&quot;&gt;&lt;img style=&quot;background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;&quot; title=&quot;image&quot; src=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image_thumb.png&quot; alt=&quot;image&quot; width=&quot;319&quot; height=&quot;484&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. 选择Publish,在随后的操作中如图进行&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image1.png&quot;&gt;&lt;img style=&quot;background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;&quot; title=&quot;image&quot; src=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image_thumb1.png&quot; alt=&quot;image&quot; width=&quot;644&quot; height=&quot;363&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;在Prerequisites列表中勾选插件对应的.NET Framework, 例如我图中的.NET Framework 4 Cilent Profile.&lt;/p&gt;
&lt;p&gt;另外, 还需要勾选Microsoft Visual Studio 2010 Tools for Office Runtime&lt;/p&gt;
&lt;p&gt;最后还有个比较重要运行时组件, 但是默认不在此列表中, 因为VS2010 RTM发布时, 该组件尚未RTM, 那就是Microsoft Office 2010 Primary Interop Assemblies (PIA).&lt;/p&gt;
&lt;p&gt;要想将2010 PIA添加进入Prerequisites列表, 请下载&lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5d57c998-b630-4f38-afaa-b79747a3da06&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Microsoft Office 2010 Primary Interop Assemblies (PIA) Bootstrapper Installer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;安装后再启动VS2010就能看到了&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image2.png&quot;&gt;&lt;img style=&quot;background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;&quot; title=&quot;image&quot; src=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image_thumb2.png&quot; alt=&quot;image&quot; width=&quot;552&quot; height=&quot;243&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;勾选这3个必须的组件之后, 还可以保持默认勾选的Windows Installer 3.1, 以保证目标机器中缺少WI3.1时能正常安装.&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863034/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/03/vsto-2010-deploy/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2011/03/vsto-2010-deploy/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;在Visual Studio 2010中部署VSTO那是相当的容易.&lt;/p&gt;
&lt;p&gt;在此记录的方法可以保证对方机器上的VSTO插件能够正常部署与运行.&lt;/p&gt;
&lt;p&gt;首先, 请开发完毕你的插件&amp;#8230; 这是一句废话&lt;/p&gt;
&lt;p&gt;然后就是部署:&lt;/p&gt;
&lt;p&gt;1. 右键点击Project文件, 选择Properties&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image.png&quot;&gt;&lt;img style=&quot;background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;&quot; title=&quot;image&quot; src=&quot;http://www.amzcode.com/blog/wp-content/uploads/2011/03/image_thumb.png&quot; alt=&quot;image&quot; width=&quot;319&quot; height=&quot;484&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. 选择Publish,[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2011/03/vsto-2010-deploy/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863034/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/03/vsto-2010-deploy/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>.NET</category><category>VS2010</category><category>VSTO</category><pubDate>Thu, 17 Mar 2011 15:52:09 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2011/03/vsto-2010-deploy/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2011/03/vsto-2010-%e9%83%a8%e7%bd%b2/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2011/03/vsto-2010-deploy/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863034/6357494</fs:itemid></item><item><title>使用Javascript进行form的Post</title><link>http://blog.jianmiao.info/2011/02/js-form-submit/</link><content:encoded>&lt;p&gt;半年来写东西写得少了也许是懒了吧.&lt;/p&gt;
&lt;p&gt;最近彻底的投入了Web开发当中, 也是终于开始正式接触JS了. &lt;/p&gt;
&lt;p&gt;以前大学的时候学习ASP.NET,几乎没写过JS,因为控件很好很强大,基本不需要用到JS, 即使不好实现的东西也想着办法在避免写JS代码.当时的想法是ASP.NET很好很强大, 还学什么JS.&lt;/p&gt;
&lt;p&gt;可是自从接触了PHP,才发觉ASP.NET控件是一种很臃肿很不方便的东西. 不但为你带来不了多少便利性,反而会让人毫无Web开发的基础知识. 什么是form都搞不清楚,因为ASP.NET的WebForm都已经为你封装好了,你双击按钮后在后台自动生成的事件代码中心编写相应代码即可, 你所需要的数据都可以用形如this.txtInput.Text的语句中拿到. &lt;/p&gt;
&lt;p&gt;这就是我认为学习ASP.NET作为Web开发入门的最大的弊端. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font size=&quot;4&quot;&gt;不过&lt;/font&gt;&lt;/strong&gt;现在有了ASP.NET MVC,这种情况就有所改变了, 不使用任何控件,完全使用web tags就能进行开发,当然,在页面(View)中需要加入部分代码.&lt;/p&gt;
&lt;p&gt;这里不谈MVC的学习, 想学MVC可以参考我一个朋友写的系列文章: &lt;a href=&quot;http://www.cnblogs.com/P_Chou/archive/2010/11/01/details-asp-net-mvc-content.html&quot;&gt;深入理解ASP.NET MVC&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;进入正题, 说我接触到的有关Form的submit.&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;form&amp;gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;test&amp;quot; /&amp;gt;
    &amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;
&amp;lt;/form&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;这件就能够提交form的数据了,如果你不希望使用按钮而是链接来提交可以在链接上加入JS代码&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;form name=&amp;quot;newform&amp;quot;&amp;gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;test&amp;quot; /&amp;gt;
    &amp;lt;a href=&amp;quot;#&amp;quot; onclick=&amp;quot;submitform();&amp;quot; /&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
    function submitform(){
	    var thisform = document.getElementById('newform');
		thisform.submit();
	}
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;上面就是一个最简单的使用JS提交form的例子, 你可以在JS中加入判断来决定是否执行form的submit. 当然你也可以像我一样直接提交这个form.&lt;/p&gt;
&lt;p&gt;不过在有些时候, 我们在提交数据的时候却无法编写一个form, 比如说当前的form是提交到&amp;quot;a.php&amp;quot;, 可是你希望点击另外个submit按钮的时候是提交到&amp;quot;b.php&amp;quot;. 这怎么办呢? 我们当然可以使用JS来实现.&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: vb;&quot;&gt;&amp;lt;form action=&amp;quot;a.php&amp;quot; method=&amp;quot;get&amp;quot; name=&amp;quot;newform&amp;quot; &amp;gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;test&amp;quot; /&amp;gt;
	&amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;
	&amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;submitform();&amp;quot; /&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
    function submitform(){
        var data = document.getElementById('test').value;

        var myForm = document.createElement(&amp;quot;form&amp;quot;);
        myForm.method = &amp;quot;post&amp;quot;;
        myForm.action = &amp;quot;b.php&amp;quot;

        var myInput = document.createElement(&amp;quot;input&amp;quot;);
        myInput.setAttribute(&amp;quot;name&amp;quot;, &amp;quot;test&amp;quot;);
        myInput.setAttribute(&amp;quot;value&amp;quot;, data);
        myForm.appendChild(myInput);

        document.body.appendChild(myForm);
        myForm.submit();
        document.body.removeChild(myForm);
	}
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: vb;&quot;&gt;代码很简单, 用JS来构造一个form后把相应的数据组织好, 加入到body之中,submit之后再从body中移除掉这个form&lt;/pre&gt;
&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863035/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/02/js-form-submit/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2011/02/js-form-submit/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>&lt;p&gt;半年来写东西写得少了也许是懒了吧.&lt;/p&gt;
&lt;p&gt;最近彻底的投入了Web开发当中, 也是终于开始正式接触JS了. &lt;/p&gt;
&lt;p&gt;以前大学的时候学习ASP.NET,几乎没写过JS,因为控件很好很强大,基本不需要用到JS, 即使不好实现的东西也想着办法在避免写JS代码.当时的想法是ASP.NET很好很强大, 还学什么JS.&lt;/p&gt;
&lt;p&gt;可是[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2011/02/js-form-submit/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863035/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2011/02/js-form-submit/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Javascript</category><category>Web</category><pubDate>Sat, 19 Feb 2011 16:40:37 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2011/02/js-form-submit/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2011/02/js-form-submit/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2011/02/js-form-submit/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863035/6357494</fs:itemid></item><item><title>写在2010末</title><link>http://blog.jianmiao.info/2010/12/goodbye-2010/</link><content:encoded>&lt;p&gt;今天是2010年的最后一天,还有一个多小时就到2011年了, 又一年过去了, 应该对这一年进行总结.&lt;/p&gt;
&lt;p&gt;这一年的事情也不少, 比如有了这个域名,有了这个博客, 搞了一段时间的PHP, 草草学习Python, 换了份工作, 学习以及巩固了现在的吃饭技能.NET, 沉迷微博,沉迷GR~~&lt;/p&gt;
&lt;p&gt;当然互联网也发生了很多事情,比如谷歌退出中国了,人民也能搜索了,腾讯大战360了,刚刚劲爆的新闻金山揭露360扫隐私了~~&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;margin: 2px 7px 2px 0px&quot; alt=&quot;元旦前夜！&quot; src=&quot;http://www.google.com/logos/2010/newyear11-hp.jpg&quot; /&gt;&lt;/p&gt;
&lt;p&gt;新年快乐! &lt;/p&gt;
&lt;p&gt;新年实现老婆的和自己的愿望!&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863036/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/12/goodbye-2010/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/12/goodbye-2010/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;今天是2010年的最后一天,还有一个多小时就到2011年了, 又一年过去了, 应该对这一年进行总结.&lt;/p&gt;
&lt;p&gt;这一年的事情也不少, 比如有了这个域名,有了这个博客, 搞了一段时间的PHP, 草草学习Python, 换了份工作, 学习以及巩固了现在的吃饭技能.NET, 沉迷微博,沉迷GR~~&lt;/p&gt;
&lt;p&gt;当然互联网也发生[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/12/goodbye-2010/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863036/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/12/goodbye-2010/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>生活</category><pubDate>Fri, 31 Dec 2010 22:46:05 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/12/goodbye-2010/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/12/goodbye-2010/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/12/goodbye-2010/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863036/6357494</fs:itemid></item><item><title>Exchange Web Service (EWS) API 使用笔记</title><link>http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/</link><content:encoded>&lt;p&gt;有时候我们需要使用程序来进行收发邮件, 传统的POP3/SMTP/IMAP等协议也正广泛的被使用着,有关这些协议的收发邮件代码网上一抓一大把~ 如果要用这些协议可以去别处看看.&lt;/p&gt;
&lt;p&gt;我这里要谈的是使用Microsoft Exchange Sever来进行邮件的收发.&lt;/p&gt;
&lt;p&gt;通过网上查找资料我找到了微软官方的&lt;a href=&quot;http://msdn.microsoft.com/en-us/exchange/default.aspx&quot;&gt;Exchange Server Developer Center&lt;/a&gt;, 从中得知了可以使用Microsoft Exchange Web Services Managed API来进行Exchange Server的交互. 你可以在&lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;下载到当前的最新1.1版本. &lt;/p&gt;
&lt;p&gt;下载时有两个文件,根据你的实际情况选择即可:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Instructions      &lt;br /&gt;For x64 (64-bit) computers, download and run EwsManagedApi.msi       &lt;br /&gt;For x86 (32-bit) computers, download and run EwsManagedApi32.msi&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;安装之后的安装目录如图:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.amzcode.com/wpblog/wp-content/uploads/2010/11/image.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; margin: 2px 7px 2px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://www.amzcode.com/wpblog/wp-content/uploads/2010/11/image_thumb.png&quot; width=&quot;411&quot; height=&quot;231&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;要使用EWS, 你需要将Microsoft.Exchange.WebServices.dll引用到你的项目之中.&lt;/p&gt;
&lt;p&gt;一些基本的使用可以阅读GettingStarted.doc文件,里面说的比较清楚.&lt;/p&gt;
&lt;p&gt;英文不好的同学可以查看这些篇文章&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;#666666&quot;&gt;&lt;/font&gt;&lt;a href=&quot;http://www.cnblogs.com/diaojia/archive/2010/10/19/1855839.html&quot; target=&quot;_blank&quot;&gt;EWS Managed API 介绍(上)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cnblogs.com/diaojia/archive/2010/10/20/1856995.html&quot; target=&quot;_blank&quot;&gt;EWS Managed API 介绍(下)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;来自博客园的这两篇文章基本是对于官方GettingStarted.doc文件的翻译.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;但是在我的应用中, 我需要读取所有在Inbox(收件箱)里的新邮件, 而已读邮件将被我忽略掉, 在读到新邮件后经过处理再将其标记为已读. 在示例代码中给出的读取Inbox中的邮件功能显然不能满足我的要求.&lt;/p&gt;
&lt;p&gt;经过调研,写出如下代码已实现目标&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;//ExchangeService版本为2007SP1
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
//参数是用户名,密码,域
service.Credentials = new WebCredentials(Info.UserName, Info.Password, Info.Domain);
//给出Exchange Server的URL http://xxxxxxx
service.Url = new Uri(Info.SeverUrl);
//你自己的邮件地址 xxx@xxx.xxx
service.AutodiscoverUrl(Info.Email);
//创建过滤器, 条件为邮件未读.
SearchFilter sf = new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false);
//查找Inbox,加入过滤器条件,结果10条
FindItemsResults&lt;item&gt; findResults = service.FindItems(
    WellKnownFolderName.Inbox,
    sf,
    new ItemView(10));

foreach (Item item in findResults.Items)
{
    EmailMessage email = EmailMessage.Bind(service, item.Id);
    if (!email.IsRead)
    {
        Console.WriteLine(email.Body);
        //标记为已读
        email.IsRead = true;
        //将对邮件的改动提交到服务器
        email.Update(ConflictResolutionMode.AlwaysOverwrite);
    }
}&lt;/pre&gt;
&lt;/div&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863037/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>&lt;p&gt;有时候我们需要使用程序来进行收发邮件, 传统的POP3/SMTP/IMAP等协议也正广泛的被使用着,有关这些协议的收发邮件代码网上一抓一大把~ 如果要用这些协议可以去别处看看.&lt;/p&gt;
&lt;p&gt;我这里要谈的是使用Microsoft Exchange Sever来进行邮件的收发.&lt;/p&gt;
&lt;p&gt;通过网上查找资料我找到了微软官方的&lt;a href=&quot;http://msdn.microsoft.com/en-us/exchange/default.aspx&quot;&gt;E[......]&lt;/a&gt;&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863037/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>.NET</category><category>Mail</category><pubDate>Tue, 30 Nov 2010 15:30:31 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/11/exchange-web-service-ews-api-%e4%bd%bf%e7%94%a8%e7%ac%94%e8%ae%b0/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863037/6357494</fs:itemid></item><item><title>Windows平台的内存释放</title><link>http://blog.jianmiao.info/2010/10/memory-release-of-windows/</link><content:encoded>&lt;p&gt;工作中需要编写一个&amp;quot;清理内存&amp;quot;的程序,用来&amp;quot;整理内存&amp;quot;.&lt;/p&gt;
&lt;p&gt;不错,这个功能在很多软件当中都有,而且在使用过后确实会显现出空闲内存变多了, 这确实有点意思.但是我是不清楚其原理的.&lt;/p&gt;
&lt;p&gt;在接手到这个任务过后,经过调研发现这个功能完全是一个骗局,其原理只是将部分程序的重要部分驻留在物理内存中,而将其他部分放到虚拟内存中. 什么是虚拟内存,其实就是你的硬盘上的一部分空间, 相信来看这篇文章的人都知道,硬盘的读写速度是及其缓慢的,程序被放到了虚拟内存中,这对程序的性能影响是极大的.&lt;/p&gt;
&lt;p&gt;试想一下,本来在内存中的程序你在使用过程当中不需要读取硬盘,这样通常都是非常流畅的.然而,突然有一部分内容被放到了硬盘上, 程序在运行的过程当中就需要读取硬盘,程序可能就阻塞住了,因为硬盘上的数据还在读取中.&lt;/p&gt;
&lt;p&gt;这个任务还有一个部分就是在Linux环境下的内存整理,我也翻看了不少网页,也有人提过类似的问题,要一个Linux内存整理工具,楼下的回复基本都是楼主你没事找事啊. 理由都是说Linux本身的内存管理已经很优秀了,不会有哪个蛋疼的程序员去考虑和编写这种工具的. &lt;/p&gt;
&lt;p&gt;为什么客户会提出这个需求,我想就是因为Windows上面很多软件有过这个功能, 客户也是不懂电脑的,以为这个功能是很有用的. 可是我还是得为他们做出这个功能来, Linux就算了, 弄一个Windows版的就好了.&lt;/p&gt;
&lt;p&gt;在此,我找到了ID为乱雪的一篇文章&lt;a href=&quot;http://hi.baidu.com/lu4nx/blog/item/bc63dc1d5517048787d6b6b8.html&quot; target=&quot;_blank&quot;&gt;《[原创]所谓的内存释放工具——原理》&lt;/a&gt;,文中提到使用Windows API SetProcessWorkingSetSize()函数来进行内存回收. &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms686234(VS.85).aspx&quot; target=&quot;_blank&quot;&gt;MSDN&lt;/a&gt;链接在此.&lt;/p&gt;
&lt;blockquote&gt;&lt;pre&gt;BOOL WINAPI SetProcessWorkingSetSize(
  __in  HANDLE hProcess,
  __in  SIZE_T dwMinimumWorkingSetSize,
  __in  SIZE_T dwMaximumWorkingSetSize
);&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;在乱雪的文章中有一个处理QQ内存的程序,于是我在他的基础上修改为遍历所有进程的程序,我不是C++程序员,写得丑陋还请包涵.&lt;/p&gt;
&lt;pre class=&quot;brush: cpp;&quot;&gt;#include &lt;stdio.h&gt;
#include &lt;windows.h&gt;
#include &lt;tlhelp32.h&gt;
/*
time :    2010.5.9
by     :    乱雪
email:    lx#shellcodes.org
SetProcessWorkingSetSize函数演示
*/
/*
2010-10-29
edit by: liaodd
*/
int main()
{

	PROCESSENTRY32 pentry = {sizeof(pentry)};              //填充大小
	HANDLE hPSnap =::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0); //建立快照
	BOOL bMore = ::Process32First(hPSnap,&amp;#038;pentry);     //得到首个进程
	//循环搜索
	while(bMore)
	{
		//if(strcmp(&quot;QQ.exe&quot;,pentry.szExeFile) == 0) //搜索QQ.exe这个进程
		//如果找到，就用OpenProcess获得它的句柄
		//根据MSDN对SetProcessWorkingSetSize的描述，进程必须有PROCESS_SET_QUOTA权限
		HANDLE hProcess = ::OpenProcess(PROCESS_SET_QUOTA,FALSE,pentry.th32ProcessID);
		//hProcess不为空就表明获得了句柄值
		if(hProcess != NULL)
			//调用SetProcessWorkingSetSize函数
			::SetProcessWorkingSetSize(hProcess, -1, -1);
		//}
		::CloseHandle(hProcess);   //关闭句柄

		bMore = ::Process32Next(hPSnap,&amp;#038;pentry); //获得下一个进程

	}

	::CloseHandle(hPSnap);   //关闭句柄
	return 0;
}
&lt;/pre&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863038/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/10/memory-release-of-windows/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/10/memory-release-of-windows/feed/</wfw:commentRss><slash:comments>3</slash:comments><description>&lt;p&gt;工作中需要编写一个&amp;#34;清理内存&amp;#34;的程序,用来&amp;#34;整理内存&amp;#34;.&lt;/p&gt;
&lt;p&gt;不错,这个功能在很多软件当中都有,而且在使用过后确实会显现出空闲内存变多了, 这确实有点意思.但是我是不清楚其原理的.&lt;/p&gt;
&lt;p&gt;在接手到这个任务过后,经过调研发现这个功能完全是一个骗局,其原理只是将部分程序的重[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/10/memory-release-of-windows/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863038/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/10/memory-release-of-windows/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>其他技术</category><category>Windows</category><pubDate>Fri, 29 Oct 2010 15:48:03 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/10/memory-release-of-windows/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/10/memory-release-of-windows/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/10/memory-release-of-windows/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863038/6357494</fs:itemid></item><item><title>网络爬虫:CarInfoSpider–笔记(一)</title><link>http://blog.jianmiao.info/2010/09/spider-carinfospider/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://blog.amzcode.com/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/&quot; target=&quot;_blank&quot;&gt;上一篇文章&lt;/a&gt;提到了我的爬虫程序, 经过一周左右的制作,已经能够完成功能, 在改进的过程中因为工作安排已经放下了, 有些东西还是值得拿出来讲一下,作为记录.&lt;/p&gt;
&lt;p&gt;解释一下为什么要叫CarInfoSpider, 因为这个任务的目标是去&lt;a href=&quot;http://www.chinacars.com/&quot;&gt;http://www.chinacars.com/&lt;/a&gt;爬取汽车的信息,因此前缀是个CarInfo, 至于这个Spider, 那肯定就是网络蜘蛛了~&lt;/p&gt;
&lt;p&gt;前面提到使用LINQ TO XML来解析HTML, 这虽然是我能用上的最好方法,但是LINQ TO XML对解析的XML文档的要求很高, 将要解析的对象必须是合法的XML, 否则就会出现异常. 一开始我写了一大堆过滤的语句来修改HTML的合法性,浪费了很多的时间, 结果后来得知有个一个叫做&lt;a href=&quot;http://www.codeproject.com/KB/cs/ZetaHtmlTidy.aspx&quot; target=&quot;_blank&quot;&gt;ZetaHtmlTidy&lt;/a&gt;的东西可以替我做这些事&amp;#8230; 他的功能能将HTML转换为XHTML,自动解决一些不合法的标记问题.&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;            string StrXml = GetHtml(Url);

            using (HtmlTidy tidy = new HtmlTidy())
            {
                StrXml = tidy.CleanHtml(StrXml, HtmlTidyOptions.ConvertToXhtml);
            }&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;StrXml就是转换过后的XHTML,已经解决了绝大部分问题. 但是,如果在XHTML中出现&amp;quot;&amp;amp;nbsp;&amp;quot;标记也是不行的, LINQ TO XML会出错. 这个问题也好办,直接一句话解决问题&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;StrXml = StrXml.Replace(&amp;quot;&amp;amp;nbsp;&amp;quot;, &amp;quot;&amp;quot;);&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;好了,以上就是HTML的问题.下面来说说WPF的异步操作的问题:&lt;/p&gt;
&lt;p&gt;在以前我知道在后台线程要传送信息到界面上时可以先定义一个委托, 再通过控件的 Invoke方法传递. 在WPF里面的实现方式就有点不一样了&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;        delegate void Append2Text(string msg);

        private void ApendText2TextBox(string msg)
	{
	    if (System.Threading.Thread.CurrentThread != this.txtDetails.Dispatcher.Thread)
                this.txtDetails.Dispatcher.Invoke(new Append2Text(ApendText2TextBox), msg);
            else
            {
                this.txtDetails.AppendText(string.Format(&amp;quot;[{0}] {1}rn&amp;quot;, DateTime.Now.ToString(&amp;quot;HH:mm:ss&amp;quot;), msg));
                this.txtDetails.ScrollToEnd();
            }
        }&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;以上是WPF程序的写法,如果是普通的Winform程序,是这样的(还是做个对比吧)&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;        delegate void Append2Text(string msg);

        private void ApendText2TextBox(string msg)
	{
	    if (this.txtDetails.InvokeRequired)
                this.txtDetails.Invoke(new Append2Text(ApendText2TextBox), msg);
            else
            {
                this.txtDetails.AppendText(string.Format(&amp;quot;[{0}] {1}rn&amp;quot;, DateTime.Now.ToString(&amp;quot;HH:mm:ss&amp;quot;), msg));
                this.txtDetails.ScrollToEnd();
            }
        }&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;个人还是习惯上面种写法, 也比WPF的简单点点&amp;#8230;&lt;/p&gt;
&lt;p&gt;最后谈谈数据库存取, 本来我是用的是LINQ TO SQL, 虽然大家对其评价不高, 有很多很多的问题, 不过在我这个程序里面LINQ TO SQL完全够用了.而且这个以前在大学的时候我也用过的. 后来领导告诉我有个叫ADO.NET Entity Data Model的类, 使用方法跟LINQ TO SQL类似, 但是比他灵活, 没有LINQ TO SQL的MSSQL Server Only的限制.&lt;/p&gt;
&lt;p&gt;这个东西我研究不深, 暂时还没有Demo代码编写~~&lt;/p&gt;
&lt;p&gt;9a9a0fb5&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;网络爬虫:CarInfoSpider&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;网络爬虫:CarInfoSpider&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Exchange Web Service (EWS) API 使用笔记&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F11%2Fexchange-web-service-ews-api-%25E4%25BD%25BF%25E7%2594%25A8%25E7%25AC%2594%25E8%25AE%25B0%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Exchange Web Service (EWS) API 使用笔记&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;写在2010末&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F12%2Fgoodbye-2010%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/30/26485968.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;写在2010末&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;VSTO 2010 部署&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2011%2F03%2Fvsto-2010-deploy%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/30/26485966.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;VSTO 2010 部署&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;InstallShield的一些问题&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F04%2Fsome-problem-with-installshield%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;InstallShield的一些问题&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863039/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/spider-carinfospider/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/09/spider-carinfospider/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;a href=&quot;http://blog.amzcode.com/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/&quot; target=&quot;_blank&quot;&gt;上一篇文章&lt;/a&gt;提到了我的爬虫程序, 经过一周左右的制作,已经能够完成功能, 在改进的过程中因为工作安排已经放下了, 有些东西还是值得拿出来讲一下,作为记录.&lt;/p&gt;
&lt;p&gt;解释一下为什么要叫CarInfoSpider, 因为这个任务的目标是去&lt;a href=&quot;http://www.chinacars.com/&quot;&gt;http://www.chinacars.com/&lt;/a&gt;爬取汽车的信息,因此前缀是[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/09/spider-carinfospider/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863039/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/spider-carinfospider/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linq</category><category>.NET</category><pubDate>Thu, 16 Sep 2010 23:16:05 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/09/spider-carinfospider/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/09/spider-carinfospider/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/09/spider-carinfospider/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863039/6357494</fs:itemid></item><item><title>网络爬虫:CarInfoSpider</title><link>http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/</link><content:encoded>&lt;p&gt;新工作的第一个任务, 目前还在进行中.&lt;/p&gt;
&lt;h4&gt;任务内容&lt;/h4&gt;
&lt;p&gt;编写一个爬虫程序(Search Engine Spider), 从某网站上获取到所有的汽车品牌, 车型, 汽车款式. 其中款式要至少应该包括该款的名称, 价格和一张图片. 再提供一个Web Service以查询这些信息, 查询接口待爬虫程序完成后再定.&lt;/p&gt;
&lt;p&gt;开发平台工具语言不限.&lt;/p&gt;
&lt;h4&gt;分析&lt;/h4&gt;
&lt;p&gt;我拿到这个任务第一个想到的就是通过Linq to XML把HTML当作XML解析.&lt;/p&gt;
&lt;p&gt;通过人工分析需要解析的页面, 找出特定的特征以判断页面中的元素是否是我想要的信息. 根据这个信息获取到页面上的内容.&lt;/p&gt;
&lt;p&gt;虽然任务没有限定平台, 但是我觉得做一个Winform程序比较好, 我想显示一个进度条来提示爬取的大概进度, 而且这一年来我做的项目也是Winform的, 相对对Winform比较熟悉. 但是为了以后的项目做基础, 我选择了我不熟悉但是又跟Winform类似的WPF.&lt;/p&gt;
&lt;h4&gt;遇到的问题&lt;/h4&gt;
&lt;p&gt;目前写了两天, 说实话这程序不难, 为什么进度那么慢?&lt;/p&gt;
&lt;p&gt;1. Linq to XML&lt;/p&gt;
&lt;p&gt;由于用到了Linq To XML, 我需要将获取的string对象(获取到的HTML string)解析为一个XElement 对象&lt;/p&gt;
&lt;div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;string strHtml = &amp;quot;....&amp;quot;;
XElement newElement = XElement.Parse(strHtml);&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;就是这一步, 出现了大量的错误, 原因是对方的页面不规范, 有很多不闭合和的tag存在, 导致了XElemet.Parse无法成功, 抛异常. 我很多时间都花在修改strHtml为合法xml上面了.&lt;/p&gt;
&lt;p&gt;2. WPF&lt;/p&gt;
&lt;p&gt;对WPF不熟悉, 以为跟Winform差不多, 但是就是因为不了解差异, 导致一个简单的Windows应用程序开发进度减慢.&lt;/p&gt;
&lt;p&gt;比如说Winform的异步,直接调用Control.Invoke()什么的在WPF就不是那么做了, 这还花了点时间研究~~.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;具体代码等到这项工作全部完成了, 我再分享出来, 把这篇文章细化.&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863040/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>&lt;p&gt;新工作的第一个任务, 目前还在进行中.&lt;/p&gt;
任务内容
&lt;p&gt;编写一个爬虫程序(Search Engine Spider), 从某网站上获取到所有的汽车品牌, 车型, 汽车款式. 其中款式要至少应该包括该款的名称, 价格和一张图片. 再提供一个Web Service以查询这些信息, 查询接口待爬虫程序完成后再定[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;LINQ过滤结果中有相同字段的项&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F06%2Flinq-filter-same-item%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;LINQ过滤结果中有相同字段的项&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;网络爬虫:CarInfoSpider–笔记(一)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fspider-carinfospider%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;网络爬虫:CarInfoSpider–笔记(一)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;写在2010末&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F12%2Fgoodbye-2010%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/30/26485968.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;写在2010末&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;利用Google实时搜索获取腾讯微博邀请码&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F04%2Fuse-google-real-time-search-to-catch-tencent-twitter-invitation%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/30/26492389.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;利用Google实时搜索获取腾讯微博邀请码&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;程序的UAC支持&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F04%2Fdotnet-program-uac-support%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2F%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25ABcarinfospider%2F&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/30/26490872.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;程序的UAC支持&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863040/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linq</category><category>.NET</category><pubDate>Wed, 08 Sep 2010 22:27:53 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/09/%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%abcarinfospider/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863040/6357494</fs:itemid></item><item><title>纸上谈兵: WOWArmory2Tweet</title><link>http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/</link><content:encoded>&lt;p&gt;首先要唠叨几句,本人近段时间的生活实在是太堕落了:PES2010,SC2,TWOW,CWOW&amp;lt;&amp;#8212;-以上四个游戏占据了我绝大部分的空闲时间,这实在是对时间的巨大浪费,原有的很多计划都泡汤了.这不是一个好现象,要引起重视了.&lt;/p&gt;
&lt;p&gt;WOWArmory2Tweet的计划我已经构思过一段时间了,无奈自己太过懒惰,一直没有进一步的进行研究.开发这个应用的主要技术只要稍加研究与学习这应该是很容易的.但是一个问题一直在困扰我&amp;#8212;-那就是WOWarmory的API.&lt;/p&gt;
&lt;h4&gt;WOWarmory的API&lt;/h4&gt;
&lt;p&gt;一开始的想法是其是否有API存在,答案是肯定的.如果没有API,那么那些英雄榜签名生成器是从何而来.于是乎我就通过Google搜索多次无果,这也是这个计划搁置的原因.但是今天,我突然想到这个问题,再次搜索时在&lt;a href=&quot;http://forums.worldofwarcraft.com/thread.html?topicId=16137616671&amp;amp;sid=1&quot; target=&quot;_blank&quot;&gt;第一个链接&lt;/a&gt;中发现了如下信息.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;To ensure you get XML regardless of what browser you use, and to sidestep the user agent, just add &amp;amp;rhtml=n to the end of your url.      &lt;br /&gt;http://www.wowarmory.com/character-sheet.xml?r=Magtheridon&amp;amp;n=Jadissa&amp;amp;rhtml=y will ALWAYS give you HTML.       &lt;br /&gt;http://www.wowarmory.com/character-sheet.xml?r=Magtheridon&amp;amp;n=Jadissa&amp;amp;rhtml=n will ALWAYS give you XML.       &lt;br /&gt;This works for any armory page, and in every major browser&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;很好,原来只要在Armory的URL加入如下参数就可以控制server返回的结果&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&amp;amp;rhtml=y&lt;/p&gt;
&lt;p&gt;&amp;amp;rhtml=n&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;我们来做个实验:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href=&quot;http://cn.wowarmory.com/character-sheet.xml?r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;n=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&quot;&gt;http://cn.wowarmory.com/character-sheet.xml?r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;n=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&lt;/a&gt;&amp;#160;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;这是不加入参数的默认链接(等同于加入 &amp;amp;rhtml=y),查看源代码为标准的HTML&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;head&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;link href=&amp;quot;&lt;a href=&quot;http://cn.wowarmory.com/favicon.ico&quot;&gt;/favicon.ico&lt;/a&gt;&amp;quot; rel=&amp;quot;shortcut icon&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;title&amp;gt;魔兽世界英雄榜&amp;lt;/title&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;meta content=&amp;quot;text/html; charset=UTF-8&amp;quot; http-equiv=&amp;quot;Content-Type&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;meta content=&amp;quot;魔兽世界英雄榜是一个大型魔兽世界资料检索库。由于英雄榜直接与游戏服务器共享数据，因此拥有最新最全面资料库，可提供魔兽世界现有的角色、竞技场战队、公会、物品和阵营奖励资料。&amp;quot; name=&amp;quot;description&amp;quot;&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;以上是返回的源代码片段,的确是HTML文档. 下面试试加入参数:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href=&quot;http://cn.wowarmory.com/character-sheet.xml?r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;n=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&amp;amp;rhtml=n&quot;&gt;http://cn.wowarmory.com/character-sheet.xml?r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;n=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&amp;amp;rhtml=n&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/xsl&amp;quot; href=&amp;quot;/_layout/character/sheet.xsl&amp;quot;?&amp;gt;&amp;lt;page globalSearch=&amp;quot;1&amp;quot; lang=&amp;quot;zh_cn&amp;quot; requestUrl=&amp;quot;/character-sheet.xml&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;tabInfo subTab=&amp;quot;profile&amp;quot; tab=&amp;quot;character&amp;quot; tabGroup=&amp;quot;character&amp;quot; tabUrl=&amp;quot;r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;amp;cn=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&amp;amp;amp;gn=%E5%86%B3%E6%88%98%E5%88%B0%E5%A4%A9%E4%BA%AE&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;characterInfo&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;character battleGroup=&amp;quot;Battle Group 6&amp;quot; charUrl=&amp;quot;r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;amp;n=%E4%B8%80%E6%97%B6%E6%97%A0%E4%B8%A4&amp;quot; class=&amp;quot;德鲁伊&amp;quot; classId=&amp;quot;11&amp;quot; classUrl=&amp;quot;c=%E5%BE%B7%E9%B2%81%E4%BC%8A&amp;quot; faction=&amp;quot;联盟&amp;quot; factionId=&amp;quot;0&amp;quot; gender=&amp;quot;女性&amp;quot; genderId=&amp;quot;1&amp;quot; guildName=&amp;quot;决战到天亮&amp;quot; guildUrl=&amp;quot;r=%E5%9C%A3%E7%81%AB%E7%A5%9E%E6%AE%BF&amp;amp;amp;gn=%E5%86%B3%E6%88%98%E5%88%B0%E5%A4%A9%E4%BA%AE&amp;quot; lastModified=&amp;quot;2010年9月4日&amp;quot; level=&amp;quot;72&amp;quot; name=&amp;quot;一时无两&amp;quot; points=&amp;quot;2185&amp;quot; prefix=&amp;quot;&amp;quot; race=&amp;quot;暗夜精灵&amp;quot; raceId=&amp;quot;4&amp;quot; realm=&amp;quot;圣火神殿&amp;quot; suffix=&amp;quot;&amp;quot; titleId=&amp;quot;0&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;characterTab&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;talentSpecs&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;talentSpec group=&amp;quot;2&amp;quot; icon=&amp;quot;spell_nature_healingtouch&amp;quot; prim=&amp;quot;恢复&amp;quot; treeOne=&amp;quot;10&amp;quot; treeThree=&amp;quot;53&amp;quot; treeTwo=&amp;quot;0&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;talentSpec active=&amp;quot;1&amp;quot; group=&amp;quot;1&amp;quot; icon=&amp;quot;ability_racial_bearform&amp;quot; prim=&amp;quot;野性战斗&amp;quot; treeOne=&amp;quot;0&amp;quot; treeThree=&amp;quot;7&amp;quot; treeTwo=&amp;quot;56&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/talentSpecs&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;很不错,加入参数过后就能返回xml,而xml中包含的信息更容易被程序进行处理,这就是玻璃渣的API了~~&lt;/p&gt;
&lt;h4&gt;开发平台的选择&lt;/h4&gt;
&lt;p&gt;这个东西肯定需要一个server,而我现在的webhosting肯定不能达到要求.那么选择GAE是个好主意,当然GAE的JAVA我是不考虑的,还是Python看着舒服.&lt;/p&gt;
&lt;p&gt;GAE有一个叫做&lt;a href=&quot;http://code.google.com/intl/zh-CN/appengine/docs/python/config/cron.html&quot; target=&quot;_blank&quot;&gt;Cron&lt;/a&gt;的计划任务功能,这样使我的server定时去获取Amory的信息,在和数据库中的信息进行比对,将不同点Tweet出去~~&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;不过,首先要学习Oauth协议,让我有Tweet的权限~~但是我自己没有VPN,调试Twitter不方便,于是我先拿sina开刀试试吧~~&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863041/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&lt;p&gt;首先要唠叨几句,本人近段时间的生活实在是太堕落了:PES2010,SC2,TWOW,CWOW&amp;#60;&amp;#8212;-以上四个游戏占据了我绝大部分的空闲时间,这实在是对时间的巨大浪费,原有的很多计划都泡汤了.这不是一个好现象,要引起重视了.&lt;/p&gt;
&lt;p&gt;WOWArmory2Tweet的计划我已经构思过一段时间了,[......]&lt;/p&gt;&lt;p class='read-more'&gt;&lt;a href='http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/'&gt;继续阅读&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;您可能也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F05%2Fnote2-install-and-config-jdk-eclipse-and-mysql-on-ubuntu%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fdesign-wowarmory2tweet%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;趁热速度做笔记2:在Ubuntu上安装JDK Eclipse还有Mysql&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F04%2Ftest-2%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fdesign-wowarmory2tweet%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;test&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F02%2Fhello-world-2%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fdesign-wowarmory2tweet%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Hello World!&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2011%2F06%2F%25E6%259C%25AC%25E7%25AB%2599%25E5%25B7%25B2%25E8%25A2%25ABgfw%25E8%25AE%25A4%25E8%25AF%2581%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fdesign-wowarmory2tweet%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;本站已被GFW认证&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F03%2Ftwo-days-2010-03-22-and-2010-03-23%2F&amp;from=http%3A%2F%2Fblog.jianmiao.info%2F2010%2F09%2Fdesign-wowarmory2tweet%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;历史性的两天 2010-03-22与2010-03-23&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/551863041/amzcode/feedsky/s.gif?r=http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>xml</category><category>生活</category><category>其他技术</category><category>WOW</category><pubDate>Mon, 06 Sep 2010 23:16:40 +0800</pubDate><author>sglicx23</author><comments>http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/#comments</comments><guid isPermaLink="false">http://blog.amzcode.com/2010/09/design-wowarmory2tweet/</guid><dc:creator>sglicx23</dc:creator><fs:srclink>http://blog.jianmiao.info/2010/09/design-wowarmory2tweet/</fs:srclink><fs:srcfeed>http://blog.amzcode.com/feed/</fs:srcfeed><fs:itemid>feedsky/amzcode/~8254328/551863041/6357494</fs:itemid></item></channel></rss>
