<?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"
	>

<channel>
	<title>Strangeparty</title>
	<atom:link href="http://www.strangeparty.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strangeparty.com</link>
	<description>A blog about life, linux and photography</description>
	<pubDate>Wed, 03 Sep 2008 18:20:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Married</title>
		<link>http://www.strangeparty.com/2008/09/03/married/</link>
		<comments>http://www.strangeparty.com/2008/09/03/married/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 18:20:19 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=383</guid>
		<description><![CDATA[Just a quick post to say I am now a married man, and have just got back from my honeymoon.
I have been away long enough to have pretty much forgotten what my day job is&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to say I am now a married man, and have just got back from my honeymoon.</p>
<p>I have been away long enough to have pretty much forgotten what my day job is&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/09/03/married/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Douglas Adams on Australians</title>
		<link>http://www.strangeparty.com/2008/07/29/douglas-adams-on-australians/</link>
		<comments>http://www.strangeparty.com/2008/07/29/douglas-adams-on-australians/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 20:26:36 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Humor]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=381</guid>
		<description><![CDATA[I stumbled across a quote from Douglas Adams on Australians which I thought was amusing, and probably very accurate:
As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a dour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled across a quote from Douglas Adams on Australians which I thought was amusing, and probably very accurate:</p>
<blockquote><p>As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a dour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American. Douglas Adams - English</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/07/29/douglas-adams-on-australians/feed/</wfw:commentRss>
		</item>
		<item>
		<title>There&#8217;s always time for a photo</title>
		<link>http://www.strangeparty.com/2008/07/13/theres-always-time-for-a-photo/</link>
		<comments>http://www.strangeparty.com/2008/07/13/theres-always-time-for-a-photo/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 19:53:06 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=377</guid>
		<description><![CDATA[I have been really busy recently, but have taken some photos over the past few weeks, so thought I&#8217;d share a few of them
This little toadstool was taken with a flash each side to light it up, triggered with cactus radio triggers (flashes set to about 1/16th power i think, and quite a small aperture [...]]]></description>
			<content:encoded><![CDATA[<p>I have been really busy recently, but have taken some photos over the past few weeks, so thought I&#8217;d share a few of them</p>
<p>This little toadstool was taken with a flash each side to light it up, triggered with cactus radio triggers (flashes set to about 1/16th power i think, and quite a small aperture on the macro lens)</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2661257802/"><img src="http://farm4.static.flickr.com/3062/2661257802_000cdb94e8.jpg" border="0" alt="Toadstool" width="333" height="500" /></a></p>
<p>I have also been taking some photos of a friends&#8217; band <a href="http://www.myspace.com/theriversofsound">The rivers of sound</a></p>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2654033696/"><img src="http://farm4.static.flickr.com/3099/2654033696_1363f0fca0.jpg" border="0" alt="Rivers Of Sound" width="500" height="333" /></a></div>
<div>
</div>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2653207171/"><img src="http://farm4.static.flickr.com/3210/2653207171_644127f32d.jpg" border="0" alt="Rivers Of Sound" width="500" height="266" /></a></div>
<div>
</div>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2653208257/"><img src="http://farm4.static.flickr.com/3199/2653208257_3573c2816e.jpg" border="0" alt="Rivers Of Sound" width="333" height="500" /></a></div>
<div>
</div>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2629306212/"><img src="http://farm4.static.flickr.com/3125/2629306212_340d49747e.jpg" border="0" alt="Rivers Of Sound" width="333" height="500" /></a></div>
<div>
</div>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2629306560/"><img src="http://farm4.static.flickr.com/3161/2629306560_49b4f2944f.jpg" border="0" alt="Rivers Of Sound" width="500" height="333" /></a></div>
<div>
</div>
<div><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2628480953/"><img src="http://farm4.static.flickr.com/3097/2628480953_05235051cc.jpg" border="0" alt="Rivers Of Sound" width="500" height="333" /><br />
</a></div>
<p>Also, following <a href="http://www.strangeparty.com/2008/06/22/recent-photos/#comment-6582">comments</a> on a recent post I decided to get out in the garden and try some photos of the insect life that lives there. Most of these had an off-camera flash on E-TTL auto, though manual actually works better with a little practice (if you get the exposure wrong, the flies are gone before you get a second chance (probably cooked by the power of the flash that close) so E-TTL is easier to start with)</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2632024640/"><img src="http://farm4.static.flickr.com/3081/2632024640_676b67223c.jpg" border="0" alt="Fly" width="500" height="333" /></a></p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2631201701/"><img src="http://farm4.static.flickr.com/3010/2631201701_7e250ff5a0.jpg" border="0" alt="Fly" width="333" height="500" /></a></p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2632023314/"><img src="http://farm4.static.flickr.com/3260/2632023314_f9dbe96603.jpg" border="0" alt="Fly" width="333" height="500" /></a></p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2632024298/"><img src="http://farm4.static.flickr.com/3045/2632024298_df37a1356b.jpg" border="0" alt="Spider" width="500" height="333" /></a></p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2632023694/"><img src="http://farm4.static.flickr.com/3179/2632023694_3a8d8845b3.jpg" border="0" alt="Spider" width="500" height="333" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/07/13/theres-always-time-for-a-photo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Recent Photos</title>
		<link>http://www.strangeparty.com/2008/06/22/recent-photos/</link>
		<comments>http://www.strangeparty.com/2008/06/22/recent-photos/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 20:08:00 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=375</guid>
		<description><![CDATA[I thought it&#8217;s about time I mentioned the photos I have been taking recently
Some are random (as seen below)

I also snapped a close-up of some ants and other insects (aphids?)) eating at the stem of my sunflower. I was quite surprised at the detail I got, though admittedly it was with my ef-s 60mm macro [...]]]></description>
			<content:encoded><![CDATA[<p>I thought it&#8217;s about time I mentioned the photos I have been taking recently</p>
<p>Some are random (as seen below)</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2601165596/"><img src="http://farm4.static.flickr.com/3180/2601165596_b295faf28f.jpg" border="0" alt="img_14884" width="333" height="500" /></a></p>
<p>I also snapped a close-up of some ants and other insects (aphids?)) eating at the stem of my sunflower. I was quite surprised at the detail I got, though admittedly it was with my ef-s 60mm macro lens</p>
<p><a class="tt-flickr tt-flickr-Large" href="http://www.flickr.com/photos/antonpiatek/2601173604/"><img src="http://farm4.static.flickr.com/3008/2601173604_78694cba0d.jpg" width="500" height="333" alt="img_15206" /></a></p>
<p>I also got a nice shot of a bee while on a walk one lunchtime at work</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2600341757/"><img src="http://farm4.static.flickr.com/3240/2600341757_eabfb3e37f.jpg" border="0" alt="img_14933" width="333" height="500" /></a></p>
<p>And then there is my whole set of photos from Hinton Ampner, which I realised I didn&#8217;t have the old ones from last year up, so theres a fair few in there including a whole pile trying to catch a bee flying. (click on the photo below to see the whole set)</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/32898341@N00/sets/72157605749272856/"><img src="http://farm4.static.flickr.com/3266/2600218397_d55ea83108.jpg" border="0" alt="Hinton Ampner" width="333" height="500" /></a></p>
<p>And I recently took photos of the Hursley Model Railway (again click on the image below to see the whole set). Some of these were done with an off-camera flash with a coloured gel, which produced some interesting effects, though not very life-like.</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/32898341@N00/sets/72157605748988988/"><img src="http://farm4.static.flickr.com/3088/2601001126_4e87183ffe.jpg" border="0" alt="Hursley Model Railway" width="500" height="333" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/22/recent-photos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bank scams by phone</title>
		<link>http://www.strangeparty.com/2008/06/15/bank-scams-by-phone/</link>
		<comments>http://www.strangeparty.com/2008/06/15/bank-scams-by-phone/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 17:08:22 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Humor]]></category>

		<category><![CDATA[comic]]></category>

		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=374</guid>
		<description><![CDATA[UserFriendly has 2 fabulous comic strips on Bank scams by phone (the kind where someone phones you up and pretends to be your bank in order to get secure information by asking you to &#8220;confirm&#8221; some details)
Cartoon 1, Cartoon 2
Its a shame that they don&#8217;t let you hotlink the images like xkcd does
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.userfriendly.org/">UserFriendly</a> has 2 fabulous comic strips on Bank scams by phone (the kind where someone phones you up and pretends to be your bank in order to get secure information by asking you to &#8220;confirm&#8221; some details)<br />
<a href="http://ars.userfriendly.org/cartoons/?id=20080612">Cartoon 1</a>, <a href="http://ars.userfriendly.org/cartoons/?id=20080613">Cartoon 2</a></p>
<p>Its a shame that they don&#8217;t let you hotlink the images like <a href="http://xkcd.org/">xkcd</a> does</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/15/bank-scams-by-phone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>BMW Gina</title>
		<link>http://www.strangeparty.com/2008/06/11/bmw-gina/</link>
		<comments>http://www.strangeparty.com/2008/06/11/bmw-gina/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 19:12:14 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=373</guid>
		<description><![CDATA[Theres an interesting buzz at the moment on a new BMW concept car which has a shell made of some sort of rubber fabric.
Theres a short articlt on Top Gear
And theres a wonderful video on Youtube

]]></description>
			<content:encoded><![CDATA[<p>Theres an interesting buzz at the moment on a new BMW concept car which has a shell made of some sort of rubber fabric.</p>
<p><a href="http://www.topgear.com/content/news/stories/2936/">Theres a short articlt on Top Gear</a></p>
<p>And theres a wonderful video on Youtube</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/kTYiEkQYhWY"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/kTYiEkQYhWY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/11/bmw-gina/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress, k2, openid</title>
		<link>http://www.strangeparty.com/2008/06/05/wordpress-k2-openid/</link>
		<comments>http://www.strangeparty.com/2008/06/05/wordpress-k2-openid/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 11:47:19 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[openid]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=370</guid>
		<description><![CDATA[I use the k2 theme for this wordpress blog. I used to write my own, but k2 is much, much neater. I also use the openid plugin for wordpress. (I wrote about openid&#8217;s before)
To get the two to play together, you need to turn off live commenting.
In my case, as my blog is also my [...]]]></description>
			<content:encoded><![CDATA[<p>I use the <a href="http://code.google.com/p/kaytwo/">k2 theme</a> for this wordpress blog. I used to write my own, but k2 is much, much neater. I also use the <a href="http://wordpress.org/extend/plugins/openid/">openid plugin</a> for wordpress. (<a href="http://www.strangeparty.com/2008/03/28/openid/">I wrote about openid&#8217;s before</a>)</p>
<p>To get the two to play together, you need to turn off live commenting.</p>
<p>In my case, as my blog is also my openid url (see this <a href="http://www.intertwingly.net/blog/2007/01/03/OpenID-for-non-SuperUsers">tutorial in delegating your open id</a> if you want to use your blog or website as your openid url, and any provider), I had to add some code the the <a href="http://code.google.com/p/kaytwo/wiki/K2CSSandCustomCSS">k2 style&#8217;s functions.php</a></p>
<pre>add_action('wp_head', 'custom_header');

function custom_header () {
        ?&gt;
        &lt;link rel="openid.server" href="...openid provider url..."/&gt;
        &lt;link rel="openid.delegate" href="...openid provider url..."/&gt;
        &lt;?php
}</pre>
<p>Now you have your own blog as your openid url, and your blog accepts openid&#8217;s for comments with the k2 theme <img src='http://www.strangeparty.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/05/wordpress-k2-openid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Decisive Photograper - Bert Stephani</title>
		<link>http://www.strangeparty.com/2008/06/03/the-decisive-photograper-bert-stephani/</link>
		<comments>http://www.strangeparty.com/2008/06/03/the-decisive-photograper-bert-stephani/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 11:59:51 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=369</guid>
		<description><![CDATA[Bert Stephani (Confessions of a Photographer) has done two very interesting posts as part of a workshop he ran titled  &#8220;The Decisive Photograper&#8221; - Live Shoot Outdoor and Live Shoot Indoor make for fantastic reading if you want to know more about balancing a portable flash with natural light for that perfect portrait.
I have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bertstephani.com/blog/?p=66">Bert Stephani (</a><a href="http://bertstephani.com/blog/?p=66">Confessions of a Photographer)</a><a href="http://bertstephani.com/blog/?p=66"></a> has done two very interesting posts as part of a workshop he ran titled  &#8220;The Decisive Photograper&#8221; - <a href="http://bertstephani.com/blog/?p=66">Live Shoot Outdoor</a> and <a href="http://bertstephani.com/blog/?p=65">Live Shoot Indoor</a> make for fantastic reading if you want to know more about balancing a portable flash with natural light for that perfect portrait.</p>
<p>I have bee following Bert&#8217;s blog for a while now, and it really is fantastic - I strongly recommend reading through his archive, particularly for the videos he&#8217;s done during shoots.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/03/the-decisive-photograper-bert-stephani/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Petition to reduce fuel duty</title>
		<link>http://www.strangeparty.com/2008/06/01/petition-to-reduce-fuel-duty/</link>
		<comments>http://www.strangeparty.com/2008/06/01/petition-to-reduce-fuel-duty/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 18:52:54 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=371</guid>
		<description><![CDATA[I suppose it was only a matter of time given the current prices of petrol in the UK
Petition to: Reduce Fuel duty to bring fuel prices back to an acceptable level [petition.pm.gov]

]]></description>
			<content:encoded><![CDATA[<p>I suppose it was only a matter of time given the current prices of petrol in the UK<a href="http://petitions.pm.gov.uk/Lowerduty30/"><br />
Petition to: Reduce Fuel duty to bring fuel prices back to an acceptable level</a> [petition.pm.gov]<a href="http://petitions.pm.gov.uk/Lowerduty30/"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/06/01/petition-to-reduce-fuel-duty/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PIC Microchip programming under debian</title>
		<link>http://www.strangeparty.com/2008/05/31/pic-microchip-programming-under-debian/</link>
		<comments>http://www.strangeparty.com/2008/05/31/pic-microchip-programming-under-debian/#comments</comments>
		<pubDate>Sat, 31 May 2008 14:12:16 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[16f690]]></category>

		<category><![CDATA[microchip]]></category>

		<category><![CDATA[pic]]></category>

		<category><![CDATA[programmer]]></category>

		<category><![CDATA[sdcc]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=330</guid>
		<description><![CDATA[A while ago I bought a PICkit2 programmer, including 16f690 PIC. I installed piklab and sdcc (in Debian repositories) and got it working pretty easily. I did play with the programmer that came with it (mplab, windows only), which upgraded my firmware. piklab cannot use the new firmware, so if you need to get an [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I bought a <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en023805">PICkit2 programmer</a>, including 16f690 PIC. I installed piklab and sdcc (in Debian repositories) and got it working pretty easily. I did play with the programmer that came with it (mplab, windows only), which upgraded my firmware. piklab cannot use the new firmware, so if you need to get an old firmware, then try the <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en023073">old firmware downloads page<br />
</a></p>
<p>There is quite a difference in programming between mplab and piklab. Although there is support for a large number of chips in piklab, they are not supported as well as mplab. The big problem is that in mplab most special bits (i.e. each bit for an output port, one per pin) have a defined name so you can set them on or off individually. Piklab on the other hand has support for only a few of these, so if you want to turn on a pin, you have to set a value on the whole port (byte). Saying that, I prefer the piklab editor as it seems to do a better job with syntax highlighting etc.</p>
<p>Below is some code examples to help you get started if you are finding the learning curve steep</p>
<p><span id="more-330"></span></p>
<p>Some macros that may be useful to put in a header file are</p>
<pre style="padding-left: 30px;">#define ZERO    0x00  // 0000 0000
#define BIT0    0x01  // 0000 0001
#define BIT1    0x02  // 0000 0010
#define BIT2    0x04  // 0000 0100
#define BIT3    0x08  // 0000 1000
#define BIT4    0x10  // 0001 0000
#define BIT5    0x20  // 0010 0000
#define BIT6    0x40  // 0100 0000
#define BIT7    0x80  // 1000 0000
// macros to manipulate the bits
//set bit Y on byte X
#define SET_BIT(x,y) (x |= y)
//unset bit Y on byte X
#define UNSET_BIT(x,y) (x &amp;= ~y)
//toggle bit Y on byte X
#define TOGGLE_BIT(x,y) (x ^= y)
//test bit Y is set on byte X
#define IS_BIT_SET(x,y)  (x &amp; y)</pre>
<p>These can make coding much easier, as then you can just worry about setting the bits and not about conversions to binary.</p>
<p>For anyone not sure how to get anything working, the following code will get you started with the PICKit2 development board and the included 16f690. This is the code to light up different LED&#8217;s on the test board depending on what the variable resistor is set to</p>
<pre style="padding-left: 30px;">/* Configuration bits */
typedef unsigned int word;
word at 0x2007 CONFIG = _INTRC_OSC_NOCLKOUT &amp; _WDT_OFF &amp; _PWRTE_OFF
  &amp; _MCLRE_OFF &amp; _CP_OFF &amp; _CPD_OFF &amp; _IESO_OFF &amp; _FCMEN_OFF &amp; _BOD_OFF ;

void main(){
  while(1==1){
  PORTA = 0;//?
  TRISA = BIT0; //Set RA0 input
  ANSEL = BIT0;//  Just RA0 is an Analog Input
  TRISC=0;//Set All PORTC as output

  ADCON0 = BIT0;  //  Turn on the ADC 0000 0001
                  //   Bit 7   - ADFM,Left Justified Sample (0)
                  //   Bit 6   - Use VDD (0)
                  //   Bit 5:2 - Select AN0 channel (0000)
                  //   Bit 1   - GO/DONE - set separately (0)
                  //   Bit 0   - Enable ADC (1)

  ADCON1 = BIT4;//Set AD Control 0001 0000
                // Bit 7   - res
                // Bit 6:4 - Select the Clock as Fosc/8 (001)
                // Bit 3:0 - res

  SET_BIT(ADCON0, BIT1);//GO/DONE to start conversion
  while( IS_BIT_SET( ADCON0,BIT1 ) ){}//Wait until sample is done

  //Set 4 highest bits to write direct to led's. Ignore 4 LSB
  //ADRESH contains bits 9:2 of result
  PORTC = ADRESH &gt;&gt; 4;
  /*
    //Could also make ACDValue only contain upper 4 bytes
    ADCValue &gt;&gt;= 4;
    ADCValue &amp;= (BIT0 | BIT1 | BIT2 | BIT3); // could also do this with 0xF0 (i think)
    //And then set only those bytes
    PORTC |= ADCValue
    //This would mean other bits of portC would still be same
  */
}
}</pre>
<p>The datasheets for the pics can be hard to get started with, so hopefully that helps a bit. The examples I saw for doing similar things were ridiculously complicated and without good reason. Of course this code is specific to the 16f690, but it should be easy enough to convert.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/31/pic-microchip-programming-under-debian/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPod Classic with Amarok on Linux</title>
		<link>http://www.strangeparty.com/2008/05/29/ipod-classic-with-amarok-on-linux/</link>
		<comments>http://www.strangeparty.com/2008/05/29/ipod-classic-with-amarok-on-linux/#comments</comments>
		<pubDate>Thu, 29 May 2008 12:02:48 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Music]]></category>

		<category><![CDATA[amarok]]></category>

		<category><![CDATA[ipod]]></category>

		<category><![CDATA[programs]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=368</guid>
		<description><![CDATA[When I first bought my iPod classic, Amarok hadn&#8217;t yet got support for the new SHA1 hashing that was being done in the song db. Then it was only in cvs, and while I remember compiling from source I don&#8217;t think I ever got round to running that code.
Of course I found out the hard [...]]]></description>
			<content:encoded><![CDATA[<p>When I first bought my iPod classic, Amarok hadn&#8217;t yet got support for the new SHA1 hashing that was being done in the song db. Then it was only in cvs, and while I remember compiling from source I don&#8217;t think I ever got round to running that code.</p>
<p>Of course I found out the hard way that Amarok didn&#8217;t have support for my iPod, and nearly bricked the thing. Thankfully a windows box and iTunes could reset it.</p>
<p>I now have it working, however it took a little fiddling. If you are trying to get it working, you absolutely must read <a href="http://amarok.kde.org/wiki/Media_Device:IPod">http://amarok.kde.org/wiki/Media_Device:IPod</a> before starting, especially <a href="http://amarok.kde.org/wiki/Media_Device:IPod#My_iPod_does_not_show_any_music">#My_iPod_does_not_show_any_music</a>, as this explains how to set up the magic ID number. Unfortunately earlier pages didn&#8217;t say whether to add the <strong>0x</strong> in from of the ID, and I remember having lots of difficulty just with libgpod and gtkpod. While I am mentioning it, the versions you need for an iPod Classic are: Amarok 1.4.8 and libgpod 0.6.0</p>
<p>So you have them installed, and you want to get Amarok managing your iPod - Well, I plugged it in, amarok detected it popped up a window asking if it should mount it as an iPod. I said yes, copied some songs, ejected it and BANG! - My iPod wouldnt show any songs.</p>
<p>It seems that the data uploaded by iTunes isn&#8217;t the same as by Amarok, and the iPod doesnt like that. Deleting the contents of the iPod_Control folder from the iPod seemed to make Amarok and the iPod happy. Of course Amarok needed to recreate some folder structure, but it asked nicely. Also, if you do this, don&#8217;t forget you have to recreate your SysInfo file again before Amarok uploads any songs.</p>
<p>Anyway, I now have an iPod that I can upload to with Linux (which is a hell of a lot faster than iTunes - iTunes took about 30 hours to copy ~30G of music, Amarok took about 3 hours), podcasts work and even some cover art has been copied.</p>
<p>If you have any problems, you can reboot the iPod by holding the Menu and select button down together for a few seconds. If the songs list comes up blank, then you have something wrong and Amarok didnt write the hash correctlty - check the SysInfo file, delete all music from the iPod in Amarok, and copy a few test tracks, disconnect and check if you have it right.</p>
<p>You can also use the <em>Smart Playlists</em> to sync to the iPod - <em>Favourite tracks</em>, <em>Newest tracks</em> and <em>All Collection</em> are good ones to use. Of course you can create your own custom smart playlists too.</p>
<p>Best of all, Amarok is properly multi-threaded so I can copy my entire music collection to my iPod, while playing music and Amarok and writing blog posts - on windows syncing an iPod used to make the system struggle, and iTunes became rather unresponsive&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/29/ipod-classic-with-amarok-on-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mottisfont Abbey</title>
		<link>http://www.strangeparty.com/2008/05/27/mottisfont-abbey/</link>
		<comments>http://www.strangeparty.com/2008/05/27/mottisfont-abbey/#comments</comments>
		<pubDate>Tue, 27 May 2008 15:56:58 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=359</guid>
		<description><![CDATA[A few weeks ago, when the weather was excellent, I went to  Mottisfont Abbey trying to make the most of my National Trust membership. In case you want to go, the following point on the map is a little more accurate than on the national trust page (the rough coordinates from my gps module)
Unsurprisingly, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">A few weeks ago, when the weather was excellent, I went to  <a href="http://www.nationaltrust.org.uk/scripts/nthandbook.dll?PROPERTYID=225">Mottisfont Abbey</a> trying to make the most of my National Trust membership. In case you want to go, the<a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=Mottisfont+Abbey+%4051.037792,+-1.531706&amp;ie=UTF8&amp;z=16&amp;iwloc=addr"> following point on the map</a> is a little more accurate than on the national trust page (the rough coordinates from my gps module)</p>
<p style="text-align: left;">Unsurprisingly, I took a camera - This is what happened</p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2517032404/"><img src="http://farm4.static.flickr.com/3192/2517032404_9e8b50dd2b.jpg" border="0" alt="img_14556" width="500" height="333" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2516208135/"><img src="http://farm3.static.flickr.com/2117/2516208135_7c758a7dbc_m.jpg" border="0" alt="img_14533" width="240" height="160" /></a> <a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2517035046/"><img src="http://farm3.static.flickr.com/2007/2517035046_02b7b59cbe_m.jpg" border="0" alt="img_14597" width="240" height="160" /></a> <a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2516206415/"><img src="http://farm3.static.flickr.com/2069/2516206415_d4b7d3b1ee_m.jpg" border="0" alt="img_14507" width="240" height="160" /></a> <a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2516204447/"><img src="http://farm3.static.flickr.com/2002/2516204447_cc9fe59c55_m.jpg" border="0" alt="img_14476" width="240" height="160" /></a> <a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2516204657/"><img src="http://farm3.static.flickr.com/2272/2516204657_40346ff120.jpg" border="0" alt="img_14480" width="333" height="500" /><br />
</a><br />
<a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2516203053/"><img src="http://farm3.static.flickr.com/2245/2516203053_c56c303d7f_m.jpg" border="0" alt="img_14464" width="240" height="160" /><br />
</a><br />
<a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2516201141/"><img src="http://farm3.static.flickr.com/2389/2516201141_1ecf06a7e9.jpg" border="0" alt="crw_10217" width="500" height="333" /></a></p>
<p style="text-align: center;">The rest of the photos are in the set <a href="http://www.flickr.com/photos/antonpiatek/sets/72157605213072460/">Mottisfont Abbey on flickr</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/27/mottisfont-abbey/feed/</wfw:commentRss>
		</item>
		<item>
		<title>software raid1 and lvm on debian etch</title>
		<link>http://www.strangeparty.com/2008/05/24/software-raid1-and-lvm-on-debian-etch/</link>
		<comments>http://www.strangeparty.com/2008/05/24/software-raid1-and-lvm-on-debian-etch/#comments</comments>
		<pubDate>Sat, 24 May 2008 11:47:38 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[filesystems]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[lvm]]></category>

		<category><![CDATA[raid]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=350</guid>
		<description><![CDATA[Background
I have a fileserver box, which currently has 2&#215;200GB disks in lvm to give me a 400GB virtual disk. This arrangement gets good use of space, but if one disk has a failure, then the whole filesystem is trashed and cannot be recovered.
The solution is to start using raid. Before I go on, raid is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Background</strong></p>
<p>I have a fileserver box, which currently has 2&#215;200GB disks in lvm to give me a 400GB virtual disk. This arrangement gets good use of space, but if one disk has a failure, then the whole filesystem is trashed and cannot be recovered.</p>
<p>The solution is to start using raid. Before I go on, raid is not a backup solution. It cannot protect you from accidentally deleting all your files, and will not protect you from a virus or malicious user or hacker. Raid just reduces the damage if a disk happens to fail (which knowing my luck, is sometime soon).</p>
<p>The final solution I want is 2&#215;500GB disks in raid1 (mirrored) with lvm on top to split into my partitions. This way I could add another pair of disks in raid, add them to the lvm and not have to worry about which partitions get new space, as lvm will allow me to expand any parition onto the new space, and have a partition across multiple disks.</p>
<p>Why not raid5? Raid 5 is great for getting space, as you have n+1 disks, and get the space of n disks out of it as one is the redundant disk. The problem with raid5 is it is limited to the smallest disk in the raid. So 2 500GB disks and one 200GB disk will only give 400GB as each disk can only be used up to 200GB. Raid5 is great if all your disks are the same size, but if I want to add disks, and not have to replace all 3+ disks, then with raid1 I just have to buy disks in pairs. My pc has 4 ide slots and 2 sata slots, so raid1 should be fine (disks are getting quite bit these days).</p>
<p>So the plan is to add 2 500GB disks. put them in raid1 with a partition for /boot (which cant be in lvm) and the rest becomes part of a lvm group, with my / and /home partitions in there (and /tmp, swap)</p>
<p><strong>How I did it</strong></p>
<p><span id="more-350"></span></p>
<p><strong>Warning: This can seriously mess up your data. Please, please backup first - I didn&#8217;t and was sweating hard at one point when I thought I had lost my entire lvm array. I found the <a href="http://people.debian.org/~jgoerzen/dfs/html/">Debian From Scratch (DFS)</a> a fabulous rescue CD</strong></p>
<p><em>Note: This took me several attempts to actually finish writing, so there are probably some errors, so let me know if you spot anything that looks wrong or is ambiguous.</em></p>
<p>For background, my current setup has 2 disks. hda and sda. these are both 200GB, and /boot and swap are on hda, and the rest of hda and all of sdb are in my lvm group</p>
<p>I added my new 500GB disk as /dev/sdb and booted up.</p>
<p>Use fdisk to create a small (~100mb) parition for /boot. Set its type to <em>fd</em> (linux raid). This parition cannot be in lvm, as grub does not understand lvm.<br />
Create another parition using the rest of the space for our lvm. Also set its type to<em> fd</em></p>
<p>You may need to use partprobe or reboot to see the new partitions, however my Debian Etch box autodetected them when leaving fdisk</p>
<p><strong>Installing raid</strong></p>
<p style="padding-left: 30px;"><em>$apt-get install mdadm</em><br />
<em>$cat /proc/mdstat</em> should look something like</p>
<p style="padding-left: 30px;">Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]<br />
unused devices: &lt;none&gt;</p>
<p>if not, you may need to load some modules &#8220;modprobe md;modprobe raid1&#8243;</p>
<p>Next, you will need to create some raid device entries.</p>
<p style="padding-left: 30px;"><em>$mknod /dev/md0 b 9 0<br />
$mknod /dev/md1 b 9 1</em></p>
<p>This creates a block device, major number (like a type) 9. As etch uses udev, you need to tell udev to do this next boot too</p>
<p style="padding-left: 30px;"><em>$</em><em>echo M md0 b 9 0 &gt;&gt; /etc/udev/links.conf<br />
$echo M md1 b 9 1 &gt;&gt; /etc/udev/links.conf</em></p>
<p>Now we can create our real raid array:</p>
<p style="padding-left: 30px;"><em> $mdadm &#8211;create /dev/md0 &#8211;verbose &#8211;level=1 &#8211;raid-disks=2 /dev/sdb1 missing<br />
$mdadm &#8211;create /dev/md1&#8211;verbose &#8211;level=1 &#8211;raid-disks=2 /dev/sdb2 missing</em></p>
<p>or the short version</p>
<p style="padding-left: 30px;">$<em>mdadm -C /dev/md0 -n 2 -l 1 /dev/sdb1 missing<br />
</em>$<em>mdadm -C /dev/md1 -n 2 -l 1 /dev/sdb2 missing</em></p>
<p>This creates a raid1 array md0 which has parition sdb1 in it and is expecting another disk soon, similarly raid1 array md1 has partition sdb2 and also expects another disk. A raid array without all its disks is called a <em>degraded</em> array, as it is running and works, but is not in good condition.</p>
<p>Next we need to save the state of this array so that it will be loaded at next boot</p>
<p style="padding-left: 30px;"><em>$mdadm &#8211;detail &#8211;scan &gt;&gt; /etc/mdadm/mdadm.conf</em></p>
<p><strong>Adding/modifying VM</strong></p>
<p>To create a new lvm setup, the following commands are a quick guide to creating a single partition in your raid. You will probably want to create a few more paritions, as this just creates a single lvm logical volume called root</p>
<p style="padding-left: 30px;"><em>$pvcreate  /dev/md1<br />
$vgcreate vg0 /dev/md1<br />
$vgscan<br />
$lvcreate -L10G -n root vg0<br />
$mkfs -t ext3 /dev/vg0/root</em></p>
<p>Then edit /etc/fstab to mount <em>/dev/vg0/root</em> (you may need to refer to it as <em>/dev/mapper/vg0-root</em>) as <em>/</em>. Repeat for any other filesystems you may want, and then copy any data over</p>
<p style="padding-left: 30px;">e.g.</p>
<p style="padding-left: 30px;"><em>$mkdir /mnt/root<br />
$mount /dev/vg0/root /mnt/root<br />
$rsync -auHxv &#8211;exclude=/proc/* &#8211;exclude=/sys/* &#8211;exclude=/boot/* &#8211;exclude=/mnt / /mnt/root/<br />
$mkdir /mntroot/proc /mntroot/boot /mntroot/sys<br />
$chmod 555 /mntroot/proc</em></p>
<p>I already had a LVM setup, so I wanted to migrate it from the old disks to the new raid disks</p>
<p style="padding-left: 30px;"><em>$pvcreate /dev/md1<br />
$vgextend vg0 dev/md1<br />
$pvmove /dev/hda3 (this is gonna be slow)<br />
$vgreduce vg0 /dev/hda3<br />
$pvremove /dev/hda3</em></p>
<p>Don&#8217;t forget a swap partition (can be in LVM too)</p>
<p style="padding-left: 30px;"><em>$lvcreate -L2G -n swap vg0<br />
$mkswap /dev/vg0/swap</em></p>
<p>Make sure you copy over your /boot to /dev/md0 too!</p>
<p style="padding-left: 30px;">Then make sure you have edited /boot/grub/devices.map and /boot/grub/menu.lst to have the correct new devices</p>
<p><strong>Finishing off the config</strong></p>
<p>rebuild initrd to scan for raid devices<br />
<strong> !important, you need this for your initrd to load the raid so your kernel can find the root fs</strong><strong>!</strong><br />
<em></em></p>
<p style="padding-left: 30px;"><em>$dpkg-reconfigure linux-image-2.6.18-3-686</em></p>
<p>(or whatever your current kernel package is). This is better than mkinitrd or update-initramfs as you dont need to worry about which you are using and is the &#8220;debian way&#8221;</p>
<p>Someone suggested adding a fallback in grub and a second boot entry, but they don&#8217;t use the automagic grub updating, so it will just get trashed when they upgrade kernels<br />
edit /boot/grub/menu.lst if you want to do this</p>
<p style="padding-left: 30px;">[...]<br />
default         0<br />
fallback        1<br />
[...]</p>
<p>install grub on new disk(s)</p>
<p>you can reboot now if you want to see it working</p>
<p><strong>Add second disk to raid</strong></p>
<p>create same partition structure on /dev/sda, then add them to the raid as follows</p>
<p style="padding-left: 30px;"><em>$mdadm &#8211;detail &#8211;scan<br />
$mdadm /dev/md1 -a /dev/sda2<br />
$mdadm /dev/md0 -a /dev/sda1</em></p>
<p style="padding-left: 30px;"><em>$watch cat /proc/mdstat</em><br />
Personalities : [raid1]<br />
md0 : active raid1 sda1[2] sdb1[0]<br />
104320 blocks [2/1] [U_]<br />
resync=DELAYED</p>
<p style="padding-left: 30px;">md1 : active raid1 sda2[2] sdb2[0]<br />
488279488 blocks [2/1] [U_]<br />
[&gt;....................]  recovery =  0.1% (779328/488279488) finish=93.8min speed=86592K/sec</p>
<p style="padding-left: 30px;">unused devices: &lt;none&gt;</p>
<p>when done you should see:</p>
<p style="padding-left: 30px;"><em>$cat /proc/mdstat<br />
</em>Personalities : [raid1]<br />
md0 : active raid1 sda1[1] sdb1[0]<br />
104320 blocks [2/2] [UU]</p>
<p style="padding-left: 30px;">md1 : active raid1 sda2[1] sdb2[0]<br />
488279488 blocks [2/2] [UU]</p>
<p style="padding-left: 30px;">unused devices: &lt;none&gt;</p>
<p>delete the array lines from /etc/mdadm/mdadm.conf and run</p>
<p style="padding-left: 30px;"><em>$mdadm &#8211;detail &#8211;scan &gt;&gt; /etc/mdadm/mdadm.conf</em></p>
<p><em></em>I am surprised that raid cannot figure this information out itself, but every webpages I saw says you need these lines in the config, and I am too scared to try not having those lines.</p>
<p>Make sure you rebuild your initrd so that it knows the raid setup at boot time and can initialise your root partition.</p>
<p style="padding-left: 30px;"><em>$dpkg-reconfigure linux-image-2.6.18-3-686</em></p>
<p>Add grub to second disk if desired</p>
<p style="padding-left: 30px;"><em>$install-grub /dev/sda</em></p>
<p><strong>discussion</strong></p>
<p>some sites suggest that dmadm.conf needs &#8220;devices=/dev/sdb6,/dev/sda6&#8243; for each array. Not sure if this is necessary. If you think you need it, other sites also suggest to use /dev/.static/dev/sdb6 instead of just /dev/sdb6 to make udev work properly. I dont have any devices set for my arrays - I would assume that is what the uuid is for, and mdadm finds them by scanning all paritions</p>
<p>I found the following page really helpful - <a href="http://xtronics.com/reference/SATA-RAID-debian-for-2.6.html">http://xtronics.com/reference/SATA-RAID-debian-for-2.6.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/24/software-raid1-and-lvm-on-debian-etch/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Get more out of Gmail</title>
		<link>http://www.strangeparty.com/2008/05/22/get-more-out-of-gmail/</link>
		<comments>http://www.strangeparty.com/2008/05/22/get-more-out-of-gmail/#comments</comments>
		<pubDate>Thu, 22 May 2008 09:25:09 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=332</guid>
		<description><![CDATA[I stumbled across this post on the Official Gmail Blog: 2 hidden ways to get more from your Gmail address
It is an absolute must read if you use Gmail
]]></description>
			<content:encoded><![CDATA[<p>I stumbled across this post on the Official Gmail Blog: <a href="http://gmailblog.blogspot.com/2008/03/2-hidden-ways-to-get-more-from-your.html">2 hidden ways to get more from your Gmail address</a></p>
<p>It is an absolute must read if you use Gmail</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/22/get-more-out-of-gmail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Random Photos</title>
		<link>http://www.strangeparty.com/2008/05/20/random-photos/</link>
		<comments>http://www.strangeparty.com/2008/05/20/random-photos/#comments</comments>
		<pubDate>Tue, 20 May 2008 18:21:50 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=347</guid>
		<description><![CDATA[I stumbled over these photos the other day, and decided I really liked them.
I couldn&#8217;t remember if I had posted them up here, so decided to post them anyway


]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I stumbled over these photos the other day, and decided I really liked them.<br />
I couldn&#8217;t remember if I had posted them up here, so decided to post them anyway</p>
<p style="text-align: center;"><a class="tt-flickr" href="http://www.flickr.com/photos/antonpiatek/2362210704/"><img src="http://farm4.static.flickr.com/3035/2362210704_fa309bd1d1_m.jpg" border="0" alt="img_13955" width="160" height="240" /></a></p>
<p style="text-align: center;"><a class="tt-flickr" href="http://www.flickr.com/photos/antonpiatek/2361376413/"><img src="http://farm3.static.flickr.com/2116/2361376413_4ecd671cc8_m.jpg" border="0" alt="img_14004" width="240" height="160" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/20/random-photos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Advanced Bash on the command line</title>
		<link>http://www.strangeparty.com/2008/05/17/advanced-bash-on-the-command-line/</link>
		<comments>http://www.strangeparty.com/2008/05/17/advanced-bash-on-the-command-line/#comments</comments>
		<pubDate>Sat, 17 May 2008 18:03:52 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=319</guid>
		<description><![CDATA[Deadman.org: Advancing in the Bash Shell - well worth a read to improve your bash

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.deadman.org/bash.html">Deadman.org: Advancing in the Bash Shell</a> - well worth a read to improve your bash<a href="http://www.deadman.org/bash.html"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/17/advanced-bash-on-the-command-line/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Micheldever bluebells</title>
		<link>http://www.strangeparty.com/2008/05/16/micheldever-bluebells/</link>
		<comments>http://www.strangeparty.com/2008/05/16/micheldever-bluebells/#comments</comments>
		<pubDate>Fri, 16 May 2008 17:58:37 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[bluebells]]></category>

		<category><![CDATA[flowers]]></category>

		<category><![CDATA[forrest]]></category>

		<category><![CDATA[micheldever]]></category>

		<category><![CDATA[micheldever woods]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=356</guid>
		<description><![CDATA[On the last bank holiday I went to Micheldever to get photos of the bluebells, for which Micheldever woods is quite well known for.
 

  



A map of the woods which was quite helpful is available from the forrestry commission
This is something I plan to do every year
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">On the last bank holiday I went to Micheldever to get photos of the bluebells, for which Micheldever woods is quite well known for.</p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2473677157/"><img src="http://farm4.static.flickr.com/3220/2473677157_efcc1bede4_m.jpg" border="0" alt="img_14228" width="160" height="240" /></a> <a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2474514014/"><img src="http://farm3.static.flickr.com/2163/2474514014_3e122d746a_m.jpg" border="0" alt="img_14366" width="160" height="240" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/antonpiatek/2474512556/"><img src="http://farm4.static.flickr.com/3003/2474512556_64340fa5c1_m.jpg" border="0" alt="img_14360" width="240" height="160" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/antonpiatek/2473692911/"><img src="http://farm4.static.flickr.com/3070/2473692911_0b3bb1e711_s.jpg" border="0" alt="img_14317" width="75" height="75" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/antonpiatek/2474509496/"><img src="http://farm3.static.flickr.com/2353/2474509496_b68da52e02_s.jpg" border="0" alt="img_14301" width="75" height="75" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/antonpiatek/2474497628/"><img src="http://farm3.static.flickr.com/2028/2474497628_043504ccdd_s.jpg" border="0" alt="img_14256" width="75" height="75" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2473676901/"><img src="http://farm4.static.flickr.com/3190/2473676901_1e1c6b68c1.jpg" border="0" alt="img_14212" width="500" height="203" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2474512556/"><img src="http://farm4.static.flickr.com/3003/2474512556_64340fa5c1.jpg" border="0" alt="img_14360" width="500" height="333" /></a></p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/antonpiatek/2473697313/"><img src="http://farm3.static.flickr.com/2040/2473697313_7a17567cfc.jpg" border="0" alt="img_14378" width="500" height="333" /></a></p>
<p style="text-align: left;">A map of the woods which was quite helpful is available from the <a href="http://www.forestry.gov.uk/pdf/see-micheldever-and-black-wood.pdf/$FILE/see-micheldever-and-black-wood.pdf">forrestry commission</a></p>
<p style="text-align: left;">This is something I plan to do every year</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/16/micheldever-bluebells/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Canon EOS 40D</title>
		<link>http://www.strangeparty.com/2008/05/15/canon-eos-40d/</link>
		<comments>http://www.strangeparty.com/2008/05/15/canon-eos-40d/#comments</comments>
		<pubDate>Thu, 15 May 2008 20:11:42 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[cameras]]></category>

		<category><![CDATA[reviews]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=297</guid>
		<description><![CDATA[I started writing this, and then never found time to get round to finishing it - All I can say is late is better than never&#8230;
There are plenty of sites giving all the technical details of the new Canon 40D, personally I like dpreview.com, so I will not spend too long going over them and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I started writing this, and then never found time to get round to finishing it - All I can say is late is better than never&#8230;</strong></p>
<p>There are plenty of sites giving all the technical details of the new Canon 40D, personally I like <a href="http://www.dpreview.com">dpreview.com</a>, so I will not spend too long going over them and instead want to write about my experience using the 40D (especially as an upgrade to my aged 300D).</p>
<p>The first thing to notice about the 40D when you get it out of the box, is the size of the screen. It is truly enormous compared to the 300D - the same difference as moving from a portable TV to a large plasma. It is a very nice screen too, very useful for reviewing photos, especially with the new full RGB histograms. The only gripe with it is that with auto rotate set (which I want on so that the photos are rotated on my pc) all portrait format photos are fitted onto the screen rotated, so you lose half the space on the screen.</p>
<p>The live mode makes good use of this large screen, however when compared to a compact digital camera or even the <a href="http://www.strangeparty.com/2007/09/20/panasonic-dmc-l10/">Panasonic Lumix DMC L10</a> it is a very primitive live mode. Turning on live mode requires a setting a custom option buried deep within the camera menu. Then you have live mode turned on or off when you press the right button, but it has no focusing - it is all manual! You can use the autofocus by switching off live mode and focusing, or using the focus button, however this flips the mirror back up, disabling the live mode, while focusing. This all means that the live mode is no good for shooting from the hip or above the head without some preparation, as you cannot see what the camera decided was in focus on the screen.<br />
The live mode however is very useful for macro photography, or any time you want to use manual focus on a tripod. You can zoom in 10x on the screen and get a high-res view of a section of the screen. The section can be moved with the joystick to select the area you wish to zoom in on.</p>
<p>Speaking of the joystick, the camera has 3 input selectors - the joystick, which is 8 way plus push, the thumb scroll wheel, which can be enabled with the second on setting of the power button, and the normal scroll wheel next to the shutter button. The two scroll wheels are used for setting the iso, flash adjustment, drive mode, focusing mode, white balance and metering mode. These settings come in pairs, pressing the set button for that pair enables each scoll wheel to adjust each of the settings, which works very nicely in practice once you have learnt which controls which.</p>
<p>The joystick however is normally only enabled for scrolling around a zoomed in image, or for selecting the focus point after pressing the focus point selection button. There is an custom setting though that allows the joystick to be used to select a focus point without pressing the selector button first, with the selector button used to set it back to auto. Personally I find the joystick perfect for selecting a focus point, as the 8 way plus center arrangement lines up nicely with the diamond layout of the focus points. The same custom option also allows to set the thumb scroll wheel to select the focus point however this means that to adjust the exposure you have to hold the focus point selection button and use the finger scroll wheel, which I find annoying compared to just using the thumb scroll wheel.</p>
<p>The high speed burst mode, 6 fps, and low noise of the camera is obviously far superiour than the 300D, and the larger buffer is quite a change from the 300D. 16 RAW images, or around 60 high quality jpgs without having to pause is great for action shots. The write to card speed is also hugely improved from the 300D, meaning I don&#8217;t have to worry about filling up the buffer.</p>
<p>The focus points are more sensetive, though with only my macro lens being f2.8 as needed I have not noticed the difference. The center focus point is super sensitive, though I don&#8217;t have any lenses with a large enough aperture to take advantage of this.</p>
<p>The af button is still something I have yet to figure out how to use to my advantage, other than starting auto focus during live mode. There are a lot of options for it in the custom functions, but they are somewhat cryptic, and I am used to not having it. Other custom options include controlling what the manual focus switch on the lens does - you can set it to control extra options on focusing or use it to disable lens stabilising, though most IS lenses have a switch for that too</p>
<p>The one new feature which can be realy useful, is on the main control dial there are now 3 custom modes. Each can be set to use P, Av, Tv or M and all other settings, including custom functions such as mirror lockup can be set. I find this really useful for macro shots, where I set one of the custom modes to M with shutter lockup and the two second timer. This allows me to set all the custom settings at once, and revert back to normal shooting with ease. There are also options like long exposure noise reduction and high sensitivity noise reduction which I have yet to really use as they increase the processing time of photos and often I want to see the photo and get on with the next shot.</p>
<p>The mirror lockup, two second timer, and two choices of drive speed (3 and 6 fps) are all new compared to the 300D, though not new to the Canon range of cameras.</p>
<p>The picture styles mode sounds great, especially being able to shoot black and white photos directly from the camera (something my old Canon G2 used to be able to do), however the settings are not picked up on a RAW file by my software (Bibble) so I rarely use it. Black and white is also better when done in post processing as you have many more options, such as selecting the colour channels to use, which is equivalent to using a coloured filter with black and white mode (or black and white film in a film camera).</p>
<p>Overall it is a fantastic camera, though that should not be surprising. Compared to the 300D it feels very professional, and the extra weight just makes it feel more sturdy in your hands and easier to keep steady. The full control of focusing modes and metering is great and means I don&#8217;t have to remember which modes are tied to which camera mode as was the case in the 300D where only the sports shooting mode gave you continuous AI servo focus. If you want to use the Live Mode for anything more than accurate macro focusing, I suggest you look elsewhere though</p>
<p>For me, a 400D was too little an upgrade for the money, wheres the 40D really feels like it is worth the upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/15/canon-eos-40d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OpenSSL expoit</title>
		<link>http://www.strangeparty.com/2008/05/15/openssl-expoit/</link>
		<comments>http://www.strangeparty.com/2008/05/15/openssl-expoit/#comments</comments>
		<pubDate>Thu, 15 May 2008 12:41:38 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=358</guid>
		<description><![CDATA[I am sure you have all ready about the OpenSSL exploit that was recently found in Debian:
http://lists.debian.org/debian-security-announce/2008/msg00152.html
It is worth noting that the exploit affects any keys that were built on a debian box after sarge (so etch, lenny, current sid). This also means that any box that has those keys as an authentication method is [...]]]></description>
			<content:encoded><![CDATA[<p>I am sure you have all ready about the OpenSSL exploit that was recently found in Debian:<br />
<a href="http://lists.debian.org/debian-security-announce/2008/msg00152.html">http://lists.debian.org/debian-security-announce/2008/msg00152.html</a></p>
<p>It is worth noting that the exploit affects any keys that were built on a debian box after sarge (so etch, lenny, current sid). This also means that any box that has those keys as an authentication method is vulnerable too:</p>
<p><a href="http://blog.drinsama.de/erich/en/linux/2008051401-consequences-of-sslssh-weakness.html">http://blog.drinsama.de/erich/en/linux/2008051401-consequences-of-sslssh-weakness.html</a></p>
<p>Because any of those boxes could already be compromised, if you are paranoid you should be careful about logging in with passwords to them too - basically if you are paranoid then you can&#8217;t really trust anything (so business as normal for paranoid people)</p>
<p>In order to fix your keys, you should probably do the following (thanks to <a href="http://www.hants.lug.org.uk/lurker/message/20080513.191226.269a6c44.en.html">Hugo Mills</a>)</p>
<p>on all boxes you own</p>
<ul>
<li>Install the patch</li>
<li>Delete the following files if the host keys are likely to be vulnerable:
<ul>
<li>/etc/ssh/ssh_host_dsa_key*</li>
</ul>
<ul>
<li>/etc/ssh/ssh_host_rsa_key*</li>
</ul>
</li>
<li>Generate new host keys:
<ul>
<li>sudo dpkg-reconfigure -plow openssh-server</li>
</ul>
</li>
<li>Restart the ssh daemon</li>
</ul>
<p>And on all boxes you have access to via keys</p>
<ul>
<li>Delete the following files:
<ul>
<li>~/.ssh/authorized_keys</li>
</ul>
<ul>
<li>~/.ssh/id_*</li>
</ul>
</li>
<li>Generate new personal keys:
<ul>
<li>ssh-keygen -t rsa -b 4096</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/15/openssl-expoit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MacBook Air paraody for Lenovo Thinkpad X300</title>
		<link>http://www.strangeparty.com/2008/05/01/macbook-air-paraody-for-lenovo-thinkpad-x300/</link>
		<comments>http://www.strangeparty.com/2008/05/01/macbook-air-paraody-for-lenovo-thinkpad-x300/#comments</comments>
		<pubDate>Thu, 01 May 2008 09:28:55 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
		
		<category><![CDATA[Humor]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.strangeparty.com/?p=355</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/_hnOCUkbix0&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/_hnOCUkbix0&amp;hl=en" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strangeparty.com/2008/05/01/macbook-air-paraody-for-lenovo-thinkpad-x300/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
<br />
<b>Warning</b>:  call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'anton_rss' was given in <b>/home/hosting/web/anton/www.strangeparty.com/wordpress/wp-includes/plugin.php</b> on line <b>311</b><br />
