<?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>sector-5.net &#187; Programming</title>
	<atom:link href="http://sector-5.net/archives/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://sector-5.net</link>
	<description></description>
	<lastBuildDate>Wed, 06 Apr 2011 08:40:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>irssi-python for irssi 0.8.15</title>
		<link>http://sector-5.net/archives/irssi-python-for-irssi-0-8-15/</link>
		<comments>http://sector-5.net/archives/irssi-python-for-irssi-0-8-15/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 21:45:49 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://sector-5.net/?p=111</guid>
		<description><![CDATA[I recently became aware of a Python plugin for irssi, which conveniently resides in the irssi SVN repository. This plugin presumably exposes an API very similar to the one used in the Perl plugin, so creating new scripts should be easy with all those Perl samples out there. 

There&#8217;s an useful guide for building the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently became aware of a Python plugin for irssi, which conveniently resides in the <a href="http://svn.irssi.org/repos/irssi-python">irssi SVN repository</a>. This plugin presumably exposes an API very similar to the one used in the Perl plugin, so creating new scripts should be easy with all those Perl samples out there. </p>

<p>There&#8217;s an useful guide for <a href="http://bsg.lericson.se/howto-irssi-python.html">building the plugin here</a>, but I found that some lose ends still needed to be patched up. </p>

<p>For one, the plugin apparently hasn&#8217;t been updated in a while, so some function calls still reference old irssi structures and functions. Naturally, these don&#8217;t compile with irssi 0.8.15, which is the latest version as of this writing. For those issues, I compiled <a href="http://files.sector-5.net/irssi-python-for-0.8.14.patch">a patch with various fixes here</a>. This isn&#8217;t exactly a perfect fix, but should do in most cases. (The name is still 0.8.14 as that is the version it was originally written for, but it still applies cleanly for 0.8.15)</p>

<p><code>ac_python_devel.m4</code> can be downloaded from various sources, for example from <a href="http://stasis.googlecode.com/svn/trunk/m4/ac_python_devel.m4">this project</a>. <code>pyconstants.c</code> is supposed to be generated with <code>awk -f src/constants.awk src/constants.txt &gt; src/pyconstants.c</code>.</p>

<p>There is one more catch that isn&#8217;t mentioned in above guide: The plugin tries to load <code>irssi_startup.py</code> on startup, which will have to be on a specific path to be found. Without any parameters to <code>./configure</code>, that will be <code>/usr/local/share/irssi/scripts</code>. So, if you&#8217;d rather have it in <code>/usr/share/irssi/scripts</code> (this is where my distribution places scripts, at least), you have to explicitly specify this when calling <code>./configure</code>:</p>

<pre><code>./configure --with-irssi=&lt;path to irssi sources&gt; \
    --datadir=/usr/share
</code></pre>

<p>After that, make should (<em>hopefully</em>) work and <code>libpython.so</code> will be placed in <code>src/.libs/</code>. This file should be moved to irssi&#8217;s module directory, which should be <code>/usr/lib/irssi/modules</code> or <code>/usr/local/lib/irssi/modules</code>, depending on distribution.
Copy <code>irssi_startup.py</code> and <code>irssi.py</code> from <code>src/</code> to the data directory you specified above, and irssi should be able to load the Python plugin without problems via <code>/load python</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/irssi-python-for-irssi-0-8-15/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>4chan /b/ackwash for Opera</title>
		<link>http://sector-5.net/archives/4chan-backwash-for-opera/</link>
		<comments>http://sector-5.net/archives/4chan-backwash-for-opera/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 17:30:41 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[4chan]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[backwash]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://sector-5.net/?p=70</guid>
		<description><![CDATA[Another conversion for 4chan, /b/ackwash, which shows quoted posts in a small hovering window next to the quote link when moving the mouse over it.

Screenshot



Download

4chan Backwash for Opera, Version 1.2c



Installation instructions

See installation instructions here.

Changelog

01/22/2009 &#8211; Version 1.0a. Tested and working with Opera 9.6. Fixed a serious bug with scrolling to the wrong position when clicking [...]]]></description>
			<content:encoded><![CDATA[<p>Another conversion for 4chan, <a href="http://userscripts.org/scripts/show/25876" title="/b/ackwash">/b/ackwash</a>, which shows quoted posts in a small hovering window next to the quote link when moving the mouse over it.</p>

<p><strong>Screenshot</strong></p>

<p><img src="http://sector-5.net/wp-content/uploads/2009/01/backwash.png" alt="Backwash screenshot" title="Moving the mouse over a quote shows the quoted post." /></p>

<p><strong>Download</strong></p>

<p><a href="http://files.sector-5.net/4chan-backwash.js" title="4chan Backwash">4chan Backwash for Opera, Version 1.2c</a></p>

<p><span id="more-70"></span></p>

<p><strong>Installation instructions</strong></p>

<p>See installation instructions <a href="http://sector-5.net/archives/4chan-filter-userscript-for-opera/">here</a>.</p>

<p><strong>Changelog</strong></p>

<p>01/22/2009 &#8211; Version 1.0a. Tested and working with Opera 9.6. Fixed a serious bug with scrolling to the wrong position when clicking a quote.</p>

<p>01/23/2009 &#8211; Version 1.1. Now works with fychan by sneakily re-attaching event listeners when the document was modified.</p>

<p>01/27/2009 &#8211; Version 1.2. Now also shows quotes pointing to the thread starter.</p>

<p>01/28/2009 &#8211; Version 1.2a. Somewhat fixed quirky display for posts quoting the thread starter.</p>

<p>02/01/2009 &#8211; Version 1.2b. Minor changes to prevent functions and variables from leaking outside of Backwash&#8217;s namespace.</p>

<p>01/09/2010 &#8211; Version 1.2c. Should work for the new URL layout now.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/4chan-backwash-for-opera/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>4chan Filter userscript for Opera</title>
		<link>http://sector-5.net/archives/4chan-filter-userscript-for-opera/</link>
		<comments>http://sector-5.net/archives/4chan-filter-userscript-for-opera/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 17:11:46 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[4chan]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[thread filter]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://sector-5.net/?p=54</guid>
		<description><![CDATA[Inspired by various Firefox extensions that deal with filtering posts on 4chan, I&#8217;ve taken some time to rewrite such a script for Opera. The current version doesn&#8217;t yet come with as many features as the original, but provides most of the important functionality. If you are using Opera 10.50 or higher, I encourage you to [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by various Firefox extensions that deal with filtering posts on 4chan, I&#8217;ve taken some time to rewrite such a script for Opera. The current version doesn&#8217;t yet come with as many features as the <a href="http://userscripts.org/scripts/show/33916" title="4chan Thread Filter">original</a>, but provides most of the important functionality. <strong>If you are using Opera 10.50 or higher, I encourage you to use the linked script instead of the one in this post.</strong> (More features, more maintainance, and so forth).</p>

<p><strong>Sample settings (based on real-life /a/)</strong></p>

<p><img src="/wp-content/uploads/2009/01/threadfilter-controlpanel.png" alt="Control panel" title="The control panel" /></p>

<p><strong>Download</strong></p>

<p><a href="http://files.sector-5.net/4chan-filter.js" title="4chan Thread Filter">4chan Filter for Opera, Version 1.3a</a></p>

<p><span id="more-54"></span></p>

<p><strong>Installation instructions</strong></p>

<p>Set up an userscript directory for Opera. This option can be accessed using Tools -> Preferences -> Advanced -> Content -> JavaScript Options. After you&#8217;ve selected a directory, simply drop the .js file there and the script should load automatically.</p>

<p><strong>Things to note</strong></p>

<ul>
<li>All values are interpreted as regular expressions, meaning that some special characters will not work as expected when entered. Those are, for example, <em>.+^$?*[]{}()</em>. Such characters should be escaped with backslash unless you actually know what you&#8217;re doing.</li>
<li>Since Opera doesn&#8217;t provide a way to store variables over a period of time, this script uses cookies to save settings. This means that a) if you disabled cookies nothing will work and b) if you set up Opera to delete new cookies on exit, all your settings will be gone the next time you start your browser.</li>
</ul>

<p><strong>Changelog</strong></p>

<p>01/21/2009 &#8211; Version 1.0. Tested and working with Opera 9.6. Reports indicate it also works with Opera 10.</p>

<p>01/22/2009 &#8211; Version 1.1.</p>

<ul>
<li>Added toggle to sticky or unsticky control panel</li>
<li>Fixed mouseover/mouseout for control panel</li>
<li>All strings are precompiled to RegExps</li>
<li>Added apply and reset buttons</li>
</ul>

<p>02/01/2009 &#8211; Version 1.2. Improved support for <a href="http://www.fybertech.com/userjs/fychan.js">fychan</a>. Still some rough edges though. The post counter isn&#8217;t corrected after expanding a thread, and the `Reset page&#8217; button destroys fychan. Nothing to be done about the latter since fychan always executes after this script.</p>

<p>02/02/2009 &#8211; Version 1.2a. Fixed new settings not taking effect unless the page was reloaded.</p>

<p>01/09/2010 &#8211; Version 1.3a. Updated some code which I don&#8217;t remember the significance of, and changed URL layout to conform to 4chan&#8217;s new URL scheme.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/4chan-filter-userscript-for-opera/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Comix: Windows start script</title>
		<link>http://sector-5.net/archives/comix-win32-start-script/</link>
		<comments>http://sector-5.net/archives/comix-win32-start-script/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 21:13:36 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[comix]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://sector-5.net/?p=47</guid>
		<description><![CDATA[There has been some progress on Comix recently, fixing some slight flaws that prevented the program from starting up correctly on Win32. With that gone, the only issue left is that Comix cannot be directly started on Windows without an .exe file, so I wrote a simple startup script to handle that. It invokes Python [...]]]></description>
			<content:encoded><![CDATA[<p>There has been some progress on <a href="http://comix.sourceforge.net">Comix</a> recently, fixing some slight flaws that prevented the program from starting up correctly on Win32. With that gone, the only issue left is that Comix cannot be directly started on Windows without an .exe file, so I wrote a simple startup script to handle that. It invokes Python and runs the file <code>src\comix.py</code>, so it should be put into the SVN checkout root directory of Comix. C++ source included.</p>

<p><a href="http://sector-5.net/wp-content/uploads/2009/01/comix-starter.zip">Win32 Comix Starter</a> (obsolete, only works for Python 2.5)</p>

<p><strong>Update:</strong> <a href="http://mcomix.sourceforge.net">MComix</a>, a fork of Comix, has superior Windows integration and comes with an installer that automatically generates an executable wrapper.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/comix-win32-start-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Scripting wallpaper changes, Part 2: KDE</title>
		<link>http://sector-5.net/archives/scripting-wallpaper-changes-part-2-kde/</link>
		<comments>http://sector-5.net/archives/scripting-wallpaper-changes-part-2-kde/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 14:20:12 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/scripting-wallpaper-changes-part-2-kde/</guid>
		<description><![CDATA[Looking at the Windows wallpaper changer way down the archives, scripting a wallpaper change in KDE is quite simple in comparison:

dcop kdesktop KBackgroundIface setWallpaper /path/to/file 7

The integer after the file path is the tiling mode, and mapped one-to-one to the choices in the KDE wallpaper selection dialog, meaning that the following options are available:


Centered
Tiled
Centered Tiled
Centered [...]]]></description>
			<content:encoded><![CDATA[<p>Looking at the Windows wallpaper changer way down the archives, scripting a wallpaper change in KDE is quite simple in comparison:</p>

<pre><code>dcop kdesktop KBackgroundIface setWallpaper /path/to/file 7</code></pre>

<p>The integer after the file path is the tiling mode, and mapped one-to-one to the choices in the KDE wallpaper selection dialog, meaning that the following options are available:</p>

<ol>
<li>Centered</li>
<li>Tiled</li>
<li>Centered Tiled</li>
<li>Centered Maxpect</li>
<li>Maxpect Tiled</li>
<li>Scaled</li>
<li>Centered Autofit</li>
<li>Scale &amp; Crop</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/scripting-wallpaper-changes-part-2-kde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera UserJS: 4chan &#8216;enhancements&#8217;</title>
		<link>http://sector-5.net/archives/opera-userjs-4chan-enhancements/</link>
		<comments>http://sector-5.net/archives/opera-userjs-4chan-enhancements/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 19:41:49 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[4chan]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[hide threads]]></category>
		<category><![CDATA[sage]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/opera-userjs-4chan-enhancements/</guid>
		<description><![CDATA[My feeble attempts to get to know the more in-depth aspects of JavaScript. 

It adds some more advanced functionality like buttons to delete/report posts without having to go to the bottom of the page. With the current version it is also possible to `hide&#8217; threads, a feature from the 4chan extension for Firefox that is [...]]]></description>
			<content:encoded><![CDATA[<p>My feeble attempts to get to know the more in-depth aspects of JavaScript. </p>

<p>It adds some more advanced functionality like buttons to delete/report posts without having to go to the bottom of the page. With the current version it is also possible to `hide&#8217; threads, a feature from the 4chan extension for Firefox that is sorely missed by Opera users.</p>

<p><strong>Download</strong>:
<a href="http://files.sector-5.net/4chan.js" title="4chan Opera UserJS">4chan.js, 02/06/09</a></p>

<p>Has to be placed into your Opera UserJS directory, which can be set up under Preferences > Advanced > Content > JavaScript Options.</p>

<p><strong>Full list of features</strong></p>

<ul>
<li>Kills any iframes (you know who you are)</li>
<li>Also kills any &lt;embed&gt; tags to prevent, for example, background sound caused by Flash objects.</li>
<li>`Fixes&#8217; quoting, that is, the comment box now properly advances to a new line after clicking on a post id. Also note that you can CTRL-click post ids to prevent the window from jumping up to the comment box.</li>
<li>Adds buttons to delete, report and hide posts/threads.</li>
<li>Also adds noko and sage boxes next to the e-Mail text control.</li>
</ul>

<p><strong>Notes on compatibility with fychan.js</strong></p>

<p>The buttons to delete, report and hide posts do not work with fychan. <s>Might or</s> might not work on a fix for this in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/opera-userjs-4chan-enhancements/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>X-Chat plugin: AniDB Search</title>
		<link>http://sector-5.net/archives/x-chat-plugin-anidb-search/</link>
		<comments>http://sector-5.net/archives/x-chat-plugin-anidb-search/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 08:19:58 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[X-Chat]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/x-chat-plugin-anidb-search/</guid>
		<description><![CDATA[More useless plugins for X-Chat: AniDBSearch, triggered by channel text starting with .anidb, looks up the search string on AniDB and prints the corresponding AniDB entry url, or the search url if multiple results matching the search string were found. Nothing too fancy. Can also be triggered by typing /anidb.

PS: No AniDB API calls. Just [...]]]></description>
			<content:encoded><![CDATA[<p>More useless plugins for X-Chat: AniDBSearch, triggered by channel text starting with .anidb, looks up the search string on AniDB and prints the corresponding AniDB entry url, or the search url if multiple results matching the search string were found. Nothing too fancy. Can also be triggered by typing /anidb.</p>

<p>PS: No AniDB API calls. Just HTTP fetch and some regexps.</p>

<p>Current: <a href="http://files.sector-5.net/anidbsearch-2.2.py" title="AniDBSearch 2.2">AniDBSearch 2.2</a></p>

<p><span id="more-34"></span></p>

<p>Changelog:</p>

<ul>
<li>2.2

<ul>
<li>Updated AniDB regexps.</li>
<li>Added official Japanese title to output. Be sure to set server encoding to UTF-8, this isn&#8217;t 1990 anymore!</li>
<li>When more than one anime matches the search string, AniDBSearch now prints the first few results instead of just the actual search URL. </li>
<li>Added message throttling to avoid being flooded off during above operation.</li>
<li>No longer uses threaded HTTP fetch on win32. This means that the client will become unresponsive for a while after each command. It also means that the script might now actually work on win32. After some poking around I&#8217;m no longer sure it ever did. If anyone manages to fit threads and the X-Chat Python plugin &#8211; especially xchat.command &#8211;  together, be sure to let me know.</li>
<li>Various other, minor cleanups.</li>
</ul></li>
<li>2.1.4

<ul>
<li>Fixed wrong results when disabling command or trigger (disabling the trigger actually disabled the command and vice versa)</li>
<li>Fixed printing in the wrong context (Thanks to protospork for pointing it out, I never noticed)</li>
</ul></li>
<li>2.1.3

<ul>
<li>Fixed crash due to invalid arguments to /anidb</li>
<li>Fixed exception in connection handler</li>
</ul></li>
<li>2.1.2

<ul>
<li>Updated AniDB URL and regexps</li>
</ul></li>
<li>2.1.1:

<ul>
<li>Added /anidb -b to open AniDB URL in browser</li>
<li>Added /anidb -p to output the URL to the current channel instead of privmsg.<br />
This can be considered a workaround to using .anidb yourself (see below)</li>
<li>Disabled &#8220;Your Message&#8221; hook on win32 &#8211; locks up X-Chat</li>
<li>Fixes for backward compatibility to Python 2.4</li>
</ul></li>
<li>2.1.0:

<ul>
<li>Completely rewritten previous code</li>
</ul></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/x-chat-plugin-anidb-search/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MPCinfo X-Chat plugin, Take 2</title>
		<link>http://sector-5.net/archives/mpcinfo-x-chat-plugin-take-2/</link>
		<comments>http://sector-5.net/archives/mpcinfo-x-chat-plugin-take-2/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 10:04:03 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[X-Chat]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/mpcinfo-x-chat-plugin-take-2/</guid>
		<description><![CDATA[Wasn&#8217;t really that happy with the earlier version of the plugin, so I modified the mpcinfo-Sources to compile as a native Python plugin, thus eliminating the need for a DLL wrapper. This marks the my first time with the Python/C-API. Quite convenient.

The new version can be downloaded here:
MPCinfo 1.3.1

There used to be C++ sources for [...]]]></description>
			<content:encoded><![CDATA[<p>Wasn&#8217;t really that happy with the earlier version of the plugin, so I modified the mpcinfo-Sources to compile as a native Python plugin, thus eliminating the need for a DLL wrapper. This marks the my first time with the Python/C-API. Quite convenient.</p>

<p>The new version can be downloaded here:
<a href="http://files.sector-5.net/mpcinfo-1.3.1.rar" title="MPCinfo 1.3.1">MPCinfo 1.3.1</a></p>

<p>There used to be C++ sources for the .pyd file and some instructions included in the archive, but I unfortunately lost the source and the original archive, so you&#8217;ll have to make do with just the essentials. <img src='http://sector-5.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/mpcinfo-x-chat-plugin-take-2/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>MPC Status plugin for X-Chat 2</title>
		<link>http://sector-5.net/archives/mpc-status-plugin-for-x-chat-2/</link>
		<comments>http://sector-5.net/archives/mpc-status-plugin-for-x-chat-2/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 22:16:42 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[X-Chat]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/mpc-status-plugin-for-x-chat-2/</guid>
		<description><![CDATA[It seems I finally got my MPCInfo plugin for X-Chat working, as far as not crashing X-Chat after a set amount of time is concerned. The point is, basically, to output the file currently playing in Media Player Classic to the current channel, similar to mIRC plugins such as GTSDll, but without all the bloat [...]]]></description>
			<content:encoded><![CDATA[<p>It seems I finally got my MPCInfo plugin for X-Chat working, as far as not crashing X-Chat after a set amount of time is concerned. The point is, basically, to output the file currently playing in <a href="http://sourceforge.net/project/showfiles.php?group_id=82303&amp;package_id=84358" title="Media Player Classic by Gabest">Media Player Classic</a> to the current channel, similar to mIRC plugins such as <a href="http://www.gts-stuff.com/" title="GTSDll plugin for mIRC">GTSDll</a>, but without all the bloat I&#8217;m not using anyway. The output currently looks like the following example, but should be fairly easy to change if you know what you&#8217;re doing.</p>

<blockquote>[ TwoPoints] <b>MPC</b>: [Eclipse] Itadaki no Hecatetan &#8211; 01 (h264) [81CA68B4].mkv : [00:00/08:04 min (stopped)] : Size: 64.59 mb</blockquote>

<p><span id="more-28"></span></p>

<p>The script itself is using <a href="http://guliverkli.svn.sourceforge.net/viewvc/guliverkli/trunk/guliverkli/src/apps/mpcinfo/" title="mpcinfo.dll Source code">mpcinfo.dll</a> by Gabest and requires Python 2.5 (I believe X-Chat versions >= 2.6.8 are linked against 2.5, so you should be all set if you use a moderately recent version). Since mpcinfo.dll was intended for mIRC use, the exported functions are defined according to mIRC DLL standards, so most of the work in this plugin actually was to wrap the functions to somwhat use them in Python. Maybe I&#8217;ll try and recompile the DLL to a native X-Chat plugin one day, who knows.</p>

<p>Unfortunately I can no longer provide the old version since my provider lost it due to a hardware crash and I do not have the files anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/mpc-status-plugin-for-x-chat-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and mod_python on Windows</title>
		<link>http://sector-5.net/archives/apache-and-mod_python-on-windows/</link>
		<comments>http://sector-5.net/archives/apache-and-mod_python-on-windows/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 09:16:00 +0000</pubDate>
		<dc:creator>Anonymous</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://sector-5.net/archives/apache-and-mod_python-on-windows/</guid>
		<description><![CDATA[Just a friendly reminder for myself how to get Apache 2.2 and mod_python 3.3.x working again after I wasted almost five hours trying to get it running again after upgrading from an older version and Apache 2.0.54.


Prerequisites: Install Apache and Python


Accquire and compile SVN snapshot of mod_python
Install resulting Python package
LoadModule python&#95;module modules/mod&#95;python.so in httpd.conf


I was [...]]]></description>
			<content:encoded><![CDATA[<p>Just a friendly reminder for myself how to get Apache 2.2 and mod_python 3.3.x working again after I wasted almost five hours trying to get it running again after upgrading from an older version and Apache 2.0.54.</p>

<p><span id="more-26"></span>
Prerequisites: Install Apache and Python</p>

<ul>
<li>Accquire and compile SVN snapshot of mod_python</li>
<li>Install resulting Python package</li>
<li>LoadModule python&#95;module modules/mod&#95;python.so in httpd.conf</li>
</ul>

<p>I was stuck for hours because of this simple problem: mod&#95;python.so is dependant on python24.dll (or any other version, depending on what version of Python mod&#95;python was linked against during compile time), and Apache will report &#8220;Cannot find module&#8221; instead of &#8220;Cannot load dependency&#8221; or something if this DLL cannot be found.<br />
This is where adding PathToPython to the global PATH enviroment variable comes into play. If you add it to the local PATH variable instead of the global one, you&#8217;ll need to start the Apache service under your Windows account name. (Duh, if I was into masochism I&#8217;d bump my head against a wall endlessly for wasting my time like this)</p>
]]></content:encoded>
			<wfw:commentRss>http://sector-5.net/archives/apache-and-mod_python-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

