Monthly Archives: February 2009

Search google code using firefox search plugin

Why isn’t there a google code search addon that uses the FireFox search toolbar? Well here’s one that I made until they publish it on the addon’s site.

<searchplugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os :shortname>Google Code</os>
<os :description>Search Google Code</os>
<os :inputencoding>UTF-8</os>
<os :image height="16" width="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAKnRFWHRDcmVhdGlvbiBUaW1lAFNhIDEgTm92IDIwMDggMTQ6NDk6MjEgKzAxMDBOQ0Z3AAAAB3RJTUUH2AsBDTQ5ESKKOgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAJhUExURTy1RNwaADdb1v/y//7/4/////b6/f/8///4///29tslGhVr0u////b9/+X2/VdzvBoljxMsoBMxxRY/vw4qyx1CtGKEqeT29tEfHRlf2/7/9Pv/4ODm/CgmiwsWpImP2ef5//z/8+//8+3//6/S+gATVqq2wtYfDR9W9+f4/yAuxQ8Sn7zX//f/+/7////07fn7/9Dl/xUfgKOpzc4UGSJg2fX/63qk1gAlvXyPx+7/9vn////7//7/9sLO/jE3sRUqqiUztoaP0Pz999IkGRte0fP//0Ju2wAilvj79P/9/ffx//T//+j/9sTb48rq+dLn/8rT8v3/6ccjABRh4SZbyxxJsP/4+v/w9vL8/f/3//7/+P/9+vv//v/9///42dYgLydT1u7//SJuuRxasf/9+P/6///1+v79//z/9vT/6v/5+90YEiFY6Pf//2+a6Rw4tf/1///8+v/6/vD///H////09Pv///f/7f/6/MsUDh1o5/X7/4GZ3xc7k9PZ+fj/5vD/9/j/4ff/8fv6//X/8c0qACBcyvj//2WF2CM1mer5//r+7//8/fj9/83c88rS1Pf/8//589IoDxVjz+3/9sH1/0Z0yhMzut3r/+n///z//+j//8nX/xw4jCkwdO7u///z/9EQBxVc9u7//9fy/36e6VporyQ6sRoyxgQ2sTFguG+s77/e8PT/8//45s4mAC9b2Pb66/v19+v//uT2/+Hf7PL///Dw+Pn9///2///6+P/x+cwuIgdj6Fa2Ski2OU+tVU2zRUO4UFWzOU2xQU21UlC4PUe5Sky0Oy23QL/oQ4IAAAEMSURBVHjaY9i3/8DBQ4ePHD3GcPzEyVMMDAwbN7FuZtlSvnXb9h07d+3es5dhcUfHkqXLlq9YuWr1mrXr1m9gmBI9ddr0GTNnzZ4zd978BQsXMbSzdHR2dbP09Pax90+YOGkyQ3VNbV19XkNjU3NUC3trUBtDbl5+QWGRVHFJaVm5VEVlFUNiUnJKUGpaFDt7ekZmVnYOQ4hyaFh4hFRkVHRMbFxQfAKDq5u7h6eXN6uPr59/QGBQMIOpmbmFpZW1ja2dvYOjk7MLgwarppa2jq6ePruBoZExiwmDpJS0jKycvIKikrKKqhqLOgM3Dy8vH7+AoJCwiKiYOKsEAxMzCysUsLFzcHIxoAFGALW1VP5QbPUrAAAAAElFTkSuQmCC</os>
<updateinterval>7</updateinterval>
<searchform>http://www.google.com/codesearch</searchform>
<os :url template="http://www.google.com/codesearch?q={searchTerms}" method="GET" type="text/html">
</os>
</searchplugin>

Download

google code search plugin for FireFox

Installation

Put just downloaded XML file to the directory under the next path:

in Windows – %AppData%\Mozilla\Firefox\Profiles\%FirefoxProfile%\SearchPlugins\

 

in Liunx – ~/.mozilla/firefox/%FirefoxProfile%/SearchPlugins/

 

in Mac – ~/Library/Application Support/Firefox/Profiles/%FirefoxProfile%/SearchPlugins/

 

where

%AppData% – current user Application Data directory under his home directory, e.g. C:\Documents and Settings\User\Application Data\ in Windows XP, Server 2003 and C:\Users\User\AppData\Roaming\ in Windows Vista, Windows 7 and Server 2008

%FirefoxProfile% – current Firefox profile directory, e.g. 1ab2cdef.default

Reference: http://godfather.net.ru/software/firefox/search/Installation.aspx

Advertisements
Tagged ,

The template you have chosen is invalid or cannot be found.

I lost 3 hours of my life to a stupid collision of template ID’s. Creating a site collection or child web based on one of my custom templates kept failing with the following UI error message

"The template you have chosen is invalid or cannot be found."

The SharePoint logs were less than helpful:

02/15/2009 14:32:22.97     output.exe (0x10CC)                         0x1E14    Windows SharePoint Services       General                           72k2    High        Failed to apply template "xxxxxx#0" to web at URL http://xxxxxx/sites/test2, error The template you have chosen is invalid or cannot be found. 0x81071e44    

02/15/2009 14:32:22.97     output.exe (0x10CC)                         0x1E14    Windows SharePoint Services       General                           8kh7    High        The template you have chosen is invalid or cannot be found.  

Solution:

Make sure all of the site definition configurations located in %programfiles%\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\1033\XML have a unique IDs. Microsoft suggests ID values above 10000 to avoid conflicts with future Microsoft supplied site definitions (http://msdn.microsoft.com/en-us/library/ms441616.aspx). Most custom site definitions therefore use 10001 and if two site definitions have the same ID you wind up wasting several hours trying to figure out why it’s not provisioning your site definition.

Tagged