<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Pat Rice</title>
	<atom:link href="http://patrick-rice.net/daybook/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrick-rice.net/daybook</link>
	<description>Stuff, nonsense &#38; blather.</description>
	<lastBuildDate>Fri, 23 Dec 2011 13:43:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Better late than never by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/22/better-late-than-never/comment-page-1/#comment-1085</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Fri, 23 Dec 2011 13:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7678#comment-1085</guid>
		<description>The Intuit web site is back up. Somebody must have tripped over the power cord again. I hate when that happens.</description>
		<content:encoded><![CDATA[<p>The Intuit web site is back up. Somebody must have tripped over the power cord again. I hate when that happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mercurial subrepositories by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/15/mercurial-subrepositories/comment-page-1/#comment-1064</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Thu, 15 Dec 2011 15:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7670#comment-1064</guid>
		<description>Hidden away in Window -&gt; Preferences -&gt; Team -&gt; Mercurial -&gt; Performance is an option: &quot;Enable experimental subrepositories support&quot;. By default, it is off.

When I checked it, Eclipse recognized my subrepo as a subrepo: it shows a revision id (or whatever Mercurial calls something like &quot;12:aa5aaf57f6c0&quot;). That much is good.

But there&#039;s no way to pull or update the subrepo, which does rather call into question the deverlopers&#039; use of the word &quot;support&quot;....</description>
		<content:encoded><![CDATA[<p>Hidden away in Window -> Preferences -> Team -> Mercurial -> Performance is an option: &#8220;Enable experimental subrepositories support&#8221;. By default, it is off.</p>
<p>When I checked it, Eclipse recognized my subrepo as a subrepo: it shows a revision id (or whatever Mercurial calls something like &#8220;12:aa5aaf57f6c0&#8243;). That much is good.</p>
<p>But there&#8217;s no way to pull or update the subrepo, which does rather call into question the deverlopers&#8217; use of the word &#8220;support&#8221;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parameterized queries in MySQL by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/10/parameterized-queries-in-mysql/comment-page-1/#comment-1061</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sun, 11 Dec 2011 14:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7664#comment-1061</guid>
		<description>The secret to writing stored procedures is...&lt;em&gt;delimiter management&lt;/em&gt;.

The CREATE PROCEDURE statement ends with a semicolon. So does the SELECT statement inside the CREATE PROCEDURE statement. The MySQL parser is not smart enough to tell them apart - odd, given that Pascal compilers solved exactly the same problem forty years ago - so it it necessary to use the DELIMITER statement to change the (outer) delimiter to something else.

The MySQL manual does mention this in the chapter on stored procedures, but neglects to mention two important details:

&lt;ul&gt;
&lt;li&gt;This applies to &lt;em&gt;any&lt;/em&gt; communication with the MySQL server, not just via the mysql command-line client.&lt;/li&gt;
&lt;li&gt;The new delimiter will not be recognized unless it is the only thing on the line. Replacing (e.g.) END; with END// will produce incomprehensible MySQL errors (that offer no guidance at all toward fixing the problem).&lt;/li&gt;
&lt;/ul&gt;

So now I can write stored procedures that return query result sets. Yay me.</description>
		<content:encoded><![CDATA[<p>The secret to writing stored procedures is&#8230;<em>delimiter management</em>.</p>
<p>The CREATE PROCEDURE statement ends with a semicolon. So does the SELECT statement inside the CREATE PROCEDURE statement. The MySQL parser is not smart enough to tell them apart &#8211; odd, given that Pascal compilers solved exactly the same problem forty years ago &#8211; so it it necessary to use the DELIMITER statement to change the (outer) delimiter to something else.</p>
<p>The MySQL manual does mention this in the chapter on stored procedures, but neglects to mention two important details:</p>
<ul>
<li>This applies to <em>any</em> communication with the MySQL server, not just via the mysql command-line client.</li>
<li>The new delimiter will not be recognized unless it is the only thing on the line. Replacing (e.g.) END; with END// will produce incomprehensible MySQL errors (that offer no guidance at all toward fixing the problem).</li>
</ul>
<p>So now I can write stored procedures that return query result sets. Yay me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 3/7 by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/06/37/comment-page-1/#comment-1052</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7660#comment-1052</guid>
		<description>As it turns out, I had a 10am meeting that I forgot about until 9am.

So I had to drive to work after all.

Hm...donuts....</description>
		<content:encoded><![CDATA[<p>As it turns out, I had a 10am meeting that I forgot about until 9am.</p>
<p>So I had to drive to work after all.</p>
<p>Hm&#8230;donuts&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Annoyances by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/03/annoyances/comment-page-1/#comment-1044</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sat, 03 Dec 2011 16:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7654#comment-1044</guid>
		<description>Added

&lt;blockquote&gt;LoadModule wsgi_module modules/mod_wsgi.so&lt;/blockquote&gt;

to the appropriate file in /etc/http/conf.d, restarted Apache, and - presto! - mod_wsgi is available.

Next: figure out how to &lt;em&gt;use&lt;/em&gt; the silly thing....</description>
		<content:encoded><![CDATA[<p>Added</p>
<blockquote><p>LoadModule wsgi_module modules/mod_wsgi.so</p></blockquote>
<p>to the appropriate file in /etc/http/conf.d, restarted Apache, and &#8211; presto! &#8211; mod_wsgi is available.</p>
<p>Next: figure out how to <em>use</em> the silly thing&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Annoyances by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/03/annoyances/comment-page-1/#comment-1043</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sat, 03 Dec 2011 16:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7654#comment-1043</guid>
		<description>Various lines like

&lt;blockquote&gt;LoadModule python_module modules/mod_python.so
AddHandler mod_python .py
PythonHandler mod_python.publisher&lt;/blockquote&gt;

removed from various files in /etc/http/conf.d; Apache restarted; mod_python is no longer present.

But the mod_wsgi install function only makes mod_wsgi available to Apache: it doesn&#039;t cause it to be loaded when Apache starts up.</description>
		<content:encoded><![CDATA[<p>Various lines like</p>
<blockquote><p>LoadModule python_module modules/mod_python.so<br />
AddHandler mod_python .py<br />
PythonHandler mod_python.publisher</p></blockquote>
<p>removed from various files in /etc/http/conf.d; Apache restarted; mod_python is no longer present.</p>
<p>But the mod_wsgi install function only makes mod_wsgi available to Apache: it doesn&#8217;t cause it to be loaded when Apache starts up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Annoyances by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/03/annoyances/comment-page-1/#comment-1042</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sat, 03 Dec 2011 16:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7654#comment-1042</guid>
		<description>httpd-devel.x86_64 installed, and the mod_wsgi configure script was greatly enhappied thereby.

The build stage went well (albeit with some warnings suggestive of sloppy coding practices on the part of the mod_wsgi developers).

The install went well.

Now attempting to disable mod_python.</description>
		<content:encoded><![CDATA[<p>httpd-devel.x86_64 installed, and the mod_wsgi configure script was greatly enhappied thereby.</p>
<p>The build stage went well (albeit with some warnings suggestive of sloppy coding practices on the part of the mod_wsgi developers).</p>
<p>The install went well.</p>
<p>Now attempting to disable mod_python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Annoyances by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/03/annoyances/comment-page-1/#comment-1041</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sat, 03 Dec 2011 16:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7654#comment-1041</guid>
		<description>The mod_wsgi configure script complains:

&lt;blockquote&gt;checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line 1704: apxs: command not found&lt;/blockquote&gt;

This is because the httpd-devel.x86_64 package isn&#039;t installed.

In theory,

&lt;blockquote&gt;yum install httpd-devel.x86_64&lt;/blockquote&gt;

would fix that.</description>
		<content:encoded><![CDATA[<p>The mod_wsgi configure script complains:</p>
<blockquote><p>checking for apxs2&#8230; no<br />
checking for apxs&#8230; no<br />
checking Apache version&#8230; ./configure: line 1704: apxs: command not found</p></blockquote>
<p>This is because the httpd-devel.x86_64 package isn&#8217;t installed.</p>
<p>In theory,</p>
<blockquote><p>yum install httpd-devel.x86_64</p></blockquote>
<p>would fix that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Annoyances by Pat</title>
		<link>http://patrick-rice.net/daybook/2011/12/03/annoyances/comment-page-1/#comment-1039</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Sat, 03 Dec 2011 15:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7654#comment-1039</guid>
		<description>One way to check whether Python is available as a shared library:

&lt;pre&gt;$ ldd /usr/bin/python
linux-vdso.so.1 =&gt;  (0x00007fff613ec000)
libpython2.4.so.1.0 =&gt; /usr/lib64/libpython2.4.so.1.0 (0x000000380e200000)
libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x000000380da00000)
libdl.so.2 =&gt; /lib64/libdl.so.2 (0x000000380d200000)
libutil.so.1 =&gt; /lib64/libutil.so.1 (0x000000381cc00000)
libm.so.6 =&gt; /lib64/libm.so.6 (0x000000380d600000)
libc.so.6 =&gt; /lib64/libc.so.6 (0x000000380ce00000)
/lib64/ld-linux-x86-64.so.2 (0x000000380ca00000)&lt;/pre&gt;

The second line of output is the important one: the shared-library incarnation of Python is  /usr/lib64/libpython2.4.so.1.0.</description>
		<content:encoded><![CDATA[<p>One way to check whether Python is available as a shared library:</p>
<pre>$ ldd /usr/bin/python
linux-vdso.so.1 =>  (0x00007fff613ec000)
libpython2.4.so.1.0 => /usr/lib64/libpython2.4.so.1.0 (0x000000380e200000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000380da00000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000380d200000)
libutil.so.1 => /lib64/libutil.so.1 (0x000000381cc00000)
libm.so.6 => /lib64/libm.so.6 (0x000000380d600000)
libc.so.6 => /lib64/libc.so.6 (0x000000380ce00000)
/lib64/ld-linux-x86-64.so.2 (0x000000380ca00000)</pre>
<p>The second line of output is the important one: the shared-library incarnation of Python is  /usr/lib64/libpython2.4.so.1.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sequelae by SandChigger</title>
		<link>http://patrick-rice.net/daybook/2011/11/11/sequelae/comment-page-1/#comment-1022</link>
		<dc:creator>SandChigger</dc:creator>
		<pubDate>Fri, 25 Nov 2011 18:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://patrick-rice.net/daybook/?p=7617#comment-1022</guid>
		<description>&quot;They were so vile I refused to read any more.&quot;

I&#039;ve read them all. &quot;Vile&quot; doesn&#039;t even scratch the surface of what they have become.... Give water to Frank Herbert!</description>
		<content:encoded><![CDATA[<p>&#8220;They were so vile I refused to read any more.&#8221;</p>
<p>I&#8217;ve read them all. &#8220;Vile&#8221; doesn&#8217;t even scratch the surface of what they have become&#8230;. Give water to Frank Herbert!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

