<?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>Tudor Barbu&#039;s professional blog &#187; pidgin</title>
	<atom:link href="http://blog.motane.lu/tag/pidgin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Advertising blog entries on Pidgin&#8217;s status</title>
		<link>http://blog.motane.lu/2009/08/21/advertising-blog-entries-on-pidgins-status/</link>
		<comments>http://blog.motane.lu/2009/08/21/advertising-blog-entries-on-pidgins-status/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:36:12 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=967</guid>
		<description><![CDATA[I wanted to write this post ever since I&#8217;ve read Radu&#8217;s Fortune and Pidgin&#8217;s status on Ubuntu post. Radu&#8217;s approach is quite lame and hard to use, because it relies on the user exporting a SQL dump file every time he posts something on the blog. And really, do you need *all* the posts in [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to write this post ever since I&#8217;ve read Radu&#8217;s <a href="http://radu.cotescu.com/2009/08/07/fortune-and-pidgins-status-on-ubuntu-linux/" title="Fortune and Pidgin's status on Ubuntu" class="outgoing">Fortune and Pidgin&#8217;s status on Ubuntu</a> post. Radu&#8217;s approach is quite lame and hard to use, because it relies on the user exporting a SQL dump file every time he posts something on the blog. </p>
<p>And really, do you need *all* the posts in the database? Do you really want to advertise blog entries from 2 years ago? Come on! </p>
<p>My idea is much better&#8230;obviously <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &#8230;and it goes like this: parse the blog&#8217;s RSS and take &#8220;inspiration&#8221; from there for the statuses. The weapon of choice for this task is python with its <a href="http://www.feedparser.org/" title="feedparser project's webpage" class="outgoing">feedparser</a> library.</p>
<p>First, some prerequisites:</p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get install python-feedparser
</pre>
<p>&#8230;and then, the python script:</p>
<pre class="brush: python; title: ; notranslate">
#!/usr/bin/python
import feedparser
import random
import os

# feed url
FEED = 'http://feeds2.feedburner.com/motanelu'

feed = feedparser.parse( FEED )
index = random.randrange(0, len( feed['items'] ) - 1 )
status = 'purple-remote &quot;setstatus?status=available&amp;message=%s %s&quot;' % ( feed['items'][index].title, feed['items'][index].link )
os.system( status )

# EOF
</pre>
<p>I consider this approach better than Radu&#8217;s, because it doesn&#8217;t require exporting the database or messing around with fortune. Read this <a href="http://earlruby.org/2008/08/update-pidgin-status-using-cron/" title="Update Pidgin IM status on Ubuntu using cron" class="outgoing">post</a> to see how to update Pidgin&#8217;s status using cron. And enjoy <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/08/21/advertising-blog-entries-on-pidgins-status/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Pidgin, Ubuntu and Yahoo! Messenger</title>
		<link>http://blog.motane.lu/2009/06/24/pidgin-ubuntu-and-yahoo-messenger/</link>
		<comments>http://blog.motane.lu/2009/06/24/pidgin-ubuntu-and-yahoo-messenger/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:50:54 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=856</guid>
		<description><![CDATA[Starting yesterday, my Pidgin stopped connecting to Yahoo!&#8217;s messenger service (MSN kept working). Being lazy, I&#8217;ve just changed the scs.msg.yahoo.com host to 66.163.181.166 in the user profile panel &#8211; the first solution I&#8217;ve came across on Google &#8211; and it started working again. For another day or so. But today, it stopped working again and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.motane.lu/wp-content/uploads/2009/06/pidgin_bird.png" alt="Pidgin" title="Pidgin" width="150" height="254" class="alignleft size-full wp-image-857" /> Starting yesterday, my Pidgin stopped connecting to Yahoo!&#8217;s messenger service (MSN kept working). Being lazy, I&#8217;ve just changed the <strong>scs.msg.yahoo.com</strong> host to <strong>66.163.181.166</strong> in the user profile panel &#8211; the first solution I&#8217;ve came across on Google &#8211; and it started working again. For another day or so. </p>
<p>But today, it stopped working again and I couldn&#8217;t get it working again. So I&#8217;ve used <a href="http://www.meebo.com" title="Meebo" class="outgoing">Meebo</a> to go online and ask others if their YM! clients worked, if they&#8217;ve also encountered this problem, and, most important, what did they do to fix it. And &#8211; thanks to <a href="http://radu.cotescu.com/" title="Radu Cotescu's blog" class="outgoing">Radu</a> &#8211; I&#8217;ve found out the root of this problem: Yahoo! changed the specifications of its im protocol. Fortunately, the Pidgin guys don&#8217;t waste time and the problem can be solved by upgrading to Pidgin 2.5.7. </p>
<p>Details <a href="http://www.celticwolf.com/useful-information/faqs/26-pidgin-yahoo" title="Celtic Wolf on Pidgin and Yahoo" class="outgoing">here</a> and <a href="http://www.pidgin.im/download/ubuntu/" title="Pidgin" class="outgoing">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/06/24/pidgin-ubuntu-and-yahoo-messenger/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

