<?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>Coyote Tracks &#187; release</title>
	<atom:link href="http://kagan.mactane.org/blog/tag/release/feed/" rel="self" type="application/rss+xml" />
	<link>http://kagan.mactane.org/blog</link>
	<description>The prints of an Internet-enabled coyote.</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:26:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Hummingbird Version 0.67 Released</title>
		<link>http://kagan.mactane.org/blog/2011/01/16/hummingbird-version-0-67-released/</link>
		<comments>http://kagan.mactane.org/blog/2011/01/16/hummingbird-version-0-67-released/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 21:13:00 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Hummingbird]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=275</guid>
		<description><![CDATA[I&#8217;ve released a new version of Hummingbird. This is a bug-fix release, resolving some issues in automatic hyperlinking and in recognition of multiple hashtags in a single tweet. (Yes, this is why I did a couple of tweets hashtagged &#8220;#testing&#8221; a couple of days ago.) Downloads are available from the Hummingbird project page, or using [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released a new version of Hummingbird. This is a bug-fix release, resolving some issues in automatic hyperlinking and in recognition of multiple hashtags in a single tweet. (Yes, this is why I did a couple of tweets hashtagged &#8220;#testing&#8221; a couple of days ago.)</p>
<p>Downloads are available from <a href="/software/hummingbird/">the Hummingbird project page</a>, or using these links:</p>
<p><a href="/software/libraries/download/hummingbird-0.67.tar.gz">hummingbird-0.67.tar.gz</a><br />
<a href="/software/libraries/download/hummingbird-0.67.zip">hummingbird-0.67.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2011/01/16/hummingbird-version-0-67-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hummingbird Version 0.66 Released</title>
		<link>http://kagan.mactane.org/blog/2010/11/28/hummingbird-version-0-66-released/</link>
		<comments>http://kagan.mactane.org/blog/2010/11/28/hummingbird-version-0-66-released/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 23:02:28 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Hummingbird]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=262</guid>
		<description><![CDATA[This is largely a bug-fix release. Tom Clift, of PaperCut print management software, kindly informed me of a few installation issues that my own tests didn&#8217;t find. The profusion of configuration options in PHP can make testing everything on a single server quite difficult. This would be a good time for me to mention that [...]]]></description>
			<content:encoded><![CDATA[<p>This is largely a bug-fix release. Tom Clift, of <a href="http://www.papercut.com/">PaperCut</a> print management software, kindly informed me of a few installation issues that my own tests didn&#8217;t find. The profusion of configuration options in PHP can make testing everything on a single server <em>quite</em> difficult.</p>
<p>This would be a good time for me to mention that I have the utmost respect for QA people. They deal with all sorts of minutiae that I am really glad not to have to handle, and I&#8217;m really glad they&#8217;re around. That said, I am <em>not</em> a QA person&#8230; and so I occasionally miss the sorts of stuff they&#8217;d catch.</p>
<ol>
<li>It turns out Hummingbird depends on <a href="http://www.php.net/manual/en/features.commandline.introduction.php">the CLI version</a> of PHP, and the CGI version will not suffice. This requirement is now listed in the appropriate section of <a href="http://kai.mactane.org/software/hummingbird/">the Hummingbird page</a>.</li>
<li>Not all PHP installations have output buffering turned on by default. The latest version of Hummingbird takes account for this.</li>
<li>Various problems that can occur with the data cache file are also now reported more gracefully.</li>
</ol>
<p>Again, my thanks to Tom Clift for some very useful patches!</p>
<p>You can get the latest version of Hummingbird from <a href="http://kai.mactane.org/software/hummingbird/">the Hummingbird page on my site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2010/11/28/hummingbird-version-0-66-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing Hummingbird Version 0.65</title>
		<link>http://kagan.mactane.org/blog/2010/09/19/announcing-hummingbird-version-0-65/</link>
		<comments>http://kagan.mactane.org/blog/2010/09/19/announcing-hummingbird-version-0-65/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 23:03:59 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[Hummingbird]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=244</guid>
		<description><![CDATA[I see that I never bothered announcing the v0.61 release. That was a minor bug-fix, resolving an issue where Hummingbird would fail if the XML cache file was empty. The latest release is one that allows multiple versions of Hummingbird to run on the same machine without conflict, as long as they&#8217;re using different Twitter [...]]]></description>
			<content:encoded><![CDATA[<p>I see that I never bothered announcing the v0.61 release. That was a minor bug-fix, resolving an issue where Hummingbird would fail if the XML cache file was empty.</p>
<p>The latest release is one that allows multiple versions of Hummingbird to run on the same machine without conflict, as long as they&#8217;re using different Twitter usernames.</p>
<p>In addition, I&#8217;ve changed the destination of auto-hashtag links. Since the hashtags.org service is often a bit flaky, or simply returns useless null results, I&#8217;ve switched to using Twitter&#8217;s own internal search service.</p>
<p>Downloads are available from <a href="/software/hummingbird/">the Hummingbird project page</a>, or using these links:</p>
<p><a href="/software/libraries/download/hummingbird-0.65.tar.gz">hummingbird-0.65.tar.gz</a><br />
<a href="/software/libraries/download/hummingbird-0.65.zip">hummingbird-0.65.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2010/09/19/announcing-hummingbird-version-0-65/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hummingbird Updated to Version 0.60</title>
		<link>http://kagan.mactane.org/blog/2009/08/20/hummingbird-updated-to-version-0-60/</link>
		<comments>http://kagan.mactane.org/blog/2009/08/20/hummingbird-updated-to-version-0-60/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 02:49:27 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Hummingbird]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[should have known better]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=109</guid>
		<description><![CDATA[I&#8217;ve always questioned the wisdom of building a startup company based around someone else&#8217;s platform, like Facebook games or Gmail inbox add-ons. You&#8217;re totally at the mercy of the other company. (Many people have found out how silly it was to go up against Microsoft or Apple in just the same way.) And yet, here [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always questioned the wisdom of building a startup company based around someone else&#8217;s platform, like Facebook games or Gmail inbox add-ons. You&#8217;re totally at the mercy of the other company. (Many people have found out how silly it was to go up against Microsoft or Apple in just the same way.)</p>
<p>And yet, here I am with <a href="/software/hummingbird/">Hummingbird</a>, which is totally dependent on Twitter&#8217;s bandwidth. (In my own defense, I can only point out that: a) I wrote it because I needed the functionality; and b) I&#8217;m not building a money-making company around Hummingbird. I&#8217;m just giving it away.)</p>
<p>In the past couple of weeks, I&#8217;ve noticed that Twitter can sometimes take an astonishingly long time to provide an update. Hummingbird works by requesting URLs like <a href="http://twitter.com/statuses/user_timeline/kmactane.xml?count=25">http://twitter.com/statuses/user_timeline/kmactane.xml?count=25</a>, and (up until now) it worked on the assumption that Twitter couldn&#8217;t possibly take longer than 10 or 15 seconds to respond to such a request.</p>
<p>That turns out not to be the case.</p>
<p>In fact, my recent tests have shown that Twitter can sometimes take <em>over 5 full minutes</em> to finish responding to such a request. This is a problem, because the default installation of Hummingbird tries to update its cached data once every 5 minutes. And since I assumed the request would be fulfilled in, at most, 10% of that time, I didn&#8217;t bother building in any concurrency checking.</p>
<p>I&#8217;ve just completely reorganized most of Hummingbird&#8217;s architecture. The interface that a blog owner sees (in the sense of the configuration variables in <code>hummingbird.php</code>, and the calling syntax for blog pages and cron jobs) is still the same. However, all of the code for retrieving data from Twitter has been spun off into a new <code>hummingbird-cache.php</code> file, which can be launched into the background by the rest of Hummingbird, so that it can patiently take as long as it needs to in order to update the blog&#8217;s tweets cache.</p>
<h3>The Major Change This Causes</h3>
<p>In Hummingbird&#8217;s previous incarnations, it would freshen an out-of-date cache before displaying it. The assumption was that every once in a while, someone might have to wait a few more seconds before seeing your blog page. However, everyone would always see an up-to-date record of your tweets. (Where &#8220;up-to-date&#8221; means &#8220;no more than 5 minutes old, absolute tops&#8221;. If you tweet so relentlessly that that&#8217;s a problem, you probably don&#8217;t have enough time to keep up your blog&#8230;)</p>
<p>Now that we know that Twitter can take over 5 minutes to give you the data needed to freshen your tweets cache, that design is not acceptable. Instead, Hummingbird is now committed to showing the contents of your tweets cache as quickly as possible, and <em>only then</em> does it fork the cache-update process into the background.</p>
<p>This means that, <em>if you&#8217;re not using cron</em> or some other automatic job-scheduling facility to run Hummingbird every 5 minutes, visitors who arrive at your blog after a period of inactivity will see an out-of-date, stale listing of your tweets. </p>
<p>If you have a cron job set to keep Hummingbird fresh, you&#8217;ll be fine. (A page view will also trigger an update, so if you get so much traffic that there&#8217;s never a 5-minute period during which your page doesn&#8217;t get hit, you&#8217;ll also be fine.)</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/08/20/hummingbird-updated-to-version-0-60/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An Installation Shell-Script for Palm Pr&#275; Developers</title>
		<link>http://kagan.mactane.org/blog/2009/08/02/an-installation-shell-script-for-palm-pre-developers/</link>
		<comments>http://kagan.mactane.org/blog/2009/08/02/an-installation-shell-script-for-palm-pre-developers/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 22:28:16 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[Palm Pre]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=101</guid>
		<description><![CDATA[Last week, I wrote that I'd been working on a script to easily install homebrew apps on the Palm Pr&#275;. It now looks like there are much better ways to handle such things&#160;&#8212; I've become quite a fan of fileCoaster, myself, and of course webOSQuickInstall is a wonderful piece of work, as well. But just [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, I wrote that I'd been working on a script to easily install homebrew apps on the Palm Pr&#275;. It now looks like there are much better ways to handle such things&nbsp;&mdash; I've become quite a fan of fileCoaster, myself, and of course webOSQuickInstall is a wonderful piece of work, as well. But just in case anyone might find this shell script useful, I'll release it for general use.
</p>
<p><strong>Assumptions</strong>
</p>

<ol>
	<li>You have a web-accessible server where you put your development .ipk files.</li>
	<li>You can ssh into your Pr&#275;.</li>
</ol>

<p><strong>Download</strong>
</p>
<p>You can download the script at <a href="http://kai.mactane.org/software/libraries/download/homebrew.sh">http://kai.mactane.org/software/libraries/download/homebrew.sh</a>.
</p>
<p><strong>Installation</strong>
</p>
<p>Just drop the shell script into your home directory and make it executable. If you want to be able to use the "my" argument, you'll also need to edit the three configuration variables at the beginning: MY_HOSTNAME, STDPATH, and STDVERSION.
</p>
<p><strong>Usage</strong>
</p>
<p>For most purposes, you'll just want to install your own package that you've been working on. Assuming you've set the config variables correctly, you can just type <code>./homebrew.sh my <em>appname</em></code>, where the <em>appname</em> is the base name of your package.
</p>
<p>If you're installing multiple .ipks and you don't need to restart the GUI manager for each one, you can use the "skip" command on all but the last:
</p>
<p><code>./homebrew.sh skip my foo<br />
./homebrew.sh skip my bar<br />
./homebrew.sh skip my baz<br />
./homebrew.sh my quux
</code>
</p>
<p>You can also supply a complete URL: <code>./homebrew.sh http://forums.precentral.net/spe_attachment/download-23971-com.palm.net.precoder.fcoaster_1.0.2_all.ipk</code> will download and install fileCoaster, so you won't have to mess with my script any more.
</p>
<p><strong>What It Does</strong>
</p>
<p>It automates the process of <a href="http://www.webos-internals.org/wiki/Installing_Homebrew_Apps_With_A_Rooted_Pr&#275;">installing homebrew apps with a rooted Pr&#275;</a>, as described on the webOS Internals wiki. Basically, it remounts the root partition in read-write mode, <code>wget</code>s your .ipk file, installs it, does the "Good Housekeeping" backup, remounts the root partition in read-only mode again, and then restarts the GUI manager.
</p>

]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/08/02/an-installation-shell-script-for-palm-pre-developers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcement: Hummingbird Upgraded to Version 0.51</title>
		<link>http://kagan.mactane.org/blog/2009/07/15/announcement-hummingbird-upgraded-to-version-0-51/</link>
		<comments>http://kagan.mactane.org/blog/2009/07/15/announcement-hummingbird-upgraded-to-version-0-51/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 22:11:10 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=91</guid>
		<description><![CDATA[I&#8217;ve just upgraded Hummingbird from version 0.5 to its new version: 0.51. Since I recently starting using the #PalmPr&#275; hashtag in my tweets, I suddenly noticed that Hummingbird didn&#8217;t make hashtags clickable. Well, now it does. The change is pretty minimal, but it also incurred some overhead in my web site: the Hummingbird web page [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just upgraded Hummingbird from version 0.5 to its new version: 0.51. Since I recently starting using the #PalmPr&#275; hashtag in my tweets, I suddenly noticed that Hummingbird didn&#8217;t make hashtags clickable.</p>
<p>Well, now it does.</p>
<p>The change is pretty minimal, but it also incurred some overhead in my web site: <a href="http://kai.mactane.org/software/hummingbird/">the Hummingbird web page</a> needed to be updated to match the new feature. And since that feature meant adding a new CSS class, I had to update the &#8220;CSS Styling&#8221; section as well as the &#8220;Features&#8221; section&#8230; and add a new &#8220;Version History&#8221; section&#8230;</p>
<p>All in all, it was harder to update the documentary web page than to update the software itself. In a way, that implies that my code was pretty clean. If you want, you can <a href="http://kai.mactane.org/software/libraries/download/hummingbird.php">download the new version here</a>.</p>
<p>See, I&#8217;m not neglecting everything to work on Palm Pr&#275; programming! (I&#8217;m also doing some contracting, which is taking up even more time.) </p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/07/15/announcement-hummingbird-upgraded-to-version-0-51/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Launching SSHblock</title>
		<link>http://kagan.mactane.org/blog/2009/06/16/launching-sshblock/</link>
		<comments>http://kagan.mactane.org/blog/2009/06/16/launching-sshblock/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 18:59:26 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=71</guid>
		<description><![CDATA[My latest software project is now available&#8230; where &#8220;latest&#8221; means &#8220;the latest thing I&#8217;ve launched, even if I actually wrote it over a year ago.&#8221; The story is simple: I was tired of seeing &#8220;failed password&#8221; messages from sshd cluttering up my logs. I was also annoyed at the constant flow of dictionary attacks, even [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://kai.mactane.org/software/sshblock/">latest software project is now available</a>&#8230; where &#8220;latest&#8221; means &#8220;the latest thing I&#8217;ve <em>launched</em>, even if I actually wrote it over a year ago.&#8221;</p>
<p>The story is simple: I was tired of seeing &#8220;failed password&#8221; messages from sshd cluttering up my logs. I was also annoyed at the constant flow of dictionary attacks, even if I knew they&#8217;d never get in. So I whipped up a quick Perl script that acted as some glue between <a href="http://swatch.sourceforge.net/">Swatch</a> and iptables, and which would also give me some amount of reporting and history on who and what it was blocking.</p>
<p>Then I posted about it in my online journal, and a friend said it sounded useful. So I started getting it ready for release as a package that anyone could use&#8230;</p>
<p>And promptly realized that doing a decent, professional job of it would take more time than I had available. Fast-forward to now, when I&#8217;m unemployed and can only spend so many hours per day job-hunting&nbsp;&mdash; the result is that the world gets more software!</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/06/16/launching-sshblock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcing Hummingbird</title>
		<link>http://kagan.mactane.org/blog/2009/05/27/announcing-hummingbird/</link>
		<comments>http://kagan.mactane.org/blog/2009/05/27/announcing-hummingbird/#comments</comments>
		<pubDate>Wed, 27 May 2009 20:01:06 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=57</guid>
		<description><![CDATA[If you read Coyote Tracks*, you&#8217;ve probably noticed that I recently set up a thing over there in the right-hand side that says &#8220;My Latest Tweets&#8221;. At first, that was just a little PHP widget that I&#8217;d hacked together myself. But then I realized it could actually be useful to other people, because it does [...]]]></description>
			<content:encoded><![CDATA[<p>If you read <cite>Coyote Tracks</cite>*, you&#8217;ve probably noticed that I recently set up a thing over there in the right-hand side that says &#8220;My Latest Tweets&#8221;. At first, that was just a little PHP widget that I&#8217;d hacked together myself. But then I realized it could actually be useful to other people, because it does a bunch of things that many of the other &#8220;latest tweets&#8221; widgets in existence <em>don&#8217;t</em> do.</p>
<p>So I decided to get it cleaned up and make a real, distributable software package out of it. That took a few days, especially when I started banging on it, and trying to ensure that it had a prayer of working on anyone else&#8217;s server. Plus there was the time involved for writing the docs.</p>
<p>But now that all of that stuff is done, I am pleased to announce: <a href="/software/hummingbird/">Hummingbird</a>. A lightweight, pretty, and compact gizmo for displaying your latest tweets on a blog or other PHP-powered web page.</p>
<p>* And if you don&#8217;t read <cite>Coyote Tracks</cite>&#8230; what the heck is wrong with you? *g*</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/05/27/announcing-hummingbird/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site Updated and Software Publication</title>
		<link>http://kagan.mactane.org/blog/2009/05/20/site-updated-and-software-publication/</link>
		<comments>http://kagan.mactane.org/blog/2009/05/20/site-updated-and-software-publication/#comments</comments>
		<pubDate>Wed, 20 May 2009 22:57:24 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[my projects]]></category>
		<category><![CDATA[paradigms]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=55</guid>
		<description><![CDATA[Just updated my software page to bring it a little more up-to-date with what I&#8217;ve been doing in the past few years. It&#8217;s funny to see how my coding style has evolved and grown continually over that time. There were some things I used to be showing off that were almost totally procedural; even some [...]]]></description>
			<content:encoded><![CDATA[<p>Just updated <a href="http://kai.mactane.org/software/">my software page</a> to bring it a little more up-to-date with what I&#8217;ve been doing in the past few years. It&#8217;s funny to see how my coding style has evolved and grown continually over that time. There were some things I used to be showing off that were almost totally procedural; even some of the things I&#8217;m still linking to (but which I wrote two or three years ago) make very little use of functional programming or anonymous functions in JavaScript.</p>
<p>It&#8217;s really tempting to completely refactor some of that stuff, but I haven&#8217;t got the time. I actually have at least one more software project that I should really package up and publish&nbsp;&mdash; a thing that might be helpful for system administrators who are being annoyed by SSH dictionary attacks.</p>
<p>Writing something that works on your own machine is one thing. Making a full release? That&#8217;s quite different! It needs documentation, and that documentation needs to explain all the things that you &#8220;just know&#8221;. It needs some kind of install mechanism, or else it needs to explain how to install the stuff manually&nbsp;&mdash; and you need to make absolutely sure that you haven&#8217;t forgotten any of the things you wrote, changed, or tweaked while you were making it work!</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/05/20/site-updated-and-software-publication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Workaround for PEAR/PECL Failure with Message &#8220;ERROR: `phpize&#8217; failed&#8221;</title>
		<link>http://kagan.mactane.org/blog/2009/05/11/workaround-for-pearpecl-failure-with-message-error-phpize-failed/</link>
		<comments>http://kagan.mactane.org/blog/2009/05/11/workaround-for-pearpecl-failure-with-message-error-phpize-failed/#comments</comments>
		<pubDate>Mon, 11 May 2009 17:24:24 +0000</pubDate>
		<dc:creator>Kai MacTane</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://kai.mactane.org/blog/?p=46</guid>
		<description><![CDATA[When you try to upgrade or install various PEAR (or PECL) packages, you may get the rather unhelpful error message &#8220;ERROR: `phpize&#8217; failed&#8221;. For example, here&#8217;s the result I get when I try to install the pecl_http package: root@finrod:~# pecl install pecl_http pecl/pecl_http can optionally use PHP extension &#34;iconv&#34; downloading pecl_http-1.6.3.tar .&#46;. Starting to download [...]]]></description>
			<content:encoded><![CDATA[<p>When you try to upgrade or install various PEAR (or PECL) packages, you may get the rather unhelpful error message &#8220;ERROR: `phpize&#8217; failed&#8221;. For example, here&#8217;s the result I get when I try to install the <code>pecl_http</code> package:</p>
<p><code>root@finrod:~# <strong>pecl install pecl_http</strong><br />
pecl/pecl_http can optionally use PHP extension &#34;iconv&#34;<br />
downloading pecl_http-1.6.3.tar .&#46;.<br />
Starting to download pecl_http-1.6.3.tar (Unknown size)<br />
.&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;.&#46;.<br />
.&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;.&#46;.<br />
.&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;..&#46;.&#46;.done: 1,015,808 bytes<br />
71 source files, building<br />
running: phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
ERROR: `phpize&#39; failed<br />
root@finrod:~#</code></p>
<p>The error is actually caused by <a href="http://bugs.php.net/bug.php?id=29123">a bug in PHP itself (filed in PHP&#8217;s bug database as of 2004</a>, and currently marked &#8220;Won&#8217;t fix&#8221;): If your installation of PHP was compiled with the <code>--enable-sigchild</code> flag on, then the return value from a <code>pclose()</code> call can&#8217;t be trusted. One of PEAR&#8217;s components, called PEAR::Builder, uses <code>pclose()</code> as part of the package installation process, to try to determine whether a given operation succeeded or not.</p>
<p>Even though the operation succeeds, <code>pclose()</code> returns -1, signaling a failure, and the rest of PEAR then takes <code>pclose()</code> at its word.</p>
<p><strong>Is This Affecting Your Installation of PHP and PEAR?</strong></p>
<p>If you&#8217;ve gotten an &#8220;ERROR: `phpize&#8217; failed&#8221; message when trying to run a &#8220;pecl install&#8221; or &#8220;pear install&#8221; command, try running <code>phpinfo()</code>&nbsp;&mdash; if you see <code>--enable-sigchild</code> in the &#8220;Configure Command&#8221; section near the very top, then you&#8217;re most likely being bitten by this bug.</p>
<p><strong>Potential Fixes and Workarounds</strong></p>
<p>The PHP dev team recommends recompiling without the offending flag.</p>
<p>However, you may not be able to do that, for any of various reasons. (You may have installed from a binary package, for instance&nbsp;&mdash; like most people these days.) Or it may simply seem like an excessive hassle. I offer the following patch <strong>as-is, without any guarantee or support</strong>.</p>
<p>First, ensure that you have the latest version of PEAR::Builder. Look in your PEAR/Builder.php file&nbsp;&mdash; On most Linux and Unix installations, this is likely to be in <code>/usr/lib/php/PEAR/Builder.php</code>, or possibly <code>/usr/local/lib/php/PEAR/Builder.php</code>.</p>
<p>On Windows systems, PHP might be installed nearly anywhere, but supposing it&#8217;s in <code>c:\php</code>, then the file you&#8217;re looking for will be in <code>c:\php\PEAR\PEAR\Builder.php</code> (yes, that&#8217;s two PEARs in a row).</p>
<p>Check the &#8220;@version&#8221; line in the big comment block at the beginning of the file; the line you want should be around line 19 or so. If says it&#8217;s less than version 1.38 (the latest one, at the time I&#8217;m writing this post), then try upgrading. Running &#8220;pear upgrade pear&#8221; should work. Then you can install this patch file:</p>
<p><a href="http://kai.mactane.org/software/patch-pear-builder-1.38.txt">patch-pear-builder-1.38.txt</a></p>
<p>Download the patch file and place it somewhere on your machine. Log in and <code>cd</code> to the PEAR directory that contains the Builder.php file. Then run the patch command. In the following example, I&#8217;ve placed the patch file in root&#8217;s home directory:</p>
<p><code>root@finrod:~# <strong>ls</strong><br />
loadlin16c.txt  loadlin16c.zip  patch-pear-builder-1.38.txt<br />
root@finrod:~# <strong>cd /usr/lib/php/PEAR</strong><br />
root@finrod:/usr/lib/php/PEAR# <strong>cp Builder.php Builder.bak.php</strong><br />
root@finrod:/usr/lib/php/PEAR# <strong>patch -p0 < /root/patch-pear-builder-1.38.txt</strong><br />
patching file Builder.php<br />
root@finrod:/usr/lib/php/PEAR# </code></p>
<p>Naturally, if the patch file doesn&#8217;t work for some reason, or it breaks things, you can just <code>cp</code> the backup file back into place.</p>
<p>Please let me know if this patch works for you&nbsp;&mdash; or if it fails horribly, for that matter.</p>
<p>[Updated 2009-06-03: Minor edits for clarity]</p>
]]></content:encoded>
			<wfw:commentRss>http://kagan.mactane.org/blog/2009/05/11/workaround-for-pearpecl-failure-with-message-error-phpize-failed/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

