<?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>Tatham Oddie &#187; Open Source</title>
	<atom:link href="http://blog.tatham.oddie.com.au/category/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tatham.oddie.com.au</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 23:46:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.tatham.oddie.com.au' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0b67dd1962a151d7e1d78a45055c6b6d?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tatham Oddie &#187; Open Source</title>
		<link>http://blog.tatham.oddie.com.au</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.tatham.oddie.com.au/osd.xml" title="Tatham Oddie" />
	<atom:link rel='hub' href='http://blog.tatham.oddie.com.au/?pushpress=hub'/>
		<item>
		<title>Tearing down the tents (and moving them closer together)</title>
		<link>http://blog.tatham.oddie.com.au/2008/07/29/tearing-down-the-tents-and-moving-them-closer-together/</link>
		<comments>http://blog.tatham.oddie.com.au/2008/07/29/tearing-down-the-tents-and-moving-them-closer-together/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 03:13:59 +0000</pubDate>
		<dc:creator>Tatham Oddie</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Windows Live]]></category>

		<guid isPermaLink="false">http://tatham.wordpress.com/2008/07/29/tearing-down-the-tents-and-moving-them-closer-together/</guid>
		<description><![CDATA[Being fairly focused on Microsoft technologies myself, I see a lot of the &#8220;us vs. them&#8221; mentality where you either use Microsoft technologies, or you&#8217;re part of &#8220;the other group&#8221;. Seeing Lachlan Hardy at Microsoft Remix was awesome &#8211; he was a Java dude talking about web standards at a Microsoft event. The more we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=251&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Being fairly focused on Microsoft technologies myself, I see a lot of the &#8220;us vs. them&#8221; mentality where you either use Microsoft technologies, or you&#8217;re part of &#8220;the other group&#8221;. Seeing <a href="http://lachstock.com.au">Lachlan Hardy</a> at <a href="http://microsoft.com.au/remix">Microsoft Remix</a> was awesome &#8211; he was a Java dude talking about web standards at a Microsoft event. The more we can focus on the ideas rather than which camp you&#8217;re from, the more we&#8217;ll develop the inter-camp relationships and eventually destroy this segmentation. Sure, we&#8217;ll still group up and debate the superfluous crap like which language is better (we&#8217;re nerds &#8211; we&#8217;ll always do that) but at least these will be debates between the sub-camps of one big happy web family. (It&#8217;s not as cheesy as it sounds &#8211; I hope.)</p>
<p>What&#8217;s the first step in making this happen? Meet people from &#8220;the other group&#8221;!</p>
<p>The boys and girls at <a href="http://gruden.com/">Gruden</a> and <a href="http://shadocms.com">Straker Interactive</a> have put together <a href="http://webonthepiste.com/">Web on the Piste</a> for the second year running. It&#8217;s a vendor neutral conference about rich internet technologies &#8211; so you&#8217;ll see presentations about Adobe Flex and Microsoft Silverlight at the same event (among lots of other cool technologies of course). These types of events are a perfect way to meet some really interesting people and cross pollinate some sweet ideas.</p>
<p>It&#8217;s coming up at the end of August, and I understand that both conference tickets and accommodation are getting tight so I&#8217;d encourage you to get in soon if you&#8217;re interested (Queenstown is crazy at this time of year).</p>
<p>And of course, <a href="http://blog.tatham.oddie.com.au/presentations">yours truly will be there evangelising</a> the delights of Windows Live as well as ASP.NET AJAX to our Flash using, &#8220;fush and chups&#8221; eating friends. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Will <em>you</em> be there?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tatham.wordpress.com/251/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tatham.wordpress.com/251/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tatham.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tatham.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tatham.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=251&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tatham.oddie.com.au/2008/07/29/tearing-down-the-tents-and-moving-them-closer-together/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/459b8249e2b4dba8169774892cab0d48?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">tatham</media:title>
		</media:content>
	</item>
		<item>
		<title>Location, Location, Location: My plan for location awareness, and the GeographicLocationProvider object</title>
		<link>http://blog.tatham.oddie.com.au/2008/05/06/location-location-location-my-plan-for-location-awareness-and-the-geographiclocationprovider-object/</link>
		<comments>http://blog.tatham.oddie.com.au/2008/05/06/location-location-location-my-plan-for-location-awareness-and-the-geographiclocationprovider-object/#comments</comments>
		<pubDate>Tue, 06 May 2008 11:57:33 +0000</pubDate>
		<dc:creator>Tatham Oddie</dc:creator>
				<category><![CDATA[Mapping]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software Wishlist]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://tatham.wordpress.com/?p=228</guid>
		<description><![CDATA[I know where I am. My phone knows where it is. Why doesn&#8217;t the webpage know where I am? Think about these scenarios which will become more and more prominent as &#8220;the mobile web&#8221; starts to prevail: I visit a cinema website on my mobile. Rather than having to choose my cinema first, the website [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=228&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I know where I am. My phone knows where it is. Why doesn&#8217;t the webpage know where I am?</p>
<p>Think about these scenarios which will become more and more prominent as &#8220;the mobile web&#8221; starts to prevail:</p>
<ol>
<li>I visit a cinema website on my mobile. Rather than having to choose my cinema first, the website already knows which suburb I&#8217;m in so it defaults to the nearest cinema first.</li>
<li>I need a taxi. I don&#8217;t know where I am, but my phone does. I want to be able to book a taxi and have the website discover my location automatically.</li>
</ol>
<p>The key idea that I&#8217;m exploring here is the ability for a webpage to access this information through the standard browser interface.</p>
<p><strong>I have a plan for making this a reality.</strong></p>
<p>Windows Mobile has already taken a step towards baking location awareness into the OS with their <a href="http://msdn.microsoft.com/en-us/library/ms850332.aspx" target="_blank">GPS Intermediate Driver</a>. The idea is that the operating system handles communication with the GPS unit, including all the various protocols. Applications then have a unified API for accessing GPS data. This proxy effect also facilitates non-exclusive access to the GPS.</p>
<p>But this doesn&#8217;t go far enough. Even with this unified API, very few applications are actually location aware. More importantly, I don&#8217;t want to have to download and install a piece of software on my device just to be able to see movie times. It&#8217;s just not going to happen.</p>
<p>We&#8217;ve also been making the assumption that location data comes from a GPS. Enter GeoPriv.</p>
<p>With the continuing rollout of VOIP, there are obvious challenges about the loss of location awareness. The current analog network makes call tracing relatively easy. It&#8217;s a fixed line of copper and the phone company knows where it terminates. This is a legal requirement for emergency call routing, as well as being immensely useful for scenarios such as a national number auto-routing to your nearest local store. Both of these scenarios become immensely difficult when you can&#8217;t even rely on there being a physical phone anymore &#8211; a piece of software with a network connection is now a fully fledged communication device that needs to support these scenarios somehow.</p>
<p>There&#8217;s an IETF working group tasked to solve this exact problem. The privacy impacts of sharing location data are so important that it&#8217;s in the name. They are the &#8220;Geographic Location/Privacy working group&#8221;, or &#8220;<a href="http://www.ietf.org/html.charters/geopriv-charter.html" target="_blank">GeoPriv</a>&#8220;. The best part is, they are living in a reality and delivering useful technology &#8211; and fast.</p>
<p>There are a number of key concepts they have identified:</p>
<ul>
<li>We can&#8217;t go jamming a GPS chip in every single device we manufacture. We need to be able to capitalize on the ecosystem surrounding our existing devices to surface the information we already have.</li>
<li>Privacy is a critical element of any solution expecting wide spread adoption and trust.</li>
<li>There are two possible types of location you could need:
<ul>
<li>civic location (level, street number, street, suburb, etc)</li>
<li>geographic location (latitude, longitude, elevation)</li>
</ul>
</li>
</ul>
<p>Lets step away from mobile devices briefly and consider the laptop I&#8217;m writing this post on. My laptop doesn&#8217;t know where it is. Neither does my WiFi router, or my DSL modem. My ISP does though.</p>
<p>At some stage in the future, my modem will start receiving an extra DHCP option. In the same  way that my ISP supplies me with network settings like DNS when I connect, they will also start pushing out the address of their Location Information Server. My DSL modem will then push this setting out across my network. Finally, my laptop will be able to query this service to find out my current civic and/or geographic location. The privacy controls around this are beyond the scope of this post.</p>
<p>By asking the service provider for the information, these same techniques also works for mobile devices, 3G data connections, and all those other wonderful wireless technologies. Cell-based triangulation is already in use by phone companies around the world, including our national carrier here in Australia, however the interfaces are in no way standardized. The Location Information Server (LIS) and the HTTP Enabled Location Delivery protocol (HELD) solve this problem.</p>
<p>Now that our device is capitalising on the network ecosystem, getting it into the browser is the easy part. All that&#8217;s left is a thin veneer of JavaScript.</p>
<p><strong>Location awareness is only becoming an increasing demand. I want to start the process of rolling in the JS layer now, so that as the supporting technologies come to fruition, we have the access layer to make them useful.</strong></p>
<p>Inline with the XMLHttpRequest object that we&#8217;ve all come to know and love, <a href="http://geographiclocationprovider.org/Specification/" target="_blank">I&#8217;ve started writing a spec for a GeographicLocationProvider object</a>.</p>
<p>With XMLHttpRequest, we can write code like this:</p>
<pre>
<pre class="brush: jscript;">var client = new XMLHttpRequest();
client.onreadystatechange = function()
{
    if(this.readyState == 4 &amp;amp;&amp;amp; this.status == 200)
        alert(this.responseXML);
}
client.open(&quot;GET&quot;, &quot;http://myurl.com/path&quot;);
client.send();
</pre>
</pre>
<p>I want to be able to write code like this:</p>
<pre>
<pre class="brush: jscript;">var provider = new GeographicLocationProvider();
provider.onreadystatechange = function()
{
    if(this.readyState == 2)
        alert(this.geographic.latitude);
}
provider.start();
</pre>
</pre>
<p>Again, usage is conceptually similar to the XMLHttpRequest object:</p>
<ol>
<li>Initialize an instance of the object</li>
<li>Subscribe to the state change event</li>
<li>Set it free</li>
</ol>
<p>The potential states are:</p>
<ul>
<li>STOPPED. This is the state the the object is initialized in, and the state that it returns to if stop() is called.</li>
<li>RESOLVING. The object has been started, but not location information is available yet. In this state the browser could be:
<ul>
<li>prompting the user for permission,</li>
<li>searching for location sources (like GPS hardware, or an LIS endpoint), or</li>
<li>waiting for the location source to initialize (like connecting to satellites, or talking to the LIS)</li>
</ul>
</li>
<li>TRACKING. A location source has been found and location data is ready to be queried from the provider.</li>
<li>UNAVAILABLE. No location data is available, and none is likely to become available. The user may have denied a privacy prompt, their security settings may have automatically denied the request, or there may be no location sources available. It is possible for the provider to return to the RESOLVING state if a location source become available later.</li>
</ul>
<p>In more complex scenarios, the provider can be primed with a specific request to aid in evaluation of privacy policies and selection of location sources. For example, browsers may choose to hand over state-level civic location data without a privacy prompt. This data could also be obtained from an LIS, without needing to boot up a GPS unit. If the webpage requested highly accurate geographic location data, the browser would generally trigger a privacy prompt and boot up the most accurate location source available.</p>
<p><strong>While we&#8217;ve now simplified the developer experience, the complexity of the browser implementation has mushroom clouded. How do we reign this in so that it&#8217;s attractive and feasible enough for browser implementers? How do we demonstrate value today?</strong></p>
<p>You might have noticed that in my discussion of the JS layer I drifted away from the GeoPriv set of technologies. While any implementation should be harmonious with the concepts developed by the GeoPriv working group, we aren&#8217;t dependent upon their technology to start delivering browser-integrated location awareness today.</p>
<p>There are numerous location sources which can be used:</p>
<ul>
<li>Statically configured location &#8211; with the network fingerprinting technology already in Vista, it would be relatively easy to prompt users for their civic location the first time location data is needed on a particular network.</li>
<li>GPS Intermediate Driver &#8211; already rolled into the Windows Mobile platform.</li>
<li>Location Information Servers &#8211; can be added to the mix later as LIS deployments become prevalent. This is the only one that is GeoPriv dependant.</li>
</ul>
<p>The civic and geographic schemas have already been delivered by the working group as <a href="http://tools.ietf.org/html/rfc4119" target="_blank">RFC 4119</a>. There has been an incredible amount of discussion involved in developing a unified schema that can represent civic addresses for anywhere in the world, and this schema should be adopted for consistency. (Do you know the difference between states, regions, provinces, prefectures, counties, parishes, guns, districs, cities, townships, shis, divisions, boroughs, wards, chous and neighbourhoods? They do.)</p>
<p><strong>Who is responsible for delivering this unified location layer?</strong></p>
<p>I keep talking about the browser being responsible for managing all these location sources. Other than the JS layer, all of this infrastructure is client independent, so why don&#8217;t we just make the browser a dumb proxy to a unified location service. This service should be a component of the operating system, accessible by software clients (like Skype) and webpages via the browser proxy.</p>
<p>Windows Mobile has already started in the right direction with their GPS Intermediate Driver, however this is only one element of a wider solution.</p>
<p><strong>What do I want?</strong></p>
<ol>
<li>I want to see a &#8220;Location&#8221; icon in the settings page of my mobile device, the Control Panel of my Vista laptop and the System Preferences panel of my Mac.</li>
<li>I want the browsers to expose the GeopgraphicLocationProvider object for JS clients. (<a href="http://geographiclocationprovider.org/Specification/" target="_blank">The start of this specification is online now already</a>.)</li>
<li>I want the browsers to proxy location requests to the operating system store, along with hints like which zone the website is in.</li>
<li>I want the operating system store to be extensible, implementing its own provider model which allows 3rd party developers to supply their own location data from software or hardware services as new discovery mechanisms are developed. We shouldn&#8217;t have to wait for widespread adoption before sources are surfaced into the store, and this should be open to software developers as well as driver developers.</li>
<li>I want the operating system store to be accessible by any application, including 3rd party browsers.</li>
</ol>
<p><strong>How am I going to make this happen?</strong></p>
<p>Dunno.</p>
<p>Right now, I&#8217;m documenting the start of what will hopefully be a fruitful conversation. <a href="mailto:tatham@oddie.com.au" target="_blank">Participate in the conversation</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tatham.wordpress.com/228/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tatham.wordpress.com/228/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tatham.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tatham.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tatham.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=228&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tatham.oddie.com.au/2008/05/06/location-location-location-my-plan-for-location-awareness-and-the-geographiclocationprovider-object/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/459b8249e2b4dba8169774892cab0d48?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">tatham</media:title>
		</media:content>
	</item>
		<item>
		<title>Managed Wrappers for Windows Live Data</title>
		<link>http://blog.tatham.oddie.com.au/2007/08/07/managed-wrappers-for-windows-live-data/</link>
		<comments>http://blog.tatham.oddie.com.au/2007/08/07/managed-wrappers-for-windows-live-data/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 02:54:51 +0000</pubDate>
		<dc:creator>Tatham Oddie</dc:creator>
				<category><![CDATA[Components]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Windows Live]]></category>

		<guid isPermaLink="false">http://blog.tatham.oddie.com.au/2007/08/07/managed-wrappers-for-windows-live-data/</guid>
		<description><![CDATA[Windows Live Data is the API you use for delegated access to your user&#8217;s personal data like contacts. It&#8217;s a pretty simple API, however that hasn&#8217;t stopped me writing some components for it! Today, I&#8217;m releasing them publicly. Not only do these components make it easier to work with the API, but they also provide [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=192&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/bb447720.aspx" target="_blank">Windows Live Data</a> is the API you use for delegated access to your user&#8217;s personal data like contacts. It&#8217;s a pretty simple API, however that hasn&#8217;t stopped me writing some components for it! Today, I&#8217;m releasing them publicly.</p>
<p>Not only do these components make it easier to work with the API, but they also provide an abstraction layer so that as the API develops your application doesn&#8217;t necessarily have to.</p>
<p><em>(Note: This post assumes an understanding for the Windows Live Data API. If you&#8217;ve never touched it before, </em><a href="http://msdn2.microsoft.com/en-us/library/bb447720.aspx" target="_blank"><em>read this first</em></a><em>.)</em></p>
<p>First up is the PermissionRequestHyperLink control. Placing this on your page gives you a nice designer experience for building those yucky URLs and setting all the right flags.</p>
<p>A basic request looks something like this:</p>
<blockquote><p>&lt;live:PermissionRequestHyperLink id=&#8221;PermissionRequestHyperLink1&#8243; runat=&#8221;server&#8221; Permission=&#8221;LiveContacts_ReadOnly&#8221; PrivacyUrl=&#8221;~/WindowsLive/PrivacyPolicy.aspx&#8221; ReturnUrl=&#8221;~/WindowsLive/ResponseHandler.ashx&#8221;&gt;Permission Request&lt;/live:permissionrequesthyperlink&gt;</p>
</blockquote>
<p>And gives you designer experience like this:</p>
<blockquote><p><a href="http://tatham.files.wordpress.com/2007/08/image.png"><img alt="image" src="http://tatham.files.wordpress.com/2007/08/image-thumb.png?w=700"/></a> </p>
<p><a href="http://tatham.files.wordpress.com/2007/08/image1.png"><img alt="image" src="http://tatham.files.wordpress.com/2007/08/image-thumb1.png?w=700"/></a> </p>
</blockquote>
<p>Next up is the response handler base class. Start by adding a new &#8216;generic handler&#8217; to your project:</p>
<blockquote><p><a href="http://tatham.files.wordpress.com/2007/08/image2.png"><img alt="image" src="http://tatham.files.wordpress.com/2007/08/image-thumb2.png?w=700"/></a></p>
</blockquote>
<p>Change the generated class to inherit from PermissionResponseHandler instead of IHttpHandler, then implement the ProcessResponse and ProcessFailure&nbsp;methods like so:</p>
<blockquote><p>public class ResponseHandler : PermissionResponseHandler<br />{<br />&nbsp;&nbsp;&nbsp; protected override void ProcessResponse(HttpContext context, PermissionResponse response)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Do something here like storing the token for future use<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //response.DomainAuthenticationToken<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //response.OwnerHandle<br />&nbsp;&nbsp;&nbsp; }  </p>
<p>&nbsp;&nbsp;&nbsp; protected override void ProcessFailure(HttpContext context, PermissionResponseCode responseCode)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Perform some nice handling here<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //responseCode<br />&nbsp;&nbsp;&nbsp; }<br />}</p>
</blockquote>
<p>How easy is that!  </p>
<p>You can grab the code from <a href="http://svn.fueladvance2.com/FuelAdvance.Components/trunk/">http://svn.fueladvance2.com/FuelAdvance.Components/trunk/</a> (username: anonymous). You&#8217;ll find the components in the FuelAdvance.Components.Web.WindowsLive namespace. </p>
<p>If you&#8217;re using Subversion yourself, remember that you can configure this as an svn:external and then you&#8217;ll always be running the latest version. </p>
<p>Next up, I&#8217;ll probably be releasing some managed wrappers for the Windows Live Contacts API.</p>
<p><strong>Update 9/8/07: </strong>Change SVN link to point at the solution instead of the project.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tatham.wordpress.com/192/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tatham.wordpress.com/192/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tatham.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tatham.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tatham.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tatham.oddie.com.au&amp;blog=171289&amp;post=192&amp;subd=tatham&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tatham.oddie.com.au/2007/08/07/managed-wrappers-for-windows-live-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/459b8249e2b4dba8169774892cab0d48?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">tatham</media:title>
		</media:content>

		<media:content url="http://tatham.files.wordpress.com/2007/08/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://tatham.files.wordpress.com/2007/08/image-thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://tatham.files.wordpress.com/2007/08/image-thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>