The query: Protocol

Update: I implemented this idea at http://queryprotocol.appspot.com. Comments, questions, and suggestions are welcome!

When trying to explain a concept to others over email, I often find myself linking to a search engine’s result pages for a specific query, instead of a single destination URL. These are non-navigational queries, and there is no single result that I expect to be the most important one. Instead, my intention is to provide the reader a variety of links on the topic such that s/he may draw her own conclusions, or solve their own problem — all they need is a nudge towards the right query term to use. If, over time, better search results are available for the same query, then future readers get the benefit of automatically updated results.

E.g. Q: Where can I find the latest numbers related to the spread of the Swine Flu?
A: Try [H1N1 update].

To do this today, I simply link to my favorite search engine, Google. But that does not seem fair to fans of other search engines: Bing, Yahoo!, Altavista, and others. I would prefer to use a notation that allows the reader to use their choice of search engine to obtain the results. Just as we specify our default browser and default email client, we should be able to pick our default search engine.

We have already solved the first two problems (picking default browsers and email clients) using protocol handlers in the operating system. When I pass around a link to a web page, starting with http://, I do not specify the browser it should open in. Your operating system determines that it’s a link to a hyper-text transfer protocol (HTTP) document, and invokes your default browser. Similarly, for emails, the mailto: protocol provides for an application-agnostic way to invoke the user’s default email client to send an email.

It is easy to see how a query: protocol could be implemented similarly. To point you to the search results for a particular term, I would send you the following link: (don’t click on it, it won’t work — at least as of this writing.)

[h1n1 update]

The URL that the above links to is query:h1n1+update. Note there’s no HTTP protocol marker specified. If the OS wanted, it could provide local results as well. This means that the protocol extends seamlessly to Desktop Search as well.

Syntactically, this validates as a URI. Just as the mailto: protocol handler defines standard parameter names, subject, cc, and bcc, similar parameters can be standardized for the query: protocol. These may include corpus restricts (corpus={web, images, desktop, ...}), pagination controls (start=0, num=10), or domain restricts (site=manas.tungare.name).

Implementation is simple: all operating systems and major browsers support external custom protocol handlers. They can be configured as follows:

Protocol Prefix: query
Application Name: /Path/to/Application

The application does not need to be very complicated. It’s a mere stub, which, depending upon the user’s preferred search engine, converts a URI of the form query:h1n1+update to http://google.com/search?q=h1n1+update or http://bing.com/search?q=h1n1+update and opens that link in the user’s default browser.

Eventually, if browsers understand the query: protocol, there is no need for the stub application, and users may be able to share and exchange queries and yet seek results using their favorite search engines.

(The opinions expressed in this blog post are solely my own, and may not reflect the opinions of my employer, Google.)

An awesome “prank” on the Virginia Tech campus

21 Oct, 2007 — Academic, Funny, Life, Microsoft, Sightings

I received the following email a few minutes ago, with fake headers and the works, and is formatted exactly the same way as the regular email we get from these folks. It’s probably viral marketing for the upcoming game, Portal, releasing November 23, 2007. Lots of references to it in the text.

1. UNDERGROUND HALLOWEEN ADVENTURE
2. BOBBY FISCHER – ENDED THE SOVIET CHESS HEGEMONY
3. SELECTING YOUR CABLE COMPANY IN BLACKSBURG
4. PI EATING CONTEST
5. POSSIBLE BAG BAN
6. DONALDSON-BROWN LOCKS TO BE CHANGED
7. ODD – OPEN DOOR DAY
8. MICROSOFT VISTA SERVICE PACK DEMO
9. WEEKLY SPEAKER SERIES
10. REGISTRATION FOR DEAN’S FORUM ON HEALTH, FOOD AND NUTRITION
11. STUDY PARTICIPANTS NEEDED

1. UNDERGROUND HALLOWEEN ADVENTURE
A Halloween tour of the steam tunnels beneath campus will be offered for the first time this year to four groups of eight people on Oct. 29th and 30th. Sign-up for each of the four tours will begin on Monday, October 22nd, and continue until all places are taken. Interested parties should contact Richard McCoy at 231-3200 for more information.

