<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Blog</title><link>http://www.ariankulp.com:80/</link><description>Blog</description><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ArianKulp" /><feedburner:info uri="ariankulp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>44.608694</geo:lat><geo:long>-123.275203</geo:long><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><item><title>Lesson learned on app error reports</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/9ixm3MUsInU/lesson-learned-on-app-error-reports</link><description>&lt;p&gt;I've been struggling with an error in one of my Windows Phone apps.&amp;#160; I finally was certain that I had fixed it but yet I continued to get error reports labeled with the newest version number (I include that in the subject of the error email).&amp;#160;&amp;#160; I even released a second update to fix it and still got reports!&amp;#160; I finally figured it out though.&amp;#160; My app writes out the stack trace to isolated storage when there is an uncaught exception (you can't send an email while the app is going down...).&amp;#160; On next launch, the app prompts the user to email the stack trace.&amp;#160; The problem is that if the crash occurs on one version, then they upgrade, the trace will reflect the newest version -- the one without the bug!&amp;#160; I'll need to add the version of the app at the time the crash occurred, so if a newer version emails it I can tell!&amp;#160; Kind of bone-headed I guess, but it took me way too long to figure it out.&amp;#160; If you implement exception reporting like this, keep it in mind!&amp;#160; Of course, you can just use the exception reporting on the Create hub, but it's nice this way since the user gets to have some control, and you get immediate notification.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=9ixm3MUsInU:txowj7z288s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=9ixm3MUsInU:txowj7z288s:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=9ixm3MUsInU:txowj7z288s:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=9ixm3MUsInU:txowj7z288s:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=9ixm3MUsInU:txowj7z288s:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=9ixm3MUsInU:txowj7z288s:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/9ixm3MUsInU" height="1" width="1"/&gt;</description><pubDate>Wed, 25 Jan 2012 06:33:17 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/lesson-learned-on-app-error-reports</guid><feedburner:origLink>http://www.ariankulp.com:80/lesson-learned-on-app-error-reports</feedburner:origLink></item><item><title>Metro Lockscreen Creator update</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/XrYt339E0A0/metro-lockscreen-creator-update</link><description>&lt;p&gt;I want to apologize to all of the users of my &lt;a href="http://www.windowsphone.com/en-US/apps/0f5eaaa8-e75e-4a04-a5f9-24db1c176a6b" target="_blank"&gt;Metro Lockscreen Creator&lt;/a&gt; app on Windows Phone.&amp;#160; My last updates have caused problems for users of previous versions.&amp;#160; This is a scenario that I haven't been testing, and unfortunately the Marketplace certification process doesn't take it into account either.&amp;#160; If the app is immediately crashing for you, please remove and add it again from Marketplace.&amp;#160; I just submitted a bug fix that should go live in a few days.&amp;#160; I added some highly requested features in the new updates, but the problems have prevented people from being able to see them.&amp;#160; I hope this helps.&amp;#160; Thanks for your support, and some very kind reviews (in between the justifiably angry ones!).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.windowsphone.com/en-US/apps/0f5eaaa8-e75e-4a04-a5f9-24db1c176a6b" target="_blank"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="Metro Lockscreen" border="0" alt="Marketplace thumbnail for Metro Lockscreen" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Metro-Lockscreen-Creator-update_857/image_3.png" width="190" height="104" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XrYt339E0A0:bqjGbbLhK-w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XrYt339E0A0:bqjGbbLhK-w:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=XrYt339E0A0:bqjGbbLhK-w:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XrYt339E0A0:bqjGbbLhK-w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XrYt339E0A0:bqjGbbLhK-w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=XrYt339E0A0:bqjGbbLhK-w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/XrYt339E0A0" height="1" width="1"/&gt;</description><pubDate>Fri, 20 Jan 2012 08:44:11 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/metro-lockscreen-creator-update</guid><feedburner:origLink>http://www.ariankulp.com:80/metro-lockscreen-creator-update</feedburner:origLink></item><item><title>Expression Blend Crashes on Every Single Startup</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/lCVYXSWP2SY/expression-blend-crashes-on-every-single-startup</link><description>&lt;p&gt;Have you been having trouble with Blend 4 crashing every time you start it up?&amp;#160; I was, until I discovered the &amp;quot;easy&amp;quot; fix.&amp;#160; It turns out that this happens if you install the Visual Studio 11 Developer Preview.&amp;#160; There's a bug that they fixed right after releasing it!&amp;#160; This is the price to pay for installing beta software alongside production software.&amp;#160; For now, copy the following lines to a batch file and run it.&lt;/p&gt;  &lt;pre class="csharpcode"&gt;%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &lt;span class="str"&gt;&amp;quot;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Framework.dll&amp;quot;&lt;/span&gt;

%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &lt;span class="str"&gt;&amp;quot;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Blend.dll&amp;quot;&lt;/span&gt;

%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &lt;span class="str"&gt;&amp;quot;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Project.dll&amp;quot;&lt;/span&gt;

