<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Blog of Daniel Durrans, Web Systems Developer &#187; General</title>
	<atom:link href="http://www.durrans.com/blog/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.durrans.com/blog</link>
	<description>My life, thoughts, cooking, food, mmm food.</description>
	<lastBuildDate>Fri, 20 Nov 2009 15:38:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>bcp BULK INSERT a quote escaped csv file in SQL Server 2005</title>
		<link>http://www.durrans.com/blog/2009/11/20/bcp-bulk-insert-a-quote-escaped-csv-file-in-sql-server-2005/</link>
		<comments>http://www.durrans.com/blog/2009/11/20/bcp-bulk-insert-a-quote-escaped-csv-file-in-sql-server-2005/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 15:38:57 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/?p=222</guid>
		<description><![CDATA[I was having trouble trying to import a quote escaped CSV file into SQL Server 2005 using BULK INSERT. It kept giving me an unexpected EOF error until I used a format file where I created a dummy start and end column to pick up the initial &#8221; and final \r\n.
For example this format file [...]]]></description>
			<content:encoded><![CDATA[<p>I was having trouble trying to import a quote escaped CSV file into SQL Server 2005 using BULK INSERT. It kept giving me an unexpected EOF error until I used a format file where I created a dummy start and end column to pick up the initial &#8221; and final \r\n.</p>
<p>For example this format file will import six columns which are all formatted as:</p>
<p>&#8220;column1&#8243;,&#8221;column2&#8243;,&#8221;column3&#8243;,&#8221;column4&#8243;,&#8221;column5&#8243;,&#8221;column6&#8243;</p>
<pre>
9.0
8
1       SQLCHAR       0       1       ""          0     ExtraField          ""
2       SQLCHAR       0       100     "\",\""     1     ModelId             SQL_Latin1_General_CP1_CI_AS
3       SQLCHAR       0       100     "\",\""     2     QualifyModelId      SQL_Latin1_General_CP1_CI_AS
4       SQLCHAR       0       100     "\",\""     3     MediaAspectCode     SQL_Latin1_General_CP1_CI_AS
5       SQLCHAR       0       100     "\",\""     4     SmallImageFilename  SQL_Latin1_General_CP1_CI_AS
6       SQLCHAR       0       100     "\",\""     5     MediumImageFilename SQL_Latin1_General_CP1_CI_AS
7       SQLCHAR       0       100     "\""        6     LargeImageFilename  SQL_Latin1_General_CP1_CI_AS
8       SQLCHAR       0       100     "\r\n"      0     ExtraField           ""
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2009/11/20/bcp-bulk-insert-a-quote-escaped-csv-file-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What if Facebook could auto-tag uploaded photos?</title>
		<link>http://www.durrans.com/blog/2008/01/29/what-if-facebook-could-auto-tag-uploaded-photos/</link>
		<comments>http://www.durrans.com/blog/2008/01/29/what-if-facebook-could-auto-tag-uploaded-photos/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 12:07:44 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Cool stuff]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Life in code]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2008/01/29/what-if-facebook-could-auto-tag-uploaded-photos/</guid>
		<description><![CDATA[Facebook could become the ultimate platform for training facial recognition systems. Almost every photo uploaded to the site is of someone. The first thing that you do is to tag the people in the photo, creating a link between the photo and the related person.
But what would happen if the tagging process worked in conjunction [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook could become the ultimate platform for training facial recognition systems. Almost every photo uploaded to the site is of someone. The first thing that you do is to tag the people in the photo, creating a link between the photo and the related person.</p>
<p>But what would happen if the tagging process worked in conjunction with facial recognition technology? Every time a person was tagged in an image you could help the system learn what that person looks like. Eventually the system could become &#8220;smart&#8221; enough to recognise people on its own.</p>
<p>Auto-tagging photos &#8211; it&#8217;s the way forward, and you heard it here first!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2008/01/29/what-if-facebook-could-auto-tag-uploaded-photos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SQL code to test a date range against existing ranges in a table</title>
		<link>http://www.durrans.com/blog/2008/01/17/sql-code-to-test-a-date-range-against-existing-ranges-in-a-table/</link>
		<comments>http://www.durrans.com/blog/2008/01/17/sql-code-to-test-a-date-range-against-existing-ranges-in-a-table/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 16:45:29 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2008/01/17/sql-code-to-test-a-date-range-against-existing-ranges-in-a-table/</guid>
		<description><![CDATA[The following slice of code will search a table and return any rows where there is a clash between the date range in the row (ValidFrom and ValidTo) and the date range in the variables (@InTo and @InFrom).
Null dates are treated as either infinite past or infinite future accordingly.

WHERE
NOT (
(@InTo &#60; ValidFrom AND @InTo IS [...]]]></description>
			<content:encoded><![CDATA[<p>The following slice of code will search a table and return any rows where there is a clash between the date range in the row (ValidFrom and ValidTo) and the date range in the variables (@InTo and @InFrom).</p>
<p>Null dates are treated as either infinite past or infinite future accordingly.<br />
<code><br />
WHERE<br />
NOT (<br />
(@InTo &lt; ValidFrom AND @InTo IS NOT NULL AND ValidFrom IS NOT NULL)<br />
OR<br />
(@InFrom &gt; ValidTo AND @InFrom IS NOT NULL AND ValidTo IS NOT NULL)<br />
)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2008/01/17/sql-code-to-test-a-date-range-against-existing-ranges-in-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When was the last time you changed a plug?</title>
		<link>http://www.durrans.com/blog/2007/08/05/when-was-the-last-time-you-changed-a-plug/</link>
		<comments>http://www.durrans.com/blog/2007/08/05/when-was-the-last-time-you-changed-a-plug/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 19:44:22 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/08/05/when-was-the-last-time-you-changed-a-plug/</guid>
		<description><![CDATA[I was pondering this question earlier today while I rewired a 4-way adaptor to have a longer lead. When was the last time that I actually had to change a plug. While I was a child I changed plugs all the time. I loved to play around with electrical gadgets that I had acquired through [...]]]></description>
			<content:encoded><![CDATA[<p>I was pondering this question earlier today while I rewired a 4-way adaptor to have a longer lead. When was the last time that I actually had to change a plug. While I was a child I changed plugs all the time. I loved to play around with electrical gadgets that I had acquired through jumble sales and alike. These items often required a plug to be connected and therefore I spent quite a number of weekends messing around with screwdrivers, wire clippers and even in some cases soldering irons.</p>
<p>I remember that in school, both primary and secondary, I was taught how to change a plug. I was taught the colours of the wires inside a cable and how they related to the electrical mains supply. I understood which terminals within a plug these had to be connected to and I knew how to strip the cable to the correct lengths.</p>
<p>These days most electrical items come with a plug moulded onto the wire. It is rare that you have to change a fuse let alone rewire the plug. Before today I really can&#8217;t remember the last time that I saw the inside of a plug.  Are children even taught, what was once considered a necessary life skill, in schools?</p>
<p>So  I ask you, when did you last wire a plug? What colour is the earth wire? Does blue connect to the neutral terminal or the live terminal? Finally, is it the earth or the live terminal that has the fuse?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/08/05/when-was-the-last-time-you-changed-a-plug/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Real life Banksy</title>
		<link>http://www.durrans.com/blog/2007/07/05/real-life-banksy/</link>
		<comments>http://www.durrans.com/blog/2007/07/05/real-life-banksy/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 10:51:45 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Holiday]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/07/05/real-life-banksy/</guid>
		<description><![CDATA[I have just got back from a short holiday on the Greek island of Rhodes. More on that later but for now I thought I would share this photo that I took while in the Valley of the Butterflies. It reminded me of the Banksy painting shown on the right.
 
]]></description>
			<content:encoded><![CDATA[<p>I have just got back from a short holiday on the Greek island of Rhodes. More on that later but for now I thought I would share this photo that I took while in the <em>Valley of the Butterflies</em>. It reminded me of the Banksy painting shown on the right.</p>
<p style="text-align: center;"><a href="http://www.durrans.com/blog/wp-content/uploads/2007/07/img_1947.JPG" title="img_1947.JPG"><img src="http://www.durrans.com/blog/wp-content/uploads/2007/07/img_1947.thumbnail.JPG" alt="img_1947.JPG" class="imageframe" height="225" width="300" /></a> <a href="http://www.durrans.com/blog/wp-content/uploads/2007/07/cctv.jpg" title="cctv.jpg"><img src="http://www.durrans.com/blog/wp-content/uploads/2007/07/cctv.thumbnail.jpg" alt="cctv.jpg" class="imageframe" height="225" width="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/07/05/real-life-banksy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrong side of the tracks</title>
		<link>http://www.durrans.com/blog/2007/06/27/wrong-side-of-the-tracks/</link>
		<comments>http://www.durrans.com/blog/2007/06/27/wrong-side-of-the-tracks/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 20:36:47 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/06/27/wrong-side-of-the-tracks/</guid>
		<description><![CDATA[What is loud, fast, very hard, and makes this happen to cars:



A train going over a level crossing when the car shouldn&#8217;t have been there. Don&#8217;t play on the railways kids!
This car was left in the car park at work by Network Rail. It was recently used as part of their campaign to convince drivers [...]]]></description>
			<content:encoded><![CDATA[<p>What is loud, fast, very hard, and makes this happen to cars:</p>
<p align="center"><img src="http://www.durrans.com/blog/wp-content/uploads/2007/06/img_1928.JPG" alt="Car train 1" class="imageframe" height="300" width="400" /></p>
<p align="center"><img src="http://www.durrans.com/blog/wp-content/uploads/2007/06/img_1929.jpg" alt="Car Train 2" class="imageframe" height="300" width="400" /></p>
<p align="center"><img src="http://www.durrans.com/blog/wp-content/uploads/2007/06/img_1930.jpg" alt="Car Train 3" class="imageframe" height="300" width="400" /></p>
<p align="left">A train going over a level crossing when the car shouldn&#8217;t have been there. Don&#8217;t play on the railways kids!</p>
<p align="left">This car was left in the car park at work by Network Rail. It was recently used as part of their campaign to convince drivers that driving over level crossings when the lights are flashing is generally considered a bad idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/06/27/wrong-side-of-the-tracks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coo, what a lot of stuff</title>
		<link>http://www.durrans.com/blog/2007/06/17/coo-what-a-lot-of-stuff/</link>
		<comments>http://www.durrans.com/blog/2007/06/17/coo-what-a-lot-of-stuff/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 18:13:01 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Cooking]]></category>
		<category><![CDATA[Eating out]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/06/17/coo-what-a-lot-of-stuff/</guid>
		<description><![CDATA[I have been very busy over the last two weeks or so. I won&#8217;t go into detail but I would like to thank Becky and Dave for a lovely housewarming and birthday party that they had last weekend. I made my own burgers to cook on their BBQ and it was all jolly good fun. [...]]]></description>
			<content:encoded><![CDATA[<p>I have been very busy over the last two weeks or so. I won&#8217;t go into detail but I would like to thank Becky and Dave for a lovely housewarming and birthday party that they had last weekend. I made my own burgers to cook on their BBQ and it was all jolly good fun. I also went to see Pirates 3 this week which I thought was very swashbuckling.  It was almost as good as this video found by Colin:</p>
<p align="center"><a href="http://www.youtube.com/watch?v=3AzpByR3MvI">Pirate video</a></p>
<p>Don&#8217;t let the song get stuck in your head!</p>
<p>I went to the Brake Road Safety Awards on Friday evening with work. The company that I work for won an award for our risk management product which I thought was pretty cool. Nothing like drinking on company expenses.</p>
<p>I am going to have a Pimm&#8217;s party. It is called Pimm&#8217;s in the Park and will be on Saturday 11th August at 2pm in St Andrew&#8217;s Park, Bristol. Everyone is invited, just bring along a picnic, some chums and a bottle of Pimm&#8217;s!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/06/17/coo-what-a-lot-of-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A week of busy</title>
		<link>http://www.durrans.com/blog/2007/06/03/a-week-of-busy/</link>
		<comments>http://www.durrans.com/blog/2007/06/03/a-week-of-busy/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 15:34:31 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Eating out]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/06/03/a-week-of-busy/</guid>
		<description><![CDATA[I sit here hot and restless. The weather is threatening and I am sure I just saw some spots of rain on the glass of the window. I feel like my life has turned into a whirlwind of busy this week yet I can&#8217;t pinpoint why. I look back to when I last blogged and [...]]]></description>
			<content:encoded><![CDATA[<p>I sit here hot and restless. The weather is threatening and I am sure I just saw some spots of rain on the glass of the window. I feel like my life has turned into a whirlwind of busy this week yet I can&#8217;t pinpoint why. I look back to when I last blogged and realise that it was only last Friday, yet even this seams like an age ago.</p>
<p>I have visited my parents, met up with Lauren who is a friend from high school and now works in the same hospital as my Dad, been bowling &#8211; a sport that I definitely need more practice at, done a five mile walk over Cannock Chase, ate in multiple restaurants, been to the gym twice, wrote two Facebook applications on their new Facebook platform, washed the car, visited the Festival of Nature in Bristol and many other things besides.</p>
<p>Successful bowling is very much a combination of skill and luck. Dad was surprisingly good at sending the ball down the alley to remove all the pins in its path. However he did manage to slip over while showing off and cut his hand. Stuart, my sisters fiancé,  had a quietly accomplished bowling technique while my aunt managed to get the ball into the gutter 99% of the time. The other 1% was when she got a strike halfway through the second game.</p>
<p>On Thursday I visited Casa Mexicana on Zetland Road in Bristol. A subtly themed Mexican restaurant with bored waiting staff greeted James, Jacky, Ross and myself as we chose a table by the window. Our drinks order was taken three times by three different waiters although we couldn&#8217;t complain when it arrived &#8211; the sangria that Ross had ordered certainly had a kick to it. The food was spicy and good although I think they were a bit stingy with the rice that was served with my Chimichanga.</p>
<p>Facebook is a social network site that began with American college students and has now rolled out across the world. Last week they released Facebook Platform, a development API allowing programmers to connect to and produce widgets for Facebook. I have created two Facebook applications this week. The first allows users of <a href="http://www.pleasegetme.com/">PleaseGetMe.com</a> to display their <a href="http://apps.facebook.com/pleasegetme/">wish lists on their Facebook profile</a> page. The second, <a href="http://apps.facebook.com/lifekarma/">LifeKarma</a>,  allows you to give good or bad karma to your Facebook friends &#8211; and lets them retaliate. Your karma score is shown on your profile and you can even access a graph of your karma rating over time. If you have Facebook then please give them a try.</p>
<p>I have signed up to <a href="http://last.fm/">Last.fm</a> so if anyone else is on that then <a href="http://www.last.fm/user/danieldurrans/">add me</a> as your friend <img src='http://www.durrans.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Is anyone going to the QFC party in November? I was thinking of getting myself a ticket but only if others are going too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/06/03/a-week-of-busy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flying the flag for Serbia</title>
		<link>http://www.durrans.com/blog/2007/05/14/flying-the-flag-for-serbia/</link>
		<comments>http://www.durrans.com/blog/2007/05/14/flying-the-flag-for-serbia/#comments</comments>
		<pubDate>Mon, 14 May 2007 11:27:49 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Friends]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/05/14/flying-the-flag-for-serbia/</guid>
		<description><![CDATA[The coming of the summer months, note how I didn&#8217;t say weather, is marked by another round of euro-ballad-pop-rock music from artists that no one has ever heard of. Eurovision has always been a night to take the mickey out of other countries as well as our own pitiful entries.
My Eurovision weekend was spent in [...]]]></description>
			<content:encoded><![CDATA[<p>The coming of the summer months, note how I didn&#8217;t say weather, is marked by another round of euro-ballad-pop-rock music from artists that no one has ever heard of. Eurovision has always been a night to take the mickey out of other countries as well as our own pitiful entries.</p>
<p>My Eurovision weekend was spent in the company of my good friends down in Exeter where Roz organised an exciting party in the house of Reagan, Dave B and Damo. I was allocated three countries that I had to support, as well as the UK, which were The Former Yugoslav Republic of Macedonia, Romania and Belarus who did surprisingly well in the competition by coming sixth overall.</p>
<p>I think this year more than ever the political voting spoilt the competition. Eurovision has always been a bit susceptible to national bias with Greece and Cyprus being the main culprits over the years. However with the introduction of the Eastern Bloc and Balkan countries into the <acronym title="European Broadcasting Union">EBU</acronym> it has become far more prevalent. It was laughably easily to predict the set of countries that were going to be gaining votes. I would be willing to bet that it will be these same set of countries that rank highly next year. Not that I am a sore looser or anything.</p>
<p>Our entry, a cross between Steps, 5ive and Eurotrash, with stunning chorography and deeply meaningful lyrics came a joint second to last with France. Not only that but it also managed to set Damo&#8217;s surround sound amplifier on fire with acrid smoke pouring out of it by the end of the performance.</p>
<p>Roz bought the most amazing burgers from some farm shop near her flat. They tasted gorgeous and I am very jealous that they have such a fine purveyor of burger goodness so close to them. I think at the weekend I will have to go to the delicatessen on the Gloucester road for meat treats.</p>
<p>It was also great to catch up with my friend John (Prom) who has been absent from my life for a good number of years now. He is coming to the end of a philosophy degree at Exeter so good luck to him in the coming months.</p>
<p>Oh, Serbia won Eurovision &#8211; much to Becky&#8217;s dismay as she had to drink from The Cup Of Europe (a bowl of sparkling alcoholic fruit punch) whenever they were given 12 points</p>
<p>Here&#8217;s to a great weekend, it was nice to catch up with everyone again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/05/14/flying-the-flag-for-serbia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheques and chapters</title>
		<link>http://www.durrans.com/blog/2007/04/20/cheques-and-chapters/</link>
		<comments>http://www.durrans.com/blog/2007/04/20/cheques-and-chapters/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 17:29:22 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.durrans.com/blog/2007/04/20/cheques-and-chapters/</guid>
		<description><![CDATA[This morning I rang Albany, my uninsured loss recovery company, to see if I was ever going to get the cheque for £150 that they told me they would send me to cover my policy excess from the car crash last year. The nice lady told me that they had received the money from the [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I rang Albany, my uninsured loss recovery company, to see if I was ever going to get the cheque for £150 that they told me they would send me to cover my policy excess from the car crash last year. The nice lady told me that they had received the money from the third party insurer on Thursday and that the cheque was in the post.</p>
<p>I arrive home this evening and lo and behold the cheque was there waiting for me. Huzzah.</p>
<p>And so ends not only a rather annoying chapter of my life but also an otherwise uneventful Friday.<br />
<!--accident insurance car--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.durrans.com/blog/2007/04/20/cheques-and-chapters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
