<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>No Free Time</title>
	
	<link>http://andrewmyhre.wordpress.com</link>
	<description>Because my therapist says I need to let things out</description>
	<lastBuildDate>Tue, 03 Nov 2009 13:06:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="andrewmyhre.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/b012d8af26af279e8b78dea60a545c86?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>No Free Time</title>
		<link>http://andrewmyhre.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/NoFreeTime" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Linq to SQL and Serialization : A circular reference was detected while serializing an object of type [whatever]</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/vu7pl0-ZOG4/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/11/04/linq-to-sql-and-serialization-a-circular-reference-was-detected-while-serializing-an-object-of-type-whatever/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:06:52 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=283</guid>
		<description><![CDATA[Okay so I created a Linq to SQL model today. It includes tables for Blog Posts and Blog Comments which have a one-to-many relationship, hence a BlogComment has a .BlogPost property and a BlogPost has a .BlogComments property. Pretty standard.
When I attempted to serialize a collection of BlogPosts and their related BlogComments I was met [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=283&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Okay so I created a Linq to SQL model today. It includes tables for Blog Posts and Blog Comments which have a one-to-many relationship, hence a BlogComment has a .BlogPost property and a BlogPost has a .BlogComments property. Pretty standard.</p>
<p>When I attempted to serialize a collection of BlogPosts and their related BlogComments I was met with the following error:</p>
<p><strong><em>A circular reference was detected while serializing an object of type BlogPost.</em></strong></p>
<p>Fairly obvious why &#8211; the serializer is working through each property on a BlogPost using reflection, then enumerating each <em>comment</em> on the blog post, enumerating each <em>property</em> on the comment which includes a reference back to the <em>blog post</em> &#8211; which is where the circular reference joins up.</p>
<p>Obvious problem, but how to get around it? What I actually need to do is instruct the XmlSerializer to ignore the BlogComment.BlogPost property &#8211; I want it to enumerate the comments attached to a blog post but I don&#8217;t want it to walk back up to the blog post. To accomplish this I don&#8217;t want to have to mess with my DBML file or the C# class definitions, because as soon as I modify the database in the future I&#8217;ll have to reimplement those changes. A partial class implementation won&#8217;t help me because I need to modify the original class, not patch new functionality onto it. <span style="background-color:#ffffff;">I was thinking I needed to add an [XmlIgnore] attribute somewhere, and that this would be a nightmare. </span></p>
<p><span style="background-color:#ffffff;">Well it turns a much simpler solution is to just mark the relationship as an Internal property in the Linq to SQL designer.</span></p>
<p><span style="background-color:#ffffff;"><a href="http://andrewmyhre.files.wordpress.com/2009/11/linq_to_sql_designer_association_property.jpg"><img class="alignnone size-thumbnail wp-image-284" title="linq_to_sql_designer_association_property" src="http://andrewmyhre.files.wordpress.com/2009/11/linq_to_sql_designer_association_property.jpg?w=150&#038;h=59" alt="linq_to_sql_designer_association_property" width="150" height="59" /></a></span></p>
<p><span style="background-color:#ffffff;">This works because the XmlSerializer only serializes public properties.</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=283&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/vu7pl0-ZOG4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/11/04/linq-to-sql-and-serialization-a-circular-reference-was-detected-while-serializing-an-object-of-type-whatever/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/11/linq_to_sql_designer_association_property.jpg?w=150" medium="image">
			<media:title type="html">linq_to_sql_designer_association_property</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/11/04/linq-to-sql-and-serialization-a-circular-reference-was-detected-while-serializing-an-object-of-type-whatever/</feedburner:origLink></item>
		<item>
		<title>AltNet Beers October 28</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/xmDqne54Eow/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/10/27/altnet-beers-october-28/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:58:51 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[altnet beers]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=280</guid>
		<description><![CDATA[AltNet Beers tomorrow night (October 28, 2009) is being hosted by Tequila London at their office at 82 Dean St in Soho. Nearest tube is Tottenham Court Road station which is on the Central and Northern lines.
Map with directions from the tube station: http://tinyurl.com/tequilalondon
To get there after StackOverflow DevDays your best route is to walk north [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=280&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>AltNet Beers tomorrow night (October 28, 2009) is being hosted by Tequila London at their office at 82 Dean St in Soho. Nearest tube is Tottenham Court Road station which is on the Central and Northern lines.</p>
<p>Map with directions from the tube station: <span style="background-color:#ffffff;"><strong><a href="http://tinyurl.com/tequilalondon" target="_blank">http://tinyurl.com/tequilalondon</a></strong></span></p>
<p><span style="background-color:#ffffff;">To get there after StackOverflow DevDays your best route is to walk north from Kensington Town Hall to Notting Hill Gate station which is on the central line. From there travel east to Tottenham Court Road station.</span></p>
<p><span style="background-color:#ffffff;">Directions from Kensington Town Hall to Notting Hill Gate: <strong><a href="http://tinyurl.com/ylrvekz" target="_blank">http://tinyurl.com/ylrvekz</a></strong></span></p>
<p><span style="background-color:#ffffff;">See you at Tequila!</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/280/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=280&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/xmDqne54Eow" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/10/27/altnet-beers-october-28/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/10/27/altnet-beers-october-28/</feedburner:origLink></item>
		<item>
		<title>Calling a footer a footer</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/z32rsufhD-o/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/09/04/calling-a-footer-a-footer/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 22:01:38 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=278</guid>
		<description><![CDATA[SharePoint MVP Randy Drisgill points out that if you&#8217;re creating a stylesheet for a Sharepoint site with a rule for #footer meaning, ostensibly, the footer for the page, you won&#8217;t get the result you intended.
That&#8217;s because when the guys created the SharePoint engine they decided to use the element id &#8216;footer&#8217; for particular div that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=278&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SharePoint MVP <a href="http://blog.drisgill.com/2009/09/random-branding-tip-1.html" target="_blank">Randy Drisgill points out</a> that if you&#8217;re creating a stylesheet for a Sharepoint site with a rule for #footer meaning, ostensibly, the <em>footer for the page</em>, you won&#8217;t get the result you intended.</p>
<p>That&#8217;s because when the guys created the SharePoint engine they decided to use the element id &#8216;footer&#8217; for particular div that SharePoint outputs in the middle of your page. Nice going guys! I can&#8217;t wait to explain this to the HTML team at our agency.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=278&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/z32rsufhD-o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/09/04/calling-a-footer-a-footer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/09/04/calling-a-footer-a-footer/</feedburner:origLink></item>
		<item>
		<title>New Digital Wall</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/8XfIM3ZcSJs/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/08/19/new-digital-wall/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 20:58:14 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Digital Wall]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=274</guid>
		<description><![CDATA[I launched a new Digital Wall this week.
I want to rewrite it already  .
http://wall.tequila-uk.com/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=274&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I launched a new Digital Wall this week.<br />
I want to rewrite it already <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p><a href="http://wall.tequila-uk.com/" target="_blank">http://wall.tequila-uk.com/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=274&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/8XfIM3ZcSJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/08/19/new-digital-wall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/08/19/new-digital-wall/</feedburner:origLink></item>
		<item>
		<title>Microsoft.Expression.Blend.Silverlight.targets was not found</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/1Usi-0rqKO8/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/07/29/microsoft-expression-blend-silverlight-targets-was-not-found/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 09:45:03 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=270</guid>
		<description><![CDATA[Recently I encountered the following error when trying to open a Silverlight 3 project:

Unable to read the project file &#8216;X.csproj&#8217;.
The imported project &#8220;c:\program files\MSBuild\Microsoft\Expression\Blend\3.0\Silverlight\Microsoft.Expression.Blend.Silverlight.targets&#8221; was not found.
Confirm the path in the &#60;Import&#62; declaration is correct, and that the file exists on disk.
The scenario is that I had fired up the new RC of Expression Blend [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=270&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I encountered the following error when trying to open a Silverlight 3 project:</p>
<p><a href="http://andrewmyhre.files.wordpress.com/2009/07/01.png"><img class="alignnone size-thumbnail wp-image-271" title="01" src="http://andrewmyhre.files.wordpress.com/2009/07/01.png?w=150&#038;h=27" alt="01" width="150" height="27" /></a></p>
<p>Unable to read the project file &#8216;X.csproj&#8217;.<br />
The imported project &#8220;c:\program files\MSBuild\Microsoft\Expression\Blend\3.0\Silverlight\Microsoft.Expression.Blend.Silverlight.targets&#8221; was not found.<br />
Confirm the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk.</p>
<p>The scenario is that I had fired up the new RC of Expression Blend 3.0 and created a Silverlight 3 project. At some point along the way I had also been messing with a TextBlock and I had ticked the &#8216;Embed&#8217; checkbox to embed the font I selected into the project. Then when I tried to open the project on another machine I was met with the above error and my Silverlight project wouldn&#8217;t load.</p>
<p><a href="http://twitter.com/unnir" target="_blank">Unni Ravindranathan</a> was helpful enough to point out that when using Blend 3 features such as embedded fonts you must have the Blend 3.0 SDK installed, and sure enough that&#8217;s exactly what I&#8217;d done. I had thought I needed to installed Expression Blend 3.0 on my machine in order to open the project, but the SDK was all I needed. Unni is <a href="http://blogs.msdn.com/unnir/about.aspx" target="_blank">Program Manager on the Expression Blend team</a> and I appreciate his quick and direct help.</p>
<p>I&#8217;d like to know why I could always embed fonts in Silverlight projects without needing Blend 3.0 but I&#8217;m sure there&#8217;s a perfectly reasonable explanation. Not to mention &#8211; why is the SDK not an optional part of the Silverlight 3 SDK install? It&#8217;s only a 3mb download&#8230;</p>
<p>Grab the SDK here: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=F1AE9A30-4928-411D-970B-E682AB179E17&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=F1AE9A30-4928-411D-970B-E682AB179E17&amp;displaylang=en</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=270&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/1Usi-0rqKO8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/07/29/microsoft-expression-blend-silverlight-targets-was-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/07/01.png?w=150" medium="image">
			<media:title type="html">01</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/07/29/microsoft-expression-blend-silverlight-targets-was-not-found/</feedburner:origLink></item>
		<item>
		<title>I’m Back and a Non-Programming Related Reference</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/OEkxwrpnLno/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/07/16/im-back-and-a-non-programming-related-reference/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 15:03:58 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=268</guid>
		<description><![CDATA[Well I&#8217;m finally back from an extended stay in my home country, New Zealand. The particulars that brought about my prolonged visit to NZ are boring and long-winded so I won&#8217;t go into them here. While I&#8217;m grateful to my employers for allowing me to work remotely while I was over there, I&#8217;m also thoroughly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=268&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well I&#8217;m finally back from an extended stay in my home country, New Zealand. The particulars that brought about my prolonged visit to NZ are boring and long-winded so I won&#8217;t go into them here. While I&#8217;m grateful to my employers for allowing me to work remotely while I was over there, I&#8217;m also thoroughly grateful to be back <em>home</em>, in London. Yes, my time back in NZ has brought the realisation into stark relief that London is, presently at least, home. It&#8217;s a nice feeling.</p>
<p>Moving swiftly to the point of this post, that being what I want to share.</p>
<p>It&#8217;s a testament to the connected world we live in that keeping up to date with the latest findings and speculations of scientific research no longer requires subscriptions to obscure publications and painstaking focus, analysis and consideration. Nowadays you can just have that stuff piped straight into your computer apparatus and consequently into your brain, in a much more passive and relaxing way. How, you may ask? YouTube!</p>
<p>I was introduced to Daniel Dennett a few weeks ago, and I&#8217;ve added him to my list of Great Human Beings. If you don&#8217;t know who he is, here&#8217;s a nice taster for his work: <a href="http://www.youtube.com/watch?v=KzGjEkp772s" target="_blank">Ants, Terrorism, and the Awesome Power of Memes</a>. It&#8217;s a quick TED lecture, so it&#8217;s a sample of his ideas which is suitable for untraumatic digestion, whatever your persuasion. If you watch that video and find yourself hungry for more, there are <em>schools</em> of in-depth, full-length lectures available on the YouTube also, so you know how to plunge further into this sumptuous mind-steak. <a href="http://www.youtube.com/watch?v=khp4VWJC1FI" target="_blank">This lecture</a> for instance is a fuller expansion on the TED talk linked above. <a href="http://video.google.com/videosearch?q=daniel+dennett&amp;emb=0&amp;aq=f#" target="_blank">Let me google that for you</a>.</p>
<p>I&#8217;d be interested in hearing from anyone at all in London who finds the above interesting and would enjoy meeting up to, er, talk utter nonsense about it? Leave a comment or hit me on twitter. If there are, say, half a dozen such doomed souls I&#8217;ll organise something.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=268&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/OEkxwrpnLno" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/07/16/im-back-and-a-non-programming-related-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/07/16/im-back-and-a-non-programming-related-reference/</feedburner:origLink></item>
		<item>
		<title>Google Chrome OS</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/vKWx0ookeg0/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/07/09/google-chrome-os/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 05:39:24 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=265</guid>
		<description><![CDATA[http://www.wired.com/gadgetlab/2009/07/five-things-googles-chrome-os-will-do-for-your-netbook/
But will I be able to play games on it?
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=265&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.wired.com/gadgetlab/2009/07/five-things-googles-chrome-os-will-do-for-your-netbook/" target="_blank">http://www.wired.com/gadgetlab/2009/07/five-things-googles-chrome-os-will-do-for-your-netbook/</a></p>
<p>But will I be able to play games on it?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=265&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/vKWx0ookeg0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/07/09/google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/07/09/google-chrome-os/</feedburner:origLink></item>
		<item>
		<title>Integrating Google Analytics with your Silverlight Streaming application</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/7rcGky_V-4A/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/06/18/integrating-google-analytics-with-your-silverlight-streaming-application/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 03:34:55 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[silverlight streaming]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=262</guid>
		<description><![CDATA[No dice. Can&#8217;t be done. Here&#8217;s why.
To track an action you need to invoke the trackPage() function defined in ga.js. The function must be invoked from the same domain registered in your Google Analytics account, in my case that&#8217;s &#8220;andrewmyhre.com&#8221;. So in order to track events from my Silverlight app I need to call up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=262&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>No dice. Can&#8217;t be done. Here&#8217;s why.</p>
<p>To track an action you need to invoke the trackPage() function defined in ga.js. The function must be invoked from the same domain registered in your Google Analytics account, in my case that&#8217;s &#8220;andrewmyhre.com&#8221;. So in order to track events from my Silverlight app I need to call up to the parent frame and invoke a function to track the event. Unfortunately, because my Silverlight application is running on an entirely different domain (something like &#8220;silverlight.services.live.com&#8221;) the browser throws a &#8220;Permission denied&#8221; error when I try to invoke parent.trackPage().</p>
<p>There is no way around this. That behaviour is by design, in order to prevent cross-site scripting attacks.</p>
<p>So I&#8217;ve moved the Silverlight and media files to my hosting account where I can load everything under my own domain. That&#8217;s cool because I have 1gb of space there and the total media payload is around 500mb. It&#8217;s also a real shame, it was cool to be using a new beta service like Silverlight Streaming, but unfortunately event tracking is a deal breaker for me.</p>
<p>Maybe there are some coders out there who know how to get around this, or maybe the Silverlight Streaming team have a workaround&#8230; I can&#8217;t really see it happening though. Shame.</p>
<p>On the bright side though, the videos seem to be streaming much more quickly now! :/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=262&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/7rcGky_V-4A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/06/18/integrating-google-analytics-with-your-silverlight-streaming-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/06/18/integrating-google-analytics-with-your-silverlight-streaming-application/</feedburner:origLink></item>
		<item>
		<title>Design Your Experience</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/cd-FIKMZtK0/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/06/16/design-your-experience/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 02:36:37 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[silverlight 2]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=255</guid>
		<description><![CDATA[
So I deployed a personal website last week which I was quite happy with at the time but over the last few days I&#8217;ve thought of some features I wanted to add. I wanted visitors to be able to do a couple of things when they view my website:

pause and skip the music (not everyone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=255&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-01.png"><img class="alignnone size-thumbnail wp-image-256" title="Gratuitous money shot" src="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-01.png?w=150&#038;h=90" alt="Gratuitous money shot" width="150" height="90" /></a></p>
<p>So I deployed a personal website last week which I was quite happy with at the time but over the last few days I&#8217;ve thought of some features I wanted to add. I wanted visitors to be able to do a couple of things when they view my website:</p>
<ul>
<li>pause and skip the music (not everyone likes minimal-tech-dub)</li>
<li>choose which videos are in rotation</li>
<li>i also want the UI not to get in the way when not in use</li>
</ul>
<p><a href="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-02.png"><img class="alignnone size-thumbnail wp-image-257" title="Everybody needs options" src="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-02.png?w=83&#038;h=150" alt="Everybody needs options" width="83" height="150" /></a></p>
<p>So I added an options panel. It presents you with a pause/play button and a skip button to control the music. Most people, including myself, hate it when websites play music and you can&#8217;t stop it so here&#8217;s the option. I used the WebDings font for the button icons which I copied from my windows folder into my solution and embedded it.</p>
<p>Further below in the options panel you have a list of checkboxes which determine what kinds of videos are circulating in the pool that can be selected to play. Uncheck the &#8216;cows&#8217; tag to any videos everything featuring cows, for instance. I use System.Linq methods to regenerate the pool on each click, like so:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">if (c.IsChecked.HasValue &amp;&amp; c.IsChecked.Value)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">tagSet = tagSet.Union(new string[] { tb.Text }).ToArray();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">else</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">tagSet = (from t in tagSet where !t.Equals(tb.Text) select t).ToArray();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<pre>string[] tagSet = new string[10];
if (c.IsChecked.HasValue &amp;&amp; c.IsChecked.Value)
{
    tagSet = tagSet.Union(new string[] { tag }).ToArray();
}
else
{
    tagSet = (from t in tagSet where !t.Equals(tag) select t).ToArray();
}</pre>
<p>In the above snippet, tagSet is my collection of active tags, it&#8217;s just a string array as I&#8217;ve indicated with the declaration on the first line. The first logic branch is adding the selected tag to the array using a Union() and the second logic branch removes it by performing a select where not equal. I wonder if this is awfully inefficient.</p>
<p>Finally at the very bottom of the options panel there are some blurry lines which now and then shrink and expand. These are gauges which indicate the current buffering and download progress of the videos. If you look closely you can see four distinct lines. The 1st and 3rd lines indicate buffering progress while the 2nd and 4th lines indicate download progress.</p>
<p><a href="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-03.png"><img class="alignnone size-thumbnail wp-image-258" title="Now you know what these do" src="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-03.png?w=150&#038;h=25" alt="Now you know what these do" width="150" height="25" /></a></p>
<p>What&#8217;s actually happening behind the scenes is that while one video is playing another one is silently buffering. Once the background video source is ready to play and the timing is right a cross-fade transition will occur. As soon as the transition is completed the video source that was previously in the foreground begins buffering the next video in the pool, and so on the so forth. I can see what&#8217;s happening by switching into my diagnostics view:</p>
<p><img class="alignnone size-thumbnail wp-image-259" title="Diagnostics view shows both video sources" src="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-04.png?w=150&#038;h=74" alt="Diagnostics view shows both video sources" width="150" height="74" /></p>
<p>I&#8217;m reasonably happy with the way that the options panel slides out smoothly to meet the mouse cursor as you move it towards the left-hand side of the screen, and retracts discretely in the same way. I&#8217;ve wanted to experiment with this method of revealing/hiding UI for a while and I like this as a prototype. I&#8217;m not a designer though so I&#8217;m pretty sure the whole thing could be much slicker.</p>
<p>One more thing I&#8217;ve added is a little &#8216;loading&#8217; note with initial buffering gauges. There are two separate white bars which indicate the loading process &#8211; these are for source A and source B which I load both of initially before video starts. Sometimes however (actually, quite frequently) Silverlight is loading a cached video, so it doesn&#8217;t need to buffer in which case Silverlight reports a buffering progress of 0.0. This isn&#8217;t the desired behaviour in my case, because it means I have to set up some hacks to detect this case and show a full buffering gauge instead. From my point of view this is a bug.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/255/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=255&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/cd-FIKMZtK0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/06/16/design-your-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-01.png?w=150" medium="image">
			<media:title type="html">Gratuitous money shot</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-02.png?w=83" medium="image">
			<media:title type="html">Everybody needs options</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-03.png?w=150" medium="image">
			<media:title type="html">Now you know what these do</media:title>
		</media:content>

		<media:content url="http://andrewmyhre.files.wordpress.com/2009/06/20090616-newfeatures-04.png?w=150" medium="image">
			<media:title type="html">Diagnostics view shows both video sources</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/06/16/design-your-experience/</feedburner:origLink></item>
		<item>
		<title>Silverlight Streaming and Google Analytics</title>
		<link>http://feedproxy.google.com/~r/NoFreeTime/~3/CBJ9GV21kyA/</link>
		<comments>http://andrewmyhre.wordpress.com/2009/06/12/silverlight-streaming-and-google-analytics/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 09:25:36 +0000</pubDate>
		<dc:creator>andrewmyhre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://andrewmyhre.wordpress.com/?p=251</guid>
		<description><![CDATA[I can&#8217;t seem to find a way to implement page/event tracking from Silverlight using Google Analytics when hosted using Silverlight Streaming. The usual solution to do this with with a regular Silverlight app is to reference the Google Analytics ga.js script and call HtmlPage.Window.Invoke() from Silverlight. But a difficulty arises because that javascript is executed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=251&subd=andrewmyhre&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I can&#8217;t seem to find a way to implement page/event tracking from Silverlight using Google Analytics when hosted using Silverlight Streaming. The usual solution to do this with with a regular Silverlight app is to reference the Google Analytics ga.js script and call HtmlPage.Window.Invoke() from Silverlight. But a difficulty arises because that javascript is executed in the context of the Silverlight application, which (in my case at least) is inside an iframe, and therefore can&#8217;t use the ga.js script.</p>
<p>One of the features available with creating a Silverlight Streaming application is to include javascript files with your Silverlight app so that you can use them from Silverlight, but ga.js isn&#8217;t my script so I can&#8217;t do that. Unless I downloaded the obfuscated version using Firebug or something&#8230; but&#8230; ugh!</p>
<p>I&#8217;m sure there will be some combination of HtmlPage.Window.Parent.Parent.Whatever I can use to do what I want to do, but I&#8217;m already into my second glass of wine for the evening and my brains starting to go on holiday. Any UK devs just waking up want to tackle this problem?</p>
<p>I guess you could simulate the issue yourself by adding a new .html page to your standard Silverlight hosting website containing an iframe with loads the Silverlight test page. In fact that&#8217;s how I&#8217;ll start tackling it tomorrow.</p>
<p>For now, I&#8217;m going to call it a night.</p>
<p>I see I&#8217;m getting a little bit of new traffic/twitter follows which I guess I can attribute to my new website&#8230; not because I think it&#8217;s brilliant but because there aren&#8217;t many actual cases of websites making use of Silverlight Streaming, so the Silverlight enthusiasts on Twitter seem to be retweeting. Maybe I&#8217;m wrong but if I&#8217;m right, thanks everyone, and please provide feedback about what I&#8217;ve made. I&#8217;ll be really pleased to hear from you.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andrewmyhre.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andrewmyhre.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andrewmyhre.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andrewmyhre.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andrewmyhre.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andrewmyhre.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andrewmyhre.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andrewmyhre.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andrewmyhre.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andrewmyhre.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andrewmyhre.wordpress.com&blog=2776051&post=251&subd=andrewmyhre&ref=&feed=1" /></div><img src="http://feeds.feedburner.com/~r/NoFreeTime/~4/CBJ9GV21kyA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://andrewmyhre.wordpress.com/2009/06/12/silverlight-streaming-and-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/88fb9df2ebabdb5026a0544004b41738?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">andrewmyhre</media:title>
		</media:content>
	<feedburner:origLink>http://andrewmyhre.wordpress.com/2009/06/12/silverlight-streaming-and-google-analytics/</feedburner:origLink></item>
	</channel>
</rss>
