<?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>John Beales &#187; Cool</title>
	<atom:link href="http://johnbeales.com/category/cool/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnbeales.com</link>
	<description></description>
	<lastBuildDate>Sun, 20 Nov 2011 02:59:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://johnbeales.com/?pushpress=hub'/>
		<item>
		<title>Show your Olympic Colours</title>
		<link>http://johnbeales.com/20100212/show-your-olympic-colours/</link>
		<comments>http://johnbeales.com/20100212/show-your-olympic-colours/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:21:30 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[canada]]></category>
		<category><![CDATA[canadian athletes]]></category>
		<category><![CDATA[olympic games]]></category>
		<category><![CDATA[olympics]]></category>
		<category><![CDATA[vancouver 2010]]></category>

		<guid isPermaLink="false">http://johnbeales.com/?p=368</guid>
		<description><![CDATA[I&#8217;ve turned johnbeales.com and @johnbeales red for the 2010 Olympic Games in Vancouver. Join me and do the same for your blog, Twitter profile, or both. Look how awesome my twitter profile looks all decked out for the Vancouver games: You can do the same. Here&#8217;s a ZIP file containing the PSD Source, and PNGs [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve turned johnbeales.com and <a href="http://twitter.com/johnbeales">@johnbeales</a> red for the 2010 Olympic Games in Vancouver.  Join me and do the same for your blog, Twitter profile, or both.</p>
<p>Look how awesome <a href="http://twitter.com/johnbeales">my twitter profile</a> looks all decked out for the Vancouver games:<br />
<a href="http://twitter.com/johnbeales"><img src="http://johnbeales.com/wp-content/uploads/2010/02/Screen-shot-2010-02-12-at-1.08.35-PM1.png" alt="Vancouver 2010 Twitter theme" title="@johnbeales dressed up for the Vancouver 2010 olympics" width="500" height="373" class="aligncenter size-full wp-image-371" /></a></p>
<p>You can do the same.  Here&#8217;s a <a href="/wp-content/uploads/2010/02/CanadaOlympicPack.zip">ZIP file</a> containing the PSD Source, and PNGs of both my Twitter background, (with the text), and the blog background, (without the text).</p>
<p>Go nuts, and let me know here or on <a href="http://twitter.com/johnbeales">Twitter</a> about it!</p>
<p><strong>Edit:</strong> Here are direct links to the backgrounds <a href="/wp-content/uploads/2010/02/olympic.png">with text</a>, and <a href="/wp-content/uploads/2010/02/canada-leaf.png">without text</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20100212/show-your-olympic-colours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Endpoints: A little secret for URL manipulation in WordPress</title>
		<link>http://johnbeales.com/20090824/endpoints-a-little-secret-for-url-manipulation-in-wordpress/</link>
		<comments>http://johnbeales.com/20090824/endpoints-a-little-secret-for-url-manipulation-in-wordpress/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 04:17:57 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Hints, Techniques & More]]></category>
		<category><![CDATA[4roadservice.com]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://johnbeales.com/?p=281</guid>
		<description><![CDATA[Today I&#8217;ve been setting up WordPress as the News section of a website which loads its pages via AJAX requests whenever possible, but falls back on normal HTTP requests when the AJAX loads are not possible. The when the AJAX requests are initiated from Javascript, /outputxml/ is added to the end of the URL. This [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve been setting up <a href="http://wordpress.org">WordPress</a> as the News section of a website which loads its pages via AJAX requests whenever possible, but falls back on normal <abbr title="HyperText Transfer Protocol">HTTP</abbr> requests when the <abbr title="Asynchronous Javascript over XML">AJAX loads are not possible.</p>
<p>The when the AJAX requests are initiated from Javascript, /outputxml/ is added to the end of the URL.  This gets translated, with some mod_rewrite magic, to a <code>$_GET</code> parameter called output.  /outputxhtml is also possible but since that&#8217;s the default it doesn&#8217;t get used very much.</p>
<p>After, (mostly), building the WordPress theme I started testing, and as I expected I ran into some problems when /outputxml/ was added to the end of the WordPress URLs.  I got 404 errors, which makes total sense.  I thought I could get around this by simply doing a little extra mod_rewrite magic, however, it seems there&#8217;s not way to simply replace /outputxml somewhere in a url with an empty string using mod_rewrite alone.  After some time, I stumbled upon an underdocumented WordPress function:  <code>WP_Rewrite::add_endpoint</code> and its friend, <code>add_rewrite_endpoint</code>.  These functions make it so that WordPress recognizes /category/post-name/trackback, and /category/post-name/outputxml.  Excellent!  </p>
<p>I just had to create a plugin, make sure that WordPress wouldn&#8217;t kill my $_GET['output'] variable, add 1 line to my .htaccess and I was good to go.</p>
<p>References:</p>
<ul>
<li><a href="http://codex.wordpress.org/Query_Overview">codex.wordpress.org/Query_Overview</a> &#8211; explains the steps WordPress goes through when responding to a request</li>
<li><a href="http://codex.wordpress.org/User:DavidHouse/WP_Rewrite_API#add_rewrite_endpoint.28.29">codex.wordpress.org/User:DavidHouse/WP_Rewrite_API#add_rewrite_endpoint.28.29</a> &#8211; the most human add_rewrite_endpoint documentation</li>
</ul>
<p></abbr></p>
<p>And this is what my plugin looks like, (for educational purposes only.  I am not distributing it):<br />
<code><br />
function fourRS_outputxml_activate() {<br />
	global $wp_rewrite;<br />
	<del>add_rewrite_endpoint('outputxml',array(EP_PERMALINK, EP_PAGES));</del><br />
	<ins>add_rewrite_endpoint('outputxml',EP_ALL);</ins>       </p>
<p>	$wp_rewrite->flush_rules();<br />
}<br />
register_activation_hook( __FILE__, 'fourRS_outputxml_activate');</p>
<p>function fourRS_outputxml_deactivate() {<br />
	global $wp_rewrite;<br />
	$wp_rewrite->flush_rules();<br />
}</p>
<p>register_deactivation_hook( __FILE__, 'fourRS_outputxml_deactivate');</p>
<p>/* Makes it so WP doesn't eat my nice $_GET variable */<br />
function fourRS_parameter_queryvars( $qvars )<br />
{<br />
	$qvars[] = 'output';<br />
	return $qvars;<br />
}<br />
add_filter('query_vars', 'fourRS_parameter_queryvars' );</code></p>
<p><strong>Edit (August 25, 2009):</strong> Changed the attrbutes in the add_rewrite_endpoint() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20090824/endpoints-a-little-secret-for-url-manipulation-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Run for the Hills!  Our Servers are Overloaded!</title>
		<link>http://johnbeales.com/20090724/run-for-the-hills-our-servers-are-overloaded/</link>
		<comments>http://johnbeales.com/20090724/run-for-the-hills-our-servers-are-overloaded/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 19:25:53 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[artistic]]></category>
		<category><![CDATA[error screen]]></category>
		<category><![CDATA[fail whale]]></category>
		<category><![CDATA[grooveshark]]></category>
		<category><![CDATA[servers overloaded]]></category>

		<guid isPermaLink="false">http://johnbeales.com/?p=267</guid>
		<description><![CDATA[Grooveshark, (which is pretty cool), has a terrifying Fail Whale.]]></description>
			<content:encoded><![CDATA[<p><a href="http://johnbeales.com/wp-content/uploads/2009/07/grooveshark-overloaded.png" class="imglink"><img class="alignnone size-full wp-image-268" title="Are you scared?  I am." src="http://johnbeales.com/wp-content/uploads/2009/07/grooveshark-overloaded.png" alt="Are you scared?  I am." width="500" height="444" /></a></p>
<p>Grooveshark, (which is pretty cool), has a terrifying <a href="http://en.wikipedia.org/wiki/Twitter#Outages">Fail Whale</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20090724/run-for-the-hills-our-servers-are-overloaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Microsoft&#8217;s VPC Images with VMWare Fusion</title>
		<link>http://johnbeales.com/20090522/using-microsofts-vpc-images-with-vmware-fusion/</link>
		<comments>http://johnbeales.com/20090522/using-microsofts-vpc-images-with-vmware-fusion/#comments</comments>
		<pubDate>Fri, 22 May 2009 13:52:55 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Hints, Techniques & More]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[virtual pc]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware fusion]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://johnbeales.com/?p=248</guid>
		<description><![CDATA[We all know the sinking feeling when we have to test a website in Internet Explorer. You built the site, it looks beautiful in Firefox and maybe Safari too, but now you have to open up Internet Explorer 6, 7, and 8, and make sure it plays nice with all three of them. Even better, [...]]]></description>
			<content:encoded><![CDATA[<p>We all know the sinking feeling when we have to test a website in Internet Explorer.  You built the site, it looks beautiful in Firefox and maybe Safari too, but now you have to open up Internet Explorer 6, 7, and 8, and make sure it plays nice with all three of them.  Even better, Microsoft has made it so that you can only have one version of IE installed on a computer at a time. True, you can use things like <a href="http://tredosoft.com/Multiple_IE">Multiple IEs</a> or other similar products, but they never play quite right.</p>
<p>Fortunately, Microsoft has supplied us with <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&#038;displaylang=en">Virtual PC images</a> of Windows with Internet Explorer installed.  Unfortunately, Virtual PC is a Windows-only program so you need a PC to run them on.  Or do you?</p>
<p>You don&#8217;t!  If you&#8217;re using OS X you can use <a href="http://vmware.com/products/fusion/">VMWare Fusion</a> to run those Microsoft VPC images, after a little tweaking.  It is much easier if you have a copy of Windows available to you during the install process, (that&#8217;s how I did it), but I don&#8217;t believe this is an absolute necessity.  Here&#8217;s how it works:</p>
<p>Basically, you need to download the VPC images, extract them, and convert them into VMWare Fusion virtual machines.  It sounds trickier than it is.</p>
<p>First, download and extract the VPC images.  If you can use Windows to do this it&#8217;s easy, (the images have self-extractors), if not try <a href="http://p7zip.sourceforge.net/">p7zip</a>, (see instructions in <a href="http://communities.vmware.com/docs/DOC-7250">this forum thread</a>).</p>
<p>[edit: July 15, 2009]: Then, somehow, you have to convert your VHD files into VMC files.  The easiest way to do this is to use Microsoft&#8217;s VPC to make a new virtual machine from the VHD files, but you do need windows to do that. You will be converting these .VMC files into VMWare native virtual machines.<br />
[/edit]</p>
<p>To convert the VPC images to something else, use <a href="http://www.vmware.com/products/converter/">VMWare vCenter Converter</a>.  It&#8217;s a stand-alone program for Windows or Linux that easily converts VPC images to VMWare Fusion virtual machines, as well as several other formats.  You can even choose between Fusion 1.x and Fusion 2.x.  It will even install the VMWare tools pagkage for you.  I did the conversion under Windows, but there&#8217;s probably a way to get the linux version to run under OS X, at least hopefully.</p>
<p>Once the conversion is complete, fire up OS X &#038; VMWare Fusion and open your new Virtual PC image. There are some things that run on the first startup of each machine, give it a few minutes then hit cancel on all of the &#8220;Please insert the XP SP3 CD&#8221; messages that remain, it doesn&#8217;t seem to hurt Windows.  I think it&#8217;s looking for a battery driver in my case, (maybe I should try to install the Bootcamp battery driver?).</p>
<p>That&#8217;s it, enjoy testing.  I am able to run, slowly, all 3 IE versions with the Windows XP images, and my computer isn&#8217;t as slow as when I run only my Bootcamp Vista install under VMWare Fusion.  I&#8217;m thrilled to have these 3 new debugging tools at my disposal.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20090522/using-microsofts-vpc-images-with-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Le Dernier Continent</title>
		<link>http://johnbeales.com/20080821/le-dernier-continent/</link>
		<comments>http://johnbeales.com/20080821/le-dernier-continent/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 20:13:10 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[antarctica]]></category>
		<category><![CDATA[climate change]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[le dernier continent]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[the last continent]]></category>

		<guid isPermaLink="false">http://johnbeales.com/?p=129</guid>
		<description><![CDATA[LeDernierContinentLeFilm.com]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/CTXE8Xf1k4A&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/CTXE8Xf1k4A&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowfullscreen="true"></embed></object></p>
<p><a href="http://www.lederniercontinentlefilm.com/index_fr.html">LeDernierContinentLeFilm.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20080821/le-dernier-continent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Honest Telephone Systems</title>
		<link>http://johnbeales.com/20070705/honest-telephone-systems/</link>
		<comments>http://johnbeales.com/20070705/honest-telephone-systems/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 20:45:02 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://johnbeales.com/20070705/honest-telephone-systems/</guid>
		<description><![CDATA[I just called to buy tickets to the upcoming performances of the Dance Program at the Banff Centre, and was pleasantly surprised by the honesty of their telephone system. First, the system tells you some random information, then it says &#8220;To talk to a real person, press 0.&#8221; After that, it tells you that to [...]]]></description>
			<content:encoded><![CDATA[<p>I just called to buy tickets to the upcoming performances of the <a href="http://www.banffcentre.ca/theatre/dance/">Dance Program</a> at the <a href="http://www.banffcentre.ca">Banff Centre</a>, and was pleasantly surprised by the honesty of their telephone system.  First, the system tells you some random information, then it says &#8220;To talk to a real person, press 0.&#8221;  After that, it tells you that to complete your purchase you will need to provide your address, which will be used for the credit card verification <em>and to keep you informed about upcoming events at the Banff Centre.</em>  They are actually up front and honest about the fact that they will be sending you what may be regarded as junk mail.  I think that&#8217;s a good business practice.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnbeales.com/20070705/honest-telephone-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

