<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Can't Hack, Won't Hack</title>
	
	<link>http://canthack.org</link>
	<description />
	<lastBuildDate>Mon, 15 Apr 2013 11:44:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CantHackWontHack" /><feedburner:info uri="canthackwonthack" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>PiPurr – The Remote Cat Interaction Server</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/8AXrhogiVn4/</link>
		<comments>http://canthack.org/2013/04/pipurr-the-remote-cat-interaction-server/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 09:58:28 +0000</pubDate>
		<dc:creator>Tris</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1361</guid>
		<description><![CDATA[All the best hacks and open-source projects come about by scratching personal itches. In fact when asked by friends and acquaintances &#8220;How do I start with coding &#8211; what should I write?&#8220;, that is my usual answer &#8211; &#8220;Find something &#8230; <a href="http://canthack.org/2013/04/pipurr-the-remote-cat-interaction-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="attachment_1381" class="wp-caption alignright" style="width: 310px"><a href="http://canthack.org/uploads/pipurr.png" rel="fancybox-1361"><img class="size-medium wp-image-1381" alt="PiPurr Server" src="http://canthack.org/uploads/pipurr-300x260.png" width="300" height="260" /></a><p class="wp-caption-text">PiPurr Server</p></div>
<p>All the best hacks and open-source projects come about by scratching personal itches. In fact when asked by friends and acquaintances &#8220;<em>How do I start with coding &#8211; what should I write?</em>&#8220;, that is my usual answer &#8211; &#8220;<em>Find something you don&#8217;t like or would like to improve and do that</em>&#8220;.</p>
<p>This brings us to the idea of PiPurr, what I like to call the Remote Cat Interaction Server.</p>
<p>Whenever we go on holiday, we never really get to relax, because <a href="http://canthack.org/author/han/" target="_blank">Hannah</a> is always asking me things like &#8220;<em>Do you think the cats are OK?</em>&#8220;, &#8220;<em>What do you think the cats are up to?</em>&#8221; etc. PiPurr is the solution to this problem.</p>
<p>The goal is not just to be able to keep an eye on what the cats are doing when away from home, but also to interact and play with them remotely too.</p>
<p>PiPurr is a simple client-server solution. The <a title="PiPurr Server" href="https://github.com/tristan2468/PiPurr-Server" target="_blank">server</a> runs on a Raspberry Pi, for low power consumption and provides the functionality &#8211; capturing images, dispensing treats, making sounds play from the speakers etc, and clients connect to this over HTTP and request those actions.</p>
<div id="attachment_1373" class="wp-caption alignleft" style="width: 178px"><a href="http://canthack.org/uploads/newui.png" rel="fancybox-1361"><img class="size-medium wp-image-1373" alt="PiPurr for Android" src="http://canthack.org/uploads/newui-168x300.png" width="168" height="300" /></a><p class="wp-caption-text">PiPurr for Android</p></div>
<p>The server is implemented as a small Python web server, using <a title="HTTPServer" href="http://docs.python.org/2/library/basehttpserver.html" target="_blank">HTTPServer</a> that, instead of serving static files from a directory, exposes a small number of URIs that correspond to those actions. This means that all that is required to access it is a browser. A summary of the actions are:</p>
<ul>
<li>/cats.jpeg &#8211; Capture and return a photo from the webcam. Uses <a title="OpenCV" href="http://opencv.org/" target="_blank">OpenCV</a>.</li>
<li>/sound &#8211; Play the sound out the speakers to entice the cats over.</li>
<li>/treat &#8211; Dispense a cat treat &#8211; Currently in development, and will use a <a title="PicoBorg" href="http://piborg.com/picoborg" target="_blank">PicoBorg</a> stepper motor to drive a treat dispenser. Keep a look out for another blog post about this in the future.</li>
</ul>
<p>The decision to use the (rather large and <a href="http://eduardofv.com/read_post/185-Installing-OpenCV-on-the-Raspberry-Pi" target="_blank">fiddly to get working on Raspberry Pi</a>) OpenCV for image capture is down to the fact that in the future I am going to write a cat detector, and possibly other vision-based functionality.</p>
<p>A neat addition to the server is the <a title="LedBorg" href="http://piborg.com/ledborg" target="_blank">LedBorg</a>, which is an RGB LED add-on, set to flash different colours depending on what happens when requests come in. Red for 403s, 500s etc., green for 200 on the image URI and blue for 200 on the sound URI.</p>
<div id="attachment_1374" class="wp-caption alignright" style="width: 178px"><a href="http://canthack.org/uploads/share.png" rel="fancybox-1361"><img class="size-medium wp-image-1374 " title="Sharing" alt="Sharing" src="http://canthack.org/uploads/share-168x300.png" width="168" height="300" /></a><p class="wp-caption-text">Sharing</p></div>
<p>For ease of use, I also developed an <a title="PiPurr for Android" href="https://github.com/tristan2468/PiPurr-for-Android" target="_blank">Android client</a> that allows easy access to PiPurr whilst out and about. The app also allows for sharing of the captured images over email, Facebook etc.</p>
<p>I will be adding more functionality to the solution as time goes on. Some of the things I have planned are:</p>
<ul>
<li>/ &#8211; Implement a web UI to control it easier with a web browser.</li>
<li>/laser &#8211; Move a laser pointer or similar cat to about with motor control.</li>
<li>/video &#8211; Stream live video.</li>
</ul>
<p>I plan to talk about this project at <a title="BarCamp Canterbury" href="http://barcampcanterbury.com" target="_blank">BarCamp Canterbury</a> on the 27th April 2013 if you would like to find out more, or have any cool ideas.</p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/8AXrhogiVn4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2013/04/pipurr-the-remote-cat-interaction-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://canthack.org/2013/04/pipurr-the-remote-cat-interaction-server/</feedburner:origLink></item>
		<item>
		<title>Introducing ‘The Sin’: Edd’s YM2612 MIDI Instrument</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/qlCPWuLGWK0/</link>
		<comments>http://canthack.org/2012/09/introducing-the-sin-edds-ym2612-midi-instrument/#comments</comments>
		<pubDate>Thu, 20 Sep 2012 14:05:46 +0000</pubDate>
		<dc:creator>Edd</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1337</guid>
		<description><![CDATA[And because I am a slacker, I forgot to thank matth for the chip holders and Mex for being a Boris. Cheers!]]></description>
				<content:encoded><![CDATA[<object type="application/x-shockwave-flash" width="640" height="539" data="http://getembedplus.com/embedplus.swf" id="ep1626">
<param value="http://getembedplus.com/embedplus.swf" name="movie" />
<param value="high" name="quality" />
<param value="transparent" name="wmode" />
<param value="always" name="allowscriptaccess" />
<param value="true" name="allowFullScreen" />
<param name="flashvars" value="ytid=_OiOyxsI5n8&width=640&height=507&start=&stop=&rs=w&hd=0&autoplay=0&react=1&chapters=&notes=&amp;rs=w" />
<iframe class="cantembedplus" title="YouTube video player" width="640" height="507" src="http://www.youtube.com/embed/_OiOyxsI5n8?fs=1" frameborder="0" allowfullscreen></iframe>
</object>
<!--[if lte IE 6]> <style type="text/css">.cantembedplus{display:none;}</style><![endif]-->
<p>And because I am a slacker, I forgot to thank matth for the chip holders and Mex for being a Boris. Cheers!</p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/qlCPWuLGWK0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/09/introducing-the-sin-edds-ym2612-midi-instrument/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/09/introducing-the-sin-edds-ym2612-midi-instrument/</feedburner:origLink></item>
		<item>
		<title>OggCamp 12</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/TDbOhyzJuso/</link>
		<comments>http://canthack.org/2012/08/oggcamp-12/#comments</comments>
		<pubDate>Tue, 21 Aug 2012 10:06:34 +0000</pubDate>
		<dc:creator>Tris</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1307</guid>
		<description><![CDATA[Here at CantHack, we&#8217;ve always been fans of Barcamp type unconferences, and between us we have attended many Barcamps over the years, and have even organised one ourselves. OggCamp is a Barcamp-like event that focuses on free and open culture &#8230; <a href="http://canthack.org/2012/08/oggcamp-12/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://canthack.org/2012/08/oggcamp-12/ogglogo/" rel="attachment wp-att-1317"><img class="alignleft size-full wp-image-1317" title="OggLogo" src="http://canthack.org/uploads/ogglogo.png" alt="OggCamp Logo" width="206" height="37" /></a>Here at CantHack, we&#8217;ve always been fans of <a title="BarCamp on Wikipedia" href="http://en.wikipedia.org/wiki/BarCamp" target="_blank">Barcamp</a> type unconferences, and between us we have attended many Barcamps over the years, and have even <a title="BarCamp Canterbury recap." href="http://canthack.org/2012/05/barcamp-canterbury-recap/">organised</a> one ourselves.</p>
<p><a title="OggCamp" href="http://oggcamp.org/" target="_blank">OggCamp</a> is a Barcamp-like event that focuses on free and open culture that has just hosted its fourth annual event in Liverpool.</p>
<p>Some of us from CantHack had attended last year&#8217;s event in Farhham, where we delivered talks on <a title="Adventures with Radare2 #1: A Simple Shellcode Analysis" href="http://canthack.org/2011/07/adventures-with-radare-1-a-simple-shellcode-analysis/">reverse engineering </a>and <a title="HGD 0.4.1 out now!" href="http://canthack.org/2011/07/hgd-0-4-1/">HGD</a>, and this year two of us (Tris and Han) travelled the long journey to Liverpool to once again spend two days meeting, socialising with and learning from a wide cross-section of the geek community.</p>
<div id="attachment_1322" class="wp-caption alignleft" style="width: 210px"><a href="http://canthack.org/2012/08/oggcamp-12/rfid/" rel="attachment wp-att-1322"><img class="size-medium wp-image-1322" title="rfid" src="http://canthack.org/uploads/rfid-200x300.jpg" alt="RFID" width="200" height="300" /></a><p class="wp-caption-text">RFID Rhythm Generator</p></div>
<p>Han was on the crew for this year&#8217;s event, which meant early starts and lots of helping out, although that did mean that I got chance to wander around finding talks to go to.</p>
<p>There were so many interesting talks on the schedules that it was impossible to see all the talks that I wanted to.</p>
<p>I did get to watch about many different subjects including QR Codes, OggBox (an open hardware Ogg player) to Nanode (an Arduino clone with built in networking and RF communications, more on that in a bit).</p>
<p>I also really enjoyed some of the more light-hearted talks such as <a title="Alex Martindale on Twitter" href="https://twitter.com/alexturgid" target="_blank">Alex Martindale</a>&#8216;s look at error messages over the years (inlcuding a huge screen showing the Sinclair Spectrum start screen &#8211; which brought back many happy memories!), and an interview with Stephen Fry which, although pre-recorded, was very engaging and more interesting than I would have initially thought it would be.</p>
<p>This year&#8217;s OggCamp was also the first to feature an Open Hardware Jam, where we witnessed many awesome hardware hacks like an RFID rhythm generator, DIY retro computers, 3D printing and textile hacking.</p>
<p>I also bought myself the awesome <a title="Nanode" href="http://www.nanode.eu/">Nanode</a> RF, which as mentioned before, is an embedded development platform similar to an Arduino but with integrated Ethernet and an RF transceiver for wireless connectivity to sensor nodes.</p>
<div id="attachment_1316" class="wp-caption alignright" style="width: 310px"><a href="http://canthack.org/2012/08/oggcamp-12/nanode/" rel="attachment wp-att-1316"><img class="size-medium wp-image-1316" title="Nanode" src="http://canthack.org/uploads/nanode-300x225.jpeg" alt="Nanode" width="300" height="225" /></a><p class="wp-caption-text">Nanode</p></div>
<p>It is sold in kit form so I have all the fun ahead of soldering the components together to make the board. When finished, I plan to hack together some home automation/monitoring with this and a Raspberry Pi. Of course those hacks will also appear here in the near future.</p>
<p>I also took a few photos of the event, which are located on <a title="Flickr" href="http://www.flickr.com/photos/jonnyentropy/sets/72157631162349020/" target="_blank">my Flickr page</a>. It&#8217;s also worth searching Flickr for &#8216;oggcamp&#8217; and &#8216;oggcamp12&#8242; to find more.</p>
<p>Thanks so much to the organisers from <a title="Linux Outlaws" href="http://sixgun.org/linuxoutlaws/">Linux Outlaws</a> and <a title="Ubuntu UK Podcast" href="http://podcast.ubuntu-uk.org/" target="_blank">Ubuntu UK Podcast</a>, and to <a title="Les Pounder" href="http://lespounder.wordpress.com/" target="_blank">Les Pounder</a> for organising the crew! See you all again next year! CantHack will be back!</p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/TDbOhyzJuso" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/08/oggcamp-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/08/oggcamp-12/</feedburner:origLink></item>
		<item>
		<title>CantHack presents at Digibury.</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/sGIQmkGABSM/</link>
		<comments>http://canthack.org/2012/06/canthack-presents-at-digibury/#comments</comments>
		<pubDate>Fri, 15 Jun 2012 19:09:05 +0000</pubDate>
		<dc:creator>Mex</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1242</guid>
		<description><![CDATA[Thanks to everybody who came to Digibury this week, we had a great time and we hope the people who came enjoyed the session. The slides are available below, as well as the light painting pictures you made! I am &#8230; <a href="http://canthack.org/2012/06/canthack-presents-at-digibury/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="attachment_1287" class="wp-caption alignright" style="width: 159px"><a href="http://canthack.org/uploads/d-deeson-logo2.png" rel="fancybox-1242"><img class="size-full wp-image-1287" title="d-deeson-logo" src="http://canthack.org/uploads/d-deeson-logo2.png" alt="" width="149" height="134" /></a><p class="wp-caption-text">Digibury</p></div>
<p>Thanks to everybody who came to Digibury this week, we had a great time and we hope the people who came enjoyed the session. The slides are available below, as well as the light painting pictures you made! I am probably going to reuse the session for <a href="http://tinkersoc.org">TinkerSoc</a>&nbsp;at some point so please leave any feedback you have in the comments with any way I can improve the talk.<br />
<!--
<div style="margin-left: auto; margin-right: auto;"><iframe src="https://docs.google.com/presentation/embed?id=18HSXwRzkPqcFuWYs0OLUbcaaaX09A4hdwkVkwktZ00o&amp;start=false&amp;loop=false&amp;delayms=3000" frameborder="0" width="480" height="389"></iframe>&#8211;><br />
Light Painting photos:
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2315/' title='DSC_2315'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2315-150x150.jpg" class="attachment-thumbnail" alt="DSC_2315" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2314/' title='DSC_2314'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2314-150x150.jpg" class="attachment-thumbnail" alt="DSC_2314" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2313/' title='DSC_2313'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2313-150x150.jpg" class="attachment-thumbnail" alt="DSC_2313" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2312/' title='DSC_2312'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2312-150x150.jpg" class="attachment-thumbnail" alt="DSC_2312" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2310/' title='DSC_2310'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2310-150x150.jpg" class="attachment-thumbnail" alt="DSC_2310" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2309/' title='DSC_2309'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2309-150x150.jpg" class="attachment-thumbnail" alt="DSC_2309" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2307/' title='DSC_2307'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2307-150x150.jpg" class="attachment-thumbnail" alt="DSC_2307" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2306/' title='DSC_2306'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2306-150x150.jpg" class="attachment-thumbnail" alt="DSC_2306" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2305/' title='DSC_2305'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2305-150x150.jpg" class="attachment-thumbnail" alt="DSC_2305" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2304/' title='DSC_2304'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2304-150x150.jpg" class="attachment-thumbnail" alt="DSC_2304" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/dsc_2303/' title='DSC_2303'><img width="150" height="150" src="http://canthack.org/uploads/DSC_2303-150x150.jpg" class="attachment-thumbnail" alt="DSC_2303" /></a>
<a href='http://canthack.org/2012/06/canthack-presents-at-digibury/d-deeson-logo-3/' title='d-deeson-logo'><img width="149" height="134" src="http://canthack.org/uploads/d-deeson-logo2.png" class="attachment-thumbnail" alt="Digibury" /></a>
</p>
<p>As a bonus, if you use Google Docs and need to draw circuits I have a bunch of symbols avaliable for use under a Creative commons CC BY-SA 3.0 licence <a href="https://docs.google.com/drawings/d/1tH4V_zqeZ3aZEe9aayNFZU6nGMyJfnKfzqG1veulIwc/edit">here!</a></p>
</div>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/sGIQmkGABSM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/06/canthack-presents-at-digibury/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/06/canthack-presents-at-digibury/</feedburner:origLink></item>
		<item>
		<title>hgdc-x 0.5.3</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/Ijnx3Rsnr1c/</link>
		<comments>http://canthack.org/2012/05/hgdc-x-0-5-3/#comments</comments>
		<pubDate>Tue, 22 May 2012 08:57:18 +0000</pubDate>
		<dc:creator>Tris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1228</guid>
		<description><![CDATA[I know it&#8217;s been quite a while since the 0.5.3 release of the hgd server, but I finally got around to completing the latest version of hgdc-x, the cross-platform GUI hgd client. It is compatible with any of the 0.5.x &#8230; <a href="http://canthack.org/2012/05/hgdc-x-0-5-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I know it&#8217;s been quite a while since the 0.5.3 release of the hgd server, but I finally got around to completing the latest version of hgdc-x, the cross-platform GUI hgd client. It is compatible with any of the 0.5.x versions of the server.</p>
<div id="attachment_1229" class="wp-caption alignright" style="width: 310px"><a href="http://canthack.org/2012/05/hgdc-x-0-5-3/hgdcx_mac/" rel="attachment wp-att-1229"><img class="size-medium wp-image-1229" title="hgdc-x 0.5.3" src="http://canthack.org/uploads/hgdcx_mac-300x234.png" alt="hgdc-x 0.5.3" width="300" height="234" /></a><p class="wp-caption-text">hgdc-x 0.5.3</p></div>
<p>Changes include numerous bugfixes, a redesigned GUI and a better user experience. There are pre-compiled binary versions for Linux, Windows and Mac (Universal binary for Tiger 10.4 and later).</p>
<p>Get it from <a title="hgdc-x website" href="http://hgdcx.canthack.org" target="_blank">http://hgdcx.canthack.org</a></p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/Ijnx3Rsnr1c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/05/hgdc-x-0-5-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/05/hgdc-x-0-5-3/</feedburner:origLink></item>
		<item>
		<title>#WolfBot</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/MFWmQ5Xloa0/</link>
		<comments>http://canthack.org/2012/05/wolfbot/#comments</comments>
		<pubDate>Fri, 18 May 2012 09:54:25 +0000</pubDate>
		<dc:creator>Mex</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1193</guid>
		<description><![CDATA[I would like to introduce WolfBot, a new IRC bot that moderates a game of Werewolf. Werewolf is a social game in the ilk of Mafia and has become very popular at un-conferences such as BarCamps. There are many rule &#8230; <a href="http://canthack.org/2012/05/wolfbot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://canthack.org/uploads/wolves.jpg" rel="fancybox-1193"><img src="http://canthack.org/uploads/wolves-227x300.jpg" alt="" title="wolves" width="227" height="300" class="alignright size-medium wp-image-1205" /></a>I would like to introduce WolfBot, a new <dfn title="Internet Relay Chat">IRC</dfn> bot that moderates a game of Werewolf. </p>
<p>Werewolf is a social game in the ilk of <a href="http://en.wikipedia.org/wiki/Mafia_(party_game)">Mafia</a> and has become very popular at un-conferences such as <a href="http://barcamp.org/">BarCamps</a>.  There are many rule variants of Werewolf, but this bot probably most closely matches the rules set out in <a href="http://boardgamegeek.com/boardgame/38159/ultimate-werewolf-ultimate-edition">ultimate werewolf</a>, with some changes to make it fit better to IRC, the voting system is slightly different for example. </p>
<p>WolfBot is based on the popular <a href="http://www.jibble.org/pircbot.php">PircBot</a> Java IRC framework. It is a collabrative project between me, <a href="http://www.twigathy.com/">Twigathy</a>, and a number of other people. The code is avaliable on github (<a href="https://github.com/tpcarlson/Werewolf/network">tpcarlson/Werewolf</a>).</p>
<p>WolfBot is currently playable in <a href="irc://irc.boredicons.com/%23wolfbot">#wolfbot</a> on the <a href="irc://irc.boredicons.com">boredicons irc network</a> and. Use the command &#8220;!join&#8221; to start playing (please note if there is a game in progress you will have to wait for it to finish before you will get voice in the channel).</p>
<p><em>This post is a quick follow up to a talk I gave at <a href="http://www.barcampcanterbury.com/">BarCamp Canterbury</a>, my <a href="https://docs.google.com/presentation/d/1pnGBkSBr3OC8jpYgqtl3JOAdY01jGSvTPI22IrSMOak/edit">original slides are available</a>.</em></p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/MFWmQ5Xloa0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/05/wolfbot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/05/wolfbot/</feedburner:origLink></item>
		<item>
		<title>BarCamp Canterbury recap.</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/bxsMbEsezfI/</link>
		<comments>http://canthack.org/2012/05/barcamp-canterbury-recap/#comments</comments>
		<pubDate>Tue, 08 May 2012 15:55:28 +0000</pubDate>
		<dc:creator>Mex</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1169</guid>
		<description><![CDATA[Updates on the blog have been a bit thin and far between recently, but that&#8217;s because a lot of us have been busy organising BarCamp Canterbury. The event was run a couple of weekends ago (Saturday 28th and Sunday 29th &#8230; <a href="http://canthack.org/2012/05/barcamp-canterbury-recap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="attachment_1180" class="wp-caption alignright" style="width: 190px"><a href="http://canthack.org/uploads/bcc2.jpg" rel="fancybox-1169"><img class="size-full wp-image-1180" title="BarCamp Canterbury 2012" src="http://canthack.org/uploads/bcc2.jpg" alt="Barcamp Canterbury Logo" width="180" height="176" /></a><p class="wp-caption-text">BarCamp Canterbury 2012</p></div>
<p>Updates on the blog have been a bit thin and far between recently, but that&#8217;s because a lot of us have been busy organising BarCamp Canterbury. The event was run a couple of weekends ago (Saturday 28th and Sunday 29th of April 2012) and thankfully all our preparation was worth it as the event went without a (noticeable) hitch.</p>
<p>I thought it would be helpful to share what we have learned, for any one else thinking of organising a BarCamp.</p>
<h3>Tickets</h3>
<ul>
<li>Use <a href="http://www.eventbrite.co.uk/">EventBrite</a>, their service is brilliant, and made keeping track of people/tickets sold a piece of cake.</li>
<li>Oversubscribe. We have a 30% no show. If your limit is 100 people you can probably issue 120+ tickets safely.</li>
</ul>
<h3>Food and Drink</h3>
<ul>
<li>Fifty people got through 140 pints of Ale and 40 pints of cider.</li>
<li><a href="http://www2.sainsburys.co.uk/food/delipartyplatter/platters/instore-party-platter-service.htm">Sainsburys do Catering!</a></li>
<li>People get grumpy without coffee.</li>
</ul>
<h3>Sponsorship</h3>
<ul>
<li>Follow up with sponsors. Some companies only replied to second email.</li>
<li>Make it clear what you expect from your sponsors, and what they should expect from you.</li>
<li>Ask for &#8220;stuff&#8221; many companies won&#8217;t give money but they will hand out freebies.</li>
</ul>
<p>I hope this helps you if your thinking of running a BarCamp or similar event yourself.  Please leave a comment if you think of anything else that would be helpful.</p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/bxsMbEsezfI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/05/barcamp-canterbury-recap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/05/barcamp-canterbury-recap/</feedburner:origLink></item>
		<item>
		<title>A brief history of my Zipit Z2</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/IwRtMKnn1Js/</link>
		<comments>http://canthack.org/2012/04/a-brief-history-of-my-zipit-z2/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 11:50:27 +0000</pubDate>
		<dc:creator>shaun</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1122</guid>
		<description><![CDATA[For a while now I have been playing with the idea of building my version of the perfect alarm clock. My original ideas involved the Arduino and the Arduino Ethernet Shield. This all changed when I was introduced to the &#8230; <a href="http://canthack.org/2012/04/a-brief-history-of-my-zipit-z2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>For a while now I have been playing with the idea of building my version of the perfect alarm clock. My original ideas involved the Arduino and the Arduino Ethernet Shield. This all changed when I was introduced to the Zipit Z2.</p>
<p>Unlike the Arduino, it comes with an integrated keyboard and <del>chair</del> screen. For further hardware specifications <a title="Hardware Specs" href="http://www.mozzwald.com/zipitz2" target="_blank">click here.</a></p>
<p>My investigations of the Z2 led me to Mozzwald&#8217;s site which contains most of what I wanted to know. There are Zipit guides on U-Booting, Ubuntu, etc.</p>
<p>While my Zipit was winging its way from the USA, I started work on my clock application. Using the <a href="www.lazarus.freepascal.org" target="_blank">Lazarus IDE</a> and the <a href="http://www.freepascal.org/" target="_blank">Free Pascal Compiler</a> I created the first draft. Setting up the<a href="http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM" target="_blank"> cross compile environment</a> was straight forward and I soon had a binary ready for the Zipit&#8217;s ARM v5 compatible processor.</p>
<p>After a week of anticipation, I was finally introduced to my Zipit at the Rochester Can&#8217;t Hack meet. I started by flashing the Z2 with a U-Boot image I <a title="FlashStock v0.1.2 Jan-27-2012 [with openwrt recoveryos]" href="http://www.mozzwald.com/zipit/stock/Flashstockv0.1.2_openwrt.zip" target="_blank">downloaded</a>. To get the image flashed I booted into the Z2&#8242;s stock OS and selected the reset to defaults option.</p>
<p>Using Mozzwald&#8217;s <a title="z2sid v7 RC1" href="http://zipit.markamber.co/z2sidX_v7_rc1.tar.bz2" target="_blank">z2sidX image</a> I booted into Debian Sid. Following this was a back and forth between the Can&#8217;t Hack group about keyboard layout. Needless to say I was a very happy to see X start and spent a few minutes playing Free Doom.</p>
<p>For the past few days I have been perfecting the sid image I am using, including changes that allow for better integration of my Clock application.</p>
<p>Some notes on my changes:</p>
<p>Installed avahi-daemon openssh-clients nfs-common</p>
<p>For the dbus install (avahi-deamon dependancy) I selected not to overwrite the dbus config file with the package maintainer&#8217;s version. This caused issues with dbus failing to load. To fix this I purged dbus and reinstalled avahi-daemon.</p>
<p>Something I noted was the MAC address used by Debian Sid was not the MAC address printed on a sticker found under the battery. To fix this I edited /etc/network/interfaces.</p>
<p>user@zipit:~$ cat /etc/network/interfaces<br />
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or<br />
# /usr/share/doc/ifupdown/examples for more information.<br />
auto wlan0<br />
iface wlan0 inet dhcp<br />
hwaddress ether 00:12:34:56:78:ab</p>
<p>To change the host name to &#8220;zipit&#8221; I used the hostname command and also edited /etc/hostname and the /etc/hosts file.</p>
<p>Note: I installed avahi-daemon to enable machines on the local network to find the Zipit on the network using the .local domain. i.e. ping zipit.local will resolve. This is why /etc/hosts contains the information below.</p>
<p>127.0.0.1 localhost.localdomain localhost zipit</p>
<p>I then configured samba by editing  /etc/samba/smb.conf and used pdbedit to add a samba user login.<br />
# pdbedit -a -u user</p>
<p>I have noted that the EWOC script provided on the z2sidX image has trouble configuring the wireless network when SSID&#8217;s contain spaces. I have fixed this issue and informed Mozzwald.</p>
<p>My work then shifted to my Clock application. I started adding features including a five day weather report, a week day alarm, timer and reminders. Another feature I wanted to add, was the ability to play music from a NFS share. I tested mpg123 and found that mp3&#8242;s played well when they were on the local flash drive but streaming off the NFS share was unworkable due to stuttering.</p>
<p>After adding the MP3 playback feature to Clock, I purchased a <a title="32GB Micro SDHC" href="http://www.play.com/Mobiles/Mobile/4-/14279098/-/Product.html" target="_blank">32GB Sandisk Micro SDHC</a> card to use for Zipit music storage. To my disappointment the card did not work with the Zipit Z2. The boot precess ended with I/O errors.</p>
<p>It seemed my dreams of adding music to the Zipit were in tatters, but then the word &#8220;buffers&#8221; popped into my head. When mpg123 plays back MP3&#8242;s on the Zipit it only uses about 15% of the processor&#8217;s capabilities. The stuttering had to be related to networking because local playback worked, the solution had to be buffering.</p>
<p>I changed the mpg123 command line for Clock to include a 2MB output buffer. Problem solved.</p>
<div id="attachment_1132" class="wp-caption aligncenter" style="width: 310px"><a href="http://canthack.org/2012/04/a-brief-history-of-my-zipit-z2/clock-screenshot-2/" rel="attachment wp-att-1132"><img class="size-medium wp-image-1132" src="http://canthack.org/uploads/Clock-Screenshot1-300x225.png" alt="" width="300" height="225" /></a><p class="wp-caption-text">Clock&#39;s main window showing five day weather report.</p></div>
<p>The original idea was to open-source Clock under GPL, the problem is that the site I scrape weather information from prohibits scraping. Perhaps the solution is to get information from another source. I am willing to implement this alternative and release the source and binary for Clock. Suggestions are welcome.</p>
<p>My remaining issues include a long reboot time which I believe is related to the error &#8211; libertas failed to find firmware.</p>
<p>On boot up I get the error &#8220;boot wlan0 link not ready&#8221; from addrconf<br />
and 200 second boot time.</p>
<p>Thanks go to Tristan and the Can&#8217;t Hack group, Mozzwald and all those that contributed to z2sid, Lazarus, FPC, Linux, GNU, etc &#8230;</p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/IwRtMKnn1Js" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/04/a-brief-history-of-my-zipit-z2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/04/a-brief-history-of-my-zipit-z2/</feedburner:origLink></item>
		<item>
		<title>Hama bead madness…</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/bf9czI4mrU4/</link>
		<comments>http://canthack.org/2012/03/hama-bead-madness/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 19:30:33 +0000</pubDate>
		<dc:creator>Han</dc:creator>
				<category><![CDATA[Crafting]]></category>
		<category><![CDATA[craft]]></category>
		<category><![CDATA[fuse beads]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[Hama bead]]></category>
		<category><![CDATA[perler]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1107</guid>
		<description><![CDATA[Well it&#8217;s been a long time since an update on hackery, and a lot has happened! So here goes, an attempt at covering the last 3 or so months&#8230; I found a new hobby! Crafty but not too difficult (unlike &#8230; <a href="http://canthack.org/2012/03/hama-bead-madness/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Well it&#8217;s been a long time since an update on hackery, and a lot has happened! So here goes, an attempt at covering the last 3 or so months&#8230;</p>
<p>I found a new hobby! Crafty but not too difficult (unlike sewing/knitting/jewellery making malarkey). I&#8217;m not very patient, and I find fiddly things too&#8230;well&#8230;fiddly! So I&#8217;ve found something on my level. According to Wikipedia, <em>&#8220;plastic fusible beads are also known as Perler Beads, or called &#8220;melty beads&#8221; by young children. These small colorful beads can be placed on a solid plastic-backed peg array to form designs and then melted together with a clothes iron; alternatively, they can be strung into necklaces or bracelets, or woven into keychains. Fusible beads come in many colors and degrees of transparency/opacity, including varieties that glow in the dark or have internal glitter; peg boards come in various shapes and several geometric patterns.&#8221;</em></p>
<p>The main thing to note here is that this is usually a hobby for children. This means that it&#8217;s not fiddly (yippee!) and you don&#8217;t need to be very patient (hooray!!) so it suits me down to the ground.</p>
<p>I started off making coasters, by copying patterns I found online and filling in the space around the pattern and making it into a square. I then began going &#8220;freestyle&#8221; and making up patterns, as well as interpreting cross-stitch patterns to make other designs. Then I came across how much 8-bit art has been made with these beads. There&#8217;s an amazing amount!</p>
<div id="attachment_1109" class="wp-caption aligncenter" style="width: 310px"><a href="http://canthack.org/2012/03/hama-bead-madness/dscf2455/" rel="attachment wp-att-1109"><img class="size-medium wp-image-1109 " title="Some of my hama bead creations" src="http://canthack.org/uploads/DSCF2455-300x168.jpg" alt="Some hama bead creations" width="300" height="168" /></a><p class="wp-caption-text">Some of my hama bead creations</p></div>
<p>I then had a go at turning my creations into necklaces, brooches and magnets, which worked well. I have since sold some of them at various craft fairs, and have plans for giant 8-bit art as well as more different types of wearable geekery <img src='http://canthack.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/bf9czI4mrU4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2012/03/hama-bead-madness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://canthack.org/2012/03/hama-bead-madness/</feedburner:origLink></item>
		<item>
		<title>RickRolling The Trolls</title>
		<link>http://feedproxy.google.com/~r/CantHackWontHack/~3/l1FDuNpHE6o/</link>
		<comments>http://canthack.org/2011/12/rickrolling-the-trolls/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 20:24:57 +0000</pubDate>
		<dc:creator>Mex</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://canthack.org/?p=1079</guid>
		<description><![CDATA[This post is inspired by a video a friend (Reashlin) sent to me (embedded below). In their company it is policy to lock computers when users are away from them, and if a machine is left unlocked it is customary &#8230; <a href="http://canthack.org/2011/12/rickrolling-the-trolls/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://canthack.org/uploads/rick.jpg" rel="fancybox-1079"><img src="http://canthack.org/uploads/rick-300x150.jpg" alt="" title="rickroll" width="300" height="150" class="alignright size-medium wp-image-1100" /></a>This post is inspired by a video a friend (Reashlin) sent to me (embedded below). In their company it is policy to lock computers when users are away from them, and if a machine is left unlocked it is customary to tell the supervisor in a &#8220;friendly&#8221; email from the account of the person in who left their machine unlocked.</p>
<p>Knowing this, Reashlin&#8217;s colleague wrote a C# application that leaves the computer running whatever it was before until the mouse is moved, when it switches to a full screen RickRoll video with the machine locked.</p>
<p>A whole C# application to do this seemed a bit much, so I distilled the whole thing into the following 4 line bash script. The script is quite simple. It simply waits for input from /dev/input/mice then spawns full screen mplayer in the background, and xtrlock in the foreground.  xtrlock is a handy little program that captures all keyboard/mice events until the users password is entered, a bit like a transparent xlock.  There is an issue with this script if the user is proficient in keyboard short-cuts they might never touch the mouse&#8230; but that&#8217;s something for another day.</p>
<p>If the others at canthack.org try and do <a href="http://canthack.org/uploads/aliastroll.jpg" rel="fancybox-1079">this</a> to me again they will be getting a surprise (well not that much; they do read this after all).</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
sudo cat /dev/input/mice | read -n 1
mplayer -fs rick.flv &amp;
xtrlock
</pre>
<p><object type="application/x-shockwave-flash" width="640" height="542" data="http://getembedplus.com/embedplus.swf" id="ep10421"><param value="http://getembedplus.com/embedplus.swf" name="movie" /><param value="high" name="quality" /><param value="transparent" name="wmode" /><param value="always" name="allowscriptaccess" /><param value="true" name="allowFullScreen" /><param name="flashvars" value="ytid=Bps8yTw0W5c&#038;height=510&#038;width=640&#038;react=1&#038;sweetspot=1&&amp;rs=w" /><iframe class="cantembedplus" title="YouTube video player" width="640" height="510" src="http://www.youtube.com/embed/Bps8yTw0W5c?fs=1&#038;" frameborder="0" allowfullscreen></iframe><br />
</object><br />
<!--[if lte IE 6]><br />
<style type="text/css">.cantembedplus{display:none;}</style>
<p><![endif]--></p>
<img src="http://feeds.feedburner.com/~r/CantHackWontHack/~4/l1FDuNpHE6o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://canthack.org/2011/12/rickrolling-the-trolls/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://canthack.org/2011/12/rickrolling-the-trolls/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 1598/1800 objects using disk: basic

 Served from: canthack.org @ 2013-04-25 19:15:59 by W3 Total Cache -->