2. BOBBY FISCHER – ENDED THE SOVIET CHESS HEGEMONY
Monday, Oct 22, 5:30-7:00 in Williamsburg Rm, 7:00-8:00 in Haymarket Theater in Squires Center The man who ended the Soviet chess hegemony by defeating Boris Spassky will speak at Virginia Tech. A reception will precede his presentation at 7:00pm. Robert James “Bobby” Fischer is a United States-born chess Grandmaster who in 1972 became the only US-born chess player to become the official World Chess Champion. Fischer’s victory during the Cold War caused a great interest in chess and is responsible for the swelling of members of the World Chess Federation.

3. SELECTING YOUR CABLE COMPANY IN BLACKSBURG
Sometime between Tuesday, Oct 23 08:00am and next Friday, Nov 2 7:00pm in Room C in the GLC Are you interested in purchasing a subscription package from your local cable company? Presenters from NTC Communications Comcast Digital Cable and Cox Communications will talk about the different internet, phone and cable packages available and answer questions about rates and programming.

4. PI EATING CONTEST
Tuesday, Oct 23, 7:00pm in Room F in the GLC the VT Math club is sponsoring a Pi festival. Approximately 3,141 pies will be available for sampling. They will include but are not limited to Apple, Banoffee, Banana cream, Blackberry, Blueberry, Cheesecake, Cherry, Chestnut, Cream, Custard, Grape, Lemon meringue, Peach, Pecan, Pumpkin, and Rhubarb. In addition, at 7:30 there will also be a pie eating contest. The first contestant to eat an irrational number of pies will receive a hand-carved Penrose triangle.

5. POSSIBLE BAG BAN
Due to the heightened security of many university campuses, a possible ban of all bags on campus may be implemented in the next two weeks. Backpacks, duffels, shoulder-bags, and purses may soon join the list of items prohibited on campus. This measure has been proposed since it has been pointed out that bags may be able to conceal already illegal items. An unlikely supporter of the ban is the campus Health and Safety Department as it would also alleviate the troubling phenomenon of overweight book bags that commonly lead to health problems later in life. Acceptance of the proposal will be decided by the campus Board of Directors later this week.

6. DONALDSON-BROWN LOCKS TO BE CHANGED
It has come to the attention of university security personnel that many graduate students have access to the GLC 24 hours a day. In order to remedy this threat to campus security, all doors to the GLC will have their locks changed between Monday evening and Tuesday morning. In addition, Donaldson Brown dorm rooms will also have their locks changed on a short rotation. You may need to request a new room key from your Residential Fellow.

7. ODD – OPEN DOOR DAY
To help promote social interaction amongst the graduate students, Thurs, Oct 25, will be open door day. Graduate students on campus are encouraged to keep their door open and meet their neighbors as well as their Residential Fellow if they have not done so already. We are aware that the doors in the GLC rooms close on their own, this is why you have been provided with doorstops. Use them! Hopefully open door day will become more routine and no longer considered odd.

8. MICROSOFT VISTA SERVICE PACK DEMO
Wednesday, Oct 24, 6:00-7:00pm in McBryde 666, Microsoft will be giving an exclusive preview of service pack one for Vista. In response to the massive number of problems, compatibility, and stability issues in Vista, Microsoft has spent the past year fervently addressing these issues in the much anticipated service pack 1 (SP1). Representives from Microsoft will demonstrate the features and stability changes of SP1, such as the newly bolstered DRM software. This update and others in SP1 that will be demonstrated should help provide Vista users with new enhanced reduced functionality.

9. WEEKLY SPEAKER SERIES
Friday, Oct 26, 4:00-5:00pm in Room F in the GLC Faculty speaker: Dr. Henry Warren – Physics, on Structure of the Proton. Graduate students and faculty from across the university present weekly their teaching and research passions in a casual, coffee house atmosphere. Free coffee and pastries served from 3:45pm.

10. REGISTRATION FOR DEAN’S FORUM ON HEALTH, FOOD AND NUTRITION
Registration for the Nov 5 forum is now open. This forum will showcase health, food, and nutrition efforts in research, extension/outreach, and teaching currently underway at McDonalds, Kraft Foods, Monsanto, and LuthorCorp. Register by Sunday, Oct 28 if you plan on attending the event. Sponsors will showcase the health benefits of the latest developments in GMOs, growth hormones, preservatives, artificial sweeteners, hydrogenated oils, flavoring and texturizing food additives. For more information, including registration links, and to view the Forum agenda, please visit http://www.mcvideogame.com/index-eng.html

