<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Some more fun with Ruby and Instant messaging</title>
	<atom:link href="http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/</link>
	<description>Curious About Everything</description>
	<lastBuildDate>Sun, 04 Jul 2010 18:38:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Maxin B. John</title>
		<link>http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/comment-page-1/#comment-9613</link>
		<dc:creator>Maxin B. John</dc:creator>
		<pubDate>Wed, 23 Jan 2008 05:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/#comment-9613</guid>
		<description>import httplib
import urllib

#Function that POSTS the string to eliza website and formats the reply
# my_dialog is the string that we POST to the www-ai.ijs.si website
# obtains the reply from eliza scripts and prints it on the screen

def eliza(my_dialog):
        params = urllib.urlencode({&#039;Entry1&#039;: my_dialog})
        headers = {&quot;Content-type&quot;: &quot;application/x-www-form-urlencoded&quot;,&quot;Accept&quot;: &quot;text/plain&quot;}
        conn = httplib.HTTPConnection(&quot;www-ai.ijs.si&quot;)
        conn.request(&quot;POST&quot;, &quot;/eliza-cgi-bin/eliza_script&quot;, params, headers)
        response = conn.getresponse()
        data = response.read()
        print str(data.split(&#039;&lt;/strong&gt;&#039;)[2]).split(&#039;\n&#039;)[1]
        conn.close()

# invoking the eliza function to test it&#039;s functionality in pythonic way
if __name__== &#039;__main__&#039;:
        eliza(&#039;I love python&#039;)</description>
		<content:encoded><![CDATA[<p>import httplib<br />
import urllib</p>
<p>#Function that POSTS the string to eliza website and formats the reply<br />
# my_dialog is the string that we POST to the www-ai.ijs.si website<br />
# obtains the reply from eliza scripts and prints it on the screen</p>
<p>def eliza(my_dialog):<br />
        params = urllib.urlencode({&#8216;Entry1&#8242;: my_dialog})<br />
        headers = {&#8220;Content-type&#8221;: &#8220;application/x-www-form-urlencoded&#8221;,&#8221;Accept&#8221;: &#8220;text/plain&#8221;}<br />
        conn = httplib.HTTPConnection(&#8220;www-ai.ijs.si&#8221;)<br />
        conn.request(&#8220;POST&#8221;, &#8220;/eliza-cgi-bin/eliza_script&#8221;, params, headers)<br />
        response = conn.getresponse()<br />
        data = response.read()<br />
        print str(data.split(&#8216;&#8216;)[2]).split(&#8216;\n&#8217;)[1]<br />
        conn.close()</p>
<p># invoking the eliza function to test it&#8217;s functionality in pythonic way<br />
if __name__== &#8216;__main__&#8217;:<br />
        eliza(&#8216;I love python&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxin B. John</title>
		<link>http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/comment-page-1/#comment-9611</link>
		<dc:creator>Maxin B. John</dc:creator>
		<pubDate>Wed, 23 Jan 2008 04:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.viamentis.com/articles/2008/01/22/some-more-fun-with-ruby-and-instant-messaging/#comment-9611</guid>
		<description>Great work  Unni.. 
Now got to reimplement this in Python :)</description>
		<content:encoded><![CDATA[<p>Great work  Unni..<br />
Now got to reimplement this in Python <img src='http://blog.viamentis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
