<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en"><title type="text">Liminal Existence</title><link rel="alternate" type="text/html" href="http://blaine.github.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/LiminalExistence" /><author><name>Blaine Cook</name><email>romeda@gmail.com</email></author><updated>2012-12-06T09:24:47+00:00</updated><generator uri="http://octopress.org/">Octopress</generator><feedburner:info uri="liminalexistence" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><id>http://blaine.github.com/</id><geo:lat>37.779329</geo:lat><geo:long>-122.419159</geo:long><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-nc-sa/2.0/" /><entry><title type="html">AccountChooser</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/EqC4yAc2e6I/account-chooser.html" /><updated>2012-12-06T00:40:00-08:00</updated><id>http://blaine.github.com/2012/12/account-chooser</id><content type="html">&lt;p&gt;Tim Bray recently posted &lt;a href="https://www.tbray.org/ongoing/When/201x/2012/11/28/AccountChooser"&gt;about AccountChooser&lt;/a&gt;, a project that&amp;#8217;s come out of Google and made its way into the OpenID foundation. Go read that post first, as this post is explicitly a response (as &lt;a href="https://twitter.com/timbray/status/276485842929864708"&gt;requested&lt;/a&gt;). Against my better judgement, I&amp;#8217;m compelled to say something, because damn it, I actually care about this stuff and I think it matters. And I think AccountChooser is a terrible, counter-productive approach to solving the increasingly large problem of &amp;#8220;identity&amp;#8221;.&lt;/p&gt;

&lt;p&gt;The problem, stated succinctly, is &amp;#8220;how can we allow users to sign in easily, without requiring passwords?&amp;#8221; The existing solutions are, simply: email+password (I&amp;#8217;m not going to get into &lt;a href="http://www.troyhunt.com/2012/06/our-password-hashing-has-no-clothes.html"&gt;why passwords suck&lt;/a&gt;), Sign in with Facebook, Sign in with Twitter, and Sign in with Google. I&amp;#8217;m not sure if anything else works in practice (maybe LinkedIn? Does anyone use that? Simon/Nat?). The latter three use open standards, but lack mechanisms for discovery and thus end up with a &amp;#8220;NASCAR&amp;#8221; sign-in interface. AccountChooser is an evolution of the &lt;a href="http://techcrunch.com/2010/04/18/spearheaded-by-meebo-xauth-looks-to-make-social-sites-smarter/"&gt;XAuth&lt;/a&gt; idea (which was &lt;a href="http://hueniverse.com/2010/06/xauth-a-terrible-horrible-no-good-very-bad-idea/"&gt;riddled with bad security problems&lt;/a&gt;, updated to address the security problems, but not the fundamental questions). It&amp;#8217;s related to Mozilla&amp;#8217;s &lt;a href="http://www.mozilla.org/en-US/persona/"&gt;Persona&lt;/a&gt;, but uses OpenID instead of Persona&amp;#8217;s custom infrastructure.&lt;/p&gt;

&lt;p&gt;Preamble finished, I think there are several key issues with AccountChooser, and I believe each one is sufficient to thwart adoption.&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;&lt;b&gt;Design matters&lt;/b&gt;: AccountChooser hijacks your site&amp;#8217;s design intent by placing an AccountChooser-branded page in every sign-in interaction. You can customise it to some extent, but the account buttons remain the same. Website owners aren&amp;#8217;t going to be happy about giving up this level of control – I&amp;#8217;m not, and I won&amp;#8217;t implement AccountChooser for this reason alone.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;It doesn&amp;#8217;t work&lt;/b&gt;: When I tried to sign in to Tim&amp;#8217;s demo site with two separate Google accounts at the same time, AccountChooser (&lt;b&gt;not&lt;/b&gt; Tim&amp;#8217;s demo, but actually accountchooser.com) failed. I didn&amp;#8217;t even try to do anything weird! This is obviously fixable, but not exactly inspiring of confidence for the future, given that they&amp;#8217;ve had well over a year to make this simple and primary integration work.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Browser independence matters&lt;/b&gt;: AccountChooser is premised on the idea that people can&amp;#8217;t remember anything, and the browser can remember everything for them. Despite having a work computer that&amp;#8217;s mine, a laptop that&amp;#8217;s mine, a phone that&amp;#8217;s mine, and a tablet that&amp;#8217;s mine, each of those devices sometimes is used for others&amp;#8217; logins (guests, friends with dead/forgotten phones, coworkers, etc). AccountChooser doesn&amp;#8217;t provide an easy path to temporary sign-in, and it demotes the user&amp;#8217;s own sense of agency when signing in. Which of my six accounts did I use to sign up to example.com? Not sure? The solution: sign in to each in turn with AccountChooser, because the computer has helped me forget.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;It&amp;#8217;s run by the OpenID Foundation&lt;/b&gt;: &lt;a href="http://accountchooser.com/"&gt;accountchooser.com&lt;/a&gt;, the necessary gatekeeper domain to make AccountChooser work, is run by the unaccountable, &lt;a href="http://openid.net/foundation/sponsoring-members/"&gt;corporate&lt;/a&gt;, &lt;a href="http://openid.net/foundation/leadership/"&gt;90% white, 90% male&lt;/a&gt; OpenID Foundation. There&amp;#8217;s no option to change this, and there&amp;#8217;s no story for why this is OK, or explanation for why it&amp;#8217;s not. By centralising identity in a single domain, AccountChooser effectively thwarts user choice, and does so by placing control in the hands of people and organisations who are not user-focused and whom I actively distrust. I&amp;#8217;ve made similar comments about Mozilla Persona, but at least I kind of trust the Mozilla foundation, and they have a story for how you don&amp;#8217;t need to be stuck trusting a single domain that they own.&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;There are ways to fix this; most of them involve being smart about discovery and making things easy for users without locking those users in to any one solution. I&amp;#8217;m trying a strategy that I think already works well at &lt;a href="https://poetica.com/"&gt;poetica.com&lt;/a&gt;, and I&amp;#8217;m still improving it. In fact, most of the issues I&amp;#8217;ve had are down to shoddy OpenID / OAuth implementations (and their implementors not listening to their customers).&lt;/p&gt;

&lt;p&gt;I remain doggedly hopeful that we can fix all these things.&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/EqC4yAc2e6I" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2012/12/account-chooser.html</feedburner:origLink></entry><entry><title type="html">Response</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/lPj8lrStB2c/response.html" /><updated>2012-04-12T00:40:00-07:00</updated><id>http://blaine.github.com/2012/04/response</id><content type="html">&lt;p&gt;&lt;img src="http://blaine.github.com/images/pixel.gif" style="width: 100%; height: 100%;" alt="Response" /&gt;&lt;/p&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/lPj8lrStB2c" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2012/04/response.html</feedburner:origLink></entry><entry><title type="html">Private Webhooks. Private Feeds.</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/WRM3twdFM9c/private-webhooks-private-feeds.html" /><updated>2011-03-27T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-6191786736227582502</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;This post is for people who want to be able to subscribe to private feeds, or people who want to be able to communicate from one site to another using webhooks. I&amp;#8217;ve talked a number of times on the subject at various conferences, but haven&amp;#8217;t posted publicly about the approach.&lt;/p&gt;

&lt;p&gt;Thankfully, it&amp;#8217;s simple. You can see the whole thing here, in this nice set of slides:&lt;/p&gt;

&lt;p&gt;
&lt;div style="text-align: center;"&gt;
&lt;object height="355" id="__sse7418803" width="425"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=simplifiedprivacy-over-http-and-webfinger-110328121921-phpapp02&amp;amp;stripped_title=social-privacy-for-http-over-webfinger&amp;amp;userName=Blaine"&gt;

&lt;param name="allowFullScreen" value="true"&gt;

&lt;param name="allowScriptAccess" value="always"&gt;

&lt;embed name="__sse7418803" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=simplifiedprivacy-over-http-and-webfinger-110328121921-phpapp02&amp;amp;stripped_title=social-privacy-for-http-over-webfinger&amp;amp;userName=Blaine" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;Or, you can look at this diagram that illustrates the protocol flow. Note that all the &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;curl&lt;/span&gt; commands needed to make a secure, private connection are included in the diagram.&lt;/p&gt;

&lt;p&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-WoUcRhNg2f8/TZC5t9cSLsI/AAAAAAAAAk4/grkquK4lcT4/s1600/wf-auth-rev-lookup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" src="http://3.bp.blogspot.com/-WoUcRhNg2f8/TZC5t9cSLsI/AAAAAAAAAk4/grkquK4lcT4/s320/wf-auth-rev-lookup.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;The goal is to allow crypto-less communication across sites while retaining a familiar user experience. This approach achieves that, I think. What do you think?
&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/WRM3twdFM9c" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2011/03/private-webhooks-private-feeds.html</feedburner:origLink></entry><entry><title type="html">Pipe Cleaners</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/irCnPfk4eAQ/pipe-cleaners.html" /><updated>2010-06-24T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-4401279889994559245</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;London&amp;#8217;s not a clean city, as anyone who&amp;#8217;s ever spent more than a day there knows very well. The black crap that builds up in your nose after a tube-heavy day is one of London&amp;#8217;s most striking features to the new visitor, and apparently &lt;a href="http://www.guardian.co.uk/environment/2010/jun/25/london-air-pollution-europe"&gt;it&amp;#8217;s not getting any better&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There&amp;#8217;s probably an opportunity here:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/lattice/4733742484/in/photostream/"&gt;&lt;img src="http://farm2.static.flickr.com/1058/4733742484_dbd5622a8f_z.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/irCnPfk4eAQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/06/pipe-cleaners.html</feedburner:origLink></entry><entry><title type="html">Paperback Web</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/0wzU25vqB5o/paperback-web.html" /><updated>2010-06-07T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-659340071028688620</id><content type="html">&lt;div class='post'&gt;
&lt;blockquote&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: small; line-height: 19px;"&gt;&amp;#8220;The only way to get authors and publishers to embrace this device is to sell 20,000,000 of them. You either become the best and only platform for consuming books worth buying or you fail. And the only way to create that footprint in the face of an iPad is to make it so cheap to buy and use it&amp;#8217;s irresistible.&amp;#8221; —&amp;nbsp;&lt;a href="http://sethgodin.typepad.com/seths_blog/2010/06/paperback-kindle.html"&gt;Seth Godin&lt;/a&gt;&lt;/span&gt;&lt;/blockquote&gt;
&amp;nbsp;This statement is total bollocks. If there&amp;#8217;s only going to be one best and only platform for consuming books, it&amp;#8217;s not going to be some chintzy app made by Apple or Amazon and without meaningful social features. If there&amp;#8217;s only going to be one best and only platform, it&amp;#8217;s not going to be a DRM solution, unless something&amp;#8217;s changed and DRM is now suddenly viable for books where it wasn&amp;#8217;t for movies and music.&lt;br /&gt;
&lt;br /&gt;
If there&amp;#8217;s going to be one best and only platform for consuming books, it&amp;#8217;s going to be the web. The reality is more complicated, of course, and we&amp;#8217;ll probably have as many platforms for reading books as we do types of paper. Those platforms will also have learned from the internet, unlike Seth&amp;#8217;s suggestions (which are good nonetheless).&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/0wzU25vqB5o" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/06/paperback-web.html</feedburner:origLink></entry><entry><title type="html">Beautiful Lines</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/u46g8ZjFy1s/beautiful-lines.html" /><updated>2010-06-06T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-4166814944780316693</id><content type="html">&lt;div class='post'&gt;
&lt;style type="text/css"&gt;
.tex, .latex, .tex sub, .latex sub {
  font-size: 1em;
}

.tex sub, .latex sub, .latex sup {
  text-transform: uppercase;
}

.latex sub, .tex sub {
  vertical-align: -0.25em;
  margin-left: -0.1667em;
  margin-right: -0.125em;
}

.latex sup {
  font-size: 0.85em;
  vertical-align: 0.15em;
  margin-left: -0.36em;
  margin-right: -0.15em;
}
&lt;/style&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update&lt;/strong&gt;: This was written just before the iPhone 4 came out, with Apple&amp;#8217;s new 326 ppi display. With screens that vary from 75 to 326 ppi (and no doubt, beyond), this stuff matters &lt;em&gt;now&lt;/em&gt;. Go and make your sites resolution independent. If you don&amp;#8217;t care about the critique of a designer&amp;#8217;s blog, scroll to the bottom to learn how to make your site look &lt;strong&gt;amazing&lt;/strong&gt; on all these very shiny new devices.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Typography on the web is ugly. Ragged-right is an abomination, a carry-over from when text rendering was done by Netscape Navigator on 486s with 16 MBs of RAM. Oliver Reichenstein writes at length about how Wired Magazine&amp;#8217;s typography &lt;a href="http://informationarchitects.jp/wired-on-ipad-just-like-a-paper-tiger/"&gt;looks terrible&lt;/a&gt; on the iPad, but his own design blog has some not-so-subtle typographic issues. I&amp;#8217;m going to quote Oliver by way of a screen shot:&lt;/p&gt;

