<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>theknowledgebase</title>
	<link>http://thasodd.com</link>
	<description></description>
	<lastBuildDate>Tue, 17 May 2011 17:46:50 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0.4" -->

	<item>
		<title>Nhibernate Quickie: Criteria Get Results Row Count</title>
		<description><![CDATA[This is a simple and straightforward method I put in my base repositories to retrieve the row count of the results from an nhibernate criteria query. protected int GetResultsCount(ICriteria criteria) { criteria.SetProjection(Projections.RowCount()); var eventsCount = criteria.UniqueResult&#60;int&#62;(); return eventsCount; }]]></description>
		<link>http://thasodd.com/2011/04/nhibernate-quickie-criteria-get-results-row-count/</link>
			</item>
	<item>
		<title>Rss Reader</title>
		<description><![CDATA[I wrote this RssReader to use in a dot net nuke site, but quickly found uses for it in a lot of other sites. This reader parses the rss stream to an xml document, then reads the nodes specified and returns a collection of rss items. This oen is easily customizable with whatever you want [...]]]></description>
		<link>http://thasodd.com/2011/04/rss-reader/</link>
			</item>
	<item>
		<title>XML Extension Methods</title>
		<description><![CDATA[Here&#8217;s a collection of xml extensions I wrote to help make using and navigating xml documents a lot easier. public static XmlNode FindNode(this XmlDocument doc, string nodeName) { if (doc == null) return null; XmlNode node = doc.DocumentElement; return node.FindNode(nodeName); } public static XmlNode FindNode(this XmlNode parentNode, string name) { if (parentNode == null) return [...]]]></description>
		<link>http://thasodd.com/2011/04/xml-extension-methods/</link>
			</item>
	<item>
		<title>Linquickie: Extending Distinct By</title>
		<description><![CDATA[Here is a quick extension method to sort a collection by a given property specified though generics. The extension method then uses a hashset to determine duplicates. This is excellent when paired with unique ids. public static IEnumerable&#60;T&#62; DistinctBy&#60;T, TKey&#62;(this IEnumerable&#60;T&#62; source, Func&#60;T, TKey&#62; keySelector) { HashSet&#60;TKey&#62; knownKeys = new HashSet&#60;TKey&#62;(); foreach (T element in [...]]]></description>
		<link>http://thasodd.com/2011/04/linquickie-extending-distinct-by/</link>
			</item>
	<item>
		<title>Monitoring activity with custom jQuery events</title>
		<description><![CDATA[I needed to refresh a particular message every so often but I didn&#8217;t want to overload the server with requests, so I looked up clever ways of starting and stopping my ajax calls. I recall facebook only updates when you perform some action on the page. I thought an implementation similar to this would be [...]]]></description>
		<link>http://thasodd.com/2011/04/monitoring-activity-with-custom-jquery-events/</link>
			</item>
	<item>
		<title>Using Linq to get property name</title>
		<description><![CDATA[Databinding is a huge part of any MVC or MVVM pattern. Usually this requires using a string representation of a property name in order to determine how a model is bound to its control. Using strings to control this databinding raises a couple key issues. 1.) Refactoring said property will not automatically update the control, [...]]]></description>
		<link>http://thasodd.com/2011/04/using-linq-to-get-property-name/</link>
			</item>
	<item>
		<title>Easily create a jQuery Dynamic Spotlight</title>
		<description><![CDATA[The requirement for me was to create an overlay that dimmed out all the content around a video. While there are plenty implementations of this I did not find any tutorials or solutions posted, which is kind of boggling to me. So I tried to follow a few similar examples and tried to modify them [...]]]></description>
		<link>http://thasodd.com/2011/03/easily-create-a-jquery-dynamic-spotlight/</link>
			</item>
	<item>
		<title>Nhibernate Quickie 1/20/11</title>
		<description><![CDATA[Here is a quick general purpose nhibernate criteria call to retrieve a list of results where the id is in a list. It is written as a generic method that I placed in my base repository and can use it for all of my domain objects. So T resolves to the type of domain object [...]]]></description>
		<link>http://thasodd.com/2011/01/nhibernate-quickie-12011/</link>
			</item>
	<item>
		<title>Get latitude and longitude from Google</title>
		<description><![CDATA[Here&#8217;s two quick methods to get the latitude and longitude of an address. Google takes any address in and tries to find the most appropriate location, regardless of typos. Google also gives you several locations to choose from, say a more northerly point vs a more westerly one. public bool GetCoordinates(string address, out float latitude, [...]]]></description>
		<link>http://thasodd.com/2011/01/get-latitude-and-longitude-from-google/</link>
			</item>
	<item>
		<title>Locking a controllers action per user</title>
		<description><![CDATA[I had a problem today where I needed to prevent mulitple mouse clicks from happen and making duplicate submit requests to the server. Since I don&#8217;t like reinventing the wheel, even though I usually do, I search online for examples of what other people were doing in my case. I knew I couldn&#8217;t be the [...]]]></description>
		<link>http://thasodd.com/2011/01/locking-a-controllers-action-per-user/</link>
			</item>
</channel>
</rss>

