<?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>blog.sparetomato.com</title>
	<atom:link href="http://sparetomato.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://sparetomato.com/blog</link>
	<description>A Blog by Andy</description>
	<pubDate>Thu, 07 Aug 2008 20:05:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Flickr 888 - will you take part?</title>
		<link>http://sparetomato.com/blog/2008/08/07/flickr-888-will-you-take-part/</link>
		<comments>http://sparetomato.com/blog/2008/08/07/flickr-888-will-you-take-part/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 20:03:22 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Geek]]></category>

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

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

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

		<guid isPermaLink="false">http://sparetomato.com/blog/?p=288</guid>
		<description><![CDATA[
Tomorrow sees the opening of the 29th Summer Olympiad in China. It also sees Flickr attempt another social experiment, encouraging users to take a snapshot of life on 8-8-08.
Despite having some sympathies to the commericalism of Flickr, I still have a pro account and will be taking part (even though it is open to free [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/08/888_500px_banner.png"></a><a href="http://sparetomato.com/blog/wp-content/uploads/2008/08/888_500px_banner.png"></a><a href="http://sparetomato.com/blog/wp-content/uploads/2008/08/888_500px_banner.png"><img class="aligncenter size-medium wp-image-289" title="24 Hours of Flickr" src="http://sparetomato.com/blog/wp-content/uploads/2008/08/888_500px_banner-300x69.png" alt="Banner for 24 Hours of Flickr / Flickr 888" width="300" height="69" /></a></p>
<p>Tomorrow sees the opening of the <a title="Official Website of the Olympic Games 2008" href="http://en.beijing2008.cn/" target="_blank">29th Summer Olympiad in China</a>. It also sees Flickr attempt another social experiment, encouraging users to take a snapshot of life on <a title="Flickr: 888" href="http://blog.flickr.net/en/2008/07/31/flickr888/" target="_blank">8-8-08</a>.</p>
<p>Despite having some sympathies to the <a title="Random Acts of Photography Blog" href="http://gammagirl.wordpress.com/2008/08/04/flickr-888/" target="_blank">commericalism of Flickr</a>, I still have a pro account and will be taking part (even though it is open to free accounts too).</p>
<p>No doubt Flickr and Yahoo will be hoping for many photos from China, and the rules for Flickr 888 basically give them the right to sell your photos for profit if they want to. Tomorrow my life won&#8217;t be as interesting but I&#8217;ve been spending the past week trying to spot potential photographs, and while I know one shot I&#8217;m intending to take, I have no inspiration for the rest of them. I&#8217;m going to have the camera with me all day, so I&#8217;ll see what comes out.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/08/07/flickr-888-will-you-take-part/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apple Core</title>
		<link>http://sparetomato.com/blog/2008/07/17/apple-core/</link>
		<comments>http://sparetomato.com/blog/2008/07/17/apple-core/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 10:17:07 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Geek]]></category>

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

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

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/07/17/apple-core/</guid>
		<description><![CDATA[I&#8217;m dismayed about the lack of reports about the problems with the iPhone 3G launch. Granted, it seems that any anti-apple or anti-iPhone stories are banned from most of the main media outlets, but there are fundamental problems with how Apple and O2 have handled the iPhone 3G launch.
I am an existing, very happy iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m dismayed about the lack of reports about the problems with the iPhone 3G launch. Granted, it seems that any anti-apple or anti-iPhone stories are banned from most of the main media outlets, but there are fundamental problems with how Apple and O2 have handled the iPhone 3G launch.</p>
<p>I am an existing, very happy iPhone customer, having bought one on the afternoon the original was launched last November. It is truly a fantastic device (calling it a &#8216;phone&#8217; does not really do justice to it, but it is not really a &#8217;smartphone&#8217; either - despite being branded as one). When the 3G model was announced, I put my name down for further information, but was not too impressed with the features - I was waiting to see what O2 would offer existing customers.</p>
<p>The truth is that all existing customers of O2 get is the ability to end their 18 month tie-in to start a new 18-month contract. The cost of the phone is the same for new and upgrading customers.</p>
<p>Based on this, I decided it was not worth upgrading. I was perfectly happy with my iPhone, and while 3G is nice, I&#8217;m happy to wait for the few websites I do visit on the phone to download over EDGE. 16 gigabytes of storage would be nice, but I&#8217;m reasonably frugal with what I put on my iPhone anyway - I&#8217;ve yet to fill it even with 341 songs, 831 photos and 18 videos (two of the videos being over 30 mins long).</p>
<p>Where Apple and O2 have really messed up is that once again they have underestimated demand. O2 stores have been given a small amount of the stock, and their online store is still not selling them after it crashed following the first hour of sales. Existing customers can only upgrade through O2, while Apple stores have the greater amount of stock.</p>
<p>The problem is that as you can only upgrade through O2 stores, you are forced down the route with the lower availability. This leads to O2 having to serve both new and existing customers. Once the stock is gone for new customers, then customers are redirected to the Apple shop.</p>
<p>This leads to the second biggest problem: the apple shop does not have the capacity to handle the amount of new customers with the in-store activation policy.</p>
<p>I visited there last night in order to make an enquiry about purchasing a new iMac, and all the advisors were busy activating iPhones and couldn&#8217;t help me. From a business perspective, what is more important to Apple - a £89 sale, or a £1,200 sale?</p>
<p>I appreciate that Apple and O2 want to cut down on the black market for iPhones, but I&#8217;m sure their advisors and managers would rather be spending their time serving customers as opposed to waiting for the O2 website to perform credit checks.</p>
<p>The original iPhone launch was incredibly smooth, mainly due to the fact that customers simply purchased their phone and activated at home. Granted, there were some people who encountered a problem activating on launch night, but the majority of customers were able to activate on the night, and within a couple of days those who couldn&#8217;t activate were sorted.</p>
<p>Unfortunately for Apple and O2, those people who were able to order a 3G iPhone on the internet have already put them up for sale on eBay, with prices currently around the £400 mark. While the in-store activation policy might have ensured more customers get tied into their contracts, those who always intended to put the phones on eBay have already done it, so has the in-store activation worked? &#8216;Honest&#8217; customers (those who are activating in-store) were always intending to activate their phones, those who didn&#8217;t want to activate are still buying on the black market, and those Apple customers who have no real interest in buying the iPhone are being neglected in store.</p>
<p>Apple stores should go back to the core of the business, being computer and entertainment stores, and leave the mobile phone contract activations to the mobile phone stores.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/07/17/apple-core/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Say goodbye to the Afternoon&#8230;</title>
		<link>http://sparetomato.com/blog/2008/07/16/say-goodbye-to-the-afternoon/</link>
		<comments>http://sparetomato.com/blog/2008/07/16/say-goodbye-to-the-afternoon/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 12:23:33 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/07/16/say-goodbye-to-the-afternoon/</guid>
		<description><![CDATA[&#8230; especially if you&#8217;re a rock fan. One of the largest collections of music memorabilia is now available to view online, and with fancy zoomable features:
Hard Rock Memorabilia
(Requires Silverlight Beta 2 installation)
]]></description>
			<content:encoded><![CDATA[<p>&#8230; especially if you&#8217;re a rock fan. One of the largest collections of music memorabilia is now available to view online, and with fancy zoomable features:</p>
<p><a title="Hard Rock Memorabilia" href="http://memorabilia.hardrock.com">Hard Rock Memorabilia</a></p>
<p>(Requires Silverlight Beta 2 installation)</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/07/16/say-goodbye-to-the-afternoon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adventures in Aperture</title>
		<link>http://sparetomato.com/blog/2008/07/10/adventures-in-aperture/</link>
		<comments>http://sparetomato.com/blog/2008/07/10/adventures-in-aperture/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 13:43:53 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/07/10/adventures-in-aperture/</guid>
		<description><![CDATA[I&#8217;ve been quite keen to understand more about how to be &#8216;arty&#8217; with photography, and have been experimenting with depth of field.
From what I&#8217;ve learned so far, the easiest way to alter depth of field is to switch the camera to Aperture Priority (Av), which allows you to manually set the Aperture.
My EOS 450D with [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been quite keen to understand more about how to be &#8216;arty&#8217; with photography, and have been experimenting with depth of field.</p>
<p>From what I&#8217;ve learned so far, the easiest way to alter depth of field is to switch the camera to Aperture Priority (Av), which allows you to manually set the Aperture.</p>
<p>My EOS 450D with the 18-55mm kit lens allows me to set apertures between F3.5 and F22. To see what the effect is of the different apertures, I set up a simple shoot and altered the aperture to see the results.</p>
<p><span id="more-285"></span></p>
<p>Firstly, I took a &#8216;Control&#8217; shot - this was with the camera in full auto mode - the camera picked the aperture, shutter speed, ISO and also controled the autofocus. In this case I set it to a single-point autofocus on the centre.</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0001.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0001" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0001-thumb.jpg" width="244" border="0"/></a> </p>
<p>The resulting image shows the background slightly blurred, as the camera has focused on the Beetle in the foreground. With the full 9 autofocus points active, the background would have been sharper, but that was not the point of the shot.</p>
<p>Looking at the statistics for the above image, the camera calculated the following was best for the shot:</p>
<p>Shutter: 1/160<br />Aperture: F10<br />ISO: 200</p>
<p>Next, I took a second &#8216;control&#8217; shot. This is the camera in Macro mode. This should focus more on the subject and isolate it. Again, a single point of Autofocus was used.</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0002.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0002" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0002-thumb.jpg" width="244" border="0"/></a> </p>
<p>We can see already that the colour balance of the shot has changed, and the grain on the table is more pronounced. The background is more blurred - you cannot make out the grouting on the wall, nor can you easily see the palm near the back of the garden.</p>
<p>So what did the camera say?</p>
<p>Shutter: 1/500<br />Aperture: 4.5<br />ISO: 125</p>
<p>This makes sense - with a larger aperture, the shutter speed is higher, and also the film speed.</p>
<p>So, what happens when we take control of the Aperture?</p>
<p>In order to get the maximum aperture, I had to alter the focal length from the subject - I can only get the largest aperture when fully zoomed out, so I moved the camera slightly closer to the subject. In some ways, this nullifies the control shots, but this was never meant to be a serious experiment!</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0003.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0003" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0003-thumb.jpg" width="244" border="0"/></a> </p>
<p>Shutter: 1/1000<br />Aperture: 3.5<br />ISO: 200</p>
<p>This shot is only subtly different from the Macro mode one. Without any scientific basis, the background is about the same level of burredness, but on close inspection between the two images, the rear wheelarch of the beetle has just started to lose focus. The faster shutter speed reflects the fact that there is more light getting through the aperture, but interestingly, the camera has reverted to an ISO of 200.</p>
<p>I then took a series of shots, reducing the aperture (or increasing the F value, depends on how you want to look at it) and recording the results:</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0004.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0004" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0004-thumb.jpg" width="244" border="0"/></a></p>
<p>Shutter: 1/500<br />Aperture: 4.5<br />ISO: 200</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0005.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0005" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0005-thumb.jpg" width="244" border="0"/></a></p>
<p>Shutter: 1/250<br />Aperture: 6.3<br />ISO: 200</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0007.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0007" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0007-thumb.jpg" width="244" border="0"/></a>&nbsp; </p>
<p>Shutter: 1/200<br />Aperture: 8.0<br />ISO: 200
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0008.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0008" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0008-thumb.jpg" width="244" border="0"/></a> </p>
<p>Shutter: 1/100<br />Aperture: 11.0<br />ISO: 200
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0009.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0009" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0009-thumb.jpg" width="244" border="0"/></a>&nbsp;</p>
<p>Shutter: 1/25<br />Aperture: 22.0<br />ISO: 250</p>
<p>We can see that by the last photo, the entire image is in shaper focus than the autofocus shot. This is possibly partly due to the slight change in angle, but individual bricks on the wall are clearly discernable.</p>
<p>Interestingly, the 4.5 aperture shot, which is comparable to the macro control shot, uses a different ISO when I controlled the aperture rather than the camera. Again, this is partly down to the change of angle, but also with the change of lighting conditions.</p>
<p>As the aperture size decreases, the shutter speed increases. I&#8217;m not sure how the aperture rating works, but when I halve the aperture size from F11 to F22, the shutter speed increases by a scale of four - not half as one might expect.</p>
<p>More to come as I start to learn more about aperture - Weather permitting, I will be taking some photos up Snowdon, which from my findings here should ideally be taken with a small aperture.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/07/10/adventures-in-aperture/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My first SLR Camera</title>
		<link>http://sparetomato.com/blog/2008/07/06/my-first-slr-camera/</link>
		<comments>http://sparetomato.com/blog/2008/07/06/my-first-slr-camera/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 10:12:56 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/07/06/my-first-slr-camera/</guid>
		<description><![CDATA[ I&#8217;ve had my eyes on Digital SLR cameras for a number of years - inspired by some of the brilliant photographs of James and RuneT. I&#8217;ve wanted to get more creative with the kind of photographs I take, and learn a little more about the art of a good photograph.
When my Canon Powershot A75 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/canon-eos-450d-with-18-55-mm.jpg"><img style="border-right: 0px; border-top: 0px; margin: 0px 0px 0px 10px; border-left: 0px; border-bottom: 0px" height="140" alt="canon_eos_450d_with_18_55_mm" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/canon-eos-450d-with-18-55-mm-thumb.jpg" width="154" align="right" border="0"/></a> I&#8217;ve had my eyes on Digital SLR cameras for a number of years - inspired by some of the brilliant photographs of <a href="http://www.flickr.com/photos/apenguincalledelvis/" target="_blank">James</a> and <a href="http://www.flickr.com/photos/minebilder/" target="_blank">RuneT</a>. I&#8217;ve wanted to get more creative with the kind of photographs I take, and learn a little more about the art of a good photograph.</p>
<p>When my Canon Powershot A75 bit the dust after five years of happy service, I decided to take the plunge into the arcane, and expensive world of SLR photography and purchased a <a href="http://www.canon.co.uk/For_Home/Product_Finder/Cameras/Digital_SLR/EOS_450D/index.asp" target="_blank">Canon EOS 450D</a>.</p>
<p>In many ways, digital photography has made SLR cameras much better value for money. No longer do you have to spend money on individual films and processing is instant, so there is no wait to see if the picture will come out as intended. I certainly would have been put off if I&#8217;d spent the money and waited the time for a film to be processed only for all the photographs to turn out blurred.</p>
<p>A DSLR allows you to be free to experiment. Whereas once I would have been tempted to play it safe and stick with an autofocus every time - I can now spend the time to compose a shot and experiment with different settings.</p>
<p>I&#8217;m still only at the very beginnings, and I&#8217;ve not ventured as far as completely manual operation of the aperture and shutter speeds - despite the camera being very intuitive, some of the advanced settings will take a read of the manual.</p>
<p>However, for the first time, I was able to construct a shot and control the depth of field to get the effect I was after. So I present to you, my (almost) first ever SLR photograph:</p>
<p><span id="more-268"></span></p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0028.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="484" alt="IMG_0028" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0028-thumb.jpg" width="324" border="0"/></a>&nbsp; </p>
<p>A very simple photograph of my dog in the back garden. It&#8217;s not the most complicated photograph to take, but I&#8217;m pleased with how I&#8217;ve been able to get Oscar&#8217;s head in sharp focus, drawing attention to the subject, while placing the weeds in the garden out of focus.</p>
<p>I say almost first ever SLR photograph, as the first photo I took I used the autofocus, which placed the entire photograph in sharp focus, losing Oscar in the busy background.</p>
<p>Last night, I took the opportunity to take some more photographs and attempt to control depth of field further:</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0030.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0030" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0030-thumb.jpg" width="244" border="0"/></a> </p>
<p>&nbsp;<a href="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0032.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="164" alt="IMG_0032" src="http://sparetomato.com/blog/wp-content/uploads/2008/07/img-0032-thumb.jpg" width="244" border="0"/></a></p>
<p>The 18-55mm lens that comes with the EOS 450D does not seem to allow me to create extreme depth of field, but I&#8217;m quite pleased with the mixing deck, in that the focal point (yep - learning the jargon!) is somewhere around the third slider up from the bottom, placing the foreground and the background out of focus.</p>
<p>I&#8217;ve set myself a few challenges - partly to justify the purchase of a SLR camera over a compact, but also as mini projects. Next weekend I&#8217;m off to Snowdon so I hope to practice taking landscapes and getting creative outdoors, but my big challenge to myself is to take a good photograph of my dog&#8217;s mum. She is a jet black dog, and previous attempts to photograph her have been very difficult as a compact camera overcompensates for the darkness of her fur - placing her completely in shadow. </p>
<p>I&#8217;ve been reading a few articles about white balance, and how the camera is automatically trying to balance the colour to a mid-grey, so hopefully in a couple of weeks I&#8217;ll attempt to take some shots of Skye.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/07/06/my-first-slr-camera/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Stored Procedure Syntax error with C# and the SQLCommand object</title>
		<link>http://sparetomato.com/blog/2008/06/24/stored-procedure-syntax-error-with-c-and-the-sqlcommand-object/</link>
		<comments>http://sparetomato.com/blog/2008/06/24/stored-procedure-syntax-error-with-c-and-the-sqlcommand-object/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 16:14:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/06/24/stored-procedure-syntax-error-with-c-and-the-sqlcommand-object/</guid>
		<description><![CDATA[What is wrong with the following statement?
private SQLCommand _cmd = new SQLCommand();
public void ExecuteStoredProcedure(string procedureName SQLParameter[] parms){&#160; _cmd.Connection = _dbConn;&#160; _cmd.CommandType = CommandType.StoredProcedure;&#160; _cmd.CommandText = procedureName;&#160; _cmd.Parameters.AddRange(parms);&#160; _cmd.ExecuteScalar();}


Looks OK on the surface - we have our command object, give it a connection to play with, set it as a stored procedure and then supply the [...]]]></description>
			<content:encoded><![CDATA[<p>What is wrong with the following statement?</p>
<p>private <a href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx" target="_blank">SQLCommand</a> _cmd = new SQLCommand();</p>
<blockquote><p>public void ExecuteStoredProcedure(string procedureName SQLParameter[] parms)<br />{<br />&nbsp; _cmd.Connection = _dbConn;<br />&nbsp; _cmd.CommandType = CommandType.StoredProcedure;<br />&nbsp; _cmd.CommandText = procedureName;<br />&nbsp; _cmd.Parameters.AddRange(parms);<br />&nbsp; _cmd.ExecuteScalar();<br />}</p>
</blockquote>
<p><span id="more-259"></span></p>
<p>Looks OK on the surface - we have our command object, give it a connection to play with, set it as a stored procedure and then supply the stored procedure name.</p>
<p>However, when this code is run, a &#8220;Syntax error near [Stored Procedure Name]&#8221; is thrown.</p>
<p>You double check your procedure name is correct, that your parameter array is OK, but still you get the error.</p>
<p>Why?</p>
<p>The problem is that I am setting the .CommandText property after setting the .CommandType property. Setting the CommandText property overwrites the value of .CommandType to &#8216;text&#8217;.</p>
<p>This is a demonstration that even the professionals can get it wrong. The inside of the <a href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx" target="_blank">SQLCommand</a> object probably looks something like:</p>
<blockquote><p>public string CommandText<br />{<br />&nbsp; set<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp; this.commandText = value;<br />&nbsp;&nbsp;&nbsp;&nbsp; this.commandType = text;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; &#8230;<br />}</p>
</blockquote>
<p>or something similar - the point is that the one property is resetting another. This is bad practice - the person using your code does not have any indication of what they are doing. At worst, a compilation warning should be shown or a note in the intellisense summary of the property.</p>
<p>In the MSDN reference for the <a href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtext.aspx" target="_blank">CommandText</a> property, there are no notes to suggest that the <a href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtype.aspx" target="_blank">CommandType</a> is overwritten. Although in fairness, the examples do show the properties being set in a particular order.</p>
<p>The correct order to set up a Stored Procedure is:</p>
<blockquote><p>public void ExecuteStoredProcedure(string procedureName SQLParameter[] parms)<br />{<br />&nbsp; _cmd.Connection = _dbConn;<br />&nbsp; _cmd.CommandText = procedureName;<br />&nbsp; _cmd.CommandType = CommandType.StoredProcedure;<br />&nbsp; _cmd.Parameters.AddRange(parms);<br />&nbsp; _cmd.ExecuteScalar();<br />}</p>
</blockquote>
<p>It could quite easily be argued that my approach to creating the object was wrong, in that I should be setting the text of my command before setting the type, but my mind does not work in that order - I think &#8220;I want to create a Stored Procedure Command and this is the Procedure I want to call&#8221;. The fluidity of Object Oriented programming should allow the coder to code in a logical way to them.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/06/24/stored-procedure-syntax-error-with-c-and-the-sqlcommand-object/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Murray Willis?</title>
		<link>http://sparetomato.com/blog/2008/05/05/murray-willis/</link>
		<comments>http://sparetomato.com/blog/2008/05/05/murray-willis/#comments</comments>
		<pubDate>Mon, 05 May 2008 09:15:33 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Cars]]></category>

		<category><![CDATA[Formula One]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/05/05/murray-willis/</guid>
		<description><![CDATA[ You&#8217;ve got to hand it to the Daily Star. While their Big-brother-Z-List-celebrity-hyped paper is not always the most newsworthy, it certainly throws up some of the more amusing stories.
Today, they claim that Bruce Willis is set to play commentating legend Murray Walker in a film about the life of Michael Schumacher - inventively titled [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/05/murray-waker-351147a.jpg"><img style="border-right: 0px; border-top: 0px; margin: 0px 5px 0px 10px; border-left: 0px; border-bottom: 0px" height="244" alt="Murray_Waker_351147a" src="http://sparetomato.com/blog/wp-content/uploads/2008/05/murray-waker-351147a-thumb.jpg" width="181" align="right" border="0"/></a> You&#8217;ve got to hand it to the <a href="http://www.dailystar.co.uk/news/view/35927/Drive-Hard/" target="_blank">Daily Star</a>. While their Big-brother-Z-List-celebrity-hyped paper is not always the most newsworthy, it certainly throws up some of the more amusing stories.</p>
<p>Today, they claim that Bruce Willis is set to play commentating legend Murray Walker in a film about the life of Michael Schumacher - inventively titled &#8220;The Michael Schumacher Story&#8221;.</p>
<p>I don&#8217;t know what is more laughable - the thought of Bruce Willis donning spectacles and getting overexcited everytime a puff of smoke appears at the rear of a car (even if it is tyre smoke)&#8230; or the prospect of a film about the life of Michael Schumacher.</p>
<p>While Schumacher is without doubt one of the greatest drivers F1 has known, his career wasn&#8217;t always the most exciting - and given the fact that Schumacher is purported to be involved, it is unlikely that the more controversial aspects of his career will be highlighted.</p>
<p>Schumacher drove in a period in F1 where his superiority was rarely challenged. If you were to make a true life film about &#8220;modern&#8221; F1, you&#8217;d probably make it during the 1980&#8217;s, where you had Senna, Prost, Mansell, Rosberg (Sr), and Piquet (Sr) all fighting for wins, and some of the real characters such as Gerhard Berger.</p>
<p>None of this will come to fruition, except possibly as a made for TV film, and while Murray did comment for the whole of Schumacher&#8217;s career, he was not always the greatest supporter of the German.</p>
<p>The main reason Willis has been linked to the role, is simply that he is probably the most famous aging bald actor in Hollywood. Apparently &#8220;an insider&#8221; claims that in glasses, Willis looks very much like a young Murray Walker. This is forgetting the fact that Walker was not a young man during the Schumacher period.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/05/05/murray-willis/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The League of Gentlemen&#8217;s Apocalypse</title>
		<link>http://sparetomato.com/blog/2008/04/13/the-league-of-gentlemens-apocalypse/</link>
		<comments>http://sparetomato.com/blog/2008/04/13/the-league-of-gentlemens-apocalypse/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 16:21:04 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Films]]></category>

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

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/04/13/the-league-of-gentlemens-apocalypse/</guid>
		<description><![CDATA[ Last night I gave one of my most disappointing movies a second chance. 
The League of Gentlemen was one of my favourite TV series, and its dark humour still makes me laugh. The problem with the TV series was the risk that it would become a parody of itself, with catchphrases and recurring characters [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/04/user1367-1169854860.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 5px 0px 0px; border-right-width: 0px" height="244" alt="user1367_1169854860" src="http://sparetomato.com/blog/wp-content/uploads/2008/04/user1367-1169854860-thumb.jpg" width="166" align="left" border="0"/></a> Last night I gave one of my most disappointing movies a second chance. </p>
<p>The League of Gentlemen was one of my favourite TV series, and its dark humour still makes me laugh. The problem with the TV series was the risk that it would become a parody of itself, with catchphrases and recurring characters who essentially had a limited lifespan. </p>
<p>Many of the characters were one-joke characters, similar to those in shows such as The Fast Show. The difference being that in The Fast Show, the&nbsp; intention was to produce one-joke, instantly quotable characters, placing them in different situations, delivering a few humorous lines before wrapping up with their punchline catchphrases. In 30 second to 2 minute sketches, this is easy to do, but when you have created a whole world (well, village) that these characters live in and interact in, the characters become harder to write for, and less believable as a result. </p>
<p>The first two series of The League of Gentlemen centred around the characters of Tubbs and Edward, the Local Shopkeepers, their plans to disrupt the building of a new road that would bring strangers to their village, and their attempts to find a mate for their son, David (ironically the developer who was building the road from the first series). By the end of the second series, the characters of Tubbs and Edward had got a little worn, and were killed off. The writers took a bold decision here, as they could have easily took the easy route for a few more series with their &#8216;Local Shop, for Local People&#8217;. For the third series, they tried a new approach with a single story that was told from different angles, introducing new characters while reducing of some of the older characters. Series 3 wasn&#8217;t as well received as previous series, but it was obvious that the writers wanted to take a step away from their creations. </p>
<p>The announcement of a League of Gentlemen movie genuinely excited me, but could you turn a half-hour show into a full length movie? </p>
<p>When I saw the movie for the first time, I thought it was terrible. The characters escape from the fictional world of Royston Vasey and enter our world in a &#8216;Who Framed Roger Rabbit&#8217; way, the humour coming from the fact that these cartoonish characters were interacting with normal people. </p>
<p>The low budget was particularly evident, and the diversion into a story-within-a-story-within-a-story seemed nonsensical, and not relevant to the plot at the time. </p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/04/char-lipp.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 5px 0px 0px; border-right-width: 0px" height="154" alt="char_lipp" src="http://sparetomato.com/blog/wp-content/uploads/2008/04/char-lipp-thumb.jpg" width="154" align="left" border="0"/></a> I suppose my initial reaction was also coloured by the fact&nbsp; that two of the main characters were two of my least favourite - Herr Lipp and Geoff Tipps.</p>
<p>Lipp I&#8217;ve always found too creepy and his innuendos the least funny. Geoff just rude and not very funny (which I suppose is the point of his character.) However, on second viewing, these were possibly the best selection of characters to use for the movie. </p>
<p>The opening sequence where Tubbs, Edward and Papa Lazarou confront writer Jeremy Dyson (the unseen gentleman, and again, played by someone else) sums up the fact that most of the characters are too bizarre to exist in the &#8216;real&#8217; world. While the murderous butcher Briss is possibly the most extreme character of the bunch, he is also the most intelligent and perfect as a leader. </p>
<p>Lipp is a one-joke character, and actually has quite a good story arc in the movie, where he comes to realise that he <em>is</em> a one-dimensional character, and craves to be seen as more than a stereotype. His final rant filled with his trademark innuendos is not meant to be humourous, and draws another parallel to Who Framed Roger Rabbit, he is almost like Jessica Rabbit - &#8220;I&#8217;m not bad, I&#8217;m just drawn that way&#8230;&#8221; </p>
<p>The premise that the actors are fed up with playing the characters they have played for the last 10 years and want to go on to other things, is believable - As parodied in the excellent episode of Father Ted &#8216;The Mainland&#8217;, Richard Wilson (a respected Shakespearean actor) is constantly being taunted by Ted saying his catchphrase from &#8216;One foot in the Grave&#8217;: &#8216;I Don&#8217;t believe it!&#8217;. The League of Gentlemen are actors and want to be remembered more than &#8216;Are you Local?&#8217; or &#8216;Okey-cokey-pig-in-a-pokey! Good Morning Jobseekers!&#8217;. </p>
<p>The League of Gentlemen&#8217;s Apocalypse is a tribute to those characters - a fond farewell. </p>
<p>Since this film, the actors have all gone on to do other projects, from Dr. Who to Lassie. </p>
<p>The final twist in the film that it is all in the mind of Jeremy, the one who is not prepared to let go of Royston Vasey is particularly poignant, as well as being amusing in that his original plan for everyone to have tails. The idea that the writers have not all perished leaves the village of Royston Vasey alive as long as the writers stay alive, and we have the possibility to return there one day.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/04/13/the-league-of-gentlemens-apocalypse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>In-Game Advertising</title>
		<link>http://sparetomato.com/blog/2008/03/25/in-game-advertising/</link>
		<comments>http://sparetomato.com/blog/2008/03/25/in-game-advertising/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 22:20:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/03/25/in-game-advertising/</guid>
		<description><![CDATA[Episode 99 of The Instance included an interesting news item regarding an interview with Activision CEO Robert Kotik.
Electronic Arts has already announced that they are developing a new version of their &#8216;battlefield&#8217; series: Battlefield Heroes. In a way that has worked out well for them in the asian markets, this version of the game will [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.myextralife.com/wow/?p=305" target="_blank">Episode 99 of The Instance</a> included an interesting news item regarding an <a href="http://www.next-gen.biz/index.php?option=com_content&amp;task=view&amp;id=9426&amp;Itemid=2" target="_blank">interview</a> with Activision CEO Robert Kotik.</p>
<p>Electronic Arts has already announced that they are developing a new version of their &#8216;battlefield&#8217; series: <a href="http://news.bbc.co.uk/1/hi/technology/7199881.stm" target="_blank">Battlefield Heroes</a>. In a way that has worked out well for them in the asian markets, this version of the game will be free to download, and will generate money both through in game advertising and &#8216;micropayments&#8217; for items. The indication is that Blizzard (or Activision Blizzard) are looking to do the same in their products.</p>
<p>Naturally, people are worried that they will soon be seeing &#8216;Coca Cola&#8217; potions in World of Warcraft.</p>
<p>A strong argument against in-game advertising is that it feels out of kilter with the world in which the game is set. Granted, in a fantasy roleplaying game, an advert for a computer manufacturer would look out of place - but what about a game based on Blade Runner - would anyone even notice the glowing neon Atari signs? What if they were Apple iPod logos? The two companies are not that dissimilar in the view that they are household names, albeit 20 years apart.</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/03/f1gp-4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 5px 0px 0px; border-right-width: 0px" height="154" alt="Geoff Crammond's Grand Prix: Can anyone else see a McLaren with Ayrton Senna at the wheel?" src="http://sparetomato.com/blog/wp-content/uploads/2008/03/f1gp-4-thumb.png" width="244" align="left" border="0"/></a> In-Game advertising and sponsorship is not a new idea, we have seen more and more licensed products in computer games as the push towards realism continues. The first version of Geoff Crammond&#8217;s Grand Prix featured the coloured liveries of the F1 cars, albeit without any logos or names on them. Despite this, the distinctive Marlboro McLaren was easily recognisable with it&#8217;s Marlboro Flash on the nose and wings. By the time Grand Prix 2 was released, graphics had improved to the point where actual sponsors logos were displayed on the cars. Game modders even took this one stage further, replacing the censored cigarette logos with the real logos to make the game more authentic.</p>
<p>Sports games have probably pushed in-game sponsorship the furthest, as their real-life counterparts also rely heavily on sponsorship. From John Madden NFL to Tiger Woods Golf, where you can even play with Nike balls (complete with Nike swish).</p>
<p>However, sports games are not the only genre to feature commercial tie-ins. In the UK, The original Theme Park game was sold with a tie-in with Midland Bank (Now HSBC) and their LiveCash accounts, aimed at the teenage customers that would also buy the computer game. In-game branding included the Midland logo on the title screens and the year-end statements displayed as &#8220;LiveCash&#8221; statements.</p>
<p><a href="http://sparetomato.com/blog/wp-content/uploads/2008/03/theme-park-1.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 5px; border-right-width: 0px" height="196" alt="Bullfrog's Theme Park - Sponsored by Midland Livecash" src="http://sparetomato.com/blog/wp-content/uploads/2008/03/theme-park-1-thumb.png" width="244" align="right" border="0"/></a> Quite how successful this was in attracting new customers to Midland Bank is hard to measure, but it is interesting to note that the branding was missing from the port to the Nintendo DS. </p>
<p>EA have stated that in addition to displaying advertising (although apparently not during gameplay) they will allow players to purchase cosmetic upgrades to their characters. These upgrades would apparently not provide any advantage to players. </p>
<p>It is a fine line that game manufacturers tread, particularly in online multiplayer titles. If players are allowed to purchase upgrades to their online presence, there is a risk that a game will get dominated by the rich. MMORPGs have been plagued by &#8216;gold sellers&#8217;, who allow the purchase of virtual gold and items by paying real-world cash for them. Ignoring the ethical arguments around this, it places players with more disposable income in a position where they can gain an advantage over their peers. The only reason gold sellers exist, is because there are at least some people who are willing to take this advantage. </p>
<p>If the only upgrades I could get for my avatar were cosmetic, why would I be tempted to purchase them? If we don&#8217;t purchase them, then the profitability of a title goes down, EA will seek to gain more revenue through advertising, and advertising becomes more intrusive, which again puts people off.</p>
<p>If in-game advertising is to work, its success would be in its non-intrusive nature. If all of a sudden the reward for completing a level was a &#8216;mission complete&#8217; screen with gaudy sponsorship plastered all over it, you would be less than impressed, and the game reviewers would slam the game, accusing&nbsp; the developers of selling out. </p>
<p>However, what if you had completed a tricky song on Guitar Hero, what if there was a web link where you could download that song directly to your XBox, DRM free, so you could copy it to your iPod? What if after completing a movie-tie-in game, you could download that movie to your Media Centre? What if a discount was offered over the standard DVD or download price? At that moment of elation, you are more susceptible. That is when the advertisers want to pounce. Once you leave the game environment, your attention starts to waver, and you lose interest.</p>
<p>I&#8217;m not saying that model will work for everything - a musician in the World of Warcraft <a href="http://www.worldofwarcraft.com/info/events/brewfest/" target="_blank">Brewfest event</a> would probably not be able to entice you to pay to download an album&#8217;s worth of music, and perhaps there are some game genres that could never be seamlessly integrated with advertisements, but do we not already have in-game advertising, and the next step is to make it interactive?</p>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/03/25/in-game-advertising/feed/</wfw:commentRss>
		</item>
		<item>
		<title>F1 Back to the BBC</title>
		<link>http://sparetomato.com/blog/2008/03/23/f1-back-to-the-bbc/</link>
		<comments>http://sparetomato.com/blog/2008/03/23/f1-back-to-the-bbc/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 06:56:33 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[Formula One]]></category>

		<guid isPermaLink="false">http://sparetomato.com/blog/2008/03/23/f1-back-to-the-bbc/</guid>
		<description><![CDATA[Formula One will be returning to the BBC from 2009 onwards. This has already sparked a huge debate on Radio Five Live, the most popular question being - will they use &#8216;The Chain&#8217; as the theme tune again?

The ITV theme tunes have been mixed to say the least. The theme for the first couple of [...]]]></description>
			<content:encoded><![CDATA[<p>Formula One will be <a href="http://news.bbc.co.uk/sport1/hi/motorsport/formula_one/7306123.stm" target="_blank">returning to the BBC</a> from 2009 onwards. This has already sparked a huge debate on Radio Five Live, the most popular question being - will they use &#8216;The Chain&#8217; as the theme tune again?</p>
<p><embed src="http://www.youtube.com/v/i8gB8-9sQGc&amp;hl=en" width="425" height="355" type="application/x-shockwave-flash" wmode="transparent"></embed></p>
<p>The ITV theme tunes have been mixed to say the least. The theme for the first couple of seasons was written by Jay Kay, better known as &#8216;Jamiroquai&#8217;. As a huge motorsport fan, I&#8217;m sure he jumped at the chance - however his theme tunes did not have the excitement of the bass riff from &#8216;The Chain&#8217;. The tune they&#8217;ve been using in more recent years, a kind of tribal chanting theme was an improvement, but still doesn&#8217;t have the build-up that &#8216;The Chain&#8217; has - from the opening Bass Riff to the guitars.</p>
<p>Another strong debate is why F1 should even be shown on the BBC, when they have lost the majority of football, and the cricket. Given Bernie Ecclestone&#8217;s notorious business strategies, Formula One would not come cheap.</p>
<p>F1 is not as popular in the UK as football, cricket, and at the moment, possibly even rugby, but I do wonder if the fact that we now have a British driver who is a consistent winner, and probable future champion has influenced the BBC&#8217;s decision to get back into the F1 game&#8230;</p>
<p>My only hopes are that:</p>
<ol>
<li>They do actually use &#8216;The Chain&#8217; as the theme tune  </li>
<li>They keep Steve Ryder as the anchor (Jim &#8216;The Football&#8217;s on in a minute&#8217; Rosenthal really showed how much better Steve Ryder actually was!)  </li>
<li>They manage to keep Martin Brundle (The best pundit in F1)  </li>
<li><strong>THEY LEAVE JAMES ALLEN AT ITV!</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sparetomato.com/blog/2008/03/23/f1-back-to-the-bbc/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