%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &lt;span class="str"&gt;&amp;quot;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;Source: &lt;a href="http://connect.microsoft.com/Expression/feedback/details/690246/blend-4-crashes-on-startup" target="_blank"&gt;Microsoft Connect - Blend 4 Crashes on Startup&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=lCVYXSWP2SY:8AysS3rvFo8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=lCVYXSWP2SY:8AysS3rvFo8:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=lCVYXSWP2SY:8AysS3rvFo8:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=lCVYXSWP2SY:8AysS3rvFo8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=lCVYXSWP2SY:8AysS3rvFo8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=lCVYXSWP2SY:8AysS3rvFo8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/lCVYXSWP2SY" height="1" width="1"/&gt;</description><pubDate>Sun, 15 Jan 2012 08:21:01 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/expression-blend-crashes-on-every-single-startup</guid><feedburner:origLink>http://www.ariankulp.com:80/expression-blend-crashes-on-every-single-startup</feedburner:origLink></item><item><title>"Failed to connect to device as it is developer locked" error</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/sqG5cO7F3ak/failed-to-connect-to-device-as-it-is-developer-locked-error</link><description>&lt;h4&gt;I started getting this error message on a phone that I&amp;rsquo;ve had unlocked for some time.&amp;nbsp; My App Hub membership is up to date, and the &lt;strong&gt;Windows Phone Developer Registration&lt;/strong&gt; tool was returning &amp;ldquo;Registered&amp;rdquo; each time.&amp;nbsp; After digging around in App Hub, I saw that under &lt;strong&gt;devices &lt;/strong&gt;my phone was listed with an &lt;strong&gt;Expiration Date&lt;/strong&gt; of a few days ago.&amp;nbsp; Apparently, my first registration of the phone on 1/3/2011 expired a few days ago.&amp;nbsp; I actually had to click &lt;strong&gt;Remove&lt;/strong&gt; there, and run the developer registration utility again.&amp;nbsp; Now it works great!&amp;nbsp; Refreshing the &lt;strong&gt;devices&lt;/strong&gt; page, I now see a current registration date with a future Expiration Date.&amp;nbsp; Hopefully Microsoft can get this messaging improved in the future.&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Expired-phone-registration_11CC5/image_4.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Expired-phone-registration_11CC5/image_thumb_1.png" width="604" height="279" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=sqG5cO7F3ak:7tHCR-Xr3Gk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=sqG5cO7F3ak:7tHCR-Xr3Gk:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=sqG5cO7F3ak:7tHCR-Xr3Gk:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=sqG5cO7F3ak:7tHCR-Xr3Gk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=sqG5cO7F3ak:7tHCR-Xr3Gk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=sqG5cO7F3ak:7tHCR-Xr3Gk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/sqG5cO7F3ak" height="1" width="1"/&gt;</description><pubDate>Mon, 09 Jan 2012 03:26:15 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/failed-to-connect-to-device-as-it-is-developer-locked-error</guid><feedburner:origLink>http://www.ariankulp.com:80/failed-to-connect-to-device-as-it-is-developer-locked-error</feedburner:origLink></item><item><title>Fixing that darn AdControl when it won't show up</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/ACdrzK5RthA/fixing-that-darn-adcontrol-when-it-wont-show-up</link><description>&lt;p&gt;I&amp;rsquo;ve had two apps recently that I ended up submitting with a problem. In both cases I had the AdControl, but no ads were showing (the control would appear for a second, then collapse). I made the mistake of assuming that this was a temporary problem and I just published them without waiting to see it work.&amp;nbsp; It never did end up working though.&lt;/p&gt;
&lt;p&gt;After way too much digging without finding anything, I decided to turn on all thrown exceptions while debugging.&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Fixing-that-darn-AdControl_307/image_8.png" width="197" height="167" /&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;em&gt;Click the &lt;strong&gt;Debug | Exceptions &lt;/strong&gt;menu command&lt;/em&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;/p&gt;
&lt;p align="center"&gt;&amp;nbsp;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Fixing-that-darn-AdControl_307/image_9.png" width="568" height="189" /&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;em&gt;For at least &lt;strong&gt;Common Language Runtime Exceptions&lt;/strong&gt;, check &lt;strong&gt;Thrown&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What a difference!&amp;nbsp; With all thrown exceptions popping up, I could immediately see that I was missing two capabilities in the WMAppManifest.xml file (ID_CAP_WEBBROWSERCOMPONENT and ID_CAP_PHONEDIALER).&amp;nbsp; Such a simple fix!&amp;nbsp; Expand your &lt;strong&gt;Properties&lt;/strong&gt; node in the project, then open the file and add both of them to the &lt;strong&gt;Capabilities&lt;/strong&gt; element:&lt;/p&gt;
&lt;p align="center"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Fixing-that-darn-AdControl_307/image_7.png" width="413" height="163" /&gt;&lt;/p&gt;
&lt;p&gt;I really wish Microsoft would add capabilities to the UI in Project Properties.&amp;nbsp; It would also be nice if these were added automatically somehow when the AdControl was included.&amp;nbsp; Hopefully this will help to prevent someone else from banging their head against the wall!&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=ACdrzK5RthA:Id9rZTFngHM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=ACdrzK5RthA:Id9rZTFngHM:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=ACdrzK5RthA:Id9rZTFngHM:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=ACdrzK5RthA:Id9rZTFngHM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=ACdrzK5RthA:Id9rZTFngHM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=ACdrzK5RthA:Id9rZTFngHM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/ACdrzK5RthA" height="1" width="1"/&gt;</description><pubDate>Mon, 09 Jan 2012 03:25:49 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/fixing-that-darn-adcontrol-when-it-wont-show-up</guid><feedburner:origLink>http://www.ariankulp.com:80/fixing-that-darn-adcontrol-when-it-wont-show-up</feedburner:origLink></item><item><title>Tasks in Visual Studio</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/zSQ8-DnRYwQ/tasks-in-visual-studio</link><description>&lt;p&gt;Are you using tasks in Visual Studio?&amp;#160; You should be!&amp;#160; It can be difficult to keep track of things that you need to finish.&amp;#160; Whether it’s hacks that need to be cleaned up, or code that’s unfinished, there are many spots that you might need to return to.&amp;#160; Tasks are how you can track of these.&amp;#160; On any line of code, create a comment starting with “TODO” and followed by the task that you need to complete:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_4.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_thumb_1.png" width="393" height="79" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This automatically becomes a task that can be managed across the solution.&amp;#160; In order to see all such lines, go to the View menu and click Task List.&amp;#160; Now you can sort by file, line number, or alphabetically by task.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_thumb.png" width="801" height="226" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;You can also click the &lt;strong&gt;Comments &lt;/strong&gt;drop-down list and then click &lt;strong&gt;User Tasks&lt;/strong&gt; to create tasks that aren’t associated with specific lines of code.&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_10.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_thumb_4.png" width="403" height="115" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;There are settings available so you can create other tasks too.&amp;#160; In addition to TODO, you can specify HACK or create your own.&amp;#160; To to Options | Environment | Task List, and you can manage the prefixes and what priority they have:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_6.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/37e1c9a2caed_11B77/image_thumb_2.png" width="762" height="444" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Give tasks a try.&amp;#160; Chances are, even if you weren’t aware of this, you were likely using code comments to indicate work to be done.&amp;#160; Use this simple convention, and keep track of them in a more organized fashion!&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=zSQ8-DnRYwQ:80dUn-Dsgd8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=zSQ8-DnRYwQ:80dUn-Dsgd8:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=zSQ8-DnRYwQ:80dUn-Dsgd8:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=zSQ8-DnRYwQ:80dUn-Dsgd8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=zSQ8-DnRYwQ:80dUn-Dsgd8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=zSQ8-DnRYwQ:80dUn-Dsgd8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/zSQ8-DnRYwQ" height="1" width="1"/&gt;</description><pubDate>Sun, 04 Dec 2011 23:35:05 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/tasks-in-visual-studio</guid><feedburner:origLink>http://www.ariankulp.com:80/tasks-in-visual-studio</feedburner:origLink></item><item><title>Windows Phone Game Contest</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/QR1QLl5dIUw/windows-phone-game-contest</link><description>&lt;p&gt;Like gaming?&amp;#160; Like making games?&amp;#160; Now you can step up your game with a new Dell Alienware M18x gaming laptop or an Xbox LIVE Gold card just for submitting your super cool Windows Phone game to the Marketplace.&amp;#160; It’s easy – just go &lt;a href="http://on.fb.me/WPgameApp" target="_blank"&gt;here&lt;/a&gt; to find out how you could win some pretty sweet prizes.&lt;/p&gt;  &lt;p&gt;For event code, enter “AKULP” and get those entries in!&amp;#160; You have until 2/29/2012 to enter.&lt;/p&gt;  &lt;p&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" src="http://i70.photobucket.com/albums/i113/devils_mentor/Scanned%20Items/Alienware-M17x-with-Intel-QX9300-nVidia-GTX-280M-SLI-17-Inch-Laptop-02.jpg" width="400" height="300" /&gt;&lt;/p&gt;  &lt;p&gt;Link: &lt;a href="http://on.fb.me/WPgameApp"&gt;http://on.fb.me/WPgameApp&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=QR1QLl5dIUw:czjYsFZ8y6A:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=QR1QLl5dIUw:czjYsFZ8y6A:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=QR1QLl5dIUw:czjYsFZ8y6A:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=QR1QLl5dIUw:czjYsFZ8y6A:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=QR1QLl5dIUw:czjYsFZ8y6A:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=QR1QLl5dIUw:czjYsFZ8y6A:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/QR1QLl5dIUw" height="1" width="1"/&gt;</description><pubDate>Fri, 02 Dec 2011 20:44:00 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/windows-phone-game-contest</guid><feedburner:origLink>http://www.ariankulp.com:80/windows-phone-game-contest</feedburner:origLink></item><item><title>Great contests for Windows Phone apps!</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/jXMmA8BNz7k/great-contests-for-windows-phone-apps</link><description>&lt;p&gt;Are you working on Windows Phone apps?&amp;#160; If you’ve been working on something, now’s the time to get it published!&amp;#160; Any app published between 10/15 and 12/31 can get you an entry for a Samsung Series 7 Slate (like at PDC)!&lt;/p&gt; &lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" alt="Samsung Series 7 XE700T1A-A03US 11.6-Inch Slate (128 GB, Win 7 HP)" src="http://ecx.images-amazon.com/images/I/51qWpvXUzXL._AA300_.jpg" /&gt;   &lt;p align="left"&gt;Every five apps gets you an entry for free advertising for the app of your choice.&amp;#160; If you need help (within reason!), I’d be glad to provide some guidance.&amp;#160; Once the app is published, use the below link to enter the app’s GUID as an entry.&amp;#160; For promo code, use “AKULP”.&lt;/p&gt;  &lt;p&gt;Link: &lt;a href="http://www.windowsphone7event.com/GoMango/"&gt;http://www.windowsphone7event.com/GoMango/&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=jXMmA8BNz7k:JuPIjJ-sqis:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=jXMmA8BNz7k:JuPIjJ-sqis:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=jXMmA8BNz7k:JuPIjJ-sqis:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=jXMmA8BNz7k:JuPIjJ-sqis:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=jXMmA8BNz7k:JuPIjJ-sqis:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=jXMmA8BNz7k:JuPIjJ-sqis:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/jXMmA8BNz7k" height="1" width="1"/&gt;</description><pubDate>Tue, 29 Nov 2011 07:37:36 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/great-contests-for-windows-phone-apps</guid><feedburner:origLink>http://www.ariankulp.com:80/great-contests-for-windows-phone-apps</feedburner:origLink></item><item><title>Custom mime types with Cassini</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/3WEpDBpiBB8/custom-mime-types-with-cassini</link><description>&lt;p&gt;After too much time trying to get some video files to play using the video tag, I did some searching and learned that the ASP.NET development web server (Cassini) doesn’t support custom MIME types.&amp;#160; Even after adding the mimeMap entries in the web.config file properly, it just ignores those elements.&amp;#160; The simple solution is to do what I should have anyway: set the project to use IIS Express.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/562aa2072ee3_11B3B/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/562aa2072ee3_11B3B/image_thumb.png" width="368" height="254" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Something interesting that I learned is that Chrome doesn’t actually seem to care about the MIME types.&amp;#160; IE and Firefox refused to load the videos, but Chrome was fine with it.&amp;#160; I had the type attribute set in the source elements, so Chrome was happy, but IE and Firefox apparently require the server MIME type to match.&amp;#160; So much time wasted on something that should have been so easy!&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=3WEpDBpiBB8:s4SvOkjxju0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=3WEpDBpiBB8:s4SvOkjxju0:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=3WEpDBpiBB8:s4SvOkjxju0:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=3WEpDBpiBB8:s4SvOkjxju0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=3WEpDBpiBB8:s4SvOkjxju0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=3WEpDBpiBB8:s4SvOkjxju0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/3WEpDBpiBB8" height="1" width="1"/&gt;</description><pubDate>Tue, 22 Nov 2011 17:43:08 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/custom-mime-types-with-cassini</guid><feedburner:origLink>http://www.ariankulp.com:80/custom-mime-types-with-cassini</feedburner:origLink></item><item><title>Clever move, Firefox!</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/HukKUfbsQl8/clever-move-firefox</link><description>&lt;p&gt;I used to be a die-hard Firefox junkie.&amp;#160; Back when IE was in versions 7 and 8,&amp;#160; IE just wasn’t a good choice for working on standards-compliant web sites, and as new HTML features started rolling out and IE didn’t keep up, I left it behind.&amp;#160; In the last year or so, I upgraded to Chrome, and then IE 9 when it came out.&amp;#160; Both did an excellent job with standards (though IE’s release cycle means it’s behind again until IE 10) and were nice and fast.&amp;#160; I just reinstalled Firefox to do some cross-browser testing, and I’m impressed by one specific feature: the venerable JavaScript alert().&amp;#160; Both IE and Chrome have the ridiculous method of using the system message box for the JS alert.&amp;#160; This has the effect of creating a modal window for one out of many potential tabs -- inexcusable.&amp;#160; It turns out that Firefox has made a great choice by creating an in-browser dialog, thus having no effect on the overall window or other tabs.&amp;#160; This is a wonderful addition!&amp;#160; Also, since it is clearly part of the web page, there is no longer the worrisome factor of naïve users believing it to be a system message.&amp;#160; Kudos, Firefox!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Clever-move-Firefox_BF31/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/Clever-move-Firefox_BF31/image_thumb.png" width="247" height="151" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=HukKUfbsQl8:b0w0wayiLtE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=HukKUfbsQl8:b0w0wayiLtE:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=HukKUfbsQl8:b0w0wayiLtE:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=HukKUfbsQl8:b0w0wayiLtE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=HukKUfbsQl8:b0w0wayiLtE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=HukKUfbsQl8:b0w0wayiLtE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/HukKUfbsQl8" height="1" width="1"/&gt;</description><pubDate>Fri, 18 Nov 2011 21:38:59 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/clever-move-firefox</guid><feedburner:origLink>http://www.ariankulp.com:80/clever-move-firefox</feedburner:origLink></item><item><title>Great tool for SQL Server Compact Databases</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/fXxPde-20Qc/great-tool-for-sql-server-compact-databases</link><description>&lt;p&gt;How do I examine the contents of a SQL Server Compact database?&amp;#160; How do I open an sdf file in SQL Server Management Studio?&amp;#160; If you’ve wondered about this, then you need to get the SQL Server Compact Query Analyzer tool by Christian Helle.&amp;#160; This tool lets you just double-click the sdf file to open it in a query analyzer window where you can examine the schema and easily view the data.&amp;#160; I am in love with this tool lately!&amp;#160; I can easily open my Windows Phone or desktop SQL Server Compact databases and see exactly what got stored rather than writing more code anytime sometime doesn’t look right.&amp;#160; This is quick and it works great!&amp;#160; Even better, it’s open source and available on Codeplex!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlcequery.codeplex.com/" target="_blank"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" src="http://download.codeplex.com/download?ProjectName=sqlcequery&amp;amp;DownloadId=253721" width="536" height="359" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Link: &lt;a href="http://sqlcequery.codeplex.com"&gt;http://sqlcequery.codeplex.com&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=fXxPde-20Qc:CnWT130lMiw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=fXxPde-20Qc:CnWT130lMiw:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=fXxPde-20Qc:CnWT130lMiw:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=fXxPde-20Qc:CnWT130lMiw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=fXxPde-20Qc:CnWT130lMiw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=fXxPde-20Qc:CnWT130lMiw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/fXxPde-20Qc" height="1" width="1"/&gt;</description><pubDate>Thu, 17 Nov 2011 18:25:26 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/great-tool-for-sql-server-compact-databases</guid><feedburner:origLink>http://www.ariankulp.com:80/great-tool-for-sql-server-compact-databases</feedburner:origLink></item><item><title>Cool interactions with Kinect</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/mUbgZLVqWh0/cool-interactions-with-kinect</link><description>&lt;p&gt;I like the idea of gestures for manipulating workspaces, but it’s difficult to get it right.&amp;#160; Code Spaces is a Microsoft concept for developer code sharing using Kinects, Windows Phone devices, and touch-enabled laptops to collaborate in group settings.&amp;#160; It makes use of Code Bubbles, which I &lt;a href="http://www.ariankulp.com/archive/2010/05/15/redefining-the-code-editor.aspx" target="_blank"&gt;mentioned last year&lt;/a&gt;.&amp;#160; The modern code editor view works well enough for editing, but isn’t suited for presentations or collaboration.&amp;#160; It’s fun to see potential future directions.&lt;/p&gt;  &lt;p&gt;Source: &lt;a href="http://www.engadget.com/2011/11/14/microsoft-outlines-code-space-looks-to-include-kinect-in-confer/"&gt;http://www.engadget.com/2011/11/14/microsoft-outlines-code-space-looks-to-include-kinect-in-confer/&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=mUbgZLVqWh0:4e6iKSnOn30:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=mUbgZLVqWh0:4e6iKSnOn30:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=mUbgZLVqWh0:4e6iKSnOn30:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=mUbgZLVqWh0:4e6iKSnOn30:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=mUbgZLVqWh0:4e6iKSnOn30:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=mUbgZLVqWh0:4e6iKSnOn30:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/mUbgZLVqWh0" height="1" width="1"/&gt;</description><pubDate>Tue, 15 Nov 2011 07:33:44 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/cool-interactions-with-kinect</guid><feedburner:origLink>http://www.ariankulp.com:80/cool-interactions-with-kinect</feedburner:origLink></item><item><title>DataContract serialization on Windows Phone</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/hbLsTY3mTt4/datacontract-serialization-on-windows-phone</link><description>&lt;p&gt;I wasted many hours on a problem with serializing data on a Windows Phone app.&amp;#160; I’m using DataContract/DataMember.&amp;#160; I learned many things along the way, but it was still way too much time spent.&amp;#160; For example, I learned that I don’t need to always use DataMember as I do.&amp;#160; If you don’t use attributes, all public properties will be serialized.&amp;#160; If you use DataMember anywhere, then it switches to opt-in.&amp;#160; Alternatively, you can use IgnoreDataMember to opt-out on specific public properties.&lt;/p&gt;  &lt;p&gt;I read that ObservableCollection isn’t serializable.&amp;#160; Thinking that to be true (still not positive on this one), I wrote serializer methods (with the assistance of the OnDeserializing/OnDeserialized/OnSerializing/OnSerialized attributes).&amp;#160; I hadn’t been aware of these, but they really help when you need finer control over the process.&amp;#160; In my case, I serialized using an array, then when deserialized, I copied the array items to the ObservableCollection.&lt;/p&gt;  &lt;p&gt;In the end though, I kept getting errors about my class not being public, and therefore failing to deserialize (serializing worked fine).&amp;#160; I couldn’t figure it out.&amp;#160; &lt;/p&gt;  &lt;p align="center"&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/DataContract-serialization-on-Windows-Ph_5B1/image_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/DataContract-serialization-on-Windows-Ph_5B1/image_thumb.png" width="811" height="88" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I wrote a method like this:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;[OnSerializing]
&lt;span class="kwrd"&gt;void&lt;/span&gt; OnSerializing(StreamingContext ctx)
{
}&lt;/pre&gt;
&lt;style type="text/css"&gt;

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;The examples that I found indicated that this would be fine, so I assumed that the issue was elsewhere.&amp;#160; After hours of troubleshooting, I realized that all I needed to do was make those methods public!&amp;#160; I don’t like that.&amp;#160; Those methods shouldn’t be public.&amp;#160; It’s to do with the medium trust environment of WP7.&amp;#160; In other environments, you can do what I did above just fine, but the serializer won’t have access to the methods without public access.&amp;#160; I hope that I’m wrong and that there’s a different way to do this, but it seems like the only way.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=hbLsTY3mTt4:wXnzjKmSEdY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=hbLsTY3mTt4:wXnzjKmSEdY:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=hbLsTY3mTt4:wXnzjKmSEdY:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=hbLsTY3mTt4:wXnzjKmSEdY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=hbLsTY3mTt4:wXnzjKmSEdY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=hbLsTY3mTt4:wXnzjKmSEdY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/hbLsTY3mTt4" height="1" width="1"/&gt;</description><pubDate>Tue, 04 Oct 2011 16:53:55 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/datacontract-serialization-on-windows-phone</guid><feedburner:origLink>http://www.ariankulp.com:80/datacontract-serialization-on-windows-phone</feedburner:origLink></item><item><title>Mouse Without Borders</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/2LsgdQ_XocU/mouse-without-borders</link><description>&lt;p&gt;Certainly not the first such product, but this tool Microsoft lets you share keyboard and mouse between computers on a network.&amp;#160; I’ve never been able to get Synergy to work, so even with its cross-platform promise, it doesn’t matter!&amp;#160; Mouse Without Borders even lets you drag and drop files, share the clipboard, and login/logoff across all systems.&amp;#160; This is a great solution for those times that you have a laptop next to your desktop and you keep looking at the wrong screen while you’re typing!&amp;#160; It’s free which is nice.&amp;#160; I like that it comes out of Microsoft Garage though.&amp;#160; This is like Google’s 20%, except Microsofties have to do it on their own time.&amp;#160; They get a great lab though and internal support.&amp;#160; Sounds like a pretty nice setup!&lt;/p&gt;  &lt;p&gt;Source: &lt;a href="http://www.engadget.com/2011/09/12/microsofts-mouse-without-borders-the-kvm-that-killed-the-kvm/"&gt;http://www.engadget.com/2011/09/12/microsofts-mouse-without-borders-the-kvm-that-killed-the-kvm/&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2LsgdQ_XocU:FGi5Rca-DPU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2LsgdQ_XocU:FGi5Rca-DPU:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=2LsgdQ_XocU:FGi5Rca-DPU:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2LsgdQ_XocU:FGi5Rca-DPU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2LsgdQ_XocU:FGi5Rca-DPU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=2LsgdQ_XocU:FGi5Rca-DPU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/2LsgdQ_XocU" height="1" width="1"/&gt;</description><pubDate>Tue, 13 Sep 2011 22:33:58 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/mouse-without-borders</guid><feedburner:origLink>http://www.ariankulp.com:80/mouse-without-borders</feedburner:origLink></item><item><title>Error with Ad Control: Invalid format being parsed</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/EO3pRJAJ7Vg/error-with-ad-control-invalid-format-being-parsed</link><description>&lt;p&gt;I’m using the Microsoft Advertising control and had made some layout changes in the XAML.&amp;#160; All of a sudden I started getting the very unhelpful message “Invalid format being parsed: &amp;lt;”.&amp;#160; Everything looked fine, and it was certainly valid XML/XAML.&amp;#160; I finally discovered that the control *requires* the use of both Width and Height being explicit set.&amp;#160; The Grid containing it provided layout width and height and it looked fine in the preview window.&amp;#160; As soon as I added those properties though, all was fine!&amp;#160; Sounds like a bug (and I’m sure if I checked Connect I’d see it there).&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=EO3pRJAJ7Vg:1wHAixpU9Uo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=EO3pRJAJ7Vg:1wHAixpU9Uo:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=EO3pRJAJ7Vg:1wHAixpU9Uo:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=EO3pRJAJ7Vg:1wHAixpU9Uo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=EO3pRJAJ7Vg:1wHAixpU9Uo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=EO3pRJAJ7Vg:1wHAixpU9Uo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/EO3pRJAJ7Vg" height="1" width="1"/&gt;</description><pubDate>Wed, 07 Sep 2011 00:52:27 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/error-with-ad-control-invalid-format-being-parsed</guid><feedburner:origLink>http://www.ariankulp.com:80/error-with-ad-control-invalid-format-being-parsed</feedburner:origLink></item><item><title>Good deal on a Windows Phone</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/IbBhXmuj0hY/good-deal-on-a-windows-phone</link><description>&lt;p&gt;The &lt;a href="http://www.htc.com/www/smartphones/htc-7-trophy/" target="_blank"&gt;HTC 7 Trophy&lt;/a&gt; is on sale at Buy.com right now for just $269, no shipping, and unlocked!&amp;#160; If you are looking for a Windows Phone, this is a great deal to avoid contracts.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.buy.com/prod/htc-7-trophy-t8686-black-5mp-windows-mobile-7-gsm-unlocked-phone/q/loc/111/listingID/142827283/219955562.html" target="_blank"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/ebd4b69da7ed_7CC7/image_3.png" width="201" height="307" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=IbBhXmuj0hY:z6S-nb9NHGU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=IbBhXmuj0hY:z6S-nb9NHGU:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=IbBhXmuj0hY:z6S-nb9NHGU:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=IbBhXmuj0hY:z6S-nb9NHGU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=IbBhXmuj0hY:z6S-nb9NHGU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=IbBhXmuj0hY:z6S-nb9NHGU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/IbBhXmuj0hY" height="1" width="1"/&gt;</description><pubDate>Mon, 22 Aug 2011 15:54:08 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/good-deal-on-a-windows-phone</guid><feedburner:origLink>http://www.ariankulp.com:80/good-deal-on-a-windows-phone</feedburner:origLink></item><item><title>Tip: Do not dispose objects multiple times</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/XlTeK4TE7zM/tip-do-not-dispose-objects-multiple-times</link><description>&lt;p&gt;Another new thing I learned!&amp;#160; I’m a big fan of &lt;em&gt;using &lt;/em&gt;statements.&amp;#160; I put them in whenever I can to simplify things.&amp;#160; If you don’t use them, you should.&amp;#160; Any object that implements &lt;strong&gt;IDisposable&lt;/strong&gt; requires that you call &lt;strong&gt;Dispose() &lt;/strong&gt;on it when finished with it.&amp;#160; In the past, the best way to do this which was resilient to errors (what if an exception occurs and you miss the call to it?) was to add a try/finally block.&amp;#160; Even if you didn’t catch anything, you’d be guaranteed that the finally would execute.&amp;#160; In there you would check for null and dispose of the object.&amp;#160; With a &lt;strong&gt;using&lt;/strong&gt; block, the dispose call happens as soon as scope ends.&amp;#160; It’s perfect!&lt;/p&gt;  &lt;p&gt;Running static code analysis from Visual Studio (FxCop), I learned of a potential problem when I got the odd error: “Do not dispose object multiple times.”&amp;#160; Puzzling.&amp;#160; No where do I do that.&amp;#160; Look at this block:&lt;/p&gt;  &lt;p&gt;   &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt;(var reader = &lt;span class="kwrd"&gt;new&lt;/span&gt; BlahReader(param))
{
    &lt;span class="kwrd"&gt;using&lt;/span&gt;( var thing = &lt;span class="kwrd"&gt;new&lt;/span&gt; BlahThing(reader))
    {
        &lt;span class="rem"&gt;// Do something&lt;/span&gt;
    }
}&lt;/pre&gt;
  &lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;Everything looks good... or so I thought!&amp;#160; I didn’t realize that the inner dispose would also dispose of the outer object if it wraps it.&amp;#160; Perhaps specific to IO-based object..?&amp;#160; By doing it this way, the “reader” object will be implicitly disposed by the “thing” using block.&amp;#160; Then, the outer block goes out of scope and it gets disposed of again.&amp;#160; Most objects check for that and won’t complain, but it’s not something you should count on.&amp;#160; The recommended (and ugly) alternative is like this:&lt;/p&gt;

