<?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>phaq &#187; Programming</title>
	<atom:link href="http://phaq.phunsites.net/category/faq/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://phaq.phunsites.net</link>
	<description>"a geeks daily life"</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:57:42 +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>Recognize invalid/unexpected characters with Perl</title>
		<link>http://phaq.phunsites.net/2009/10/20/recognize-invalidunexpected-characters-with-perl/</link>
		<comments>http://phaq.phunsites.net/2009/10/20/recognize-invalidunexpected-characters-with-perl/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:16:54 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=142</guid>
		<description><![CDATA[Today a colleague of mine faced a very weird problem.
While parsing XML output from an HP ILO into Perl, his code constantly broke with the message:
FILE.XML:123 parser error : PCDATA invalid Char value 1
While the message itself states clearly that there is an unexpected character value (Char value 1, ASCII SOH) on one hand, it [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2009/10/20/recognize-invalidunexpected-characters-with-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange compilation error on MySQL</title>
		<link>http://phaq.phunsites.net/2009/07/16/strange-compilation-error-on-mysql/</link>
		<comments>http://phaq.phunsites.net/2009/07/16/strange-compilation-error-on-mysql/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:01:38 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2009/07/16/strange-compilation-error-on-mysql/</guid>
		<description><![CDATA[Yesterday I started digging around for a solution to create per-user or per-database statistics on MySQL, one of the more important peaces I was missing from it for a long time.
Luckily enough, some guys over there had already done some work on this topic, so I wouldn&#8217;t have to start over from scratch  
It [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2009/07/16/strange-compilation-error-on-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple&#8217;s Safari violates RFC2616</title>
		<link>http://phaq.phunsites.net/2008/01/23/apples-safari-violates-rfc2616/</link>
		<comments>http://phaq.phunsites.net/2008/01/23/apples-safari-violates-rfc2616/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 16:24:57 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2008/01/23/apples-safari-violates-rfc2616/</guid>
		<description><![CDATA[Today I faced an issue, where HTTP redirections didn&#8217;t work out as expected on Apple&#8217;s Safari browser.
This came up while I was coding up some sort of web-based login redirector, which is stacked up in three layers:

html login form
login preprocessor (server side scripting)
login processor (server side scripting)

This solution was required to implement a generic way [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2008/01/23/apples-safari-violates-rfc2616/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>No &#8220;sleep&#8221; command for batch files? Make it a choice!</title>
		<link>http://phaq.phunsites.net/2007/05/05/no-sleep-command-for-batch-files-make-it-a-choice/</link>
		<comments>http://phaq.phunsites.net/2007/05/05/no-sleep-command-for-batch-files-make-it-a-choice/#comments</comments>
		<pubDate>Sat, 05 May 2007 18:35:37 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[DOS]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2007/05/05/no-sleep-command-for-batch-files-make-it-a-choice/</guid>
		<description><![CDATA[I just trapped myself while hacking up a batch file.
Used to shell scripting I wanted to add a delay to the batch using &#8220;sleep&#8221;.
Dough! Bad Idea! Bad command or filename. Smash your head here to continue {(x)}!
So I winded up my memories from stoneage. Wasn&#8217;t there the choice command!?
Yeah, after some lurking around with the [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2007/05/05/no-sleep-command-for-batch-files-make-it-a-choice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Your Makefile has been rebuilt&#8230;</title>
		<link>http://phaq.phunsites.net/2007/01/10/your-makefile-has-been-rebuilt/</link>
		<comments>http://phaq.phunsites.net/2007/01/10/your-makefile-has-been-rebuilt/#comments</comments>
		<pubDate>Wed, 10 Jan 2007 11:09:46 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2007/01/10/your-makefile-has-been-rebuilt/</guid>
		<description><![CDATA[One might asume building a port from source should be fast and straight forward.
Not in this case, however&#8230;
# cd /usr/ports/devel/p5-File-Tail
# make clean build
===>  Cleaning for perl-5.8.8
===>  Cleaning for p5-File-Tail-0.99.3
===>  Vulnerability check disabled, database not found
===>  Extracting for p5-File-Tail-0.99.3
=> MD5 Checksum OK for File-Tail-0.99.3.tar.gz.
=> SHA256 Checksum OK for File-Tail-0.99.3.tar.gz.
===>   p5-File-Tail-0.99.3 [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2007/01/10/your-makefile-has-been-rebuilt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype Mismatch in APR::XSLoader::BOOTSTRAP</title>
		<link>http://phaq.phunsites.net/2006/10/31/prototype-mismatch-in-aprxsloaderbootstrap/</link>
		<comments>http://phaq.phunsites.net/2006/10/31/prototype-mismatch-in-aprxsloaderbootstrap/#comments</comments>
		<pubDate>Tue, 31 Oct 2006 15:32:57 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/10/31/prototype-mismatch-in-aprxsloaderbootstrap/</guid>
		<description><![CDATA[Well, today I just did not believe my eyes.
I was just bringing up a new webmail host when I noticed Apache throwing an 500 internal server error at me.
Looking at the error log I saw this line:
[Wed Jan 01 00:16:35 2003] [error] [client 127.0.0.1] Prototype mismatch: sub APR::XSLoader::BOOTSTRAP: none vs () at /usr/local/lib/perl5/site_perl/5.8.8/mach/APR/XSLoader.pm line 24. [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2006/10/31/prototype-mismatch-in-aprxsloaderbootstrap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find And Replace Strings</title>
		<link>http://phaq.phunsites.net/2006/10/13/find-and-replace-strings/</link>
		<comments>http://phaq.phunsites.net/2006/10/13/find-and-replace-strings/#comments</comments>
		<pubDate>Fri, 13 Oct 2006 12:57:13 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Shells]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/10/13/find-and-replace-strings/</guid>
		<description><![CDATA[Imagine you have a directory with thousands of text files, each of which containing some keywords to be replaced.
While there&#8217;s a lot of tools out there allowing you to find and replace strings in text files, there&#8217;s always a goog reason to use the tools that you already have.
This snippet uses find in combination with [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2006/10/13/find-and-replace-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obscure Perl Module Compilation Error</title>
		<link>http://phaq.phunsites.net/2006/09/13/obscure-perl-module-compilation-error/</link>
		<comments>http://phaq.phunsites.net/2006/09/13/obscure-perl-module-compilation-error/#comments</comments>
		<pubDate>Wed, 13 Sep 2006 14:29:29 +0000</pubDate>
		<dc:creator>Gianpaolo Del Matto</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/09/13/obscure-perl-module-compilation-error/</guid>
		<description><![CDATA[When I was setting up a development box today I encountered a strange error while compiling the Mail::ClamAV perl module.
[output stripped]
Starting Build Compile Stage
Starting &#8220;perl Makefile.PL&#8221; Stage
Note (probably harmless): No library found for -lclamav
Writing Makefile for Mail::ClamAV
Finished &#8220;perl Makefile.PL&#8221; Stage
Starting &#8220;make&#8221; Stage
/usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap  ClamAV.xs > ClamAV.xsc &#038;&#038; mv ClamAV.xsc ClamAV.c
cc -c [...]]]></description>
		<wfw:commentRss>http://phaq.phunsites.net/2006/09/13/obscure-perl-module-compilation-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
