<?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>Tortoise IT &#187; lesson planning</title>
	<atom:link href="http://www.sean-barton.co.uk/tag/lesson-planning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sean-barton.co.uk</link>
	<description>by Sean Barton, a freelance PHP website developer in Crewe, Cheshire</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:34:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Learning Event Generator</title>
		<link>http://www.sean-barton.co.uk/2009/09/learning-event-generator/</link>
		<comments>http://www.sean-barton.co.uk/2009/09/learning-event-generator/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 18:32:05 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Personal Blog]]></category>
		<category><![CDATA[Teaching]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[lesson planning]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=343</guid>
		<description><![CDATA[The learning event generator is something which I was shown on the first day of my PGCE. It was demonstrated and was intriguing to say the least! It would be an interesting way to allow the children we teach to decide their own activities. I have been in a coding mood today so thought that I would bash together a tiny little PHP script to emulate the same thing. Yes it&#8217;s basic but works from two text files which are defined in the first few lines of the file itself. It&#8217;s not the most elegant bit of code I have &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2009/09/learning-event-generator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The learning event generator is something which I was shown on the first day of my PGCE. It was demonstrated and was intriguing to say the least! It would be an interesting way to allow the children we teach to decide their own activities.</p>
<p>I have been in a coding mood today so thought that I would bash together a tiny little PHP script to emulate the same thing. Yes it&#8217;s basic but works from two text files which are defined in the first few lines of the file itself. It&#8217;s not the most elegant bit of code I have ever written but if you know anything about PHP or have a web server then why not have a fiddle and see what you can make it do?</p>
<p>Consider this&#8230; it doesn&#8217;t have to be learning events. Why not use it as a kind of &#8216;What shall we do tomorrow?&#8217; kind of thing. eg: &#8216;Do a 5 mile run with a friend dressed as a horse&#8217; or &#8216;Do go out and get a bit merry&#8217;.</p>
<p><strong>The Code</strong></p>
<pre>&lt;?php

$cwd = getcwd();
$outcome_source = $cwd . '/' . 'activities.txt';
$method_source = $cwd . '/' . 'methods.txt';

$outcomes = file($outcome_source);
$methods = file($method_source);

$outcome = trim($outcomes[array_rand($outcomes)]);
$method = trim($methods[array_rand($methods)]);

echo 'Do ' . $outcome . ' as a ' . $method . '.';

?&gt;</pre>
<p><strong>The Download</strong></p>
<p>The file is available as a download here: <a class="downloadlink" href="http://www.sean-barton.co.uk/wp-content/plugins/download-monitor/download.php?id=14" title="Version 1 downloaded 399 times" >Learning Event Generator (1.23 kB)</a></p>
<p><strong>References</strong></p>
<p>The original idea is available on the following <a title="Learning Event Generator Homepage" href="http://www.newtools.org/showtxt.php?docid=724" target="_blank">website</a> and is credited to John Davitt</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2009/09/learning-event-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 7/23 queries in 0.075 seconds using disk
Object Caching 325/339 objects using disk

Served from: www.sean-barton.co.uk @ 2012-02-08 23:14:10 -->
