<?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 Ramblings of a Geek… &#187; Programming &raquo; The Ramblings of a Geek…</title>
	<atom:link href="http://ramblinggeek.co.uk/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramblinggeek.co.uk</link>
	<description>Day-to-day life of a geek working with technology</description>
	<lastBuildDate>Thu, 02 Feb 2012 23:02:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Really?</title>
		<link>http://ramblinggeek.co.uk/2010/07/really/</link>
		<comments>http://ramblinggeek.co.uk/2010/07/really/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:32:26 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[WindowsPhone]]></category>

		<guid isPermaLink="false">http://ramberlinggeek.co.uk/2010/07/really/</guid>
		<description><![CDATA[In this day and age with security and all, why does this Microsoft provided Windows Phone training kit default it’s installation path to the root?]]></description>
			<content:encoded><![CDATA[<p><a href="http://ramberlinggeek.co.uk/wp-content/uploads/2010/07/Really_20100716_1611.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" class="wlDisabledImage" title="Really_2010-07-16_1611" border="0" alt="Really_2010-07-16_1611" src="http://ramberlinggeek.co.uk/wp-content/uploads/2010/07/Really_20100716_1611_thumb.png" width="421" height="315" /></a></p>
<p> 
<p>In this day and age with security and all, why does this Microsoft provided Windows Phone training kit default it’s installation path to the root?</p>
]]></content:encoded>
			<wfw:commentRss>http://ramblinggeek.co.uk/2010/07/really/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Home Server Add-in</title>
		<link>http://ramblinggeek.co.uk/2009/09/windows-home-server-add-in/</link>
		<comments>http://ramblinggeek.co.uk/2009/09/windows-home-server-add-in/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:24:53 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows Home Server]]></category>

		<guid isPermaLink="false">http://kryptossolutions.wordpress.com/2009/09/01/windows-home-server-add-in/</guid>
		<description><![CDATA[Here in the UK we had a bank holiday yesterday which of course meant we had 3 days off.&#160; So I spent some time with the wife over the last few days and decided that I would embark on new project. Last week I was looking at the plug-ins for Windows Home Server.&#160; I came &#8230; </p><p><a class="more-link block-button" href="http://ramblinggeek.co.uk/2009/09/windows-home-server-add-in/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Here in the UK we had a bank holiday yesterday which of course meant we had 3 days off.&#160; So I spent some time with the wife over the last few days and decided that I would embark on new project.</p>
<p>Last week I was looking at the plug-ins for Windows Home Server.&#160; I came across one which sync your pictures to flickr.&#160; Unfortunately it didn’t work that well, it only uploaded the images within the root of the folder you gave to it.</p>
<p>I looked the forums and there seem to be a lot of people requiring this plug in, but the one available was buggy and the developer hadn’t blogged since last year.</p>
<p>So I decided that I would throw something to gather.&#160; After around 8 hours approx.&#160; I have my application talking to flickr, uploading.</p>
<p>The next big milestone will figuring out how to write an Windows Home Server Addin.&#160; So while 60-70% of the application is pretty much done and working, it won’t work with WHS as intended, so time permitting I’m hoping to a full BETA version ready to go in about two weeks.</p>
<p> <img src='http://ramblinggeek.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ramblinggeek.co.uk/2009/09/windows-home-server-add-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL:  Calculate Hours, Mins and Secs from StartTime and EndTime</title>
		<link>http://ramblinggeek.co.uk/2008/01/t-sql-calculate-hours-mins-and-secs-from-starttime-and-endtime/</link>
		<comments>http://ramblinggeek.co.uk/2008/01/t-sql-calculate-hours-mins-and-secs-from-starttime-and-endtime/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 21:27:26 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://kryptossolutions.wordpress.com/2008/01/13/t-sql-calculate-hours-mins-and-secs-from-starttime-and-endtime/</guid>
		<description><![CDATA[select &#160; sum(TotalSeconds) / 3600 as Hours, &#160; (sum(TotalSeconds) % 3600) / 60 as Minutes, &#160; sum(TotalSeconds) % 60 as Secondsfrom(select ArrivalTime, DepartureTime, DateDiff(second, ArrivalTime, DepartureTime) as TotalSeconds from SSRwhere CustomerID = 10) xThanks to this site for the heads up.]]></description>
			<content:encoded><![CDATA[<p><font face="Courier New">select <br />&nbsp; sum(TotalSeconds) / 3600 as Hours, <br />&nbsp; (sum(TotalSeconds) % 3600) / 60 as Minutes, <br />&nbsp; sum(TotalSeconds) % 60 as Seconds<br />from<br />(<br />select ArrivalTime, DepartureTime, DateDiff(second, ArrivalTime, DepartureTime) as TotalSeconds <br />from SSR<br />where CustomerID = 10<br />) x<br /></font><br />Thanks to this <a href="http://www.sqlteam.com/article/working-with-time-spans-and-durations-in-sql-server">site</a> for the heads up.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramblinggeek.co.uk/2008/01/t-sql-calculate-hours-mins-and-secs-from-starttime-and-endtime/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>T-SQL Queries</title>
		<link>http://ramblinggeek.co.uk/2007/02/t-sql-queries/</link>
		<comments>http://ramblinggeek.co.uk/2007/02/t-sql-queries/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 22:57:37 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://kryptossolutions.wordpress.com/2007/02/08/t-sql-queries/</guid>
		<description><![CDATA[I was trying to figure out how to get a T-SQL to allow a user to enter part of a name to query on, for example the user could enter ML, click a search button which would return all companies with the letters ML in. I Googled this and looked on MSDN, to no avail, &#8230; </p><p><a class="more-link block-button" href="http://ramblinggeek.co.uk/2007/02/t-sql-queries/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:12pt;font-family:Times New Roman;">I was trying to figure out how to get a T-SQL to allow a user to enter part of a name to query on, for example the user could enter ML, click a search button which would return all companies with the letters ML in.<br />
</span></p>
<p><span style="font-size:12pt;font-family:Times New Roman;">I Googled this and looked on MSDN, to no avail, I knew I had achieve the desired result using access a while back, but I was pretty sure I didn&#8217;t have a company so I could check the syntax, then I recalled where a may have a copy which I did, I cracked it open and found the following:<br />
</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">SELECT IngramPriceList.*<br />
FROM IngramPriceList<br />
WHERE IMPartNumber Like &#8216;*&#8217;+[?]+&#8217;*&#8217; Or ManufacturersPartNumber Like &#8216;*&#8217;+[?]+&#8217;*&#8217; Or VendorName Like &#8216;*&#8217;+[?]+&#8217;*';</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-family:Times New Roman;"><span style="font-size:10pt;">After entering this syntax into Visual Studio 2005 Express, thinking it work it didn&#8217;t, so after reading the required syntax for LIKE in the SQL Express 2005, I came up with this working solution.</span><span style="font-size:12pt;"><br />
</span></span></p>
<p><span style="font-size:10pt;font-family:Courier New;">SELECT CustomerID, LoginName, [Company Name], StreetAddress, townName, countyName, postcode, ContractType, StartDate, FinishDate, Notes, Active</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">FROM Customers<br />
WHERE([Company Name] LIKE &#8216;%&#8217; + @SearchText + &#8216;%&#8217;)</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:12pt;"><span style="font-family:Times New Roman;">Were as Access uses &#8216;*&#8217; SQL Server uses &#8216;%&#8217; instead…. Problem fixed. </span><span style="font-family:Wingdings;">?</span><span style="font-family:Times New Roman;"><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ramblinggeek.co.uk/2007/02/t-sql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

