<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Yabfog &#187; perl</title>
	<atom:link href="http://yabfog.com/blog/tag/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://yabfog.com/blog</link>
	<description>Yet another blog full of gas</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:33:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='yabfog.com' port='80' path='/blog/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>HOWTO: Create a Perl Shortcut That Acts Like a Drop Target In Windows</title>
		<link>http://yabfog.com/blog/2005/10/27/howto_create_a_perl_shortcut_that_acts_l</link>
		<comments>http://yabfog.com/blog/2005/10/27/howto_create_a_perl_shortcut_that_acts_l#comments</comments>
		<pubDate>Thu, 27 Oct 2005 14:44:47 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[UPDATE: I recently installed ActivePerl 5.6.1.638 on a new Windows XP system, and I did not need to take any special actions to make perl scripts into drop targets. YMMV. If you use perl on Windows, you've probably got at least one script that you'd like to be able to put on your Desktop and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: </strong>I recently installed ActivePerl 5.6.1.638 on a new Windows XP system, and I did not need to take any special actions to make perl scripts into drop targets. YMMV.</p>
<p>If you use perl on Windows, you've probably got at least one script that you'd like to be able to put on your Desktop and drag-and-drop files onto to perform some function on the dropped files. There are at least two ways to accomplish this.</p>
<ol>
<li>If you've installed <a href="http://aspn.activestate.com/ASPN/Perl">Active State Perl</a>, every perl script with the ".pl" file extension on your system is associated with perl. You can make every one of these perl scripts a drop target by creating a <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/drophandlers.asp">Drop Handler</a> as follows: Create a new registry key "<b>shellex</b>" under the "<b>HKEY_CLASSES_ROOT -> Perl</b>" key with a default value of <b>{86C86720-42A0-1069-A2E8-08002B30309D}</b>. You can do this manually, or save and run this <a href="http://yabfog.com/files/perl_shellex_drophandler.reg">.REG file</a> to modify your registry automatically.
<ul>
<li class="nobullet">Note, however, that the filenames passed to your script by this method will be DOS 8.3 filenames, not long Windows filenames.</li>
<li class="nobullet"><span class="smaller">Link: <a href="http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-users/2597094">RE: drag'n'drop onto desktop icon ??? (By Jack)</a></span></li>
</ul>
</li>
<li>Alternatively (or in addition), you could create a shortcut to Perl and add the path to the perl script as an argument, e.g., in the "Target" field of the shortcut properties, type <b>"C:\Perl\bin\perl.exe" "\PATH_TO_YOURSCRIPT\YOURSCRIPT.pl"</b>. The shortcut will automatically be a drop target whether or not you implemented the registry change above. (You could also create a shortcut to wperl.exe, rather than perl.exe, and eliminate the DOS box.)
<ul>
<li class="nobullet"><span class="smaller">Link: <a href="http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-users/2597069">Re: drag'n'drop onto desktop icon ??? (By Bill)</a></span></li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/10/27/howto_create_a_perl_shortcut_that_acts_l/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Trackback Spam</title>
		<link>http://yabfog.com/blog/2005/08/30/trackback_spam</link>
		<comments>http://yabfog.com/blog/2005/08/30/trackback_spam#comments</comments>
		<pubDate>Tue, 30 Aug 2005 20:27:57 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As of its most recent version, b2evolution has a problem with trackback spam. Several b2e users (including Whoo and Graham) have suggested renaming the directory that contains (among other things) the trackback script. In theory, this should eliminate spam from bots but should not effect legitimate commenters and pingers. Here's a perl script I wrote [...]]]></description>
			<content:encoded><![CDATA[<p>As of its most recent version, <a href="http://www.b2evolution.com">b2evolution</a> has a problem with <a href="http://en.wikipedia.org/wiki/Trackback">trackback spam</a>. Several b2e users (including <a href="http://www.village-idiot.org/archives/2005/03/05/sp-am-again/">Whoo</a> and <a href="http://tin-men.net/blog/how_i_ve_killed_all_spam_on_my_site">Graham</a>)  have suggested renaming the directory that contains (among other things) the trackback script. In theory, this should eliminate spam from bots but should not effect legitimate commenters and pingers.</p>
<p>Here's a perl script I wrote to automate Whoo and Graham's suggestion: <a href="http://yabfog.com/files/hidehtsrv.pl">hidehtsrv.pl</a>. I suggest creating a cron job to run hidehtsrv.pl periodically. <b>Note:</b> this script requires another of my perl scripts, <a href="http://yabfog.com/files/randpass.pl">randpass.pl</a>, a pseudo-random string generator.</p>
<p>Here's a <a href="http://forums.b2evolution.net/viewtopic.php?t=4593">b2evolution forum thread about trackback spam</a>, and here's a <a href="http://forums.b2evolution.net/viewtopic.php?t=2788">b2evolution forum thread about why renaming is effective</a>.</p>
<p>See also my post about <a href="http://yabfog.com/blog/2005/05/31/blog_spam">comment and referrer spam</a> and my <a href="http://forums.b2evolution.net/viewtopic.php?p=24926#24926">b2evolution forums post</a> about this solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/08/30/trackback_spam/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
	</item>
		<item>
		<title>Categorylist Modification</title>
		<link>http://yabfog.com/blog/2005/05/03/categorylist_modification</link>
		<comments>http://yabfog.com/blog/2005/05/03/categorylist_modification#comments</comments>
		<pubDate>Wed, 04 May 2005 01:39:00 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[blosxom]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I modified the categorylist plugin for Blosxom. Now it only lists a category if there are posts in that category. I've created my category taxonomy (tentatively) before I've posted in every category, and I don't want a slew of links to (0) posts. Here's a diff of my modification.]]></description>
			<content:encoded><![CDATA[<p>I modified the <a href="http://www.greenman.org/projects/categorylist"  title="categorylist">categorylist</a> plugin for <a href="http://www.blosxom.com">Blosxom</a>. Now it only lists a category if there are posts in that category. I've created my category taxonomy (tentatively) before I've posted in every category, and I don't want a slew of links to (0) posts. Here's a <a href="http://yabfog.com/files/categorylist.diff">diff</a> of my modification.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/05/03/categorylist_modification/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Writeback Plus Modification</title>
		<link>http://yabfog.com/blog/2005/05/02/writeback_plus_modification</link>
		<comments>http://yabfog.com/blog/2005/05/02/writeback_plus_modification#comments</comments>
		<pubDate>Mon, 02 May 2005 22:58:38 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[blosxom]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I made a couple of modifications to the Writeback Plus plugin for Blosxom. Here's the diff file. Basically, I wanted to have the ability to have alternative writebacks display with a shaded background. In addition, I fixed the removal of the builtin trackback flavour. And I also fixed the annoying always plural usage of "writebacks" [...]]]></description>
			<content:encoded><![CDATA[<p>I made a couple of modifications to the <a href="http://www.numbski.net/software/writebackplus.html">Writeback Plus</a> plugin for <a href="http://www.blosxom.com">Blosxom</a>. Here's the <a href="http://yabfog.com/files/1writeback.diff">diff file</a>. Basically, I wanted to have the ability to have alternative writebacks display with a shaded background. In addition, I fixed the removal of the builtin trackback flavour. And I also fixed the annoying always plural usage of "writebacks" (i.e., "1 writebacks") -- the method was taken from <a href="http://www.nukekiller.net/pollxn">Pollxn</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/05/02/writeback_plus_modification/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
	</item>
	</channel>
</rss>