&lt;a href="http://1.bp.blogspot.com/_i2TUAQRBEsQ/TAzO8vBNcXI/AAAAAAAAAjI/LTOO7lZ7IdM/s1600/Screen+shot+2010-06-07+at+11.49.48.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0"  src="http://1.bp.blogspot.com/_i2TUAQRBEsQ/TAzO8vBNcXI/AAAAAAAAAjI/LTOO7lZ7IdM/s320/Screen+shot+2010-06-07+at+11.49.48.png"  /&gt;&lt;/a&gt;

&lt;p&gt;
Oliver&amp;#8217;s lines are between 80 and 90 characters long, 50% longer than what he recommends here. While he has clear paragraph breaks, it&amp;#8217;s actually impossible to usably increase the font size on his site since everything is done with relative scales — a larger font means that the left gutter grows like a tumor, pushing the text off the right edge of the canvas, while the text container grows, too keeping the line lengths extra long.&lt;/p&gt;

&lt;p&gt;More problematically, the &lt;span style="font-family: sans-serif;"&gt;iA&lt;/span&gt; blog doesn&amp;#8217;t adapt to devices with different pixel densities. They have an &lt;a href="http://informationarchitects.jp/wp-content/themes/iA3/css/iphone.css"&gt;iPhone-specific stylesheet&lt;/a&gt;, but that only looks good for the portrait orientation — flip to landscape, and words-per-inch drops to about one or two. On the iPad, Apple&amp;#8217;s reasonably smart scaling saves them, but the margins are horrific:&lt;/p&gt;

&lt;a href="http://1.bp.blogspot.com/_i2TUAQRBEsQ/TAzUURgWIjI/AAAAAAAAAjM/Ys1W9XtrSps/s1600/photo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_i2TUAQRBEsQ/TAzUURgWIjI/AAAAAAAAAjM/Ys1W9XtrSps/s320/photo.jpg"  /&gt;&lt;/a&gt;

&lt;p&gt;
It&amp;#8217;s a little hard (but easier than it should be) to tell that the visual effect of the text running up against the iPad&amp;#8217;s right bezel is incredibly distracting, and unnecessary given all that white space to the left. Never mind the fact that the font size is too big on the iPad in landscape mode, and actually a little too small in portrait.&lt;/p&gt;

&lt;p&gt;I don&amp;#8217;t mean to harp on &lt;span style="font-family: sans-serif;"&gt;iA&lt;/span&gt; or Oliver — text across the web looks roughly like the visual art equivalent of MS Paint. Hell, this blog is using a fixed-width layout that looks terrible on low-resolution screens without the saving grace of content zoom. The &lt;span style="font-family: sans-serif;"&gt;iA&lt;/span&gt; site is better than most, but the work of &lt;a href="http://www-cs-faculty.stanford.edu/~uno/cm.html"&gt;Knuth&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Robert_Bringhurst"&gt;Bringhurst&lt;/a&gt; and so many others isn&amp;#8217;t being honoured.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;We can do better.&lt;/i&gt;
&lt;/p&gt;

&lt;p&gt;
It&amp;#8217;s not hard. The &lt;a href="http://www.w3.org/TR/css3-text/"&gt;tools&lt;/a&gt; we have available to us today are amazing. HTML rendering engines are wicked fast, support letter-spacing and word-spacing and all forms of justification and hyphenation and drop caps and indents, oh my! In the past year, we&amp;#8217;ve finally gained the ability to render custom fonts across browsers, basically bringing typography on the web up to &lt;span class="latex"&gt;L&lt;sup&gt;a&lt;/sup&gt;T&lt;sub&gt;e&lt;/sub&gt;X&lt;/span&gt; or Microsoft Word standards. Ahem.&lt;/p&gt;

&lt;p&gt;A simple extraction of some of the work I&amp;#8217;ve been doing with &lt;a href="http://github.com/blaine/republish/"&gt;rePublish&lt;/a&gt;, here&amp;#8217;s an unobtrusive approach to presenting properly sized text for any reading device that might happen upon your carefully written text. Don&amp;#8217;t worry about your layout;&amp;nbsp;Any approach is fine, whether fluid or fixed, grid or not. It&amp;#8217;s the job of this approach to work around your constraints, making your text more readable and lovely.&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;First&lt;/strong&gt;, if you&amp;#8217;re not already, drop everything and &lt;strong&gt;size all your text in ems&lt;/strong&gt;. Your text should be 1.0 em, everything else in ems as appropriate.&lt;/p&gt;

&lt;code&gt;&lt;pre&gt;* { font-size: 1.0em }
h1 { font-size: 1.5em }
small { font-size: 0.75em }&lt;/pre&gt;
&lt;/code&gt;

&lt;p&gt;
The strategy from here is to determine how big the text needs to be (at 1.0 em) in order to fill a given text with a desired number of characters. In the &amp;#8220;olden days&amp;#8221;, this was done with rulers and text sizing charts. In the modern era, we&amp;#8217;re going to do exactly the same thing, except that we&amp;#8217;ll build our text sizing chart every time we want to display text.&lt;/p&gt;

&lt;p&gt;To do this, we take a string that will give us the average number of characters per pixel. A lower-case alphabet will do, but a closer approximation takes the letter frequency into account: &amp;#8220;aaaaaaaa­bb­ccc­dddd­eeeeeeeeeeeee­ff­gg­hhhhhh­iiiiiii­jk­llll­mm­nnnnnnn­oooooooo­pp­q­rrrrrr­ssssss­ttttttttt­uuu­v­w­x­yyz&amp;#8221;. Next, we&amp;#8217;ll measure how many pixels wide that string is in the default font size:&lt;/p&gt;
&lt;code&gt;&lt;pre&gt;var sizer = document.createElement('p');
sizer.style.cssText = 'margin: 0;
                       padding: 0;
                       color: transparent;
                       background-color: transparent;
                       position: absolute;';
var letters = 'aaaaaaaabbccc
               ddddeeeeeeeeeeeee
               ffgghhhhhhiiiiiiijkllll
               mmnnnnnnnooooooooppq
               rrrrrrssssssttttttttt
               uuuvwxyyz';
sizer.textContent = letters;
document.body.appendChild(sizer);
var characterWidth = sizer.offsetWidth / letters.length;
&lt;/pre&gt;
&lt;/code&gt;

&lt;p&gt;
The characterWidth variable is an approximate measure of the per-character width in pixels for the default font size.&lt;/p&gt;

&lt;p&gt;
Next, we need to know how much horizontal space we need to fill. Get out your rulers, and let&amp;#8217;s start measuring! The specifics here will vary for every design, but the approach is always the same. First, find the space in which the main body text lives and get its width in pixels:
&lt;/p&gt;
&lt;code&gt;&lt;pre&gt;
var contentWidth = document.getElementById('content').offsetWidth;
&lt;/pre&gt;&lt;/code&gt;
&lt;p&gt;Now we can find out how many characters long our lines are by dividing contentWidth by characterWidth to obtain actualMeasure. Dividing that by our ideal number of characters per line gives us the relative factor by which we need to scale the default font size. For example, if our target is 66 characters per line, but the current font size produces 85 characters per line, then we need to scale up the font size by 85/66 or 129%.&lt;/p&gt;

&lt;p&gt;In order to do the last step, we obtain the current body font size like so:&lt;/p&gt;

&lt;code&gt;&lt;pre&gt;
var mea­sured­Font­Size = parse­Float(
                         doc­u­ment.de­fault­View.
                                  get­Com­put­ed­Style(doc­u­ment.​body, null).
                                  get­Prop­er­ty­Val­ue('font-size').
                                  re­place('px', '') );
&lt;/pre&gt;&lt;/code&gt;

&lt;p&gt;And putting it all together, we find our desired base font size with the following formula: desiredFontSize = measuredFontSize x actualMeasure / targetMeasure. Armed with that knowledge, we can circle back around and update the base font size:&lt;/p&gt;

&lt;code&gt;&lt;pre&gt;
var actualMeasure = contentWidth / characterWidth;
var targetMeasure = 66;
document.body.style.fontSize = 
               (measuredFontSize * 
                actualMeasure / targetMeasure) +
               "px";
&lt;/pre&gt;&lt;/code&gt;

&lt;p&gt;
That&amp;#8217;s it! No matter what device your visitors are using, they&amp;#8217;ll have an easy time reading your carefully written text. Add hyphenation using the unobtrusive (and fast) &lt;a href="http://code.google.com/p/hyphenator/"&gt;Hyphenator.js&lt;/a&gt;, turn on justification, and you&amp;#8217;re publishing texts that have the same careful and consistent rendering exhibited by virtually every paper book published today.&lt;/p&gt;
&lt;p&gt;
To round out the approach, it&amp;#8217;s absolutely possible and desirable to set maximum and minimum font sizes. Large, high density displays may produce oversized fonts if the content area is flexible, and constrained devices will favour very small fonts. For small displays, this is enough since displaying less text on a small display just makes sense.&lt;/p&gt;
&lt;p&gt;
For larger displays, displaying smaller-than-ideal text will leave more white space or leave more characters per line, which may or may not be acceptable. If it isn&amp;#8217;t, there are a number of options; moving to columns might be a good one — this is what newspapers do, to good effect. A 30&amp;#8221; high pixel density screen isn&amp;#8217;t that far off a broad-sheet newspaper, and a series of columns is a far more appealing idea than a website that forces me to scroll down to continue reading a tower of text.&lt;/p&gt;
&lt;p&gt;
The simpler option would be to use relative sizes for the content container, sizing in ems rather than pixels, and guaranteeing that your content can reach the ideal number of characters per line. For this to work, you need to key the font size off the available pixels or the device&amp;#8217;s native resolution, rather than the area into which you&amp;#8217;re sizing text. This blog uses a fixed pixel design, and I&amp;#8217;m not currently in a position to rework the design at the moment, but this latter approach is the one that I&amp;#8217;d use in the future, and is in effect the technique I use in rePublish to ensure that the text is properly sized regardless of device resolution.&lt;/p&gt;
&lt;p&gt;
The code to do all this is posted here: &lt;a href="https://gist.github.com/428898/e882078f10a06e55fa905a89a6ae65f30331746a"&gt;https://gist.github.com/428898/e882078f10a06e55fa905a89a6ae65f30331746a&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To use it in your site, just paste it into script tags in your template and call it from your onload handler.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m releasing it into the public domain, so please modify to suit and share with anyone and everyone. If you create a plugin for jQuery or any other JavaScript framework, please leave a comment here so others can find it.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/u46g8ZjFy1s" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/06/beautiful-lines.html</feedburner:origLink></entry><entry><title type="html">A Comment, Republished Here for Posterity</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/df3G58P09DQ/a-comment-republished-here-for-posterity.html" /><updated>2010-05-13T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-8198514579416951189</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;&lt;tt&gt;In-Reply-To:&lt;/tt&gt; &lt;a href="http://netmesh.info/jernst/digital_identity/lets-implement-the-open-pile-itll-be-great"&gt;Let’s Implement the Open Pile! It’ll Be Great!&lt;/a&gt; by &lt;a href="http://twitter.com/Johannes_Ernst"&gt;Johannes Ernst&lt;/a&gt;.