&lt;p&gt;
  &lt;pre class="csharpcode"&gt;var reader = &lt;span class="kwrd"&gt;new&lt;/span&gt; BlahReader(param);
&lt;span class="kwrd"&gt;try&lt;/span&gt;
{
    &lt;span class="kwrd"&gt;using&lt;/span&gt;( var thing = &lt;span class="kwrd"&gt;new&lt;/span&gt; BlahThing(reader))
    {
        reader = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        &lt;span class="rem"&gt;// Do something&lt;/span&gt;
    }
&lt;span class="kwrd"&gt;finally&lt;/span&gt;
{
    &lt;span class="kwrd"&gt;if&lt;/span&gt;( reader != &lt;span class="kwrd"&gt;null&lt;/span&gt; ) reader.Dispose();
}&lt;/pre&gt;
If the “thing” initializer throws an exception, the “finally” block will dispose of “reader.”&amp;#160; If all goes well, then the single “using” block will dispose of both.&amp;#160; Not as nice, but I suppose it’s a good idea!&lt;/p&gt;

&lt;p&gt;Link: &lt;a href="http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&amp;amp;l=EN-US&amp;amp;k=k(%22DO+NOT+DISPOSE+OBJECTS+MULTIPLE+TIMES%22);k(TargetFrameworkMoniker-%22SILVERLIGHT%2cVERSION%3dV4.0%22)&amp;amp;rd=true"&gt;http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&amp;amp;l=EN-US&amp;amp;k=k(%22DO+NOT+DISPOSE+OBJECTS+MULTIPLE+TIMES%22);k(TargetFrameworkMoniker-%22SILVERLIGHT%2cVERSION%3dV4.0%22)&amp;amp;rd=true&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XlTeK4TE7zM:xR3wn5qWHdQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XlTeK4TE7zM:xR3wn5qWHdQ:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=XlTeK4TE7zM:xR3wn5qWHdQ:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XlTeK4TE7zM:xR3wn5qWHdQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=XlTeK4TE7zM:xR3wn5qWHdQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=XlTeK4TE7zM:xR3wn5qWHdQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/XlTeK4TE7zM" height="1" width="1"/&gt;</description><pubDate>Fri, 12 Aug 2011 22:37:25 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/tip-do-not-dispose-objects-multiple-times</guid><feedburner:origLink>http://www.ariankulp.com:80/tip-do-not-dispose-objects-multiple-times</feedburner:origLink></item><item><title>Tip: Access to modified variable in closures</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/2IluO4Ch16s/tip-access-to-modified-variable-in-closures</link><description>&lt;p&gt;I learned a simple trick today.&amp;#160; If you use closures (lambdas) in LINQ queries or other such contexts, you automatically capture all variables and their values from the outer scope.&amp;#160; You may not be aware of this, and you may never use it, but it allows you to do things like this:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;string&lt;/span&gt; val = “blah”;
var items = Items.Where(i=&amp;gt;i.Name == val).FirstOrDefault();&lt;/pre&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;Very handy.&amp;#160; On the other hand, in order for this to work you can’t use variables that will change, since you aren’t guaranteed of the order of execution in all cases.&amp;#160; This is especially true in loops:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0; x &amp;lt; 10; x++)
    itemsCount += Items.Where(i=&amp;gt;i.Value == x).Count();&lt;/pre&gt;

&lt;p&gt;I know, dumb example, but the risk is that since x changes, you’ll likely get a warning about “access to modified variable in closure.”&amp;#160; The simple fix for this is to create a closer-scoped variable to copy the value.&amp;#160; In this (overly-)simple example, all you need to do is this:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0; x &amp;lt; 10; x++)
{
    &lt;span class="kwrd"&gt;int&lt;/span&gt; xcopy = x;
    itemsCount += Items.Where(i=&amp;gt;i.Value == xcopy).Count();
}&lt;/pre&gt;

&lt;p&gt;Note that in this example, you are probably safe, since Count() forces the LINQ query to execute immediately, but the general fix is still a good one to remember.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2IluO4Ch16s:kpJmY38ZjmQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2IluO4Ch16s:kpJmY38ZjmQ:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=2IluO4Ch16s:kpJmY38ZjmQ:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2IluO4Ch16s:kpJmY38ZjmQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=2IluO4Ch16s:kpJmY38ZjmQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=2IluO4Ch16s:kpJmY38ZjmQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/2IluO4Ch16s" height="1" width="1"/&gt;</description><pubDate>Thu, 11 Aug 2011 22:57:05 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/tip-access-to-modified-variable-in-closures</guid><feedburner:origLink>http://www.ariankulp.com:80/tip-access-to-modified-variable-in-closures</feedburner:origLink></item><item><title>Interesting package!</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/RPz-j4yp_IY/interesting-package</link><description>&lt;p align="left"&gt;I order from China/Hong Kong fairly often since it can be difficult to source certain parts, at least for any reasonable amount of money.&amp;nbsp; My latest purchase (TRRS cable, male on both ends) just arrived today.&amp;nbsp; I&amp;rsquo;ll be blogging about why later.&amp;nbsp; In the meantime, I thought I&amp;rsquo;d show what a one Jiao note looks like.&amp;nbsp; Makes the purchase an even cheaper one (by a penny or two)!&lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/ca440a9ffef0_AC5B/image_2.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://www.ariankulp.com/Media/Default/Windows-Live-Writer/ca440a9ffef0_AC5B/image_thumb.png" width="364" height="484" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=RPz-j4yp_IY:efZbpVHriVc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=RPz-j4yp_IY:efZbpVHriVc:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=RPz-j4yp_IY:efZbpVHriVc:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=RPz-j4yp_IY:efZbpVHriVc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=RPz-j4yp_IY:efZbpVHriVc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=RPz-j4yp_IY:efZbpVHriVc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/RPz-j4yp_IY" height="1" width="1"/&gt;</description><pubDate>Fri, 05 Aug 2011 20:08:10 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/interesting-package</guid><feedburner:origLink>http://www.ariankulp.com:80/interesting-package</feedburner:origLink></item><item><title>Coding4Fun: Where&amp;rsquo;s My Car?</title><link>http://feedproxy.google.com/~r/ArianKulp/~3/6JYKnrVZFxo/coding4fun-where-rsquo-s-my-car</link><description>&lt;p&gt;I’ve had an app in the Windows Phone Marketplace for a few months now.&amp;#160; It helps you find where you parked your car by mapping, routing, and a photo of the spot.&amp;#160; Today, I published an article talking more about it, and highlighting that the full source code is available on CodePlex.&amp;#160; Enjoy!&lt;/p&gt;  &lt;p&gt;Link: &lt;a title="http://channel9.msdn.com/coding4fun/articles/Wheres-My-Car" href="http://channel9.msdn.com/coding4fun/articles/Wheres-My-Car"&gt;http://channel9.msdn.com/coding4fun/articles/Wheres-My-Car&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=6JYKnrVZFxo:VUUtCbqS-l8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=6JYKnrVZFxo:VUUtCbqS-l8:-BTjWOF_DHI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=6JYKnrVZFxo:VUUtCbqS-l8:-BTjWOF_DHI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=6JYKnrVZFxo:VUUtCbqS-l8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ArianKulp?a=6JYKnrVZFxo:VUUtCbqS-l8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ArianKulp?i=6JYKnrVZFxo:VUUtCbqS-l8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ArianKulp/~4/6JYKnrVZFxo" height="1" width="1"/&gt;</description><pubDate>Thu, 04 Aug 2011 21:58:30 GMT</pubDate><guid isPermaLink="false">http://www.ariankulp.com:80/coding4fun-where-rsquo-s-my-car</guid><feedburner:origLink>http://www.ariankulp.com:80/coding4fun-where-rsquo-s-my-car</feedburner:origLink></item></channel></rss>

