<?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>Tech Tock</title>
	<atom:link href="http://goldmanalpha.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://goldmanalpha.wordpress.com</link>
	<description>Time is of the essence.</description>
	<lastBuildDate>Thu, 12 Jan 2012 16:15:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='goldmanalpha.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tech Tock</title>
		<link>http://goldmanalpha.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://goldmanalpha.wordpress.com/osd.xml" title="Tech Tock" />
	<atom:link rel='hub' href='http://goldmanalpha.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hello Android!</title>
		<link>http://goldmanalpha.wordpress.com/2011/12/01/hello-android/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/12/01/hello-android/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 13:45:52 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AndroidDev]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1273</guid>
		<description><![CDATA[I’m making my first Android App with IntelliJ Community Edition.  Here’s a great Hello Android tutorial: Hello World (Android) Following the video, I got my own Hello Android app working.  Cool. DroidDraw is a nifty wysywig layout designer. It may be outdated but it keeps me out of Eclipse. Last time I used Eclipse, it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1273&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’m making my first Android App with <a href="http://www.jetbrains.com/idea/free_java_ide.html" target="_blank">IntelliJ Community Edition</a>. </p>
<p>Here’s a great Hello Android tutorial:</p>
<div id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:abd14158-80c0-4ecb-a1ab-316810d54109" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<div><span style="text-align:center; display: block;"><a href="http://goldmanalpha.wordpress.com/2011/12/01/hello-android/"><img src="http://img.youtube.com/vi/PT1t3fTM1Ts/2.jpg" alt="" /></a></span></div>
<div style="width:448px;clear:both;font-size:.8em;">Hello World (Android)</div>
</div>
<p>Following the video, I got my own Hello Android app working.  Cool.</p>
<p><a href="http://www.droiddraw.org/" target="_blank">DroidDraw</a> is a nifty wysywig layout designer. <a href="http://stackoverflow.com/questions/5594129/android-intellij-idea-10-where-is-the-android-gui-designer" target="_blank">It may be outdated but it keeps me out of Eclipse.</a> Last time I used Eclipse, it was horribly slow, but with all the cool Android support it has, I’m likely to give it a try again.</p>
<p>Now the app shows up in my emulator and I even added some checkboxes that I’ll be using later.</p>
<p>All in all, this tiny bit of Android development is looking very xamly.</p>
<p>The only hitch was that the emulator doesn’t like spaces in the names of virtual phones.</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/11/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb2.png?w=512&#038;h=322" alt="image" width="512" height="322" border="0" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1273&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/12/01/hello-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>No x:Type, No Problem</title>
		<link>http://goldmanalpha.wordpress.com/2011/11/28/no-xtype-no-problem/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/11/28/no-xtype-no-problem/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 12:58:04 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1258</guid>
		<description><![CDATA[I had an interesting problem this week.  I needed to use a default template on a subclassed control.  Ordinarily, that would just be: Style=”{StaticResource {x:Type BaseClass}}” Of course in Silverlight, there is no x:Type. The solution I used was to make an attached behavior that takes the class that has the style, finds the style [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1258&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had an interesting problem this week.  I needed to use a default template on a subclassed control.  Ordinarily, that would just be:</p>
<p>Style=”{StaticResource {x:Type BaseClass}}”</p>
<p>Of course in Silverlight, there is no x:Type.</p>
<p>The solution I used was to make an attached behavior that takes the class that has the style, finds the style in the resources and applies it.</p>
<h2>The problem</h2>
<p>Using a TextBox as an example, here’s some default styling that doesn’t get applied to the subclass:</p>
<div id="LC9" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">    </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;UserControl.Resources&gt;</span></span></div>
<div id="LC10" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;Style</span></span><span class="na" style="margin:0;padding:0;"><span style="color:#008080;">TargetType=</span></span><span class="s" style="margin:0;padding:0;"><span style="color:#dd1144;">&#8220;TextBox&#8221;</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&gt;</span></span></div>
<div id="LC11" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;Setter</span></span><span class="na" style="margin:0;padding:0;"><span style="color:#008080;">Property=</span></span><span class="s" style="margin:0;padding:0;"><span style="color:#dd1144;">&#8220;Foreground&#8221;</span></span><span class="na" style="margin:0;padding:0;"><span style="color:#008080;">Value=</span></span><span class="s" style="margin:0;padding:0;"><span style="color:#dd1144;">&#8220;Red&#8221;</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<div id="LC12" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;/Style&gt;</span></span></div>
<div id="LC13" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">    </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;/UserControl.Resources&gt;</span></span></div>
<div id="LC14" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC15" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">    </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;StackPanel&gt;</span></span></div>
<div id="LC16" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;TextBox</span></span><span class="na" style="margin:0;padding:0;"><span style="color:#008080;">Text=</span></span><span class="s" style="margin:0;padding:0;"><span style="color:#dd1144;">&#8220;Auto Styled&#8221;</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<div id="LC17" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;local:TextBoxSubclass</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<p>It ends up looking like this:</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/11/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb.png?w=133&#038;h=61" alt="image" width="133" height="61" border="0" /></a></p>
<h2>The Solution</h2>
<p>With an attached behavior, it can look like this (the bottom TextBoxSubclass has the default TextBox style applied):</p>
<div id="LC15" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">    </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;StackPanel&gt;<a href="http://goldmanalpha.files.wordpress.com/2011/11/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb1.png?w=154&#038;h=97" alt="image" width="154" height="97" align="right" border="0" /></a></span></span></div>
<div id="LC16" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;TextBox</span></span><span class="na" style="margin:0;padding:0;"><span style="color:#008080;">Text=</span></span><span class="s" style="margin:0;padding:0;"><span style="color:#dd1144;">&#8220;Auto Styled&#8221;</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<div id="LC17" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;local:TextBoxSubclass</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<div id="LC18" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC19" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;local:TextBoxSubclass</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&gt;</span></span></div>
<div id="LC20" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;local:ApplyStyleBehavior.StyleTypeName&gt;</span></span></div>
<div id="LC21" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;TextBox</span></span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">/&gt;</span></span></div>
<div id="LC22" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;/local:ApplyStyleBehavior.StyleTypeName&gt;</span></span></div>
<div id="LC23" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;/local:TextBoxSubclass&gt;</span></span></div>
<div id="LC24" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">    </span><span class="nt" style="margin:0;padding:0;"><span style="color:#000080;">&lt;/StackPanel&gt;</span></span></div>
<p>The attached behavior is pretty simple:</p>
<div id="LC36" class="line" style="margin:0;padding:0 0 0 12px;"><br class="Apple-interchange-newline" /><span style="color:#000000;">        <span class="k" style="margin:0;padding:0;"><strong>static</strong></span> <span class="k" style="margin:0;padding:0;"><strong>void</strong></span> </span><span class="nf" style="margin:0;padding:0;"><span style="color:#990000;"><strong>StyleTypeValueChanged</strong></span></span><span style="color:#000000;"><span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">DependencyObject</span> <span class="n" style="margin:0;padding:0;">sender</span><span class="p" style="margin:0;padding:0;">,</span> <span class="n" style="margin:0;padding:0;">DependencyPropertyChangedEventArgs</span> <span class="n" style="margin:0;padding:0;">e</span></span><span class="p" style="margin:0;padding:0;"><span style="color:#000000;">)</span></span></div>
<div id="LC37" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        <span class="p" style="margin:0;padding:0;">{</span></span></div>
<div id="LC38" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC39" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            </span><span class="c1" style="margin:0;padding:0;"><span style="color:#999988;"><em>//need to be loaded so the visual tree can exist and be traversed</em></span></span></div>
<div id="LC40" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">sender</span> <span class="k" style="margin:0;padding:0;"><strong>as</strong></span> <span class="n" style="margin:0;padding:0;">FrameworkElement</span><span class="p" style="margin:0;padding:0;">).</span><span class="n" style="margin:0;padding:0;">Loaded</span> <span class="p" style="margin:0;padding:0;">+=</span> <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">sender1</span><span class="p" style="margin:0;padding:0;">,</span> <span class="n" style="margin:0;padding:0;">args</span><span class="p" style="margin:0;padding:0;">)</span> <span class="p" style="margin:0;padding:0;">=&gt;</span></span></div>
<div id="LC41" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="p" style="margin:0;padding:0;">{</span></span></div>
<div id="LC42" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                    <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">sender</span> <span class="k" style="margin:0;padding:0;"><strong>as</strong></span> <span class="n" style="margin:0;padding:0;">Control</span><span class="p" style="margin:0;padding:0;">).</span><span class="n" style="margin:0;padding:0;">Style</span> <span class="p" style="margin:0;padding:0;">=</span> <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">Style</span><span class="p" style="margin:0;padding:0;">)</span><span class="n" style="margin:0;padding:0;">FindResource</span><span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">sender</span><span class="p" style="margin:0;padding:0;">,</span> <span class="n" style="margin:0;padding:0;">e</span><span class="p" style="margin:0;padding:0;">.</span><span class="n" style="margin:0;padding:0;">NewValue</span><span class="p" style="margin:0;padding:0;">.</span><span class="n" style="margin:0;padding:0;">GetType</span><span class="p" style="margin:0;padding:0;">());</span></span></div>
<div id="LC43" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                </span></div>
<div id="LC44" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="p" style="margin:0;padding:0;">};</span> </span></div>
<div id="LC45" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC46" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        <span class="p" style="margin:0;padding:0;">}</span></span></div>
<div id="LC47" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC48" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        <span class="k" style="margin:0;padding:0;"><strong>static</strong></span> </span><span class="kt" style="margin:0;padding:0;"><span style="color:#445588;"><strong>object</strong></span></span><span class="nf" style="margin:0;padding:0;"><span style="color:#990000;"><strong>FindResource</strong></span></span><span style="color:#000000;"><span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">DependencyObject</span> <span class="n" style="margin:0;padding:0;">start</span><span class="p" style="margin:0;padding:0;">,</span> </span><span class="kt" style="margin:0;padding:0;"><span style="color:#445588;"><strong>object</strong></span></span><span style="color:#000000;"> <span class="n" style="margin:0;padding:0;">resourceKey</span></span><span class="p" style="margin:0;padding:0;"><span style="color:#000000;">)</span></span></div>
<div id="LC49" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        <span class="p" style="margin:0;padding:0;">{</span> </span></div>
<div id="LC50" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="n" style="margin:0;padding:0;">var</span> <span class="n" style="margin:0;padding:0;">nextUp</span> <span class="p" style="margin:0;padding:0;">=</span> <span class="n" style="margin:0;padding:0;">VisualTreeHelper</span><span class="p" style="margin:0;padding:0;">.</span><span class="n" style="margin:0;padding:0;">GetParent</span><span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">start</span><span class="p" style="margin:0;padding:0;">);</span></span></div>
<div id="LC51" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC52" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="k" style="margin:0;padding:0;"><strong>while</strong></span> <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">nextUp</span> <span class="p" style="margin:0;padding:0;">!=</span> <span class="k" style="margin:0;padding:0;"><strong>null</strong></span><span class="p" style="margin:0;padding:0;">)</span></span></div>
<div id="LC53" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="p" style="margin:0;padding:0;">{</span></span></div>
<div id="LC54" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="n" style="margin:0;padding:0;">var</span> <span class="n" style="margin:0;padding:0;">fe</span> <span class="p" style="margin:0;padding:0;">=</span> <span class="n" style="margin:0;padding:0;">nextUp</span> <span class="k" style="margin:0;padding:0;"><strong>as</strong></span> <span class="n" style="margin:0;padding:0;">FrameworkElement</span><span class="p" style="margin:0;padding:0;">;</span></span></div>
<div id="LC55" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC56" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="k" style="margin:0;padding:0;"><strong>if</strong></span> <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">fe</span> <span class="p" style="margin:0;padding:0;">!=</span> <span class="k" style="margin:0;padding:0;"><strong>null</strong></span><span class="p" style="margin:0;padding:0;">)</span></span></div>
<div id="LC57" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="p" style="margin:0;padding:0;">{</span></span></div>
<div id="LC58" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                    <span class="n" style="margin:0;padding:0;">var</span> <span class="n" style="margin:0;padding:0;">result</span> <span class="p" style="margin:0;padding:0;">=</span> <span class="n" style="margin:0;padding:0;">fe</span><span class="p" style="margin:0;padding:0;">.</span><span class="n" style="margin:0;padding:0;">Resources</span><span class="p" style="margin:0;padding:0;">[</span><span class="n" style="margin:0;padding:0;">resourceKey</span><span class="p" style="margin:0;padding:0;">];</span></span></div>
<div id="LC59" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC60" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                    <span class="k" style="margin:0;padding:0;"><strong>if</strong></span> <span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">result</span> <span class="p" style="margin:0;padding:0;">!=</span> <span class="k" style="margin:0;padding:0;"><strong>null</strong></span><span class="p" style="margin:0;padding:0;">)</span></span></div>
<div id="LC61" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                        <span class="k" style="margin:0;padding:0;"><strong>return</strong></span> <span class="n" style="margin:0;padding:0;">result</span><span class="p" style="margin:0;padding:0;">;</span></span></div>
<div id="LC62" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="p" style="margin:0;padding:0;">}</span></span></div>
<div id="LC63" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC64" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">                <span class="n" style="margin:0;padding:0;">nextUp</span> <span class="p" style="margin:0;padding:0;">=</span> <span class="n" style="margin:0;padding:0;">VisualTreeHelper</span><span class="p" style="margin:0;padding:0;">.</span><span class="n" style="margin:0;padding:0;">GetParent</span><span class="p" style="margin:0;padding:0;">(</span><span class="n" style="margin:0;padding:0;">nextUp</span><span class="p" style="margin:0;padding:0;">);</span></span></div>
<div id="LC65" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="p" style="margin:0;padding:0;">}</span></span></div>
<div id="LC66" class="line" style="margin:0;padding:0 0 0 12px;"></div>
<div id="LC67" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">            <span class="k" style="margin:0;padding:0;"><strong>return</strong></span> <span class="k" style="margin:0;padding:0;"><strong>null</strong></span><span class="p" style="margin:0;padding:0;">;</span></span></div>
<div id="LC68" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        </span></div>
<div id="LC69" class="line" style="margin:0;padding:0 0 0 12px;"><span style="color:#000000;">        <span class="p" style="margin:0;padding:0;">}</span></span></div>
<h2>Conclusion</h2>
<p>I think its exceedingly obvious how you could apply this universally as a default style on the subclass.  This looks like it has potential to be a pattern to compensate for other Silverlight omissions too.</p>
<p>You can <a href="https://github.com/goldman99/.Net-Demos/tree/master/SilverlightXType/XTypeWorkaround" target="_blank">download the full tiny demo on GitHub</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1258&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/11/28/no-xtype-no-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Book Review: Unity 2.0</title>
		<link>http://goldmanalpha.wordpress.com/2011/09/19/book-review-unity-2-0/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/09/19/book-review-unity-2-0/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 13:15:42 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1248</guid>
		<description><![CDATA[To start my current dive into the state of WPF composition and IoC frameworks I read the Unity documentation book:&#160; Unity 2.0 General Purpose Dependency Injection Mechanism for your .Net Applications. I’m rather familiar with Unity, but it seemed time for me to finally read the docs to see if I was missing anything.&#160; The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1248&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To start my current dive into the state of WPF composition and IoC frameworks I read the Unity documentation book:&#160; <a href="http://unity.codeplex.com/releases/view/31277" target="_blank">Unity 2.0 General Purpose Dependency Injection Mechanism for your .Net Applications</a>. I’m <a href="https://goldmanalpha.wordpress.com/?s=unity" target="_blank">rather familiar with Unity</a>, but it seemed time for me to finally read the docs to see if I was missing anything.&#160; The book is a pdf freely available on the <a href="http://unity.codeplex.com/releases/view/31277" target="_blank">Unity Codeplex Page</a>.</p>
<p>The book is as dry as the desert sands of <a href="http://en.wikipedia.org/wiki/Arrakis" target="_blank">Arrakis</a>.&#160; You wont find gripping prose found in such tech classics as <a href="http://honestillusion.com/blogs/blog_0/archive/2010/10/09/naked-came-the-null-delegate-chapter-1-i-disposable.aspx" target="_blank">Naked came the Null Delegate</a>.&#160; Also, it leads with 70 pages detailing xml configuration which in an informal survey, I found exactly 0 people in favor of over runtime configuration.&#160; The book is also not entirely thorough and in depth, though I believe all Unity 2.0 features are covered.&#160; So it works pretty well as a shopping list for further web research. The most annoying thing about this book is that there’s a ton of blue text with blue underlines that aren’t hyperlinked. Click and click and go nowhere. There oughtta be a law against this:</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/09/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://goldmanalpha.files.wordpress.com/2011/09/image_thumb1.png?w=347&#038;h=80" width="347" height="80" /></a></p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/09/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="image" border="0" alt="image" align="right" src="http://goldmanalpha.files.wordpress.com/2011/09/image_thumb.png?w=244&#038;h=189" width="244" height="189" /></a>In any case, I found what I wanted to know which was <a href="http://theinfosphere.org/What-If_Machine" target="_blank">if</a> I read the book, would I learn anything about Unity that I didn’t already know.&#160; Spoiler Alert.&#160; The answer was yes, but not by much.</p>
<p>One of the best paragraphs in the book explained Unity itself:</p>
<blockquote><h3>Application Design Concepts with Unity</h3>
<p>Features such as inversion of control, dependency injection, interception, factory, and lifetime… provide several major advantages when building applications that consist of many individual&#160; classes and components. Designing applications that conform to these patterns can provide the&#160; following:     <br /> The capability to substitute one component for another using a pluggable architecture.      <br /> The capability to centralize and abstract common features and to manage crosscutting&#160; concerns such as logging, authentication, caching, and validation.      <br /> Increased configuration flexibility.      <br /> The capability to locate and instantiate services and components, including singleton instances&#160; of these services and components.      <br /> Simplified testability for individual components and sections of the application.      <br /> Simplified overall design, with faster and less error‐prone development.      <br /> Ease off reuse for common components within other applications.</p>
</blockquote>
<p>Then again, the <a href="http://unity.codeplex.com/" target="_blank">Unity Home Page</a> may do an even better job.</p>
<p>I’ll flesh out a few details from the book in my next post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1248&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/09/19/book-review-unity-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/09/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/09/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Caliburn&#8211;Hasta la Vista</title>
		<link>http://goldmanalpha.wordpress.com/2011/09/13/caliburnhasta-la-vista/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/09/13/caliburnhasta-la-vista/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 13:30:04 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[Caliburn Micro]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1240</guid>
		<description><![CDATA[My Caliburn project is over.  A couple of thoughts. I liked Caliburn Micro.  The best thing was that it makes it easy to connect events and methods &#8212; where you would normally use a DelegateCommand/ICommand and binding, now you get simple by convention auto wireup.  The worst thing is that using convention to autowire VM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1240&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My Caliburn project is over.  A couple of thoughts.</p>
<p>I liked <a href="http://caliburnmicro.codeplex.com/" target="_blank">Caliburn Micro</a>.  The best thing was that it makes it easy to connect events and methods &#8212; where you would normally use a DelegateCommand/ICommand and binding, now you get simple by convention auto wireup.  The worst thing is that using convention to autowire VM to View doesn’t show mock data in Blend for my favorite mock data objects which are subclasses of the VM, so I ended up using explicit bindings in the Xaml and not using a big benefit of Caliburn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1240&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/09/13/caliburnhasta-la-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>
	</item>
		<item>
		<title>Caliburn Micro&#8211;Soup to Nuts</title>
		<link>http://goldmanalpha.wordpress.com/2011/08/08/caliburn-microsoup-to-nuts/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/08/08/caliburn-microsoup-to-nuts/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 12:04:25 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Caliburn Micro]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/2011/08/07/caliburn-microsoup-to-nuts/</guid>
		<description><![CDATA[Just getting into Caliburn Micro for a new Silverlight project.  I was a bit disappointed when I saw that the official cheat sheet was “coming soon”.  Rob Eisenberg made this excellent 9+ part Soup to Nuts tutorial and the Soup to Nuts section of the documentation has content, so the documentation for Caliburn is actually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1233&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just getting into <a href="http://caliburnmicro.codeplex.com/">Caliburn Micro</a> for a new Silverlight project.  I was a bit disappointed when I saw that the official <a href="http://caliburnmicro.codeplex.com/wikipage?title=Cheat%20Sheet&amp;referringTitle=Documentation" target="_blank">cheat sheet</a> was “coming soon”.  Rob Eisenberg made <a href="http://devlicio.us/blogs/rob_eisenberg/search.aspx?q=Caliburn.Micro+Soup+to+Nuts&amp;PageIndex=1" target="_blank">this excellent 9+ part Soup to Nuts tutorial</a> and the Soup to Nuts section of the <a href="http://caliburnmicro.codeplex.com/documentation" target="_blank">documentation</a> has content, so the documentation for Caliburn is actually pretty good.  Of course, both these resources suffer from <a href="http://goldmanalpha.wordpress.com/2010/10/11/the-death-of-the-long-form/" target="_blank">the death of the long form</a>.  Once again I had to convert them to pdf so I could read them on the subway.  Maybe next time I’ll try <a href="http://www.htmldoc.org/" target="_blank">this utility</a>.</p>
<p>In any case, I’m excited to try out Caliburn Micro and my experience so far has been positive, but more on that later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1233&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/08/08/caliburn-microsoup-to-nuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>
	</item>
		<item>
		<title>3 New Favorite Techniques in Visual Studio</title>
		<link>http://goldmanalpha.wordpress.com/2011/07/11/3-new-favorite-techniques-in-visual-studio/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/07/11/3-new-favorite-techniques-in-visual-studio/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 13:00:14 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Breakpoints]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Object ID]]></category>
		<category><![CDATA[ReSharper]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1198</guid>
		<description><![CDATA[Here&#8217;s 3 techniques in Visual Studio that have lately become favorites of mine. Breakpoint Output Logging In my previous post on output logging with breakpoints, my colleague Ken Overton, pointed out the existence of something that used to be called “TracePoints”.  I went looking for these mythical beasts and was pleasantly surprised to find the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1198&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s 3 techniques in Visual Studio that have lately become favorites of mine.</p>
<h2>Breakpoint Output Logging</h2>
<p>In my <a href="https://goldmanalpha.wordpress.com/?p=1135" target="_blank">previous post</a> on output logging with breakpoints, my colleague <a href="http://blog.lab49.com/archives/author/kov" target="_blank">Ken Overton</a>, <a href="http://goldmanalpha.wordpress.com/2011/01/06/writeline-redux/#comments" target="_blank">pointed out</a> the existence of something that used to be called “TracePoints”.  I went looking for these mythical beasts and was pleasantly surprised to find the “When Hit” option for breakpoints.  It’s available in the breakpoint right click menu.</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb2.png?w=244&#038;h=213" alt="image" width="244" height="213" border="0" /></a></p>
<p>You can output text and variable values when the breakpoint is hit instead of stopping:</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image4.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb4.png?w=540&#038;h=455" alt="image" width="540" height="455" border="0" /></a></p>
<p>The logging will show in the Output Window.  On the downside, it slows down program execution speed, seemingly more than conditional and regular breakpoints.</p>
<h2>Object ID</h2>
<p>My colleague <a href="http://www.linkedin.com/pub/andrei-kashcha/4/a7/65a" target="_blank">Andrei Kashcha</a>, master extraordinaire of debugging techniques, shared this with me and I’m starting to use it regularly.  When you make an “object id” for a  class instance, its a globally available reference to that instance for debug inspection and can be used to breakpoint in a single instance or verify which instance you are looking at.</p>
<p>To “Make Object ID”, just select that in the watch window context menu for an initialized variable.</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image5.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb5.png?w=547&#038;h=248" alt="image" width="547" height="248" border="0" /></a></p>
<p>That instance can now be referenced globally as 1#:</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image6.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb6.png?w=540&#038;h=111" alt="image" width="540" height="111" border="0" /></a></p>
<p>And to breakpoint in just that instance, set a conditional breakpoint with the condition “this == 1#”:</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image7.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb7.png?w=529&#038;h=256" alt="image" width="529" height="256" border="0" /></a></p>
<h2>ReSharper Class List Navigator</h2>
<p>I see a lot of people using this, but its recently become my goto navigation method.  For those of us <a href="http://www.jetbrains.com/resharper" target="_blank">ReSharper</a> fans (with standard R# key mappings), just press ctl-t and up pops a handy class navigator that supports filtered search with partial class name and Pascal Cased abbreviations such as AVLCN for AVeryLongClassName.</p>
<p><a href="http://goldmanalpha.files.wordpress.com/2011/07/image8.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb8.png?w=443&#038;h=138" alt="image" width="443" height="138" border="0" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1198&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/07/11/3-new-favorite-techniques-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Metup June 2011</title>
		<link>http://goldmanalpha.wordpress.com/2011/07/05/metup-june-2011/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/07/05/metup-june-2011/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 12:45:33 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[FSharpSpec]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Gitpiphany]]></category>
		<category><![CDATA[Meetup]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1187</guid>
		<description><![CDATA[The .Net Meetup in June was well attended with a strong Lab49 contingent in attendance.  The topics and speakers were a big draw for me.  All that and pizza too.  I enjoyed it. FSharpSpec Thorsten Lorenz gave a high level introduction to BDD and detailed his testing framework FSharpSpec.  The B is for behavior and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1187&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.meetup.com/NY-Dotnet/events/18762771/">.Net Meetup in June</a> was well attended with a strong Lab49 contingent in attendance.  The topics and speakers were a big draw for me.  All that and pizza too.  I enjoyed it.</p>
<h2>FSharpSpec</h2>
<p><a href="http://thorstenlorenz.wordpress.com/" target="_blank">Thorsten Lorenz</a> gave a high level introduction to BDD and detailed his testing framework <a href="https://github.com/thlorenz/FSharpSpec">FSharpSpec</a>.  The B is for behavior and I’m sure you know about the DD part.</p>
<p>I was quite impressed with Thorsten’s feature rich unit tester.  His comparison of frameworks reminded me that there&#8217;s more to testing than coverage. He even has his own mocks.  Pretty clever.</p>
<h2><a href="http://goldmanalpha.files.wordpress.com/2011/07/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb.png?w=582&#038;h=126" alt="image" width="582" height="126" border="0" /></a></h2>
<p>I was looking forward to hearing <a href="http://www.meetup.com/NY-Dotnet/members/6946092/" target="_blank">Snuggs</a> speak about <a href="https://github.com/" target="_blank">Git</a>.  He’s widely versed in technology and a character to boot.  He did not disappoint.</p>
<p>I’ve heard about Git several times before, but never enough or in the right way to see why I should be using it.  Snuggs told us about about the internals, that its all about the branches and how awesome single feature commits and rollbacks can be.  Don’t forget about GitHub “it&#8217;s like facebook for programmers”.</p>
<p>Something definitely clicked and for the next few days I was repeatedly seeing issues I expected Git would help resolve better. I heard that some clients are using Git, so I can definitely see Git in my future.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1187&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/07/05/metup-june-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>@Lab</title>
		<link>http://goldmanalpha.wordpress.com/2011/02/08/lab-14/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/02/08/lab-14/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 12:40:31 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1160</guid>
		<description><![CDATA[Geeky Fun Fire up your What If Machine What if Visual Studio had Achievements? &#160; Choose a Side or Get Out of the Way Flash VS HTML5. Flash &#38; HTML5 Together? The classic game of pong comes back to life with Flash &#38; HTML5. An example of how flash and HTML5 can coexist in web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1160&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Geeky Fun</h2>
<h4>Fire up your What If Machine</h4>
<p><a href="http://blog.whiletrue.com/2011/01/what-if-visual-studio-had-achievements/"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/02/image3.png?w=244&#038;h=60" border="0" alt="image" width="244" height="60" /></a><br />
<a href="http://blog.whiletrue.com/2011/01/what-if-visual-studio-had-achievements/">What if Visual Studio had Achievements</a>?</p>
<p>&nbsp;</p>
<h4>Choose a Side or Get Out of the Way</h4>
<p><a href="http://seantheflexguy.com/images/motivational-programming-posters/flash-vs-html5.jpg"><img style="display:inline;margin:0 5px 0 0;" src="http://seantheflexguy.com/images/motivational-programming-posters/flash-vs-html5.jpg" alt="" width="299" height="187" /></a><a href="http://seantheflexguy.com/images/motivational-programming-posters/flash-vs-html5.jpg">Flash VS HTML5</a>.</p>
<p><a href="http://labs.codecomputerlove.com/FlashVsHtml5/"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border:0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/02/image1.png?w=244&#038;h=171" border="0" alt="image" width="244" height="171" align="right" /></a></p>
<h4>Flash &amp; HTML5 Together?</h4>
<p><a href="http://labs.codecomputerlove.com/FlashVsHtml5/">The classic game of pong comes back to life with Flash &amp; HTML5.</a></p>
<p>An example of how flash and HTML5 can coexist in web applications. This is a table tennis game where half of the table is implemented in Flash and the other half is an HTML canvas.</p>
<p>&nbsp;</p>
<h2>Reflector.Cost != (decimal)0.0;</h2>
<p><a href="http://www.zdnet.com/blog/burnette/red-gate-we-could-not-make-the-free-model-work-for-us-as-a-commercial-company/2176">No more free reflector</a>.</p>
<p>&nbsp;</p>
<p><a href="http://dotneteers.net/blogs/vbandi/archive/2010/01/19/extract-styles-in-expression-blend.aspx"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Dotneteers" src="http://goldmanalpha.files.wordpress.com/2011/02/dotneteers.png?w=437&#038;h=96" border="0" alt="Dotneteers" width="437" height="96" /></a></p>
<h2>Extract Styles in Blend</h2>
<p>Cool tip from the <a href="http://dotneteers.net/blogs/vbandi/archive/2010/01/19/extract-styles-in-expression-blend.aspx">Dotneteers</a> on <a href="http://dotneteers.net/blogs/vbandi/archive/2010/01/19/extract-styles-in-expression-blend.aspx">extracting styles in Expression Blend</a>.</p>
<p>&nbsp;</p>
<h2><a href="http://mikehadlow.blogspot.com/2011/01/monads-in-c1-introduction.html">Monads</a>, Duals, and MinLink</h2>
<p><a href="http://channel9.msdn.com/Shows/Going+Deep/Bart-De-Smet-MinLINQ-The-Essence-of-LINQ"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border:0;margin:0 7px 0 0;" title="image" src="http://goldmanalpha.files.wordpress.com/2011/02/image2.png?w=244&#038;h=126" border="0" alt="image" width="244" height="126" align="left" /></a></p>
<p><a href="http://mikehadlow.blogspot.com/2011/01/monads-in-c1-introduction.html">This monad tutorial</a> sparked a discussions and comment from our resident experts.  <a href="http://www.developerdeveloperdeveloper.com/ddd9/ViewSession.aspx?SessionID=538">This talk</a> sounds interesting.  Unfortunately its in England, and in the past, 2 barriers I’m currently having difficulty with.</p>
<p>Then again, <a href="http://gbracha.blogspot.com/2011/01/maybe-monads-might-not-matter.html">maybe monads don’t matter</a>.</p>
<p>&nbsp;</p>
<p>above: <a href="http://channel9.msdn.com/Shows/Going+Deep/Bart-De-Smet-MinLINQ-The-Essence-of-LINQ">Bart De Smet: MinLINQ &#8211; The Essence of LINQ</a> – also related to Monads</p>
<p>&nbsp;</p>
<h3>Hmm… What’s a Code Review Site Good For?</h3>
<p><a href="http://codereview.stackexchange.com/">Check it out.</a></p>
<p>&nbsp;</p>
<p>SQL Replication works great IMHO, <a href="http://support.microsoft.com/kb/892277">windbg</a>, <a href="http://www.bloomberg.com/professional/software_support/">Gateway.NET</a>, <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/printing/PrintJob.html#start2()">Air Printing</a>,  <a href="http://hadoop.apache.org/">Hadoop</a>, <a href="http://esper.codehaus.org/">Esper</a>, Mono</p>
<h2>CodeCamp</h2>
<p>Lab49 is sponsoring a <a href="http://nyc.codecamp.us/">Code Camp</a> in February.  You too can <a href="http://nyc.codecamp.us/blogs/announcements/archive/2011/01/06/call-for-speakers-now-open.aspx">speak</a>.</p>
<blockquote><p><strong>Code Camps</strong> are “grass roots” mini application platform developer conferences, free of charge to attendees and open to presenters of all stripes and experience.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1160&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/02/08/lab-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/02/image3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://seantheflexguy.com/images/motivational-programming-posters/flash-vs-html5.jpg" medium="image" />

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/02/image1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/02/dotneteers.png" medium="image">
			<media:title type="html">Dotneteers</media:title>
		</media:content>

		<media:content url="http://goldmanalpha.files.wordpress.com/2011/02/image2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>SqlDbx</title>
		<link>http://goldmanalpha.wordpress.com/2011/02/06/sqldbx/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/02/06/sqldbx/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 13:43:10 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1172</guid>
		<description><![CDATA[I met the developer of SQLDbx and I was impressed.  It’s a sql coding and data management utility in a single exe with no 3rd party dependencies written in c++.  Perfect for running off cd or thumb drive.  If I were still working with databases (not) I bet this would make my shortlist of favorite utilities. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1172&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sqldbx.com/images/ScreenShot01.png" alt="" width="440" height="330" /></p>
<p>I met the developer of <a href="http://www.sqldbx.com/">SQLDbx</a> and I was impressed.  It’s a sql coding and data management utility in a single exe with no 3rd party dependencies written in c++.  Perfect for running off cd or thumb drive.  If I were still working with databases (not) I bet this would make my shortlist of favorite utilities.  You can decide for yourself with the <a href="http://sqldbx.com/personal_edition.htm" target="_blank">free personal edition</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1172&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/02/06/sqldbx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>

		<media:content url="http://www.sqldbx.com/images/ScreenShot01.png" medium="image" />
	</item>
		<item>
		<title>Losing my Memory</title>
		<link>http://goldmanalpha.wordpress.com/2011/01/31/losing-my-memory/</link>
		<comments>http://goldmanalpha.wordpress.com/2011/01/31/losing-my-memory/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 13:33:03 +0000</pubDate>
		<dc:creator>goldmanalpha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[HotFix]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">https://goldmanalpha.wordpress.com/?p=1148</guid>
		<description><![CDATA[After fixing the classic event handler reference memory leak, I uncovered a WPF memory leak in my application.  It seems that WPF itself has a memory issue in the way it tries to lazy load dictionary resources. I had a lot of additional memory in snapshot diffs being taken up by DeferredAppResourceReference objects.  There seems [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1148&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After fixing the <a href="http://blogs.msdn.com/b/abhinaba/archive/2009/05/05/memory-leak-via-event-handlers.aspx">classic event handler</a> reference memory leak, I uncovered a WPF memory leak in my application.  It seems that WPF itself has a memory issue in the way it tries to lazy load dictionary resources.</p>
<p>I had a lot of additional memory in snapshot diffs being taken up by <a href="http://www.google.com/search?q=deferredappresourcereference&amp;hl=en&amp;safe=on">DeferredAppResourceReference</a> objects.  There seems to be a <a href="http://blogs.msdn.com/b/jgoldb/">Hotfix</a> that addresses the issue, but I found <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b97a5f83-5394-430e-9a78-9d3a957e3537/#eda3e75d-121e-43ff-80ef-49a42ec502a1">a decent code solution by Andrew S on MSDN</a>.  This code will instantiate the dictionary objects on startup, avoiding the buggy MS lazy loading.</p>
<p><span style="line-height:normal;widows:2;text-transform:none;text-indent:0;border-collapse:separate;white-space:normal;orphans:2;letter-spacing:normal;word-spacing:0;"><span style="text-align:left;line-height:16px;"> </span></span></p>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">partial</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">App</span> : <span style="color:#2b91af;">Application</span></span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> {</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span> OnStartup(<span style="color:#2b91af;">StartupEventArgs</span> e)</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> {</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> WalkDictionary(<span style="color:#0000ff;">this</span>.Resources);</span></div>
<p><span style="font-family:'Courier New';"> </span></p>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">base</span>.OnStartup(e);</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> }</span></div>
<p><span style="font-family:'Courier New';"> </span></p>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> WalkDictionary(<span style="color:#2b91af;">ResourceDictionary</span> resources)</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> {</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">foreach</span> (<span style="color:#2b91af;">DictionaryEntry</span> entry <span style="color:#0000ff;">in</span> resources)</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> {</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> }</span></div>
<p><span style="font-family:'Courier New';"> </span></p>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> <span style="color:#0000ff;">foreach</span> (<span style="color:#2b91af;">ResourceDictionary</span> rd <span style="color:#0000ff;">in</span> resources.MergedDictionaries)</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> WalkDictionary(rd);</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> }</span></div>
<div style="text-indent:-4ex;outline-width:0;border-width:0;margin:0 0 0 4ex;padding:0;"><span style="font-family:'Courier New';"> }</span></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Ironically, now one of the largest growth objects in my app is WeakReference.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/goldmanalpha.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/goldmanalpha.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/goldmanalpha.wordpress.com/1148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=goldmanalpha.wordpress.com&amp;blog=9682964&amp;post=1148&amp;subd=goldmanalpha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://goldmanalpha.wordpress.com/2011/01/31/losing-my-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98bda82a82fbcd37d8cd6951733227b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">goldmanalpha</media:title>
		</media:content>
	</item>
	</channel>
</rss>
