<?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>kamui.co.uk</title>
	<atom:link href="http://www.kamui.co.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.kamui.co.uk</link>
	<description>The life and times of Christopher Chestnut</description>
	<lastBuildDate>Tue, 15 May 2012 14:44:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Mythbusters Demonstrate the difference between CPU and GPU with paint guns at nvidia</title>
		<link>http://www.kamui.co.uk/2012/05/15/mythbusters-demonstrate-the-difference-between-cpu-and-gpu-with-paint-guns-at-nvidia/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mythbusters-demonstrate-the-difference-between-cpu-and-gpu-with-paint-guns-at-nvidia</link>
		<comments>http://www.kamui.co.uk/2012/05/15/mythbusters-demonstrate-the-difference-between-cpu-and-gpu-with-paint-guns-at-nvidia/#comments</comments>
		<pubDate>Tue, 15 May 2012 14:44:03 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[MythBusters]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=423</guid>
		<description><![CDATA[The Mythbusters hosts, Jamie Hyneman and Adam Savage visited nvidia to demonstrate the difference between CPUs and GPUs in a fun and exciting way using paint guns. See the video below of the experiment. These guys are great at demonstrating topics to the public (while I don&#8217;t think it is a completely accurate definition of [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://dsc.discovery.com/tv/mythbusters/">Mythbusters</a> hosts, Jamie Hyneman and Adam Savage visited nvidia to demonstrate the difference between CPUs and GPUs in a fun and exciting way using paint guns. See the video below of the experiment. These guys are great at demonstrating topics to the public (while I don&#8217;t think it is a completely accurate definition of a GPU and important pieces could be mangled in the message, it is broadly accurate and you can see the similarity between their experiment and reality) in a fun and exciting way.</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/-P28LKWTzrI" frameborder="0" allowfullscreen></iframe></p>
<p><a href="http://www.nvidia.com/object/nvision08_gpu_v_cpu.html">Click here to visit NVidia for the full video</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/05/15/mythbusters-demonstrate-the-difference-between-cpu-and-gpu-with-paint-guns-at-nvidia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batman &#8220;Justice&#8221;</title>
		<link>http://www.kamui.co.uk/2012/05/15/batman-justice/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=batman-justice</link>
		<comments>http://www.kamui.co.uk/2012/05/15/batman-justice/#comments</comments>
		<pubDate>Tue, 15 May 2012 10:55:00 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=416</guid>
		<description><![CDATA[I saw this video earlier this year at Stuart&#8217;s Stag Du. I came across it again today and couldn&#8217;t help but laugh. Riddler: What&#8217;s going to come out of the gun? Batman: Justice!]]></description>
			<content:encoded><![CDATA[<p>I saw this video earlier this year at Stuart&#8217;s Stag Du. I came across it again today and couldn&#8217;t help but laugh. </p>
<blockquote><p>
<strong>Riddler</strong>: What&#8217;s going to come out of the gun?<br />
<strong>Batman</strong>: Justice!
</p></blockquote>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/SVW6SH2bjYQ" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/05/15/batman-justice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hobby Progress 01/05 &#8211; 10/05</title>
		<link>http://www.kamui.co.uk/2012/05/11/hobby-progress-0105-1005/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hobby-progress-0105-1005</link>
		<comments>http://www.kamui.co.uk/2012/05/11/hobby-progress-0105-1005/#comments</comments>
		<pubDate>Fri, 11 May 2012 18:47:58 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[Flickr]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[painting]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[Warhammer]]></category>
		<category><![CDATA[hobby progress]]></category>
		<category><![CDATA[warhammer]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=409</guid>
		<description><![CDATA[Over the last 2 weeks I have been converting the standard Assault on Black Reach DeffKoptas to have a few magnetized upgrades, mainly the Buzzsaw and Big Bomb upgrages. It was a lot of fun to build but very time consuming when I could only spend an hour or 2 a day to work on [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last 2 weeks I have been converting the standard Assault on Black Reach DeffKoptas to have a few magnetized upgrades, mainly the Buzzsaw and Big Bomb upgrages. It was a lot of fun to build but very time consuming when I could only spend an hour or 2 a day to work on it. When all the bulk of the conversion work was done I could undercoat them and paint them in the DeathSkulls clan colours.   </p>
<div style="border-bottom:thick solid #696969;border-right:thick solid #696969;">
<div style="border:thin solid #000;text-align:center;padding-top:20px;">
<div id="flickr__763" class="slickr-flickr-slideshow landscape medium "><div class="active"><img  src="http://farm8.staticflickr.com/7221/7177640680_e0b19b29f9.jpg" alt="" title="Ork DeathSkulls DeffKopta 3" /><p><p>Ork DeathSkulls DeffKopta 3</p></p></div><div><img  src="http://farm8.staticflickr.com/7233/7177638416_eb08b15e8e.jpg" alt="" title="Ork DeathSkulls DeffKopta 3" /><p><p>Ork DeathSkulls DeffKopta 3</p></p></div><div><img  src="http://farm9.staticflickr.com/8147/7177642730_e002c6d6e6.jpg" alt="" title="Ork DeathSkulls DeffKopta 3" /><p><p>Ork DeathSkulls DeffKopta 3</p></p></div><div><img  src="http://farm9.staticflickr.com/8011/7177649394_7fcdae68bf.jpg" alt="" title="Ork DeathSkulls DeffKopta 2" /><p><p>Ork DeathSkulls DeffKopta 2</p></p></div><div><img  src="http://farm6.staticflickr.com/5038/7177645056_33c684b4d6.jpg" alt="" title="Ork DeathSkulls DeffKopta 3" /><p><p>Ork DeathSkulls DeffKopta 3</p></p></div><div><img  src="http://farm9.staticflickr.com/8157/7177651570_3210e883ee.jpg" alt="" title="Ork DeathSkulls DeffKopta 1" /><p><p>Ork DeathSkulls DeffKopta 1</p></p></div><div><img  src="http://farm9.staticflickr.com/8028/7177655772_65710b3c63.jpg" alt="" title="Ork DeathSkulls DeffKopta 1" /><p><p>Ork DeathSkulls DeffKopta 1</p></p></div><div><img  src="http://farm8.staticflickr.com/7241/7177647176_d8c495f3e8.jpg" alt="" title="Ork DeathSkulls DeffKopta 2" /><p><p>Ork DeathSkulls DeffKopta 2</p></p></div><div><img  src="http://farm8.staticflickr.com/7215/7177653752_4516b53ef2.jpg" alt="" title="Ork DeathSkulls DeffKopta 1" /><p><p>Ork DeathSkulls DeffKopta 1</p></p></div><div><img  src="http://farm8.staticflickr.com/7217/7177636054_bd868fd4e6.jpg" alt="" title="Hobby Progress 01/05 - 10/05" /><p><p>Hobby Progress 01/05 - 10/05</p></p></div></div><div style="clear:both"></div>
</div>
</div>
<p>What to do for the next hobby progress, I&#8217;m not sure. I have boxes of Ork boys, an additional Assault on Black Reach complement or orks, a load of gretchen, and burna boys, 6 more deffkoptas and a couple of looted wagons to choose from, a battlewagon, and a couple of other pieces which will be converted in time but as I am unlikely to be having an apocalypse game in the near future those can wait. So I&#8217;m hardly struggling to find something to paint, it will be brilliant to see a fully painted Ork army. I really need to work out how many points I have&#8230; hmm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/05/11/hobby-progress-0105-1005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using JSFiddle to embed videos</title>
		<link>http://www.kamui.co.uk/2012/05/02/using-jsfiddle-to-embed-videos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-jsfiddle-to-embed-videos</link>
		<comments>http://www.kamui.co.uk/2012/05/02/using-jsfiddle-to-embed-videos/#comments</comments>
		<pubDate>Wed, 02 May 2012 14:37:51 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=401</guid>
		<description><![CDATA[I should have figured this out before, but it is a great idea. I often use JSFIDDLE to host working versions of my answers to StackOverflow questions or just to demonstrate to people. Recently I came across a tweet RT @0x6D6172696F: And as a super-secret pre-release, here&#8217;s @asintsov&#8216;s @hackpra talk: bit.ly/IGwnLS #hackpra #domino #0day Enjoy [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I should have figured this out before, but it is a great idea. I often use <a href="http://fiddle.jshell.net">JSFIDDLE</a> to host working versions of my answers to StackOverflow questions or just to demonstrate to people. Recently I came across a tweet</p>
<blockquote class="twitter-tweet"><p>RT @<a href="https://twitter.com/0x6D6172696F">0x6D6172696F</a>: And as a super-secret pre-release, here&#8217;s @<a href="https://twitter.com/asintsov">asintsov</a>&#8216;s @<a href="https://twitter.com/hackpra">hackpra</a> talk: <a href="http://t.co/qtPqTe9q" title="http://bit.ly/IGwnLS">bit.ly/IGwnLS</a> <a href="https://twitter.com/search/%2523hackpra">#hackpra</a> <a href="https://twitter.com/search/%2523domino">#domino</a> <a href="https://twitter.com/search/%25230day">#0day</a> Enjoy <img src='http://www.kamui.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&mdash; @ (@garethheyes) <a href="https://twitter.com/garethheyes/status/197606261527810048" data-datetime="2012-05-02T08:39:38+00:00">May 2, 2012</a></p></blockquote>
<p>When it loaded, I thought, when did jsfiddle start hosting videos? but what he has done is a nice wee solution, he has added an <a href="http://fiddle.jshell.net/MQurT/">embed tag to a jsfiddle entry</a> and added the <span style="color:#474747;">/show/</span> parameter to the url so that only that code appears, in turn this displays the video. Class, I will have to remember this in future.</p>
<p><pre class="brush: xml">&lt;br&gt;&lt;br&gt;&lt;embed width=&quot;1280&quot; height=&quot;720&quot; src=&quot;http://www.el.rub.de/robert/RUBcast/
player.swf&quot; bgcolor=&quot;undefined&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;
flashvars=&quot;file=rubcast/disc2/SoSe12/HackPra/02_HackPra_25.04.2012.mp4&amp;
image=http://www.el.rub.de/robert/RUBcast/
Grauverlauf.png&amp;logo=http://www.el.rub.de/robert/RUBcast/
Funklogo2.png&amp;backcolor=e6e4e4&amp;
frontcolor=003560&amp;lightcolor=94c11c
&amp;screencolor=FFFFFF&amp;
bufferlength=5&amp;streamer=rtmp://video.rubcast.rub.de/vod/&quot; /&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/05/02/using-jsfiddle-to-embed-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You need to get of Facebook, Video presentation by Ross and Emily</title>
		<link>http://www.kamui.co.uk/2012/05/02/you-need-to-get-of-facebook-video-presentation-by-ross-and-emily/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=you-need-to-get-of-facebook-video-presentation-by-ross-and-emily</link>
		<comments>http://www.kamui.co.uk/2012/05/02/you-need-to-get-of-facebook-video-presentation-by-ross-and-emily/#comments</comments>
		<pubDate>Wed, 02 May 2012 13:05:11 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=396</guid>
		<description><![CDATA[I stumbled across these videos today, I know they have been around for a while but I thought it was interesting to listen to, and then the retort by Emily. Personally I like Facebook and I find it to be a great tool to to arrange get together and keep in touch with friends which [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I stumbled across these videos today, I know they have been around for a while but I thought it was interesting to listen to, and then the retort by Emily. Personally I like Facebook and I find it to be a great tool to to arrange get together and keep in touch with friends which I might have otherwise lost touch with.</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/8UouP8cRYZ8" frameborder="0" allowfullscreen></iframe></p>
<p><iframe width="560" height="410" src="http://www.youtube.com/embed/wQPUA4LEcjI" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/05/02/you-need-to-get-of-facebook-video-presentation-by-ross-and-emily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Stylesheets and scripts broken because WordPress adds https</title>
		<link>http://www.kamui.co.uk/2012/04/30/wordpress-stylesheets-and-scripts-broken-because-wordpress-adds-https/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-stylesheets-and-scripts-broken-because-wordpress-adds-https</link>
		<comments>http://www.kamui.co.uk/2012/04/30/wordpress-stylesheets-and-scripts-broken-because-wordpress-adds-https/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 12:40:31 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=384</guid>
		<description><![CDATA[Recently I noticed that if I viewed this site on a different machine There were no styles, and none of the scripts were being run until I logged in, at which point I added an exception for the ssl certificate for the site. This site like many others I would imagine is on shared hosting [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>Recently I noticed that if I viewed this site on a different machine There were no styles, and none of the scripts were being run until I logged in, at which point I added an exception for the ssl certificate for the site. This site like many others I would imagine is on shared hosting which means that my hosting provider setup the ssl certificate, which is very nice of them but does have the slight drawback that the certificate does not match my domain, which in nearly every browser will flag up an error message if you try to access it using https. For me this is not really a problem as I know why this happens and I am the only one really adding to this site so I can just ignore it. </p>
<p>However recently as I said above I noticed on machines that did not have an exception fort he ssl certificate, they could not see any of the lovely styling. This was because for some random reason WordPress was automatically adding <em>https</em> instead of <em>http</em> in front of all the stylesheets, and because there is an err with the ssl in this site due to the domains not matching, nobody who was not me could see this site. A problem, yes I think so.</p>
<p>Luckily for me I came across this wonderful website that had the solution to my problem, well at least steered me in the right direction. </p>
<ul>
<li><a href="http://www.vincentkong.com/blog/-/blogs/stylesheets-in-wordpress-referenced-with-https">vincentkong.com &#8211; Stylesheets in WordPress Referenced with HTTPS</a>.</li>
</ul>
<p>The Solution was quite simple after a little exploring, just comment out the line which makes it https in <em>/wp-includes/link-template.php</em></p>
<p><pre class="brush: php">/**
 * Retrieve the url to the content directory.
 *
 * @param string $path Optional. Path relative to the content url.
 * @return string Content url link with optional path appended.
*/
function content_url($path = '') {
	$url = WP_CONTENT_URL;
/*	Comment Out this section
*       if ( 0 === strpos($url, 'http') &amp;&amp; is_ssl() )
*	        $url = str_replace( 'http://', 'https://', $url );
*/
	if ( !empty($path) &amp;&amp; is_string($path) &amp;&amp; strpos($path, '..') === false )
		$url .= '/' . ltrim($path, '/');

	return apply_filters('content_url', $url, $path);
}</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/04/30/wordpress-stylesheets-and-scripts-broken-because-wordpress-adds-https/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hobby Progress 23/04 &#8211; 27/04</title>
		<link>http://www.kamui.co.uk/2012/04/28/hobby-progress-2304-2704/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hobby-progress-2304-2704</link>
		<comments>http://www.kamui.co.uk/2012/04/28/hobby-progress-2304-2704/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 17:46:09 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[Flickr]]></category>
		<category><![CDATA[painting]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[Warhammer]]></category>
		<category><![CDATA[warhammer]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=373</guid>
		<description><![CDATA[The second week of hobby progress, and I managed to get more done than last week, achieving 6 cybork shootas, 1 loota, 1 Nob and Kapttin Badrukk which was fun to paint and I believe came out quite well. For next week&#8217;s challenge I have started converting some Deffkoptas.]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>The second week of hobby progress, and I managed to get more done than last week, achieving 6 cybork shootas, 1 loota, 1 Nob and Kapttin Badrukk which was fun to paint and I believe came out quite well.</p>
<div style="border-bottom:thick solid #696969;border-right:thick solid #696969;">
<div style="border:thin solid #000;text-align:center;padding-top:20px;">
<div id="flickr__31" class="slickr-flickr-slideshow landscape medium "><div class="active"><img  src="http://farm8.staticflickr.com/7076/7121516077_40f1550daf.jpg" alt="" title="Hobby Progress 2 23/04 - 27/04" /><p><p>Hobby Progress 2 23/04 - 27/04</p></p></div><div><img  src="http://farm8.staticflickr.com/7178/6975437050_cc2ce6b613.jpg" alt="" title="Ork Kaptin Badrukk" /><p><p>Ork Kaptin Badrukk</p></p></div><div><img  src="http://farm9.staticflickr.com/8164/7121518695_d1dbaa516e.jpg" alt="" title="Ork Kaptin Badrukk" /><p><p>Ork Kaptin Badrukk</p></p></div><div><img  src="http://farm9.staticflickr.com/8161/7121560197_eb3fbc33c2.jpg" alt="" title="Big Shoota Cybork Deathskull Ork Boy" /><p><p>Big Shoota Cybork Deathskull Ork Boy</p></p></div><div><img  src="http://farm8.staticflickr.com/7261/7121561457_550096506a.jpg" alt="" title="Cybork Deathskull Ork Boy &quot;Chunky&quot;" /><p><p>Cybork Deathskull Ork Boy &quot;Chunky&quot;</p></p></div><div><img  src="http://farm9.staticflickr.com/8007/7121562677_5d943b838e.jpg" alt="" title="Back of Cybork Deathskull Ork Boy &quot;Chunky&quot;" /><p><p>Back of Cybork Deathskull Ork Boy &quot;Chunky&quot;</p></p></div><div><img  src="http://farm8.staticflickr.com/7090/7121563771_9324786db7.jpg" alt="" title="Cybork Deathskull Ork Boy" /><p><p>Cybork Deathskull Ork Boy</p></p></div><div><img  src="http://farm9.staticflickr.com/8004/6975478028_912d040fd3.jpg" alt="" title="Cybork Deathskull Ork Boy" /><p><p>Cybork Deathskull Ork Boy</p></p></div><div><img  src="http://farm8.staticflickr.com/7209/7121519963_e03ca67b8e.jpg" alt="" title="Cybork Deathskull Ork Boy" /><p><p>Cybork Deathskull Ork Boy</p></p></div><div><img  src="http://farm8.staticflickr.com/7054/7121521085_b205dbcbfd.jpg" alt="" title="Cybork Deathskull Ork Boy" /><p><p>Cybork Deathskull Ork Boy</p></p></div><div><img  src="http://farm8.staticflickr.com/7107/7121564883_c2d3d7fa70.jpg" alt="" title="DeathSkull Ork Loota" /><p><p>DeathSkull Ork Loota</p></p></div><div><img  src="http://farm8.staticflickr.com/7091/7121514761_ea59418890.jpg" alt="" title="Deathskull Ork Nob" /><p><p>Deathskull Ork Nob</p></p></div></div><div style="clear:both"></div>
</div>
</div>
<p>For next week&#8217;s challenge I have started converting some Deffkoptas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/04/28/hobby-progress-2304-2704/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avengers Assemble</title>
		<link>http://www.kamui.co.uk/2012/04/28/avengers-assemble/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=avengers-assemble</link>
		<comments>http://www.kamui.co.uk/2012/04/28/avengers-assemble/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 15:05:21 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[movie]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=364</guid>
		<description><![CDATA[Went to see The Avengers last night, and it was brilliant!! The Hulk Character particularly funny in parts, doing things we wish were done before&#8230; &#8220;puny god&#8221;. I thoroughly enjoyed the entire movie, though the I thought more could have been done with the character revealed after the credits, if you&#8217;ve seen it you know [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p><img src="http://www.kamui.co.uk/wp-content/uploads/2012/04/photo1.jpg" alt="" title="Avengers" width="640" height="266" class="alignnone size-full wp-image-368" /></p>
<p>Went to see <a href="http://www.imdb.com/title/tt0848228/">The Avengers</a> last night, and it was brilliant!! The Hulk Character particularly funny in parts, doing things we wish were done before&#8230; &#8220;puny god&#8221;. I thoroughly enjoyed the entire movie, though the I thought more could have been done with the character revealed after the credits, if you&#8217;ve seen it you know who I&#8217;m talking about. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/04/28/avengers-assemble/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hobby Progress 16/04 &#8211; 21/04</title>
		<link>http://www.kamui.co.uk/2012/04/22/hobby-progress-1604-2104/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hobby-progress-1604-2104</link>
		<comments>http://www.kamui.co.uk/2012/04/22/hobby-progress-1604-2104/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 01:03:09 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[Flickr]]></category>
		<category><![CDATA[painting]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[Warhammer]]></category>
		<category><![CDATA[hobby progress]]></category>
		<category><![CDATA[warhammer]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=350</guid>
		<description><![CDATA[Having head this being done by the crew of the Independent Characters Podcast I thought this would be a good idea to post what I had managed to do every week or 2 weeks, which should help to motivate me to get my Ork Army painted to a standard I would be happy with. Setting [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
<p>Having head this being done by the crew of the <a href="http://theindependentcharacters.com/blog/" rel="nofollow">Independent Characters Podcast</a> I thought this would be a good idea to post what I had managed to do every week or 2 weeks, which should help to motivate me to get my Ork Army painted to a standard I would be happy with. Setting a goal should be useful as I can attempt to beat it and with any luck will get all my Orks painted, the primary benefit and problem with Orks is that there are loads of them and I must have in the region of 60+ boyz, 9 defcoptas, and 3+ vehicles that need painted. In fact some of them need to be assembled.  </p>
<div style="border-bottom:thick solid #696969;border-right:thick solid #696969;">
<div style="border:thin solid #000;text-align:center;padding-top:20px;">
<div id="flickr__417" class="slickr-flickr-slideshow landscape medium "><div class="active"><img  src="http://farm6.staticflickr.com/5232/7100469277_2e231726fe.jpg" alt="" title="My last 2 Stormboyz" /><p><p>My last 2 Stormboyz</p></p></div><div><img  src="http://farm6.staticflickr.com/5272/6954397272_b0ebc417d5.jpg" alt="" title="Hobby Progress 1 16/04 - 21/04" /><p><p>Hobby Progress 1 16/04 - 21/04</p></p></div><div><img  src="http://farm8.staticflickr.com/7047/7100468355_66b362237b.jpg" alt="" title="An Ammo runt" /><p><p>An Ammo runt</p></p></div><div><img  src="http://farm8.staticflickr.com/7237/6954399178_c7218e7b42.jpg" alt="" title="Bad Moon Warboss with Attack Squig" /><p><p>Bad Moon Warboss with Attack Squig</p></p></div><div><img  src="http://farm6.staticflickr.com/5280/7100466539_f7296520fa.jpg" alt="" title="Deathskull Big Mek with Burna" /><p><p>Deathskull Big Mek with Burna</p></p></div></div><div style="clear:both"></div>
</div>
</div>
<p>Above you should be able to see my progress for this week, 3 HQs, 2 Stormboyz, and an Ammo runt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/04/22/hobby-progress-1604-2104/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building code to pass an arbitrary string containing the name of an object property and replacing it with the value of that property using RegEx, Reflection, and Linq</title>
		<link>http://www.kamui.co.uk/2012/04/12/building-code-to-pass-an-arbitrary-string-containing-the-name-of-an-object-property-and-replacing-it-with-the-value-of-that-property-using-regex-reflection-and-linq/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-code-to-pass-an-arbitrary-string-containing-the-name-of-an-object-property-and-replacing-it-with-the-value-of-that-property-using-regex-reflection-and-linq</link>
		<comments>http://www.kamui.co.uk/2012/04/12/building-code-to-pass-an-arbitrary-string-containing-the-name-of-an-object-property-and-replacing-it-with-the-value-of-that-property-using-regex-reflection-and-linq/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 14:20:01 +0000</pubDate>
		<dc:creator>kamui</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.kamui.co.uk/?p=343</guid>
		<description><![CDATA[I recently wanted for the outputs of a search to be configurable easily by an admin by storing a specially crafted string which would use the object returned by the query and only display certain parameters, the key was that different people could see different things. The solution was a specially crafted string containing the [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://www.kamui.co.uk/wp-content/plugins/wordpress-code-snippet/scripts/shBrushCSharp.js"></script>
<p>I recently wanted for the outputs of a search to be configurable easily by an admin by storing a specially crafted string which would use the object returned by the query and only display certain parameters, the key was that different people could see different things. The solution was a specially crafted string containing the entire formatting of the output with sections of interest marked out by brackets. </p>
<p>My first problem was getting the names of all the properties within the object, as I didn&#8217;t want to have to change my code if the object changed, or if I one day decided to change the name of one of the object&#8217;s properties. I did this after playing around within <em>System.Reflection</em> and after searching for a while I eventually stumbled upon an <a href="http://stackoverflow.com/a/2444090/728841">answer within StackOverflow</a> by one of the users <a href="http://stackoverflow.com/users/85785/mythz">@mythz</a>. </p>
<p><pre class="brush: csharp">public static PropertyInfo[] GetPublicProperties(this Type type){
	if (type.IsInterface)
	{
		var propertyInfos = new List&lt;PropertyInfo&gt;();

		var considered = new List&lt;Type&gt;();
		var queue = new Queue&lt;Type&gt;();
		considered.Add(type);
		queue.Enqueue(type);
		while (queue.Count &gt; 0)
		{
		    var subType = queue.Dequeue();
		    foreach (var subInterface in subType.GetInterfaces())
		    {
			if (considered.Contains(subInterface)) continue;

			considered.Add(subInterface);
			queue.Enqueue(subInterface);
		    }

		    var typeProperties = subType.GetProperties(
			BindingFlags.FlattenHierarchy
			| BindingFlags.Public
			| BindingFlags.Instance);

		    var newPropertyInfos = typeProperties
			.Where(x =&gt; !propertyInfos.Contains(x));

		    propertyInfos.InsertRange(0, newPropertyInfos);
		}

		return propertyInfos.ToArray();
	}

	return type.GetProperties(BindingFlags.FlattenHierarchy
	| BindingFlags.Public | BindingFlags.Instance);
}</pre></p>
<p>Then simply using a little <em>System.Linq</em> code to filter the responses and <em>RegEx</em> to get the sections to be replaced. </p>
<p><pre class="brush: csharp">// the input format string &quot;format&quot; takes the form of 
// &quot;some text {objectProperty} some more text {another property}&quot;
Dictionary&lt;string, string&gt; formatreplacement = new Dictionary&lt;string, string&gt;();

// a regular expression to grab all the special sections
MatchCollection getParameterMatch = Regex.Matches(format, &quot;\\{.+?\\}&quot;);

// use System.Reflection to get fields in application.
PropertyInfo[] info = GetPublicProperties(aa.GetType());

if (getParameterMatch.Count &gt; 0)
{
    // loop through the matches and get what the replacement value is
    foreach (Match m in getParameterMatch)
    {
        // remove the containing brackets
        string value = m.Value.Replace(&quot;{&quot;, &quot;&quot;).Replace(&quot;}&quot;, &quot;&quot;);
        // check to see if the property exists in the PropertyInfo[] using Linq
        if (info.Where(x =&gt; x.Name == value).Count() == 1) {
            // if it does exist then add the property value to the dictionary 
            formatreplacement[m.Value] = Convert.ToString(info.Where(x =&gt; x.Name == value).ElementAt(0).GetValue(aa, null));
        }
    }
}
// loop through the elements in the Dictionary and 
// Replace the parts of the string with the retrieved value</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kamui.co.uk/2012/04/12/building-code-to-pass-an-arbitrary-string-containing-the-name-of-an-object-property-and-replacing-it-with-the-value-of-that-property-using-regex-reflection-and-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

