Tuesday, April 20, 2010

Hello to orkut Developers!

As we announced in the last update to the former orkut Developer Blog last week, henceforth we’ll be posting all orkut developer updates to this blog.

We think this is also a good opportunity to quickly introduce the newly-launched Developer page to you. We recently added this feature to the orkut sandbox which we hope to be a one-stop solution for developers looking to manage their applications from a single page and view their stats. You can submit your apps directly from here and verify them to complete the submission process. You can also maintain your apps from here and migrate them to a new URL, or delete them entirely from the directory. And if you have applications that have already been approved and included in the directory, expand their details to track the number of installs, uninstalls, renders and other useful stats updated every week.

Here’s what it looks like in action:


Please note that the Developer page requires you to be on the new orkut UI to work.

So keep your apps coming and point your browser to the one page to manage them all: sandbox.orkut.com/Main#Developer. And stay tuned for all orkut updates right here on the Google Code Blog!

James Bond Delayed... Indefinitely

You know, when I said that I was unhappy with the prospects of Lady Gaga doing the next Bond theme, I didn't really want that outcome to be stopped this way.

Yes, because the future of MGM, which is 3.7 billion dollars in debt is currently unresolved, series producers Michael G. Wilson and Barbara Broccoli have put the series on indefinite hiatus.

Now, I don't think this is going to be the same kind of indefinite hiatus that I always take to mean a band has almost certainly broken up permanently.

I fully expect that there will be another James Bond movie. They are too profitable not to reemerge at some point in the future.

I could have made a martini or Bond title pun somewhere in all this, but I've left you all traumatized by yesterday's geekypic, so I thought better of it.

Who's @ Google I/O: 106 companies, and more on the way

Google I/O is now just a month away, and we're incredibly excited by the breadth of companies and developers that will be showcasing their applications in this year's Developer Sandbox. As of today, over 100 companies are listed on the I/O website, and we anticipate over 180 companies to be confirmed by the time of I/O.


Over the next few weeks, we'll be inviting developers from these companies to do guest posts on this blog -- giving you insight into their development work and their approach to using Google technologies like Chrome, the Android SDK, GWT and Google APIs.



And for those of you who'll be at Google I/O next month, you'll have the opportunity to meet these developers in person at the Developer Sandbox, which runs for the duration of the conference (see event schedule).


Many thanks to the companies that will be joining us in this year's Sandbox, and to those of you who helped sell out this year's conference 10 weeks in advance!


Monday, April 19, 2010

Using XAuth to simplify the social web

Earlier today Meebo announced Extended Authentication (XAuth), an open platform that makes it possible for users to bring their preferred services with them across the web.



To learn more about XAuth and why we're among the supporters of this technology, check out our post on the Social Web Blog.



From a technical perspective, we wanted to offer you some additional insights into how this technology works.



If you visit Meebo's XAuth page, you should see an array of logos:





When this page loaded, it requests the list of services that have been registered with XAuth by making an HTML5 window.postMessage request to xauth.org. As you can see in the graphic, no active sessions were detected.



When the user clicks through to one of the linked demo pages — we'll use googxauthdemo.appspot.com in this case — the same JavaScript is loaded from xauth.org. When the user successfully authenticates, some basic information is pushed to the browser's HTML5 localStorage:


<script type="text/javascript">
function doLogin(doneUrl) {
/* Tell XAuth.org that a user has just signed into Google on this browser. */
XAuth.extend({
// reveals "someone is logged into Google"
token: "1",
// Expires after 24 hours or if the user explicitly logs out
expire: new Date().getTime() + 60*60*24*1000,
// Allow any domain to read this info (could also be a whitelist of partners)
extend: ["*"],
// Optional callback function once extend() has completed.
callback: makeRedirectFunc(doneUrl)
});
}
</script>


This information — that the user has an active session at googxauthdemo.appspot.com — is now available to any site on the web (because extend: ["*"] uses the wildcard case to make this information world-readable; providers can also choose to restrict access to this information to certain domains or partners).



Upon returning to meebo.com/xauth, the page requests the list of active sessions from XAuth, and passes the browser an array of domains that the browser will match against the local storage for xauth.org:



<script type="text/javascript">
XAuth.retrieve({
retrieve: ['xauth.org', 'googxauthdemo.appspot.com', 'xauthdemo.mslivelabs.com'],
callback: receiveTokens }
);
</script>


