<?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>Techkn0w</title>
	<atom:link href="http://techkn0w.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techkn0w.wordpress.com</link>
	<description>Techie Insights and Details that might help your work -by Rahul Bhide</description>
	<lastBuildDate>Mon, 12 Dec 2011 23:24:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techkn0w.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Techkn0w</title>
		<link>http://techkn0w.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techkn0w.wordpress.com/osd.xml" title="Techkn0w" />
	<atom:link rel='hub' href='http://techkn0w.wordpress.com/?pushpress=hub'/>
		<item>
		<title>&#8220;Compatibility mode error&#8221; with Mango WP 7.1 SDK install</title>
		<link>http://techkn0w.wordpress.com/2011/11/03/compatibility-mode-error-with-mango-wp-7-1-sdk-install/</link>
		<comments>http://techkn0w.wordpress.com/2011/11/03/compatibility-mode-error-with-mango-wp-7-1-sdk-install/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 23:25:16 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[WP7 Mango SDK]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/11/03/compatibility-mode-error-with-mango-wp-7-1-sdk-install/</guid>
		<description><![CDATA[Recently, I went to install the released Windows Phone SDK 7.1 for Mango and got a weird error while executing the installable vm_web.exe with a message box saying Visual Studio setup cannot run in compatibility mode. For more information see the &#8216;Installing&#8217; section in the Visual Studio readme at http://go.microsoft.com/fwlink/?LinkID=143397. Bah, this was humbug and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=292&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I went to install the released Windows Phone SDK 7.1 for Mango and got a weird error while executing the installable vm_web.exe with a message box saying</p>
<p>Visual Studio setup cannot run in compatibility mode.    <br />For more information see the &#8216;Installing&#8217; section in the Visual Studio readme at <a href="http://go.microsoft.com/fwlink/?LinkID=143397">http://go.microsoft.com/fwlink/?LinkID=143397</a>.</p>
<p>Bah, this was humbug and I had VS Ultimate installed with all the latest service packs.</p>
<p>A little snooping around gave me a very simple solution.   <br />Simply, copy your vm_web.exe to C:\ and run it from there. This worked like a charm.</p>
<p>Props to the post: <a title="http://blogs.msdn.com/b/astebner/archive/2010/09/17/10064318.aspx" href="http://blogs.msdn.com/b/astebner/archive/2010/09/17/10064318.aspx">http://blogs.msdn.com/b/astebner/archive/2010/09/17/10064318.aspx</a></p>
<p>How did that guy even think of this simple fix, I wonder?</p>
<p>Hope it helps you&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=292&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/11/03/compatibility-mode-error-with-mango-wp-7-1-sdk-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing Services with Fiddler</title>
		<link>http://techkn0w.wordpress.com/2011/09/17/testing-services-with-fiddler/</link>
		<comments>http://techkn0w.wordpress.com/2011/09/17/testing-services-with-fiddler/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 03:11:49 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[SOAP]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/09/17/testing-services-with-fiddler/</guid>
		<description><![CDATA[When we write web services, we need ways to test them. Instead of writing an elaborate harness or using curl or wget or some other tool, I discovered that Fiddler can be used to invoke SOAP services, with either a GET or a POST. Fiddler is a great, free tool you might already be using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=289&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When we write web services, we need ways to test them.<br />
Instead of writing an elaborate harness or using curl or wget or some other tool, I discovered that Fiddler can be used to invoke SOAP services, with either a GET or a POST. Fiddler is a great, free tool you might already be using to monitor net traffic. If not, I would highly recommend it.</p>
<p>To use Fiddler to test you service that accepts a POST of param1, here is a quick rundown:</p>
<p>Start Fiddler and go to the Request Builder tab.</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/09/image.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://techkn0w.files.wordpress.com/2011/09/image_thumb.png?w=244&#038;h=91" alt="image" width="244" height="91" border="0" /></a></p>
<p>In this tab, enter your service path.<br />
Note: you can run Visual Studio and grab the (dynamic Cassini) address from there.</p>
<p>Choose the submit type aka verb</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/09/image1.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://techkn0w.files.wordpress.com/2011/09/image_thumb1.png?w=244&#038;h=109" alt="image" width="244" height="109" border="0" /></a></p>
<p>For a POST type, we have to specify the Header to contain additional info.<br />
viz. <strong>Content-type: application/x-www-form-urlencoded</strong></p>
<p>&nbsp;</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/09/image2.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://techkn0w.files.wordpress.com/2011/09/image_thumb2.png?w=244&#038;h=123" alt="image" width="244" height="123" border="0" /></a></p>
<p>&nbsp;</p>
<p>Enter the various parameters to submit to the service in the Request bodyfield.</p>
<p>e.g. for 2 params, with value1 and 2</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/09/image3.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://techkn0w.files.wordpress.com/2011/09/image_thumb3.png?w=244&#038;h=130" alt="image" width="244" height="130" border="0" /></a></p>
<p>&nbsp;</p>
<p>Hit the Execute button (in the far top-right) to submit the Request.</p>
<p>I usually choose Tear Off in the Options so that I have a nice little floating window to do my testing.</p>
<p>You can put a debug point in VS and step through the Request if you want.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=289&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/09/17/testing-services-with-fiddler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

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

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

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

		<media:content url="http://techkn0w.files.wordpress.com/2011/09/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Fractals are useful, beyond just making tie-dye shirts</title>
		<link>http://techkn0w.wordpress.com/2011/06/06/fractals-are-useful-beyond-just-making-tie-dye-shirts/</link>
		<comments>http://techkn0w.wordpress.com/2011/06/06/fractals-are-useful-beyond-just-making-tie-dye-shirts/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 03:22:17 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[mathematics]]></category>
		<category><![CDATA[fractals]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/06/06/fractals-are-useful-beyond-just-making-tie-dye-shirts/</guid>
		<description><![CDATA[This post is a slight deviation from software to talk about the very interesting topic of Fractals&#8230; Fractals mean different things to different people and are a very useful tool used in many ways, from tie-dye shirts to Star Wars animations to geographical measurements. What are fractals? Fractals are a mathematical construct, depicted as a geometric [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=273&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is a slight deviation from software to talk about the very interesting topic of Fractals&#8230;</p>
<p>Fractals mean different things to different people and are a very useful tool used in many ways, from tie-dye shirts to Star Wars animations to geographical measurements.</p>
<p>What are fractals?<br />
Fractals are a mathematical construct, depicted as a geometric form that is composed of smaller pieces of itself. Thus it is possible to construct very complex shapes from very elementary ones using duplication.<br />
A good article of fractals can be found at: <a title="http://mathworld.wolfram.com/Fractal.html" href="http://mathworld.wolfram.com/Fractal.html">http://mathworld.wolfram.com/Fractal.html</a></p>
<p>Benoit Mandelbrot invented the term  fractal, which he depicted using self-similarity and wrote a paper to compute the length of Britain’s coastline, which he depicted as a fractal.<br />
The concept of self-similarity was not new and was around since the 1700s, but Mandelbrot defined it mathematically.<br />
He defined a fractal dimension (figures composed of fractions) and faced opposition from classic mathematicians who were more about lines and curves and integral dimensions (whole parts made of ones and twos and so on).<br />
<a title="http://math.bu.edu/DYSYS/chaos-game/node6.html#SECTION00060000000000000000" href="http://math.bu.edu/DYSYS/chaos-game/node6.html#SECTION00060000000000000000">http://math.bu.edu/DYSYS/chaos-game/node6.html#SECTION00060000000000000000</a> has a good explanation of this.</p>
<p>Mandelbrot defined a fractal to have the properties of self-similarity, fractal dimension and formation by iteration.What he essentially did was to describe nature in a mathematical form, which had never been done before when math was only applicable to human-made structures like buildings.</p>
<p>His paper was applied by many people to create complex shapes, e.g. artificial mountains were rendered by an animator at LucasFilms, who started with a simple triangle and replicated it multiple times. This started a whole world of realistic animations of natural forms like clouds, waves, etc.<br />
Some practical applications are:<br />
Cell-phone antennas where surface area is maximized by using a fractal shape.<br />
Calculating the surface area of a forest to know how much CO2 it can absorb, which in a study was found to be fractal in nature (pun intended), and has the same form as that of a tree.<br />
Similarly, clouds or oceans can be depicted as fractals and used for predictions.<br />
A heartbeat waveform is apparently a fractal and not a clean sine or square wave. Thus irregular heartbeats can be detected if they don’t exhibit a fractal nature.</p>
<p>Here is a fractal I drew called the Pythagoras Tree, that starts with 1 triangle with 2 half-size triangles at 45 degrees, and that is repeated over.</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/06/pytha-tree-11.jpg"><img class="alignnone size-full wp-image-278" title="pythagoras tree" src="http://techkn0w.files.wordpress.com/2011/06/pytha-tree-11.jpg?w=510" alt=""   /></a></p>
<p>Hope this opens up the wonderful world of fractals for you…</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=273&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/06/06/fractals-are-useful-beyond-just-making-tie-dye-shirts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2011/06/pytha-tree-11.jpg" medium="image">
			<media:title type="html">pythagoras tree</media:title>
		</media:content>
	</item>
		<item>
		<title>Urban Turtle TFS plug-in for Agile development</title>
		<link>http://techkn0w.wordpress.com/2011/04/05/urban-turtle-tfs-plug-in-for-agile-development/</link>
		<comments>http://techkn0w.wordpress.com/2011/04/05/urban-turtle-tfs-plug-in-for-agile-development/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 18:22:47 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio Team System]]></category>
		<category><![CDATA[Agile]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/04/05/urban-turtle-tfs-plug-in-for-agile-development/</guid>
		<description><![CDATA[It’s been a while since I wrote about TFS although a post I made about it 5 years ago is still the most popular post on my blog (weird!), and I’d like to give a plug for a plug-in for TFS called Urban Turtle, that provides SCRUM tools for Agile development.  The name seems like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=267&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It’s been a while since I wrote about TFS although a post I made about it 5 years ago is still the most popular post on my blog (weird!), and I’d like to give a plug for a plug-in for TFS called Urban Turtle, that provides SCRUM tools for Agile development. <br />
The name seems like a play on Tortoise, which provides integration for SVN (a source-control system), and I have this vision of a turtle walking in a city with shades on and a boom-box on it’s shoulder.</p>
<p>The Urban Turtle website is at <a title="http://urbanturtle.com/" href="http://urbanturtle.com/">http://urbanturtle.com/</a>, and it has all the info and videos for you to get started.<br />
Brian Harry of the TFS team has a good post about it here: <a title="http://blogs.msdn.com/b/bharry/archive/2011/01/05/urban-turtle-for-scrum-and-tfs.aspx" href="http://blogs.msdn.com/b/bharry/archive/2011/01/05/urban-turtle-for-scrum-and-tfs.aspx">http://blogs.msdn.com/b/bharry/archive/2011/01/05/urban-turtle-for-scrum-and-tfs.aspx</a></p>
<p>I am still exploring it, but it seems to have all the features you’d require in a SCRUM tool.</p>
<p>The SCRUM features are available in the Project Portal (website on SharePoint), for easy web-access to all team-members (including clients)</p>
<p>Creating Sprints, for example.</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/04/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:0;" title="image" src="http://techkn0w.files.wordpress.com/2011/04/image_thumb2.png?w=244&#038;h=43" border="0" alt="image" width="244" height="43" /></a></p>
<p><a href="http://techkn0w.files.wordpress.com/2011/04/image3.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:0;" title="image" src="http://techkn0w.files.wordpress.com/2011/04/image_thumb3.png?w=244&#038;h=219" border="0" alt="image" width="244" height="219" /></a></p>
<p>At work, we use TFS for source control and JIRA for SCRUM, but I don’t like the Printing possibilities of our JIRA setup, and assigning a Task to someone is not easy (because of a clunky interface with the name list).</p>
<p>Let’s see how things are in Urban Turtle land, and I’ll report back if I end up trying it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=267&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/04/05/urban-turtle-tfs-plug-in-for-agile-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

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

		<media:content url="http://techkn0w.files.wordpress.com/2011/04/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Working around big payloads and Timeouts in RIA services</title>
		<link>http://techkn0w.wordpress.com/2011/04/05/working-around-big-payloads-and-timeouts-in-ria-services/</link>
		<comments>http://techkn0w.wordpress.com/2011/04/05/working-around-big-payloads-and-timeouts-in-ria-services/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 01:18:01 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[RIA Services]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/04/05/working-around-big-payloads-and-timeouts-in-ria-services/</guid>
		<description><![CDATA[We are currently developing an LOB application and one of the screens in Silverlight shows about 20,000 records. When the (Silverlight) client made the domain service call it got back no data. This was because the database calls took a long time and returned many records. This led to problems with RIA services on 2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=259&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We are currently developing an LOB application and one of the screens in Silverlight shows about 20,000 records. When the (Silverlight) client made the domain service call it got back no data. This was because the database calls took a long time and returned many records.<em> </em>This led to problems with RIA services on 2 levels viz. timeouts (the time the call takes to return) and the number of objects returned.<br />
To resolve this, I did the following:</p>
<p><strong>Setting the timeout</strong></p>
<p>To work around the default timeout of 30 secs for RIA services, we need to over-ride the the timeout of the binding for the endpoint at run-time.<br />
This is a simple concept but tricky to implement. The idea is to create a partial class that will complement the DomainContext class auto-generated for the Silverlight client.</p>
<p>To get a handle on this, open the auto-generated file by RIA services during compilation, named [your project].g.cs in a hidden Generate Code folder. To view this, click the Project for your Silverlight client as specified in the RIA services link.</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/04/image.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://techkn0w.files.wordpress.com/2011/04/image_thumb.png?w=244&#038;h=140" border="0" alt="image" width="244" height="140" /></a></p>
<p>Click on the “Show All files” button icon in VS2010 and you will see it.</p>
<p>This file will contain the proxy Domain Context class generated for calling your Domain Service, amongst many other namespaces and classes in that file. Ensure you have the right namespace for this class (it could be confusing) which is essentially the namespace of your Domain Service.</p>
<p>Create a partial class for this Context.<br />
Make a new file and add code similar to the following to it<br />
(replace myns and MyDomainContext with yours, and the required timeout value which I have as 5 minutes)</p>
<blockquote><p>namespace myns<br />
{<br />
    public sealed partial class MyDomainContext<br />
    {<br />
        partial void OnCreated()<br />
        {<br />
            if (!DesignerProperties.IsInDesignTool)<br />
            {<br />
                ((WebDomainClient&lt;MyDomainContext.IMyDomainServiceContract&gt;)this.DomainClient)<br />
                    .ChannelFactory.Endpoint.Binding.SendTimeout = new TimeSpan(0, 5, 0);<br />
            }<br />
        }<br />
    }<br />
}</p></blockquote>
<p> </p>
<p>Add a reference to the web client of Domain Services</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/04/image1.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://techkn0w.files.wordpress.com/2011/04/image_thumb1.png?w=244&#038;h=72" border="0" alt="image" width="244" height="72" /></a></p>
<p>If the class you added does not compile, check the namespace and the Interface name (from the hidden file for that domain context constructor) and the reference.</p>
<p><strong>Changing the number of objects returned</strong></p>
<p>RIA Services limits the number of objects that can be returned, and this limit can be over-ridden by modifying the service behavior (not the client). This is done by modifying the web.config file to first specify a behavior node</p>
<p>The existence of the behavior node is specified in the services section</p>
<blockquote>
<pre>&lt;services&gt;
  &lt;service name="myNS.myDomainService" behaviorConfiguration="myDomainService" /&gt;
&lt;/services&gt;</pre>
</blockquote>
<pre><span style="font-family:Georgia;">The actual behavior node is specified in the behaviors node in the </span><span style="font-family:Georgia;"><em>system.serviceModel</em> section. Minimize the number of objects returned to suit your needs</span></pre>
<blockquote>
<pre>&lt;behaviors&gt;
&lt;serviceBehaviors&gt;    
&lt;behavior name="myDomainService"&gt;
  &lt;serviceMetadata httpGetEnabled="true" /&gt;
    &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
     &lt;dataContractSerializer maxItemsInObjectGraph="2147483647"/&gt;
&lt;/behavior&gt;
&lt;/serviceBehaviors&gt;
&lt;/behaviors&gt;</pre>
</blockquote>
<pre><span style="font-family:Georgia;">The above changes should hopefully work for you as well.</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=259&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/04/05/working-around-big-payloads-and-timeouts-in-ria-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

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

		<media:content url="http://techkn0w.files.wordpress.com/2011/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Timers in WP7</title>
		<link>http://techkn0w.wordpress.com/2011/03/28/timers-in-wp7/</link>
		<comments>http://techkn0w.wordpress.com/2011/03/28/timers-in-wp7/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 01:17:33 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[Windows Phone 7]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/03/28/timers-in-wp7/</guid>
		<description><![CDATA[While developing Win Phone apps, there are a few options for having a timer. Here are 2 possibilities which provide precision vs. blocking/overhead: 1. Dispatch timer This is basically a timer that runs on the UI thread and so is precise but can block the UI for any refreshes and activity when it executes, so be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=249&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While developing Win Phone apps, there are a few options for having a timer. Here are 2 possibilities which provide precision vs. blocking/overhead:</p>
<p>1. Dispatch timer<br />
This is basically a timer that runs on the UI thread and so is precise but can block the UI for any refreshes and activity when it executes, so be careful how/when you use it.</p>
<p>It can be declared and created as:</p>
<blockquote><p>System.Windows.Threading.DispatcherTimer _predictionTimer = new System.Windows.Threading.DispatcherTimer();</p></blockquote>
<p>It is set up as: (Do this in the Page loaded event, for the Page)</p>
<blockquote>
<pre>_predictionTimer.Interval = new TimeSpan(0, 0, TIMER_INTERVAL_SECONDS);
_predictionTimer.Tick += new EventHandler(PredictionTimerEvent);
_predictionTimer.Start();</pre>
</blockquote>
<p>Note: If you type in the += after the second statement, hitting Tab twice will also generate a callback stub in code (like the one below) for you.</p>
<p>The method to call for the timer event is written as:</p>
<blockquote>
<pre>void PredictionTimerEvent(object sender, EventArgs e)
{
   …do something…}</pre>
</blockquote>
<p>2. IDisposible timer</p>
<p>This timer is not very precise, but runs on its own thread and not the UI thread  and so does not block the UI. It does need to switch contexts to do anything with the UI/display. So, you need to get a handle to the UI thread to do anything with the display. I use the MVVM Light Messenger and subscribe to a message that I then send in the timer so I don’t need to do any switching myself.</p>
<p>It is declared as:</p>
<pre>        IDisposable _timer;</pre>
<p>It is created as: (Do this in the Page loaded event)</p>
<blockquote><p>if (_timer== null)</p>
<p>{</p>
<p>        IScheduler scheduler = Scheduler.Dispatcher;</p>
<p>    _timer = scheduler.Schedule</p>
<p>                              (new Action&lt;Action&lt;TimeSpan&gt;&gt;TimerInterrupt), <br />
                    TimeSpan.FromSeconds(TIMER_INTERVAL_SECONDS));</p>
<p>}</p></blockquote>
<p>The timer event handler is written as:</p>
<pre>        void TimerInterrupt(Action&lt;TimeSpan&gt; action)         {             …do something…             action(TimeSpan.FromSeconds(TIMER_INTERVAL_SECONDS));         }</pre>
<p>To kill the timer (while navigating away, for e.g.)</p>
<blockquote><p>_timer.Dispose();  //kill timer</p></blockquote>
<p>Both of the above essentially do the same thing, but there are different reasons to use either.<br />
Hope that helps.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=249&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/03/28/timers-in-wp7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>
	</item>
		<item>
		<title>Navigating between pages with MVVM Light</title>
		<link>http://techkn0w.wordpress.com/2011/02/22/navigating-between-pages-with-mvvm-light/</link>
		<comments>http://techkn0w.wordpress.com/2011/02/22/navigating-between-pages-with-mvvm-light/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 03:11:50 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/02/22/navigating-between-pages-with-mvvm-light/</guid>
		<description><![CDATA[It is a common scenario to navigate to another URI on a button click. If you have MVVM fully wired up, this command in your View will likely connect to a method in your ViewModel. But the View is the one that can navigate via the NavigationService. So, this means the ViewModel will need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=246&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is a common scenario to navigate to another URI on a button click. If you have MVVM fully wired up, this command in your View will likely connect to a method in your ViewModel. But the View is the one that can navigate via the NavigationService.</p>
<p>So, this means the ViewModel will need to tell the View to do so. One way to do this is by using the Messaging framework in MVVM Light toolkit.</p>
<p>For e.g. Let’s say your About button needs to go to to the About Uri. The following are the various steps involved.</p>
<p>1. <em>View</em> &#8211; Register the Message (to receive) in the source View.<br />
Let’s say we want to look for a Uri and a token of “Navigate”. When it is received, we want to invoke the Navigation. This can be elegantly done with a delegate as follows</p>
<blockquote>
<pre>Messenger.Default.Register&lt;Uri&gt;(this, "Navigate",
        (uri) =&gt; NavigationService.Navigate(uri));</pre>
</blockquote>
<p>2. <em>ViewModel</em> &#8211; Send this Message from a ViewModel, and MVVM Light will deliver it to the View</p>
<blockquote>
<pre>private void About(object param)
{
    Uri uri = new Uri("/View/About.xaml", UriKind.Relative);
    Messenger.Default.Send&lt;Uri&gt;(uri, "Navigate");
}</pre>
</blockquote>
<p>This ensures there is no tight coupling between the ViewModel and the View, as the pattern requires.</p>
<p>You can use this pattern even between 2 Views if you need.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=246&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/02/22/navigating-between-pages-with-mvvm-light/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>
	</item>
		<item>
		<title>MVVM with MVVM Light Toolkit</title>
		<link>http://techkn0w.wordpress.com/2011/02/11/mvvm-with-mvvm-light-toolkit/</link>
		<comments>http://techkn0w.wordpress.com/2011/02/11/mvvm-with-mvvm-light-toolkit/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 06:59:26 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[MVVM Light]]></category>
		<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/02/11/mvvm-with-mvvm-light-toolkit/</guid>
		<description><![CDATA[Here is a presentation about MVVM and implementing the design pattern with MVVM Light toolkit, that I made to the San Francisco Silverlight User group. Feel free to use this as you may please.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=243&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a presentation about MVVM and implementing the design pattern with MVVM Light toolkit, that I made to the San Francisco Silverlight User group.</p>
<iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/48620481/content?start_page=1&view_mode=list&access_key=key-cxhkrehgahmikciy2pm" data-auto-height="true" scrolling="no" id="scribd_48620481" width="100%" height="500" frameborder="0"></iframe>
<div style="font-size:10px;text-align:center;width:100%"><a href="http://www.scribd.com/doc/48620481">View this document on Scribd</a></div>
<p>Feel free to use this as you may please.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=243&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/02/11/mvvm-with-mvvm-light-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>
	</item>
		<item>
		<title>A few WP7 development gotchas</title>
		<link>http://techkn0w.wordpress.com/2011/01/12/a-few-wp7-development-gotchas/</link>
		<comments>http://techkn0w.wordpress.com/2011/01/12/a-few-wp7-development-gotchas/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 03:31:22 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[Fiddler]]></category>
		<category><![CDATA[LongListSelector]]></category>
		<category><![CDATA[MVVM Light]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2011/01/12/a-few-wp7-development-gotchas/</guid>
		<description><![CDATA[As part of developing for WP7, I came across a few issues that I’d like to share with you, and maybe help you avoid some pitfalls I faced… 1. WebClient requests are cached by emulator If you use the WebClient class to download information from the web, be aware that the web requests are cached [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=236&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As part of developing for WP7, I came across a few issues that I’d like to share with you, and maybe help you avoid some pitfalls I faced…</p>
<p><strong>1. WebClient requests are cached by emulator</strong><br />
If you use the WebClient class to download information from the web, be aware that the web requests are cached by the emulator (and the actual phone?) and this can be quite confusing, especially for real-time data from the web. There is no straight-forward workaround, and the only way for me to get this working was to tag on a GUID in my query string. Something like:</p>
<blockquote><p>downloadUrl = url + “&amp;guid=” + Guid.NewGuid()</p></blockquote>
<p>This, of course is a hack which might work with most websites because they only pick out params they care about and ignore the rest. Watch out for some strict sites that check for a fixed number of params and I have nothing around that at the moment.</p>
<p><strong>2. Fiddler with WP7</strong></p>
<p>As part of troubleshooting my first problem, I tried to use Fiddler which will not track WP7 web requests out of the box, but can be made to do so with the following steps:</p>
<ol>
<li>Start Fiddler (ensure you have the latest version).</li>
<li>Click Tools &gt; Fiddler Options.</li>
<li>Open the <strong>Connections </strong>tab and tick the <strong>Allow remote computers to connect </strong>box. Click OK.</li>
<li>In the QuickExec box (shown in red) under the session list, type <strong>prefs set fiddler.network.proxy.registrationhostname [<em>HostName] </em></strong>where<em> <strong>HostName </strong></em>is the name of your desktop computer.</li>
</ol>
<blockquote><p><a href="http://techkn0w.files.wordpress.com/2011/01/image.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://techkn0w.files.wordpress.com/2011/01/image_thumb.png?w=244&#038;h=142" border="0" alt="image" width="244" height="142" /></a></p></blockquote>
<p>   5. Close and restart Fiddler and the Windows Phone 7 Emulator.</p>
<p>Now you should  be able to track requests from the Emulator in Fiddler.</p>
<p>I referred to <a href="http://blogs.msdn.com/b/fiddler/archive/2010/10/15/fiddler-and-the-windows-phone-emulator.aspx" target="_blank">Eric&#8217;s blog post</a> and the <a href="http://phone7.wordpress.com/2010/10/17/fiddler-and-wp7-emulator-working/" target="_blank">Phone 7 blog</a> for this issue.</p>
<p><strong>3. Application Icon and Splash Screen don’t show up in app</strong><br />
I replaced my ApplicationIcon.png and SplashScreenImage.jpg but was scratching my head when they did not show up at run-time. A little looking into showed that when I replaced the original files, I lost their Properties and these files need to marked as Content Resources, like this:</p>
<p><a href="http://techkn0w.files.wordpress.com/2011/01/image1.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://techkn0w.files.wordpress.com/2011/01/image_thumb1.png?w=244&#038;h=108" border="0" alt="image" width="244" height="108" /></a></p>
<p><strong>4. WP7 toolkit installation problems</strong></p>
<p>I had a few headaches getting the toolkit to install, and it kept failing for some reason and I think they were related to not having VS Express (or whatever the free version is).<br />
I don’t remember what I did exactly, but there are people who have workarounds and a few retries worked for me, for installing the XMA framework for example.</p>
<p>If you’re having an installation problem, look for the toolkit iso and shut down and even reboot and try again. If not, ask in the WP7 forum at create.msdn.com and hopefully you will get some help.</p>
<p><strong>5. Consider the LongListSelector control for nested lists</strong></p>
<p>I had a situation whereby I had a kind-of master-detail view shown together where the master items are shown with their details items next to them, for eg.</p>
<blockquote><p>Master 1<br />
      detail 1.1<br />
      detail 1.2</p>
<p>Master 2<br />
     detail 2.1</p>
<p>Master 3<br />
    detail 3.1<br />
    detail 3.2<br />
    detail 3.3<br />
    detail 3.4</p></blockquote>
<p>I started with nested Listboxes but then realized that the ItemsControl is also a possibility since I did not need Listbox behavior like selection of items, etc.<br />
Think of ItemsControl as the insides of a ListBox.</p>
<p>But then scrolling became an issue because I wanted all items to be visible at once and not need to scroll the detail list for item 3 for example.</p>
<p>Fyi, you can make the ItemsControl scrollable by adding a View Template, like so:</p>
<blockquote>
<pre>&lt;ItemsControl x:Name="myItems"&gt;
 &lt;ItemsControl.Template&gt;
  &lt;ControlTemplate TargetType="ItemsControl"&gt;
    &lt;StackPanel&gt;
      &lt;ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,0,0,0"&gt;
	&lt;ItemsPresenter /&gt;
      &lt;/ScrollViewer&gt;
    &lt;/StackPanel&gt;
  &lt;/ControlTemplate&gt;
 &lt;/ItemsControl.Template&gt;
&lt;/ItemsControl&gt;</pre>
</blockquote>
<pre><span style="font-family:Georgia;">There are many nice posts about ItemsControl which you can look at to tweak and use them well.</span>
<span style="font-family:Georgia;">Unfortunately, they couldn’t work easily for me, since I needed to autosize the nested details so that either 1 or 4 items could be shown without scrolling.
</span><span style="font-family:Georgia;">I say easily because I am sure sure some WPF gurus can do almost anything with ListBoxes, but not me.
</span><span style="font-family:Georgia;">I am now working to adapt the LongListSelector control from the toolkit. It was mainly made for virtualizing the View and the data to give you a fast scrolling and grouped list.
The Contacts list on the phone is a good example of it.</span>
<span style="font-family:Georgia;">So, if you want to use nested lists and want the children to autosize, etc., look at the LongListSelector sample in the toolkit.</span>
<span style="font-family:Georgia;"><a href="http://www.windowsphonegeek.com/articles/wp7-longlistselector-in-depth--part1-visual-structure-and-api" target="_blank">This mini-series</a> by WindowsPhoneGeek helped me understand it better.
</span>
<strong><span style="font-family:Georgia;">6. Re-entrancy problems are possible with MVVM Light</span>
</strong><span style="font-family:Georgia;">I am using the MVVM Light framework which is quite handy for locating ViewModels, but you also need to be careful about manipulating collections while in a loop.
This is more an issue of bad implementation than the framework itself, but iterating over static ViewModel is enticing and a common mistake and should be done with caution.
If you change any item in the List will throw an Exception. I forget now exactly, but I think I was getting a NullReferenceException.</span>
<span style="font-family:Georgia;">So, my advice while manipulating a ViewModel List, is to create a new List and iterate over the static ViewModel List and copy it’s contents and then set the ViewModel list to your new local List.</span>
<span style="font-family:Georgia;">Hope these points saved some of your time…

</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=236&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2011/01/12/a-few-wp7-development-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

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

		<media:content url="http://techkn0w.files.wordpress.com/2011/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows Phone 7 development&#8211;The basics</title>
		<link>http://techkn0w.wordpress.com/2010/10/23/windows-phone-7-developmentthe-basics/</link>
		<comments>http://techkn0w.wordpress.com/2010/10/23/windows-phone-7-developmentthe-basics/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 18:15:54 +0000</pubDate>
		<dc:creator>Ra</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">https://techkn0w.wordpress.com/2010/10/23/windows-phone-7-developmentthe-basics/</guid>
		<description><![CDATA[Since everyone (including me) and their mother is now dabbling in WP7 development, I thought I’d write about some of it and share my experiences with the community. Before getting into dev details, let’s start with the setup and getting off the ground. The page to access the wormhole is at: http://create.msdn.com. It has a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=228&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since everyone (including me) and their mother is now dabbling in WP7 development, I thought I’d write about some of it and share my experiences with the community.</p>
<p>Before getting into dev details, let’s start with the setup and getting off the ground.</p>
<p>The page to access the wormhole is at: <a href="http://create.msdn.com">http://create.msdn.com</a>.<br />
It has a link to download the (free) tools you’ll need.</p>
<p><a href="http://techkn0w.files.wordpress.com/2010/10/image.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://techkn0w.files.wordpress.com/2010/10/image_thumb.png?w=244&#038;h=90" border="0" alt="image" width="244" height="90" /></a></p>
<p>Please go ahead and install the various components required; I’ll wait.<br />
The pieces include the VS extensions which installs the various phone app templates, the WP7 emulator that lets you run and test apps without a real phone in hand, etc.</p>
<p>We are now ready to write our first app.<br />
Note that we are going to explore Silverlight apps and not XNA apps. These run on a managed Silverlight layer on the phone, as opposed to an XNA platform that conceptually treats the device like a console where you can manipulate each pixel.</p>
<p>Open VS and select New Project –&gt; Silverlight for Windows Phone – Windows Phone Application (the first item), as shown below.</p>
<p><a href="http://techkn0w.files.wordpress.com/2010/10/image1.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://techkn0w.files.wordpress.com/2010/10/image_thumb1.png?w=244&#038;h=171" border="0" alt="image" width="244" height="171" /></a></p>
<p>Give it a name and location and you will be faced with the Mainpage.xaml</p>
<p><a href="http://techkn0w.files.wordpress.com/2010/10/image2.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://techkn0w.files.wordpress.com/2010/10/image_thumb2.png?w=244&#038;h=120" border="0" alt="image" width="244" height="120" /></a></p>
<p>If you just want to run the project and hit F5, you will get a compile error stating that “Zune software is not installed. Install the latest version of Zune software.”</p>
<p><a href="http://techkn0w.files.wordpress.com/2010/10/image3.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://techkn0w.files.wordpress.com/2010/10/image_thumb3.png?w=244&#038;h=62" border="0" alt="image" width="244" height="62" /></a></p>
<p>This happens because the output is set to a device, and you can change it to go to the Emulator by changing the dropdown selection next to the Play button to Windows Phone Emulator.</p>
<p><a href="http://techkn0w.files.wordpress.com/2010/10/image4.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://techkn0w.files.wordpress.com/2010/10/image_thumb4.png?w=244&#038;h=75" border="0" alt="image" width="244" height="75" /></a></p>
<p>Hitting F5 now, loads the Emulator and shows the app in it.</p>
<p>To end debugging, the instinctual way is to close the Emulator. But I like to keep the Emulator running in order to save time in further debugging sessions.<br />
Hit the Back &lt;- button at the bottom of the Emulator or go to VS and hit Stop to exit from Play mode.</p>
<p>So, now you have a very basic Phone app running in Visual Studio. That’s all for now. More to come in future posts…</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techkn0w.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techkn0w.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techkn0w.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techkn0w.wordpress.com&amp;blog=583594&amp;post=228&amp;subd=techkn0w&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techkn0w.wordpress.com/2010/10/23/windows-phone-7-developmentthe-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38bd61bcd272a3f419f3e5260d247461?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techkn0w</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2010/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2010/10/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2010/10/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2010/10/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://techkn0w.files.wordpress.com/2010/10/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
