<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Gautam Jain's Blog</title>
	
	<link>http://www.bloggersworld.com</link>
	<description>software, productivity &amp; more</description>
	<lastBuildDate>Fri, 13 Jan 2012 10:13:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/bloggersworldcom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="bloggersworldcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">bloggersworldcom</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Git for Dummies</title>
		<link>http://www.bloggersworld.com/index.php/2012/01/13/git-for-dummies/</link>
		<comments>http://www.bloggersworld.com/index.php/2012/01/13/git-for-dummies/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 10:13:51 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=329</guid>
		<description><![CDATA[Git is a free &#038; open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Here is a fantastic guide for beginners: http://rogerdudler.github.com/git-guide/
Thanks.
]]></description>
			<content:encoded><![CDATA[<p>Git is a free &#038; open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.</p>
<p>Here is a fantastic guide for beginners: <a href="http://rogerdudler.github.com/git-guide/">http://rogerdudler.github.com/git-guide/</a></p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2012/01/13/git-for-dummies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laptop, Desktop &amp; Ergonomics</title>
		<link>http://www.bloggersworld.com/index.php/2011/08/21/laptop-desktop-ergonomics/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/08/21/laptop-desktop-ergonomics/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 11:10:53 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=327</guid>
		<description><![CDATA[From year 2005 to 2008, I worked whole day only on a laptop. That was a big mistake. I was not aware that laptops are very bad for your neck, shoulders &#038; arms. More over, they drastically reduce your productivity compared to a desktop (especially a big monitor).
Don&#8217;t underestimate the productivity boost that you would <a href="http://www.bloggersworld.com/index.php/2011/08/21/laptop-desktop-ergonomics/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>From year 2005 to 2008, I worked whole day only on a laptop. That was a big mistake. I was not aware that laptops are very bad for your neck, shoulders &#038; arms. More over, they drastically reduce your productivity compared to a desktop (especially a big monitor).</p>
<p>Don&#8217;t underestimate the productivity boost that you would get by using a large monitor with a regular keyboard &#038; a mouse. It doesn&#8217;t matter if you don&#8217;t have a desktop. Just buy, no, I would say &#8216;Invest&#8217; in an external monitor, keyboard &#038; a mouse and connect them to your laptop. There you go! You can then work for longer hours, get more work done &#038; you will get rid of future neck-aches, shoulder-aches etc.</p>
<p>Don&#8217;t hesitate to do this shift immediately. I have recently seen several companies supplying laptops to their employees instead of desktop. The employees spend whole day on small laptop screens &#038; anti-ergnonomic laptop&#8217;s keyboard. If you want your employees to get more work done, then get an external monitor for everyone. Seriously!</p>
<p>Thanks <img src='http://www.bloggersworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/08/21/laptop-desktop-ergonomics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notezilla @ 40% discount only on Wed, 17th Aug 2011</title>
		<link>http://www.bloggersworld.com/index.php/2011/08/14/notezilla-40-discount-only-on-wed-17th-aug-2011/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/08/14/notezilla-40-discount-only-on-wed-17th-aug-2011/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 16:32:00 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Deals]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=325</guid>
		<description><![CDATA[
Hello! Conceptworld Corporation will soon be featuring Notezilla on Bits du Jour, a &#8216;deal-of-the-day&#8217; website that offers fantastic, one-time discounts on a variety of great products.  Bits du Jour will be offering Notezilla on Wednesday 17th August, 2011 at dramatically reduced price of $17.95. The normal purchase price for Notezilla is $29.95!
Also Notezilla Portable <a href="http://www.bloggersworld.com/index.php/2011/08/14/notezilla-40-discount-only-on-wed-17th-aug-2011/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.conceptworld.com/Notezilla"><img src="http://www.conceptworld.com/blog/uploads/2010/08/Boxshot_Medium.png" alt="Notezilla Sticky Notes" title="Notezilla Sticky Notes" width="151" height="175" class="aligncenter size-full wp-image-243" /></a></p>
<p>Hello! Conceptworld Corporation will soon be featuring <strong>Notezilla </strong>on <a href="http://www.bitsdujour.com/saf=500404/"  target="_blank">Bits du Jour</a>, a &#8216;deal-of-the-day&#8217; website that offers fantastic, one-time discounts on a variety of great products.  Bits du Jour will be offering Notezilla on Wednesday 17th August, 2011 at dramatically reduced price of $17.95. The normal purchase price for Notezilla is $29.95!</p>
<p>Also Notezilla Portable will be available for $29.95 instead of $49.95 on the same day.</p>
<p><a href="http://www.bitsdujour.com/software/notezilla/saf=500404/" target="_blank">Click here</a> to visit the Notezilla discount page.</p>
<p>If you have any friends or family members who might be interested in Notezilla please let them know about this sale. It will only be available on Bits du Jour for a single day only. Just tell them to visit <a href="http://www.bitsdujour.com/software/notezilla/saf=500404/"  target="_blank">http://www.bitsdujour.com</a> on Wednesday 17th August, 2011 to get Notezilla for $17.95. If you visit <a href="http://www.bitsdujour.com/software/notezilla/saf=500404/"  target="_blank">http://www.bitsdujour.com</a> right now you can click the &#8216;I want this&#8217; button and you&#8217;ll be sure not to miss the deal!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/08/14/notezilla-40-discount-only-on-wed-17th-aug-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Localization in ASP.Net MVC Projects</title>
		<link>http://www.bloggersworld.com/index.php/2011/08/11/localization-in-asp-net-mvc-projects/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/08/11/localization-in-asp-net-mvc-projects/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 11:10:30 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ASP.Net MVC]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=323</guid>
		<description><![CDATA[Hello all,
As I am new to .Net Framework &#038; ASP.Net MVC, I was looking in to various articles that would give clear step by step instructions as to how to add localization to ASP.Net MVC Projects. Especially, localization of string resources.
Here is a fantastic article on Localization in ASP.Net MVC projects.
Thanks to the author.
]]></description>
			<content:encoded><![CDATA[<p>Hello all,</p>
<p>As I am new to .Net Framework &#038; ASP.Net MVC, I was looking in to various articles that would give clear step by step instructions as to how to add localization to ASP.Net MVC Projects. Especially, localization of string resources.</p>
<p>Here is a fantastic article on <a href="http://www.devproconnections.com/article/aspnet2/ASP-NET-MVC-Localization">Localization in ASP.Net MVC projects</a>.</p>
<p>Thanks to the author.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/08/11/localization-in-asp-net-mvc-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>40% off on RecentX Launcher only on 26th Jul 2011</title>
		<link>http://www.bloggersworld.com/index.php/2011/07/25/40-off-on-recentx-launcher-only-on-26th-jul-2011/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/07/25/40-off-on-recentx-launcher-only-on-26th-jul-2011/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 09:27:22 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Deals]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=321</guid>
		<description><![CDATA[
Hello! Conceptworld Corporation will soon be featuring RecentX on Bits du Jour, a &#8216;deal-of-the-day&#8217; website that offers fantastic, one-time discounts on a variety of great products.  Bits du Jour will be offering RecentX on Tuesday 26th July, 2011 at dramatically reduced price of $17.95. The normal purchase price for RecentX is $29.95!
Click here to <a href="http://www.bloggersworld.com/index.php/2011/07/25/40-off-on-recentx-launcher-only-on-26th-jul-2011/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.conceptworld.com/RecentX"><img src="http://www.conceptworld.com/blog/uploads/2010/08/Boxshot_Medium1.png" alt="RecentX Launcher" title="RecentX Launcher" width="151" height="175" class="aligncenter size-full wp-image-251" /></a></p>
<p>Hello! Conceptworld Corporation will soon be featuring <strong>RecentX</strong> on <a href="http://www.bitsdujour.com/software/recentx-new-version/saf=500404/"  target="_blank">Bits du Jour</a>, a &#8216;deal-of-the-day&#8217; website that offers fantastic, one-time discounts on a variety of great products.  Bits du Jour will be offering RecentX on Tuesday 26th July, 2011 at dramatically reduced price of $17.95. The normal purchase price for RecentX is $29.95!</p>
<p><a href="http://www.bitsdujour.com/software/recentx-new-version/saf=500404/" target="_blank">Click here</a> to visit the RecentX discount page.</p>
<p>If you have any friends or family members who might be interested in RecentX please let them know about this sale. The deal will only be available on Bits du Jour for a single day only. Just tell them to visit <a href="http://www.bitsdujour.com/software/recentx-new-version/saf=500404/"  target="_blank">http://www.bitsdujour.com</a> on Tuesday 26th July 2011 to get RecentX for $17.95. If you visit <a href="http://www.bitsdujour.com/software/recentx-new-version/saf=500404/"  target="_blank">http://www.bitsdujour.com</a> right now you can click the &#8216;I want this&#8217; button and you&#8217;ll be sure not to miss the deal!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/07/25/40-off-on-recentx-launcher-only-on-26th-jul-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CHARFORMAT to LOGFONT</title>
		<link>http://www.bloggersworld.com/index.php/2011/06/13/charformat-to-logfont/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/06/13/charformat-to-logfont/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 05:09:11 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Windows API]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=318</guid>
		<description><![CDATA[Thought someone might require this conversion.

CharformatToLogfont(CHARFORMAT &#038; cf, LOGFONT &#038; lf, COLORREF &#038; cr)
{

	lf.lfCharSet = cf.bCharSet;
	lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
	lf.lfEscapement = 0;
	lf.lfOrientation = 0;
	lf.lfOutPrecision = OUT_DEFAULT_PRECIS;
	lf.lfQuality = DEFAULT_QUALITY;
	lf.lfPitchAndFamily = DEFAULT_PITCH;

	if ( (cf.dwEffects &#038; CFE_BOLD) == CFE_BOLD)
	{
		lf.lfWeight = FW_BOLD;
	}

	CDC dc;
	dc.CreateDC(_T("DISPLAY"),NULL,NULL,NULL);
	lf.lfHeight = -MulDiv(cf.yHeight/20, dc.GetDeviceCaps(LOGPIXELSY), 72);
	dc.DeleteDC();

	lf.lfUnderline = ( (cf.dwEffects &#038; CFE_UNDERLINE) == CFE_UNDERLINE);
	lf.lfStrikeOut = ( (cf.dwEffects &#038; CFE_STRIKEOUT) == CFE_STRIKEOUT);
	lf.lfItalic <a href="http://www.bloggersworld.com/index.php/2011/06/13/charformat-to-logfont/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Thought someone might require this conversion.</p>
<pre lang="cpp">
CharformatToLogfont(CHARFORMAT &#038; cf, LOGFONT &#038; lf, COLORREF &#038; cr)
{

	lf.lfCharSet = cf.bCharSet;
	lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
	lf.lfEscapement = 0;
	lf.lfOrientation = 0;
	lf.lfOutPrecision = OUT_DEFAULT_PRECIS;
	lf.lfQuality = DEFAULT_QUALITY;
	lf.lfPitchAndFamily = DEFAULT_PITCH;

	if ( (cf.dwEffects &#038; CFE_BOLD) == CFE_BOLD)
	{
		lf.lfWeight = FW_BOLD;
	}

	CDC dc;
	dc.CreateDC(_T("DISPLAY"),NULL,NULL,NULL);
	lf.lfHeight = -MulDiv(cf.yHeight/20, dc.GetDeviceCaps(LOGPIXELSY), 72);
	dc.DeleteDC();

	lf.lfUnderline = ( (cf.dwEffects &#038; CFE_UNDERLINE) == CFE_UNDERLINE);
	lf.lfStrikeOut = ( (cf.dwEffects &#038; CFE_STRIKEOUT) == CFE_STRIKEOUT);
	lf.lfItalic = ( (cf.dwEffects &#038; CFE_ITALIC) == CFE_ITALIC);

	lf.lfWidth = 0;
	_tcscpy_s(lf.lfFaceName, LF_FACESIZE, cf.szFaceName);

	//save color separately because LOGFONT does not accept color
	cr = cf.crTextColor;

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/06/13/charformat-to-logfont/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LOGFONT to CHARFORMAT</title>
		<link>http://www.bloggersworld.com/index.php/2011/06/13/logfont-to-charformat/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/06/13/logfont-to-charformat/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 05:06:59 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Windows API]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=314</guid>
		<description><![CDATA[Thought someone might require this conversion.


LogfontToCharformat(LOGFONT &#038; lf, COLORREF &#038; cr, CHARFORMAT &#038; cf)
{

	cf.cbSize = sizeof(CHARFORMAT);
	cf.dwMask = CFM_COLOR &#124; CFM_FACE &#124; CFM_SIZE &#124; CFM_CHARSET
        &#124; CFM_BOLD &#124; CFM_ITALIC &#124; CFM_UNDERLINE &#124; CFM_STRIKEOUT &#124; CFM_OFFSET;
	cf.dwEffects = 0;

	if (lf.lfWeight >= FW_BOLD)
	{
		cf.dwEffects &#124;= CFE_BOLD;
	}

	if (lf.lfUnderline)
	{
		cf.dwEffects &#124;= CFE_UNDERLINE;
	}

	if (lf.lfItalic)
	{
		cf.dwEffects &#124;= CFE_ITALIC;
	}

	if (lf.lfStrikeOut)
	{
		cf.dwEffects <a href="http://www.bloggersworld.com/index.php/2011/06/13/logfont-to-charformat/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Thought someone might require this conversion.</p>
<pre lang="cpp">

LogfontToCharformat(LOGFONT &#038; lf, COLORREF &#038; cr, CHARFORMAT &#038; cf)
{

	cf.cbSize = sizeof(CHARFORMAT);
	cf.dwMask = CFM_COLOR | CFM_FACE | CFM_SIZE | CFM_CHARSET
        | CFM_BOLD | CFM_ITALIC | CFM_UNDERLINE | CFM_STRIKEOUT | CFM_OFFSET;
	cf.dwEffects = 0;

	if (lf.lfWeight >= FW_BOLD)
	{
		cf.dwEffects |= CFE_BOLD;
	}

	if (lf.lfUnderline)
	{
		cf.dwEffects |= CFE_UNDERLINE;
	}

	if (lf.lfItalic)
	{
		cf.dwEffects |= CFE_ITALIC;
	}

	if (lf.lfStrikeOut)
	{
		cf.dwEffects |= CFE_STRIKEOUT;
	}

	//temporary create DC
	CDC dc;
	dc.CreateDC(_T("DISPLAY"),NULL,NULL,NULL);
	cf.yHeight = 20*long( 0.5 + fabs(double(72*lf.lfHeight)/dc.GetDeviceCaps(LOGPIXELSY)));
	dc.DeleteDC();

	cf.yOffset = 0;
	cf.crTextColor = cr;
	cf.bCharSet = lf.lfCharSet;
	cf.bPitchAndFamily = lf.lfPitchAndFamily;
	_tcscpy_s(cf.szFaceName, LF_FACESIZE, lf.lfFaceName);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/06/13/logfont-to-charformat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FindMySoft awards 5 star to Quick Notes Plus</title>
		<link>http://www.bloggersworld.com/index.php/2011/04/27/findmysoft-awards-5-star-to-quick-notes-plus/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/04/27/findmysoft-awards-5-star-to-quick-notes-plus/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 05:30:25 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Products]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=311</guid>
		<description><![CDATA[I had very little trust on download sites. Mainly because they just pull in product information from PAD files without adding any special value for the downloaders &#038; the vendors.  Download.com is the #1 amongst download sites but they can do lot better.
To our surprise FindMySoft.com is different. It writes exclusive reviews about a <a href="http://www.bloggersworld.com/index.php/2011/04/27/findmysoft-awards-5-star-to-quick-notes-plus/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I had very little trust on download sites. Mainly because they just pull in product information from PAD files without adding any special value for the downloaders &#038; the vendors.  <a href="www.download.com">Download.com</a> is the #1 amongst download sites but they can do lot better.</p>
<p>To our surprise <a href="http://www.findmysoft.com">FindMySoft.com</a> is different. It writes exclusive reviews about a software product.</p>
<p>They recently awarded 5 star to Quick Notes Plus and also <a href="http://quick-notes-plus.findmysoft.com/review/">wrote a review</a> comparing our premium sticky notes software <a href="http://www.conceptworld.com/Notezilla">Notezilla</a>.</p>
<p><a href="http://quick-notes-plus.findmysoft.com/review/"><img src="http://www.bloggersworld.com/wp-content/uploads/2011/04/review_4_Quick-Notes-Plus_award.png" alt="5 star" title="Quick Notes Plus Rating" width="160" height="57" class="aligncenter size-full wp-image-312" /></a></p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/04/27/findmysoft-awards-5-star-to-quick-notes-plus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linq – Distinct by a particular column</title>
		<link>http://www.bloggersworld.com/index.php/2011/04/16/linq-distinct-by-a-particular-column/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/04/16/linq-distinct-by-a-particular-column/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 13:28:51 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=301</guid>
		<description><![CDATA[I had a list of tags for a particular user. I wanted to show only unique tags. I initially thought there would be something an inbuilt &#8216;distinct&#8217; operator in Linq. Unfortunately not. I then discovered the Distinct() function. But it doesn&#8217;t support filtering the results by a particular column. 
Thanks to this StackOverflow question that <a href="http://www.bloggersworld.com/index.php/2011/04/16/linq-distinct-by-a-particular-column/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I had a list of tags for a particular user. I wanted to show only unique tags. I initially thought there would be something an inbuilt &#8216;distinct&#8217; operator in Linq. Unfortunately not. I then discovered the Distinct() function. But it doesn&#8217;t support filtering the results by a particular column. </p>
<p>Thanks to this <a href="http://stackoverflow.com/questions/1556778/how-to-use-a-distinct-on-a-column-using-linq">StackOverflow question</a> that set my direction. It says that I must use the &#8216;group by&#8217; operator, which I did. </p>
<p>Following is the code that I ended up with:</p>
<pre lang="csharp" line="1">
//distinct tags for a particular user
var tags = from t in _db.Tags
               where t.UserId == userId
               group t by t.Name into g
               select g.FirstOrDefault();
</pre>
<p>Since the query returns a group, we must select the first item in the group. Hence FirstOrDefault().</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/04/16/linq-distinct-by-a-particular-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Godaddy’s CEO kills an Elephant</title>
		<link>http://www.bloggersworld.com/index.php/2011/04/12/godaddys-ceo-kills-an-elephant/</link>
		<comments>http://www.bloggersworld.com/index.php/2011/04/12/godaddys-ceo-kills-an-elephant/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:30:30 +0000</pubDate>
		<dc:creator>Gautam Jain</dc:creator>
				<category><![CDATA[Heal The World]]></category>

		<guid isPermaLink="false">http://www.bloggersworld.com/?p=299</guid>
		<description><![CDATA[Last week Godaddy&#8217;s CEO was in news for his controversial act of Killing an elephant.
Now, I am not in favor of killing (obviously). But how is this different from killing of millions of chickens, goats, pigs, turtle, fishes, lobsters etc for eating, clothing etc.
Somebody please explain? What am I missing?
]]></description>
			<content:encoded><![CDATA[<p>Last week Godaddy&#8217;s CEO was in news for his controversial act of <a href="http://mashable.com/2011/03/31/godaddy-ceo-elephant/">Killing an elephant</a>.</p>
<p>Now, I am not in favor of killing (obviously). But how is this different from killing of millions of chickens, goats, pigs, turtle, fishes, lobsters etc for eating, clothing etc.</p>
<p>Somebody please explain? What am I missing?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggersworld.com/index.php/2011/04/12/godaddys-ceo-kills-an-elephant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

