<?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>rohitj&#039;s domain &#187; dpaste</title>
	<atom:link href="http://rohitj.net/blog/category/softwares/dpaste/feed/" rel="self" type="application/rss+xml" />
	<link>http://rohitj.net</link>
	<description>Yet more clitches</description>
	<lastBuildDate>Tue, 10 Apr 2012 20:32:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My first XChat plugin :)</title>
		<link>http://rohitj.net/blog/2008/03/28/my-first-xchat-plugin/</link>
		<comments>http://rohitj.net/blog/2008/03/28/my-first-xchat-plugin/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 07:48:10 +0000</pubDate>
		<dc:creator>rohitj</dc:creator>
				<category><![CDATA[dpaste]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[GTK]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[xchat]]></category>

		<guid isPermaLink="false">http://www.rohitj.net/blog/2008/03/28/my-first-xchat-plugin/</guid>
		<description><![CDATA[Recently I started using IRC a lot. As I was doing some django, PyQT and KDE/C++ development. Yes, its lot of development. And then whenever I want to ask some question on IRC, I have to use pastebin/dpaste. ( dpaste is developed upon django framework. ). Now, to dpaste any code, I have to switch [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I started using IRC a lot. As I was doing some django, PyQT and KDE/C++ development. Yes, its lot of development. And then whenever I want to ask some question on IRC, I have to use pastebin/dpaste. ( dpaste is developed upon django framework. <img src='http://rohitj.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). Now, to dpaste any code, I have to switch to Firefox, I have to use mouse as well. I have to copy paste the link to xchat. This was tedious task for me. So, I started making a plugin for xchat so that I could easily paste my code. Fortunately XChat has python plugin interface.</p>
<p>This plugin runs with the command:<br />
<code><br />
/dpaste language<br />
</code><br />
If you keep &lt;language&gt; empty, it will assume it to be &#8220;Plain&#8221;. You can use any language supported by <a href="http://dpaste.com" title="dpaste">dpaste.com</a>. The command will open a gtk window, in which you can paste your code. And then &#8220;dpaste&#8221; button will copy paste the link (containing your code) on your xchat input box. <img src='http://rohitj.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . As of now I am sure, it works fine in IITK proxy system. I am pretty much sure it will work fine if you are behind no proxy.</p>
<p>Before using the proxy, you will need to change few parameters in the script, namely &#8220;proxy_username&#8221;, &#8220;proxy_password&#8221;, &#8220;proxy_server&#8221;, &#8220;proxy_port&#8221;. If you are not behind proxy, just keep &#8220;proxy_server&#8221; empty.</p>
<p>Also, you should install python module &#8220;ClientForm&#8221;, &#8220;pygtk&#8221;, and &#8220;urllib2&#8243;.<br />
<code><br />
aptitude install python-clientform python python-gtk2<br />
</code><br />
To load the script, a simple way is /load &lt;path to plugin file&gt; . Or you can copy the script in ~/.xchat2 folder. That way the script will be loaded whenever you open xchat.</p>
<p>You can download the code from here. As of now I haven&#8217;t made docs, but its an easy plugin, and  some commenting as well. <img src='http://rohitj.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Updates : Download the plugin version 0.6, and you don&#8217;t need to change anything in it. The plugin uses xchat proxy settings by itself. <img src='http://rohitj.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   As of now, http proxy and no proxy is supported.<br />
<a href="http://rohitj.net/myscripts/xchat_plugin_dpaste" title="xchat plugin for dpasting. made by rohitj.">http://rohitj.net/myscripts/xchat_plugin_dpaste</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rohitj.net/blog/2008/03/28/my-first-xchat-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

