<?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>Passing Thoughts</title>
	<atom:link href="http://chinmaykamat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chinmaykamat.wordpress.com</link>
	<description>Try not. Do... or do not. There is no try. - Master Yoda (Star Wars V)</description>
	<lastBuildDate>Thu, 10 Nov 2011 13:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chinmaykamat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Passing Thoughts</title>
		<link>http://chinmaykamat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chinmaykamat.wordpress.com/osd.xml" title="Passing Thoughts" />
	<atom:link rel='hub' href='http://chinmaykamat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Emacs : eldoc mode and c-eldoc mode</title>
		<link>http://chinmaykamat.wordpress.com/2010/05/22/emacs-eldoc-mode-and-c-eldoc-mode/</link>
		<comments>http://chinmaykamat.wordpress.com/2010/05/22/emacs-eldoc-mode-and-c-eldoc-mode/#comments</comments>
		<pubDate>Sat, 22 May 2010 10:17:20 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=374</guid>
		<description><![CDATA[eldoc mode as the name suggests provides documentation for Elisp files. This is a very useful and cool mode and shows the function signature in the mode-line when your cursor is on a particular function.  It also provides info on the variables. Check out the screen-shots below. To start eldoc mode, add the following to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=374&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://www.emacswiki.org/emacs/ElDoc" target="_blank">eldoc mode</a> as the name suggests provides documentation for Elisp files. This is a very useful and cool mode and shows the function signature in the mode-line when your cursor is on a particular function.  It also provides info on the variables. Check out the screen-shots below.</p>
<p style="text-align:justify;"><a href="http://chinmaykamat.files.wordpress.com/2010/05/eldoc1.png"><img class="aligncenter size-full wp-image-375" title="eldoc1" src="http://chinmaykamat.files.wordpress.com/2010/05/eldoc1.png?w=600&#038;h=120" alt="eldoc : Function signatures" width="600" height="120" /></a></p>
<p style="text-align:justify;"><a href="http://chinmaykamat.files.wordpress.com/2010/05/eldoc2.png"><img class="aligncenter  size-full wp-image-376" title="eldoc2" src="http://chinmaykamat.files.wordpress.com/2010/05/eldoc2.png?w=600&#038;h=120" alt="eldoc : Variables description" width="600" height="120" /></a></p>
<p style="text-align:justify;">To start eldoc mode, add the following to your .emacs file</p>
<pre><code>;;Turn on documentation in elisp mode
(add-hook 'emacs-lisp-mode-hook
          '(lambda ()
	     (turn-on-eldoc-mode)))</code></pre>
<p><a href="http://github.com/nflath/c-eldoc" target="_blank">c-eldoc mode</a> is <a href="http://www.emacswiki.org/emacs/CEldocMode" target="_blank">eldoc mode for c</a>. It displays the arguments of C functions while one is programming.</p>
<p><a href="http://chinmaykamat.files.wordpress.com/2010/05/eldoc3.png"><img class="aligncenter size-full wp-image-383" title="eldoc3" src="http://chinmaykamat.files.wordpress.com/2010/05/eldoc3.png?w=600&#038;h=139" alt="c-eldoc" width="600" height="139" /></a></p>
<p>To add c-eldoc mode, get the latest<a title="c-eldoc.el" href="http://github.com/nflath/c-eldoc/raw/master/c-eldoc.el" target="_blank"> c-eldoc.el</a>, copy it in your load-path and then add then following to your .emacs file.</p>
<pre><code>(add-hook 'c-mode-hook 'c-turn-on-eldoc-mode)</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=374&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2010/05/22/emacs-eldoc-mode-and-c-eldoc-mode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>

		<media:content url="http://chinmaykamat.files.wordpress.com/2010/05/eldoc1.png" medium="image">
			<media:title type="html">eldoc1</media:title>
		</media:content>

		<media:content url="http://chinmaykamat.files.wordpress.com/2010/05/eldoc2.png" medium="image">
			<media:title type="html">eldoc2</media:title>
		</media:content>

		<media:content url="http://chinmaykamat.files.wordpress.com/2010/05/eldoc3.png" medium="image">
			<media:title type="html">eldoc3</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs : PKGBUILD mode</title>
		<link>http://chinmaykamat.wordpress.com/2010/05/05/emacs-pkgbuild-mode/</link>
		<comments>http://chinmaykamat.wordpress.com/2010/05/05/emacs-pkgbuild-mode/#comments</comments>
		<pubDate>Wed, 05 May 2010 17:54:00 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=368</guid>
		<description><![CDATA[Discovered an amazing major mode for Emacs a few days back to edit PKGBUILDs. Essentially based on shell mode with the following extra bindings specific to PKGBUILDs. C-c C-a pkgbuild-tar C-c C-b pkgbuild-makepkg C-c C-e pkgbuild-etags C-c RET pkgbuild-update-md5sums-line C-c C-r pkgbuild-increase-release-tag C-c C-u pkgbuild-browse-url I especially like pkgbuild-update-md5sums-line &#8211; very useful. It also has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=368&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Discovered an amazing major mode for Emacs a few days back to edit PKGBUILDs. Essentially based on shell mode with the following extra bindings specific to PKGBUILDs.</p>
<p><code>C-c C-a		pkgbuild-tar<br />
C-c C-b		pkgbuild-makepkg<br />
C-c C-e		pkgbuild-etags<br />
C-c RET		pkgbuild-update-md5sums-line<br />
C-c C-r		pkgbuild-increase-release-tag<br />
C-c C-u		pkgbuild-browse-url</code></p>
<p>I especially like <code>pkgbuild-update-md5sums-line</code> &#8211; very useful.</p>
<p>It also has some other cool functions. Check it out <a title="pkgbuild-mode" href="http://github.com/juergenhoetzel/pkgbuild-mode" target="_blank">here</a>.</p>
<p>My fork of the same is available <a title="My fork of pkgbuild-mode" href="http://github.com/cdkamat/pkgbuild-mode" target="_blank">here.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=368&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2010/05/05/emacs-pkgbuild-mode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Talk invisible mode in Pidgin</title>
		<link>http://chinmaykamat.wordpress.com/2010/01/22/google-talk-invisible-mode-in-pidgin/</link>
		<comments>http://chinmaykamat.wordpress.com/2010/01/22/google-talk-invisible-mode-in-pidgin/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 15:54:54 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=362</guid>
		<description><![CDATA[Setting the status invisible for a GTalk account has been a problem for a while now. Although there are third party plugins available, (like the one here) most of them do not seem to work. The basic reason of this is, although Google Talk is basically based on XMPP , it handles invisibility, away etc [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=362&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Setting the status invisible for a GTalk account has been a problem for a while now. Although there are third party plugins available, (like the one <a title="Plugin invisible" href="http://fahhem.com/pidgin/" target="_blank">here</a>) most of them do not seem to work. The basic reason of this is, although Google Talk is basically based on XMPP , it handles invisibility, away etc in a different way. And according to <a title="Pidgin" href="http://developer.pidgin.im/ticket/5828" target="_blank">this ticket</a> on the pidgin bug track, they don&#8217;t quite like it <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  . After going through a bit of documentation mentioned <a title="Google code" href="http://code.google.com/apis/talk/jep_extensions/shared_status.html" target="_blank">here</a>, I came up with the following xmpp console commands to make invisibilty work without a problem in pidgin for google talk.</p>
<p style="text-align:justify;">1) This requires the XMPP console so start that plugin. It comes by default in Pidgin and can be enabled via Tools-&gt;Plugins.</p>
<p style="text-align:justify;">2) Start the XMPP console. Tools -&gt; XMPP Console.</p>
<p style="text-align:justify;">For more information on the upcoming steps, check the documentation linked above.</p>
<p style="text-align:justify;">3) Send the following XML in the XMPP console.</p>
<p><pre class="brush: xml;">&lt;iq type='get' to='gmail.com'&gt;
  &lt;query xmlns='http://jabber.org/protocol/disco#info'/&gt;
&lt;/iq&gt;</pre></p>
<p>4) Now get your current status list. Change username to your gmail username before sending <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><pre class="brush: xml;">
&lt;iq type='get' to='username@gmail.com' id='ss-1' &gt;
  &lt;query xmlns='google:shared-status' version='2'/&gt;
&lt;/iq&gt;</pre></p>
<p>This list can be pretty big if you have many saved messages. The output should be something like.</p>
<p><pre class="brush: xml;">&lt;iq to='username@gmail.com/89089080' from='username@gmail.com' id='ss-1' type='result'&gt;
	&lt;query xmlns='google:shared-status' status-min-ver='2' status-max='512' status-list-max='3' status-list-contents-max='5'&gt;
		&lt;status/&gt;
		&lt;show&gt;dnd&lt;/show&gt;
		&lt;invisible value='false'/&gt;
	&lt;/query&gt;
&lt;/iq&gt;</pre></p>
<p>Observe the <code>invisible</code> value there. That is what we will be manipulating to the our status to invisible.</p>
<p>5) Now, to set your status to invisible, send the following in the xmpp console.</p>
<p><pre class="brush: xml;">&lt;iq type='set' to='username@gmail.com' id='ss-2'&gt;
  	&lt;query xmlns='google:shared-status' version='2'&gt;
		&lt;invisible value='true'/&gt;
       &lt;/query&gt;
&lt;/iq&gt;</pre></p>
<p>Although, the pidgin status does not change, you are infact invisible. You can check in gmail or ask someone on your chat list <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>6) To get out of invisibility, send the following.</p>
<p><pre class="brush: xml;">&lt;iq type='set' to='username@gmail.com' id='ss-2'&gt;
  &lt;query xmlns='google:shared-status' version='2'&gt;
    &lt;status/&gt;
	&lt;show&gt;dnd&lt;/show&gt;
	&lt;invisible value='false'/&gt;
