<?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"
	>

<channel>
	<title>ckunte.com &#187; Plugins</title>
	<atom:link href="http://ckunte.com/archives/category/plugins/feed" rel="self" type="application/rss+xml" />
	<link>http://ckunte.com</link>
	<description>Life, dreams, technology, perfection, rhythm and melody.</description>
	<pubDate>Sat, 11 Oct 2008 19:02:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>On the drawing board: Go green</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsketchup-go-green&amp;seed_title=On+the+drawing+board%3A+Go+green</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsketchup-go-green&amp;seed_title=On+the+drawing+board%3A+Go+green#comments</comments>
		<pubDate>Sat, 30 Aug 2008 11:18:06 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ckunte.com/?p=1993</guid>
		<description><![CDATA[Google SketchUp Blog: &#8220;See your building&#8217;s energy performance.&#8221;
]]></description>
			<content:encoded><![CDATA[<p><a href="http://sketchupdate.blogspot.com/2008/08/see-your-buildings-energy-performance.html">Google SketchUp Blog</a>: &#8220;See your building&#8217;s energy performance.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsketchup-go-green&amp;seed_title=On+the+drawing+board%3A+Go+green/feed</wfw:commentRss>
		</item>
		<item>
		<title>In the repo</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fin-the-repo&amp;seed_title=In+the+repo</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fin-the-repo&amp;seed_title=In+the+repo#comments</comments>
		<pubDate>Thu, 14 Aug 2008 21:20:01 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ckunte.com/?p=1977</guid>
		<description><![CDATA[Moved both of my simplistic plugins&#8212;Extract blockquote info, and Small caps&#8212;to be hosted, served and updated via wordpress.org. Should&#8217;ve done this long ago, but I guess it&#8217;s never too late. Btw, there&#8217;s a donation link somewhere, and it points here. If you like the plugin(s), and feel like donating, please do&#8212;to a charity of your [...]]]></description>
			<content:encoded><![CDATA[<p>Moved both of my simplistic plugins&#8212;<a href="http://wordpress.org/extend/plugins/extract-blockquote-info/">Extract blockquote info</a>, and <a href="http://wordpress.org/extend/plugins/small-caps/">Small caps</a>&#8212;to be hosted, served and updated via <a href="http://wordpress.org/">wordpress.org</a>. Should&#8217;ve done this long ago, but I guess it&#8217;s never too late. Btw, there&#8217;s a donation link somewhere, and it points here. If you like the plugin(s), and feel like donating, please do&#8212;to a charity of your choice. (I&#8217;d be happy to know if you did.)</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fin-the-repo&amp;seed_title=In+the+repo/feed</wfw:commentRss>
		</item>
		<item>
		<title>Small caps</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsmall-caps&amp;seed_title=Small+caps</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsmall-caps&amp;seed_title=Small+caps#comments</comments>
		<pubDate>Fri, 25 Jul 2008 21:41:51 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ckunte.com/?p=1931</guid>
		<description><![CDATA[If you have ever read the Economist&#8217;s print edition, you will have noticed the elegance of those small capitalized words, which fit right in the flow of text. Or if you&#8217;re in the print business, and you&#8217;re a typography nut, then I&#8217;m sure you use Ctrl+Shift+K in Microsoft Word to transform certain select words into [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever read the Economist&#8217;s print edition, you will have noticed the elegance of those <a href="http://en.wikipedia.org/wiki/Small_caps">small capitalized</a> words, which fit right in the flow of text. Or if you&#8217;re in the print business, and you&#8217;re a typography nut, then I&#8217;m sure you use <code>Ctrl+Shift+K</code> in Microsoft Word to transform certain select words into small caps.</p>
<p>You can also achieve this for web typography by defining a simple style, like the following.</p>
<pre>abbr { font-variant:small-caps }</pre>
<p>If the text you&#8217;re trying to style has already been typed in capitals, then this above style does nothing. To overcome this, you&#8217;d do the following:</p>
<pre>abbr { text-transform:lowercase; font-variant:small-caps }</pre>
<p>The only problem with this though is that all capitalized words need to be enclosed within <code>abbr</code> tags. On my site, I have over a few hundred posts that have capitalized words. I don&#8217;t have the energy to sift through them all just to update the markup. I searched for a WordPress plugin. Apparently there aren&#8217;t any. So, I wrote one.</p>
<p>This plugin looks for capitalized words with 2 or more letters, and then applies the opening and closing abbr tags to such words. Now, all I have to do is add the <code>abbr</code> styling to my <code>style.css</code> to make it look small capitalized.</p>
<p>Let me digress here to put forth a couple of assumptions.</p>
<ol>
<li>I use <code>abbr</code>, since most capitalized words I use are primarily abbreviations.</li>
<li>I apply <code>acronym</code> to those capitalized words that require an explanation.</li>
</ol>
<p><strong>Download:</strong> the <a href="http://wordpress.org/extend/plugins/small-caps/">small caps plugin</a> from WordPress Plugin Directory.</p>
<p><strong>Install and use</strong></p>
<ol>
<li>Extract and upload the <code>small-caps.php</code> file to your WordPress plugin folder (<code>wp-content/plugins/</code>). Go to Plugins page and activate &#8220;Small caps&#8221; plugin.</li>
<li><strong>Styling:</strong> Copy-paste the following to your current WordPress theme&#8217;s <code>style.css</code> file: <code>abbr { text-transform:lowercase; font-variant:small-caps }</code></li>
</ol>
<p><strong>FAQ</strong></p>
<ol>
<li>This plugin applies the <code>abbr</code> tag to words already in capitals. (Without adding the styling above, the plugin does not by itself automatically apply styling&#8212;and this is intentional.)</li>
<li>On the web, I think, small caps probably look best in serif fonts larger than 13pixels in size.</li>
<li>Due to the way it looks up a word within white spaces using <abbr>REGEX</abbr>, some linked capitalized words are not transformed to small caps&#8212;depending upon the punctuation used prior to or after the word.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsmall-caps&amp;seed_title=Small+caps/feed</wfw:commentRss>
		</item>
		<item>
		<title>Go mobile</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fgo-mobile&amp;seed_title=Go+mobile</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fgo-mobile&amp;seed_title=Go+mobile#comments</comments>
		<pubDate>Sat, 26 Jan 2008 18:22:58 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Mobile]]></category>

		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/go-mobile</guid>
		<description><![CDATA[Taking Amit&#8217;s idea to the next level, here&#8217;s how you can make a mobile version of your blog. 
Create a folder named m in your blog root&#8212;if you have a self-hosted blog. Dump a file named index.php with the following content in it:

&#60;?php
header('HTTP/1.1 301 Moved Permanently');
header( 'Location: http://www.google.com/reader/m/view/feed/http://ckunte.com/feed/atom' ) ;
?&#62;
&#160;
Download this example: /inputfiles/m.txt

Be sure to [...]]]></description>
			<content:encoded><![CDATA[<p>Taking <a title="Make a Mobile Friendly Version of your Blog with Google Reader" href="http://www.labnol.org/internet/design/how-to-create-mobile-phone-optimized-blog/2132/">Amit&#8217;s idea</a> to the next level, here&#8217;s how you can make a mobile version of your blog. <span id="more-1722"></span></p>
<p>Create a folder named <code>m</code> in your blog root&#8212;if you have a self-hosted blog. Dump a file named <code>index.php</code> with the following content in it:</p>
<ol class="code">
<li><code>&#60;?php</code></li>
<li><code>header('HTTP/1.1 301 Moved Permanently');</code></li>
<li><code>header( 'Location: http://www.google.com/reader/m/view/feed/http://ckunte.com/feed/atom' ) ;</code></li>
<li><code>?&#62;</code></li>
<li>&#160;</li>
<li class="download">Download this example: <a href="http://ckunte.com/inputfiles/m.txt" title="Download the above code as a text file">/inputfiles/m.txt</a></li>
</ol>
<p>Be sure to replace my site's feed address with yours in the code above. Your mobile blog version would now be accessible at this address, for example: <code>yoursite.com/m</code> (or <code>yoursite.com/blog/m</code> depending upon where you created the m subfolder on your host).</p>
<p>I am <a title="Subdomains and subdirectories" href="http://www.mattcutts.com/blog/subdomains-and-subdirectories/">averse to creating a sudomain</a> just for this, but if you still prefer a subdomain like address, here&#8217;s a plugin code I just whipped up.<sup>1</sup></p>
<ol class="code">
<li><code>&#60;?php</code></li>
<li class="cmnt"><code>/*</code></li>
<li class="cmnt"><code>Plugin Name: Mobile version via Google Reader</code></li>
<li class="cmnt"><code>Plugin URI: http://ckunte.com/</code></li>
<li class="cmnt"><code>Description: m. subdomain address is redirected to google's mobile version.</code></li>
<li class="cmnt"><code>Author: Chetan Kunte</code></li>
<li class="cmnt"><code>Version: 1.0</code></li>
<li class="cmnt"><code>Author URI: http://ckunte.com/wordpress</code></li>
<li class="cmnt"><code>*/</code></li>
<li>&#160;</li>
<li><code>if ( !strstr( $_SERVER['HTTP_HOST'], 'm.' ) )</code></li>
<li><code>return;</code></li>
<li>&#160;</li>
<li><code>header('HTTP/1.1 301 Moved Permanently');</code></li>
<li><code>header('Location: http://www.google.com/reader/m/view/feed/http://' . trailingslashit(substr($_SERVER['HTTP_HOST'], 2)) . 'feed/atom');</code></li>
<li><code>exit();</code></li>
<li>&#160;</li>
<li><code>?&#62;</code></li>
<li>&#160;</li>
<li class="download">Download this example: <a href="http://ckunte.com/inputfiles/moplug.txt" title="Download the above code as a text file">/inputfiles/moplug.txt</a></li>
</ol>
<p>Download the file above<sup>2</sup>, and rename it to, say, <code>moplug.php</code> and upload it to <code>wp-content/plugins</code> folder. Your mobile site would now be accessible at m.mysite.com&#8212;all this without having to create a subdomain.
<ol class="footnotes">
<li id="footnote_0_1722" class="footnote">Do note that I haven&#8217;t been able to test this on my host, since I have a subdomain related problem at the moment, but I believe this code would work.</li>
<li id="footnote_1_1722" class="footnote">Make sure there are no empty spaces after <code>?&gt;</code> in both the code snippets</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fgo-mobile&amp;seed_title=Go+mobile/feed</wfw:commentRss>
		</item>
		<item>
		<title>Code transform</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fcode-transform&amp;seed_title=Code+transform</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fcode-transform&amp;seed_title=Code+transform#comments</comments>
		<pubDate>Thu, 17 Jan 2008 22:27:47 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Noteworthy]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/code-transform</guid>
		<description><![CDATA[Programming code and computer input files have one thing in common. They are best read in monospace fonts. It&#8217;s lovely if you know the line numbers too&#8212;particularly helpful in making references. I have two kinds of input files from different types of structural analysis software:

SACS input files are in a fixed format. Column sensitive information.
SESAM, [...]]]></description>
			<content:encoded><![CDATA[<p>Programming code and computer input files have one thing in common. They are best read in monospace fonts. It&#8217;s lovely if you know the line numbers too&#8212;particularly helpful in making references. I have two kinds of input files from different types of structural analysis software:</p>
<ol>
<li>SACS input files are in a fixed format. Column sensitive information.</li>
<li>SESAM, USFOS and ABAQUS input files are in a free format. Column insensitive information.</li>
</ol>
<p>I wanted a simple solution to display my structural analysis input files&#8212;for some articles I have restarted working on&#8212;without modifying them or embedding them within the post markup, albeit painfully. So I turned to Dunstan&#8217;s <a href="http://1976design.com/blog/archive/2004/07/29/redesign-tag-transform/">tag transformations</a>. <a href="http://mathiasbynens.be/archive/2005/06/tag-transformations">Mathias Bynens</a> wrote a plugin&#8212;based on Dunstan&#8217;s tag transformation, which also includes image transformation. I didn&#8217;t need the image transformation bit, so I edited Bynens&#8217;s plugin to include only the code transformation.</p>
<p><strong>How it works:</strong> I upload an input file or input file snippet&#8212;say <code>filename.txt</code>&#8212;to a folder called <code>inputfiles</code> in the root. Then, in the article, I add the following code&#8212;to display the input file, together with line numbers (auto-generated via the plugin):</p>
<p><code>&lt;codeins="filename" /&gt;</code></p>
<p><strong>Download:</strong> The <a href="/files/code-transform.phps">edited plugin is here</a>, if you&#8217;re interested. </p>
<p><strong>Install and use:</strong> Rename the downloaded file to <code>code-transform.php</code> and upload to your WordPress plugin folder (<code>wp-content/plugins/</code>). Go to the Plugins page, and activate &#8220;Code transform&#8221; plugin. That’s all.</p>
<p><b>Important note:</b> For this plugin to work, you will need to uncheck <em>&#8220;WordPress should correct invalidly nested XHTML automatically.&#8221;</em> under <em>Options > Writing</em>. </p>
<p>A demo of this plugin can be seen <a href="http://ckunte.com/archives/subdomain-redirect">here</a>.</p>
<p><strong>Presentation style [update]:</strong> You may use Dunstan&#8217;s <a href="http://1976design.com/blog/code/456d.txt">CSS code</a> to style the displayed code in your post. Just copy the CSS code and paste it in <code>style.css</code> in your active theme folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fcode-transform&amp;seed_title=Code+transform/feed</wfw:commentRss>
		</item>
		<item>
		<title>Site search autodiscovery</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsite-search-autodiscovery&amp;seed_title=Site+search+autodiscovery</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsite-search-autodiscovery&amp;seed_title=Site+search+autodiscovery#comments</comments>
		<pubDate>Mon, 11 Jun 2007 21:48:51 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Browser]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[Geekspeak]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[opensearch]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/site-search-autodiscovery</guid>
		<description><![CDATA[I&#8217;m down with Conjunctivitis, and doing all the things I am forbidden to do&#8212;surfing the internet, watching TV, reading a book and if that wasn&#8217;t enough, updating some code. And I just finished implementing search auto-discovery on this site1.
Much like auto-discovering feeds2, an Opensearch-standard compliant browser now auto-discovers the availability of search on this site.

Try [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m down with <a href="http://en.wikipedia.org/wiki/Conjunctivitis">Conjunctivitis</a>, and doing all the things I am forbidden to do&#8212;surfing the internet, watching TV, reading a book and if that wasn&#8217;t enough, updating some code. And I just finished implementing search auto-discovery on this site<sup>1</sup>.</p>
<p>Much like auto-discovering feeds<sup>2</sup>, an <a href="http://www.opensearch.org/Home">Opensearch</a>-standard compliant browser now auto-discovers the availability of search on this site.</p>
<p><img class='centered' src='http://ckunte.com/wp-content/uploads/2007/10/ckuntexml.png' alt='Open search' /></p>
<p>Try loading this site in a supported<sup>3</sup> browser. You&#8217;ll either notice a subtle search icon highlighted in the default browser theme&#8212;suggesting that there&#8217;s something you can add to your list of search plugins or more visibly via a &#8220;+&#8221; sign, if you use a theme like <a href="https://addons.mozilla.org/en-US/firefox/addon/3479">Winstripe</a>. Pull the search menu down and you&#8217;ll notice this: Add &#8220;ckunte.com&#8221;.</p>
<p>Enabling this on any site is easy. You&#8217;ll need to add the following<sup>4</sup> in your site&#8217;s header part of XHTML code. I&#8217;m using my (this) site&#8217;s code for example:</p>
<p><code>&lt;link rel="search" type="application/opensearchdescription+xml" href="/ckuntecom.xml" title="ckunte.com" /&gt;</code></p>
<p>(I had <a href="http://ckunte.com/archives/firefox-search-plugin-update">previously explained</a> the construction of Opensearch XML file&#8212;<code>ckuntecom.xml</code>, which enables search auto-discovery.)</p>
<p>As a user, for sites that do not offer this feature, you can always use <a href="http://ckunte.com/archives/opensearchfox">OpensearchFox</a>. But if you&#8217;re a site owner, it is probably a good idea to provide this option to your regular readers and referrers.
<ol class="footnotes">
<li id="footnote_0_1497" class="footnote">I am beginning to test Sneha&#8217;s patience now.</li>
<li id="footnote_1_1497" class="footnote">Via the orange feed icon on the right end of the address or location bar.</li>
<li id="footnote_2_1497" class="footnote">Available in Opensearch supported browsers&#8212;Firefox and Internet Explorer 7.</li>
<li id="footnote_3_1497" class="footnote">Change file location, file name and title as applicable.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsite-search-autodiscovery&amp;seed_title=Site+search+autodiscovery/feed</wfw:commentRss>
		</item>
		<item>
		<title>OpenSearchFox</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fopensearchfox&amp;seed_title=OpenSearchFox</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fopensearchfox&amp;seed_title=OpenSearchFox#comments</comments>
		<pubDate>Wed, 14 Feb 2007 16:13:18 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[opensearch]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/opensearchfox</guid>
		<description><![CDATA[Wow! This is amazingly cool. It lets you create your own Firefox site plugin for any site! Now you neither need my how-to nor any of my files.
]]></description>
			<content:encoded><![CDATA[<p>Wow! <a href="https://addons.mozilla.org/firefox/3698/" title="Create your own Firefox site plugin for any site!">This is amazingly cool</a>. It lets you create your own Firefox site plugin for any site! Now you neither need <a href="http://ckunte.com/archives/firefox-search-plugin-update">my how-to</a> nor any of my files.</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fopensearchfox&amp;seed_title=OpenSearchFox/feed</wfw:commentRss>
		</item>
		<item>
		<title>Subdomain redirect</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsubdomain-redirect&amp;seed_title=Subdomain+redirect</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsubdomain-redirect&amp;seed_title=Subdomain+redirect#comments</comments>
		<pubDate>Tue, 08 Aug 2006 12:25:39 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Server side]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/2006/08/08/subdomain-redirect</guid>
		<description><![CDATA[A couple of months ago, Matt released a simple plugin to redirect one&#8217;s site from the www. to no-www. I.e., If someone types http://www.ckunte.com in browser, they&#8217;d get redirected to http://ckunte.com. Matt&#8217;s code uses substr to strip the www. part of the URI (four characters, including the dot).
How does this interest me? Well, it&#8217;s nice [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago, Matt released a simple plugin to redirect one&#8217;s site from the www. to no-www. I.e., If someone types <code>http://www.ckunte.com</code> in browser, they&#8217;d get redirected to <code>http://ckunte.com</code>. Matt&#8217;s code uses <a href="http://my2.php.net/substr">substr</a> to strip the <code>www.</code> part of the URI (four characters, including the dot).</p>
<p>How does this interest me? Well, it&#8217;s nice to get an accurate report of stats rather than the same domain fragmented based on user&#8217;s query. In addition, I continue to get hits from my old address: <code>http://chetan.ckunte.com</code>. I wanted to change that and so, I did. Simple really.</p>
<p>While <code>www.</code> is 4 characters, <code>chetan.</code> is 7 characters. So, my updated plugin code based on <a href="http://photomatt.net/2006/06/13/wordpress-no-www/">Matt&#8217;s no-www</a> looks like this:</p>
<ol class="code">
<li><code>&#60;?php</code></li>
<li class="cmnt"><code>/*</code></li>
<li class="cmnt"><code>Plugin Name: No Chetan</code></li>
<li class="cmnt"><code>Plugin URI: http://ckunte.com/</code></li>
<li class="cmnt"><code>Description: Chetan subdomain address is redirected to root.</code></li>
<li class="cmnt"><code>Author: Chetan Kunte based on Matt Mullenweg no-www</code></li>
<li class="cmnt"><code>Version: 1.0</code></li>
<li class="cmnt"><code>Author URI: http://ckunte.com/</code></li>
<li class="cmnt"><code>*/</code></li>
<li>&#160;</li>
<li class="cmnt"><code>if ( !strstr( $_SERVER['HTTP_HOST'], 'chetan.' ) )</code></li>
<li class="cmnt"><code>return;</code></li>
<li>&#160;</li>
<li class="cmnt"><code>header('HTTP/1.1 301 Moved Permanently');</code></li>
<li class="cmnt"><code>header('Location: http://' . substr($_SERVER['HTTP_HOST'], 7) . $_SERVER['REQUEST_URI']);</code></li>
<li class="cmnt"><code>exit();</code></li>
<li>&#160;</li>
<li class="cmnt"><code>?&#62;</code></li>
<li class="download">Download this example: <a href="http://ckunte.com/inputfiles/subdomain-redirect.txt" title="Download the above code as a text file">/inputfiles/subdomain-redirect.txt</a></li>
</ol>
<p>(Seriously, no more posts after this for at least <a href="http://ckunte.com/archives/2006/08/07/auto-response-mode-on">another 3-weeks</a>, as I have been saying.) </p>
<p>Update: Did I mention that this technique also redirects all permalinks with old address to the new one?</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fsubdomain-redirect&amp;seed_title=Subdomain+redirect/feed</wfw:commentRss>
		</item>
		<item>
		<title>Blockquotes in feed</title>
		<link>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fblockquotes-in-feed&amp;seed_title=Blockquotes+in+feed</link>
		<comments>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fblockquotes-in-feed&amp;seed_title=Blockquotes+in+feed#comments</comments>
		<pubDate>Mon, 03 Jul 2006 12:52:09 +0000</pubDate>
		<dc:creator>Chyetanya Kunte</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://ckunte.com/archives/2006/07/03/blockquotes-in-feed</guid>
		<description><![CDATA[I hear this on and off about how my plugin fails to show-up the credit cite/title when the post is viewed in a feed reader or a feed service (like Bloglines). So, I have an observation to make.
Most feed readers, if not all, do not process javascripts/ecmascripts, and are ignored by the feed client/service. Since [...]]]></description>
			<content:encoded><![CDATA[<p>I hear this on and off about how <a href="http://ckunte.com/archives/2006/03/17/block-quotations">my plugin</a> fails to show-up the credit cite/title when the post is viewed in a feed reader or a feed service (like Bloglines). So, I have an observation to make.</p>
<p>Most feed readers, if not all, do not process javascripts/ecmascripts, and are ignored by the feed client/service. Since the <a href="http://ckunte.com/archives/2006/03/17/block-quotations">Blockquote plugin</a> uses javascript only to visually display (the credits already fed in the blockquote markup), it is essentially cosmetic. So let me try and kill two birds with one stone here. </p>
<p>One: That it is okay if the cosmetic appearence of title/link, meant for humans to read, is wrapped in a div, instead of cite below the quotation. Semantically speaking, it is aleady taken care of in the blockquote markup. For example, if you disable scripting in your browser, you won&#8217;t see the (cosmetic) citation and or link, but it still exists in the blockquote markup and it is still semantically correct.</p>
<p>Two: Blockquotes citation/title <em>are</em> viewable via the tooltip, <em>irrespective</em> of whether the scripting is enabled (in the browser) or not. And that these are viewable as a tooltip (hover over the blockquote for a second and you&#8217;ll see the title text) in both the browser <em>and</em> in feed readers (or in feed services).</p>
<p>I hope that clears the air.</p>
<p><strong>Update:</strong> Having said that, I would like to iterate that there&#8217;s room for improving the tooltip feature inherently in browsers and feed readers. See my post <a href="http://ckunte.com/archives/2006/05/31/clarity-of-links">Clarity of links</a> with regards to enhancing the tooltip feature (within browser, by browser makers).</p>
<p><strong>Cliche (update) 2:</strong> Egad, for a line of plugin code, I never thought I&#8217;d end up writing two pages clarifying it :).</p>
]]></content:encoded>
			<wfw:commentRss>http://ckunte.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fckunte.com%2Farchives%2Fblockquotes-in-feed&amp;seed_title=Blockquotes+in+feed/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
