<?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>FruitBatInShades Code</title>
	<atom:link href="http://www.fruitbatscode.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fruitbatscode.com</link>
	<description>Where the fruitbat keeps his notes</description>
	<lastBuildDate>Wed, 02 May 2012 08:55:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Asp.net jQuery like Closest()</title>
		<link>http://www.fruitbatscode.com/net/c/asp-net-jquery-like-closest</link>
		<comments>http://www.fruitbatscode.com/net/c/asp-net-jquery-like-closest#comments</comments>
		<pubDate>Wed, 02 May 2012 08:55:08 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=496</guid>
		<description><![CDATA[Here is a very simple asp.net .Closest() function like the jquery one. public static class ControlExtensions { public static Control Closest(this Control control, Type type ){ Control closest = null; Control parent = control.Parent; while(closest == null &#38;&#38; parent != null){ if(parent.GetType().ToString() == type.ToString()){ return parent; } parent = parent.Parent; } return null; } }]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/net/c/asp-net-jquery-like-closest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore SQL .bak file to a different server</title>
		<link>http://www.fruitbatscode.com/sql/restore-sql-bak-file-to-a-different-server</link>
		<comments>http://www.fruitbatscode.com/sql/restore-sql-bak-file-to-a-different-server#comments</comments>
		<pubDate>Wed, 28 Mar 2012 07:48:39 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=492</guid>
		<description><![CDATA[To restore a sql.bak file you first need to find the name of the database files: RESTORE FILELISTONLY FROM DISK = 'full path to your .bak file' This will show you the names needed for extracting the original files to your sql server directory: RESTORE DATABASE MyNewDBname     FROM DISK = 'full path to [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/sql/restore-sql-bak-file-to-a-different-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Queue that only excepts N items</title>
		<link>http://www.fruitbatscode.com/net/c/queue-that-only-excepts-n-items</link>
		<comments>http://www.fruitbatscode.com/net/c/queue-that-only-excepts-n-items#comments</comments>
		<pubDate>Tue, 20 Mar 2012 20:05:19 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[My Stuff]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=485</guid>
		<description><![CDATA[I am trying to keep a list of the last 10 pages a user has been too. I tried to use Stack but it doesn&#8217;t support a fixed length so here is a dirty little class to only keep the last N items. Yes I know its a bit dirty! public class NStack&#60;T&#62; { public int MaxEntries { get; set; } public List&#60;T&#62; Items = new List&#60;T&#62;(); public void Add(T value) [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/net/c/queue-that-only-excepts-n-items/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find an IFrames id</title>
		<link>http://www.fruitbatscode.com/javascript/find-an-iframes-id</link>
		<comments>http://www.fruitbatscode.com/javascript/find-an-iframes-id#comments</comments>
		<pubDate>Tue, 20 Mar 2012 11:02:51 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=482</guid>
		<description><![CDATA[There is an HTML5 (originally IE extension) property frameElement on window: alert(frameElement.id); But this is not globally supported; you won&#8217;t get it in Google Chrome (at the time of writing; version 7) or in older versions of the other popular non-IE browsers. Without this extension, you have to do it manually. Go to the parent window, and search [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/javascript/find-an-iframes-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using WinMerge with Team Foundation Server (TFS)</title>
		<link>http://www.fruitbatscode.com/uncategorized/using-winmerge-with-team-foundation-server-tfs</link>
		<comments>http://www.fruitbatscode.com/uncategorized/using-winmerge-with-team-foundation-server-tfs#comments</comments>
		<pubDate>Wed, 07 Mar 2012 09:26:57 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=479</guid>
		<description><![CDATA[Here is a step-by-step instruction how to configure Visual Studio with Team Foundation Server source control to use WinMerge instad of default viewer for file diffs and merging. The original instruction was taken from Neovolve site In Visual Studio do the following: Click on Tools menu Click on Options menu item Expand Source Control tree [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/uncategorized/using-winmerge-with-team-foundation-server-tfs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c# Coalesce function</title>
		<link>http://www.fruitbatscode.com/net/c/c-coalesce-function</link>
		<comments>http://www.fruitbatscode.com/net/c/c-coalesce-function#comments</comments>
		<pubDate>Wed, 16 Nov 2011 09:18:25 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[My Stuff]]></category>
		<category><![CDATA[Util-a-day]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=474</guid>
		<description><![CDATA[When you&#8217;ve been working heavily with c# for a few days, coalesce jumps into your head for a lot of c# issues. Heres a little helper to provide coalesce in .net /// &#60;summary&#62; /// Returns the first non null value, same as SQL's COALESCE() /// &#60;/summary&#62; /// &#60;param name=&#34;p&#34;&#62;Args array&#60;/param&#62; /// &#60;returns&#62;First non null value&#60;/returns&#62; [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/net/c/c-coalesce-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; Syncing select options</title>
		<link>http://www.fruitbatscode.com/javascript/jquery/jquery-syncing-select-options</link>
		<comments>http://www.fruitbatscode.com/javascript/jquery/jquery-syncing-select-options#comments</comments>
		<pubDate>Fri, 04 Nov 2011 10:01:46 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[My Stuff]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=467</guid>
		<description><![CDATA[I had a requirement for a series of select boxes that required the related one to only allow selections above the first. I created a little utility function that enables and disables the options based on a function you supply.  Usage is pretty simple. Pass in the first and second select as jQuery objects, then [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/javascript/jquery/jquery-syncing-select-options/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UAD 9 &#8211; Numbers To Words</title>
		<link>http://www.fruitbatscode.com/net/c/uad-9-numbers-to-words</link>
		<comments>http://www.fruitbatscode.com/net/c/uad-9-numbers-to-words#comments</comments>
		<pubDate>Sun, 13 Mar 2011 11:46:13 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Util-a-day]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=454</guid>
		<description><![CDATA[Utility to take a number and convert it to the english text. Not mine this one but lost the original url! If it&#8217;s yours let me know public class NumberToWords &#123; // Single-digit and small number names private string&#91;&#93; _smallNumbers = new string&#91;&#93; &#123; &#34;Zero&#34;, &#34;One&#34;, &#34;Two&#34;, &#34;Three&#34;, &#34;Four&#34;, &#34;Five&#34;, &#34;Six&#34;, &#34;Seven&#34;, &#34;Eight&#34;, &#34;Nine&#34;, &#34;Ten&#34;, [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/net/c/uad-9-numbers-to-words/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UAD8: Query String Builder</title>
		<link>http://www.fruitbatscode.com/net/c/uad8-query-string-builder</link>
		<comments>http://www.fruitbatscode.com/net/c/uad8-query-string-builder#comments</comments>
		<pubDate>Sun, 13 Mar 2011 11:40:21 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[My Stuff]]></category>
		<category><![CDATA[Util-a-day]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=451</guid>
		<description><![CDATA[Ever had controls that need to add to the Query String but not duplicate or erase what&#8217;s already there? This is a little utility I dug out and just changed to use a generic dictionary recently. Just use it as you would a normal dictionary. When you instantiate a copy it picks up the current [...]]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/net/c/uad8-query-string-builder/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; Get a childs relative position</title>
		<link>http://www.fruitbatscode.com/javascript/jquery/jquery-get-a-childs-relative-position</link>
		<comments>http://www.fruitbatscode.com/javascript/jquery/jquery-get-a-childs-relative-position#comments</comments>
		<pubDate>Thu, 13 Jan 2011 09:53:31 +0000</pubDate>
		<dc:creator>fbis</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.fruitbatscode.com/?p=440</guid>
		<description><![CDATA[When processing sortables etc. Its handy to be able to get the index of individual items. Heres how you find the position of an li within a list: var position = $item.parent&#40;&#41;.find&#40;'&#62; li'&#41;.index&#40;$item&#41; + 1;]]></description>
		<wfw:commentRss>http://www.fruitbatscode.com/javascript/jquery/jquery-get-a-childs-relative-position/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