11. STUDY PARTICIPANTS NEEDED
A graduate student researcher working on behalf of Aperture Science is seeking highly-motivated individuals in good physical condition between the ages of 18-25 for her study. Participants will be asked to perform complex tasks. The entire study should last a minimum of 3 hours and moist, delicious cake will be served upon successful completion of the test. For further information or to sign up to participate, please contact Glados, glados@aperturescience.com

Microsoft on a Vote-Buying Spree for MSOOXML Standardization

The company everybody loves to hate (for good reasons, mostly) is now on a shopping spree, buying Standards Organizations in various countries to get them to vote YES on a proposed vote by the International Standards Organization to accept their binary-in-XML-clothing file format as a standard.

There are numerous good reasons why MSOOXML should not be accepted as an international standard, all nicely summarized in this document from Google, expressing their opposition to the proposal in technical terms, not political.

But the only thing today that maintains Microsoft’s monopoly in the office document market is their use of proprietary locked formats, and they would hate to lose this unfair advantage. So they have been busy manipulating the voting process in Germany, Portugal, Switzerland, The Netherlands, and Sweden (also here).

These days money can buy anything. Or anyone.

And Microsoft was never big on ethics anyway. Shame on you, Microsoft.

Update: Following coverage in the Swedish media about the Microsoft payola, Microsoft admitted to an email sent to their partners assuring market benefits and reimbursement for joining fees. The Swedish standards organization has now decided to change its decision to ‘abstain’ [PDF] because of the irregularities in the process. Hungary is also set to reconsider its vote.

A complete discussion of all objections to the standardization of MSOOXML is available from GrokDoc. Especially galling is Microsoft’s insistence on declaring the 500-year old Gregorian calendar incorrect and forcing the rest of the world to consider 1900 as a leap year because of an acknowledged bug in Excel.

Microsoft doesn’t want Mac users to switch!

1 Feb, 2007 — Microsoft, Sightings, Stupid

Which, on the whole, is a Good Thing™. But the way they convey the message is disgusting.

A friend pointed me to Microsoft India’s Vista Promotion (for its humor value, of course), which I tried to access using Safari on my Mac. This is the page I got back:


<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1">
<META HTTP-EQUIV="Pragma" CONTENT="no cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD></HTML>

It is not as innocuous as it may look; there’s an infinite redirect loop on line 1. Safari didn’t crash, of course, but MS still tried.

I figured I’d see what happened if I changed the user-agent string (which, by the way, is how websites can identify what browser you are using.) I asked Safari to masquerade as Internet Explorer using a fake user-agent string, just for kicks. And lo!, the entire page showed up! Quelle surprise!

Microsoft have pulled this trick before during the launch of Windows XP (and again, and again). Will they never learn? Will they ever stop being such immature kids and not try to prevent competing browsers from viewing their websites?

I would’ve said they just lost a customer, but I wasn’t one to begin with, so that doesn’t make much sense.

Vista Promotion, as viewed in Safari/Mac OS X
Switching User Agents, from Safari/Mac OS X to MSIE/Windows
Vista Promotion, as viewed in Safari masquerading as MSIE/Windows


Plays? For Sure? No, Really?

6 Nov, 2006 — Apple, Microsoft, Sightings, Stupid

Users who bought music from Microsoft’s MSN Music Store (no one I know, but still) will not be able to play it on the newly-announced Zune portable player. (Oh, did I mention Zune is made by Microsoft too?)

Let’s see how many different classes of people they’ve alienated this time:

  1. There are the users who bought players from their hardware partners. If they want to “upgrade” to a Zune, they’ll have to re-buy their music.
  2. Their hardware partners, because this is going to affect their sales, no doubt.
  3. Their music suppliers, because they’re discontinuing the MSN Store.
  4. And this is in addition to all of us Mac OS X and Linux users for whom Microsoft doesn’t even have a media player (not that we care, but still.)

From playsforsure.com:

Look for the PlaysForSure logo if you’re shopping for a music or video device and you want to make sure the digital music and video you purchase will play back on it every time.

Heh. I’d just buy an iPod, then. :)

And the irony to top it all is that this initiative was called ‘Plays for Sure’. Yeah, right.

Next Page »