Born Geek on GitHub

March 21, 2014

I have uploaded the source of both CoLT and Googlebar Lite to GitHub:

This should make it way easier for folks to submit new ideas and bug reports for each extension, provide patches (if you feel so inclined), and view sample code for Firefox extension development. I’ve already posted a few issues to the CoLT repo, and a number should be appearing for Googlebar Lite as well.

Comments Off Tags: , ,

Australis to Cause Problems

March 19, 2014

Firefox 29, the next version as of this writing, will bring with it a brand new interface called Australis. This interface is changing loads of toolbar structure, which may negatively impact Googlebar Lite.

I’m posting this warning ahead of time to let you know that I will definitely work towards making Googlebar Lite compatible with this new theme. However, doing so will take some time and effort. As such, don’t be surprised if support for this new theme isn’t immediately available. I may have to bump the minVersion of whatever new version I release to 29.0, in order to prevent breakage in older browsers.

Until I set up a development sandbox with the latest build, I won’t know how bad the breakage will be. Until then, please be forewarned that there’s some turbulence ahead.

Googlebar Lite 4.9.11

March 16, 2014

Googlebar Lite 4.9.11 is now available to download. Here’s the change log:

  • Googlebar Lite context menu items can now be middle clicked to open in a new tab
  • Search history is now asynchronous thanks to the FormHistory JavaScript module
  • Changed a few of the default context menu display settings
  • Removed a deprecated means of detecting private browsing
  • Bumped the minVersion to 24.0
  • Bumped the maxVersion to 45.*
Comments Off Tags:

Using the FormHistory Module

March 4, 2014

In recent times, Mozilla has deprecated the nsIFormHistory2 and nsIFormHistory interfaces (see bug 878677 for more information), replacing both with the FormHistory.jsm module. This module provides an asynchronous way to store form history items, which is good for performance. Like many of the Mozilla interfaces, however, documentation is nearly non-existent. I like learning by example, and I’ve figured out how the FormHistory module works. Here are a few examples showing how to use it:

// Import the module
Components.utils.import('resource://gre/modules/FormHistory.jsm');

// Remove all stored history for a specific field
// ('GBL-Search-History' in this example)
FormHistory.update({op: "remove", fieldname: "GBL-Search-History"});

// Add specific terms to a specific field
FormHistory.update({op: "bump", fieldname: "GBL-Search-History", 
                    value: termsToStore});

Update: This article previously indicated to use the add operation to add a term to a specific field. That function, however, will result in duplicate entries as of this writing. The bump operation is now what I recommend to use. End Update

As you can see here, the update() function is the one I most care about. This function has several operations (specified by the “op:” property above) available to it:

  • add
  • update
  • remove
  • bump

The header comment in the FormHistory.jsm file details the specifics for these operations, as well as other functions. Hopefully these simple examples will help someone out. It wasn’t immediately clear to me how to use this module when I first switched over.

Comments Off Tags: , ,

Mountain Photos

November 24, 2013

I’ve posted my final photo album from last month’s trip to the mountains. Like before, this is a fairly small album.

Comments Off Tags:

Gorges State Park

November 22, 2013

I’ve just posted some photos from an autumn visit to Gorges state park. The park has improved significantly since I was last there, with the inclusion of a stellar visitor’s center (with some really nice views). Gorges remains one of my favorite state parks!

Comments Off Tags: ,

Lake James State Park

November 16, 2013

I’ve posted another photo album from my trip last month to the Asheville area. This time, the focus is on Lake James State Park, which is located near Marion, NC. This park has incredible vistas of mountain ranges over the lake, and was well worth the visit.

Comments Off Tags: ,

Lake Norman State Park Photos

November 15, 2013

I’ve just posted my Lake Norman State Park photo album, showcasing a few sights from the park. We visited this park last month during a short trip to Asheville. Though it was a cold day, the park was another nice one to visit.

Comments Off Tags: ,

Crowders Mountain State Park

November 3, 2013

Back in early October, I visited Crowders Mountain state park with my girlfriend and my family. Located west of Charlotte, the park is a very nice (and popular!) place to visit, with fantastic views of the surrounding countryside atop the mountain. I’ve just published some photos of our visit. If you’re ever in the area, check it out!

Comments Off Tags: ,

Googlebar Lite 4.9.10

November 1, 2013

I’ve just released a new version of Googlebar Lite, which includes a fix for search word buttons in Firefox 25. If you spot any other problems, please let me know. Here’s the full change log:

  • Simplified a number of service calls using the Services JavaScript module
  • Bug Fix: Word search buttons should now work properly in Firefox 25