Playing with Ubiquity

Mozilla’s Ubiquity seems like a fairly neat idea.  It has its rough edges and glitches, but the idea seems promising.  I decided to give it a shot, and make a command to lookup bus routes here in Seattle.

    name: "bus-schedule",
    takes: {"route": noun_arb_text},
    icon: "",
    homepage: "",
    author: {name: "Adam Sanderson", email: ""},
    license: "MPL",
    description: "Look up King County Metro bus route",
    help: "Select a bus route",

    _url: function(directObject){
      var url = "{QUERY}"
      var urlString = url.replace("{QUERY}", directObject.text);
      return urlString;

    execute: function(directObject){
        var urlString = this._url(directObject);

    preview: function(pblock, directObject){
        searchText = jQuery.trim(directObject.text);
        if(searchText.length <= 0) {
          pblock.innerHTML = "Look up King County Metro bus route";
        } else {
          jQuery.get( this._url(directObject), function(res) {
            var previewTemplate = "Look up route ${query} (${ok})";
            var ok = !res.match("No Schedule") ? "<em>Found</em>" : "<em> Not Found</em>";
            var previewData = {query: searchText, ok: ok};
            pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);

One thing I really like about Ubiquity is that you can get a fairly rich preview.  This command for instance lets you know if the bus route you’re looking for is listed, not rocket science, but handy all the same.  For a nicely formatted version of this command, or to install it, check out the gist.

One thing left me a little puzzled about Ubiquity, why another text interface?  We already have the url bar, couldn’t Ubiquity launch from there?


1 Comment

Filed under Uncategorized

One response to “Playing with Ubiquity

  1. A despair is the area inside of a tooth that remaining areas once tooth rot is uprooted.
    Plaque, a dreary, sticky movie of microbes that always buildings
    on teeth, is one of the basic driver of tooth
    rot. The cause we brush and floss constantly is to uproot plaque, on the grounds that microbes in plaque
    responds with sugar in the nourishments we take
    in to create acids that can assault and debilitate tooth lacquer the hard, defensive blanket on our enamel.
    Disintegrating polish leaves the teeth unprotected,
    having into account holes to create all the more properly.

    On the gnawing surfaces of the tooth. This takes place when plaque gets to be caught in the notches or cleft of the teeth.
    This is most standard in kids, in gentle of the truth that they often overlook these ranges
    when brushing.

    This happens when plaque is still left to build on the hard-to-achieve
    surfaces. These areas can not be arrived at by a toothbrush on your own and
    may be defenseless to rot on the off likelihood that you don’t floss or thoroughly clean among your enamel,

    This is standard in the celebration that you have endured
    gum subsidence or bone misfortune, often connected with gum illness, or
    periodontitis. It’s furthermore a lot more typical to
    find out rot listed here as you get much more recognized if your gums retreat.
    On the off possibility that plaque is remaining to create on the uncovered bases of the
    teeth, then a hole can rapidly develop in mild of the reality that
    roots don’t have the identical difficult veneer coating.

    Thankfully, there are quite a few factors you can do to assist keep the development of a pit.

    Endeavor this dental professional proposed oral forethought plan:

    Use toothpaste or mouthwash made up of fluoride,
    an executor that fortifies enamel and aides foresee pits

    Consider soon after a solid ingesting methodology and dodge sugary sustenances and drinks

    Prepare typical visits with your dental practitioner, rather
    almost at normal intervals, for a routine cleansing and examination

    Maintain in brain to alter your toothbrush when it looks worn, or at regular intervals, on the
    grounds that the much more recent the abounds, the much more
    plaque the brush has the potential uproot

    You should to anticipate seeing your dental practitioner two times a 12
    months for checkups. Even though checkups can change, your dental practitioner will doubtlessly examine
    your enamel and gums for any obvious issues, which includes the improvement of a melancholy.
    He or she may possibly additionally take X-beams
    to confirm there aren’t any troubles that aren’t yet visible.
    Your dental professional may possibly furthermore professionally clear your teeth to expel solidified
    plaque from over and beneath the gum line, and glow them to
    expel plaque and stains from the tooth surface. Also keep in mind your dental expert can similarly give master course
    on brushing and flossing.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s