Entries from October 2009 ↓

My idea made the Google 10^100 shortlist!

A year ago, when Google asked for “Big Ideas” to improve the lives of as many people as possible, so they could spend 10 million dollars on good works to celebrate their 10th Birthday, I was seriously impressed. This was one serious philanthrohack! Competitions like this almost always create more value than just spending money on stuff, and now Google has shown that over 150,000 people will compete just to win some kudos, help a lot of people, and see their idea brought to life – without even a promise of cash or contracts to the people with the winning ideas.

I had a couple ideas of my own that I thought might fit the bill, and I managed to get one of them out of my head in sufficient detail to submit*. Amazingly, my idea seems to have ended up in the 16 Idea Themes that over 3000 Googlers distilled from over 150,000 submissions!

My submission was one of the two bundled into this theme (other themes had as many as 6 relevant submissions)

My idea, as seen on the Google 10^100 Voting Page

As you might imagine, I’m pretty stoked. Of course, “Enable people to submit bug reports about problems in the real world” is just the first line of a longer submission – not too long – Google wisely required everyone to refine their submission to answering 6 short questions and supplying an optional short video. Good thing, given they got 150,000+ ideas to read through!

Continue reading →

Digital NZ Search Plugin Follow-up

Following up on my previous post about the Christchurch Digital NZ hackfest, I did find the bug in my search plugin script, it was just one of those minor typos that takes ages to find because the error message you got when you tried to use it was completely uninformative. Sigh. However, since I spent most of my time on this during “Mozilla Service Week” I chalked up a few hours there to add to their total. Kudos to Mozilla for organising that and I’ll be sure to take part in a more serious way should they do it again.



Digital NZ has created a Custom Search Builder, and it seems to me that they could add Search Plugin generation to this reasonably easily. All they need to do is take a copy of my sample and use it to create a template the swaps out the content of the ShortName and Description tag, and also the template attribute in the <url> tag – everything else can stay the same. Then they need to add a javascript install link to the search result pages similar to the one here.

Heres what my sample search plugin file looks like (NB: First bit of code I can recall posting in this blog. I promise not to make it a habit.)


<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Digital NZ</ShortName>
<Description>Digital NZ Archive Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,[data string goes here]</Image>
<Url type="text/html" method="get" template="http://search.digitalnz.org/en/search">
<Param name="search_text" value="{searchTerms}"/>
</Url>
</OpenSearchDescription>

The Webserver has to serve up that XML file with a MIME type of application/opensearchdescription+xml

eg using apache, in a directory where .xml isn’t reserved for anything else, one could put this in a .htaccess file:

AddType application/opensearchdescription+xml .xml

It’s also relatively trivial to add something to the headers of a webpage to enable autodiscovery of one or more search plugins. I’ve done that on my example page. Once you’ve done so it’ll appear in the search plugin manager for the browser, like this:

For more details, and how to do other cool things like enabling search completion, see:

OpenSearch Specification
Mozilla article on creating OpenSearch Plugins for Firefox