&lt;p&gt;You’re absolutely right. Try, as a new commenter, to leave a comment on your blog. Seriously. It’s horrendous. Here’s my approach:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 1&lt;/b&gt;: First, I saw the WordPress logo. So I tried to enter my WordPress username and password. Oops, I guess I shouldn’t have told you that, since now you can dig into your logs and pretend to be me on WordPress.com hosted blogs. When that didn’t work, I thought, well, maybe I’ve forgotten my login info. So, I tried a few other options, none of which worked. I guess you could probably log into a few more sites as me now, assuming you’ve been keeping careful logs&amp;#8230;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 2&lt;/b&gt;: Giving up on the username / password option, but not wanting to go through the login dance for what was now clearly “just your blog,” I tried to use my OpenID login, for which Google has chosen a not-totally-unreasonable URL: &lt;tt&gt;http://google.com/profiles/romeda&lt;/tt&gt; - but, of course, that didn’t work. So I tried again, this time using my experience as a web developer to change the URL to &lt;tt&gt;http://www.google.com/profiles/romeda&lt;/tt&gt;, just in case &lt;tt&gt;http://www.google.com&lt;/tt&gt; was returning something more useful than &lt;tt&gt;google.com&lt;/tt&gt;, or in case your OpenID library wasn’t following a redirect or something. &lt;em&gt;Fail&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 3&lt;/b&gt;: Now, since I *really* wanted to leave a comment on your blog, I clicked the dreaded &amp;lsquo;register&amp;rsquo; button. And, to my delight, I saw that it wanted a username and an email address. Right, because I’m going to remember my username for the WordPress install at &lt;tt&gt;netmesh.info/jernst&lt;/tt&gt;. Ha! Thankfully, I got my first choice. I guess the kids haven’t started lining up around the block&amp;#8230;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 4&lt;/b&gt;: Being a good piece of software, WordPress did not ask for my password. So, off I go to my inbox to retrieve the password, which thankfully is sitting right there. It’s a horrendous mess (&amp;lsquo;&lt;tt&gt;*QOj9rc8D$%X&lt;/tt&gt;&amp;rsquo; fwiw) and Chrome doesn’t like the idea of neatly selecting it, because it’s not really a word, y’know? I manage nevertheless, and go back to the other tab (whatever did we do before tabs?!).&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 5&lt;/b&gt;: Now I enter my password, eager to make my blog post. Click enter, and *bam*, I’m pushed face-first into my brand-new netmesh.info/jernst WordPress profile page. W00t!&lt;/p&gt;

&lt;p&gt;Wait.&lt;/p&gt;

&lt;p&gt;Oh, right. I was trying to make a blog post.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Act 6&lt;/b&gt;: So, back I go to netmesh.info to find the post that I wanted to comment on. No, wait, wrong page. Rewind. Back I got to netmesh.info/jernst to find the post that I wanted to comment on. The post footer says I’m logged in as romeda (oh, wait, I guess I didn’t get my first choice - why did I use &amp;lsquo;romeda&amp;rsquo; instead of &amp;lsquo;blaine&amp;rsquo;? D’Oh!), so I click on the textarea, and away I go!&lt;/p&gt;

&lt;p&gt;Now, Umm, What was I going to say?&lt;/p&gt;

&lt;p&gt;Oh, yeah:&lt;/p&gt;

&lt;p&gt;Facebook Connect is the best experience for both parties, because chances are the commenter has a Facebook account (and if they don’t, do you really want to hear from them?) so that’s good for the site, and it’s really just one click on that pretty blue Facebook Connect button and then one click to approve the connection (nevermind the privacy implications, pshaw), so that’s great for the user.&lt;/p&gt;

&lt;p&gt;But that only works if you trust Facebook. You Dumb Fuck.&lt;/p&gt;

&lt;p&gt;So, if you’re like me, and try not to be a Dumb Fuck, you should just skip all the bullshit and use email addresses. That do automagical discovery, thanks to Webfinger. Which is a shitty name, but do you have a better idea? (no really, if you do, PLEASE tell me) Tantek’s called it RelMeAuth; I think we should forgo HTTP URLs altogether for this, simplify, simplify, simplify, and just use email addresses. Whatever happens under the covers doesn’t fucking matter one iota. You start from the user experience and then, as web developers, we make it work. Period.&lt;/p&gt;

&lt;p&gt;So to say it again, you’re absolutely right. The Open Pile is a totally useless heap of marketing buzzwords. The only thing that matters is user experience (well, the experience of developers building this stuff matters, too, but it’s a secondary concern. We wouldn’t be in this business if we didn’t enjoy at least a little pain). Except that the Open Pile has some real gems in it, and I very much look forward to mining for them with you next week [at the &lt;a href="http://iiw.idcommons.net/Main_Page"&gt;IIW&lt;/a&gt;]!&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/df3G58P09DQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/05/a-comment-republished-here-for-posterity.html</feedburner:origLink></entry><entry><title type="html">Facebook Is My New Boatcar</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/YWA_H1GLHwM/facebook-is-my-new-boatcar.html" /><updated>2010-05-12T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-7181195570614443921</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;
Facebook&amp;#8217;s &lt;a href="http://mattmckeon.com/facebook-privacy/"&gt;relentless drive away from privacy&lt;/a&gt; has garnered a lot of attention lately. For those of us who have been working towards building decentralised networks for some time now, the attention heaped upon &lt;a href="http://joindiaspora.com/"&gt;Diaspora&lt;/a&gt; comes as no surprise. They&amp;#8217;ve done a fantastic job raising the need for open alternatives to Facebook.
&lt;/p&gt;

&lt;p&gt;
Matt Asay&amp;#8217;s post yesterday, &lt;em&gt;&lt;a href="http://news.cnet.com/8301-13505_3-20004785-16.html?tag=mncol;title"&gt;Facebook has problems, Diaspora isn&amp;#8217;t one of them&lt;/a&gt;&lt;/em&gt;, argues that being free and open isn&amp;#8217;t enough. The end-user experience of social networks is what matters, he says. Because a great user experience isn&amp;#8217;t at Diaspora&amp;#8217;s heart, it&amp;#8217;s doomed to fail. His argument is persuasive and, as anyone who&amp;#8217;s ever built a user-facing application knows, it&amp;#8217;s absolutely correct.
&lt;/p&gt;

&lt;p&gt;
Here&amp;#8217;s the thing: while Diaspora&amp;#8217;s aim is freedom, that doesn&amp;#8217;t mean that open alternatives to Facebook are all prioritising the same thing. The biggest challenge that Facebook is facing, above privacy, above the threat of falling out of fashion, above up-and-coming competition from Twitter or Foursquare or that-social-network-you&amp;#8217;ve-never-heard-of, is this:&lt;/p&gt;

&lt;blockquote&gt;&lt;strong&gt;Facebook is building a Boat-Car.&lt;/strong&gt;&lt;/blockquote&gt;

&lt;div style="text-align: center"&gt;
&lt;a href="http://www.flickr.com/photos/afagen/2953980387/"&gt;&lt;img src="http://farm4.static.flickr.com/3141/2953980387_1e85c15a71.jpg" alt="A Ducky Tours Boat Car"/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;Boat-cars &lt;em&gt;seem&lt;/em&gt; seem like a pretty awesome idea, but the fundamental challenge of combining a sealed hull with external wheels means that boat-cars will never be able to match the performance or aesthetics of cars or boats. Pursuing the entire social market, Facebook has attempted to adapt itself to every new feature of the social web. They started out as a Friendster-alike that emphasised intentional communities, and did it well, providing elegant social utilities to university students. But since then, they&amp;#8217;ve systematically bolted on features in an attempt to build a vehicle that does everything that Flickr, Twitter, Foursquare, Email and IM do, to name a few examples.  Increasingly, they&amp;#8217;re trying to become a framework for the web in general so that everything a web user does is done through Facebook. Instead of offering a carefully constructed vehicle that offers amazing social experiences, they have a created a clumsy boat-car that can never truly compete with more focused sites.
&lt;/p&gt;

&lt;p&gt;
What Facebook does have, fundamentally, is the social graph. Where Flickr has a careful treatment of photo sharing, Facebook has photo sharing built on an expansive substrate of communities. Where Twitter has an insane ability to capture and amplify the low-level hum of human communication, Facebook has an insane ability to execute at scale unlike anyone since Google. Where Google has an intimate understanding of the flows of data on the web, Facebook has an intimate understanding of how to keep their users engaged. Most importantly, Facebook has hundreds of millions of users, and the &lt;a href="http://en.wikipedia.org/wiki/Network_effect"&gt;network effects&lt;/a&gt; are in full force.
&lt;/p&gt;

&lt;p&gt;
While no one will ever be able to overcome Facebook&amp;#8217;s advantage &lt;em&gt;on Facebook&amp;#8217;s terms&lt;/em&gt;, just as no one was able to defeat Microsoft &lt;em&gt;on Microsoft&amp;#8217;s terms&lt;/em&gt;, it&amp;#8217;s downright easy to create better social experiences than Facebook&amp;#8217;s. It&amp;#8217;s easy to create better tools than Facebook&amp;#8217;s. It&amp;#8217;s also easy to imagine a better social environment than theirs. Logging into Facebook is for me like walking into a room where everyone I&amp;#8217;ve ever met is standing around, talking to each-other. My bosses, my family, friends old and new, co-workers, acquaintances, everyone! It&amp;#8217;s like attending a nightmare wedding in hell.
&lt;/p&gt;

&lt;div style="text-align: center"&gt;&lt;a href="http://www.flickr.com/photos/pagedooley/3556739684/"&gt;&lt;img src="http://farm4.static.flickr.com/3395/3556739684_0527623301.jpg" alt="Social Anxiety" /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;
The challenge isn&amp;#8217;t social network portability; I regularly fly all the way around the world just to reconfigure my social network and have different conversations than the ones I normally have. I&amp;#8217;ll gladly log into a different site if it means I can see just work-related conversations, or just family photos. The challenge is that the only viable place for those activities today is Facebook. Their network effects are of so much larger a magnitude than anyone else&amp;#8217;s that creating a new social site without leveraging &lt;em&gt;Facebook&amp;#8217;s&lt;/em&gt; network is a downright crazy idea. Therein lies Facebook&amp;#8217;s weakness, and the weakness of every dominant but &amp;#8220;closed&amp;#8221; network.
&lt;/p&gt;

&lt;p&gt;
This is where open, decentralised alternatives come in. Instead of relying on Facebook&amp;#8217;s social graph, social web tools can be built on top of the one true social network: &lt;em&gt;everyone&lt;/em&gt;. Instead of building boat-cars &amp;#8212; ugly tools that try to do too much &amp;#8212; developers could focus on building the best photo sharing site in the world, or the best recipe sharing site, or the best book sharing site. In this world, if someone wants to come along and compete, they do so &lt;em&gt;on features and execution&lt;/em&gt;, without first having to steal away all the users from the site that got there first. We&amp;#8217;d end up with &lt;em&gt;better&lt;/em&gt; experiences and tools instead of just &lt;em&gt;dominant&lt;/em&gt; ones.
&lt;/p&gt;

&lt;div style="text-align: center"&gt;&lt;a href="http://www.flickr.com/photos/7447470@N06/3750554466/in/photostream/"&gt;&lt;img src="http://farm3.static.flickr.com/2545/3750554466_5e231448de.jpg" alt="Sailboat Regatta"&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;
Facebook&amp;#8217;s tools might be the very best for right now, but it&amp;#8217;s frankly ridiculous to think that Facebook will be able to provide either the tools or even the infrastructure for the next five or ten or twenty years of development of the web. The job of serious web developers today is to ignore the siren call of Facebook, Twitter, Apple, Adobe, or any other comers that would define the parameters of the web for them, and instead build the best experiences possible. If you protest, and say that Facebook allows you to connect your users with each-other more easily than any alternative, ask yourself if Facebook&amp;#8217;s interface is the best you can imagine, or if you feel closely connected to &lt;em&gt;your&lt;/em&gt; network on Facebook (or Twitter, or any &amp;#8220;platform&amp;#8221; provider), or if &lt;em&gt;your&lt;/em&gt; network on Facebook represents &lt;em&gt;all&lt;/em&gt; of your social interactions. If the answer isn&amp;#8217;t &lt;em&gt;emphatically&lt;/em&gt; &lt;strong&gt;YES!&lt;/strong&gt;, then it&amp;#8217;s worth your while to consider the alternatives.
&lt;/p&gt;

&lt;p&gt;
Hell, if you work at Facebook and you can&amp;#8217;t emphatically answer yes to those questions, then it&amp;#8217;s worth your while to consider the alternatives. After all, if you can&amp;#8217;t beat &amp;#8216;em, join &amp;#8216;em. And trust me, &lt;a href="http://benward.me/blog/understand-the-web"&gt;you can&amp;#8217;t beat the web&lt;/a&gt;, because in the long term, the web isn&amp;#8217;t subject to anti-trust suits, doesn&amp;#8217;t have financial constraints, and can keep evolving until something works.
&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/YWA_H1GLHwM" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/05/facebook-is-my-new-boatcar.html</feedburner:origLink></entry><entry><title type="html">Three simple things that browser developers can do today to make HTML5 Apps real.</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/wak6mKcyu3U/three-simple-things-that-browser-developers-can-do-today-to-make-html5-apps-real.html" /><updated>2010-05-06T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-5885050209964565690</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;I&amp;#8217;ve had this draft sitting around for a while now, but prompted by &lt;a href="http://www.tbray.org/ongoing/When/201x/2010/05/05/HTML5-and-the-Web"&gt;Tim&lt;/a&gt;&amp;#8217;s and &lt;a href="http://benward.me/blog/understand-the-web"&gt;Ben&lt;/a&gt;&amp;#8217;s posts on HTML5 and the web as pertains rich applications and such, herewith some thoughts based on fighting with &lt;a href="http://www.quirksmode.org/blog/archives/2010/03/html5_apps.html"&gt;HTML5 Apps&lt;/a&gt; in the context of &lt;a href="http://romeda.org/rePublish"&gt;rePublish&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;Cross Domain, Already&lt;/h2&gt;

