<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Erning.write() &#187; dotnet</title>
	<atom:link href="http://erning.net/tags/dotnet/feed" rel="self" type="application/rss+xml" />
	<link>http://erning.net</link>
	<description>Reloading</description>
	<lastBuildDate>Thu, 15 Sep 2011 10:04:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>RewriteModule for ASP.NET 2.0</title>
		<link>http://erning.net/archives/rewritemodule-for-aspnet-20</link>
		<comments>http://erning.net/archives/rewritemodule-for-aspnet-20#comments</comments>
		<pubDate>Mon, 12 Dec 2005 14:26:51 +0000</pubDate>
		<dc:creator>erning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotnet]]></category>

		<guid isPermaLink="false">http://www.erning.net/archives/2005/12/12/rewritemodule-for-aspnet-20/</guid>
		<description><![CDATA[mod_rewrite is one of the most useful module for Apache. But what to do if I&#8217;m on a Windows IIS server? I only googled a few commercial ISAPI modules (ISAPI ReWrite, IIS Rewrite). This is the most painful on Windows platform. OK. Since I only need a few feature of the rewrite currently. I decided [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> is one of the most useful module for <a href="http://httpd.apache.org/">Apache</a>.</p>
<p>But what to do if I&#8217;m on a Windows IIS server? I only googled a few <strong>commercial</strong> ISAPI modules (<a href="http://www.isapirewrite.com/">ISAPI ReWrite</a>, <a href="http://www.qwerksoft.com/products/iisrewrite/">IIS Rewrite</a>). This is the most painful on Windows platform.</p>
<p>OK. Since I only need a few feature of the rewrite currently. I decided to do it myself. An early version is available from <a href="http://cvs.dragonsoft.net/horde/chora/cvs.php/rewrite-module/RewriteModule">CVS repository</a> &#8211; <em>anoncvs without password</em>.</p>
<p>Yeah. The <em>RewriteCond</em> feature haven&#8217;t been implemented. Sorry It&#8217;s only one afternoon work and I&#8217;m still a newbie on ASP.NET platform.</p>
<p>Here&#8217;s the sample configuration</p>
<pre class="brush: xml">
<configuration>
    <configsections>
<section
            name="rewriteSection"
            type="Dragonsoft.RewriteConfigurationSection, Dragonsoft.RewriteModule" />
    </configsections>

    <system .web>
        <httpmodules>
            <add name="rewrite" type="Dragonsoft.RewriteModule" />
        </httpmodules>
    </system>

    <rewritesection>
        <![CDATA[
        RewriteRule ^~/news/([^/]+)/([^/]+)\.html$ ~/news.aspx?id=$1&#038;name=$2 [L]
        RewriteRule \fake\(.*).html$ \real\$1.aspx [NC,L]
        ]]&gt;
    </rewritesection>
</configuration>
</pre>
<p><em>&#8211;update: <a href="http://www.iismods.com/url-rewrite/index.htm"> URL Rewrite Filter for IIS</a> is open source. I haven&#8217;t tested it.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://erning.net/archives/rewritemodule-for-aspnet-20/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flickr Backup</title>
		<link>http://erning.net/archives/flickr-backup</link>
		<comments>http://erning.net/archives/flickr-backup#comments</comments>
		<pubDate>Wed, 21 Sep 2005 02:48:10 +0000</pubDate>
		<dc:creator>erning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.erning.net/archives/2005/09/21/flickr-backup/</guid>
		<description><![CDATA[中国电信访问Flickr真是慢得不行了！我在网通的机器上装了一个代理，然后将家里的机器都设置成访问Flickr都透明的通过网通的代理，速度才快多了。不明白为什么电信到很多国外的网站这么慢。因此我还当心说不定那天网通到Flickr也慢了，或者整个Flickr像flickr blog一样直接被GFW给block掉。这样就决定要把我在Flickr上的照片都给备份一下。 上个月辞掉工作，在家休息。在MS工作的朋友王庆胜想让我去他们公司看看，说是目前MSN部门正急着找程序员，主要是C#的。MS的待遇不错，对目前无业、又需要按揭房款、又要养家糊口的我还是有一定吸引力的。可我没用Windows好常时间了，更没写过C#程序。那么这个备份工具就用C#写写看吧。 花了一个通宵，FlickrBackup出来了，目前可以下载备份Flickr.com的照片，包括各种大小的。这里还有很多Features我想做，但还来不及实现。第一次用C#，第一次在.NET下写代码，感觉还不错。C#加上.NET的类库，真的是快速开发啊，有点当年Delphi的刚觉。Visual Studio .NET已经不错了，当然它写C#的时候比起用Intellij IEDA写Java代码还有段距离。估计加上ReSharper会好很多。 下载：Flickr-0.1.1.zip (95KB) 包括源代码和可执行文件。zip包里面还包括了FlickrNet-1.4.1，原来的包里有一点小错误，我修改了一下。]]></description>
			<content:encoded><![CDATA[<p><a title="Photo Sharing" href="http://www.flickr.com/photos/zendragon/45186195/" style="float: left;"><img width="240" height="189" alt="FlickrBackup" src="http://static.flickr.com/24/45186195_5c5f7ccf69_m.jpg" /></a><br />
中国电信访问Flickr真是慢得不行了！我在网通的机器上装了一个代理，然后将家里的机器都设置成访问Flickr都透明的通过网通的代理，速度才快多了。不明白为什么电信到很多国外的网站这么慢。因此我还当心说不定那天网通到Flickr也慢了，或者整个Flickr像flickr blog一样直接被GFW给block掉。这样就决定要把我在Flickr上的照片都给备份一下。</p>
<p>上个月辞掉工作，在家休息。在MS工作的朋友<a href="http://www.nikonfans.org/">王庆胜</a>想让我去他们公司看看，说是目前MSN部门正急着找程序员，主要是C#的。MS的待遇不错，对目前无业、又需要按揭房款、又要<a href="http://www.yunxin.org/">养家糊口</a>的我还是有一定吸引力的。可我没用Windows好常时间了，更没写过C#程序。那么这个备份工具就用C#写写看吧。</p>
<p>花了一个通宵，FlickrBackup出来了，目前可以下载备份Flickr.com的照片，包括各种大小的。这里还有很多Features我想做，但还来不及实现。第一次用C#，第一次在.NET下写代码，感觉还不错。C#加上.NET的类库，真的是快速开发啊，有点当年Delphi的刚觉。Visual Studio .NET已经不错了，当然它写C#的时候比起用<a href="http://www.jetbrains.com/idea/">Intellij IEDA</a>写Java代码还有段距离。估计加上<a href="http://www.jetbrains.com/resharper/">ReSharper</a>会好很多。</p>
<p>下载：<a href="http://erning.net/flickr-backup/FlickrBackup-0.1.1.zip">Flickr-0.1.1.zip</a> (95KB) 包括源代码和可执行文件。zip包里面还包括了<a href="http://flickrdotnet.wdevs.com/">FlickrNet-1.4.1</a>，原来的包里有一点小错误，我修改了一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://erning.net/archives/flickr-backup/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

