<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Web Sailor's personal blog - Programming</title>
    <link>http://www.khngai.com/blog/</link>
    <description>My little place on the web...</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.2 - http://www.s9y.org/</generator>
    <pubDate>Sat, 28 Aug 2010 06:11:55 GMT</pubDate>

    <image>
        <url>http://www.khngai.com/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Web Sailor's personal blog - Programming - My little place on the web...</title>
        <link>http://www.khngai.com/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Home Video Editing</title>
    <link>http://www.khngai.com/blog/index.php?/archives/692-Home-Video-Editing.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/692-Home-Video-Editing.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=692</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=692</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;&lt;br /&gt;
Finally done with backing up all my DV tapes. They had been lying on my table for years. Other than laziness, it was because I do not have proper software tools to do that efficiently.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;This time, I found Exsate and DvDate. Exsate captures video from camcorder into separate files split according to date codes / timestamps. This way I can browse through the different scenes easily. Before using Exsate, everyone of my DV video was captured as a single big file (&amp;gt;10 GB). It is a pain to browse and backup this file into DVD.&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 25 Aug 2010 15:54:54 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/692-guid.html</guid>
    
</item>
<item>
    <title>Eee PC Keyboard Changed</title>
    <link>http://www.khngai.com/blog/index.php?/archives/681-Eee-PC-Keyboard-Changed.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/681-Eee-PC-Keyboard-Changed.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=681</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=681</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;I am a happy man today. I found a shop in Sim Lim selling OEM Eee PC 901 keyboard last week. I bought one. Unfortunately, that was a defective one. I went to Sim Lim again this afternoon, the sales girl willingly change it to a new one. It is now working flawlessly. For 27.50 SGD, I should not complain&amp;#160; too much.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 02 Aug 2010 15:56:00 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/681-guid.html</guid>
    
</item>
<item>
    <title>Visual C++ 2010 Express</title>
    <link>http://www.khngai.com/blog/index.php?/archives/657-Visual-C++-2010-Express.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/657-Visual-C++-2010-Express.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=657</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=657</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;Yeah ! I have setup Visual C++ 2010 to work with wxWidgets. The IDE is superb. Much easier to configure. The executable generated is smaller than the same one generated by MingW gcc.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;I tried to compile wxWidgets 2.8.11 with Visual C++ 2010 using the IDE. Unfortunately, the project workspaces (&amp;quot;build\msw\wx.dsw&amp;quot; &amp;amp; &amp;quot;build\msw\wx_dll.dsw&amp;quot;) conversion always fail.&lt;/p&gt; &lt;br /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;/images/blog/20100525_vc_1.png&quot; /&gt; &lt;/p&gt; &lt;br /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;/images/blog/20100525_vc_2.png&quot; /&gt; &lt;/p&gt; &lt;br /&gt;
&lt;p&gt;The solution is to compile wxWidgets using the following commands in the command line prompt.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&amp;gt; vcvars32.bat &lt;br /&gt;&amp;gt; nmake -f&amp;#160; makefile.vc&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 25 May 2010 03:36:31 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/657-guid.html</guid>
    
</item>
<item>
    <title>Visual Studio 2010 Express</title>
    <link>http://www.khngai.com/blog/index.php?/archives/655-Visual-Studio-2010-Express.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/655-Visual-Studio-2010-Express.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=655</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=655</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;Hmmm.... Apparently Visual Studio has been available free for quite a while now. Although I am happy with MingW gcc compiler, it will be good to give Visual C++ a try. After all, this is the compiler developed by the inventor of its operating system.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 23 May 2010 14:53:05 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/655-guid.html</guid>
    
</item>
<item>
    <title>Convert Chinese Sentences to PinYin Representation</title>
    <link>http://www.khngai.com/blog/index.php?/archives/650-Convert-Chinese-Sentences-to-PinYin-Representation.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/650-Convert-Chinese-Sentences-to-PinYin-Representation.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=650</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=650</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;I have just written a simple tool to convert Chinese Sentences to their PinYin representations. It&#039;s &lt;a href=&quot;/chinese/tools/converttopinyin.php&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;This tool work for both simplified and traditional Chinese sentences.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;The original intention of this tool is to help me to convert my MP3 songs with Chinese file names to PinYin file names. For example, &lt;span style=&quot;background-color: #10fffd;&quot;&gt;一千零一夜&lt;/span&gt; will be converted to &lt;font face=&quot;Arial, Helvetica&quot;&gt;&lt;strong style=&quot;background-color: #10fffd;&quot;&gt;YiQianLingYiYe&lt;/strong&gt;, This is because my car audio player cannot display Chinese characters.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 30 Apr 2010 13:10:22 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/650-guid.html</guid>
    
</item>
<item>
    <title>Emacs oh Emacs</title>
    <link>http://www.khngai.com/blog/index.php?/archives/645-Emacs-oh-Emacs.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/645-Emacs-oh-Emacs.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=645</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=645</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;I never imagine myself coming back to Emacs again. Under Windows, Notepad++ is just to good. I have not found anything come close to Notepad++ for Mac.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;Using Emacs on Mac is really a pain, especially the MacBook. There is no Home, End, Page Up, Page Down. Even the function keys, It is such a pain to map shift or control function keys.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;I guess Mac is not for techies.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;However, I must say Mac OS has a very nice Apple Terminal. It runs without X11 and supports UTF 8 characters.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;/images/blog/20100305_mac_emacs.png&quot; /&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 04 Mar 2010 15:04:46 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/645-guid.html</guid>
    