&lt;p&gt;The largest barrier to HTML5 as a viable platform is cross-domain AJAX. Full stop. If you think I&amp;#8217;m wrong or just whining and that I should just use JSONP or CORS, go try building any of the following without relying upon a server-side component and all the privacy, cost, and maintenance issues that such a beast entails:

&lt;ul&gt;
&lt;li&gt;A .doc editor.&lt;/li&gt;
&lt;li&gt;An ePub reader.&lt;/li&gt;
&lt;li&gt;An image editor.&lt;/li&gt;
&lt;li&gt;A multi-protocol IM client.&lt;/li&gt;
&lt;li&gt;A P2P client.&lt;/li&gt;
&lt;/ul&gt;

The short answer: you can&amp;#8217;t do it. Yes, there are &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html"&gt;HTML5 Offline Apps&lt;/a&gt; which &lt;em&gt;helps&lt;/em&gt; in that apps can work offline until they can sync to a server, but it&amp;#8217;s not a complete answer. Solutions exist (&lt;a href="http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Web_Runtime/"&gt;WRT&lt;/a&gt;, &lt;a href="http://www.w3.org/TR/widgets-reqs/"&gt;Widgets&lt;/a&gt;, etc) but they&amp;#8217;re for &lt;em&gt;widgets&lt;/em&gt;, not &lt;em&gt;apps&lt;/em&gt;, and in any event they&amp;#8217;re not a single-serving approach. You still need to repackage your app for each new runtime environment.&lt;/p&gt;

&lt;p&gt;If we&amp;#8217;re going to build &lt;em&gt;applications&lt;/em&gt; that read &lt;em&gt;documents&lt;/em&gt; in HTML5, we need cross-domain requests. &lt;a href="http://en.wikipedia.org/wiki/JSON#JSONP"&gt;JSONP&lt;/a&gt; doesn&amp;#8217;t cut it. &lt;a href="http://www.w3.org/TR/cors/"&gt;CORS&lt;/a&gt; doesn&amp;#8217;t cut it. Downloadable applications don&amp;#8217;t need CORS headers in order to make HTML requests; why should installable HTML5 Apps be subject to this crippling restriction, based fundamentally in a stupid policy decision around cookies?&lt;/p&gt;

&lt;p&gt;With the advent of the &lt;a href="https://developer.mozilla.org/en/Using_files_from_web_applications"&gt;FileAPI&lt;/a&gt;, client-side development can finally read local files (though not directories or recursive paths). So there&amp;#8217;s that.&lt;/p&gt;

&lt;h2&gt;Web Protocol Handlers&lt;/h2&gt;

&lt;p&gt;Once upon a time, when faced with a link like this one: &lt;tt&gt;&lt;a href="mailto:riley@example.com"&gt;mailto:riley@example.com&lt;/a&gt;&lt;/tt&gt;, the operating system or browser would do the right thing, which is to look up the application that the user has chosen to handle &lt;tt&gt;mailto&lt;/tt&gt; URIs in a system registry, launch it, and create a new message addressed to &lt;tt&gt;riley@example.com&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Email links don&amp;#8217;t work for me across all the browsers I use, because there aren&amp;#8217;t hooks to tell browsers (or the OS) to use a &lt;em&gt;web URL&lt;/em&gt; as the handler instead of some application in my path. This is stupid, and based entirely in technology decisions made over twenty years ago. Thinking about the future, for example, wouldn&amp;#8217;t it be awesome if Delicious or Digg could register a &amp;#8221;&lt;tt&gt;share&lt;/tt&gt;&amp;#8221; protocol handler, so that instead of having a horrible NASCAR mess of social sharing links, we could have our browser fill in the blanks with the site we use &amp;#8212; &amp;#8220;share this using your preferred tool&amp;#8221; rather than &amp;#8220;share this with any of these tools you&amp;#8217;ve never heard of.&amp;#8221;&lt;/p&gt;&lt;/p&gt;

&lt;h2&gt;&amp;#8230; and Content-Type Handlers&lt;/h2&gt;

&lt;p&gt;Likewise, when clicking a link like this one: &lt;tt&gt;&lt;a href="http://example.com/zipfile.zip"&gt;http://example.com/zipfile.zip&lt;/a&gt;&lt;/tt&gt;, the browser would check the &lt;tt&gt;Content-Type&lt;/tt&gt; header for a mime-type (in this case &lt;tt&gt;application/zip&lt;/tt&gt;), look up the application designated to handle &lt;tt&gt;application/zip&lt;/tt&gt; files, and launch it with the file in question as an argument.&lt;/p&gt; 

&lt;p&gt;There&amp;#8217;s a &lt;a href="http://www.w3.org/TR/html5/webappapis.html#dom-navigator-registerprotocolhandler"&gt;W3C&lt;/a&gt; / &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#custom-handlers"&gt;WhatWG&lt;/a&gt; proposal based on a feature added in Firefox 3 to add both protocol and content-type handlers that can be fielded by HTML5 Apps, but all you get at the other end is a URL - there&amp;#8217;s explicitly no way for your HTML5 app to do anything with the URL, because of cross domain restrictions.&lt;/p&gt;

&lt;p&gt;Sure, you can refer your app to your server component or build a &amp;#8220;native app&amp;#8221; for every OS to which you&amp;#8217;d like to deploy, but there are a whole bunch of issues that arise if you&amp;#8217;re not trying to lay your dirty hands on every bit of your users&amp;#8217; UGC. Privacy, performance, UX, policy, bandwidth, costs; these are all non-trivial factors that are much easier to deal with in the context of client-side applications than they are in the context of a vendor-owned website.&lt;/p&gt;

&lt;h2&gt;So, Browser Developers&lt;/h2&gt;

&lt;p&gt;This is the era of platform independent client-side web apps, right? Applications that are web-native, weaving and linking and knitting the strands of information and communication together, doing so using the underlying technology of the web. Cocoa apps can&amp;#8217;t carefully represent the sorts of information flows that happen on the web, nor can Windows apps or any traditional desktop app. The conceptual advantage that working in HTML and Javascript has over so-called &amp;#8220;native&amp;#8221; code is immense.&lt;/p&gt;

&lt;p&gt;But, we need tools to build these things. CSS Animations are great, Canvas is amazing, but how about some low-level tools? Mobile Safari already has the &amp;#8220;add to home screen&amp;#8221; button, why not add something similar to the desktop browsers? &amp;#8220;Install this [web] application [with extra permissions]&amp;#8221; would be an amazing boost for the web, fill in missing pieces in Tim O&amp;#8217;Reilly&amp;#8217;s Internet Operating System, and give us some real alternatives to the multifarious app stores that lurk in every corner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;tl;dr&lt;/strong&gt;: HTML5 Apps need &lt;strong&gt;cross-domain requests&lt;/strong&gt;, &lt;strong&gt;protocol handlers&lt;/strong&gt; and &lt;strong&gt;content-type handlers&lt;/strong&gt; in order to be &lt;strong&gt;first-class citizens&lt;/strong&gt;. Browser developers &lt;em&gt;can&lt;/em&gt; and &lt;em&gt;should&lt;/em&gt; make this happen, sooner than later.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/wak6mKcyu3U" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/05/three-simple-things-that-browser-developers-can-do-today-to-make-html5-apps-real.html</feedburner:origLink></entry><entry><title type="html">Identity</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/76-TiuGzQio/identity.html" /><updated>2010-04-25T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-912250231816689116</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;The web is facing a serious identity crisis. Many have written about it but, having thought a lot about this problem over the past few years, I can&amp;#8217;t help but feel that something important has been missed in most discussions.&lt;/p&gt;

&lt;p&gt;Aza Raskin &lt;a href="http://www.azarask.in/blog/post/identity-in-the-browser-firefox/"&gt;cuts to the heart&lt;/a&gt; of the matter:&lt;/p&gt;

&lt;blockquote&gt;&lt;strong&gt;&amp;ldquo;Your identity is too important to be owned by any one company.&lt;br/&gt;
Your friends are too important to be owned by any one company.&amp;rdquo;&lt;/strong&gt;&lt;/blockquote&gt;

&lt;p&gt;I&amp;#8217;ll go one step further, and say that &lt;strong&gt;the centralisation of identity is stifling innovation on the web&lt;/strong&gt;. &lt;a href="http://laughingmeme.org/2010/04/25/sunday-morning-thoughts-facebook-graph-api-and-open-graph/"&gt;Kellan recounts&lt;/a&gt; a quote from a friend, on the subject of Facebook&amp;#8217;s f8 announcements: &amp;ldquo;Well, [Facebook] gave Foursquare a 6 month reprieve.&amp;rdquo; This is not a hopeful view.&lt;/p&gt;

&lt;p&gt;So what&amp;#8217;s the alternative? What&amp;#8217;s missing from the conversation? I think it&amp;#8217;s important to take a view from the perspective of usability; &lt;em&gt;how are &lt;strong&gt;we&lt;/strong&gt; going to &lt;strong&gt;use&lt;/strong&gt; this new conception of identity&lt;/em&gt;? The answer is simple: exactly as we do today. The fundamentals of social networking haven&amp;#8217;t changed from day one. There&amp;#8217;s a website, you log on, and you add friends so that you can share content with them. This basic model applies to every successful social internet technology, from email to IM to Friendster to Facebook to FourSquare.&lt;/p&gt;

&lt;h2&gt;Logging On&lt;/h2&gt;

&lt;p&gt;Logging on is easy. Whether it&amp;#8217;s a password, OpenID, @anywhere, Firefox Contacts, or Facebook Connect, the principle remains the same: the user proves to their server that they are a particular individual. In that sense, any protocols or approaches beyond username and password are just icing on the cake. They&amp;#8217;re ways to make logging in &lt;em&gt;easier&lt;/em&gt;, to increase conversion rates (at least, in theory), but they don&amp;#8217;t fundamentally change what we can do on the web.&lt;/p&gt;

&lt;p&gt;So once we&amp;#8217;ve logged on, how do we add friends?&lt;/p&gt;

&lt;h2&gt;Adding Friends&lt;/h2&gt;

&lt;p&gt;This is the part that&amp;#8217;s missing from the conversation. How does it work today? Well, you have two options: either you find someone&amp;#8217;s profile page and click &amp;#8220;add&amp;#8221; (which doesn&amp;#8217;t work across sites, or if you can&amp;#8217;t find your friend&amp;#8217;s profile page), or you find other users on the site by entering their email address. Often the latter approach is achieved by the site opening up your email address book and looking for friends in bulk, but fundamentally it boils down to &amp;#8220;Find email address of friend, search users database for that email address, add friend.&amp;#8221;&lt;/p&gt;

&lt;p&gt;OpenID doesn&amp;#8217;t help, because I don&amp;#8217;t even know my OpenID URL, let alone my &lt;em&gt;friends&amp;#8217;&lt;/em&gt; OpenID URLs. The &amp;#8220;ID&amp;#8221; in OpenID is a bit of a misnomer. OAuth doesn&amp;#8217;t help – Twitter and Facebook use OAuth under the covers for @anywhere and Facebook Connect, but that only helps me, the site using @anywhere/FB Connect, and Twitter and/or Facebook themselves. It also doesn&amp;#8217;t help us get away from Aza&amp;#8217;s point, that your identity remains in the hands of a single company.&lt;/p&gt;

&lt;p&gt;The solution, as &lt;a href="http://twitter.com/blaine/status/12762632425"&gt;I said&lt;/a&gt; to &lt;a href="http://twitter.com/timoreilly/status/12760857499"&gt;Tim O&amp;#8217;Reilly&lt;/a&gt;, is Webfinger. Indeed, webfinger was born out of struggling with exactly this problem of representing multi-faceted identity on the web in a way that can&amp;#8217;t be controlled by any one company. The approach is essentially to invert the currently-closed user databases, and put social network affiliation in the hands of the users, &lt;em&gt;in our hands&lt;/em&gt;, all while keeping the &lt;em&gt;user experience&lt;/em&gt; the same as with current and past social software.&lt;/p&gt;

