<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
	<title>Gordonmac dot com</title>
	<description>Latest blog entries at Gordonmac dot com</description>
	<link>http://gordonmac.com/</link>

	<atom:link href="http://gordonmac.com/feed/" rel="self" type="application/rss+xml" />	<item>
		<title>Fantastic Cat</title>
		<description><![CDATA[<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/MnjoIkq4y7s&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/MnjoIkq4y7s&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>Coolness!</p>]]></description>
		<link>http://gordonmac.com/archive/?id=121</link>
		<guid isPermaLink="true">http://gordonmac.com/archive/?id=121</guid>
		<pubDate>Mon, 17 Mar 2008 00:00:00 GMT</pubDate>
	</item>
	<item>
		<title>Momusu's Engrish</title>
		<description><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/SRFUKjCTBCI&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/SRFUKjCTBCI&amp;hl=en"></embed></object></p>
<p>Funny as!</p>]]></description>
		<link>http://gordonmac.com/archive/?id=120</link>
		<guid isPermaLink="true">http://gordonmac.com/archive/?id=120</guid>
		<pubDate>Wed, 12 Mar 2008 00:00:00 GMT</pubDate>
	</item>
	<item>
		<title>CMS buttons</title>
		<description><![CDATA[<p>At the moment I'm working on a small CMS project (just for fun) and have been trying to make the back-end admin part look reasonably good. This has meant a lot of time piddling around in Adobe Fireworks.</p>
<p>Seeing as I'm in a good mood I thought I'd give away a few of the buttons I made.</p>
<p class="centered"><img src="http://gordonmac.com/i_blog/cms_buttons.jpg" alt="" /></p>
<p>You can <a href="http://gordonmac.com/i_blog/cms_buttons.zip">download the PNG source here</a>.</p>
<p>Enjoy &#8230;</p>]]></description>
		<link>http://gordonmac.com/archive/?id=119</link>
		<guid isPermaLink="true">http://gordonmac.com/archive/?id=119</guid>
		<pubDate>Sun, 24 Feb 2008 00:00:00 GMT</pubDate>
	</item>
	<item>
		<title>なぜ僕らは夢を見るの？</title>
		<description><![CDATA[<p>箱を開けると、様々な夢が中から飛び出した。見えなくなるインクで書かれた秘密とか、ものすごい臭いといったものについての夢が飛び出したのだった。</p>
<p>私たちは今でも若いときの夢に固執している</p>]]></description>
		<link>http://gordonmac.com/archive/?id=118</link>
		<guid isPermaLink="true">http://gordonmac.com/archive/?id=118</guid>
		<pubDate>Fri, 22 Feb 2008 00:00:00 GMT</pubDate>
	</item>
	<item>
		<title>Recursive file deletion</title>
		<description><![CDATA[<p>This is a handy PHP function (I can&#8217;t remember where I found it) which performs a recursive deletion of every file in a given directory. I&#8217;ve been using it to periodically flush cache files created by my CMS on this site.</p>
<pre>
<code>function destroy($dir) {
    $mydir = opendir($dir);
    while(false !== ($file = readdir($mydir))) {
        if($file != &#8221;.&#8221; &#38;&#38; $file != &#8221;..&#8221;) {
            chmod($dir.$file, 0777);
            if(is_dir($dir.$file)) {
                chdir(&#8217;.&#8217;);
                destroy($dir.$file.&#8217;/&#8217;);
                rmdir($dir.$file) or die(&#8216;No deletey &#8217;.$dir.$file);
            }
            else
                unlink($dir.$file) or die(&#8216;No deletey &#8217;.$dir.$file);
        }
    }
    closedir($mydir);
}</code>
</pre>
<h3>Example usage</h3>
<p>Set the server path to the directory:</p>
<pre>
<code>define(&#8216;PATH&#8217;, &#8221;/path/to/directory/&#8221;);</code>
</pre>
<p>Then let rip&#8230;</p>
<pre>
<code>destroy(PATH);</code>
</pre>
<p>Have fun, but <strong>use with caution!</strong></p>]]></description>
		<link>http://gordonmac.com/archive/?id=117</link>
		<guid isPermaLink="true">http://gordonmac.com/archive/?id=117</guid>
		<pubDate>Mon, 18 Feb 2008 00:00:00 GMT</pubDate>
	</item>
	</channel>
</rss>