</item>
<item>
    <title>Mac Experience</title>
    <link>http://www.khngai.com/blog/index.php?/archives/644-Mac-Experience.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/644-Mac-Experience.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=644</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=644</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;5 days into using an Apple computer now. I have to say this is a beautiful machine. Sharp display and great UI. It surprises me with a build in Bash shell, Perl and emacs editor. The F3 key is a great way to switch application. And it comes with PDF writer, no need to install CuteWriter.&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;However, I am missing a lot of great PC applications.&lt;/p&gt; &lt;br /&gt;
&lt;ul&gt; 
&lt;li&gt; Notepad++&lt;/li&gt; 
&lt;li&gt;Paint dot Net (GIMP runs but very retarded compared to in Windows)&lt;br /&gt;&lt;/li&gt; 
&lt;li&gt;Autohotkey&lt;/li&gt; 
&lt;li&gt;StarDict&lt;/li&gt; 
&lt;li&gt;FreeLaunchBar&lt;/li&gt; 
&lt;li&gt;AVG&lt;/li&gt; 
&lt;li&gt;Mp3Tag&lt;/li&gt; 
&lt;li&gt;Wii Game Manager&lt;br /&gt;&lt;/li&gt; 
&lt;/ul&gt;I am grateful that at least Firefox 3.5.8 (3.6 has problem running Java applets) is running. Otherwise, I would be very very frustrated.&lt;br /&gt; 
    </content:encoded>

    <pubDate>Sun, 28 Feb 2010 09:37:27 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/644-guid.html</guid>
    
</item>
<item>
    <title>Snow Leopard + Firefox 3.6 = Java Does Not Run</title>
    <link>http://www.khngai.com/blog/index.php?/archives/643-Snow-Leopard-+-Firefox-3.6-Java-Does-Not-Run.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/643-Snow-Leopard-+-Firefox-3.6-Java-Does-Not-Run.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=643</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=643</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;Has to downgrade to Firefox version 3.5.8. The problem has been reported &lt;a href=&quot;http://www.khngai.com/blog/exit.php?url_id=286&amp;amp;entry_id=643&quot; title=&quot;http://support.mozilla.com/en-US/forum/1/564557&quot;  onmouseover=&quot;window.status=&#039;http://support.mozilla.com/en-US/forum/1/564557&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;here&lt;/a&gt; since Jan 24, 2010. No fix yet.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Wasted 1 whole day on this. &lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 26 Feb 2010 17:33:11 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/643-guid.html</guid>
    
</item>
<item>
    <title>My MacBook</title>
    <link>http://www.khngai.com/blog/index.php?/archives/642-My-MacBook.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/642-My-MacBook.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=642</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=642</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;&lt;br /&gt;
The MacBook came earlier than expected.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;This is what it shows when running Windows.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;/images/blog/20100223_macbook_1.png&quot; /&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 23 Feb 2010 15:53:00 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/642-guid.html</guid>
    
</item>
<item>
    <title>Blogging from iPhone</title>
    <link>http://www.khngai.com/blog/index.php?/archives/638-Blogging-from-iPhone.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/638-Blogging-from-iPhone.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=638</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=638</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    Finally figure out how to do this with serendipity. I need to create a separate user, and set to NOT using WYSIWYG editor. 
    </content:encoded>

    <pubDate>Thu, 11 Feb 2010 11:28:00 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/638-guid.html</guid>
    
</item>
<item>
    <title>Fix the Incorrect Timestamp of my Serendipity RSS Feed</title>
    <link>http://www.khngai.com/blog/index.php?/archives/637-Fix-the-Incorrect-Timestamp-of-my-Serendipity-RSS-Feed.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/637-Fix-the-Incorrect-Timestamp-of-my-Serendipity-RSS-Feed.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=637</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=637</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;This may be a serendipity bug. The RSS feed is always tagged with incorrect time stamps. For example, if a blog post is created on 2010 Feb 08, 23:00:00, the corresponding feed will be tagged with a timestamp of 2010 Feb 08, 07:00:00.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I figured out that this is because I have set the time zone offset to +8 in serendipity. The RSS feed is adding this offset to the timestamp. In actual fact, there is no need for serendipity to add this offset, because the time stamp is in UTC format, any RSS reader will take care of this properly. I will find some time to report this to the author.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 10 Feb 2010 14:55:09 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/637-guid.html</guid>
    
</item>
<item>
    <title>Facebook and my Blog</title>
    <link>http://www.khngai.com/blog/index.php?/archives/632-Facebook-and-my-Blog.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/632-Facebook-and-my-Blog.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=632</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=632</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;The fact that I have a personal web site sometimes makes thing a little complicated. How do I get my blog update into facebook ? Found an facebook app, &amp;quot;Social RSS&amp;quot; that suits my needs for now.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;In the process, I have created a customized RSS feed for my &lt;a href=&quot;/albums/&quot;&gt;photo album&lt;/a&gt;. It is not completed yet, but I have got the basic things working.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 05 Feb 2010 15:58:32 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/632-guid.html</guid>
    
