<?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>[kumo.it] &#187; notes</title>
	<atom:link href="http://www.kumo.it/articles/tag/notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kumo.it</link>
	<description></description>
	<lastBuildDate>Wed, 24 Aug 2011 21:38: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>The perils in trusting syntax highlighting</title>
		<link>http://www.kumo.it/articles/2008/02/14/the-perils-in-trusting-syntax-highlighting/</link>
		<comments>http://www.kumo.it/articles/2008/02/14/the-perils-in-trusting-syntax-highlighting/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 10:45:42 +0000</pubDate>
		<dc:creator>kumo</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Stories]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.kumo.it/articles/2008/02/14/the-perils-in-trusting-syntax-highlighting/</guid>
		<description><![CDATA[Today after upgrading RSpec I ran a user story that I had just written and received a wonderful error: You have a nil object when you didn't expect it! (NoMethodError). The error occurred while evaluating nil.add_scenario. I didn&#8217;t even think to check my user story because the syntax highlighting looked fine and it made sense [...]]]></description>
			<content:encoded><![CDATA[<p>Today after upgrading <a href="http://rspec.info">RSpec</a> I ran a <a href="http://rspec.info/documentation/stories.html">user story</a> that I had just written and received a wonderful error: <code>You have a nil object when you didn't expect it! (NoMethodError). The error occurred while evaluating nil.add_scenario</code>. I didn&#8217;t even think to check my user story because the syntax highlighting looked fine and it made sense to me:</p>
<pre lang="Story">
  Scenario: areas have different types
    As an administrator
    I want to assign different types to the areas
    So that I can structure the home page

    Scenario: footer shows page links
      Given an area
      And area has 5 pages
      And area is of type footer
      When I view the home page
      Then I should see the home page
      And I should see the footer section
      And the list section should contain 0 areas
      And the footer section should contain 5 links
</pre>
<p>Of course, if I actually bothered to read it properly then I would have seen that the first line should have read:</p>
<pre lang="Story">
  Story: areas have different types
</pre>
<p>Moral of the story: even if the code that you have to write is small, always assume that you are capable of making silly mistakes!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumo.it/articles/2008/02/14/the-perils-in-trusting-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unzipping palm apps on a nintendo ds</title>
		<link>http://www.kumo.it/articles/2007/04/30/unzipping-palm-apps-on-a-nintendo-ds/</link>
		<comments>http://www.kumo.it/articles/2007/04/30/unzipping-palm-apps-on-a-nintendo-ds/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 15:07:36 +0000</pubDate>
		<dc:creator>kumo</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[dslinux]]></category>
		<category><![CDATA[nintendo]]></category>
		<category><![CDATA[palm]]></category>

		<guid isPermaLink="false">http://www.kumo.it/articles/2007/04/30/unzipping-palm-apps-on-a-nintendo-ds/</guid>
		<description><![CDATA[Yesterday we wanted to play 3D tictactoe on my palm, but we didn&#8217;t have any such game. Now I could have used OnBoardC or plua to &#8216;quickly&#8217; write a game but I didn&#8217;t have 2 weeks or a collection of icons at hand. Instead I found myself using Opera on my Nintendo DS to browse [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we wanted to play 3D tictactoe on my palm, but we didn&#8217;t have any such game. Now I could have used <a href="http://onboardc.sourceforge.net/">OnBoardC</a> or <a href="http://groups.yahoo.com/group/plua/">plua</a> to &#8216;quickly&#8217; write a game but I didn&#8217;t have 2 weeks or a collection of icons at hand. Instead I found myself using Opera on my Nintendo DS to browse the internet but I couldn&#8217;t download the zip file.</p>
<p>So, rebooting into <a href="http://dslinux.org/">DSLinux</a> (using a supercard and sd card) I could use wget to download file to the memory card and then unzip it.</p>
<p>All I needed to do then was put the memory card in the palm and copy it &#8230; after playing the game I wished that I could write the game for the Nintendo DS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumo.it/articles/2007/04/30/unzipping-palm-apps-on-a-nintendo-ds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Childrens TV in the UK</title>
		<link>http://www.kumo.it/articles/2007/03/08/childrens-tv-in-the-uk/</link>
		<comments>http://www.kumo.it/articles/2007/03/08/childrens-tv-in-the-uk/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 09:28:26 +0000</pubDate>
		<dc:creator>kumo</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[childhood]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://www.kumo.it/articles/2007/03/08/childrens-tv-in-the-uk/</guid>
		<description><![CDATA[This is more of a note to myself, but when I was a lad at lot of the children&#8217;s drama that was shown on childrens tv was Australian or from New Zealand. Thinking back it was quite impressive as there was (as far as I can remember): The Girl From Tomorrow Mirror, Mirror Round the [...]]]></description>
			<content:encoded><![CDATA[<p>This is more of a note to myself, but when I was a lad at lot of the children&#8217;s drama that was shown on childrens tv was Australian or from New Zealand. Thinking back it was quite impressive as there was (as far as I can remember):</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/The_Girl_from_Tomorrow">The Girl From Tomorrow</a></li>
<li><a href="http://en.wikipedia.org/wiki/Mirror%2C_Mirror_%28TV_series%29">Mirror, Mirror</a></li>
<li><a href="http://en.wikipedia.org/wiki/Round_The_Twist">Round the Twist</a></li>
</ul>
<p>(all links point to wikipedia)</p>
<p>Does anyone remember anything else?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumo.it/articles/2007/03/08/childrens-tv-in-the-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rubyonrails &#8211; beware of similarly named relationships</title>
		<link>http://www.kumo.it/articles/2006/04/29/habtm-clobbering/</link>
		<comments>http://www.kumo.it/articles/2006/04/29/habtm-clobbering/#comments</comments>
		<pubDate>Sat, 29 Apr 2006 10:26:00 +0000</pubDate>
		<dc:creator>kumo</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[habtm]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I recently developed a &#8220;rubyonrails&#8221;:http://www.rubyonrails.org application in which a user had a province (as part of their address) and also a collection of selected provinces. class Users belongs_to :province has_and_belongs_to_many :selected_provinces, :class_name => "Province" end I could very easily find out which provinces a user had selected and also which users had selected a specific [...]]]></description>
			<content:encoded><![CDATA[<p>I recently developed a &#8220;rubyonrails&#8221;:http://www.rubyonrails.org application in which a user had a province (as part of their address) and also a collection of selected provinces.</p>
<pre lang="rails">
class Users
  belongs_to :province
  has_and_belongs_to_many :selected_provinces, :class_name => "Province"
end
</pre>
<p>I could very easily find out which provinces a user had selected and also which users had selected a specific province. However I didn&#8217;t realise that if I accessed a user via the province then the <code>province_id</code> which previously pointed the user&#8217;s address province was replaced by the id of the selected province.</p>
<pre lang="rails">
province = Province.find_first
province.users.each do |user|
  # do something
  # however user.province_id now points to province
end
</pre>
<p>I assume the <code>province_id</code> is added by the habtm join so that we can understand which selected_province object this user object comes from however in my case it meant that I lost the original <code>province_id</code> and so if I saved that user then I would end up changing the address province.</p>
<p>This is probably not a bug as such but something that should be watched out for as it took me a while to discover this problem with my application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumo.it/articles/2006/04/29/habtm-clobbering/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tim and Tobias ~ Magic in the Wind</title>
		<link>http://www.kumo.it/articles/2006/02/10/tim-and-tobias-magic-in-the-wind/</link>
		<comments>http://www.kumo.it/articles/2006/02/10/tim-and-tobias-magic-in-the-wind/#comments</comments>
		<pubDate>Fri, 10 Feb 2006 09:59:00 +0000</pubDate>
		<dc:creator>kumo</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[childhood]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[tim]]></category>
		<category><![CDATA[tobias]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I remember reading a book when I was in Infant/Junior School but all I could recall were certain elements: a boy living by a canal with his uncle or aunt, a key that was a black cat, a mountain, and a kitten being thrown in the canal. I searched and I searched and I found [...]]]></description>
			<content:encoded><![CDATA[<p>I remember reading a book when I was in Infant/Junior School but all I could recall were certain elements: a boy living by a canal with his uncle or aunt, a key that was a black cat, a mountain, and a kitten being thrown in the canal.</p>
<p>I searched and I searched and I found a forum with someone looking for the same thing as me, but they were told that it was perhaps &#8220;Magic Mountain&#8221;.</p>
<p>Somehow though, I managed to find the book and so I place this information in the google archives just in case someone else is searching for it</p>
<p>The author was Sheila K. McCullagh and the first book was called *Tim and Tobias ~ Magic in the Wind*. I also discovered a website called &#8220;Tim and the Hidden People&#8221; (which is where I probably found this missing book) and can be found at &#8220;www.timandthehiddenpeople.moonfruit.com&#8221;:http://www.timandthehiddenpeople.moonfruit.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kumo.it/articles/2006/02/10/tim-and-tobias-magic-in-the-wind/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 8/15 queries in 0.029 seconds using disk: basic

Served from: www.kumo.it @ 2012-02-04 21:10:15 -->