&lt;/query&gt;
&lt;/iq&gt;</pre></p>
<p>Here the invisible line is important. Other lines are a copy paste of the result of your status list with some minor changes.</p>
<p>This can be a bit tedious, but if anyone is ready to make a plugin out of it, the currently non working one linked above would be a good start.</p>
<p>Enjoy the power of invisibility.</p>
<p>Special thanks to <a title="Amod" href="http://amodjaltade.blogspot.com/" target="_blank">Amod</a> for helping me to test this.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/362/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=362&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2010/01/22/google-talk-invisible-mode-in-pidgin/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>Pidgin Plugins for peace of mind</title>
		<link>http://chinmaykamat.wordpress.com/2010/01/21/pidgin-plugins-for-peace-of-mind/</link>
		<comments>http://chinmaykamat.wordpress.com/2010/01/21/pidgin-plugins-for-peace-of-mind/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:08:41 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=360</guid>
		<description><![CDATA[I guess the title says it all 1) Group Blocker This plugin allows you to block an entire group in plugin. Nice if you have a group of Irritating people in your chat list. An Arch package for this is available on AUR here. 2) Away on Lock Pidgin has a feature to set your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=360&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I guess the title says it all <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p style="text-align:justify;"><strong>1) </strong><a title="Group Blocker" href="http://developer.pidgin.im/ticket/3813" target="_blank"><strong>Group Blocker</strong></a></p>