</item>
<item>
    <title>Chinese Character Search not Working on Serendipity</title>
    <link>http://www.khngai.com/blog/index.php?/archives/631-Chinese-Character-Search-not-Working-on-Serendipity.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/631-Chinese-Character-Search-not-Working-on-Serendipity.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=631</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=631</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;I have just upgraded my serendipity version from 1.4.1 to 1.5.2. The Chinese character searching through the quick search text box is still not working. This is not a new problem, it has never worked.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;After some goggling,&amp;#160; I now understand that this is the caused by the MySQL full text search feature used by serendipity. MySQL full text search feature cannot work with CJK characters.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;More details &lt;a href=&quot;http://www.khngai.com/blog/exit.php?url_id=284&amp;amp;entry_id=631&quot; title=&quot;http://board.s9y.org/viewtopic.php?f=4&amp;amp;amp;t=15112&amp;amp;amp;p=93561#p93561&quot;  onmouseover=&quot;window.status=&#039;http://board.s9y.org/viewtopic.php?f=4&amp;amp;amp;t=15112&amp;amp;amp;p=93561#p93561&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 03 Feb 2010 14:28:05 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/631-guid.html</guid>
    
</item>
<item>
    <title>Enforce www in the URL</title>
    <link>http://www.khngai.com/blog/index.php?/archives/630-Enforce-www-in-the-URL.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/630-Enforce-www-in-the-URL.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=630</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=630</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;&lt;br /&gt;
Implemented htacess rewrite to enforce the word &amp;quot;www&amp;quot; in my web site URL. I did not pay much attention to this. I guess this was giving me some problems. For the pages maintaining sessions, khngai.com and &lt;a&gt;www.khngai.com&lt;/a&gt;&amp;#160; are having two different sessions.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;My method of resolving this :&lt;/p&gt; &lt;br /&gt;
&lt;p style=&quot;background-color: #ffff3d;&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;RewriteEngine on&lt;br /&gt;&lt;br /&gt;RewriteCond %{HTTP_HOST}&amp;#160;&amp;#160; !^www\.[^\.]+\.[^\.]+$&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [NC]&lt;br /&gt;RewriteCond %{HTTP_HOST}&amp;#160;&amp;#160; ([^\.]+\.[^\.]+)$&lt;br /&gt;RewriteRule ^cgi-bin/php[3-9]?-cgi[^/]*/(.*)$&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; http://www.%1/$1&amp;#160; [L,R=301]&lt;br /&gt;&lt;br /&gt;RewriteCond %{HTTP_HOST}&amp;#160;&amp;#160; !^www\.[^\.]+\.[^\.]+$&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [NC]&lt;br /&gt;RewriteCond %{HTTP_HOST}&amp;#160;&amp;#160; ([^\.]+\.[^\.]+)$&lt;br /&gt;RewriteRule ^(.*)$&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; http://www.%1/$1&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [L,R=301]&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;The first 3 lines are very specific to my web hosting company. &lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;My web hosting company also complained that 2 of my scripts are loading its server. One of the scripts is to generate PNG image dynamically. I have to stop using that script and pre-generate all the images. I am not entirely happy, but I am glad that they bother to find out what are loading its server.&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 03 Feb 2010 01:39:29 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/630-guid.html</guid>
    
</item>
<item>
    <title>Authentication Check on My Web Site</title>
    <link>http://www.khngai.com/blog/index.php?/archives/629-Authentication-Check-on-My-Web-Site.html</link>
            <category>Programming</category>
    
    <comments>http://www.khngai.com/blog/index.php?/archives/629-Authentication-Check-on-My-Web-Site.html#comments</comments>
    <wfw:comment>http://www.khngai.com/blog/wfwcomment.php?cid=629</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khngai.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=629</wfw:commentRss>
    

    <author>nospam@example.com (khngai)</author>
    <content:encoded>
    &lt;p&gt;I found &lt;a href=&quot;http://www.khngai.com/blog/exit.php?url_id=282&amp;amp;entry_id=629&quot; title=&quot;http://recaptcha.net/&quot;  onmouseover=&quot;window.status=&#039;http://recaptcha.net/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;reCaptcha &lt;/a&gt;by accident. The best thing is, it is free. My &amp;quot;&lt;a href=&quot;/mail/&quot;&gt;Contact Me&lt;/a&gt;&amp;quot; page has been crippled for quite a while. I was forced to reject all messages with URLs because there are so many spammer out there. I had enough from them. I believe they were using some programs to post pornographic links everywhere.&lt;br /&gt;
&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;My problem is now resolved with reCaptcha.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 28 Jan 2010 14:11:27 +0000</pubDate>
    <guid isPermaLink="false">http://www.khngai.com/blog/index.php?/archives/629-guid.html</guid>
    
</item>

</channel>
</rss>