<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>toepoke</title>
	<atom:link href="http://toepoke.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://toepoke.wordpress.com</link>
	<description>t&#039;int t&#039;intenet t&#039;is it?</description>
	<lastBuildDate>Sun, 21 Feb 2010 14:22:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='toepoke.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>toepoke</title>
		<link>http://toepoke.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://toepoke.wordpress.com/osd.xml" title="toepoke" />
	<atom:link rel='hub' href='http://toepoke.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Storing external config files under App_Data</title>
		<link>http://toepoke.wordpress.com/2010/02/21/storing-external-config-files-under-app_data/</link>
		<comments>http://toepoke.wordpress.com/2010/02/21/storing-external-config-files-under-app_data/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 14:03:54 +0000</pubDate>
		<dc:creator>toepoke</dc:creator>
				<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://toepoke.wordpress.com/?p=49</guid>
		<description><![CDATA[For quite a few years I&#8217;ve got into the habit of storing application config files externally to web.config using the configSource attribute, as I&#8217;m sure most people do. Just to recap this means that you can have a set of development, test and live configuration files and just change your web.config to point to whatever environment you&#8217;re [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=49&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For quite a few years I&#8217;ve got into the habit of storing application config files externally to web.config using the configSource attribute, as I&#8217;m sure most people do.</p>
<p>Just to recap this means that you can have a set of <strong>development</strong>, <strong>test </strong>and <strong>live </strong>configuration files and just change your <strong>web.config</strong> to point to whatever environment you&#8217;re deploying to.  Advantage being that configuration like database connections which vary according to the environment they are deployed for are contained in an obvious folder like <strong>dev </strong>or <strong>test </strong>or <strong>live</strong>.</p>
<p>So in <a title="toepoke.co.uk" href="http://www.toepoke.co.uk" target="_blank">toepoke.co.uk</a> &lt;blatantPlug/&gt;I have something akin to the following:</p>
<p>webRoot\<strong>config</strong>\dev\dbConnections.config<br />
webRoot\<strong>config</strong>\test\dbConnections.config</p>
<p>and on my dev box in my web.config I have</p>
<pre class="brush: xml;">&lt;connectionStrings configSource=&quot;config\dev\dbConnections.config&quot; /&gt;</pre>
<p>Nothing very new so far.  However, what I don&#8217;t like about this though is that the <strong>config </strong>folder is kind of in the middle of everything in the solution, coupled with the fact that toepoke is an MVC app, and I keep opening the <strong>Content </strong>folder instead &#8230; which makes me swear &#8230; lots &#8230;</p>
<p>Now ASP.NET has a special folder called <strong>App_Data </strong>that has additional permissions when deployed so the content isn&#8217;t available by URL (so nasty people can&#8217;t get to it).  You use this for application data (funnily enough <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) like a local database, or some XML lookup files you may have.</p>
<p>So (and you can probably guess where I&#8217;m going with this!) config files are application data, so it makes sense to put them into the <strong>App_Data</strong> folder and gain the extra protection it offers (granted .config files aren&#8217;t available though the URL either, so this is just additional protection).  So now the file structure looks like:</p>
<p>webRoot\<strong>App_Data</strong>\<strong>config</strong>\dev\dbConnections.config<br />
webRoot\<strong>App_Data</strong>\<strong>config</strong>\test\dbConnections.config</p>
<p>and in the web.config:</p>
<pre class="brush: xml;">&lt;connectionStrings configSource=&quot;App_Data\config\dev\dbConnection.config&quot; /&gt;</pre>
<p>Which I think just looks much, much neater.  And it all works, nothing more than a copy and paste and change some paths.</p>
<p>Hope this is useful to someone !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toepoke.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toepoke.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toepoke.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=49&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toepoke.wordpress.com/2010/02/21/storing-external-config-files-under-app_data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01eb275e0e8b23db9254f77732748d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toepoke</media:title>
		</media:content>
	</item>
		<item>
		<title>connect vista computer/laptop to television (samsung in my case)</title>
		<link>http://toepoke.wordpress.com/2009/11/07/connect-vista-computerlaptop-to-television-samsung-in-my-case/</link>
		<comments>http://toepoke.wordpress.com/2009/11/07/connect-vista-computerlaptop-to-television-samsung-in-my-case/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 12:48:45 +0000</pubDate>
		<dc:creator>toepoke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toepoke.wordpress.com/?p=35</guid>
		<description><![CDATA[I treat myself to one of these (think this is a later model, but pretty much the same telly) a few months back to replace my ageing CRT which was on it&#8217;s last legs.  Anyway it came with a plethora of connections, 3 HDMIs, couple of SCARTs, but no SVIDEO .  It did however have a PC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=35&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I treat myself to <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://www.amazon.co.uk/gp/product/B0024H43SC?ie=UTF8&amp;tag=toepoke-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=B0024H43SC">one of these (think this is a later model, but pretty much the same telly)</a> a few months back to replace my ageing CRT which was on it&#8217;s last legs.  Anyway it came with a plethora of connections, 3 HDMIs, couple of SCARTs, but no SVIDEO <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .  It did however have a <em>PC IN</em> connection, which is basically a VGA input.</p>
<p>Always had it in my head that SVIDEO would be best, but fortunately it turns out that VGA is better (not as good as HDMI, but sadly my laptop doesn&#8217;t have one).</p>
<p>Anyway <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://www.argos.co.uk/webapp/wcs/stores/servlet/ArgosCreateReferral?storeId=10001&amp;referrer=COJUN&amp;cmpid=COJUN&amp;referredURL=%zu">got myself a cheap VGA cable from Argos</a> and connected it up, brought up the display settings, and extended the desktop &#8230; and saw a very small section of my desktop on the telly <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><img class="aligncenter size-thumbnail wp-image-37" title="What I got first time I tried connecting" src="http://toepoke.files.wordpress.com/2009/11/first-try1.jpg?w=150&#038;h=98" alt="What I got first time I tried connecting" width="150" height="98" /></p>
<p>I tried faffing with the telly settings, repositioning the screen, etc and didn&#8217;t get anywhere.  In fact I went backwards as I ended up with just a blank screen.  Not to be out done I did what everyone with a problem does these days and <a href="http://www.google.co.uk/search?q=samsung+vista+computer+television+vga+blank+screen">asked Google</a> <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  <a href="http://www.labnol.org/software/tutorials/how-to-connect-laptop-computer-tv-screen-lcd-hdtv/2331/">Initial hit looked promising</a> but in the end was telling me to do what I was already doing <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> !</p>
<p>So to get the punchline I had a bit of inspiration and thought perhaps the graphics driver was interferring, so popped up Start &gt; Control Panel &gt; Additional Options &gt; <strong>NVIDIA Control Panel</strong>, changed the source on the telly to <strong>PC</strong> and job&#8217;s a good &#8216;un <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p><strong><img class="aligncenter size-medium wp-image-40" title="woohoo" src="http://toepoke.files.wordpress.com/2009/11/woohoo.jpg?w=300&#038;h=194" alt="woohoo" width="300" height="194" /></strong></p>
<p>Of course being VGA only the picture goes to the telly, so for the sound a <em>twin phono to 3.5mm stereo jack</em> from <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://www.maplin.co.uk">Maplin</a> should do the trick <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hope this helps someone else out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toepoke.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toepoke.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toepoke.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=35&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toepoke.wordpress.com/2009/11/07/connect-vista-computerlaptop-to-television-samsung-in-my-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01eb275e0e8b23db9254f77732748d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toepoke</media:title>
		</media:content>

		<media:content url="http://toepoke.files.wordpress.com/2009/11/first-try1.jpg?w=150" medium="image">
			<media:title type="html">What I got first time I tried connecting</media:title>
		</media:content>

		<media:content url="http://toepoke.files.wordpress.com/2009/11/woohoo.jpg?w=300" medium="image">
			<media:title type="html">woohoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple example on using ForEach generic method</title>
		<link>http://toepoke.wordpress.com/2009/10/18/simple-example-on-using-foreach-generic-method/</link>
		<comments>http://toepoke.wordpress.com/2009/10/18/simple-example-on-using-foreach-generic-method/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 14:10:29 +0000</pubDate>
		<dc:creator>toepoke</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[toepoke]]></category>

		<guid isPermaLink="false">http://toepoke.wordpress.com/?p=16</guid>
		<description><![CDATA[Working on toepoke today and I wanted to loop through a list of objects and sync up some properties, so I started off by looping through a normal foreach construct.  I vaugely remember there was a ForEach method hanging off the intellisense for list objects, so a quick google revealed &#8230; not much (granted I didn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=16&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Working on <a title="toepoke" href="http://www.toepoke.co.uk">toepoke</a> today and I wanted to loop through a list of objects and sync up some properties, so I started off by looping through a normal <span style="color:#0000ff;">foreach <span style="color:#000000;">construct.  </span></span></p>
<p><span style="color:#0000ff;"><span style="color:#000000;">I vaugely remember there was a <span style="color:#0000ff;">ForEach </span>method hanging off the intellisense for list objects, so a quick google revealed &#8230; not much (granted I didn&#8217;t do a extensive search &#8230; I&#8217;m very much in the &#8221;Not on the first page &#8230; I&#8217;ll figure it out myself!&#8221; camp <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).  Anyway seems like a good opportunity for a blog.</span></span></p>
<p><span style="color:#0000ff;"><span style="color:#000000;">So what example to use as an illustration?  What about a noddy <span style="color:#0000ff;">Person <span style="color:#000000;">object with the following properties:</span></span></span></span></p>
<ul>
<li><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#000000;">Name &#8211; useful for seeing what&#8217;s going on</span></span></span></li>
<li><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#000000;">DOB &#8211; which we&#8217;ll generate when create a list of <span style="color:#000000;">Person</span></span></span></span></li>
<li><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#000000;">Age &#8211; which is the property we&#8217;re going to loop around and calculate.</span></span></span></li>
</ul>
<p><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#000000;">Which gives us the following noddy class:</span></span></span></p>
<pre class="brush: csharp;">
public class Person
{
 public string Name { get; set; }
 public DateTime DOB { get; set; }
 public int Age { get; set; }
}
</pre>
<p>We&#8217;re going to drive this example through a unit test (see full excert below), but I&#8217;ll just concerntrate on the relevant bits here.  So next up let&#8217;s populate a list of people to create our test data.</p>
<pre class="brush: csharp;">
List&lt;Person&gt; people = new List&lt;Person&gt;() {
 new Person() { Name = &quot;Fred Flintstone&quot;, DOB = DateTime.Now.AddYears(-65) },
 new Person() { Name = &quot;Homer Simpson&quot;, DOB = DateTime.Now.AddYears(-40) }
};
</pre>
<p>Simple enough, couple of cases, one aged 65, the other aged 40.  Our simple <span style="color:#0000ff;">ForEach </span>will loop through and work out the age of each instance.  To do this we&#8217;ll just take the DOB away from the current time to delivery the number of years. </p>
<p>The <span style="color:#0000ff;">ForEach</span> method is simply a delegate (which in essence is just a function) which may or may not take any arguments.  Ours isn&#8217;t taking any arguments (it&#8217;s a simple example after all <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).  The code looks like this:</p>
<pre class="brush: csharp;">
people.ForEach(
 person =&gt; { person.Age = (DateTime.Now - person.DOB).TotalYears(); }
);
</pre>
<p>Now we&#8217;re working against a list of type <span style="color:#0000ff;">Person</span> which is the <em>person =&gt;</em> bit.  The right hand side inside the curly brackets is in basically a method created on the fly for the purposes of the <span style="color:#0000ff;">ForEach </span>method.  So in essence the above is saying &#8220;for each person in the list of person set the age to the total number of years between the person&#8217;s date of birth and now&#8221;.  Doesn&#8217;t look to scary now does it <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ?</p>
<p>The more observant of you will have noticed that <span style="color:#0000ff;">TotalYears <span style="color:#000000;">doesn&#8217;t exist in a <span style="color:#0000ff;">TimeSpan <span style="color:#000000;">object.  And you&#8217;d be absolutely correct; sadly the TimeSpan object doesn&#8217;t provide a TotalYears method because it&#8217;s quite complex to work out due to leap years and &#8230; erm &#8230; other stuff that&#8217;s hard to work out <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .  So to help out with our example, it&#8217;s time for a little extension method on the <span style="color:#0000ff;">TimeSpan</span> class:</span></span></span></span></p>
<pre><span style="color:#0000ff;"><span style="color:#000000;"><span style="color:#0000ff;"><span style="color:#000000;">
<pre class="brush: csharp;">
public static class TimeSpan_Extensions
{
 public static int TotalYears(this TimeSpan ts)
 {
  return (int)ts.TotalDays / 365;
 }
}
</pre>
<p></span></span></span></span></pre>
<p>I would recommend you <strong><em><span style="text-decoration:underline;">don&#8217;t</span></em></strong> use that method for any production code whatsoever, I will guarantee bugs!  But it&#8217;s perfect for our purposes. </p>
<p>Hopefully you&#8217;ve found this useful, and the full source is posted below, good luck and good searching.</p>
<pre>
<pre><span style="color:#0000ff;"><span style="color:#000000;"><span style="color:#0000ff;"><span style="color:#000000;">
<pre class="brush: csharp;">
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Blog.Tests
{
 public static class TimeSpan_Extensions
 {
  public static int TotalYears(this TimeSpan ts)
  {
   return (int)ts.TotalDays / 365;
  }
 }
 [TestClass]
 public class ForEach
 {
  public class Person
  {
   public string Name { get; set; }
   public DateTime DOB { get; set; }
   public int Age { get; set; }
  }
  [TestMethod]
  public void Can_Calculate_Age_Using_ForEach()
  {
   List&lt;Person&gt; people = new List&lt;Person&gt;() {
    new Person() { Name = &quot;Fred Flintstone&quot;, DOB = DateTime.Now.AddYears(-65) },
    new Person() { Name = &quot;Homer Simpson&quot;, DOB = DateTime.Now.AddYears(-40) }
   };
   // Yup we could use ForEach here too, but I don't want to confuse what we know have to use (foreach) with what we don't (ForEach)!
   foreach (Person p in people) {
    Assert.AreEqual(0, p.Age);
   }
   // loop through each person and set the Age property to their calculated age
   people.ForEach(
    person =&gt; { person.Age = (DateTime.Now - person.DOB).TotalYears(); }
   );
   // element 0 is Fred Flintstone
   Assert.AreEqual(people[0].Age, 65);
   // element 1 is Homer Simpson
   Assert.AreEqual(people[1].Age, 40);
   
   // wooo, another ForEach sample, just spitting out the results
   people.ForEach(
    a =&gt; {
     TestContext.WriteLine(
      string.Format(&quot;Person ({0}, {1}, {2})&quot;, a.Name, a.DOB.ToShortDateString(), a.Age)
     );
    }
   );
  }
  private TestContext testContextInstance;
  /// &lt;summary&gt;
  ///Gets or sets the test context which provides
  ///information about and functionality for the current test run.
  ///&lt;/summary&gt;
  public TestContext TestContext
  {
   get
   {
    return testContextInstance;
   }
   set
   {
    testContextInstance = value;
   }
  }
 }
}&lt;/pre&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;</pre>
<p></span></span></span></span></pre>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toepoke.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toepoke.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toepoke.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=16&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toepoke.wordpress.com/2009/10/18/simple-example-on-using-foreach-generic-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01eb275e0e8b23db9254f77732748d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toepoke</media:title>
		</media:content>
	</item>
		<item>
		<title>Dude, loose the lilo &#8230;</title>
		<link>http://toepoke.wordpress.com/2009/07/27/dude-loose-the-lilo/</link>
		<comments>http://toepoke.wordpress.com/2009/07/27/dude-loose-the-lilo/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 13:13:53 +0000</pubDate>
		<dc:creator>toepoke</dc:creator>
				<category><![CDATA[holidays]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[beach]]></category>
		<category><![CDATA[lilo]]></category>
		<category><![CDATA[shops]]></category>

		<guid isPermaLink="false">http://toepoke.wordpress.com/?p=6</guid>
		<description><![CDATA[I was on hols in Spain this year (nice, except for the 26 hours coach trip , but that&#8217;s another story) and quite fancied getting a lilo (those little inflatable things you lie on in the sea &#8230; not last in last out for any nerds reading ). Thing is our hotel was a good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=6&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was on hols in Spain this year (nice, except for the 26 hours coach trip <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , but that&#8217;s another story) and quite fancied getting a lilo (those little inflatable things you lie on in the sea &#8230; not <em><strong><a title="last in, last out" href="http://en.wikipedia.org/wiki/Last_In,_Last_Out">last in last out</a></strong></em> for any nerds reading <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<p>Thing is our hotel was a good 20 minute walk from the sea and I really didn&#8217;t fancy carrying the bloomin&#8217; thing for that amount of time (though many of the residents did &#8230; mad!), particulary as I had a rucksack full of techie books to carry that I had no intention of reading &#8230;</p>
<p>Anyway, got me thinking &#8230; consider.</p>
<ol>
<li>There&#8217;s loads of shops selling lilos near the beach.</li>
<li>There&#8217;s loads of lazy people like me who can&#8217;t be bothered carrying them to the beach and back.</li>
<li>If you buy one at the start of the week, are you really going to carry it back home &#8230; nope you&#8217;re gonna dump it somewhere you naughty boy/girl.</li>
</ol>
<p>Now here&#8217;s the thing.  A lilo was costing about €5, so I figure if you own a shop by the sea, let me rent a lilo for one euro with a €5 deposit, if I burst it you&#8217;ve got the deposit (i.e. you&#8217;ve made your sale) and you only have to rent it out 5 times before you&#8217;ve made the equivalent of a sale.  I don&#8217;t have to carry the thing around, you don&#8217;t have to go to the wholesaler as often to stock up, less lilos need to be produced so the environment is better off.</p>
<p>Job&#8217;s a good &#8216;un.</p>
<p>Hope you enjoyed my first post &#8230; hopefully next time it will actually be about <a title="toepoke" href="http://www.toepoke.co.uk">www.toepoke.co.uk</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toepoke.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toepoke.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toepoke.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toepoke.wordpress.com&amp;blog=8750331&amp;post=6&amp;subd=toepoke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toepoke.wordpress.com/2009/07/27/dude-loose-the-lilo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01eb275e0e8b23db9254f77732748d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">toepoke</media:title>
		</media:content>
	</item>
	</channel>
</rss>
