<?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/"
	xmlns:custom_fields="http://redyellow.co.uk/">

<channel>
	<title>Red Yellow &#187; Development</title>
	<atom:link href="http://redyellow.co.uk/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://redyellow.co.uk</link>
	<description>Sport, Mobiles, Development and did I mention Sport?</description>
	<lastBuildDate>Mon, 12 Mar 2012 14:10:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mobile CakePHP Apps</title>
		<link>http://redyellow.co.uk/2009/09/22/mobile-cakephp-apps/</link>
		<comments>http://redyellow.co.uk/2009/09/22/mobile-cakephp-apps/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 19:22:23 +0000</pubDate>
		<dc:creator>Rich Gubby</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[refactor]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[vendor]]></category>

		<guid isPermaLink="false">http://redyellow.co.uk/?p=648</guid>
		<description><![CDATA[It feels like an age ago that I wrote a component and helper for CakePHP that could mobilize an app. Since then, things in the WAPL and Wapple world have moved on at a rate of knots and it&#8217;s time to re-write, re-factor and re-engineer the mobile cake code to keep it up to date. [...]
Related posts:<ol>
<li><a href='http://redyellow.co.uk/2009/08/17/rest-or-soap-or-dont-care/' rel='bookmark' title='REST or SOAP? Or don&#8217;t care?'>REST or SOAP? Or don&#8217;t care?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-652" title="cake-logo" src="http://redyellow.co.uk/wp-content/uploads/2009/09/cake-logo-150x150.png" alt="cake-logo" width="105" height="105" />It feels like an age ago that I wrote a component and helper for CakePHP that could mobilize an app. Since then, things in the WAPL and <a target="_blank" href="http://wapple.net">Wapple</a> world have moved on at a rate of knots and it&#8217;s time to re-write, re-factor and re-engineer the mobile cake code to keep it up to date.</p>
<p><span id="more-648"></span>The first version had a pretty basic component, used SOAP to communicate and had no in-built schema check to always produce valid WAPL code.</p>
<h3>PHP Package as a Vendor</h3>
<p>But now there is a PHP package available that handles the schema check and communication can be done by either REST or SOAP (the preferred method would now seem to be REST seeing as it has better error handling and doesn&#8217;t trigger a fatal error if a soap client can&#8217;t be created).</p>
<p>Plugging that package in as a vendor should be dead easy (although it does need a few little mods and upgrades of its own first) and then it&#8217;ll be just a case of writing a component and helper to make use of it.</p>
<p>Hopefully I&#8217;ll have something ready this week so you&#8217;ll be able to mobilize your real world cake apps!</p>
<p>Let me know if you have any ideas for how it should be built &#8211; as a component &amp; helper? Maybe a plugin? Or just keep it as a vendor.. or maybe all of the above!</p>
<img src="http://redyellow.co.uk/?ak_action=api_record_view&id=648&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://redyellow.co.uk/2009/08/17/rest-or-soap-or-dont-care/' rel='bookmark' title='REST or SOAP? Or don&#8217;t care?'>REST or SOAP? Or don&#8217;t care?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://redyellow.co.uk/2009/09/22/mobile-cakephp-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<custom_fields:custom_fields><custom_fields:aktt_notify_twitter>no</custom_fields:aktt_notify_twitter></custom_fields:custom_fields>	</item>
		<item>
		<title>WordPress on Load Balanced Servers</title>
		<link>http://redyellow.co.uk/2009/09/03/wordpress-on-load-balanced-servers/</link>
		<comments>http://redyellow.co.uk/2009/09/03/wordpress-on-load-balanced-servers/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 17:49:06 +0000</pubDate>
		<dc:creator>Rich Gubby</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[load balanced]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[wordpress plugin on NFS]]></category>

		<guid isPermaLink="false">http://redyellow.co.uk/?p=614</guid>
		<description><![CDATA[Picture the scene, you&#8217;ve had a great idea for a blog and have decided to use WordPress as your blogging software of choice. And as you&#8217;re going to be getting an insane amount of visitors (after all, you&#8217;ve got a great idea, right?) you&#8217;ve decided to buy some decent hardware to cope with the traffic. [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-616" title="light-bulb-thumb5246229" src="http://redyellow.co.uk/wp-content/uploads/2009/09/light-bulb-thumb5246229-150x150.jpg" alt="light-bulb-thumb5246229" width="90" height="90" />Picture the scene, you&#8217;ve had a great idea for a blog and have decided to use WordPress as your blogging software of choice. And as you&#8217;re going to be getting an insane amount of visitors (after all, you&#8217;ve got a great idea, right?) you&#8217;ve decided to buy some decent hardware to cope with the traffic.<br />
<span id="more-614"></span></p>
<p>The setup you&#8217;d probably go for is some sort of load balanced setup, with multiple web servers and possibly a couple of database servers behind the scenes. You should also be thinking about the wonders of virtualization and all the benefits that brings but that&#8217;s for another day.</p>
<p>Having multiple web servers brings about its own set of issues. Your blog code needs to be deployed to all web servers (preferably at the same time) so that if you get visitors that happen to hit different machines, you give them the same experience.</p>
<h3>Deployments and Uploads</h3>
<p>But that&#8217;s not so much of a problem &#8211; you could deploy code to all servers with <a href="http://ant.apache.org/">Ant </a>or <a href="http://www.capify.org/index.php/Capistrano">Capistrano</a>, or even write your own system to do it exactly to your requirements.</p>
<p><img class="alignleft size-thumbnail wp-image-618" title="wordpress-plugin" src="http://redyellow.co.uk/wp-content/uploads/2009/09/wordpress-plugin-150x150.jpg" alt="wordpress-plugin" width="90" height="90" />However, in this kind of setup, you&#8217;re going to come unstuck with plugins, themes and uploads. WordPress has an awesome upload utility, but the file you select from your local computer will get uploaded to a location on a single machine in your server farm. When a visitor lands on a different machine, they won&#8217;t see the upload. If you&#8217;re using the automatic add plugin or theme wizard built into the newer version of WordPress then it&#8217;s the same situation.</p>
<h3>Link to NFS locations</h3>
<p>But the situation is not nearly as dire as you may think though. There are loads of ways to combat it &#8211; and it&#8217;s a piece of cake if you&#8217;re using Linux! The easiest way is to create an NFS share on web server 1 and link to it on web server 2 so that the &#8220;/plugins&#8221; directory on 2 actually points to the location on 1. Easy!</p>
<p>If you&#8217;ve got a file server, even better &#8211; create your NFS on there and link to that location instead so that content really is separate from your code!</p>
<p>With windows it&#8217;s just as easy with shared directories &#8211; same principle, just a different terminology.</p>
<p>The only issue you&#8217;ve got left is that some plugins may have the paths to their files built slightly oddly so that they load the wrong files. But then, if you&#8217;ve got errors with the plugins, it may be time to look for alternatives!</p>
<p>Have you had any problems with WordPress on load balanced servers? How did you solve it or did you choose another setup?</p>
<img src="http://redyellow.co.uk/?ak_action=api_record_view&id=614&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://redyellow.co.uk/2009/09/03/wordpress-on-load-balanced-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<custom_fields:custom_fields><custom_fields:aktt_notify_twitter>no</custom_fields:aktt_notify_twitter></custom_fields:custom_fields>	</item>
		<item>
		<title>When is a bug not a bug?</title>
		<link>http://redyellow.co.uk/2009/08/25/when-is-a-bug-not-a-bug/</link>
		<comments>http://redyellow.co.uk/2009/08/25/when-is-a-bug-not-a-bug/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 19:59:21 +0000</pubDate>
		<dc:creator>Rich Gubby</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[undocumented features]]></category>

		<guid isPermaLink="false">http://redyellow.co.uk/?p=603</guid>
		<description><![CDATA[I used to work with someone who said that most bugs in software didn&#8217;t exist. His reckoning was down to the fact that most specifications for functionality aren&#8217;t tight enough. For example, if the spec for an adding function was to add two numbers together, adding 5 and 9 together and returning a value of [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-604 alignleft" title="computer-bug" src="http://redyellow.co.uk/wp-content/uploads/2009/08/computer-bug-150x150.jpg" alt="computer-bug" width="105" height="105" />I used to work with someone who said that most bugs in software didn&#8217;t exist.</p>
<p>His reckoning was down to the fact that most specifications for functionality aren&#8217;t tight enough. For example, if the spec for an adding function was to add two numbers together, adding 5 and 9 together and returning a value of 162 was acceptable. Even returning nothing, or null, or a gazillion was also ok. The specification should have said that the function had to add two numbers and return the correct mathematical result.</p>
<p><span id="more-603"></span>For a developer, this is great news. You don&#8217;t have bugs anymore, you have &#8220;undocumented features&#8221;. Feature specifications get better and it&#8217;s easier to write code that satisfies the requirements.</p>
<h3>It&#8217;s a bug!</h3>
<p>But I personally think blaming bugs, and they are bugs, on the specification writers is lazy. Bug reporters, whether they are developers or not can get quickly hacked off with being told that an error they&#8217;ve found isn&#8217;t actually a bug, but it&#8217;s the fact that it&#8217;s actually been implemented exactly to spec.</p>
<p>A bit of common sense in all of this is definitely required. If you need an adding function, it&#8217;s obvious to anyone that it should return the result. If the spec doesn&#8217;t say so, just do it and move on.</p>
<p>And if you need a function to return the results of whether a visitor is a mobile device or not, it&#8217;s probably wise to actually return the value rather than store it in a cookie. Oops!</p>
<img src="http://redyellow.co.uk/?ak_action=api_record_view&id=603&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://redyellow.co.uk/2009/08/25/when-is-a-bug-not-a-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<custom_fields:custom_fields><custom_fields:aktt_notify_twitter>no</custom_fields:aktt_notify_twitter></custom_fields:custom_fields>	</item>
		<item>
		<title>REST or SOAP? Or don&#8217;t care?</title>
		<link>http://redyellow.co.uk/2009/08/17/rest-or-soap-or-dont-care/</link>
		<comments>http://redyellow.co.uk/2009/08/17/rest-or-soap-or-dont-care/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:05:01 +0000</pubDate>
		<dc:creator>Rich Gubby</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Wapple]]></category>
		<category><![CDATA[wordpress mobile plugin]]></category>
		<category><![CDATA[XMLRPC]]></category>

		<guid isPermaLink="false">http://redyellow.co.uk/?p=581</guid>
		<description><![CDATA[I think we&#8217;ve realised at Wapple that when it comes to web services, not everyone always has the same level of technology that we have at our finger tips and completely take for granted. Take my Wapple Architect Mobile Plugin for WordPress for example, and the way it used to communicate with Wapple&#8217;s web services. [...]
Related posts:<ol>
<li><a href='http://redyellow.co.uk/2009/09/22/mobile-cakephp-apps/' rel='bookmark' title='Mobile CakePHP Apps'>Mobile CakePHP Apps</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I think we&#8217;ve realised at <a href="http://wapple.net">Wapple</a> that when it comes to web services, not everyone always has the same level of technology that we have at our finger tips and completely take for granted.</p>
<p>Take my <a href="http://wordpress.org/extend/plugins/wapple-architect">Wapple Architect Mobile Plugin for WordPress</a> for example, and the way it used to communicate with <a target="_blank" href="http://wapple.net">Wapple</a>&#8217;s web services. It used to use SOAP simply because that was the protocol we chose to employ as our means for delivering web services.</p>
<p><span id="more-581"></span></p>
<h3>SOAP is not always available!</h3>
<p><img class="alignright size-thumbnail wp-image-582" title="Server" src="http://redyellow.co.uk/wp-content/uploads/2009/08/Server-150x150.jpg" alt="Server" width="90" height="90" />Now don&#8217;t get me wrong, what we&#8217;ve got is a really smart, well-designed and developed web service that&#8217;s both extensible and easy to use. But the fact was that if you hadn&#8217;t got SOAP, you wouldn&#8217;t be able to use it. And if you&#8217;d only got a shared host available, you might not be lucky enough to have a decent one like me (<a href="http://evohosting.co.uk">Evohosting</a>) who allow you to install SOAP on your server.</p>
<p>So what we&#8217;ve done is to create corresponding REST web services so you can use <a target="_blank" href="http://wapple.net">Wapple</a> Architect and your dev key, but either request data through a URL by modifying a query string, or through a POST request with something like curl.</p>
<h3>Nothing can stop you now!</h3>
<p>This is fantastic news all round. For developers who are experimenting with Architect, it&#8217;s even easier to develop. And as we&#8217;ve already incorporated this new technology into our plugins for WordPress and Joomla, you can use it even if you don&#8217;t want to delve into code!</p>
<p>The latest release of the WordPress mobile plugin is out now (version 1.4) &#8211; have a read of the full feature list and the new REST web service support in an article over at <a href="http://mobilewebjunkie.com/wapple-architect-mobile-plugin-for-wordpress-version-14-released/">Mobile Web Junkie</a>.</p>
<p>On a more general note, what do you prefer to use, SOAP or REST? Or maybe XMLRPC? If you haven&#8217;t got a clue about any of this but would still like to have a go at leaving a suitably technical comment, here&#8217;s a few words you may want to include: &#8220;combobulating&#8221;, &#8220;aerodynamics&#8221; and &#8220;flux capacitor&#8221;.</p>
<img src="http://redyellow.co.uk/?ak_action=api_record_view&id=581&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://redyellow.co.uk/2009/09/22/mobile-cakephp-apps/' rel='bookmark' title='Mobile CakePHP Apps'>Mobile CakePHP Apps</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://redyellow.co.uk/2009/08/17/rest-or-soap-or-dont-care/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<custom_fields:custom_fields><custom_fields:aktt_notify_twitter>no</custom_fields:aktt_notify_twitter></custom_fields:custom_fields>	</item>
		<item>
		<title>Clouds.. thousands of em..</title>
		<link>http://redyellow.co.uk/2009/08/11/clouds-thousands-of-em/</link>
		<comments>http://redyellow.co.uk/2009/08/11/clouds-thousands-of-em/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 19:47:11 +0000</pubDate>
		<dc:creator>Rich Gubby</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Clouds]]></category>
		<category><![CDATA[fluffy clouds]]></category>
		<category><![CDATA[hot air balloon]]></category>
		<category><![CDATA[UFO]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://redyellow.co.uk/?p=506</guid>
		<description><![CDATA[Not so long ago, the Wapple website had clouds. Unfortuntely, the powers that be decided that the new version didn&#8217;t need them, so rather than sulk about it (ok I did sulk a bit) I&#8217;ve turned those hand crafted cumulo nimbii into a WordPress plugin! All that work designing the clouds, making sure they appear [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Not so long ago, the <a href="http://wapple.net">Wapple</a> website had clouds.</p>
<p>Unfortuntely, the powers that be decided that the new version didn&#8217;t need them, so rather than sulk about it (ok I did sulk a bit) I&#8217;ve turned those hand crafted cumulo nimbii into a WordPress plugin!</p>
<p><span id="more-506"></span><img class="alignleft size-thumbnail wp-image-508" title="cloud-6" src="http://redyellow.co.uk/wp-content/uploads/2009/08/cloud-6-150x150.jpg" alt="cloud-6" width="105" height="105" />All that work designing the clouds, making sure they appear at random locations and animating them so they move across the screen as if blown by a category 5 hurricane. None of it has gone to waste now it&#8217;s available for everyone!</p>
<p>Best of all, there&#8217;s a hot air balloon that appears at a random time and moves across your site from bottom-right to top-left!</p>
<h3>Clouds on WordPress</h3>
<p>Any day now, WordPress will approve my plugin (and lets face it &#8211; who wouldn&#8217;t want clouds on their site!) and you&#8217;ll be able to search for clouds when installing a plugin! But in the mean time, all of that cloud goodness is available for all to see on here! (They&#8217;re the white fluffy things at the top of the page incase you missed them).</p>
<p>By the way, keep your eyes peeled for any other flying objects appearing (other than the balloon) &#8211; if you spot them feel very privileged as they only appear to a chosen few!</p>
<p><img class="alignright size-thumbnail wp-image-507" title="et" src="http://redyellow.co.uk/wp-content/uploads/2009/08/et-150x150.jpg" alt="et" width="90" height="90" />If you&#8217;ve got any suggestions for other things that fly &#8211; <a href="http://www.imdb.com/title/tt0083866/">Elliot on his bicycle with ET</a> in the basket or a bi-plane are 2 that spring to mind &#8211; let me know and I&#8217;ll try and include it!</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 178px; width: 1px; height: 1px;">There are a couple that will appear and some other suggestions for new ones would be more than welcome. A bicycling Elliot with an ET in the basket? Easy! Maybe a bi-plane or something more exotic. If you&#8217;ve got any suggestions let me know!</div>
<img src="http://redyellow.co.uk/?ak_action=api_record_view&id=506&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://redyellow.co.uk/2009/08/11/clouds-thousands-of-em/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<custom_fields:custom_fields><custom_fields:aktt_notify_twitter>no</custom_fields:aktt_notify_twitter></custom_fields:custom_fields>	</item>
	</channel>
</rss>

