<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A No Nonsense Blog &#187; Blog</title>
	<atom:link href="http://blog.sandeep.co.in/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sandeep.co.in</link>
	<description>Actually Its full of Nonsense</description>
	<lastBuildDate>Sat, 14 Jan 2012 22:46:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.sandeep.co.in' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A No Nonsense Blog &#187; Blog</title>
		<link>http://blog.sandeep.co.in</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.sandeep.co.in/osd.xml" title="A No Nonsense Blog" />
	<atom:link rel='hub' href='http://blog.sandeep.co.in/?pushpress=hub'/>
		<item>
		<title>Remote Lighttpd Logging and Cloudflare/Reverse Proxy</title>
		<link>http://blog.sandeep.co.in/2011/09/02/remote-lighttpd-logging-and-cloudflarereverse-proxy/</link>
		<comments>http://blog.sandeep.co.in/2011/09/02/remote-lighttpd-logging-and-cloudflarereverse-proxy/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 22:50:01 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cloudflare]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Reverse Proxy]]></category>

		<guid isPermaLink="false">http://blog.sandeep.co.in/?p=750</guid>
		<description><![CDATA[To keep the &#8216;one post per year&#8217; tradition alive, heres one for 2011! Logging the right IP with Lighttpd when behind reverse proxies When you use a reverse proxy like haproxy, varnish, nginx, squid or cloudflare, lighttpd will log the IP of the reverse proxy instead of the user&#8217;s IP While the lighttpd wiki page [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=750&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To keep the &#8216;one post per year&#8217; tradition alive, heres one for 2011!</p>
<h3>Logging the right IP with Lighttpd when behind reverse proxies</h3>
<p>When you use a reverse proxy like haproxy, varnish, nginx, squid or cloudflare, lighttpd will log the IP of the reverse proxy instead of the user&#8217;s IP</p>
<p>While the <a href="https://redmine.lighttpd.net/wiki/lighttpd/Docs:ModExtForward">lighttpd wiki page</a> says</p>
<blockquote><p>mod_accesslog: In order to see the &#8220;real&#8221; ip address in access log, you&#8217;ll have to load mod_extforward after mod_accesslog</p></blockquote>
<p>That didn&#8217;t work for me even though I get the proper IP within my application.</p>
<p>With google, I found <a href="http://fak3r.com/geek/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/">this</a></p>
<blockquote><p>accesslog.format = &#8220;%{X-Forwarded-For}i %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;"</p></blockquote>
<p>To get that to work with Cloudflare, just use %{CF-Connecting-IP}i instead of %{X-Forwarded-For}i</p>
<blockquote><p>accesslog.format = &#8220;%{CF-Connecting-IP}i %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;"</p></blockquote>
<p>You could just use that or set your own custom logging format [<a href="https://redmine.lighttpd.net/wiki/lighttpd/Docs:ModAccessLog">https://redmine.lighttpd.net/wiki/lighttpd/Docs:ModAccessLog</a>]</p>
<p>[<a href="http://www.cloudflare.com/wiki/Lighttpd">Using ExtForward with Cloudflare</a>]<br />
&#8212;&#8212;</p>
<h3>Lighttpd Remote Logging</h3>
<p>Now the remote logging with <a href="http://www.balabit.com/network-security/syslog-ng">syslog-ng</a>.<br />
rsyslog had been broken on one of my servers for quite some time and was using up 200%+ cpu for some reason. I came across syslog-ng while looking for an alternative. If you have multiple webservers for a site, its nice to have all the logs in one place</p>
<p>Easy to install on ubuntu with:</p>
<blockquote><p>sudo apt-get install syslog-ng</p></blockquote>
<p>You&#8217;ll need to do that on all the clients (systems we&#8217;re <strong>logging from</strong>) and the server (the system we&#8217;re <strong>logging to</strong>)</p>
<p>On the <strong>server</strong> edit /etc/syslog-ng/syslog-ng.conf and add &#8216;udp(ip(0.0.0.0) port(514));&#8217; to the source s_src part so it looks like this</p>
<blockquote><p>source s_src { unix-dgram(&#8220;/dev/log&#8221;); internal();<br />
file(&#8220;/proc/kmsg&#8221; program_override(&#8220;kernel&#8221;));<br />
udp(ip(0.0.0.0) port(514));<br />
};</p></blockquote>
<p>and add this to the bottom of the file</p>
<blockquote><p>destination lighttpd { file(&#8220;/var/log/lighttpd.log&#8221;); };<br />
log { source(s_src); filter(f_lighttpd); destination(lighttpd); };<br />
filter f_lighttpd { program(lighttpd); };</p></blockquote>
<p>And on the <strong>clients</strong>, at the end of&nbsp; the /etc/syslog-ng/syslog-ng.conf file, add this</p>
<blockquote><p>destination remote { udp(&#8220;[IP-Address-Of-Remote-Host]&#8221; port(514)); };<br />
filter f_lighttpd { program(lighttpd); };<br />
log { source(s_src); filter(f_lighttpd); destination(remote); };
</p></blockquote>
<p>restart syslog-ng with</p>
<blockquote><p>sudo /etc/init.d/syslog-ng restart</p></blockquote>
<p>on all clients and server, and it should start logging on the server to /var/log/lighttpd.log</p>
<p><small>Credits: <a href="http://www.ruby-forum.com/topic/94465">http://www.ruby-forum.com/topic/94465</a></small></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<strong>Duplicate logs in /var/log/syslog</strong><br />
If the httpd logs are going into both /var/log/lighttpd and /var/log/syslog<br />
find &#8216;filter f_syslog3&#8242; in /etc/syslog-ng/syslog-ng.conf<br />
and replace the whole line with</p>
<blockquote><p>filter f_syslog3 { not facility(auth, authpriv, mail) and not filter(f_debug) and not filter(f_lighttpd); };</p></blockquote>
<p>do the same for the line with &#8216;filter f_daemon&#8217;</p>
<blockquote><p>filter f_daemon { facility(daemon) and not filter(f_debug) and not filter(f_lighttpd); };
</p></blockquote>
<p>And restart syslog-ng</p>
<p>See you in 2012 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /> Tagged: <a href='http://blog.sandeep.co.in/tag/cloudflare/'>Cloudflare</a>, <a href='http://blog.sandeep.co.in/tag/lighttpd/'>Lighttpd</a>, <a href='http://blog.sandeep.co.in/tag/logging/'>Logging</a>, <a href='http://blog.sandeep.co.in/tag/reverse-proxy/'>Reverse Proxy</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/750/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=750&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2011/09/02/remote-lighttpd-logging-and-cloudflarereverse-proxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>
	</item>
		<item>
		<title>Evading far future expires!</title>
		<link>http://blog.sandeep.co.in/2010/12/22/evading-far-future-expires/</link>
		<comments>http://blog.sandeep.co.in/2010/12/22/evading-far-future-expires/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 18:22:45 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[optimizing]]></category>
		<category><![CDATA[webserver performance]]></category>
		<category><![CDATA[yslow]]></category>

		<guid isPermaLink="false">http://sandeep.co.in/?p=643</guid>
		<description><![CDATA[I use rsync to sync files between my computer and my webserver. When I make changes to the static content (mostly css or javascript files), most users still see the cached versions in their browsers thanks to my far futures expires header following advice from yslow. From what I understand, with a far future expires [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=643&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use rsync to sync files between my computer and my webserver. When I make changes to the static content (mostly css or javascript files), most users still see the cached versions in their browsers thanks to my far futures expires header following <a title="Perfomance Rules: Expires" href="http://developer.yahoo.com/performance/rules.html#expires" target="_blank">advice from yslow</a>.</p>
<p>From what I understand, with a far future expires header, the browser simply loads that content from cache (till it expires) without contacting the server. It would probably have gotten a &#8217;304 &#8211; Not Modified&#8217; response anyway. So, you save an HTTP request and the little processing required to verify if both parties have the same file (see <a title="ETag" href="http://en.wikipedia.org/wiki/HTTP_ETag" target="_blank">ETags</a>)</p>
<p>So, back to my problem with browsers using the old file (by respecting the far future expires header) instead of the new one I just uploaded. Theres two ways to get the browser to load the latest file. Either the page has to be <a title="Refresh and bypass cache" href="https://secure.wikimedia.org/wikipedia/en/wiki/Wikipedia:Bypass_your_cache#Instructions_for_various_browsers" target="_blank">refreshed without cache</a> (by pressing the refresh button, or ctrl+f5 in most browsers) or you&#8217;ll have to use a different filename in the html and also rename the file on your server. Waiting for all your users to refresh the page is not a good idea <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What I do is add a version number (usually the date of update) to the filename within the html and get the webserver (lighttpd in my case) to serve the current file no matter what the version. For example, Instead of</p>
<blockquote><p>&lt;script src=&#8221;/js/filename.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p>I use</p>
<blockquote><p>&lt;script src=&#8221;/js/filename.20101222.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p>The webserver will serve the same filename.js file whether you use filename.20101222.js or filename.20050101.js, but the browser will now be using the current version of the file and this will also cache this file until you update again.</p>
<p>I use <a title="Lighttpd" href="http://www.lighttpd.net/" target="_blank">lighttpd</a> and here is the config ( for filename.{version}.js )</p>
<blockquote><p>url.rewrite = (&#8220;^/js/([a-zA-Z0-9\/]*)\.([0-9]*)\.js$&#8221; =&gt; &#8220;/js/$1.js&#8221;)</p></blockquote>
<p>If you want it to be /js/{version}/filename.js</p>
<blockquote><p>url.rewrite = (&#8220;^/js/([0-9]*)/([a-zA-Z0-9\/]*)\.js$&#8221; =&gt; &#8220;/js/$2.js&#8221;)</p></blockquote>
<p>I use only numbers (dates as yyyymmdd), hence the [0-9]. Adjust the regex to whatever versioning you plan to use.</p>
<p>I&#8217;m not used to apache, but I&#8217;m guessing this is what the settings would look like on it</p>
<blockquote><p>RewriteRule         ^/js/([a-zA-Z0-9\/]*)\.([0-9]*)\.js$        /js/$1.js</p>
<p>RewriteRule         ^/js/([0-9]*)/([a-zA-Z0-9\/]*)\.js$         /js/$2.js</p></blockquote>
<br /> Tagged: <a href='http://blog.sandeep.co.in/tag/apache/'>Apache</a>, <a href='http://blog.sandeep.co.in/tag/lighttpd/'>Lighttpd</a>, <a href='http://blog.sandeep.co.in/tag/optimizing/'>optimizing</a>, <a href='http://blog.sandeep.co.in/tag/webserver-performance/'>webserver performance</a>, <a href='http://blog.sandeep.co.in/tag/yslow/'>yslow</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/643/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=643&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2010/12/22/evading-far-future-expires/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>
	</item>
		<item>
		<title>Stupid Idea?</title>
		<link>http://blog.sandeep.co.in/2009/07/19/stupid-idea/</link>
		<comments>http://blog.sandeep.co.in/2009/07/19/stupid-idea/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 13:15:01 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://sandeep.co.in/?p=531</guid>
		<description><![CDATA[Image by Somewhat Frank via Flickr random thought from irc [d1g1t] I just thought of an awesome blogging platform! [d1g1t] weird [d1g1t] but awesome [d1g1t] plain html pages! [d1g1t] we just write posts as html in text files in a folder, a program updates pages/links when we add a new file! [d1g1t] one dynamic file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=531&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="display:block;margin:1em;">
<div>
<dl class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/19348052@N00/251789400"><img width="240" height="216" src="http://sandeep.co.in/photos/albums/userpics/2009/07/251789400_97a89e0b2e_m.jpg" alt="Blogging For Dummies" title="Blogging For Dummies" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution">Image by <a href="http://www.flickr.com/photos/19348052@N00/251789400">Somewhat Frank</a> via Flickr</dd>
</dl>
</div>
</div>
<p>random thought from irc <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<blockquote><p>
[d1g1t] I just thought of an awesome <a class="zem_slink" href="http://en.wikipedia.org/wiki/Blog" title="Blog" rel="wikipedia">blogging</a> platform!<br />
[d1g1t] weird<br />
[d1g1t] but awesome<br />
[d1g1t] plain <a class="zem_slink" href="http://en.wikipedia.org/wiki/HTML" title="HTML" rel="wikipedia">html</a> pages!<br />
[d1g1t] we just write posts as html in <a class="zem_slink" href="http://en.wikipedia.org/wiki/Text_file" title="Text file" rel="wikipedia">text files</a> in a folder, a program updates pages/links when we add a new file!<br />
[d1g1t] one dynamic file for comments maybe<br />
[d1g1t] rally rally fast<br />
[d1g1t] the program could <a class="zem_slink" href="http://en.wikipedia.org/wiki/Compress" title="Compress" rel="wikipedia">compress</a> images and js too<br />
[d1g1t] db-less<br />
[d1g1t] might get chaotic for terribly large sites<br />
[d1g1t] if people use comments. otherwise blazing fast!<br />
* d1g1t patents it
</p></blockquote>
<p>Would it work? and what are the downsides?</p>
<div class="zemanta-pixie" style="margin-top:10px;height:15px;"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/3300e3d1-f3b7-41df-a67b-6475c2748799/" title="Reblog this post [with Zemanta]"><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=3300e3d1-f3b7-41df-a67b-6475c2748799" alt="Reblog this post [with Zemanta]" style="border:medium none;float:right;" /></a><span class="zem-script more-related pretty-attribution"></span></div>
<br /> Tagged: blogging, HTML, idea, stupid <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=531&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2009/07/19/stupid-idea/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>

		<media:content url="http://sandeep.co.in/photos/albums/userpics/2009/07/251789400_97a89e0b2e_m.jpg" medium="image">
			<media:title type="html">Blogging For Dummies</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/reblog_e.png?x-id=3300e3d1-f3b7-41df-a67b-6475c2748799" medium="image">
			<media:title type="html">Reblog this post [with Zemanta]</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Groups: Indian WebComics</title>
		<link>http://blog.sandeep.co.in/2008/11/05/google-groups-indian-webcomics/</link>
		<comments>http://blog.sandeep.co.in/2008/11/05/google-groups-indian-webcomics/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 13:42:34 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[comics]]></category>
		<category><![CDATA[googlegroups]]></category>
		<category><![CDATA[indian]]></category>
		<category><![CDATA[Mailing list]]></category>
		<category><![CDATA[webcomics]]></category>

		<guid isPermaLink="false">http://sandeep.co.in/?p=500</guid>
		<description><![CDATA[Saad Akhtar suggested we use mailing lists to share new Indian webcomics we discover, so that people don&#8217;t regularly have to keep checking THIS post. So here it is! Subscribe to IndianWebComics Email: Visit this group http://groups.google.com/group/indianwebcomics You can either join by entering your email in the above Box or you can follow it via [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=500&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img zemanta-action-click">
<div class="wp-caption alignright" style="width: 160px"><a href="http://www.crunchbase.com/product/google-groups"><img title="Image representing Google Groups as depicted i..." src="http://www.crunchbase.com/assets/images/resized/0001/2884/12884v1-max-250x250.png" alt="Image representing Google Groups as depicted i..." height="55" width="150" /></a><p class="wp-caption-text">Image via CrunchBase</p></div>
</div>
<p><a href="http://www.flyyoufools.com" target="_blank">Saad Akhtar</a> <a href="http://sandeep.co.in/2008/09/20/list-of-web-comics-by-indians/#comment-495" target="_blank">suggested</a> we use <a class="zem_slink" title="Mailing list" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mailing_list">mailing lists</a> to share new Indian <a class="zem_slink" title="Webcomic" rel="wikipedia" href="http://en.wikipedia.org/wiki/Webcomic">webcomics</a> we discover, so that people don&#8217;t regularly have to keep checking <a href="http://sandeep.co.in/2008/09/20/list-of-web-comics-by-indians/" target="_blank">THIS</a> post. So here it is!</p>
<table style="background-color:rgb(255,255,255);padding:5px;" border="0" cellspacing="0">
<tbody>
<tr>
<td>
  <img src="http://groups.google.com/groups/img/3nb/groups_bar.gif" alt="Google Groups" height="26" width="132" />
  </td>
</tr>
<tr>
<td style="padding-left:5px;">
  <b>Subscribe to IndianWebComics</b>
  </td>
</tr>
<form action="http://groups.google.com/group/indianwebcomics/boxsubscribe">
<tr>
<td style="padding-left:5px;">
  Email: </p>
</td>
</tr>
</form>
<tr>
<td align="right">
  <a href="http://groups.google.com/group/indianwebcomics">Visit this group</a>
</td>
</tr>
</tbody>
</table>
<p><a href="http://groups.google.com/group/indianwebcomics" target="_blank">http://groups.google.com/group/indianwebcomics</a></p>
<p>You can either join by entering your email in the above Box or you can follow it via <a href="http://groups.google.com/group/indianwebcomics/feeds" target="_blank">RSS or Atom feeds</a>. Note that you won&#8217;t be able to reply to mails if don&#8217;t join the group.</p>
<div style="margin-top:10px;height:15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/fe88c7ba-a243-451f-b861-9f908b53f1ce/" title="Zemified by Zemanta"><img style="border:medium none;float:right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=fe88c7ba-a243-451f-b861-9f908b53f1ce" alt="Reblog this post [with Zemanta]" /></a></div>
<br /> Tagged: comics, googlegroups, indian, Mailing list, webcomics <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/500/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=500&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2008/11/05/google-groups-indian-webcomics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>

		<media:content url="http://www.crunchbase.com/assets/images/resized/0001/2884/12884v1-max-250x250.png" medium="image">
			<media:title type="html">Image representing Google Groups as depicted i...</media:title>
		</media:content>

		<media:content url="http://groups.google.com/groups/img/3nb/groups_bar.gif" medium="image">
			<media:title type="html">Google Groups</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/reblog_e.png?x-id=fe88c7ba-a243-451f-b861-9f908b53f1ce" medium="image">
			<media:title type="html">Reblog this post [with Zemanta]</media:title>
		</media:content>
	</item>
		<item>
		<title>Get the Cricket score on Linux Command Line or Conky</title>
		<link>http://blog.sandeep.co.in/2008/11/01/get-the-cricket-score-on-linux-command-line-or-conky/</link>
		<comments>http://blog.sandeep.co.in/2008/11/01/get-the-cricket-score-on-linux-command-line-or-conky/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 09:45:31 +0000</pubDate>
		<dc:creator>d1g1t</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[Cricket]]></category>
		<category><![CDATA[cricket score]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Test cricket]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sandeep.co.in/?p=488</guid>
		<description><![CDATA[I was trying to find a way to get live cricket scores on my desktop. I could have used retreived rss feeds every few minutes, but I found a simpler way on a mailing list Here, a python script by Sridhar. I modified it a bit to fit my horizontal conky, and also the display [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=488&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 250px"><a href="http://commons.wikipedia.org/wiki/Image:Master_Blaster_at_work.jpg"><img title="Sachin smiling" src="http://dstatic.com/blog/202px-Master_Blaster_at_work.jpg" alt="Sachin smiling" width="240" height="140" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
<p>I was trying to find a way to get live <a class="zem_slink" title="Cricket" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cricket">cricket</a> scores on my desktop. I could have used retreived <a class="zem_slink" title="RSS" rel="wikipedia" href="http://en.wikipedia.org/wiki/RSS">rss feeds</a> every few minutes, but I found a simpler way on a mailing list <a href="http://www.ae.iitm.ac.in/pipermail/ilugc/2004-July/011269.html" target="_blank">Here</a>, a <a class="zem_slink" title="Python (automobile maker)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Python_%28automobile_maker%29">python</a> script by Sridhar.</p>
<p>I modified it a bit to fit my horizontal conky, and also the display format.</p>
<p>Click on image to see complete screenshot:</p>
<p><a href="http://dstatic.com/blog/conky.png"><img class="aligncenter size-thumbnail wp-image-489" title="conky" src="http://dstatic.com/blog/conky-150x134.png" alt="" width="150" height="134" /></a></p>
<p>Download <a href="http://dstatic.com/blog/downloads/cricscore.py" target="_blank">cricscore.py<br />
</a> and place it in your <a class="zem_slink" title="Home directory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Home_directory">home folder</a>.</p>
<p>To get the live score in the terminal, just type</p>
<blockquote><p>python cricscore.py</p></blockquote>
<p>If you want it to show in conky, just add this line to your .conkyrc file where you want it to show</p>
<blockquote><p>${execi 30 python cricscore.py}</p></blockquote>
<p>that will update the score every 30 seconds</p>
<p>Anyway, heres my .conkyrc script: <a href="http://dstatic.com/blog/downloads/conkyrc" target="_blank">.conkyrc</a>. (for the rhythmbox script, check here</p>
<br /> Tagged: command line, conky, Cricket, cricket score, Linux, Python, Test cricket, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sandeepdotcodotin.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sandeepdotcodotin.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sandeepdotcodotin.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sandeep.co.in&amp;blog=20174603&amp;post=488&amp;subd=sandeepdotcodotin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sandeep.co.in/2008/11/01/get-the-cricket-score-on-linux-command-line-or-conky/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a3c966a28c6647b518bac954473cb4f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">d1g1t</media:title>
		</media:content>

		<media:content url="http://dstatic.com/blog/202px-Master_Blaster_at_work.jpg" medium="image">
			<media:title type="html">Sachin smiling</media:title>
		</media:content>

		<media:content url="http://dstatic.com/blog/conky-150x134.png" medium="image">
			<media:title type="html">conky</media:title>
		</media:content>
	</item>
	</channel>
</rss>
