<?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>WriteSmith.com &#187; Computers</title>
	<atom:link href="http://www.writesmith.com/category/computers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.writesmith.com</link>
	<description>We are only as strong as our signal</description>
	<lastBuildDate>Mon, 25 Oct 2010 21:03:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Yahoo! Pipes to generate dynamic Web page content</title>
		<link>http://www.writesmith.com/computers/yahoo-pipes-for-dynamiccontent</link>
		<comments>http://www.writesmith.com/computers/yahoo-pipes-for-dynamiccontent#comments</comments>
		<pubDate>Sun, 07 Mar 2010 16:43:32 +0000</pubDate>
		<dc:creator>Ed Smith</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.writesmith.com/?p=126</guid>
		<description><![CDATA[I was recently asked how a user could publish dynamic content to an otherwise static Web page. The user wanted to show a list of meeting minutes on his Web page that automatically updates from a remote source. My answer was to use Yahoo! Pipes to create an embeddable widget. Once the widget code is [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently asked how a user could publish dynamic content to an otherwise static Web page. The user wanted to show a list of meeting minutes on his Web page that automatically updates from a remote source. My answer was to use Yahoo! Pipes to create an embeddable widget. Once the widget code is created and inserted into the static web page, it will remain automatically updated whenever the source of the pipe changes. So far, we have created two pipes. One of them parses a Blogger RSS feed and presents relevant items in a list view. The content expert can update the blog, and the changes are reflected in the Web site without requiring a full author-edit-publish cycle. Here is the process:</p>
<ol>
<li>New information is published on the <a href="http://sustainablefresno.blogspot.com/" target="_blank">blog</a>.</li>
<li>When the <a href="http://pipes.yahoo.com/writesmith/sustainablefresno" target="_blank">pipe</a> is next run, this change is detected via its <a href="http://sustainablefresno.blogspot.com/feeds/posts/default" target="_blank">feed</a>.</li>
<li>The pipe badge is embedded in the target Web page, so it is run whenever the page is loaded.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.writesmith.com/computers/yahoo-pipes-for-dynamiccontent/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress and PHP Safe Mode</title>
		<link>http://www.writesmith.com/computers/wordpress/wordpress-and-php-safe-mode</link>
		<comments>http://www.writesmith.com/computers/wordpress/wordpress-and-php-safe-mode#comments</comments>
		<pubDate>Thu, 18 Feb 2010 22:12:49 +0000</pubDate>
		<dc:creator>Ed Smith</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.writesmith.com/?p=40</guid>
		<description><![CDATA[WordPress is turning into quite a learning experience for me. After last night&#8217;s joy revolving around the version upgrade, I thought things would be smooth sailing for a while. Then today I tried to post about Google Latitude on the iPhone. I took some screen shots and attempted to upload them to my site. The [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is turning into quite a learning experience for me. After last night&#8217;s joy revolving around the version upgrade, I thought things would be smooth sailing for a while. Then today I tried to post about Google Latitude on the iPhone. I took some screen shots and attempted to upload them to my site. The upload attempt failed with an &#8220;Error saving media attachment&#8221; message. Unfortunately this is not very descriptive, and without additional diagnostic information I was at a bit of a loss.</p>
<p><span id="more-40"></span>Much Googling led me to the following knowledge: WordPress is a PHP application, and my hosting provider <a href="http://faq.nearlyfreespeech.net/full/safemode">runs PHP in Safe Mode</a>. This means that there are additional restrictions on PHP scripts which made creating directories and writing to files more difficult. <a href="http://blog.nearlyfreespeech.net/2007/01/28/writing-files-in-php/">Nearly Free Speech explains their position in a blog post</a> which proved to be most informative. I experimented with changing the permissions on the directory, and changing the group of the PHP script and the directory. However, it was not until I finally <a href="http://www.evolt.org/article/UNIX_File_Permissions_and_Setuid_Part_2/18/263/index.html">understood chmod sgid bit</a> that I had a breakthrough. This is also known as the &#8220;sticky&#8221; bit. The owner of a directory can set this bit with <strong><code>chmod g+s</code></strong> <em><strong><code>directory_name </code></strong></em>and all subsequent directories or files created in that directory will <a href="http://www.library.yale.edu/wsg/docs/permissions/sgid.htm">inherit the group id of the directory automatically</a>.</p>
<p>Here&#8217;s the necessary steps:</p>
<ol>
<li>Change the group of the script to match the group of the user who runs the Web server.</li>
<li>Change the group of the directory to match the same group.</li>
<li>Give the same group write permissions on the directory.</li>
<li>Issue the command <strong><code>chmod g+s</code></strong> <em><strong><code>directory_name.</code></strong></em></li>
</ol>
<p>You&#8217;ll need to do this before there are any subdirectories in the directory, because the inheritance only applies to new directories. Finally, go the Admin screen of your WordPress site and make sure in the Miscellaneous Settings section the correct directory is identified for storing uploaded media.</p>
<p>Let me know in the comments if this works for you, or if I&#8217;ve misunderstood something. Here&#8217;s the image I was trying to upload:</p>
<div id="attachment_39" class="wp-caption aligncenter" style="width: 202px"><a href="http://www.writesmith.com/wp-content/uploads/2010/02/IMG_1664.png"><img class="size-full wp-image-39 " title="Google Latitude" src="http://www.writesmith.com/wp-content/uploads/2010/02/IMG_1664.png" alt="" width="192" height="288" /></a><p class="wp-caption-text">Google Latitude in Google Maps Web app on the iPhone</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.writesmith.com/computers/wordpress/wordpress-and-php-safe-mode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manual Upgrade of WordPress</title>
		<link>http://www.writesmith.com/computers/wordpress/manual-upgrade-of-wordpress</link>
		<comments>http://www.writesmith.com/computers/wordpress/manual-upgrade-of-wordpress#comments</comments>
		<pubDate>Thu, 18 Feb 2010 05:52:42 +0000</pubDate>
		<dc:creator>Ed Smith</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.writesmith.com/?p=37</guid>
		<description><![CDATA[So it turns out that upgrading WordPress is quite easy, but fraught with a danger known as the WSOD, the White Screen of Death. After some frustrating hours of trying to fix this problem when I upgraded tonight, I finally ran across Manual Upgrade of WordPress. This page takes you through the process in excruciating enough [...]]]></description>
			<content:encoded><![CDATA[<p>So it turns out that upgrading WordPress is quite easy, but fraught with a danger known as the WSOD, the White Screen of Death. After some frustrating hours of trying to fix this problem when I upgraded tonight, I finally ran across <a href="http://affiliate-minder.com/wordpresstutorials/manual-upgrade-of-wordpress/comment-page-1/#comment-638">Manual Upgrade of WordPress</a>. This page takes you through the process in excruciating enough detail that important steps are not missed. Lesson learned: you need to be more detail oriented about this than I am.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.writesmith.com/computers/wordpress/manual-upgrade-of-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

