ClickAider
You are currently browsing the Bogle’s Blog weblog archives for the day Wednesday, December 21st, 2005.

New Google Homepage Module: Local Search

I’ve written an local search module for the Google homepage using the new Homepage API.

You can think of this as the moral equivalent of Berry 411 for the Google home page– it uses AJAX to support quick local searches near your home or work, displaying the results directly on the home page.

To add it to your home page, just click “Add Content” on the Google homepage and enter the following URL:
http://www.thebogles.com/google/local_search.xml

Developers might be interested in the following techniques used in the module:

  • It fetches and reformats external content using Google’s _IG_FetchContent function. This is pretty interesting; it allows you to remix the web for the home page in the style of Greasemonkey, but without requiring any external plugins.
  • It uses client side cookies to remember user state (their current location.) Really, Google should provide this functionality in the API itself, but until then, this will do.

    Sadly, Google doesn’t do geocoding, so I wasn’t able to display an accurate miniature map of the currently selected address as I was hoping to. Hopefull they will add this functionality to their API.

  • Instant Rails

    The Rails folks have achieved great traction by creating a system that’s extremely easy to install and use. Continuing this trend, there’s now Instant Rails:

    Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all preconfigured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment.

    This initial release of Instant Rails is for Windows, but there are plans for ports to Linux, BSD, and OSX.

    Instant rails supports both Webrick and Apache+SCGI– I believe the latter gives better overall performance. Both allow you to make changes to your models, views, and controllers without restarting any services.

    The whole package, including language runtime, web server, database service, and web framework, is less than 38 MB. For good measure, you also get PHP and MySQLAdmin, a PHP based MySQL administration tool.

    This is a great challenge to Microsoft– the .NET runtime alone is over 22MB, never mind IIS and SQL Server, and forces you to reboot your machine to complete the installation.

    I should note that I had better luck with the preview5 edition than the preview7 edition. With the latter I could start the WEBrick but not the SCGI version of the server.