<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Thunder Wrath</title>
    <id>http://www.thunderwrath.co.cc/</id>
    <subtitle></subtitle>
    <link href="http://www.thunderwrath.co.cc" />
    <link href="http://www.thunderwrath.co.cc/feed" rel="self" />
    <updated>2009-11-05T15:05:40Z</updated>
    <author>
      <name>zhiqun.cg</name>
    </author>

  <entry>
      <link href="http://www.thunderwrath.co.cc/2009/11/configure-urlrewriter-dot-net-for-IIS7.html"/>
      <id>http://www.thunderwrath.co.cc/entry/configure-urlrewriter-dot-net-for-IIS7</id>
      <title>Configure Urlrewriter.net for IIS7</title>
      <content type="html"><![CDATA[
      <p><span style="font-family:Verdana;"><span style="font-size:medium;">UrlRewriter.NET is an open-source, light-weight, highly configurable URL rewriting component for ASP.NET 1.1 and 2.0.It is a great Search Engine Optimization (SEO) tool. Using UrlRewriter.NET, you can create URL’s containing your target keywords, boosting your rankings.<br /><br />It’s not complicated for you to configure Urlrewriter.net on IIS7.Here’s a few simply steps for you to make it.<br /><br />1.Add a reference to the Intelligencia.UrlRewriter assembly. To do this, right-click the root entry of your project in Solution Explorer , and choose Add Reference... In the dialog that opens, click the Browse tab, and browse to UrlRewriterV2\bin\Release\Intelligencia.UrlRewriter.dll. Select the file and click OK.<br /><br />2.Open your web.config file in your web project and add the following configuration section handler that&nbsp;<br />enables UrlRewriter.NET to read its configuration from a configuration node named rewriter:<br /><br />&lt;?xml version="1.0"?&gt;&nbsp;<br />&lt;configuration&gt;&nbsp;<br />&lt;configSections&gt;&nbsp;<br />&lt;section name="rewriter" requirePermission="false"&nbsp;<br />type="Intelligencia.UrlRewriter.Configuration.&nbsp;<br />RewriterConfigurationSectionHandler,Intelligencia.UrlRewriter" /&gt;&nbsp;<br />&lt;/configSections&gt;<br /><br />...<br />Ensure that The element is the first child of the element.<br /><br />3.Now configure the UrlRewriter HTTP module, which allows UrlRewriter.NET to intercept incoming requests&nbsp;<br />(and rewrite them):<br /><br />&lt;system.web&gt;&nbsp;<br />...&nbsp;<br />&lt;httpModules&gt;&nbsp;<br />&lt;add type="Intelligencia.UrlRewriter.RewriterHttpModule,&nbsp;<br />Intelligencia.UrlRewriter" name="UrlRewriter" /&gt;&nbsp;<br />&lt;/httpModules&gt;&nbsp;<br />...<br /><br /><br /><br />4.Finally, we must make sure UrlRewriter.NET is configured to receive all requests to nonexistent files or&nbsp;<br />folders. Course of&nbsp; using iis7,you need to add the following lines to your web.config&nbsp;<br />file:<br /><br />&lt;system.webServer&gt;&nbsp;<br />&lt;validation validateIntegratedModeConfiguration="false"/&gt;&nbsp;<br />&lt;modules&gt;&nbsp;<br />&lt;add name="UrlRewriter" type="Intelligencia.UrlRewriter. ➥&nbsp;<br />RewriterHttpModule" /&gt;&nbsp;<br />&lt;/modules&gt;<br /><br />…<br /><br />5.Excellent, now UrlRewriter.NET is ready to use!Now you can configure url rewriting for you application by add the highlighted configuration&nbsp;<br />elements in the section of web.config:<br /><br />&nbsp;<br /><br />&lt;configuration&gt;&nbsp;<br />&lt;configSections&gt;&nbsp;<br />...&nbsp;<br />&lt;/configSections&gt;&nbsp;<br />&lt;rewriter&gt;&nbsp;<br />&lt;rewrite url="/my-super-product.aspx" to="~/Product.aspx?ProductID=1" /&gt;&nbsp;<br />&lt;/rewriter&gt;&nbsp;<br />...<br /><br />&nbsp;<br /><br />Via step 5 you’ll know that you’ll&nbsp; add the real URL rewriting rules for your pages between element "&lt;rewriter&gt;".</span></span></p>  <p></p>
      
                <p>本文网址:<a href="http://www.thunderwrath.co.cc/2009/11/configure-urlrewriter-dot-net-for-IIS7.html">http://www.thunderwrath.co.cc/2009/11/configure-urlrewriter-dot-net-for-IIS7.html</a></p>

      ]]></content>
      <author>
          <name>Ryan Cheung</name>
      </author>
      <updated>2009-11-05T15:05:40Z</updated>
  </entry>

  <entry>
      <link href="http://www.thunderwrath.co.cc/2009/10/Correct-micolog-problems-wlw.html"/>
      <id>http://www.thunderwrath.co.cc/entry/Correct-micolog-problems-wlw</id>
      <title>Correct micolog problems in WLW</title>
      <content type="html"><![CDATA[
      <p><span style="font-family: georgia; font-size: small"><font color="#000000" size="3">As you who had used <em><a href="http://download.live.com/writer" target="_blank">windows live write</a></em> to write blogs to </font></span><a href="http://code.google.com/p/micolog/" target="_blank"><em><span style="font-family: georgia; font-size: small"><font color="#000000" size="3">micolog</font></span></em></a><span style="font-family: georgia; font-size: small"><font color="#000000" size="3"> may confused that you got a error <em><span style="color: #ff0000">method &quot;mt.getPostCategories&quot; is not supported</span></em> when archiving a post from blog.So that it would be a little uncomfortable to repost your articles.But here is the solution:</font></span></p>  <p><span style="font-family: georgia; font-size: small"><font color="#000000" size="3">Alter <span style="color: #0000ff">api_rpc.py</span>:</font></span></p>  <p><span style="font-size: small"><span style="font-family: georgia"><font size="3"><font color="#000000">Firstly,Find the <span style="color: #000080">def wp_getPageList(blogid) <span style="color: #000000">and</span> a</span><span style="color: #000000">dd a method under it:</span></font></font></span></span></p>  <p><span style="font-size: small"><span style="font-family: georgia"><font size="3"><font color="#000000"><span style="color: #000000"></span></font></font></span></span></p>  <p><span style="font-family: georgia; color: #800000; font-size: small"><font size="3">def mt_getPostCategories(blogid,username,password):&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; post=Entry.get_by_id(int(blogid))&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; categories=post.categorie_keys&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; cates=[]&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; for cate in categories:         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cates.append({&#160; 'categoryId' : cate.id_or_name(),         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'parentId':0,&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'description':cate.name(),         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'categoryName':cate.name(),         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'htmlUrl':'',         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'rssUrl':''&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; })&#160; <br />&#160;&#160;&#160; return cates</font></span></p>  <p><span style="font-family: georgia; color: #800000; font-size: small"><font size="3"></font></span></p>  <p><span style="font-size: small"><span style="font-family: georgia"><font size="3"><span style="color: #000000">Then find </span><span style="color: #000080">'mt.setPostCategories':mt_setPostCategories</span></font></span></span></p>  <p><span style="font-size: small"><span style="font-family: georgia"><font size="3"><span style="color: #000080"><span style="color: #000000">add a new line</span> 'mt.getPostCategories':mt_getPostCategories .</span><span style="color: #000000">Don’t forget a comma at the end of the pre_line.When you’ve done it would perform like this:</span></font></span></span></p>  <p><span style="font-family: georgia; color: #000080; font-size: small"><font size="3">'mt.setPostCategories':mt_setPostCategories</font></span><span style="font-family: georgia; color: #800000; font-size: small"><font size="3">,        <br />'mt.getPostCategories':mt_getPostCategories</font></span></p>  <p>&#160;</p>  <p><span style="font-family: georgia; color: #000000; font-size: small"><font size="3">The <span style="color: #800000">deep red</span> line of all of the above are what you would apply to.</font></span></p>  <p><span style="font-family: georgia; font-size: small"><font size="3">Simply cause the micolog developer almost prepared everything in the </font></span><a href="http://www.xmlrpc.com" target="_blank"><em><span style="font-family: georgia; font-size: small"><font size="3">XmlRPC API</font></span></em></a><span style="font-family: georgia; font-size: small"><font size="3"> except the <span style="color: #000080">getPostCategories</span> method which is indispensable.</font></span></p>
      
                <p>本文网址:<a href="http://www.thunderwrath.co.cc/2009/10/Correct-micolog-problems-wlw.html">http://www.thunderwrath.co.cc/2009/10/Correct-micolog-problems-wlw.html</a></p>

      ]]></content>
      <author>
          <name>Ryan Cheung</name>
      </author>
      <updated>2009-10-29T06:08:48Z</updated>
  </entry>

</feed>
