<?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>CowFarm.NET</title>
	<atom:link href="http://cowfarm.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://cowfarm.net</link>
	<description>Because Cows Program Too or Moo... something like that.</description>
	<lastBuildDate>Fri, 09 Jul 2010 15:34:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Consume a wordpress rss feed in C#</title>
		<link>http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/</link>
		<comments>http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:22:02 +0000</pubDate>
		<dc:creator>Andrew Kharlamov</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[how do I load an rss feed in c#]]></category>
		<category><![CDATA[load rssfeed C#]]></category>
		<category><![CDATA[rss feed C#]]></category>
		<category><![CDATA[rssfeed in c#]]></category>
		<category><![CDATA[wordpress feed]]></category>
		<category><![CDATA[wordpress rss feed in c#]]></category>

		<guid isPermaLink="false">http://cowfarm.net/?p=396</guid>
		<description><![CDATA[Tweet This! Send this page to Print Friendly Subscribe to the comments for this post? Share this on Reddit Blog this on Blogger Share this on LinkedIn Share this on BobrDobr Digg this! Post on Google Buzz Share this on del.icio.us I couldn&#8217;t find a simple example of consuming a WordPress Blog Feed in C#. [...]]]></description>
			<content:encoded><![CDATA[

<div class="shr-bookmarks shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Consume+a+wordpress+rss+feed+in+C%23+-+http://b2l.me/9xry4&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;title=Consume+a+wordpress+rss+feed+in+C%23" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;n=Consume+a+wordpress+rss+feed+in+C%23&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;title=Consume+a+wordpress+rss+feed+in+C%23&amp;summary=I%20couldn%27t%20find%20a%20simple%20example%20of%20consuming%20a%20Wordpress%20Blog%20Feed%20in%20C%23.%20So%20I%20decided%20to%20write%20out%20my%20own%3A%0D%0A%0D%0A%0D%0AHere%20is%20an%20example%20to%20get%20you%20started.%20I%20wrote%20it%20in%20three%20parts%3A%0D%0A%0D%0AA%20Class%20that%20Consumes%20a%20Feed%20%28FeedReader%29%0D%0AAn%20Object%20representing%20a%20Feed%20Item%20%28FeedViewModel%29.%0D%0AA%20quick%20Unit%20Test%20%28Fe&amp;source=CowFarm.NET" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;title=Consume+a+wordpress+rss+feed+in+C%23" rel="nofollow" class="external" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;title=Consume+a+wordpress+rss+feed+in+C%23" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/&amp;title=Consume+a+wordpress+rss+feed+in+C%23" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<p>I couldn&#8217;t find a simple example of consuming a WordPress Blog Feed in C#. So I decided to write out my own:</p>
<p>Here is an example to get you started. I wrote it in three parts:</p>
<p><strong>A Class that Consumes a Feed</strong> (FeedReader)<br />
<strong>An Object representing a Feed Item</strong> (FeedViewModel).<br />
<strong>A quick Unit Test</strong> (FeedReaderTests)</p>
<pre name="code" class="c-sharp">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FeedExample
{

	public class FeedReader
	{
		public static IList&lt;FeedViewModel&gt; GetBlogFeed(string feedUrl, int feedCount)
		{
			var doc = XDocument.Load(feedUrl); //1

			var feeds = doc.Descendants("item").Select(x => //2
					new FeedViewModel
					{
						Title = x.Element("title").Value, //3
						PublishedDate = DateTime.Parse(x.Element("pubDate").Value),
						Url = x.Element("link").Value
					} //4
					).OrderByDescending(x=> x.PublishedDate) //5
					.Take(feedCount); //6

			return feeds.ToList();
		}
	}

	[TestClass]
	public class FeedReaderTests
	{
		[TestMethod]
		public void FeedReader_Works()
		{
			var feeds = FeedReader.GetBlogFeed("http://cowfarm.net/feed",1); 

			Assert.IsNotNull(feeds); //7
		}
	}

	public class FeedViewModel
	{
		public string Title { get; set; }
		public string Url { get; set; }
		public DateTime PublishedDate { get; set; }
	}

}
</pre>
<p>Here is what is being accomplished here:</p>
<pre name="code" class="c-sharp">
//1. Load feed via a feedUrl

//2. Get all the "items" in the feed.

//3. Get title, pubDate, and link elements.

//4. Put them into an object (FeedViewModel).

//5. Order them by the pubDate (FeedViewModel.PublishedDate).

//6. Only get the amount specified, the top (1, 2, 3, etc.) via feedCount.

//7. Convert the feeds to a List and return them.

//8. Test that you got something back.
</pre>
<p>Here is a quick hierarchy of a really bare feed:<br />
<code><br />
- item<br />
   -- title<br />
   -- link<br />
   -- comments<br />
   -- pubDate<br />
   -- dc:creator<br />
   -- category<br />
   -- guid<br />
   -- description<br />
   -- content:encoded<br />
</code></p>
<p>Remember, the code above is for demonstration, make sure you handle and dispose your objects properly!</p>
]]></content:encoded>
			<wfw:commentRss>http://cowfarm.net/396/consume-wordpress-rss-feed-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Syntax Highlighting for SCSS</title>
		<link>http://cowfarm.net/379/css-syntax-highlighting-for-scss/</link>
		<comments>http://cowfarm.net/379/css-syntax-highlighting-for-scss/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 15:43:41 +0000</pubDate>
		<dc:creator>Andrew Kharlamov</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Syntax Highlighting for SCSS]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[Sassy Scss]]></category>
		<category><![CDATA[SCSS]]></category>
		<category><![CDATA[SCSS Intellisense]]></category>
		<category><![CDATA[SCSS Syntax Highlight]]></category>
		<category><![CDATA[SCSS Syntax Highlighting]]></category>
		<category><![CDATA[Syntax Highlighting]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://cowfarm.net/?p=379</guid>
		<description><![CDATA[Tweet This! Send this page to Print Friendly Subscribe to the comments for this post? Share this on Reddit Blog this on Blogger Share this on LinkedIn Share this on BobrDobr Digg this! Post on Google Buzz Share this on del.icio.us I wrote a quick little extension for Visual Studio 2010, which allows you to [...]]]></description>
			<content:encoded><![CDATA[

<div class="shr-bookmarks shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=CSS+Syntax+Highlighting+for+SCSS+-+http://b2l.me/9gy3e&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://cowfarm.net/379/css-syntax-highlighting-for-scss/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;title=CSS+Syntax+Highlighting+for+SCSS" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;n=CSS+Syntax+Highlighting+for+SCSS&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;title=CSS+Syntax+Highlighting+for+SCSS&amp;summary=I%20wrote%20a%20quick%20little%20extension%20for%20Visual%20Studio%202010%2C%20which%20allows%20you%20to%20View%20SCSS%20with%20CSS%202.1%20Syntax%20Highlighting%20and%20Intellisense.%20It%20can%20also%20be%20easily%20uninstalled%20through%20the%20Extension%20Manager.%0D%0A%0D%0AI%20basically%20took%20the%20values%20in%20my%20Registry%20%28See%20Below%29%20and%20duplicated%20them%20for%20SCSS.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A&amp;source=CowFarm.NET" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;title=CSS+Syntax+Highlighting+for+SCSS" rel="nofollow" class="external" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;title=CSS+Syntax+Highlighting+for+SCSS" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cowfarm.net/379/css-syntax-highlighting-for-scss/&amp;title=CSS+Syntax+Highlighting+for+SCSS" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<p>I wrote a quick little extension for <strong>Visual Studio 2010</strong>, which allows you to View SCSS with CSS 2.1 Syntax Highlighting and Intellisense. It can also be easily uninstalled through the Extension Manager.</p>
<p>I basically took the values in my Registry (See Below) and duplicated them for SCSS.</p>
<p><img src="http://cowfarm.net/ScssInCss/CssPackageKey.PNG" alt="Css Package Key" /></p>
<p><img src="http://cowfarm.net/ScssInCss/CssPackageKeyEditor.PNG" alt="Css Package Editor Key" /></p>
<p><strong>Extension Source:</strong></p>
<pre name="code" class="c++">
[$RootKey$\Languages\File Extensions\.scss]
@="{A764E898-518D-11d2-9A89-00C04F79EFC3}"

[$RootKey$\Editors\{A764E89A-518D-11d2-9A89-00C04F79EFC3}\Extensions]
"scss"=dword:00000040
</pre>
<p><strong style="color:maroon;">READ BEFORE INSTALL!:</strong><br />
<span style="color:maroon;"><br />
You must &#8220;Exclude [files] from Project&#8221; [SCSS] after install, then &#8220;View hidden files&#8221; and &#8220;Include files in Project&#8221; to make this work on existing files.</span><br />
<span style="color:maroon;"><br />
Run the installer as an Administrator.<br />
</span><span style="color:maroon;"><br />
Remove any entries for &#8220;scss&#8221; from: Tools, Text Editor, File Extension.<br />
</span></p>
<p><strong>Download Extension:</strong></p>
<p><a href="http://cowfarm.net/ScssInCss/ScssInCss.zip"><br />
<img src="http://cowfarm.net/ScssInCss/ScssInCssIcon.PNG" alt="Download" /></a></p>
<p><span><br/></span></p>
]]></content:encoded>
			<wfw:commentRss>http://cowfarm.net/379/css-syntax-highlighting-for-scss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In other news, QTAgent32.exe Virus?</title>
		<link>http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/</link>
		<comments>http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 21:36:24 +0000</pubDate>
		<dc:creator>Andrew Kharlamov</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Dell Computer Slow]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[QTAgent32.exe]]></category>
		<category><![CDATA[QTAgent32.exe Solution]]></category>
		<category><![CDATA[Virus]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[VS 2010 QTAgent32]]></category>
		<category><![CDATA[VS10 QTAgent32]]></category>

		<guid isPermaLink="false">http://cowfarm.net/?p=318</guid>
		<description><![CDATA[Tweet This! Send this page to Print Friendly Subscribe to the comments for this post? Share this on Reddit Blog this on Blogger Share this on LinkedIn Share this on BobrDobr Digg this! Post on Google Buzz Share this on del.icio.us Microsoft, has officially re-released a self aware Dell Hardware destroying Virus in Visual Studio [...]]]></description>
			<content:encoded><![CDATA[

<div class="shr-bookmarks shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=In+other+news%2C+QTAgent32.exe+Virus%3F+-+http://b2l.me/55n3p&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;title=In+other+news%2C+QTAgent32.exe+Virus%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;n=In+other+news%2C+QTAgent32.exe+Virus%3F&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;title=In+other+news%2C+QTAgent32.exe+Virus%3F&amp;summary=Microsoft%2C%20has%20officially%20re-released%20a%20self%20aware%20Dell%20Hardware%20destroying%20Virus%20in%20Visual%20Studio%202010.%20This%20virus%20will%20effect%20your%20computer%20if%20you%20start%20running%20Unit%20Tests%2C%20it%20is%20currently%20masquerading%20around%20as%20what%20appears%20to%20be%20a%20QuickTimeAgent32%20process%2C%20to%20divert%20the%20blame%20on%20Apple.%20%0D%0A%0D%0AOver%20&amp;source=CowFarm.NET" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;title=In+other+news%2C+QTAgent32.exe+Virus%3F" rel="nofollow" class="external" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;title=In+other+news%2C+QTAgent32.exe+Virus%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/&amp;title=In+other+news%2C+QTAgent32.exe+Virus%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<p>Microsoft, has <del datetime="2010-06-23T21:28:00+00:00">officially</del> re-released a self aware Dell Hardware destroying Virus in Visual Studio 2010. This virus will effect your computer if you start running Unit Tests, it is currently masquerading around as what appears to be a QuickTimeAgent32 process, to divert the blame on Apple. </p>
<p>Over time it will slowly make your hardware less functional and will make you want to crawl under your desk, or go after your computer with a baseball bat.</p>
<p>The <a href="http://connect.microsoft.com/VisualStudio/feedback/details/465633/qtagent32-exe-crashes-when-running-a-unit-test-that-calls-itself" target="_blank">current fix</a> is to not run Unit Tests, or if you really have to, you can use ReSharper:</p>
<p> <strong>ReSharper -> Unit Tests -> Run All Tests from Solution.</strong></p>
<p>Yes, this is a <strong>joke</strong>, well the virus part anyway!</p>
]]></content:encoded>
			<wfw:commentRss>http://cowfarm.net/318/in-other-news-qtagent32-exe-virus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox, ajax caching issue</title>
		<link>http://cowfarm.net/302/firefox-ajax-caching-issue/</link>
		<comments>http://cowfarm.net/302/firefox-ajax-caching-issue/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 15:36:48 +0000</pubDate>
		<dc:creator>Andrew Kharlamov</dc:creator>
				<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://cowfarm.net/?p=302</guid>
		<description><![CDATA[Tweet This! Send this page to Print Friendly Subscribe to the comments for this post? Share this on Reddit Blog this on Blogger Share this on LinkedIn Share this on BobrDobr Digg this! Post on Google Buzz Share this on del.icio.us For anyone who has an application built on one hundred Ajax requests every five [...]]]></description>
			<content:encoded><![CDATA[

<div class="shr-bookmarks shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Firefox%2C+ajax+caching+issue+-+http://b2l.me/5shp8&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://cowfarm.net/302/firefox-ajax-caching-issue/" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://cowfarm.net/302/firefox-ajax-caching-issue/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;title=Firefox%2C+ajax+caching+issue" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;n=Firefox%2C+ajax+caching+issue&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;title=Firefox%2C+ajax+caching+issue&amp;summary=For%20anyone%20who%20has%20an%20application%20built%20on%20one%20hundred%20Ajax%20requests%20every%20five%20seconds.%0D%0A%0D%0AjQuery%3A%0D%0A%0D%0A%24%28function%20%28%29%20%7B%0D%0A%20%20%20%20%20%24.ajaxSetup%28%7B%20cache%3A%20false%20%7D%29%3B%0D%0A%7D%29%3B%0D%0A%0D%0A%0D%0AI%27d%20like%20to%20believe%20that%20does%20something%2C%20like%20slow%20down%20the%20pain%20%3A%7C.&amp;source=CowFarm.NET" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;title=Firefox%2C+ajax+caching+issue" rel="nofollow" class="external" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;title=Firefox%2C+ajax+caching+issue" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cowfarm.net/302/firefox-ajax-caching-issue/&amp;title=Firefox%2C+ajax+caching+issue" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<p>For anyone who has an application built on one hundred Ajax requests every five seconds.</p>
<p><strong>jQuery:</strong></p>
<pre name="code" class="javascript">
$(function () {
     $.ajaxSetup({ cache: false });
});
</pre>
<p>I&#8217;d like to believe that does something, like slow down the pain <img src='http://cowfarm.net/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://cowfarm.net/302/firefox-ajax-caching-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ViEmu, is it worth it?</title>
		<link>http://cowfarm.net/280/viemu-is-it-worth-it/</link>
		<comments>http://cowfarm.net/280/viemu-is-it-worth-it/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:28:50 +0000</pubDate>
		<dc:creator>Andrew Kharlamov</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://cowfarm.net/?p=280</guid>
		<description><![CDATA[Tweet This! Send this page to Print Friendly Subscribe to the comments for this post? Share this on Reddit Blog this on Blogger Share this on LinkedIn Share this on BobrDobr Digg this! Post on Google Buzz Share this on del.icio.us For the past couple of weeks I have been exploring the ViEmu Beta4 plugin [...]]]></description>
			<content:encoded><![CDATA[

<div class="shr-bookmarks shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=ViEmu%2C+is+it+worth+it%3F+-+http://b2l.me/2x22f&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://cowfarm.net/280/viemu-is-it-worth-it/" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://cowfarm.net/280/viemu-is-it-worth-it/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;title=ViEmu%2C+is+it+worth+it%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;n=ViEmu%2C+is+it+worth+it%3F&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;title=ViEmu%2C+is+it+worth+it%3F&amp;summary=%0D%0AFor%20the%20past%20couple%20of%20weeks%20I%20have%20been%20exploring%20the%20ViEmu%20Beta4%20plugin%20for%20Visual%20Studio%202010.%20I%20decided%20to%20do%20this%20because%20of%20what%20some%20of%20my%20co-workers%20told%20me%3A%20%22Without%20vi%20I%20would%20parish%22%2C%20%22It%20increases%20productivity%20drastically%22%2C%20and%20%22it%27s%20totally%20worth%20your%20money.%22%0D%0A%0D%0AThe%20price%20tag%20on%20the%20l&amp;source=CowFarm.NET" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;title=ViEmu%2C+is+it+worth+it%3F" rel="nofollow" class="external" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;title=ViEmu%2C+is+it+worth+it%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cowfarm.net/280/viemu-is-it-worth-it/&amp;title=ViEmu%2C+is+it+worth+it%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<p><img src="http://cowfarm.net/images/viemu.png" alt="viemu" align="left" /><br />
For the past couple of weeks I have been exploring the <strong>ViEmu Beta4 plugin for Visual Studio 2010</strong>. I decided to do this because of what some of my co-workers told me: &#8220;Without vi I would parish&#8221;, &#8220;It increases productivity <em>drastically&#8221;</em>, and &#8220;it&#8217;s totally worth your money.&#8221;</p>
<p>The price tag on the latest ViEmu for VisualStudio is $99 dollars. <a href="http://www.viemu.com/store.html" target="_blank">ViEmu Store</a></p>
<p><strong>Vi</strong></p>
<p>For those of you who don&#8217;t know what Vi (Visual in) is, it is actually a really old Unix Application developed somewhere in 1976 by Billy Joy for mode editing text. Meaning you have several modes for working with text, for example insert mode is for inserting text and normal mode for navigating.</p>
<p><strong>Vim</strong></p>
<p>Vim or Vi IMproved is just as it says, a better version of Vi. It introduced a new visual mode, syntax highlighting and more commands. Let&#8217;s just say it&#8217;s more code friendly.<br />
<strong></strong></p>
<p><strong>Is it really, really, as good as they say?</strong></p>
<p>First, I want to say <span class="key">Ctrl</span> and <span class="key">Ctrl</span> + <span class="key">Shift</span>, these commands come with the operating system for free and work in all text fields, and are really close to each other. You don&#8217;t need a separate application/plugin to use them.</p>
<p>I use <span class="key">Ctrl</span> (<span class="key">&larr;</span>, <span class="key">&rarr;</span>) to navigate words, in viemu/vi you would use the <span class="key">w</span> and <span class="key">b</span> keys.</p>
<p>I use <span class="key">Ctrl</span> + <span class="key">C</span> and <span class="key">Ctrl</span> + <span class="key">V</span> to copy and paste, in viemu/vi you would use the <span class="key">y</span> key (yank).</p>
<p>To insert text I start typing, in viemu/vi I would click <span class="key">i</span> (insert), type, and to stop <span class="key">Esc</span>.</p>
<p>So lets stop for a second. Every command without vi is seems to be derived from <span class="key">Ctrl</span> or <span class="key">Shift</span>.</p>
<p><span class="key">Shift</span> + (<span class="key">&larr;</span>, <span class="key">&rarr;</span>) select character.</p>
<p><span class="key">Shift</span> + (<span class="key">End</span>, <span class="key">Home</span>) an entire line.</p>
<p><span class="key">Shift</span> + <span class="key">Ctrl</span> (<span class="key">End</span>,<span class="key">Home</span>) everything after before this line.</p>
<p>So basicly, for the majority of these BASIC commands in vi you are saving a key stroke or two. You should note though, that you are also losing the ability to be in insert mode at all times, something that is very important when you are constantly typing.</p>
<p>Vi has a better mechanism for find and replace, kind of. It is directly in the text editor and its fairly easy to use via the short cut keys like <span class="key">f</span>, <span class="key">v</span>, <span class="key">c</span>, <span class="key">p</span>, etc. However, you still tend to jump in and out of different modes. I personally find that find and replace is just as easy, though I don&#8217;t have a strong argument, since I tend to not use a lot of regex (regular expressions). </p>
<p>So &#8220;Without vi I would parish&#8221; no just learn the built in commands for the operating system. You can still be a fast typer/navigator without a third party tool. In the long run VI will out run you but at the rate most developers switch environments and IDEs, a proprietary solution just doesn&#8217;t work.</p>
<p>&#8220;It increases productivity drastically&#8221; no it increases it a bit, it also decreases it a bit as well. Whether your a guru in vi or not, there are usually more simple cases for text editing then their are convoluted. Vi wins convoluted re-factoring hands down, but when you gotta type none stop and go back to previous words, sentences, blocks of code it doesn&#8217;t matter.</p>
<p>&#8220;It&#8217;s totally worth your money&#8221; this is kind of a funny argument. Somehow people associated working FAST with productivity and performance. I usually judge it by quality and assertiveness. So in the long run you can out type anyone; however, the ending result might not be as splendid as you think.</p>
<p>In the end, you can read the tortoise and the hare all you want but the tortoise will always win. So, for now I&#8217;ll pocket my $99 dollars, and maybe when there is a good Vi editor for $10 dollars I&#8217;ll fold. Verdict: <strong>Wait on it, its only good for one IDE and shouldn&#8217;t cost so much. <img src='http://cowfarm.net/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </strong></p>
<p><strong>PS:</strong> For those with a Macintosh you would use <span class="key">option</span> to jump words and <span class="key">control</span> to jump to the beginning of lines with arrow keys. This method also doesn&#8217;t pick up whitespace, and is also more intelligent then Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowfarm.net/280/viemu-is-it-worth-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
