<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Code: Impossible</title>
	<atom:link href="http://codeimpossible.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeimpossible.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 01 Jun 2009 04:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='codeimpossible.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/8bcb4bf57135c0e4befed784d61b465b?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Code: Impossible</title>
		<link>http://codeimpossible.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://codeimpossible.wordpress.com/osd.xml" title="Code: Impossible" />
	<atom:link rel='hub' href='http://codeimpossible.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Link Post For May</title>
		<link>http://codeimpossible.wordpress.com/2009/05/31/link-post-for-may/</link>
		<comments>http://codeimpossible.wordpress.com/2009/05/31/link-post-for-may/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 04:25:29 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=487</guid>
		<description><![CDATA[Google talks about what extensions will look like in Chrome Google announces Wave Microsoft shows off Bing The 1k CSS Grid Automatically Minify and Combine JavaScript code in Visual Studio Visual Studio NUnit Templates for Asp MVC Coming Soon: SuperUser.com This months list of devs to follow (Herding Code edition): Jon Galloway &#8211; blog / [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=487&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://blog.chromium.org/2009/05/extensions-at-google-io.html">Google talks about what extensions will look like in Chrome</a></li>
<li><a href="http://googleblog.blogspot.com/2009/05/went-walkabout-brought-back-google-wave.html">Google announces Wave</a></li>
<li><a href="http://bing.com">Microsoft shows off Bing</a></li>
<li><a href="http://www.usabilitypost.com/2009/05/29/the-1kb-css-grid-part-1/">The 1k CSS Grid</a></li>
<li><a href="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/" target="_blank">Automatically Minify and Combine JavaScript code in Visual Studio</a></li>
<li><a href="http://blogs.msdn.com/webdevtools/archive/2009/04/28/updated-nunit-templates-for-asp-net-mvc-1-0-rtm.aspx" target="_blank">Visual Studio NUnit Templates for Asp MVC</a></li>
<li><a href="http://blog.stackoverflow.com/2009/05/the-stack-overflow-trilogy/" target="_blank">Coming Soon: SuperUser.com</a></li>
</ul>
<p>This months list of devs to follow (<a href="http://herdingcode.com" target="_blank">Herding Code</a> edition):</p>
<ul>
<li>Jon Galloway &#8211; <a href="http://weblogs.asp.net/jgalloway/" target="_blank">blog</a> / <a href="http://twitter.com/jongalloway" target="_blank">twitter</a></li>
<li>Kevin Dente &#8211; <a href="http://weblogs.asp.net/kdente/" target="_blank">blog</a> / <a href="http://twitter.com/kevindente" target="_blank">twitter</a></li>
<li>Scott Koon &#8211; <a href="http://www.lazycoder.com/" target="_blank">blog</a> / <a href="http://twitter.com/Lazycoder" target="_blank">twitter</a></li>
<li>K Scott Allen &#8211; <a href="http://odetocode.com/blogs/scott/default.aspx" target="_blank">blog</a> / <a href="http://twitter.com/OdeToCode" target="_blank">twitter</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=487&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/05/31/link-post-for-may/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
		<item>
		<title>Link Post for April</title>
		<link>http://codeimpossible.wordpress.com/2009/04/30/link-post-for-april/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/30/link-post-for-april/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:22:05 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=417</guid>
		<description><![CDATA[So here it is, the end of another month and I wanted to post some interesting, and helpful links (mostly so I can find them again) as well as point out some interesting bloggers/twitterers (tweeters?) that you should be following if you aren&#8217;t already. The easy way to install Windows Azure SDK and Tools Street [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=417&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So here it is, the end of another month and I wanted to post some interesting, and helpful links (mostly so I can find them again) as well as point out some interesting bloggers/twitterers (tweeters?) that you should be following if you aren&#8217;t already.</p>
<ul>
<li><a href="http://blogs.msdn.com/jnak/archive/2009/04/20/installing-the-windows-azure-tools-and-sdk-the-easy-way.aspx">The easy way to install Windows Azure SDK and Tools</a></li>
<li><a href="http://www.streetviewfun.com/2009/star-wars-graffiti/" target="_blank">Street View Fun: Star Wars graffiti</a></li>
<li><a href="http://blogs.msdn.com/irenak/archive/2006/11/03/sysk-233-how-to-decrypt-an-asp-net-encrypted-data.aspx" target="_blank">Decrypting Asp .Net Encrypted Data</a></li>
<li><a href="http://community.bartdesmet.net/blogs/bart/archive/2009/04/23/linq-to-objects-debugging.aspx" target="_blank">Debugging Linq To Objects</a></li>
<li>Get ELMAH going in your MVC app via (<a href="http://haacked.com/archive/2007/07/24/securely-implement-elmah-for-plug-and-play-error-logging.aspx" target="_blank">Phil Haack</a>, <a href="http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx" target="_blank">Scott Hanselman</a>, and <a href="http://danswatik.com/index.php/2009/04/23/how-to-get-elmah-to-work-with-aspnet-mvc-handleerror-attribute/" target="_blank">Dan Swatik</a>)</li>
<li><a href="http://rentzsch.com/notes/programmersDontLikeToCode" target="_blank">Programmers Don&#8217;t Like To Write Code</a></li>
<li><a href="http://haacked.com/archive/2009/04/22/scripted-db-views.aspx" target="_blank">Use IronRuby to script your MVC Views</a></li>
<li><a href="http://msdn.krugle.com/" target="_blank">Search MSDN with Krugle</a></li>
</ul>
<p>Bloggers you should read / follow if you aren&#8217;t already:</p>
<ul>
<li>Steve Harman &#8211;  <a href="http://stevenharman.net/" target="_blank">blog</a> / <a href="http://twitter.com/stevenharman" target="_blank">twitter</a></li>
<li>Scott C Reynolds -  <a href="http://scottcreynolds.com/" target="_blank">blog</a> / <a href="http://twitter.com/scottcreynolds" target="_blank">twitter</a></li>
<li>Brad Wilson -  <a href="http://bradwilson.typepad.com/" target="_blank">blog</a> / <a href="http://twitter.com/bradwilson" target="_blank">twitter</a></li>
</ul>
<br /> Tagged: links <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/417/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=417&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/30/link-post-for-april/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging &#8220;Syntax Error&#8221; from a bad WebResource.axd request</title>
		<link>http://codeimpossible.wordpress.com/2009/04/24/debugging-syntax-error-from-a-bad-webresourceaxd-request/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/24/debugging-syntax-error-from-a-bad-webresourceaxd-request/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:05:48 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=427</guid>
		<description><![CDATA[&#8220;Syntax Error, Line: 2, Char: 0&#8243;. How many of you out there have seen this error while working on a web project? Usually it&#8217;s because of a forgotten semi-colon or parenthesis in some external javascript file. But sometimes it&#8217;s something more sinister&#8230; Something darker, dirtier and just a little bit more evil. After seeing the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=427&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8220;Syntax Error, Line: 2, Char: 0&#8243;. How many of you out there have seen this error while working on a web project?</p>
<p>Usually it&#8217;s because of a forgotten semi-colon or parenthesis in some external javascript file. But sometimes it&#8217;s something more sinister&#8230; Something darker, dirtier and just a little bit more evil.</p>
<p>After seeing the error message, I opened up Internet Explorer&#8217;s options dialog and unchecked the following options:</p>
<ul>
<li>Disable script debugging (Internet Explorer)</li>
<li>Disable script debugging (Other)</li>
</ul>
<p> </p>
<p><img class="aligncenter size-full wp-image-456" title="Internet Explorer Options Dialog" src="http://codeimpossible.files.wordpress.com/2009/04/internet_explorer_options_2.png?w=415&#038;h=521" alt="Internet Explorer Options Dialog" width="415" height="521" /></p>
<p> </p>
<p> </p>
<p>I then closed IE, returned to Visual Studio, stopped and re-started debugging (ctrl+shift+F5), and watched Solution Explorer as my page began to load.</p>
<p> </p>
<p><img class="aligncenter size-full wp-image-442" title="Solution Explorer Debugging Internet Explorer" src="http://codeimpossible.files.wordpress.com/2009/04/solution_explorer.png?w=309&#038;h=265" alt="Solution Explorer Debugging Internet Explorer" width="309" height="265" /></p>
<p>Oh! That&#8217;s not good. See the WebResource.axd request that has the same icon as the Default.aspx file? That means that a bad request was sent for an embedded resource and &#8211; most likely recieved a 404 page back instead of the javascript file, which caused our syntax error.</p>
<p>Ok, so how do we figure out which WebResource reference caused the problem? Well, the only way that I have come up with so far, is to manually copy and paste each WebResource.axd url from the html source of the page to the address bar and navigate there. The pages that give return a file download are ok and the ones that don&#8217;t will return a 404 page in the browser.</p>
<p>After finishing this long process of elimination, I found the resource request that was causing my headache:</p>
<pre class="brush: xml;">
/WebResource.axd?d=MaCiPhUUtdXNj16OOucV5e5lHCBZO...SNIP...
</pre>
<p>So how do we figure out which resource has embedded this troublesome URL into our html source? I found the solution to that in <a href="http://blogs.msdn.com/irenak/archive/2006/11/03/sysk-233-how-to-decrypt-an-asp-net-encrypted-data.aspx">Irena Kennedy&#8217;s blog post on &#8220;How to Decrypt an ASP.NET Encrypted Data&#8221;</a>:</p>
<blockquote><p>Please note, that the code below should not be used in production code!  It’s only meant for debugging and troubleshooting, and it may break in future versions of the .NET framework if DecryptString private method changes.</p>
<ol>
<li>Add a web page (e.g. DecryptData.aspx) to your web application.  For the code to work, it must run in the same appdomain as the web application that created your encrypted string.</li>
<li>Add a text box where you will type in the encrypted string.</li>
<li>Add a label where you’ll display decrypted results.</li>
<li>Add a button.</li>
<li>In code-behind on button click event, add the following code:</li>
</ol>
</blockquote>
<pre class="brush: csharp;">
System.Reflection.BindingFlags bf =
	System.Reflection.BindingFlags.NonPublic |
	System.Reflection.BindingFlags.Static;

System.Reflection.MethodInfo DecryptString =
	typeof(System.Web.UI.Page)
		.GetMethod(&quot;DecryptString&quot;, bf);

DecryptedData.Text =
	DecryptString.Invoke(
		null,
		new object[] {
			EncryptedData.Text
		} ) as string;
</pre>
<p>After I created this page, I pasted the WebResource.axd URL (everything up to the &amp;t=) into the DecryptedData textbox on my DecryptData.aspx page, clicked the Decrypt button, and saw that one of my custom aspx controls was responsible. I then corrected the resource path and the page loaded as it should.</p>
<p>See the screenshot below for an example of the DecryptData page, or <a href="http://www.box.net/shared/uc9aea3999" target="_blank">download the DecryptData .ASPX and Codebehind from my box.net folder</a>.</p>
<p><a href="http://codeimpossible.files.wordpress.com/2009/04/decryption_page.png" target="_blank"><img class="aligncenter size-medium wp-image-445" title="DecryptData page" src="http://codeimpossible.files.wordpress.com/2009/04/decryption_page.png?w=300&#038;h=219" alt="DecryptData page" width="300" height="219" /></a></p>
<br /> Tagged: asp.net, c#, debugging, Programming <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/427/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=427&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/24/debugging-syntax-error-from-a-bad-webresourceaxd-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/internet_explorer_options_2.png" medium="image">
			<media:title type="html">Internet Explorer Options Dialog</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/solution_explorer.png" medium="image">
			<media:title type="html">Solution Explorer Debugging Internet Explorer</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/decryption_page.png?w=300" medium="image">
			<media:title type="html">DecryptData page</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress.com SyntaxHighlighter &#8211; How To Remove Indent</title>
		<link>http://codeimpossible.wordpress.com/2009/04/21/wordpresscom-syntaxhighlighter-how-to-remove-indent/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/21/wordpresscom-syntaxhighlighter-how-to-remove-indent/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 16:01:10 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=412</guid>
		<description><![CDATA[I post a lot of source code on my blog and lately I&#8217;ve been having a lot of trouble trying to remove the left-padding from my source code blocks. My problem comes from the SyntaxHighlighter stylesheet that WP.com uses and how it specifies the padding-left for the ordered-lists underneath the .dp-highlighter div tag: .dp-highlighter ol [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=412&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I post a lot of source code on my blog and lately I&#8217;ve been having a lot of trouble trying to remove the left-padding from my source code blocks.</p>
<p>My problem comes from the <a href="http://code.google.com/p/syntaxhighlighter">SyntaxHighlighter</a> stylesheet that WP.com uses and how it specifies the padding-left for the ordered-lists underneath the .dp-highlighter div tag:</p>
<pre class="brush: css;">
.dp-highlighter ol
{
    list-style: decimal; /* for ie */
    background-color: #fff;
    margin: 0px 0px 1px 45px !important; /* problem */
    padding: 0px;
    color: #5C5C5C;
}
</pre>
<p>The use of the !important declaration is what is messing me up. The SyntaxHighlighter stylesheet is included at the end of the page html source and my custom css is at the top, so even though the SyntaxHighlighter styles have a lower higher <a href="http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html">css specificity</a> &#8211; my styles will never override them because <a href="http://www.w3schools.com/css/css_intro.asp" target="_blank">CSS is processed top-down</a>.  <em>from &#8220;CSS Introduction&#8221; @ w3schools:</em></p>
<blockquote><p><strong>What style will be used when there is more than one style specified for an HTML element?<br />
</strong><br />
Generally speaking we can say that all the styles will &#8220;cascade&#8221; into a new &#8220;virtual&#8221; style sheet by the following rules, where number four has the highest priority:</p>
<ol>
<li>Browser default</li>
<li>External style sheet</li>
<li>Internal style sheet (inside the &lt;head&gt; tag)</li>
<li>Inline style (inside an HTML element)</li>
</ol>
<p>So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style declared inside the &lt;head&gt; tag, in an external style sheet, or in a browser (a default value).</p></blockquote>
<p>At this point I began thinking that it was pointless to try any more and that I should just accept that my code blocks would forever be indented by 45 pixels. </p>
<p>However, I&#8217;m way too stubborn to admit defeat, and after spending a night reading about css specificity and trying some crazy hacks of my own, I realized that my problem was simple. <strong>I just wanted the code to be farther to the left</strong>.</p>
<p>So my solution was equally simple (<a href="http://en.wikipedia.org/wiki/Occam's_razor">Occam&#8217;s Razor</a> baby!): tell the outer container to allow overflow and position the child relatively and to offset it by the distance I wanted. I did this by applying to the outer div ( the &#8220;.dp-highlighter&#8221; div ) the following style:</p>
<pre class="brush: css;">
DIV.dp-highlighter {
    overflow:auto;
    padding:10px;
}
</pre>
<p>And added this style to the OL tag within the .dp-highlighter div:</p>
<pre class="brush: css;">
.dp-highlighter ol {
    position:relative;
    left:-45px;
}
</pre>
<br /> Tagged: css, wordpress <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/412/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=412&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/21/wordpresscom-syntaxhighlighter-how-to-remove-indent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
		<item>
		<title>W.O.M.M. weekly post #3 &#8211; HtmlHelper.Gravatar</title>
		<link>http://codeimpossible.wordpress.com/2009/04/18/womm-weekly-post-3-htmlhelpergravatar/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/18/womm-weekly-post-3-htmlhelpergravatar/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 05:32:12 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=292</guid>
		<description><![CDATA[Long story short: I hate re-inventing the wheel. If there is a free service that does something I need I will try my hardest to get that service into whatever I am working on. I&#8217;m currently working on an Asp .Net MVC project that needs Avatars (you know, those funny little pictures next to peoples [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=292&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-349" title="works-on-my-machine-starburst" src="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=192&#038;h=185" alt="works-on-my-machine-starburst" width="192" height="185" />Long story short: I <b>hate</b> re-inventing the wheel. If there is a free service that does something I need I will try my hardest to get that service into whatever I am working on. I&#8217;m currently working on an Asp .Net MVC project that needs Avatars (you know, those funny little pictures next to peoples names on Twitter). Enter <a href="http://www.gravatar.com">Gravatar</a>.<br />
<br />
Gravatar is an awesome service for anyone looking to add avatars to their apps. It&#8217;s free, incredibly simple to implement, and removes a lot of the hassle around getting avatar support into your web/windows app.</p>
<p>Adding Gravatar support to an application is pretty simple. Can you get a users email address? Can you MD5 said email address? Can you make an HTTP GET? BANG. You sir, or madam, can have Gravatars.</p>
<p>This week for the W.O.M.M. code sample I&#8217;d like to show how I integrated gravatar support into an Asp .Net MVC application.</p>
<h3>How Gravatar Works In A Nutshell</h3>
<p>Gravatar is a free service where you sign up and link images to one or more email addresses that you provide. </p>
<p>Once you link an image to an email address, any application that supports getting an image over the internet can show your Gravatar by making a request to a special URL. This URL is generated by combining an MD5 hash of your email address with some other parameters and the end result is a link to your Gravatar image.</p>
<p>IE: the link to my Gravatar on the right of this page is:</p>
<p><code></p>
<p>http://www.gravatar.com/avatar/15559d868ec27b8583f42116a6b96c14?s=140</p>
<p></code></p>
<p>So 15559d868ec27b8583f42116a6b96c14 is the hash of my email address &#8211; don&#8217;t worry it&#8217;s a one-way hash. The &#8220;s&#8221; parameter is the size of the image that I want, in this case 140 pixels. </p>
<p>That is pretty much it as far as how the system works, but if you want to read more, check out <a href="http://en.gravatar.com/site/implement">Gravatar&#8217;s implementation documentation</a>.</p>
<h3>The Goal</h3>
<p>What I wanted was an HtmlHelper extension method that I could use in my view pages to create an IMG tag with the correct Gravatar URL. After <a href="http://en.gravatar.com/site/implement/url">looking at the documentation on Gravatars &#8220;How the URL is constructed&#8221; page</a>, I decided my helper extension should support the following:</p>
<p><b>Avatar Size (the &#8220;s&#8221; parameter)</b><br />
When making a Gravatar URL you can specify a specific size for the Gravatar image. The size can be anything from 1 to 512 pixels, but the default is 80.</p>
<p><b>Default Avatars (the &#8220;d&#8221; parameter)</b><br />
If the email address you are using doesn&#8217;t have any Gravatars setup, Gravatar will generate one for you by default. You can choose from 3 predefined Gravatar types or you can include a URL to a custom avatar of your own. The predefined Gravatar types are Identicon, Wavatar, and Monsterid.</p>
<p><b>Rating (the &#8220;r&#8221; parameter)</b><br />
This wasn&#8217;t a requirement for what I was working on, but you can designate the maximum &#8220;rating&#8221; of the avatars that Gravatar will generate. The accepted values are &#8220;g&#8221;, &#8220;pg&#8221;, &#8220;r&#8221;, and &#8220;x&#8221; and they are inclusive, so specifying &#8220;r&#8221; will allow &#8220;g&#8221; and &#8220;pg&#8221; rated Gravatars to be generated. Gravatars that are rated &#8220;x&#8221; will be returned as one of the predefined avatars above. The default rating is &#8220;g&#8221;.</p>
<h3>The Code</h3>
<p>Okay, so now I know what I need to support. Now it&#8217;s just a matter of getting the code to do this. Let&#8217;s take a look at the class file I used to get this done.</p>
<pre class="brush: csharp;">
namespace System.Web.Mvc
{
    using System;
    using System.Web.Routing;
    using System.Web.Security;

    public enum GravatarDefaultTypes
    {
        Identicon,
        Wavatar,
        Monsterid,
        Custom
    }

    public static class GravatarExtension
    {
		public static string Gravatar(
			this HtmlHelper hh,
			string emailAddress,
			int size,
			GravatarDefaultTypes defaultType,
			string customImageUrl,
			RouteValueDictionary htmlAttributes)
        {
            var tagBuilder = new TagBuilder(&quot;img&quot;);
            string url = &quot;http://www.gravatar.com/avatar/{0}?d={1}&amp;s={2}&quot;;

			// thanks to jon galloway for this one-liner!
            // http://www.eggheadcafe.com/aspnet/how-to/141740/adding-gravatars-to-your.aspx
            string hash = FormsAuthentication
				.HashPasswordForStoringInConfigFile(emailAddress, &quot;MD5&quot;);
            string defImg = defaultType.ToString().ToLower();

            if (defaultType == GravatarDefaultTypes.Custom)
            {
                defImg = System.Web
					.HttpUtility
					.UrlEncode(customImageUrl);
            }

            url = String.Format(
                url,
                hash.ToLower(),
                defImg,
                size.ToString());

            tagBuilder
				.MergeAttributes(htmlAttributes);
            tagBuilder
				.MergeAttribute(&quot;src&quot;, url);

            return tagBuilder
				.ToString(TagRenderMode.Normal);
        }
    }
}
</pre>
<p>So you can see I&#8217;m not storing the hash of the email address, instead I am going to pass in the unaltered string. I didn&#8217;t want to have another piece of data to update when the user changed their email address so the Gravatar() method takes an email address and encodes it using a call to FormsAuthentication.HashPasswordForStoringInConfigFile(), which is awesome ( Thanks Jon, you rock!).</p>
<p>Also, I&#8217;m not sure if this is a no-no or what, but I did put the extension class under the System.Web.Mvc namespace. This was mainly a convenience (read: laziness) thing and can be easily changed.</p>
<p>Alright so we have some code now, let&#8217;s take a look at how it can be used in our views.</p>
<pre class="brush: csharp;">
&lt;%= Html.Gravatar(
	Model.Email, // the email address
	50, // size, in pixels of the avatar
	GravatarDefaultTypes.Identicon,
	null,
	new RouteValueDictionary(new {
		style = &quot;vertical-align: middle;&quot;
	})
)%&gt; &lt;br /&gt;
&lt;b&gt; &lt;%= Model.UserName %&gt; &lt;/b&gt;
</pre>
<p>Let&#8217;s see how that looks.</p>
<p><img src="http://codeimpossible.files.wordpress.com/2009/04/user-avatar.png?w=84&#038;h=81" alt="user-avatar" title="user-avatar" width="84" height="81" class="size-full wp-image-378" /></p>
<p>Booyah, avatar support in 55 lines of code. As always, if I screwed up or there is a better way to do this, please let me know.</p>
<br /> Tagged: asp.net, c#, MVC, Open Source <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=292&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/18/womm-weekly-post-3-htmlhelpergravatar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=300" medium="image">
			<media:title type="html">works-on-my-machine-starburst</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/user-avatar.png" medium="image">
			<media:title type="html">user-avatar</media:title>
		</media:content>
	</item>
		<item>
		<title>W.O.M.M. weekly post #2</title>
		<link>http://codeimpossible.wordpress.com/2009/04/10/womm-weekly-post-2/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/10/womm-weekly-post-2/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 04:37:19 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=364</guid>
		<description><![CDATA[Due to me being insanely sick this week I&#8217;m going to be changing up the format for the Works On My Machine weekly project post for this week. Instead of presenting a project that I&#8217;ve worked on I&#8217;d like to highlight some .Net OSS projects / source code that I&#8217;ve been working with / looking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=364&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-349" title="works-on-my-machine-starburst" src="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=192&#038;h=185" alt="works-on-my-machine-starburst" width="192" height="185" />Due to me being insanely sick this week I&#8217;m going to be changing up the format for the Works On My Machine weekly project post for this week.</p>
<p>Instead of presenting a project that I&#8217;ve worked on I&#8217;d like to highlight some .Net OSS projects / source code that I&#8217;ve been working with / looking at lately.</p>
<p> </p>
<ul>
<li><a href="http://code.google.com/p/morelinq/" target="_blank">The More Linq project</a> &#8211; An extension library for LinqToObjects run by Jon Skeet.</li>
<li><a href="http://www.musikcube.com/" target="_blank">MusikCube</a> &#8211; Awesome music player that uses SqlLite to allow &#8220;smart playlists&#8221; (eg. show me all songs that were added this week that have fewer than 4 stars and have been played less than 10 times).</li>
<li><a href="http://code.google.com/p/moq/" target="_blank">Moq</a> &#8211; IMHO the best mocking framework for .net development.</li>
<li>Scott Hanselman posted some code on his website a while back about <a href="http://www.hanselman.com/blog/TheWeeklySourceCode35ZipCompressingASPNETSessionAndCacheState.aspx" target="_blank">how to Zip Compress your Session and Cache data</a> in Asp.net.</li>
</ul>
<p>Feel free to send me any code that you come across and I&#8217;ll feature it in a future post.</p>
<br /> Tagged: code, Open Source <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=364&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/10/womm-weekly-post-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=300" medium="image">
			<media:title type="html">works-on-my-machine-starburst</media:title>
		</media:content>
	</item>
		<item>
		<title>Works on my machine weekly project #1</title>
		<link>http://codeimpossible.wordpress.com/2009/04/05/works-on-my-machine-weekly-project-1/</link>
		<comments>http://codeimpossible.wordpress.com/2009/04/05/works-on-my-machine-weekly-project-1/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 04:34:49 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=347</guid>
		<description><![CDATA[Download the source code mentioned in this blog post.   I&#8217;m a hopeless code junkie. I love to write code. Most people do one thing for work and then another for their hobby. My girlfriend for instance works as an IT / Systems Engineer  and her other thing is photography. My other thing is writing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=347&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.box.net/shared/hacsh3b3s4" target="_blank">Download the source code mentioned in this blog post.</a></p>
<p> </p>
<p><img class="size-medium wp-image-349 alignleft" title="works-on-my-machine-starburst" src="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=240&#038;h=231" alt="works-on-my-machine-starburst" width="240" height="231" />I&#8217;m a hopeless code junkie. I love to write code. Most people do one thing for work and then another for their hobby. My girlfriend for instance works as an IT / Systems Engineer  and her other thing is photography.</p>
<p><em>My</em> other thing is writing <strong>more</strong> code. I never did this with any of my previous jobs (save dish washer&#8230; I did wash dishes when I was at home but I wasn&#8217;t trying out new, cooler ways to wash them).</p>
<p>&#8230; So where was I? Oh, right code junkie. So, I really like to write code and what I&#8217;ve decided to do is start a new small project each week and try to use some new chunk of .Net or a new library and I&#8217;ll post the end results of my efforts here for you all.</p>
<p>All of these projects will be offered under the CodeImpossible &#8220;works on my machine&#8221; code quality guarantee. But I&#8217;ll never post something that flat-out doesn&#8217;t work.</p>
<p>Sound good? Cool, let&#8217;s kick it off &#8211; as the first entry into this space I&#8217;d like to present <strong>TweetCommander</strong>.</p>
<p>TweetCommander is a small .Net v3.5 console application that lies in wait, watching a twitter account for any new Direct Messages from another user (we&#8217;ll call this person the &#8220;owner&#8221;).</p>
<p>When a direct message from the owner is found, TweetCommander will check to see if it contains certain text, and depending on that text, will perform a series of actions on the machine it is running on.</p>
<p>TweetCommander will support three commands: &#8220;current_screenshot&#8221;, &#8220;exit&#8221;, and &#8220;set_interval&#8221;.</p>
<ul>
<li>Sending &#8220;current_screenshot&#8221; will tell TweetCommander to take a screen capture of the Windows desktop, upload it to TwitPic, and then send the url for that image to the owner user in a Direct Message.</li>
<li>Sending &#8220;exit&#8221; will cause TweetCommander to exit</li>
<li>The &#8220;set_interval&#8221; is followed by a number that represents the number of seconds TweetCommander should wait between requests for new direct messages from twitter. This is more to avoid the API limit than anything else.</li>
</ul>
<p><strong>Settings</strong><br />
TweetCommander will need to store the Twitter ID for the last successfully processed Direct Message somewhere so we aren&#8217;t constantly processing the same commands over and over again. The end user won&#8217;t need to be aware of this value but it&#8217;s worth mentioning anyway.</p>
<p>We&#8217;ll also need to store the wait interval so we don&#8217;t lose this information if we need to restart TweetCommander for whatever reason.</p>
<p>Okay, so here is the settings file I have so far:</p>
<p><img class="aligncenter size-full wp-image-348" title="tweet_mon_console_settings" src="http://codeimpossible.files.wordpress.com/2009/04/tweet_mon_console_settings.jpg?w=473&#038;h=170" alt="tweet_mon_console_settings" width="473" height="170" /></p>
<p><strong>Working with Twitter</strong><br />
All right so now we need to be able to interact with Twitter. Now, I don&#8217;t want to write my own API library so I&#8217;ll <a href="http://code.google.com/p/tweetsharp" target="_blank">go out and get the latest copy of TweetSharp</a> which will give me a nice, readable interface to twitter&#8217;s API. After getting this built I&#8217;ll be able to get the most recent direct messages using the following code:</p>
<pre class="brush: csharp;">
var directMessages = FluentTwitter.CreateRequest()
	.AuthenticateAs(
		TWITTERACCOUNT_USERNAME,
		TWITTERACCOUNT_PASSWORD)
	.DirectMessages()
	.Received()
	.Since(Properties
		.Settings
		.Default
		.LastProcessedCommandID)
	.AsJson()
	.Request()
	.AsDirectMessages();
</pre>
<p>Thats pretty freakin&#8217; sweet I must say. Tweet# really takes the brain work out of working with twitter and there is no way to look at that code and <strong>not</strong> understand what it is doing immediately. Epic win.</p>
<p>To get this running on your machine, just<a href="http://www.box.net/shared/hacsh3b3s4" target="_blank"> grab the source from my box.net folder</a>, and change these values at the top of the Program.cs file:</p>
<pre class="brush: csharp;">
// this is our &quot;owner account&quot; we will only act upon direct messages
// send from this user
private static string TWITTEROWNER 
                         = &quot;codeimpossible&quot;; 
// this is our listener accounts username
private static string TWITTERACCOUNT_USERNAME
                         = &quot;someuser&quot;;

// this is our listener accounts password
private static string TWITTERACCOUNT_PASSWORD
                         = &quot;somepassword&quot;;
</pre>
<p><em>Note: The solution file for this contains a reference to a compiled version of  the Tweet# library that contains </em><a href="http://code.google.com/p/tweetsharp/issues/detail?id=36"><em>a quick patch I made for an issue that affects uploading an image to Twitpic</em></a><em>. However this issue has been fixed officially in the most recent source.</em></p>
<br /> Tagged: c#, Open Source, software development <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=347&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/04/05/works-on-my-machine-weekly-project-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/works-on-my-machine-starburst.png?w=300" medium="image">
			<media:title type="html">works-on-my-machine-starburst</media:title>
		</media:content>

		<media:content url="http://codeimpossible.files.wordpress.com/2009/04/tweet_mon_console_settings.jpg" medium="image">
			<media:title type="html">tweet_mon_console_settings</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing JsonResult in Asp.net MVC</title>
		<link>http://codeimpossible.wordpress.com/2009/03/16/testing-jsonresult-in-aspnet-mvc/</link>
		<comments>http://codeimpossible.wordpress.com/2009/03/16/testing-jsonresult-in-aspnet-mvc/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:23:22 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=340</guid>
		<description><![CDATA[So lately I&#8217;ve been working on a project using Asp.net MVC and TDD to build a web 2.0 application. It&#8217;s a twitter-like application that I started a while ago but due to my failure to test everything I lost about 99% of my work and had to start over from scratch. But this was sort [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=340&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So lately I&#8217;ve been working on a project using Asp.net MVC and TDD to build a web 2.0 application. It&#8217;s a twitter-like application that I started a while ago but due to <a href="" title="Test Everything!">my failure to test everything</a> I lost about 99% of my work and had to start over from scratch. </p>
<p>But this was sort of a good thing because it gave me a chance to revisit a lot of things that I wasn&#8217;t very happy with the first time around. I just got done adding the ability for users to post new messages via AJAX.</p>
<p>In the first version of the application a user would type their status into a textbox, click submit and the page would refresh with their new message at the top of their user wall. Although functional this wasn&#8217;t exactly very &#8220;web 2.0&#8243;-ish.</p>
<p>My controller will have an action called Index that takes two parameters, the message the users is posting and the tags associated with that message. m_UserService, and m_MessageService are private objects, that interact with the database. </p>
<pre class="brush: csharp;">
[Authorize]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(string message, string[] tags)
{

	var messageOwner = this.m_UserService
		.GetByUserName(User.Identity.Name);

	var messageObj = new Message()
	{
		Owner = new User()
		{
			Identifier = messageOwner.Identifier,
			UserName = messageOwner.UserName,
			Email = messageOwner.Email,
			RealName = messageOwner.RealName,
			IsModerator = messageOwner.IsModerator
		},
		Body = message,
		CreatedOn = DateTime.Now,
		IsReply = message.StartsWith(&quot;@&quot;)
	};

	this.m_MessageService.Post(messageObj);

	return Json(messageObj);
}
</pre>
<p>The JsonResult will be serialized/deserialized by the MVC framework when the code is run in a web project or IIS but I need to be able to test this as part of our build process.</p>
<p><i>* NOTE: For those of you who might be thinking &#8220;how do we get around the authorization&#8221;? I&#8217;ll answer that in a later post (or you can <a href="http://www.hanselman.com/blog/ASPNETMVCSessionAtMix08TDDAndMvcMockHelpers.aspx">check out Scott Hanselmans blog for the solution</a>).</i></p>
<p>Ideally I wanted to do something like the following in my test:</p>
<pre class="brush: csharp;">
	Assert.AreEqual(&quot;some text&quot;, jsonObject.someproperty);
</pre>
<p>But since C# is a type-safe language this isn&#8217;t easily doable. However, utilizing an extension method and the JavaScriptSerializer in System.Web.Script.Serialization we can come pretty close:</p>
<pre class="brush: csharp;">
	Assert.AreEqual(&quot;some text&quot;, jsonObject[&quot;someproperty&quot;]);
</pre>
<p>Here is the code I used to achieve this (This code depends on <a href="http://code.google.com/p/moq/">Moq v3.0.108.5 which you can download here</a>):</p>
<pre class="brush: csharp;">

using System;
using System.Text;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.Mvc;

using Moq;

public static class JsonResultExtensions
{

	public static T Deserialize&lt;T&gt;(this JsonResult json,
		Controller controller)
	{

		var jsonSB = new StringBuilder();

		var httpResponseMock =
			new Mock&lt;HttpResponseBase&gt;();

		httpResponseMock.Setup(mock =&gt; {
			mock.Write(It.IsAny&lt;String&gt;());
		}).Callback&lt;String&gt;((s) =&gt; {
			jsonSB.Append(s);
		});

		var httpContextMock =  new Mock&lt;HttpContextBase&gt;();

		httpContextMock.Setup(mock =&gt; mock.Response)
			.Returns(httpResponseMock.Object);

		controller.ControllerContext
			.HttpContext = httpContextMock.Object;

		jsonResult.ExecuteResult(
			controller.ControllerContext);

		return new JavaScriptSerializer()
			.Deserialize&lt;T&gt;(jsonSB.ToString());
	}
}
</pre>
<br /> Tagged: asp.net, MVC, Unit Testing <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/340/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=340&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/03/16/testing-jsonresult-in-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
		<item>
		<title>Meeting Sketches</title>
		<link>http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/</link>
		<comments>http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 03:26:53 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sketches]]></category>

		<guid isPermaLink="false">http://codeimpossible.com/?p=330</guid>
		<description><![CDATA[Tagged: sketches<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=330&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<a href='http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/pic-0040_11/' title='pic-0040_11'><img width="150" height="112" src="http://codeimpossible.files.wordpress.com/2009/02/pic-0040_11.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="pic-0040_11" title="pic-0040_11" /></a>
<a href='http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/pic-00411/' title='pic-00411'><img width="150" height="112" src="http://codeimpossible.files.wordpress.com/2009/02/pic-00411.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="pic-00411" title="pic-00411" /></a>
<a href='http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/pic-0042_11/' title='pic-0042_11'><img width="150" height="112" src="http://codeimpossible.files.wordpress.com/2009/02/pic-0042_11.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="pic-0042_11" title="pic-0042_11" /></a>
<a href='http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/pic-0043_11/' title='pic-0043_11'><img width="150" height="112" src="http://codeimpossible.files.wordpress.com/2009/02/pic-0043_11.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="pic-0043_11" title="pic-0043_11" /></a>

<br /> Tagged: sketches <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=330&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/02/10/meeting-sketches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
		<item>
		<title>Introducing The JavaScript Object Query Library</title>
		<link>http://codeimpossible.wordpress.com/2009/02/10/introducing-the-javascript-object-query-library/</link>
		<comments>http://codeimpossible.wordpress.com/2009/02/10/introducing-the-javascript-object-query-library/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 06:51:16 +0000</pubDate>
		<dc:creator>Jared Barboza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jsoq]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://codeimpossible.wordpress.com/?p=272</guid>
		<description><![CDATA[So, yeah I originally started writing this article back in september when I was about mid-way through JSOQ. Some things have changed since then and I&#8217;ve tried to keep the post up-to-date. Enjoy! Also, another similar library has come out recently: JSINQ which is a really feature-rich LINQ to Object implementation in Javascript. Really bad-ass stuff. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=272&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>So, yeah I originally started writing this article back in september when I was about mid-way through JSOQ. Some things have changed since then and I&#8217;ve tried to keep the post up-to-date. Enjoy!</em></p>
<p><em>Also, another similar library has come out recently: <a href="http://www.codeplex.com/jsinq" target="_blank">JSINQ</a> which is a really feature-rich LINQ to Object implementation in Javascript. Really bad-ass stuff.</em></p></blockquote>
<p>The Elevator Pitch:</p>
<p>JSOQ is an open-source pet project of mine that lets you easily access the data that you need from large collections in JavaScript. It was developed over a two week period in September of 2008 and is currently at version 1.1.</p>
<p>Everyone probably just shrugged and said &#8220;so??&#8221; Well let me show you. </p>
<p>Lets assume that you have the following JSON string from another web application like, say <a title="Twitter search results in JSON" href="http://search.twitter.com/search.json?q=codeimpossible" target="_blank">twitter search results</a> for example:</p>
<pre class="brush: jscript;">
{&quot;results&quot;:[
{
&quot;text&quot;:&quot;Just another day at the office&quot;,
&quot;to_user_id&quot;:null,
&quot;from_user&quot;:&quot;codeimpossible&quot;,
&quot;id&quot;:1194587890,
&quot;from_user_id&quot;:1316793,
&quot;iso_language_code&quot;:&quot;en&quot;,
&quot;profile_image_url&quot;:&quot;www.path.to.image.us&quot;,
&quot;created_at&quot;:&quot;Tue, 10 Feb 2009 05:47:33 +0000&quot;
},
{
&quot;text&quot;:&quot;@spolsky thats easy! http:\/\/tinyurl.com\/2z42bs&quot;,
&quot;to_user_id&quot;:1357501,
&quot;to_user&quot;:&quot;spolsky&quot;,
&quot;from_user&quot;:&quot;codeimpossible&quot;,
&quot;id&quot;:1194582705,
&quot;from_user_id&quot;:1316793,
&quot;iso_language_code&quot;:&quot;en&quot;,
&quot;profile_image_url&quot;:&quot;www.path.to.image.us&quot;,
&quot;created_at&quot;:&quot;Tue, 10 Feb 2009 05:44:51 +0000&quot;
}
]} 
</pre>
<p>In the sample above we only have two results but JSOQ has been tested to work with collections of tens of thousands of items.</p>
<p>The JSON object we have here is perfectly fine if we watned to show a whole bunch of data to the end user, but what if I only wanted to show the search results after a certain date? Or what if I only wanted the text from each message that was typed to this &#8220;spolsky&#8221; character?</p>
<p>To accomplish this in &#8220;straight&#8221; javascript I&#8217;d be looking at writing a lot of loops and if/else code and then I would still have all these extra properties that I don&#8217;t even need.</p>
<p>JSOQ allows me to query a javascript object or collection of objects using a specified criteria and return only the properties/methods I want.</p>
<p>So lets go with the second option. Let&#8217;s get all the .text members from all the messages that were sent to the &#8220;spolsky&#8221; user.</p>
<pre class="brush: jscript;">
var search_results = eval(our_json_result);
var result = null;
with(jsoq) {
    result = From(search_results.results)
                .query('text')
                .where(function(i) {
                    return i.to_user === &quot;spolsky&quot;;
                });
}
</pre>
<p> </p>
<p>And now our result object is filled with a bunch of other objects that would look something like:</p>
<pre class="brush: jscript;">
{
    text: &quot;@spolsky thats easy! http:\/\/tinyurl.com\/2z42bs&quot;
}
</pre>
<p> </p>
<p>Pretty simple eh? For more information on JSOQ please check back here in the near future or contribute to <a title="JSOQ Google Code Page" href="http://code.google.com/p/jsoq/" target="_blank">the google code repository</a>.</p>
<br /> Tagged: Javascript, jsoq, Open Source <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeimpossible.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeimpossible.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeimpossible.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codeimpossible.wordpress.com&amp;blog=3441988&amp;post=272&amp;subd=codeimpossible&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codeimpossible.wordpress.com/2009/02/10/introducing-the-javascript-object-query-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55997cec217233703cbf68b689578771?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Code Impossible</media:title>
		</media:content>
	</item>
	</channel>
</rss>
