<?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>from the desk of aniketh</title>
	<atom:link href="http://aniketh.in/feed/" rel="self" type="application/rss+xml" />
	<link>http://aniketh.in</link>
	<description>code and ideas</description>
	<lastBuildDate>Thu, 24 Feb 2011 11:56:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Search only within posts in WordPress</title>
		<link>http://aniketh.in/2011/02/search-only-within-posts-in-wordpress/</link>
		<comments>http://aniketh.in/2011/02/search-only-within-posts-in-wordpress/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 11:56:28 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=43</guid>
		<description><![CDATA[If you only want search to look within posts and not in pages for a wordpress site, then a quick and easy way to be to add the following code to your theme&#8217;s functions.php file : add_filter&#40;'pre_get_posts', 'aa_search_query_vars'&#41;; &#160; function aa_search_query_vars&#40;$public_query_vars&#41; &#123; global $wp_query; if&#40;is_search&#40;&#41;&#41; &#123; $wp_query-&#62;query_vars&#91;'post_type'&#93; = 'post'; &#125; return $wp_query; &#125;]]></description>
			<content:encoded><![CDATA[<p>If you only want search to look within posts and not in pages for a wordpress site, then a quick and easy way to be to add the following code to your theme&#8217;s functions.php file :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'aa_search_query_vars'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> aa_search_query_vars<span style="color: #009900;">&#40;</span><span style="color: #000088;">$public_query_vars</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_search<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query_vars</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2011/02/search-only-within-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shorten URLs in strings with bit.ly</title>
		<link>http://aniketh.in/2010/11/shorten-urls-in-strings-with-bit-ly/</link>
		<comments>http://aniketh.in/2010/11/shorten-urls-in-strings-with-bit-ly/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 03:52:51 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=40</guid>
		<description><![CDATA[Here is a simple class that shortens the URLs within a string using the bit.ly shortening service. Example is at the bottom of the file. If you only need to shorten a list of URLs (not within the string), then use the “shorten” function. Bitly api documentation is at http://code.google.com/p/bitly-api/wiki/ApiDocumentation .]]></description>
			<content:encoded><![CDATA[<p>Here is a simple class that shortens the URLs within a string using the bit.ly shortening service. Example is at the bottom of the file.</p>
<script src="http://gist.github.com/274306.js"></script>
<p>If you only need to shorten a list of URLs (not within the string), then use the “shorten” function. Bitly api documentation is at http://code.google.com/p/bitly-api/wiki/ApiDocumentation .</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/11/shorten-urls-in-strings-with-bit-ly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hiding Hosting Providers Nameservers</title>
		<link>http://aniketh.in/2010/11/hiding-hosting-providers-name-servers/</link>
		<comments>http://aniketh.in/2010/11/hiding-hosting-providers-name-servers/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 03:29:56 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=26</guid>
		<description><![CDATA[If you need to use custom nameservers that show up when someone does a whois query, then here is what you do: Get the IP addresses of the nameservers that your host gives you. They may give it in the welcome mail, or via support. You can also get this by using dig Now set [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to use custom nameservers that show up when someone does a whois query, then here is what you do:<br />
Get the IP addresses of the nameservers that your host gives you. They may give it in the welcome mail, or via support. You can also get this by using <code>dig <nameserver></code></p>
<p>Now set up child name servers with the IP addresses obtained previously. After this is setup it should look like the following :<br />
<img src="http://aniketh.in/wp-content/uploads/2010/11/child-name-servers1.png" alt="Setup of child name servers" title="child-name-servers" width="542" height="111" class="alignnone size-full wp-image-32" /></p>
<p>Once this is done, you can then set up your nameservers to these child name servers. This setup should look like the following :</p>
<p><img src="http://aniketh.in/wp-content/uploads/2010/11/nameservers.png" alt="" title="nameservers" width="504" height="83" class="alignnone size-full wp-image-33" /></p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/11/hiding-hosting-providers-name-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine as a CDN</title>
		<link>http://aniketh.in/2010/10/google-app-engine-as-a-cdn/</link>
		<comments>http://aniketh.in/2010/10/google-app-engine-as-a-cdn/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 19:19:10 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=21</guid>
		<description><![CDATA[If you are looking to offloading some of your bandwidth costs to the great google, and were thinking of using the google app engine as a free content delivery network, then have a look at the cirrux cache project. Installing it is pretty straightforward, considering you follow the quick installation guide as stated in the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking to offloading some of your bandwidth costs to the great google, and were thinking of using the google app engine as a free content delivery network, then have a look at the <a href="http://code.google.com/p/cirruxcache/">cirrux cache project</a>.</p>
<p>Installing it is pretty straightforward, considering you follow the <a href="http://code.google.com/p/cirruxcache/wiki/QuickInstall">quick installation guide</a> as stated in the readme. If you are looking to use this along with your wordpress installation, then have a look at <a href="http://a-l.fr/blog/2009/11/28/how-to-use-cirruxcache-and-google-app-engine-to-cache-static-content-of-your-wp-blog/">this link</a>, which gives a much better and easier explanation and a step by step approach on what you really need in order to set up.</p>
<p>Using this technique may also help because the HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel.</p>
<p>If you are feeling lazy and just want to use something, then have a look at <a href="http://cdn-cloud.appspot.com/">http://cdn-cloud.appspot.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/10/google-app-engine-as-a-cdn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monokai Komodo Edit/IDE Color Scheme</title>
		<link>http://aniketh.in/2010/10/monokai-komodo-edit-ide-color-scheme/</link>
		<comments>http://aniketh.in/2010/10/monokai-komodo-edit-ide-color-scheme/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 19:33:13 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=16</guid>
		<description><![CDATA[Looking through the interwebs for a suitable dark color scheme for Komodo Edit did not turn up favorable results, other than the one three year old topic over at the Activestate forums. The only one that did stand out was the Monokai theme (and the Django theme, but that was too green), but the fonts [...]]]></description>
			<content:encoded><![CDATA[<p>Looking through the interwebs for a suitable dark color scheme for Komodo Edit did not turn up favorable results, other than the one three year old topic over at the <a href="http://community.activestate.com/forum-topic/where-to-find-komodo-edit">Activestate forums</a>.</p>
<p>The only one that did stand out was the Monokai theme (and the <a href="http://files.getdropbox.com/u/335132/Django.ksf">Django</a> theme, but that was too green), but the fonts were too big and too italicized for my tastes.</p>
<p>Here is a file with saner values :</p>
<p><a href="/wp-content/uploads/2010/10/Monokai_komodo_theme.ksf">Monokai Komodo Theme Updated</a></p>
<p>Hope you enjoy it.</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/10/monokai-komodo-edit-ide-color-scheme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick SSH Proxy</title>
		<link>http://aniketh.in/2010/10/quick-ssh-proxy/</link>
		<comments>http://aniketh.in/2010/10/quick-ssh-proxy/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 19:12:40 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=11</guid>
		<description><![CDATA[If you have access to ssh to a server, its very simple to use the connection as a proxy server. To do so go to the terminal and run the following command : ssh -C2qTnN -D 8081 youruser@yourhost.com The number after -D (8081) specifies which port to listen on. Change it to something else of [...]]]></description>
			<content:encoded><![CDATA[<p>If you have access to ssh to a server, its very simple to use the connection as a proxy server. To do so go to the terminal and run the following command :</p>
<p><code>ssh -C2qTnN -D 8081  youruser@yourhost.com</code></p>
<p>The number after -D (8081) specifies which port to listen on. Change it to something else of your liking if something else is using this port.</p>
<p>Then use localhost with the port number you specified as the SOCKS proxy, like so :<br />
<img src="http://aniketh.in/wp-content/uploads/2010/10/firefox-proxy-config.png" alt="" title="firefox-proxy-config" width="523" height="556" class="alignnone size-full wp-image-12" /></p>
<p>You can use ipchicken.com to check that everything is set up correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/10/quick-ssh-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download files from a 4chan post</title>
		<link>http://aniketh.in/2010/10/download-images-4chan/</link>
		<comments>http://aniketh.in/2010/10/download-images-4chan/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 19:00:04 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=5</guid>
		<description><![CDATA[If you need to download all images (or files) from a 4chan post, then here is a quick script to do it. You can run it using PHP on the command line. Saves a lot of time when you see interesting wallpapers and things like that. Once you save the file, make it executable by [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to download all images (or files) from a 4chan post, then here is a quick script to do it. You can run it using PHP on the command line. Saves a lot of time when you see interesting wallpapers and things like that.</p>
<script src="http://gist.github.com/275478.js"></script>
<p>Once you save the file, make it executable by using <code>chmod a+x download-4chan.php</code>and then you can start downloading all the images using something like
<pre>./download-4chan.php http://boards.4chan.org/wg/res/2508871</pre>
<p>-</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/10/download-images-4chan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://aniketh.in/2010/06/hello-world/</link>
		<comments>http://aniketh.in/2010/06/hello-world/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 20:51:35 +0000</pubDate>
		<dc:creator>aniketh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aniketh.in/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://aniketh.in/2010/06/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