&lt;p&gt;I won&amp;#8217;t go into the technical details here, but in essence the workflow from a site builder&amp;#8217;s perspective looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Kate (kate@inktopaper.com) meets Fiona (fiona_z_342@gmail.com) at &lt;a href="http://www.comic-con.org/ape/"&gt;APE&lt;/a&gt;, and the two exchange email (re: webfinger) addresses.&lt;/li&gt;
&lt;li&gt;Kate wants to stay in touch with Fiona, so she logs on to her social network of choice (&amp;#8220;ZineSpace&amp;#8221;), and enters Fiona&amp;#8217;s address.&lt;br/&gt;
&lt;img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 400px; height: 256px;" src="http://romeda.org/blog/uploaded_images/sketchr-765107.png" border="0" alt="" /&gt;&lt;/li&gt;
&lt;li&gt;ZineSpace supports photos, microblogging, and calendaring, and discovers via a webfinger lookup that Fiona has a photostream at Sketchr, tweets at identi.ca, but doesn&amp;#8217;t share a calendar. ZineSpace uses PubSubHubbub to send subscribe requests to Sketchr and identi.ca on behalf of kate@inktopaper.com.&lt;/li&gt;
&lt;li&gt;Sketchr and identi.ca look up Kate&amp;#8217;s webfinger profile, and use her published photo to show the incoming friend/follow request to Fiona.&lt;br/&gt;&lt;img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 400px; height: 206px;" src="http://romeda.org/blog/uploaded_images/zinespace-765056.png" border="0" alt="" /&gt;&lt;/li&gt;
&lt;li&gt;Fiona uses her identi.ca microblog for work, so she declines that invitation, but approves the friend request on Sketchr, and  adds Kate as a friend (asymmetric follow) on Sketchr.&lt;/li&gt;
&lt;li&gt;Even though she declined the identi.ca request, Fiona wants to keep up with Kate&amp;#8217;s life, and has a personal Tweetter account that&amp;#8217;s not published on her public webfinger profile. She logs in there and adds fiona_z_342@gmail.com as a friend.&lt;/li&gt;
&lt;li&gt;Tweetter sends a subscribe request to ZineSpace (discovered via the webfinger profile) on behalf of kate@inktopaper.com. ZineSpace knows that Fiona wants to see Kate&amp;#8217;s microblog posts, so auto-approves the request and sends a reverse-follow request (which is again automatically approved).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, five things are important to keep in mind when thinking about this process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Shareable Addresses&lt;/strong&gt; are what make this exchange possible. Kate and Fiona can&amp;#8217;t be reasonably expected to remember all of their various profile URLs, nor can they be expected to remember &lt;em&gt;each other&amp;#8217;s&lt;/em&gt; profile URLs. Their webfinger addresses act as mnemonics for their &lt;strong&gt;distributed identities&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Webfinger is just a discovery mechanism. &lt;strong&gt;HTTP remains the transport mechanism&lt;/strong&gt; for this approach, which means that everyone can participate.&lt;/li&gt;
&lt;li&gt;We &lt;strong&gt;have not exposed any personal information&lt;/strong&gt; about Kate or Fiona, and more importantly, we haven&amp;#8217;t exposed any information about Kate or Fiona&amp;#8217;s relationships. They can do that if they wish (e.g., by linking to a FoAF or XFN profile from their Webfinger profiles), but the &lt;em&gt;approach&lt;/em&gt; doesn&amp;#8217;t make any assumptions about what information must or must not be shared.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="http://confusedofcalcutta.com/2010/04/25/of-push-and-pull/"&gt;Subscription = Relationship&lt;/a&gt;&lt;/strong&gt;. The underlying approach doesn&amp;#8217;t say &lt;em&gt;what kind&lt;/em&gt; of relationship the two are creating, but rather allows protocols or data transports on top of the exchange to do so. Fiona could decide that she doesn&amp;#8217;t like Kate&amp;#8217;s sketches, or that Kate posts too much, and simply tell Sketchr to hide Fiona&amp;#8217;s posts. As far as Kate&amp;#8217;s concerned, Fiona is still subscribed, and still viewing her photos. Alternatively, Fiona could send an unsubscribe request to Kate, signalling that the relationship no longer exists. &lt;em&gt;The semantics are up to the application developer at either end.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No Passwords&lt;/strong&gt; are involved in the exchange. Kate and Fiona don&amp;#8217;t need to exchange PGP keys, either, or rely on some complicated &amp;#8220;Web Of Trust.&amp;#8221; All they need to do is trust the servers they use (zinespace, sketchr, identi.ca, and their email providers); if they can&amp;#8217;t do that, then they have bigger problems. This one&amp;#8217;s really important, because RSS and Atom were meant to be the future of content exchange. &lt;strong&gt;RSS and Atom have completely failed to enable private feeds&lt;/strong&gt;, because they require passwords to do so. That sucks, and webfinger offers a workable solution to this persistent problem.
&lt;/ol&gt;

&lt;h2&gt;Sharing Content&lt;/h2&gt;

&lt;p&gt;Once relationships have been established, sharing content is entirely up to the individuals and sites involved. Obviously, we need common protocols for this, but we can use Atom and PubSubHubbub, some domain-specific protocol (e.g., Portable Contacts/ActivityStreams), or we&amp;#8217;ll figure it out as we go along. Direct or private messages are just special forms of general distribution content (i.e., the subscriber has asked to receive content from the publisher, whether that content was broadcast or is a directed message).&lt;/p&gt;

&lt;p&gt;There are a lot of things that I haven&amp;#8217;t covered in this post. The technology is simple, but not trivial, and it is still very new. There aren&amp;#8217;t yet tools that make this easy (if you&amp;#8217;d like to work on building them, &lt;a href="mailto:romeda@gmail.com"&gt;contact me&lt;/a&gt;!)&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/76-TiuGzQio" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/04/identity.html</feedburner:origLink></entry><entry><title type="html">Hot Code Loading in Node.js</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/y41Tukt1M-0/hot-code-loading-in-node-js.html" /><updated>2010-01-29T16:00:00-08:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-3661757932560989342</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;Reading through &lt;a href="http://feedafever.com/"&gt;Fever&lt;/a&gt; today, &lt;a href="http://metajack.im/2010/01/29/erlangstyle-hot-code-swapping-in-other-languages/"&gt;this post&lt;/a&gt; by Jack Moffitt caught my eye. In it, he discusses a hack to allow a running Python process to &lt;a href="http://www.codexon.com/posts/hot-code-swapping-for-servers-not-written-in-erlang"&gt;dynamically reload code&lt;/a&gt;. While the hack itself, shall we say, lacks subtlety, Jack&amp;#8217;s post got me thinking. It&amp;#8217;s true, Erlang&amp;#8217;s &lt;a href="http://en.wikipedia.org/wiki/Erlang_(programming_language)#Hot_code_loading_and_modules"&gt;hot code loading&lt;/a&gt; is a great feature, enabling Erlang&amp;#8217;s 99.9999999% uptime claims. It occurred to me that it wouldn&amp;#8217;t be terribly difficult to implement for node.js&amp;#8217; CommonJS-based module loader.&lt;/p&gt;

&lt;p&gt;A few hours (and a tasty home-made Paella later), here&amp;#8217;s my answer: &lt;a href="http://github.com/blaine/node/tree/hotload"&gt;Hotload node branch&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;Umm… What does it do?&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;var requestHandler = require('./myRequestHandler');

process.watchFile('./myRequestHandler', function () {
  module.unCacheModule('./myRequestHandler');
  requestHandler = require('./myRequestHandler');
}

var reqHandlerClosure = function (req, res) {
  requestHandler.handle(req, res);
}

http.createServer(reqHandlerClosure).listen(8000);&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, any time you modify &lt;code&gt;myRequestHandler.js&lt;/code&gt;, the above code will notice and replace the local requestHandler with the new code. Any existing requests will continue to use the old code, while any new incoming requests will use the new code. All without shutting down the server, bouncing any requests, prematurely killing any requests, or even relying on an intelligent load balancer.&lt;/p&gt;

&lt;h3&gt;Awesome! How does it work?&lt;/h3&gt;

&lt;p&gt;Basically, all node modules are created as sandboxes, so that as long as you don&amp;#8217;t use global variables, you can be sure that any modules you write won&amp;#8217;t stomp on others&amp;#8217; code, and vice versa, you can be sure that others&amp;#8217; modules won&amp;#8217;t stomp on your code.&lt;/p&gt;

&lt;p&gt;Modules are loaded by &lt;code&gt;require()&lt;/code&gt;ing them and assigning the return to a local variable, like so:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var http = require('http');&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The important insight is that the return value of &lt;code&gt;require()&lt;/code&gt; is a self-contained closure. There&amp;#8217;s no reason it has to be the same each time. Essentially, &lt;code&gt;require(file)&lt;/code&gt; says &amp;#8220;read &lt;code&gt;file&lt;/code&gt;, seal it in a protective case, and return that protective case.&amp;#8221; &lt;code&gt;require()&lt;/code&gt; is smart, though, and caches modules so that multiple attempts to &lt;code&gt;require()&lt;/code&gt; the same module don&amp;#8217;t waste time (synchronously) reading from disk. Those caches don&amp;#8217;t get invalidated, though, and even though we can detect when files change, we can&amp;#8217;t just call &lt;code&gt;require()&lt;/code&gt; again, since the cached version takes precedence.&lt;/p&gt;

&lt;p&gt;There are a few ways to fix this, but the subtleties rapidly complicate matters. If the ultimate goal is to allow an already-executing module (e.g., an http request handler) to continue executing while new code is loaded, then automatic code reloading is out, since changing one module will change them all. In the approach I&amp;#8217;ve taken here, I tried to achieve two goals:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make minimal changes to the existing node.js &lt;code&gt;require()&lt;/code&gt; logic.&lt;/li&gt;
&lt;li&gt;Ensure that any &lt;code&gt;require()&lt;/code&gt; calls &lt;em&gt;within&lt;/em&gt; an already-loaded module will return functions corresponding to the pre-hot load version of the code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The latter goal is important because a module expects a specific set of behaviour from the modules on which it depends. Hot loading only works so long as modules have a consistent view of the world.&lt;/p&gt;

&lt;p&gt;To accomplish these goals, all I&amp;#8217;ve done is move the module cache from a global one into the module itself. Reloading is minimised by copying parent&amp;#8217;s caches into child modules (made fast and efficient thanks to V8&amp;#8217;s approach to variable handling). Any module can load a new version of any loaded modules by first removing that module from its local cache. This doesn&amp;#8217;t affect any other modules (including dependent modules), but will ensure that any sub-modules are reloaded, as long as they&amp;#8217;re not in the parent&amp;#8217;s cache.&lt;/p&gt;

&lt;p&gt;By taking a relatively conservative approach to module reloading, I believe this is a flexible and powerful approach to hot code reloading. Most server applications have a strongly hierarchical code structure; as long as code reloading is done at the top-level, before many modules have been required, it can be done simply and efficiently.&lt;/p&gt;

&lt;p&gt;While I hope this patch or a modified one will make it into node.js, this approach can be adapted to exist outside of node&amp;#8217;s core, at the expense of maintaining two &lt;code&gt;require()&lt;/code&gt; implementations.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/y41Tukt1M-0" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2010/01/hot-code-loading-in-node-js.html</feedburner:origLink></entry><entry><title type="html">Simple Addressing for the Web, Part 1</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/9kFEhURnZRo/simple-addressing-for-the-web-part-1.html" /><updated>2009-05-04T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-1098330781631418127</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;Addressing is important. It&amp;#8217;s something that &lt;a href="http://en.wikipedia.org/wiki/I-name"&gt;many&lt;/a&gt; &lt;a href="http://www.projectliberty.org/resource_center/specifications/liberty_alliance_id_wsf_2_0_specifications_including_errata_v1_0_updates"&gt;people&lt;/a&gt; &lt;a href="http://www.w3.org/Submission/ws-addressing/"&gt;have&lt;/a&gt; &lt;a href="http://www.eclipse.org/higgins/"&gt;tried&lt;/a&gt; &lt;a href="http://pamelaproject.com/"&gt;to&lt;/a&gt; &lt;a href="http://informationcard.net/"&gt;solve&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m interested in addressing because it&amp;#8217;s an important piece of web-scale messaging, and of the federated social networks that are an emergent property of verified cross-site communication. In order to communicate with someone, you need to be able to route your communications to them.&lt;/p&gt;

&lt;h2&gt;The URL is the thing. Except when it&amp;#8217;s not.&lt;/h2&gt;

&lt;p&gt;The URL was supposed to become the way that we negotiated identity. We were supposed to have a &amp;#8220;home page,&amp;#8221; a place on the internet to call our own. It didn&amp;#8217;t quite work out that way, and at the same time as Geocities is shutting down, we&amp;#8217;re finally facing the need for a strong conception of identity on the web.&lt;/p&gt;

&lt;p&gt;It goes without saying these days that everything we do, everything we interact with, has an associated URL. I can give you my blog URL so that you can read my posts, or my calendar URL so that you can invite me to events. However, for the vast majority of users, URLs aren&amp;#8217;t a viable option. Fundamentally, it&amp;#8217;s a lack of consistency (or, put another way, unbridled diversity) that makes URLs unusable as identity markers. Take the following URLs as a proof-by-example:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;twitter.com/blaine&lt;/li&gt;
  &lt;li&gt;myspace.com/romeda&lt;/li&gt;
  &lt;li&gt;flickr.com/lattice&lt;/li&gt;
  &lt;li&gt;search.twitter.com/search?q=%22Swine+Flu%22+OR+Flu&lt;/li&gt;
  &lt;li&gt;home.myspace.com/index.cfm?fuseaction=user&lt;/li&gt;
  &lt;li&gt;blogger.com/post-create.g?blogID=6135683561277543562&lt;/li&gt;
  &lt;li&gt;amazon.com/gp/pdp/profile/A1GUHSGP27QA4W&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of the above are URLs which I see while interacting with sites on the web. Unlike postal addressing, phone numbers, or email, there&amp;#8217;s no consistency. The path part of the domain may as well be line noise in the latter four examples. By association, the pattern used by Flickr, MySpace, and Twitter is a fluke. Beyond that, my username doesn&amp;#8217;t match across the three social networking sites, and as such it&amp;#8217;s nearly impossible for a friend, relative, or co-worker to guess what my URL is, even given a domain.&lt;/p&gt;

&lt;p&gt;I don&amp;#8217;t see a way to fix URLs across the web so that we can encourage people to use them as identifiers. OpenID has tried, and the &lt;a href="http://blog.crowdvine.com/2009/04/02/declining-openid-usage/"&gt;results&lt;/a&gt; are nothing short of abysmal.&lt;/p&gt;

&lt;h2&gt;Back to the Future&lt;/h2&gt;

&lt;p&gt;If not URLs, what should our new web addressable identities look like? The simplest answer is &amp;#8220;like an email address.&amp;#8221; They&amp;#8217;re universally recognizable. Billions of people have email addresses and know how to use them. All the major IM providers have moved towards email-like addresses as identifiers (gone are the integers of ICQ). Most importantly, email addresses are easy to construct and resolve.&lt;/p&gt;

&lt;p&gt;The net result of this line of thought is that instead of &lt;tt&gt;@blaine&lt;/tt&gt; for my Twitter address, I&amp;#8217;d be &lt;tt&gt;blaine@twitter.com&lt;/tt&gt;, and on &lt;a href="http://identi.ca/"&gt;Identi.ca&lt;/a&gt; I&amp;#8217;d be &lt;tt&gt;blaine@identi.ca&lt;/tt&gt;. I could share my Myspace identity as &lt;tt&gt;romeda@myspace.com&lt;/tt&gt;, and on Facebook I could be &lt;tt&gt;blaine.cook@facebook.com&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The problem is that those addresses conflict with an already-existing namespace, specifically &lt;strong&gt;email&lt;/strong&gt;. Which isn&amp;#8217;t surprising, but it is problematic. Can you send me an email at &lt;tt&gt;blaine@twitter.com&lt;/tt&gt; or &lt;tt&gt;romeda@myspace.com&lt;/tt&gt;? What happens when you do? Unfortunately, there aren&amp;#8217;t clear answers for those questions, and while some social networks might choose to make &amp;#8220;Social Network Addresses&amp;#8221; work as email addresses, it would be an uphill battle to convince all providers to do so.&lt;/p&gt;

&lt;h2&gt;Use What&amp;#8217;s Already There&lt;/h2&gt;

&lt;p&gt;I&amp;#8217;ve been thinking about this problem a lot lately, and while the approach of re-using email semantics to provide human-readable web addresses/identities is very attractive, the proliferation of addresses (one for each network) and namespace collisions are less than ideal. After having extensive conversations with &lt;a href="http://twitter.com/monadic"&gt;Alexis Richardson&lt;/a&gt; and &lt;a href="http://twitter.com/leastfixedpoint"&gt;Tony Garnock-Jones&lt;/a&gt;, the general approach for discovery became clear to me, but I didn&amp;#8217;t have a more generally applicable form for the addresses themselves.&lt;/p&gt;

&lt;p&gt;Eventually, talking over the problem with &lt;a href="http://www.johnpanzer.com/"&gt;John Panzer&lt;/a&gt; and &lt;a href="http://brenodemedeiros.com/"&gt;Breno de Medeiros&lt;/a&gt; at &lt;a href="http://swfoo09.pbworks.com/"&gt;Social Web Foo&lt;/a&gt;, the solution was there, blazing as bright as the California Sun; &lt;a href="http://www.google.com/profiles"&gt;Google Profiles&lt;/a&gt; means that Google is now providing links to all my social network profiles. They&amp;#8217;re also my email provider.&lt;/p&gt;

&lt;p&gt;My email address is &lt;tt&gt;romeda@gmail.com&lt;/tt&gt;. If you transform that to &lt;a href="http://www.google.com/profiles/romeda"&gt;http://www.&lt;strong&gt;google.com&lt;/strong&gt;/profiles/&lt;strong&gt;romeda&lt;/strong&gt;&lt;/a&gt;, you get my profile data, and away we go. Every email provider these days has a website, and Eran&amp;#8217;s &lt;a href="http://tools.ietf.org/html/draft-hammer-discovery"&gt;LRDD&lt;/a&gt;, new on the scene, provides a discovery mechanism that everyone (i.e., every mail provider, even if they&amp;#8217;re only hosting static content) can implement in just a few minutes.&lt;/p&gt;

&lt;p&gt;This is an important, exciting transformation. Now, with one identifier, I can share all the social bits of myself to anyone I please.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Where are my photos?&lt;/em&gt; &lt;span style="font-size: 150%;"&gt;romeda@gmail.com&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Where&amp;#8217;s my calendar?&lt;/em&gt; &lt;span style="font-size: 150%;"&gt;romeda@gmail.com&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;What&amp;#8217;s my phone number?&lt;/em&gt; Look it up with &lt;span style="font-size: 150%;"&gt;romeda@gmail.com&lt;/span&gt;, and I&amp;#8217;ll give you permission to see it and store it in your address book.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;They&amp;#8217;re all the same.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If I want to share a different set of social interactions, say, my work identity, I can give my &lt;a href="http://osmosoft.com/"&gt;Osmosoft&lt;/a&gt; or &lt;a href="http://bt.com/"&gt;BT&lt;/a&gt; addresses, blaine@osmosoft.com and blaine.cook@bt.com, respectively. Now just photos of conferences come up, and the calendar that you&amp;#8217;ll find is my work calendar, not my social calendar.&lt;/p&gt;

&lt;p&gt;Talking about this problem with others unearthed a post last year by &lt;a href="http://brad.livejournal.com/2357444.html"&gt;Brad Fitzpatrick&lt;/a&gt; and &lt;a href="http://eaut.org/"&gt;&lt;abbr title="Email Address to URL Translation"&gt;EAUT&lt;/abbr&gt;&lt;/a&gt;, which were both aimed at solving the OpenID problem, but both take the same approach as the one that I outline here. EAUT seems to have been lost in the swamps of XRDS-Simple, and Brad&amp;#8217;s post was probably too early to the races, in true Brad style (if you want to know what&amp;#8217;s coming to the internet in five years, just read his blog posts).&lt;/p&gt;

&lt;p&gt;With a swift and general agreement-in-principle, there&amp;#8217;s been some very positive movement towards promoting this concept as a way to bring the power of strong identity that email provides to the web. John has an &lt;a href="http://www.abstractioneer.org/2009/04/personal-web-discovery.html"&gt;excellent post&lt;/a&gt; on the subject, and it seems like a name for the project has emerged: &lt;a href="http://code.google.com/p/webfinger/"&gt;WebFinger&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Part Two (coming tomorrow) goes in depth about how this all works on the tech side. &lt;a href="http://www.tbray.org/ongoing/When/200x/2009/04/29/Model-and-Syntax"&gt;Bits on the wire&lt;/a&gt;, as Tim Bray says.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/9kFEhURnZRo" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2009/05/simple-addressing-for-the-web-part-1.html</feedburner:origLink></entry><entry><title type="html">Easy Android</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/UuqF7NnFVLc/easy-android.html" /><updated>2009-05-04T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-2681467766314186530</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;Let me start by saying that I&amp;#8217;m very impressed with Android, and the ease with which I was able to scratch an itch was impressive. The fact that I&amp;#8217;m not locked into Apple&amp;#8217;s app store world is nice; I don&amp;#8217;t know what the specific terms are for Google&amp;#8217;s marketplace (I haven&amp;#8217;t signed up yet), but frankly I trust them more than I do Apple.&lt;/p&gt;

&lt;p&gt;Full Disclosure: at Social Web Foo, &lt;a href="http://joshua.schachter.org/"&gt;Joshua&lt;/a&gt; very kindly gave me (and about 50 others) a free &lt;a href="http://developer.android.com/"&gt;Android&lt;/a&gt; &lt;a href="http://developer.android.com/guide/developing/device.html"&gt;Dev Phone&lt;/a&gt;. He gave strict instructions to actually write something for it, and I probably wouldn&amp;#8217;t have bought a dev phone (nor written &amp;lt;shudder&amp;gt; the Java against the emulator), so the fact that I have done so worked out.&lt;/p&gt;

&lt;p&gt;I hadn&amp;#8217;t written a line of Java before. Shock, horror. It&amp;#8217;s just as annoying as everyone always said, but developing for Android with Eclipse is pretty straightfoward. The documentation is good. I started with &lt;a href="http://developer.android.com/guide/tutorials/hello-world.html"&gt;the basics&lt;/a&gt;, and pretty quickly moved to example code. Most notably, the NotePad application that comes bundled with the Android SDK.&lt;/p&gt;

&lt;p&gt;Once the Eclipse and the SDK was downloaded and installed, it only took about five minutes to get my first app up and running. Getting a list view of hard-coded data took another ten minutes, and modifying the code to display a different view when one of the items was clicked took about two hours (keep in mind that I was learning Java with the patience of a Ruby programmer here).&lt;/p&gt;

&lt;h2&gt;The Bad&lt;/h2&gt;

&lt;p&gt;Honestly, there&amp;#8217;s not a lot that I was upset by. Coming from Rails, defining table structures and setters and getters and all the explicit typing is pretty annoying. Cutting and pasting code meant that I had a few mismatched data structure definitions, and the error messages were less than useful, since all that fancy type matching means that when something doesn&amp;#8217;t match up in your XML configuration file, Java can&amp;#8217;t tell you where to go to fix it. Figuring out where I had mismatched strings in XML config files easily took another couple of hours, which sucked, but it seems like the kind of thing that you&amp;#8217;d get used to. Functional brain damage, I suppose.&lt;/p&gt;

&lt;h2&gt;The Good&lt;/h2&gt;

&lt;p&gt;Android is a developer&amp;#8217;s platform. The way that content, and well, everything is addressed is &lt;em&gt;fantastic&lt;/em&gt;. There are hooks for &lt;em&gt;everything&lt;/em&gt;, and the tutorials encourage you to do the right thing out of the box. The documentation really only makes sense once you get it, but for the really simple app I&amp;#8217;ve been working on, the examples were more than sufficient to get things going.&lt;/p&gt;

&lt;p&gt;Basically, every data source is addressable through a &amp;#8221;&lt;tt&gt;content://&lt;/tt&gt;&amp;#8221; URI scheme. What that means is that any application can provide hooks (if they know about your data source) to view, edit, or list bits of data. I expose a set of short recipes (from &lt;a href="http://twitter.com/cookbook"&gt;@cookbook&lt;/a&gt;) at &lt;tt&gt;content://org.romeda.provider.Cookbook/recipes&lt;/tt&gt;. That means that as long as, say, Tweetie knows that there&amp;#8217;s the provider exists, they could add a hook to allow people to add any tweet as a recipe. It also provides hooks for other applications to know when new recipes are published (or, for example, I could tie into a Twitter provider on the phone and piggyback discovery of new updates to that, rather that running my own polling process), in addition to hooks to view, edit, or any action you can imagine.&lt;/p&gt;

&lt;p&gt;The best thing about this is that the whole system works the same way. You register an &amp;#8220;Intent&amp;#8221;, and the OS lets you know when something in the system is relevant. The simplest (but seriously awesome) example of this is if you want to intercept an outgoing call and rewrite the number (or just make the call over a voip stack, for example). You just register your intent to handle &lt;a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL"&gt;ACTION_NEW_OUTGOING_CALL&lt;/a&gt;, and away you go. A simple data passing interface lets you receive and attach data to the messages.&lt;/p&gt;

&lt;p&gt;The other thing that&amp;#8217;s great about Android that I noticed right away is that the default views are extremely simple to use and customize, and they save their own state. Without writing any special code to remember where a user is in the scroll buffer, and without doing any work to remember which view a user was in (e.g., list or item view, edit, etc), the default behaviour is to remember. It&amp;#8217;s the embodiment of everything Google&amp;#8217;s been doing on the web lately &amp;#8212; don&amp;#8217;t save, ever, because saving is stupid. Either you&amp;#8217;ve published/archived/sent/deleted something, or it&amp;#8217;s in a draft form. The draft is implicitly persistent, and avoids the user ever &lt;a href="http://twitter.com/blaine/status/1622593046"&gt;losing work&lt;/a&gt;. This is in stark contrast to the iPhone, where Safari&amp;#8217;s horrible constant reloading of pages boggles the mind, and burns through roaming data minutes like there&amp;#8217;s no tomorrow.&lt;/p&gt;

&lt;h2&gt;The Code&lt;/h2&gt;

&lt;p&gt;So it&amp;#8217;s not fancy, and it doesn&amp;#8217;t even fetch the recipes yet, but I&amp;#8217;m posting &lt;a href="http://github.com/blaine/cookbook/tree/master"&gt;the code&lt;/a&gt; here since it&amp;#8217;s pretty damned simple at this point, and demonstrates making an app with two views. I&amp;#8217;ll update it as time allows.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/UuqF7NnFVLc" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2009/05/easy-android.html</feedburner:origLink></entry><entry><title type="html">Automatic Bootstrapping of rev=canonical</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/wpPOrnz2u8I/automatic-bootstrapping-of-rev-canonical.html" /><updated>2009-04-12T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-1649872776592878945</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;Kellan&amp;#8217;s &lt;a href="http://laughingmeme.org/2009/04/03/url-shortening-hinting/"&gt;work&lt;/a&gt; on &lt;a href="http://revcanonical.wordpress.com/"&gt;making URL shortening&lt;/a&gt; not &lt;a href="http://joshua.schachter.org/2009/04/on-url-shorteners.html"&gt;suck&lt;/a&gt; is great, but killing bit.ly and tinyurl just isn&amp;#8217;t going to happen. Sadly for Joshua, this is the way the internet works, and if he doesn&amp;#8217;t like it, tough shit.&lt;/p&gt;

&lt;p&gt;So far I&amp;#8217;ve only seen one site that (awesomely) shortens URLs with rev=canoncial (I&amp;#8217;m sure there are more, but I haven&amp;#8217;t seen them. So there.) Simon Willison has done some great work on his blog, and throwing &lt;a href="http://simonwillison.net/2009/Apr/11/revcanonical/"&gt;http://simonwillison.net/2009/Apr/11/revcanonical/&lt;/a&gt; at Kellan&amp;#8217;s shortener results in &lt;a href="http://swtiny.eu/EZa"&gt;http://swtiny.eu/EZa&lt;/a&gt;. Brilliant!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Except&lt;/em&gt; no one will use it, because, well, &lt;a href="http://bit.ly/"&gt;bit.ly&lt;/a&gt; is &lt;em&gt;useful&lt;/em&gt; for doing things like tracking how far that link you sent got, and there&amp;#8217;s a degree of muscle memory involved. This is the sort of vi-versus-emacs argument that just isn&amp;#8217;t going to go away. Also, here&amp;#8217;s the same post shortened by &lt;a href="http://bit.ly/398FW8"&gt;bit.ly&lt;/a&gt;, &lt;a href="http://tinyurl.com/d8bb68"&gt;tinyurl&lt;/a&gt; and this &lt;a href="http://romeda.org/swr.php"&gt;Simon-Willison&amp;#8217;s-post-about-rev=canonical specific URL shortener&lt;/a&gt; that I just linked to in the previous paragraph. So why fight it? You really can&amp;#8217;t win.&lt;/p&gt;

&lt;p&gt;There is hope, though. I live in the dark ages, and Blogger publishes my posts as static HTML over SCP or FTP or some other totally inappropriate protocol. Since there&amp;#8217;s no &amp;lt;$BlogItemShortURL$&amp;gt; tag in Blogger&amp;#8217;s template syntax, I&amp;#8217;m completely unable to do what Simon&amp;#8217;s done, without migrating to a self-hosted blogging system (contrary to popular belief, not all programmers are compelled to write their own blogging systems (erm, on second thought, ignore twitter)).&lt;/p&gt;

&lt;span style="text-decoration: line-through"&gt;&lt;p&gt;Anyhow, it turns out that I can be as cool as Simon, just with one step of indirection:&lt;/p&gt;&lt;/span&gt;

&lt;pre&gt;&lt;code&gt;
&amp;lt;link rev="canonical" href="http://bit.ly/?url=&lt;$BlogItemPermalinkURL$&gt;"/&amp;gt;
&amp;lt;link rev="canonical" href="http://tinyurl.com/create.php?url=&lt;$BlogItemPermalinkURL$&gt;"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Strike that, Blogger fucking sucks and so I&amp;#8217;ve created a shell script that converts a placeholder into rev=canonical links. Man, that was a pain in the ass. Why do I still use Blogger? Anyhow, the point stands if your blogging software doesn&amp;#8217;t totally suck and will give you a permalink anywhere in the template engine. Which is probably true unless you&amp;#8217;re using Blogger. Ugh.&lt;/p&gt;

&lt;p&gt;So this is great. Now my blog posts are rev=canonical™ compliant, and &lt;span style="text-decoration: line-through"&gt;I&lt;/span&gt; you didn&amp;#8217;t have to change anything at all, beyond shoving a couple of lines of HTML into your blog template. People that use bit.ly and tinyurl are happy, because they don&amp;#8217;t need to change their behaviour, and people that use rev=canonical are happy, because they can just by following the links provided for them.&lt;/p&gt;

&lt;p&gt;Now of course this doesn&amp;#8217;t address two of Joshua&amp;#8217;s concerns. First, I still have no idea where my traffic is coming from, because I don&amp;#8217;t run my own URL shortener. I don&amp;#8217;t &lt;em&gt;want&lt;/em&gt; to run my own URL shortener. What I see here is an opening for bit.ly and/or tinyurl to allow me to see the stats of redirects (Dear &lt;span style="text-decoration: line-through"&gt;FeedBurner&lt;/span&gt;Google: Please purchase bit.ly or tinyurl or build your own), which they should be able to do easily since all I would need to do is prove that I own romeda.org by sticking some secretly named file at the domain root or otherwise.&lt;/p&gt;

&lt;p&gt;The second concern that remains unaddressed is what happens when the URL shorteners go away? Well, we have the same problem on the web. The answer to that was/is &lt;a href="http://archive.org"&gt;The Internet Archive&lt;/a&gt;, so herewith &lt;a href="http://tinyarchive.org/"&gt;The (Tiny) Internet Archive&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Currently it&amp;#8217;s just a proof-of-concept. I don&amp;#8217;t guarantee in any way that the links posted there will persist. That said, the free quotas that come with Google App Engine allow enough space to store around two million links, and $0.15 per month for every additional two million links, so I&amp;#8217;m sure it won&amp;#8217;t be a problem. Who knows, maybe archive.org will take it over?&lt;/p&gt;

&lt;p&gt;The code that&amp;#8217;s up is available on github here: &lt;a href="http://github.com/blaine/tinyarchive"&gt;TinyArchive&lt;/a&gt;. If you have suggestions, please send them my way or fork the code and send me patches. It was just a pre-coffee morning hack, my first stab at App Engine, and my first Python code in what seems like forever.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/wpPOrnz2u8I" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2009/04/automatic-bootstrapping-of-rev-canonical.html</feedburner:origLink></entry><entry><title type="html">Facebook is Closed for Anything</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/uDQOazW3qKY/facebook-is-closed-for-anything.html" /><updated>2009-02-16T16:00:00-08:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-8478427619614269290</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;From &lt;a href="http://blog.facebook.com/blog.php?post=54434097130"&gt;Mark Zuckerberg&amp;#8217;s post&lt;/a&gt; responding to the criticisms of their new ToS:&lt;/p&gt;

&lt;blockquote style='font-style: italic'&gt;&amp;ldquo;We think this is the right way for Facebook to work, and it is consistent with how other services like email work.&amp;rdquo;&lt;/blockquote&gt;

&lt;p&gt;If that&amp;#8217;s the case, then why the onerous licensing? I&amp;#8217;m quite sure that people running email servers don&amp;#8217;t need to negotiate licenses to send and receive email to and from one another. Asymmetrical persistence is a feature, not a bug, of email.&lt;/p&gt;

&lt;p&gt;Facebook couldn&amp;#8217;t figure out how to replicate email in a closed, centrally controlled corporate environment (hint: you can&amp;#8217;t). Resorting to legalese is a by-product of their broken closed model (yes, this includes their support of OpenID and their Facebook &lt;span style="text-decoration: line-through"&gt;Platform&lt;/span&gt;Plantation).&lt;/p&gt;

&lt;blockquote style="font-style: italic;"&gt;&amp;ldquo;There is no system today that enables me to share my email address with you and then simultaneously lets me control who you share it with and also lets you control what services you share it with.&amp;rdquo;&lt;/blockquote&gt;

&lt;p&gt;That&amp;#8217;s because you &lt;em&gt;can&amp;#8217;t&lt;/em&gt; control such things. At the end of the day, I can write down a phone number from a screen, and paste it up on telephone poles anywhere I please, shout it out at the top of my lungs. There&amp;#8217;s no law that prevents me from doing that, and even if there were, it would be completely unenforceable.&lt;/p&gt;

&lt;p&gt;The music and film industries have been fighting this losing battle for years, and frankly it&amp;#8217;s depressing to see a major web property co-opting the notion of openness while playing essentially the same DRM game.&lt;/p&gt;

&lt;p&gt;With legalese like this, I&amp;#8217;m expecting the big announcement at f8 to be OpenFacebookHappyDRM. Code name: &lt;a href="http://hitherto.net/2007/10/18/facebook-the-hotel-california-of-social-networks/"&gt;Hotel California&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote style="font-style: italic"&gt;You can OpenID in any time of day, but you can never leave&amp;hellip;&lt;/blockquote&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/uDQOazW3qKY" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2009/02/facebook-is-closed-for-anything.html</feedburner:origLink></entry><entry><title type="html">Velocity</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/x807ouCHcmQ/velocity.html" /><updated>2008-05-11T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-2025046817298270591</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;If you&amp;#8217;re interested in scalability and performance as it pertains to internet applications, or if you&amp;#8217;re involved in or looking to build a reliable internet-based system, go to &lt;a href="http://en.oreilly.com/velocity2008/public/content/home"&gt;Velocity&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I was fortunate enough to attend the O&amp;#8217;Reilly &lt;a href="http://lethargy.org/~jesus/archives/106-A-job,-a-mission,-a-career-all-without-a-path-or-a-name..html"&gt;Velocity Summit&lt;/a&gt; back in January, which was a Foo-Style event designed to provide some context leading into the actual conference in June. If the conference is one tenth as good as the summit, it will be amazing. &lt;a href="http://radar.oreilly.com/jesse/"&gt;Jesse&lt;/a&gt; is an amazing organizer and a man with a vision.&lt;/p&gt;

&lt;p&gt;Anyhow, instead of reading my &lt;a href="http://romeda.org/blog/2008/05/scalability.html"&gt;off-the-cuff posts&lt;/a&gt; about obvious things that are much more fun to talk about while &lt;a href="http://www.futureofwebapps.com/2008/miami/"&gt;drinking in Miami&lt;/a&gt;, go to Velocity and learn this stuff for real.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/x807ouCHcmQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2008/05/velocity.html</feedburner:origLink></entry><entry><title type="html">Scalability</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/AB6yuBg8T00/scalability.html" /><updated>2008-05-11T16:00:00-07:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-1187948019010202083</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;&lt;b&gt;Updated:&lt;/b&gt; Go read Steve&amp;#8217;s &lt;a href="http://steve-yegge.blogspot.com/2008/05/dynamic-languages-strike-back.html"&gt;Dynamic Languages Strike Back&lt;/a&gt;. It&amp;#8217;s a longer read, but it&amp;#8217;s much more interesting, and he&amp;#8217;s much smarter than I am.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://ola-bini.blogspot.com/2008/05/just-add-scaling.html"&gt;LOL.&lt;/a&gt; &amp;lt;&amp;#8211; this is a link. Read Ola&amp;#8217;s post, first.&lt;/p&gt;

&lt;p&gt;For all those who don&amp;#8217;t get it, &lt;i&gt;languages don&amp;#8217;t scale, architectures do.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Now, some languages are &lt;i&gt;faster&lt;/i&gt; than others. That means that to complete a given operation, it &lt;i&gt;costs less&lt;/i&gt;, everything else being equal. Costing less is a good thing. But developers also cost money, so if you have to spend money on developers&amp;#8217; time porting from one language to another then you might not be saving any money at all, and really you&amp;#8217;re just treading water.&lt;/p&gt;

&lt;p&gt;Once upon a time, &lt;i&gt;Shell Scripts&lt;/i&gt; were used to &lt;a href="http://docs.rinet.ru/UNIXi/ch18.htm"&gt;write CGI applications&lt;/a&gt;. With the correct architecture, and enough money, you could build &lt;a href="http://google.com"&gt;Google&lt;/a&gt; with &lt;a href="http://www.tcsh.org/Welcome"&gt;tcsh&lt;/a&gt;. No, really. It wouldn&amp;#8217;t be fun, and you&amp;#8217;d be dumb, because there are &lt;b&gt;much&lt;/b&gt; &lt;i&gt;cheaper&lt;/i&gt; ways to do it. But then again, if you stuck with it, perhaps you&amp;#8217;d optimize tcsh to be really fast at spawning and serving up web requests. Faster than Java, faster than &amp;lt;insert your favourite language here&amp;gt;. Faster means &lt;i&gt;cheaper&lt;/i&gt;, it doesn&amp;#8217;t mean more &lt;i&gt;scalable&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;I point to &lt;a href="http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results"&gt;exhibit A&lt;/a&gt;. Perl used to be &lt;a href="http://furryland.org/~mikec/bench/"&gt;slow&lt;/a&gt;. Now it beats JoCaml with the bestest concurrency (re: &amp;ldquo;Scalability&amp;rdquo;) around. What was Perl built for? Parsing text. Lots of it. All the time. It&amp;#8217;s fast. Does it mean that you can&amp;#8217;t build Wide Finder with another language? Absolutely not. Does it mean that you couldn&amp;#8217;t build Wide Finder to scale out to a trillion documents with gawk? If you answered &amp;ldquo;yes&amp;rdquo;, go back to the start of this post and read again! :-) If you&amp;#8217;re still answering &amp;ldquo;yes,&amp;rdquo; try reading some more. &lt;a href="http://randomfoo.net/blog/id/4171"&gt;Leonard&lt;/a&gt;, &lt;a href="http://teddziuba.com/2008/04/im-going-to-scale-my-foot-up-y.html"&gt;Ted&lt;/a&gt;, &lt;a href="http://www.joestump.net/2008/04/its-not-the-language-stupid.html"&gt;Joe&lt;/a&gt;, &lt;a href="http://www.amazon.com/Building-Scalable-Web-Sites-applications/dp/0596102356/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1210561240&amp;sr=8-1"&gt;Cal&lt;/a&gt;, and &lt;a href="http://www.amazon.com/Scalable-Internet-Architectures-Developers-Library/dp/067232699X/ref=pd_sim_b_img_1"&gt;Theo&lt;/a&gt; are good places to start.

&lt;p&gt;If you answered &amp;ldquo;no,&amp;rdquo; congratulations! Pat yourself on the back for knowing what &lt;a href="http://en.wikipedia.org/wiki/Scalability"&gt;scalability&lt;/a&gt; means. &lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/AB6yuBg8T00" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2008/05/scalability.html</feedburner:origLink></entry><entry><title type="html">FoWA Miami Rocked.</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/iVAZr61PkVQ/fowa-miami-rocked.html" /><updated>2008-03-07T16:00:00-08:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-6940345678945766594</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;I&amp;#8217;ve been busy getting [Twitter] ready for SXSW, and have completely failed at email and, well, everything except work, since then. Before I &lt;span style="text-decoration: line-through"&gt;actually land&lt;/span&gt; get drunk in Austin, I wanted to make a quick post about how great &lt;a href="http://www.futureofwebapps.com/2008/miami/"&gt;FoWA Miami&lt;/a&gt; was.&lt;/p&gt;

&lt;p&gt;After giving my workshop, I attended &lt;a href="http://www.joestump.net/"&gt;Joe&amp;#8217;s&lt;/a&gt; workshop on scalability, which was an amazingly thorough discussion, and I highly recommend attending anything that Joe does in the future (including the panel that he, Cal, and others are on at SxSW. I didn&amp;#8217;t catch many of the session talks on Friday, as I spent much of my time talking to attendees, but  the &amp;#8220;Building a Web App in 45 minutes&amp;#8221; panel was a fun experiment, and both &lt;a href="http://iamcal.com/"&gt;Cal&lt;/a&gt; and &lt;a href="http://tv.winelibrary.com/"&gt;Gary&lt;/a&gt; were energetic, brilliant, amazing, all that good stuff. If you get a chance to see either of them speak, don&amp;#8217;t pass it up. Especially Gary, as you&amp;#8217;re likely to get free wine, even if he makes you eat dirt beforehand.&lt;/p&gt;

&lt;p&gt;I had some hiccups during the demo / discussion portion of my workshop, but the first part went well, I think, and I&amp;#8217;m looking forward to some great applications that incorporate Jabber soon. My talk, &amp;#8220;Bringing your web app to the masses&amp;#8221; went well, except for the part where Twitter went down in the middle of it, and I got a call from work (which I waited until after the talk to answer).&lt;/p&gt;

&lt;p&gt;Some heckling ensued, but I was happy to be able to address the audience&amp;#8217;s questions about Twitter in an open and honest way. The atmosphere that Carsonified has managed to foster at FoWA helped a ton.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://randommel.com/"&gt;Mel&lt;/a&gt;, &lt;a href="http://ryancarson.com/"&gt;Ryan&lt;/a&gt;, &lt;a href="http://www.carsonified.com/about-us"&gt;Lisa&lt;/a&gt;, &lt;a href="http://www.fiveandlime.com/"&gt;Keir&lt;/a&gt;, and &lt;a href="http://elliotjaystocks.com/blog"&gt;Elliot&lt;/a&gt; did a fantastic job organizing everything, and &lt;a href="http://tantek.com/"&gt;Tantek&lt;/a&gt; and &lt;a href="http://brianoberkirch.com/"&gt;Brian&lt;/a&gt; put together an amazing lineup of speakers and workshops. Seriously inspiring stuff.&lt;/p&gt;

&lt;p&gt;If they&amp;#8217;ll have me, I&amp;#8217;ll definitely be going to any conferences they hold in the future. They&amp;#8217;ve come a long way since the FoWA San Francisco in Fall 2006, and it looks like they&amp;#8217;ll just keep getting better.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/iVAZr61PkVQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2008/03/fowa-miami-rocked.html</feedburner:origLink></entry><entry><title type="html">Google Entaglement</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/8yKFDGZSK28/google-entaglement.html" /><updated>2008-02-20T16:00:00-08:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-8254929934401606469</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;I&amp;#8217;ve done a &lt;a href="http://resist.ca/"&gt;fair&lt;/a&gt; bit of &lt;a href="http://oauth.net/"&gt;security&lt;/a&gt; work, and generally try to care about the &lt;a href="http://citp.princeton.edu/memory/"&gt;finer details&lt;/a&gt; of privacy and security. However, one of the things that I&amp;#8217;ve learned is that more often than not, no amount of digital security past a certain point is going to help, since usually the &lt;a href="http://en.wikipedia.org/wiki/Green_Scare"&gt;threat model&lt;/a&gt; isn&amp;#8217;t an advanced technological attack, it&amp;#8217;s a social one.&lt;/p&gt;

&lt;p&gt;Thus far, Google has done a pretty good job of keeping private things private and public things public. I&amp;#8217;ve spoken to people on the Google Reader team, and the main reason they haven&amp;#8217;t added support for private feeds is their acute concern for privacy.&lt;/p&gt;

&lt;p&gt;Today Google announced a &lt;a href="http://bits.blogs.nytimes.com/2008/02/21/google-health-begins-its-preseason-at-cleveland-clinic/?ref=technology"&gt;limited trial of storing health records&lt;/a&gt; online. This seems reasonable and doable in a secure way, but I&amp;#8217;m sure they&amp;#8217;ll get lots of unwarranted flak for the long-awaited project.&lt;/p&gt;

&lt;p&gt;However, there will and should be some warranted flak. It turns out that they&amp;#8217;re using your regular Google account to store this information, and will provide access to it using your regular password, no doubt through yet another Google login page. I&amp;#8217;ve heard concerns that &lt;a href="http://oauth.net/"&gt;OAuth&lt;/a&gt; supports phishing (from Google people), but project infighting and power struggles at Google that result in &lt;a href="http://gmail.com/"&gt;tens&lt;/a&gt; of &lt;a href="http://blogger.com/"&gt;login&lt;/a&gt; &lt;a href="https://www.google.com/accounts/ServiceLogin?service=dodgeball&amp;amp;ltmpl=duallogin"&gt;pages&lt;/a&gt;, all slightly (or dramatically) different, all using the same credentials supports phishing much moreso.&lt;/p&gt;

&lt;p&gt;I strongly support patients&amp;#8217; rights to access their medical information, and Google is probably one of just a handful of organizations that can do the necessary coordination work and stand up to invasive organizations at scale. However, they need to stop thinking of this data as &lt;span style="font-weight: bold;"&gt;theirs&lt;/span&gt;, because it&amp;#8217;s not — it&amp;#8217;s &lt;span style="font-weight: bold;"&gt;your&lt;/span&gt; data. Using the same password as your &lt;span style="font-style: italic;"&gt;email&lt;/span&gt; to access your &lt;span style="font-style: italic;"&gt;health records&lt;/span&gt; is something that should be actively discouraged. If Google wants to present a unified interface, they should expose an API and use OAuth or AuthSub, just like any other third party that would consume the data.&lt;/p&gt;

&lt;p&gt;Now, I may be over-reacting, but I had an interaction yesterday that suggests to me that I&amp;#8217;m not. Someone using GTalk sent a chat request to blaine@twitter.com; this email address has an MX record that resolves to mail.twitter.com, and the corresponding JID resolves to jabber01.twitter.com. However, I have claimed my blaine@twitter.com address on GMail, and associated it with my primary GTalk ID (romeda@gmail.com). When I accepted the chat request, the response came from my GTalk account, romeda@gmail.com.&lt;/p&gt;

&lt;p&gt;In effect, Google had done something clever, and in so doing broke the Jabber spec, ignored my own self-hosted Jabber server, and&lt;span style="font-style: italic;"&gt; exposed my personal email address&lt;/span&gt; without asking my permission.&lt;/p&gt;

&lt;p&gt;In this case, it wasn&amp;#8217;t a big deal, I don&amp;#8217;t care, etc. Others might, though, and I only knew that it was happening because the person on the other end of the chat was tech-savvy enough to realize what had happened. Also, email addresses and connections between them are hardly closely-guarded secrets. The thing I take away from this is that Google is being sloppy. There&amp;#8217;s a lot going on, and it&amp;#8217;s hard to keep track of it all. That your health records are being tied to your Google account just reeks of some power struggle where the Google account people want to bolster their product&amp;#8217;s internal importance (or have managed to do so that they get veto power where they shouldn&amp;#8217;t have it), and it&amp;#8217;s simply not a pragmatic choice. There&amp;#8217;s a reason your health records aren&amp;#8217;t stored at the DMV, and it&amp;#8217;s not out of convenience. Just sayin&amp;#8217;.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/8yKFDGZSK28" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2008/02/google-entaglement.html</feedburner:origLink></entry><entry><title type="html">FoWA Miami</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/LiminalExistence/~3/6nMWJNcWzBQ/fowa-miami.html" /><updated>2008-01-20T16:00:00-08:00</updated><id>tag:blogger.com,1999:blog-7067202814937947569.post-632258650818085448</id><content type="html">&lt;div class='post'&gt;
&lt;p&gt;Just a quick note that I&amp;#8217;ll be giving a &lt;a href="http://futureofwebapps.com/2008/miami/workshops.php"&gt;workshop&lt;/a&gt; on building real-time web applications using Jabber at the &lt;a href="http://futureofwebapps.com/2008/miami/"&gt;Future of Web Apps&lt;/a&gt; in Miami, on February 28th. The conference runs from the 28th to the 1st of March, and should be a lot of fun.
&lt;/p&gt;&lt;p&gt;We&amp;#8217;ve been gradually improving the Jabber stack on Twitter, and we&amp;#8217;re now sending millions of messages every day, doing things that just don&amp;#8217;t fit into the polling-based world of Atom feeds. There are a ton of extremely awesome things that can be built, and so far we&amp;#8217;ve just scratched the surface.&lt;/p&gt;More to come; if I don&amp;#8217;t start blogging these things in small pieces, they&amp;#8217;ll never come.&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/LiminalExistence/~4/6nMWJNcWzBQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://blaine.github.com/2008/01/fowa-miami.html</feedburner:origLink></entry></feed>