The major performance and scalability benefits of this design are a result of the single HTTP request made to xauth.org to determine which services are currently active, rather than one-request-per-domain. The request and response are also purely client-side, so there's no waiting for a server to look up anything in a database — and the XAuth JavaScript files get cached after they are first retrieved, making XAuth overall very efficient.



Once the tokens are retrieved the program iterates through them looking for matches, and then modifies the interface according the service token discovered, like this:



<script type="text/javascript">
function receiveTokens(responseObj) {
var tokens = responseObj.tokens;
var token = tokens['xauth.org'];
var partners = {};
var tokensFound = false;
if (tokens['googxauthdemo.appspot.com']) {
partners['google'] = true;
tokensFound = true;
var status = document.getElementById('status-google');
status.innerHTML = 'Signed In!';
status.style.color = '#0A0';
}
}
</script>


In this way, site publishers can detect a user's set of active and preferred services, or request a subset of known services, and present only those services which are known to be currently active. In practice, the list of services provided at any given time by xauth.org should not be considered exhaustive, but instead a suggestion for how to prioritize complex service selection dialogs and interfaces, like those known as "NASCAR" interfaces.



For more technical information about XAuth, please read the spec, or visit the informational page on xauth.org.



He Does Not Take A Good Picture



Sortly after this picture was taken, Carrot Top ate that little bunny after a fit of 'roid rage.

Sunday, April 18, 2010

Sunday Video: A New TV Edit Classic

TV dialogue edits are sometimes good for a laugh. And I found a new classic to add to the pantheon of interesting choices: Snakes on a Plane.

I think this is in the same class as The Big Lebowski's "This is what happens when you Find a stranger in the Alps!" and one of my personal favorites "Die Screaming My old Friend" from A Long Kiss Goodnight.



I think I would have went with Mighty Fine for the second one in that clip. But that is just me.

Saturday, April 17, 2010

Eyjafjallajökull (Iceland Volcano): No Climate Impacts. Local Weather Update


A few media outlets are starting to talk about a climatic impact of the Iceland volcano, but they shouldn't be. First, this is really a pretty modest event. But even more important, it is NOT ejecting large amounts of sulfur dioxide into the stratosphere, which is the main way volcanoes alter climate. As noted in my last blog, sulfur dioxide combines with water vapor to create small sulphuric acid particles that scatter some of the sun's rays back into space. The result is global cooling--up to a degree or two C for the big eruptions.

We have satellites that can measure sulfur dioxide (SO2) from space, one of them being the NASA OMI instrument on its AQUA satellite. Here is a recent image showing total SO2 in a vertical column--no real evidence of volcano SO2 in this and previous images.

In contrast, here is another image from an Alaskan (Aleutian chain) volcano

that had much more prodigious SO2 production. Lots of red...that means plenty of SO2.


Another point is the latitude of the eruption: being far north limits that ability of the SO2 to spread into the equatorial zone and the southern hemisphere.

I suspect the authorities in Europe are being conservative, perhaps too conservative, in canceling flights and closing airports. With some effort, the altitudes and locations of the dust cloud could be accurately delineated and flights could simply be vectored away from the areas of higher concentrations. Furthermore, a lot of the dust coverage over Europe is very thin--is that REALLY a problem for a jet engine? This is really a minor eruption and it seems unlikely that it could spread a sufficiently dense layer of dust over the volume of air in which air traffic restrictions are taking place.

They are being careful, and lets face it, aviation authorities over Europe don't have much experience with such dust events. Long range weather predictions indicate the later in the week the flow over most of Europe will turn more southwesterly, so even if the volcano is going wild most European airports should be functional.

Perhaps some old prop planes (driven by gas engines and not turbines) can be taken out of storage...they do much better with volcanic dust, since the blades of jet turbines are the real vulnerability in volcanic dust clouds.

Want to see an example of an old prop plane flying close to a major eruption? A few hours after the initial Mt. St. Helens eruption, Professor Peter Hobbs and Research Scientist Larry Radke took a UW research aircraft (prop plane) up to and into portions of the volcanic cloud...and lived to tell the tale. You can watch some video of their daring flight: http://pluie.atmos.washington.edu/movies/msh_sm.wmv

Finally, for those of us in the Northwest, tomorrow should be a splendid day. The front is moving through now and the showers are lessening. We should see sun and temperatures climbing into the 60s for the lowlands. Some people has asked whether some of the dust on their cars is volcanic dust. The answer is no. Most of the gunk is pollen from trees and plants. I had to wash my car yesterday...it was covered with the stuff!