<p style="text-align:justify;">This plugin allows you to block an entire group in plugin. Nice if you have a group of Irritating people in your chat list.</p>
<p style="text-align:justify;">An Arch package for this is available on AUR <strong><a title="AUR Grp Blocker" href="http://aur.archlinux.org/packages.php?do_Details=1&amp;ID=12135" target="_blank">here</a></strong>.</p>
<p style="text-align:justify;"><strong>2) Away on Lock</strong></p>
<p style="text-align:justify;">Pidgin has a feature to set your status to away after a while if idle. However, this feature is known to be quite buggy especially on the Windows version of Pidgin.</p>
<p style="text-align:justify;">The following plugins can be used for the same &#8211;</p>
<p style="text-align:justify;">For Linux &#8211; <strong><a title="Away on Lock" href="http://costela.net/projects/awayonlock/" target="_blank">Away on Lock</a></strong>. An arch package for the same can be found on the AUR <strong><a title="Aur away on lock" href="http://aur.archlinux.org/packages.php?ID=29584" target="_blank">here</a></strong>.</p>
<p style="text-align:justify;">For Windows &#8211; <strong><a title="Lock n Roll" href="http://csammisrun.net/blog/2009/06/lock-n-roll-11/" target="_blank">Lock &#8216;n&#8217; Roll</a></strong></p>
<p style="text-align:justify;">Lock &#8216;n&#8217; Roll does not change the status if it is busy, invisible or already away. I see this as a bug in the busy case. The code is quite simple to understand and edit and also has documentation. If anyone has a pidgin windows devel environment, that can be changed easily.</p>
<p style="text-align:justify;">Other <strong><a title="3rd party pidgin" href="http://developer.pidgin.im/wiki/ThirdPartyPlugins" target="_blank">Third Party Pidgin Plugins</a></strong>.</p>
<p style="text-align:justify;">Since this is the first post of this year, Happy New Year people <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=360&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2010/01/21/pidgin-plugins-for-peace-of-mind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>Hashbang #! and amarok1 on Arch</title>
		<link>http://chinmaykamat.wordpress.com/2009/12/07/hashbang/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/12/07/hashbang/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 15:09:43 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=356</guid>
		<description><![CDATA[The #! at the start of bash, ruby, python scripts is called the hashbang. Its use with the Amarok install &#8211; One or two days after writing the article about amarok1 installation on Arch, a new version of amarok1 with ruby1.9 support was uploaded. As most of the ruby scripts for amarok1 still work only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=356&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The #! at the start of bash, ruby, python scripts is called the hashbang. Its use with the Amarok install &#8211;</p>
<p style="text-align:justify;">One or two days after writing the article about <a title="amarok1 on arch" href="http://chinmaykamat.wordpress.com/2009/11/03/installing-amarok-1-4-on-arch-linux/#more-335" target="_blank">amarok1 installation on Arch</a>, a <a title="Aur Amarok1" href="http://aur.archlinux.org/packages.php?ID=25712" target="_blank">new version of amarok1</a> with ruby1.9 support was uploaded. As most of the ruby scripts for amarok1 still work only with ruby1.8, I decided to keep my old version. Today, while I was looking through a few bash scripts, I realized that using <strong>#! </strong> in the needed ruby scripts was a better option. So, now I use the  AUR package and just change the hashbang lines in my scripts to point to ruby1.8 exec. If only I had realized this earlier <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p style="text-align:justify;">Anyways, more info about hashbang <strong><a title="Hashbang wiki" href="http://en.wikipedia.org/wiki/Shebang_(Unix)" target="_blank">here</a></strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/356/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/356/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/356/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=356&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/12/07/hashbang/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>wget : Add progress bar to non verbose mode</title>
		<link>http://chinmaykamat.wordpress.com/2009/11/26/wget-add-progressbar-nv/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/11/26/wget-add-progressbar-nv/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 17:12:58 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=346</guid>
		<description><![CDATA[Check this bug report for the problem I had with default mode. wget has four levels of verbosity which are described as below in its man page &#8211; -d --debug Turn on debug output, meaning various information important to the developers of Wget if it does not work properly. Your system administrator may have chosen to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=346&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Check <strong><a title="Bug report" href="http://savannah.gnu.org/bugs/?22448" target="_blank">this bug report</a></strong> for the problem I had with default mode.</p>
<p style="text-align:justify;">wget has four levels of verbosity which are described as below in its man page &#8211;</p>
<p style="text-align:justify;"><code>-d --debug<br />
Turn on debug output, meaning various information important to the developers of Wget if it does not work properly.  Your system administrator may have chosen to compile Wget without debug support, in which case -d will not work.  Please note that compiling with debug support is always safe---Wget compiled with the debug support will not print any debug info unless requested with -d.</code></p>
<p><code>-q --quiet<br />
Turn off Wget's output.</code></p>
<p><code>-v --verbose<br />
Turn on verbose output, with all the available data.  The default output is verbose.</code></p>
<p><code> </code></p>
<p><span style="font-family:monospace;">-nv &#8211;no-verbose</span></p>
<p><code> Turn off verbose without being completely quiet (use -q for that), which means that error messages and basic information still get<br />
printed.</code></p>
<p style="text-align:justify;">The problem with these is that the verbose mode prints too much info, quiet prints nothing and non-verbose prints info which is not useful in any way.</p>
<p><span id="more-346"></span><br />
By default the non-verbose mode prints the output as follows &#8211;</p>
<p><code>$ wget -nv ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2<br />
2009-11-26 22:16:40 URL: ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2 [1609032] -&gt; "wget-1.12.tar.bz2" [1] </code></p>
<p style="text-align:justify;">I wanted the non-verbose mode to print a progress bar for reasons which are similar to those mentioned in <strong><a title="Bug report" href="http://savannah.gnu.org/bugs/?22448" target="_blank">this bug report</a></strong>. The only difference being that instead of Gentoo, I use Arch and pacman. So, I took the diff provided in the bug report modified it a bit to work with v1.12 and also made a PKGBUILD for my Arch use. I am attaching both of them below. After using this patch the output with the -nv option is as follows &#8211;</p>
<p><code>$ wget -nv ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2<br />
38% [=============&gt;                         ] 614,880     79.5K/s  eta 13s</code></p>
<p>Problem solved <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:justify;"><strong>Patch</strong> &#8212; Save this as wget_nv_pbar.diff in the same folder as the PKGBUILD if you are building in Arch using the PKGBUILD given below. If you use normal patch, you can do it however you want <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><pre class="brush: diff;">
#Created by Chinmay Kamat &lt;chinmaykamat@gmail.com&gt;
--- wget-1.12.orig/src/main.c	2009-09-22 08:33:11.000000000 +0530
+++ wget-1.12/src/main.c	2009-11-26 12:21:15.156859000 +0530
@@ -1140,7 +1140,7 @@

   /* Initialize progress.  Have to do this after the options are
      processed so we know where the log file is.  */
-  if (opt.verbose)
+  if (!opt.quiet)
     set_progress_implementation (opt.progress_type);

   /* Fill in the arguments.  */

--- wget-1.12.orig/src/progress.c	2009-09-22 08:19:32.000000000 +0530
+++ wget-1.12/src/progress.c	2009-11-26 12:53:11.309295000 +0530
@@ -291,7 +291,7 @@
          been retrieved.  12.8% will round to 12% because the 13% mark
          has not yet been reached.  100% is only shown when done.  */
       int percentage = 100.0 * bytes_displayed / dp-&gt;total_length;
-      logprintf (LOG_VERBOSE, &quot;%3d%%&quot;, percentage);
+      logprintf (LOG_NOTQUIET, &quot;%3d%%&quot;, percentage);
     }

   {
@@ -325,7 +325,7 @@
           wgint bytes_sofar = bytes_displayed - dp-&gt;initial_length;
           double eta = dltime * bytes_remaining / bytes_sofar;
           if (eta &lt; INT_MAX - 1)
-            logprintf (LOG_VERBOSE, &quot; %s&quot;,
+            logprintf (LOG_NOTQUIET, &quot; %s&quot;,
                        eta_to_human_short ((int) (eta + 0.5), true));
         }
     }
@@ -333,10 +333,10 @@
     {
       /* When done, print the total download time */
       if (dltime &gt;= 10)
-        logprintf (LOG_VERBOSE, &quot;=%s&quot;,
+        logprintf (LOG_NOTQUIET, &quot;=%s&quot;,
                    eta_to_human_short ((int) (dltime + 0.5), true));
       else
-        logprintf (LOG_VERBOSE, &quot;=%ss&quot;, print_decimal (dltime));
+        logprintf (LOG_NOTQUIET, &quot;=%ss&quot;, print_decimal (dltime));
     }
 }

@@ -652,7 +652,7 @@
   create_image (bp, dltime, true);
   display_image (bp-&gt;buffer);

-  logputs (LOG_VERBOSE, &quot;\n\n&quot;);
+  logputs (LOG_NOTQUIET, &quot;\n\n&quot;);

   xfree (bp-&gt;buffer);
   xfree (bp);
@@ -1071,8 +1071,8 @@
 display_image (char *buf)
 {
   bool old = log_set_save_context (false);
-  logputs (LOG_VERBOSE, &quot;\r&quot;);
-  logputs (LOG_VERBOSE, buf);
+  logputs (LOG_NOTQUIET, &quot;\r&quot;);
+  logputs (LOG_NOTQUIET, buf);
   log_set_save_context (old);
 }

--- wget-1.12.orig/src/retr.c	2009-09-04 22:01:54.000000000 +0530
+++ wget-1.12/src/retr.c	2009-11-26 12:21:15.167860000 +0530
@@ -234,7 +234,7 @@
   if (flags &amp; rb_skip_startpos)
     skip = startpos;

-  if (opt.verbose)
+  if (!opt.quiet)
     {
       /* If we're skipping STARTPOS bytes, pass 0 as the INITIAL
          argument to progress_create because the indicator doesn't</pre></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>PKGBUILD</strong></p>
<p><pre class="brush: plain;"># $Id: PKGBUILD 52882 2009-09-23 03:39:20Z allan $
# Maintainer: Allan McRae &lt;allan@archlinux.org&gt;
# Contributor: Judd Vinet &lt;jvinet@zeroflux.org&gt;
# Modified By:  Chinmay Kamat &lt;chinmaykamat@gmail.com&gt;
pkgname=wget
pkgver=1.12
pkgrel=1
pkgdesc=&quot;A network utility to retrieve files from the Web&quot;
arch=('i686' 'x86_64')
url=&quot;http://www.gnu.org/software/wget/wget.html&quot;
license=('GPL3')
groups=('base')
depends=('glibc' 'openssl')
optdepends=('ca-certificates: HTTPS downloads')
backup=('etc/wgetrc')
install=wget.install
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('141461b9c04e454dc8933c9d1f2abf83')

build() {
  patch -Np0 -i $startdir/wget_nv_pbar.diff || return 1
  cd ${srcdir}/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=${pkgdir} install
}</pre></p>
<p>Get the wget.install from <strong><a title="wget.install" href="http://repos.archlinux.org/wsvn/packages/wget/repos/core-i686/wget.install?op=dl&amp;rev=0" target="_blank">here.</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/346/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=346&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/11/26/wget-add-progressbar-nv/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Amarok 1.4 on Arch Linux</title>
		<link>http://chinmaykamat.wordpress.com/2009/11/03/installing-amarok-1-4-on-arch-linux/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/11/03/installing-amarok-1-4-on-arch-linux/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:29:52 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=335</guid>
		<description><![CDATA[Installing Amarok 1.4 on Arch Linux is a piece of cake. The package is present on AUR and it has patches for Wikipedia problem, the modified cover fetcher and some others. All you need to do is &#8211; yaourt -S amarok1 and you are done. This will get Amarok 1.4 up and running on your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=335&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Installing Amarok 1.4 on Arch Linux is a piece of cake. The package is <a title="AUR amarok1" href="http://aur.archlinux.org/packages.php?ID=25712" target="_blank">present on AUR</a> and it has patches for Wikipedia problem, the modified cover fetcher and some others. All you need to do is &#8211;</p>
<p style="text-align:justify;"><code>yaourt -S amarok1</code></p>
<p style="text-align:justify;">and you are done. This will get Amarok 1.4 up and running on your system. But making it work is a bit of a problem. As the binaries are installed in a different directory viz. <code>/opt/amarok/</code> you will need to add that path to your PATH varible. This will make sure amarok starts without the amarokapp error but the collection scanner does not seem to work. And without a collection there is no way I am going to use amarok. I tried to find various ways around this problem (I had Amarok 2 installed the first time this was done, tried installing without it on the system, adding the /opt/ path at the start of $PATH ) but they did not work so I decided to edit the PKGBUILD file provided on the AUR page. Few of the other problems that I have solved here and my assumptions are mentioned below &#8211;</p>
<p style="text-align:justify;"><span id="more-335"></span></p>
<ul>
<li>I removed the /opt/amarok prefix so now the amarok1 pkg will conflict amarok 2.2 &#8212; only one can be installed at a time.</li>
<li>I found that &#8216;ruby&#8217; is included as a dependency in the PKGBUILD where as ruby1.8 is a build dependency. Amarok uses ruby1.8 so I modified the PKGBUILD to set ruby1.8 (which is compiled from AUR) as a dependency. (EDIT &#8212; Just as I finished this article, it seems the AUR PKGBUILD has added the patches to compile Amarok1 with ruby1.9 &#8230; but the scripts still require ruby1.8 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  &#8230; you always have a choice <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
<li>I also modified the ruby1.8 PKGBUILD to remove the postfixes used there. This assumes that you do not use ruby 1.9. All Amarok scripts that I know are either ruby1.8 based or pyqt3 (handled later). So without this, those scripts fail. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
<li>Due to <a title="pyqt bug" href="http://bugs.archlinux.org/task/16932" target="_blank">this bug</a> in the current pyqt3 package, I had to to install pyqt3 from source. ( This is insanely simple due to <a title="ABS" href="http://wiki.archlinux.org/index.php/ABS_-_The_Arch_Build_System" target="_blank"><strong>ABS</strong></a>).</li>
</ul>
<p>I am attaching the modified PKGBUILD below. Use with care <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li><strong>Amarok1 PKGBUILD </strong>(With my modifications)</li>
<p><pre class="brush: plain;"># Contributor: Juanma Hernández &lt;juanmah@gmail.com&gt;
# Modified by Chinmay Kamat &lt;chinmaykamat@gmail.com&gt;
pkgname=amarok1
_origname=amarok
pkgver=1.4.10
pkgrel=7
pkgdesc=&quot;amaroK - a media player for KDE - v1.4.10 xine engine with wikipedia patch (single package)&quot;
arch=(&quot;i686&quot; &quot;x86_64&quot;)
url=&quot;http://amarok.kde.org&quot;
license=('GPL')
depends=('xine-lib&gt;=1.1.3' 'libmysqlclient&gt;=5.0.45' 'postgresql-libs&gt;=8.2.4' 'ruby1.8' 'tunepimp&gt;=0.5.3' 'kdelibs3&gt;=3.5.7' 'libgpod&gt;=0.6.0'  'libifp&gt;=1.0.0.2' 'libnjb&gt;=2.2.5' 'libvisual&gt;=0.4.0')
makedepends=('pkgconfig' 'kdelibs3' 'libmtp&gt;=0.2.6.1' 'xine-lib&gt;=1.1.8' 'sdl&gt;=1.2.12' 'ruby1.8')
conflicts=('amarok')
provides=('amarok1')
install=amarok.install
source=(&quot;ftp://ftp.solnet.ch/mirror/KDE/stable/amarok/${pkgver}/src/${_origname}-${pkgver}.tar.bz2&quot;
	&quot;amarok_addaspodcast.desktop&quot;
        &quot;wikipedia.patch&quot;
        &quot;libmtp.patch&quot;
        &quot;gcc44.patch&quot;
        &quot;amarok-1.4.10.coverfetcher.diff&quot;)
options=(!makeflags)

build() {
  patch -Np0 -i $srcdir/wikipedia.patch || return 1
  patch -Np0 -i $srcdir/libmtp.patch || return 1
  patch -Np0 -i $srcdir/gcc44.patch || return 1
  patch -Np0 -i $srcdir/amarok-1.4.10.coverfetcher.diff || return 1

  cd ${startdir}/src/${_origname}-${pkgver}
  . /etc/profile.d/qt3.sh
  . /etc/profile.d/kde3.sh

  # prepare build
  RUBY=/opt/ruby1.8/bin/ruby  ./configure \
  	--with-gnu-ld \
	--enable-mysql \
	--enable-postgresql \
	--with-mp4v2 \
	--with-ifp \
	--with-libnjb \
	--with-libmtp \
	--with-libgpod \
	--without-arts \
	--without-gstreamer \
	--with-xine \
	--without-nmm \
	--without-mas \
	--with-libvisual \
	--disable-debug \
	--enable-debug=no \
	--without-xmms || return 1

  # build
  sed -i -e 's/konquisidebar//g' amarok/src/Makefile
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  mkdir -p ${startdir}/pkg/opt/kde/share/apps/konqueror/servicemenus/
  install -m644 ${startdir}/src/amarok_addaspodcast.desktop ${startdir}/pkg/opt/kde/share/apps/konqueror/servicemenus/
}
md5sums=('3bdbf26181bf5e5925f48968caba7ac2'
         '7736a7e3e22b15818180df3cee7e4a79'
         'a93eb0dad2078afa045a69f38256b369'
         '02eb286127594b9427d27da7eb01f0de'
         'cfa9310dec03c33048e5a067a0334266'
	 'f4e8754cde659342bdfd3fca36612bb5')
</pre></ul>
<ul>
<li><strong>Ruby1.8 PKGBUILD </strong>(With my modifications)</li>
<p><pre class="brush: plain;"># Contributor: v01d
# Modified by Chinmay Kamat &lt;chinmaykamat@gmail.com&gt;
pkgname='ruby1.8'
pkgver=1.8.7_p174
_pkgver=1.8.7-p174
pkgrel=1
pkgdesc=&quot;An object-oriented language for quick and easy programming&quot;
arch=('i686' 'x86_64')
license=('custom')
url=&quot;http://www.ruby-lang.org/en/&quot;
depends=('gdbm&gt;=1.8.3' 'db&gt;=4.7.25' 'openssl&gt;=0.9.8k' 'zlib&gt;=1.2.3.3' 'readline&gt;=5.2.013')
makedepends=('tk&gt;=8.5')
provides=('ruby=1.8.7')
source=(ftp://ftp.ruby-lang.org/pub/ruby/stable/ruby-${_pkgver}.tar.bz2)
options=('!emptydirs')
depends=('gdbm&gt;=1.8.3' 'db&gt;=4.7.25' 'openssl&gt;=0.9.8k' 'zlib&gt;=1.2.3.3' 'readline&gt;=5.2.013')
optdepends=('tk: for Ruby/TK')

build() {
  cd &quot;${srcdir}/ruby-${_pkgver}&quot;
  ./configure --prefix=/opt/ruby1.8 --enable-shared --enable-pthread || return 1
  make || return 1
  make DESTDIR=&quot;${pkgdir}&quot; install || return 1

  install -Dm644 COPYING &quot;${pkgdir}/usr/share/licenses/${pkgname}/COPYING&quot; || return 1

  mkdir -p $pkgdir/usr/bin
  for i in erb irb rdoc ri ruby testrb; do
    ln -s /opt/ruby1.8/bin/$i $pkgdir/usr/bin/$i
  done
}
md5sums=('88c45aaf627b4404e5e4273cb03ba2ee')
</pre></ul>
<ul>
<li>Finally, the steps to install pyqt3 from source &#8211;</li>
</ul>
<p>Get the PKGBUILD for it from <a title="pyqt3" href="http://repos.archlinux.org/wsvn/packages/pyqt3/repos/" target="_blank">here. </a>Then to install do the following</p>
<p><code>$makepkg -s PKGBUILD</code></p>
<p>This should work if you have sudo. If you use su, do the following</p>
<p><code>#makepkg --asroot -s PKGBUILD</code></p>
<p>This creates the pyqt3*.tar.gz pacakge to<br />
To install the package &#8211;</p>
<p><code>#pacman -U pyqt3*.tar.gz</code></p>
<p>And you are done. With all this, I was able to use the wiki-lyrics, copycover,lyricsID3 etc scripts &#8212; Amarok 1.4 will all bells and whistles <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>&lt;RANT&gt; &#8212; </strong>After using Amarok 2,  Sonata+MPD, qtmpc+MPD, Banshee, Exaile, Listen etc etc &#8230; I still feel that Amarok 1.4 is the best player available. Amarok 2.2 is good and Amarok 2.3 will be better. I will shift full time to the 2.x series soon&#8230; until then Amarok 1.4 FTW !!! <strong>&lt;/RANT</strong>&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/335/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=335&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/11/03/installing-amarok-1-4-on-arch-linux/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>The move to Arch Linux</title>
		<link>http://chinmaykamat.wordpress.com/2009/11/01/the-move-to-arch-linux/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/11/01/the-move-to-arch-linux/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 19:22:21 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Arch]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=323</guid>
		<description><![CDATA[After using Ubuntu for almost 3 yrs and enjoying it, I have moved to a new distro &#8211; Arch Linux. So, instead of my customary short review / first look post after each Ubuntu release, I will be writing a small review / Arch vs Ubuntu post here. The Why &#8211; Well, after using the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=323&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">After using Ubuntu for almost 3 yrs and enjoying it, I have moved to a new distro &#8211; Arch Linux. So, instead of my customary short review / first look post after each Ubuntu release, I will be writing a small review / Arch vs Ubuntu post here.</p>
<p style="text-align:justify;"><strong>The Why &#8211; </strong>Well, after using the same distro for about 3 years, I wanted to try something different. With so many distros around, there is hell lotta choice &#8211; Debian, Suse, Fedora, Arch etc. I went for Arch coz it has all the things that I was looking for &#8211; stability, option to go bleeding edge, a big user community with an active forum, a good package manager and something I have not tried before and coz <a title="Aditya Shevade" href="http://adityashevade.com/" target="_blank">one of my friends</a> just would not let me rest without trying it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Although, all this might seem stupid <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  , the bottom line is I am now an Arch Linux user.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-324" title="Arch Linux" src="http://chinmaykamat.files.wordpress.com/2009/11/logo-en.png?w=350&#038;h=103" alt="Arch Linux" width="350" height="103" /></p>
<p style="text-align:justify;"><strong>The Review -</strong> How is Arch different from / better or worse than Ubuntu ?</p>
<p style="text-align:justify;"><span id="more-323"></span></p>
<p style="text-align:justify;"><strong>The Basics &#8211; </strong><a title="Arch Linux" href="http://wiki.archlinux.org/index.php/The_Arch_Way" target="_blank">The Arch Way</a> vs <a title="Ubuntu" href="http://www.ubuntu.com/products/whatisubuntu" target="_blank">The Ubuntu way </a></p>
<p style="text-align:justify;">While Ubuntu is a linux distro with a release every six months, Arch is a rolling release. Ubuntu&#8217;s six month cycle has had its advantages but sometimes it also has had major disadvantages but keeping it in sync with the GNOME release cycle has been good for it. There has been times however when I wanted to move to a new package but no matter what I did, I could not satisfy the dependencies ppa or no ppa. I ended up using beta/alpha repos of the next release (case in point &#8211; my amarok 2.2 install guide).  Keeping packages of 2 version in Ubuntu is not very pleasant <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . With Arch, being a rolling release, this is avoided as packages are available as they are available upstream either in the main repository or in testing.</p>
<p style="text-align:justify;">However, this is not the major difference between Arch and Ubuntu. Ubuntu believes in giving a working desktop out of the box ( and yet there have been times when LTS releases fail to start the X server <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ). On the other hand, the Arch way says that you only get a bare bones system and <strong>you</strong> need to make it the way you want. This translates to installing / configuring everything including X, GNOME (or any other desktop environment). This is where Arch&#8217;s user base is decided. If you want to go into the details, Arch is for you. If you don&#8217;t &#8211; stay away. I think with average experience with Linux, it should not take more than 6/7 hrs to get Arch up and running like Ubuntu is after install. Afer the first 6/7 hrs (which may or may not be a pain) what you get is a great distro. The 6/7 hrs are usually pretty easy to get through if you follow the <a title="Arch Wiki" href="http://wiki.archlinux.org/index.php/Main_Page" target="_blank">Arch wiki</a> and the <a title="Beginner's Guide" href="http://wiki.archlinux.org/index.php/Beginners%27_Guide" target="_blank">Beginner&#8217;s guide</a>. It took me around 4 hrs to get things up and running including some experimentation with available ati drivers.</p>
<p style="text-align:justify;"><strong>The package management &#8211; </strong></p>
<p style="text-align:justify;">The one thing that I really liked about Ubuntu was APT &#8211; the package manager that Ubuntu uses. With its power and flexibility, it is definitely one of the best package management systems out there. Combine it with PPA&#8217;s and you have a bleeding edge system with ease. If I was going to move to Arch as my primary distro, I needed something similar and the combination of pacman and AUR is as good as if not better than APT + PPA. Whatever the other differences may be, pacman does seem faster than apt. Its wicked fast.</p>
<p style="text-align:justify;">Another thing that I appreciate about Arch is the way packages are in the repository &#8212; they are vanialla and modular for eg. GNOME is packaged without pulseaudio \m/ and even gnome-termnial for that matter (please install it before starting gnome or you might just end up with system with no access to the root terminal <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). In fact all you get when you install gnome are the following packages -</p>
<p><code>#pacman -S gnome<br />
gnome package not found, searching for group...<br />
:: group gnome (including ignored packages):<br />
epiphany  gnome-applets  gnome-backgrounds  gnome-control-center<br />
gnome-desktop  gnome-icon-theme  gnome-media  gnome-mime-data  gnome-mount<br />
gnome-panel  gnome-screensaver  gnome-session  gnome-settings-daemon<br />
gnome-themes  gnome2-user-docs  libgail-gnome  metacity  nautilus<br />
notification-daemon  yelp</code></p>
<p style="text-align:justify;">And you are still given a choice to install the entire group or select each individual package.</p>
<p style="text-align:justify;">If you are unhappy with the modularity of KDE, there is the <a title="KDEMod" href="http://chakra-project.org/about-kdemod.html" target="_blank">KDEmod </a>project  which is KDE built especially for Arch  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . If you are a person who installs a lot of packages from source, then <a title="ABS" href="http://wiki.archlinux.org/index.php/ABS" target="_blank">ABS </a>and <a title="yaourt" href="http://wiki.archlinux.org/index.php/Yaourt" target="_blank">yaourt </a>are definitely for you. It builds pacakges from source but integrates them with pacman &#8211; nice.</p>
<p style="text-align:justify;">The great thing here is &#8211; I do not miss APT.</p>
<p style="text-align:justify;"><strong>Help available &#8211; </strong>The great thing about Ubuntu is the help avaiable on the forums. There usually aren&#8217;t many question to which you cant find answers to on the ubuntuforums. On the Arch side, the wiki and the forums to-gether are all the help you need.</p>
<p style="text-align:justify;"><strong>Who should use what &#8211; </strong>As I said earlier, if you do not want to do much and want something that runs out of the box, Ubuntu is still the best choice. I will still say that for new linux users Ubuntu rules. But if you are ready to do a bit of config in CLI and/or build your system <strong>exactly</strong> the way you want, Arch is for you.</p>
<p style="text-align:justify;"><strong>Conclusion &#8211; </strong>Arch is a great distro. Besides the first 4 hrs (which weren&#8217;t really a pain but more of a great learning curve) , I have really liked the way this distro operates. Pacman + yaourt are awesome and AUR is quite vast. Arch Linux is definitely going to be my first choice distro for at least the next year <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . That said, Ubuntu is still the best distro for beginners.</p>
<p style="text-align:justify;">PS<strong> &#8211; </strong>If you are wondering how to get to the terminal if you are in GNOME without gnome-terminal and Ctrl+Alt+F* are not working, add the following to your GRUB kernel line &#8211;</p>
<p><code> # (0) Arch Linux Single-user<br />
title  Arch Linux Single-user<br />
root   (hd0,0)<br />
kernel /vmlinuz26 root=/dev/sda1 ro 1 #The 1 is the runlevel<br />
initrd /kernel26.img</code></p>
<p>More info <a title="Grub run level" href="http://wiki.archlinux.org/index.php/Adding_a_login_manager_%28KDM,_GDM,_or_XDM%29_to_automatically_boot_on_startup#GRUB" target="_blank">here.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=323&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/11/01/the-move-to-arch-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>

		<media:content url="http://chinmaykamat.files.wordpress.com/2009/11/logo-en.png" medium="image">
			<media:title type="html">Arch Linux</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu : Install (and remove) all packages needed to build a source code</title>
		<link>http://chinmaykamat.wordpress.com/2009/10/06/ubuntu-install-all-packages-needed-to-build-a-source-code/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/10/06/ubuntu-install-all-packages-needed-to-build-a-source-code/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:00:00 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/2008/09/07/ubuntu-install-all-pacakges-needed-to-build-a-source-code</guid>
		<description><![CDATA[Ubuntu users (or others who hate Ubuntu) always complain about dependency problems while building something from source. Well, there is a very easy way to solve all those library and other dependency problems. Just use the following :: $sudo apt-get build-dep &#60;source-package-name&#62; I have posted this directly from the APT HOWTO . Check it out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=73&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-align:justify;">Ubuntu users (or others who hate Ubuntu) always complain about dependency problems while building something from source. Well, there is a very easy way to solve all those library and other dependency problems. Just use the following ::</p>
<p><code>$sudo apt-get build-dep &lt;source-package-name&gt;</code></p>
<p>I have posted this directly from the <a href="http://www.debian.org/doc/manuals/apt-howto/">APT HOWTO</a> . Check it out for a better understanding of APT&#8217;s power.</p>
<p>Installing all the build-deps is easy enough but they are (usually) useless once the comilation job is done. So, can they be removed as easily?</p>
<p>There are few options to do this -</p>
<ul>
<li>/etc/apt/apt.conf</li>
</ul>
</div>
<div style="text-align:justify;">After this bug was fixed, we now have a option in apt.conf to see if the build deps should be removed when <code>apt-get autmoremove</code> is executed or not. To set them to be removed, add the following to your apt.conf file ( this file is usually not present, create it.)</div>
<p><pre class="brush: plain;">APT
{
    // Options for apt-get
  Get
  {
     Build-Dep-Automatic &quot;true&quot;;
  };
};</pre></p>
<p>Now whatever packages are installed using apt-get build-dep will be removed when you execute <code>apt-get autoremove</code>.</p>
<p><code>/usr/share/doc/apt/examples/configure-index.gz</code> is a configuration file showing example values for all possible options.</p>
<ul>
<li>Command line option</li>
</ul>
<p>If you want to/don&#8217;t want to remove the build-deps of a particular package, pass the following option while using the build-deps command.</p>
<p><code>sudo apt-get build-dep -o APT::Get::Build-Dep-Automatic=true</code></p>
<p>True &#8211; To be removable by autoremove, False &#8211; otherwise.</p>
<ul>
<li>If you want to do it after having used build-dep</li>
</ul>
<p style="text-align:justify;">Well, so far I have been unable to find anything that can reverse the effect after you have already installed the packages. There are some suggestions <a href="https://answers.launchpad.net/apt/+question/8366" target="_blank">here</a> and <a href="https://bugs.launchpad.net/apt/+bug/248268" target="_blank">here</a> but I found that they remove cross dependencies as well ( not good <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=73&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/10/06/ubuntu-install-all-packages-needed-to-build-a-source-code/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs : Htmlize and WordPress Syntax Highlighter</title>
		<link>http://chinmaykamat.wordpress.com/2009/10/02/emacs-htmlize/</link>
		<comments>http://chinmaykamat.wordpress.com/2009/10/02/emacs-htmlize/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 20:31:28 +0000</pubDate>
		<dc:creator>CDK</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chinmaykamat.wordpress.com/?p=294</guid>
		<description><![CDATA[In my previous post, I posted the perl script with syntax highlighting. I was able to get that code with syntax highlighting directly off the forum post. If you want to post random code with syntax highlighting, there are 3 options - Using plugins (generally not available for free) Using online generator such as those [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=294&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">In my previous post, I posted the perl script with syntax highlighting. I was able to get that code with syntax highlighting  directly off the forum post. If you want to post random code with syntax highlighting, there are 3 options -</p>
<ol>
<li>Using plugins (generally not available for free)</li>
<li>Using online generator such as those described <a href="http://rohitdubal.wordpress.com/2009/02/16/time-savers-code-beautifier-and-formatter/" target="_blank">here.</a> (Usually give css code which cant be used in free mode of WordPress)</li>
<li><a href="http://www.emacswiki.org/emacs/Htmlize" target="_blank">Htmlize</a> in Emacs <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p style="text-align:justify;">Emacs has an addon called <a href="http://www.emacswiki.org/emacs/Htmlize" target="_blank"><strong>&#8220;htmlize&#8221;</strong></a> which can be used to convert any file into an htmlized version. It provides 3 output types &#8211; css, inline-css and font. Emacs FTW again <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p style="text-align:justify;">PS :: This is also available in the emacs-goodies.el packages in Debian and Ubuntu but the version of htmlize.el in those is outdated and does not work with Emacs 23.x</p>
<p style="text-align:justify;">EDIT :: It seems that WordPress internally supports syntax highlighting with the use of <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter" target="_blank">SyntaxHighlighter</a>. For more info check <a href="http://en.support.wordpress.com/code/" target="_blank">here.</a> List of all the supported languages is <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes" target="_blank">here.</a> For blogs other than WordPress, htmlize still seems a very good option.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chinmaykamat.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chinmaykamat.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chinmaykamat.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chinmaykamat.wordpress.com&amp;blog=1439660&amp;post=294&amp;subd=chinmaykamat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chinmaykamat.wordpress.com/2009/10/02/emacs-htmlize/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69d88345fea9339b82aac2acf5f40e9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CDK</media:title>
		</media:content>
	</item>
	</channel>
</rss>
