<?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"
	>

<channel>
	<title>Andrew Goodricke</title>
	<atom:link href="http://www.andrewgoodricke.com/feed/?show=slide" rel="self" type="application/rss+xml" />
	<link>http://www.andrewgoodricke.com</link>
	<description>More than meets the eye...</description>
	<pubDate>Wed, 30 Sep 2009 17:41:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>3 Peaks, 3 Days&#8230;</title>
		<link>http://www.andrewgoodricke.com/2009/09/3-peaks-3-days/</link>
		<comments>http://www.andrewgoodricke.com/2009/09/3-peaks-3-days/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 17:41:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.andrewgoodricke.com/?p=12</guid>
		<description><![CDATA[Three Peaks
On Friday 9th October 2009, I will be attempting the Three Peaks Challenge with three friends.  The aim is to climb the highest peaks in Scotland, England and Wales (Ben Nevis, Scafell Pike &#38; Snowdon) over a three day period.  We&#8217;ll be climbing Ben Nevis on the Friday, Scafell on the Saturday and Snowdon on the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Three Peaks</strong></p>
<p>On Friday 9th October 2009, I will be attempting the Three Peaks Challenge with three friends.  The aim is to climb the highest peaks in Scotland, England and Wales (Ben Nevis, Scafell Pike &amp; Snowdon) over a three day period.  We&#8217;ll be climbing Ben Nevis on the Friday, Scafell on the Saturday and Snowdon on the Sunday.  I have decided to do this to raise money for a charity called <a href="http://www.michaelsobellhouse.co.uk/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.michaelsobellhouse.co.uk');">The Friends of Michael Sobell House</a>.</p>
<p>Michael Sobell House is the hospice and specialist palliative care centre based at Mount Vernon Hospital, enhancing without discrimination, the care of patients with life limiting illnesses and providing support for their families and carers. Funding from charitable donations must reach an annual target of £1,200,000 to maintain patient care at its current level from the In-patient unit, Day Therapies Centre, Outreach Team and Education Program. Many services at Michael Sobell House would not exist without Fundraising and Voluntary contributions from individuals, community groups, companies, charitable trusts and legacies. It is thanks to a dedicated team of staff, generous and skilled volunteers and with the boundless energy and enthusiasm of all its supporters that Michael Sobell House can keep ‘Sharing the Caring’.</p>
<p>Please visit my <em>JustGiving</em> page: <a href="http://www.justgiving.com/andrewgoodricke/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.justgiving.com');">http://www.justgiving.com/andrewgoodricke/</a> if you&#8217;d like to sponsor me.  Donating through JustGiving is simple, fast and totally secure. Your details are safe with JustGiving – they’ll never sell them on or send unwanted emails. Once you donate, they’ll send your money directly to the charity and make sure Gift Aid is reclaimed on every eligible donation by a UK taxpayer. So it’s the most efficient way to donate - I raise more, whilst saving time and cutting costs for the charity.</p>
<p>So please dig deep and donate now.</p>
<p>Here&#8217;s a few facts and figures about the Three Peaks:</p>
<p><strong>Ben Nevis</strong></p>
<p>1344m high</p>
<p>Expected time to reach summit and return - 7 hours</p>
<p><strong>Scafell Pike</strong></p>
<p>978m high</p>
<p>Expected time to reach summit and return - 5.5 hours</p>
<p><strong>Snowdon</strong></p>
<p>1085m high</p>
<p>Expected time to reach summit and return - 4.5 hours</p>
<p>You can also track our progress at: <a href="http://purplefundraising.co.uk/" onclick="javascript:pageTracker._trackPageview ('/outbound/purplefundraising.co.uk');">http://purplefundraising.co.uk/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewgoodricke.com/2009/09/3-peaks-3-days/feed/</wfw:commentRss>
		</item>
		<item>
		<title>php date add alternative to date_add</title>
		<link>http://www.andrewgoodricke.com/2008/12/php-date-add-alternative-to-date_add/</link>
		<comments>http://www.andrewgoodricke.com/2008/12/php-date-add-alternative-to-date_add/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 16:13:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[date_add]]></category>

		<category><![CDATA[strtotime]]></category>

		<guid isPermaLink="false">http://www.andrewgoodricke.com/?p=11</guid>
		<description><![CDATA[date_add is an experimental function, best to use strtotime:
$new_date = strtotime("+1 week", strtotime('05-Dec-2008'));
echo date('d M Y', $new_date)
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one for you Sukie&#8230;</p>
<p>The php function <span class="methodname"><strong><strong>date_add</strong></strong></span> ( <span class="methodparam"><span class="type"><span class="type DateTime">DateTime</span></span> <tt class="parameter">$object</tt></span> , <span class="methodparam"><span class="type"><span class="type DateInterval">DateInterval</span></span> <tt class="parameter">$interval</tt></span> ) is an experimental function and shouldn&#8217;t really be used in a production site.  The way to get around this is to use <span class="methodname"><strong><strong>strtotime</strong></strong></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$time</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$now</tt></span> ] ).</p>
<p>If you&#8217;re trying to add a week to today&#8217;s date you can simply do the following:<br />
<code>$new_date = strtotime("+1 week");</code></p>
<p>but if need to add a week to a time stamp of your own you can do:<br />
<code>$my_date = strtotime('05-Dec-2008');<br />
$new_date = strtotime("+1 week", $my_date);</code></p>
<p>Note: The second parameter needs to be a valid date, when I&#8217;m getting data from a database I will usually get the date in to a dd-mmm-yyyy format as this explicitly defines the date.  If it were written &#8216;05-12-2008&#8242; it potentially could be interpreted as &#8216;12-May-2008&#8242; which could then cause other issues to your data further down the line.</p>
<p>You could condense the code to be one line:<br />
<code>$new_date = strtotime("+1 week", strtotime('05-Dec-2008'));</code></p>
<p>For outputting the $new_date I&#8217;d use php&#8217;s <span class="methodname"><strong><strong>date</strong></strong></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$format</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$timestamp</tt></span> ] ) function:<br />
<code>$new_date = strtotime("+1 week", strtotime('05-Dec-2008'));<br />
echo date('d M Y', $new_date)</code></p>
<p> </p>
<p>Have a look at <a href="http://uk.php.net/manual/en/function.strtotime.php" title="PHP strtodate function" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/uk.php.net');">php&#8217;s strtodate function</a> and <a href="http://uk2.php.net/date" title="PHP date function" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/uk2.php.net');">php&#8217;s date function</a> for information on how to use.</p>
<p>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewgoodricke.com/2008/12/php-date-add-alternative-to-date_add/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Photography at Wembury</title>
		<link>http://www.andrewgoodricke.com/2008/09/photography-at-wembury/</link>
		<comments>http://www.andrewgoodricke.com/2008/09/photography-at-wembury/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 22:12:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[Canon 400D]]></category>

		<guid isPermaLink="false">http://www.andrewgoodricke.com/?p=9</guid>
		<description><![CDATA[Over the weekend I took some friends to Wembury as they were down visiting, I&#8217;d not been before but I&#8217;d heard it was a nice spot so gave me a great oportunity to head over there to have a look around.  Here&#8217;s a selection of the pictures I took using a Canon 400D, Sigma 17-70mm [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I took some friends to Wembury as they were down visiting, I&#8217;d not been before but I&#8217;d heard it was a nice spot so gave me a great oportunity to head over there to have a look around.  Here&#8217;s a selection of the pictures I took using a Canon 400D, Sigma 17-70mm and a Gorrila-pod (a great piece of kit) where required.</p><div class="ngg-galleryoverview"><div class="slideshowlink"><a class="slideshowlink" href="/feed/?show=gallery">[Show picture list]</a></div>
<div class="slideshow" id="ngg_slideshow1"><p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p></div>
	<script type="text/javascript" defer="defer">
		var so1959 = new SWFObject("http://www.andrewgoodricke.com/wp-content/plugins/nggallery/imagerotator.swf", "ngg_slideshow1", "450", "320", "7", "#000000");
		so1959.addParam("wmode", "opaque");
		so1959.addVariable("file", "http://www.andrewgoodricke.com/wp-content/plugins/nggallery/nggextractXML.php?gid=1");
		so1959.addVariable("shuffle", "false");
		so1959.addVariable("showicons", "false");
		so1959.addVariable("linkfromdisplay", "true");
		so1959.addVariable("shownavigation", "true");
		so1959.addVariable("overstretch", "false");
		so1959.addVariable("backcolor", "0x000000");
		so1959.addVariable("frontcolor", "0xFFFFFF");
		so1959.addVariable("lightcolor", "0xCC0000");
		so1959.addVariable("screencolor", "0x000000");
		so1959.addVariable("rotatetime", "5");
		so1959.addVariable("transition", "random");
		so1959.addVariable("width", "450");
		so1959.addVariable("height", "320");
		so1959.write("ngg_slideshow1");
	</script></div>
<div class="ngg-clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewgoodricke.com/2008/09/photography-at-wembury/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ajax Loading Animated gif</title>
		<link>http://www.andrewgoodricke.com/2008/08/ajax-loading-animated-gif/</link>
		<comments>http://www.andrewgoodricke.com/2008/08/ajax-loading-animated-gif/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 21:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[ajax]]></category>

		<category><![CDATA[generator]]></category>

		<category><![CDATA[gif]]></category>

		<category><![CDATA[references]]></category>

		<guid isPermaLink="false">http://www.andrewgoodricke.com/?p=7</guid>
		<description><![CDATA[A guide to starting to learn AJAX and tools to use.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with Ajax recently, I&#8217;ve been particularly impressed with how potentially powerful Ajax is.  Having a good knowledge of PHP and HTML myself has helped when it came to learning this amalgamation of technologies.  If you&#8217;re not aware what Ajax is, It stands for Asynchronous JavaScript And XML (eXtensible Markup Language).</p>
<p>A good introduction to it can be found on Harry Maugans in tutorial <a href="http://www.harrymaugans.com/2007/03/18/tutorial-ajax-made-easy/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.harrymaugans.com');">AJAX Made Easy</a>, in addition to that the SAMS Teach Yourself in 10 Minutes have got a great little book on Ajax which explains it all really well from beginner to intermediate.</p>
<p>Back to the point in hand, I wanted an animated gif to display while I was collecting data from the server.  That is precisely what I got when I came upon the <a href="http://www.ajaxload.info/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.ajaxload.info');">Ajax Loading gif Generator</a>.  You can customise the gifs produced from the type of animation to the fore and background colours - A great little tool!</p>
<p><a href="http://www.andrewgoodricke.com/wp-content/uploads/2008/09/ajax-loader.gif"><img class="alignnone size-medium wp-image-8" title="ajax-loader" src="http://www.andrewgoodricke.com/wp-content/uploads/2008/09/ajax-loader.gif" alt="" width="16" height="16" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewgoodricke.com/2008/08/ajax-loading-animated-gif/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Code Igniter mod_rewrite on Heart Internet</title>
		<link>http://www.andrewgoodricke.com/2008/07/code-igniter-mod_rewrite-on-heart-internet/</link>
		<comments>http://www.andrewgoodricke.com/2008/07/code-igniter-mod_rewrite-on-heart-internet/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:07:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Code Igniter]]></category>

		<category><![CDATA[.htaccess]]></category>

		<category><![CDATA[Heart Internet]]></category>

		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.andrewgoodricke.com/?p=6</guid>
		<description><![CDATA[Mod_rewrite to remove index.php from the url, the issues and resolutions I've come accross.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used mod_rewrite quite a lot with Code Igniter and I&#8217;ve experienced issues getting it working to remove the index.php from the url on different servers before but this was another issue again.  Here&#8217;s my resolution and some of my previous resolutions:</p>
<p>Here&#8217;s the contents of the <em>.htaccess</em> for <strong>Heart Internet</strong> to <strong>remove index.php</strong>:<br />
<code><br />
RewriteEngine On<br />
RewriteCond $1 !^(index\.php|css|img|js|robots\.txt) [NC]<br />
RewriteRule ^(.+)$ index.php?/$1 [L]</code></p>
<p>SetEnv DEFAULT_PHP_VERSION 5</p>
<p>The <strong>SetEnv DEFAULT_PHP_VERSION 5</strong> tells Heart to use PHP 5.</p>
<p>If you have any directories or specific files (like robots.txt) you need to access for css, JavaScript etc, they will need to be put them in the RewriteCond separated by a pipe (|).</p>
<p>In addition, I prefer working with short open tags for writing PHP.  You need a file called <em>php5.ini</em> containing:<br />
<code><br />
short_open_tag = On<br />
</code></p>
<p>For my <strong>XAMPP</strong> development I use the following code in my <em>.htaccess</em>:<br />
<code><br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php|css|img|js) [NC]<br />
RewriteRule ^(.*)$ /index.php/$1 [L]<br />
</code></p>
<p>For other servers I&#8217;ve needed the following:<br />
<code><br />
Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php|css|img|js|robots\.txt) [NC]<br />
RewriteRule ^(.*)$ index.php/$1 [L]<br />
</code></p>
<p>The subtle differences (that make a huge difference between it working and not working) that may have not been noticed are all located around <strong>/index.php?/$1</strong>.</p>
<p>I hope this of some use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.andrewgoodricke.com/2008/07/code-igniter-mod_rewrite-on-heart-internet/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
