<?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 on: A little programming project, part 2</title>
	<atom:link href="http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/</link>
	<description>Writings on technology and society from Wellington, New Zealand</description>
	<lastBuildDate>Wed, 02 May 2012 08:16:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: it.gen.nz &#187; A little programming project - part 3</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-1097</link>
		<dc:creator>it.gen.nz &#187; A little programming project - part 3</dc:creator>
		<pubDate>Sun, 19 Oct 2008 11:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-1097</guid>
		<description>[...] ago I blogged about writing a little program to make my life easier. (The entries are here and here.) In summary this program automates the messy but easy administrative task of editing links to the [...]</description>
		<content:encoded><![CDATA[<p>[...] ago I blogged about writing a little program to make my life easier. (The entries are here and here.) In summary this program automates the messy but easy administrative task of editing links to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim McKenzie</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-992</link>
		<dc:creator>Tim McKenzie</dc:creator>
		<pubDate>Tue, 07 Oct 2008 04:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-992</guid>
		<description>I get the same problem as Peter.</description>
		<content:encoded><![CDATA[<p>I get the same problem as Peter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-980</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Fri, 03 Oct 2008 08:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-980</guid>
		<description>Peter - sorry you get that - I don&#039;t. Send me email if the problem persists.

This week I set up a &lt;em&gt;cron&lt;/em&gt; job on my Linux server, monad, to run the program automatically. I told the job to fire at 11:30 every Thursday. It didn&#039;t work this week because I stupidly got a password wrong. But the program worked perfectly a hour later when I logged on to the Linux box using &lt;em&gt;ssh&lt;/em&gt; and typed its name manually. I&#039;m reasonably confident that the automation will work next week.</description>
		<content:encoded><![CDATA[<p>Peter &#8211; sorry you get that &#8211; I don&#8217;t. Send me email if the problem persists.</p>
<p>This week I set up a <em>cron</em> job on my Linux server, monad, to run the program automatically. I told the job to fire at 11:30 every Thursday. It didn&#8217;t work this week because I stupidly got a password wrong. But the program worked perfectly a hour later when I logged on to the Linux box using <em>ssh</em> and typed its name manually. I&#8217;m reasonably confident that the automation will work next week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Lynch</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-971</link>
		<dc:creator>Peter Lynch</dc:creator>
		<pubDate>Sun, 28 Sep 2008 03:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-971</guid>
		<description>Um, I now get a &quot;Sorry, no posts matched your criteria.&quot; message when clicking on the link.</description>
		<content:encoded><![CDATA[<p>Um, I now get a &#8220;Sorry, no posts matched your criteria.&#8221; message when clicking on the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-965</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Fri, 26 Sep 2008 22:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-965</guid>
		<description>I&#039;ve just figured out how to suppress the sidebar, which was colliding with the text in the program listing. I did this by finding where the sidebar was called. From a command line, I went to the directory where the theme for the blog lives and issued:
&lt;pre&gt;grep get_sidebar *&lt;/pre&gt;
This showed me that the sidebar was called from a file called &lt;em&gt;footer.php&lt;/em&gt;. The call looked like this:
&lt;pre&gt;&lt;?php get_sidebar(); ?&gt;&lt;/pre&gt;
I changed it to read:
&lt;pre&gt;&lt;?php if(is_page()) : else : get_sidebar() ; endif ; ?&gt;&lt;/pre&gt;
The effect of this is to turn the sidebar off for all pages (as opposed to posts). I could have been more selective and just switched it off for that page by putting a page name argument between the brackets of the &lt;em&gt;is_page()&lt;/em&gt; call.

I got the information on how to do this from &lt;a href=&quot;http://wordpress.org/support/topic/173750&quot; rel=&quot;nofollow&quot;&gt;searching the Wordpress forums.&lt;/a&gt;

As a separate exercise, I&#039;ve taken the Python program listing page out of the sidebar by changing its status to &quot;Pending review&quot;. You can still get to it from the link in this post. </description>
		<content:encoded><![CDATA[<p>I&#8217;ve just figured out how to suppress the sidebar, which was colliding with the text in the program listing. I did this by finding where the sidebar was called. From a command line, I went to the directory where the theme for the blog lives and issued:</p>
<pre>grep get_sidebar *</pre>
<p>This showed me that the sidebar was called from a file called <em>footer.php</em>. The call looked like this:</p>
<pre>&lt;?php get_sidebar(); ?&gt;</pre>
<p>I changed it to read:</p>
<pre>&lt;?php if(is_page()) : else : get_sidebar() ; endif ; ?&gt;</pre>
<p>The effect of this is to turn the sidebar off for all pages (as opposed to posts). I could have been more selective and just switched it off for that page by putting a page name argument between the brackets of the <em>is_page()</em> call.</p>
<p>I got the information on how to do this from <a href="http://wordpress.org/support/topic/173750" rel="nofollow">searching the Wordpress forums.</a></p>
<p>As a separate exercise, I&#8217;ve taken the Python program listing page out of the sidebar by changing its status to &#8220;Pending review&#8221;. You can still get to it from the link in this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-964</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Fri, 26 Sep 2008 09:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-964</guid>
		<description>Drat it, you&#039;re right. It&#039;s not the first time I&#039;ve manually escaped all the angle brackets in that line of code it probably won&#039;t be the last. Hopes that&#039;s fixed it!</description>
		<content:encoded><![CDATA[<p>Drat it, you&#8217;re right. It&#8217;s not the first time I&#8217;ve manually escaped all the angle brackets in that line of code it probably won&#8217;t be the last. Hopes that&#8217;s fixed it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim McKenzie</title>
		<link>http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/comment-page-1/#comment-961</link>
		<dc:creator>Tim McKenzie</dc:creator>
		<pubDate>Fri, 26 Sep 2008 05:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=221#comment-961</guid>
		<description>The page where you posted the current program seems to have suffered from Wordpress&#039;s over-eagerness to interpret your linktext, rather than just showing it to us as-is.</description>
		<content:encoded><![CDATA[<p>The page where you posted the current program seems to have suffered from Wordpress&#8217;s over-eagerness to interpret your linktext, rather than just showing it to us as-is.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

