<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Gar's Place</title>
	<atom:link href="http://garsplace.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://garsplace.com</link>
	<description>Just a place for my thoughts and ideas...</description>
	<pubDate>Wed, 03 Jun 2009 04:28:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Social Actions Search for Firefox: A quick how-to</title>
		<link>http://garsplace.com/2009/06/02/socialactions-search-for-firefox-a-quick-how-to/</link>
		<comments>http://garsplace.com/2009/06/02/socialactions-search-for-firefox-a-quick-how-to/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 04:01:16 +0000</pubDate>
		<dc:creator>garyes19</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://garsplace.com/?p=25</guid>
		<description><![CDATA[For my first post, I&#8217;d like to discuss my quick, simple entry into the Social Actions Change the Web contest.
Unfortunately, I wasn&#8217;t aware of this contest until it was a little late to do anything too big, so I decided to do a quick search tool for FireFox, as per several request from Social Actions [...]]]></description>
			<content:encoded><![CDATA[<p>For my first post, I&#8217;d like to discuss my quick, simple entry into the Social Actions <a href="http://www.socialactions.com/changetheweb">Change the Web</a> contest.</p>
<p>Unfortunately, I wasn&#8217;t aware of this contest until it was a little late to do anything too big, so I decided to do a quick search tool for FireFox, as per several request from <a href="http://socialactions.com/">Social Actions</a> users and operators.</p>
<p>Writing search plugins for Firefox is a quick way to add a lot of functionality to your browser.</p>
<p>First, the code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;OpenSearchDescription</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://a9.com/-/spec/opensearch/1.1/&quot;</span></span>
<span style="color: #009900;">                       <span style="color: #000066;">xmlns:moz</span>=<span style="color: #ff0000;">&quot;http://www.mozilla.org/2006/browser/search/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ShortName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SocialActions<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ShortName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SocialActions - You make a difference, we make it easy<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;InputEncoding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UTF-8<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/InputEncoding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Image</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;image/x-icon&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://www.socialactions.com/files/socialactions_favicon.ico<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Image<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Url</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/html&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;GET&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;http://search.socialactions.com/actions&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;{searchTerms}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Url</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/html&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;http://search.socialactions.com/actions&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;moz:SearchForm<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://search.socialactions.com/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/moz:SearchForm<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/OpenSearchDescription<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Yep, that&#8217;s all there is to it. As you can see, it&#8217;s simply a matter of plugging in the right information into the template, assuming you know a few things about the search tool you&#8217;re working with.</p>
<p>You can easily figure out everything you need to know by simply making a search and noting the resulting URL. Making a search for &#8216;test&#8217; on Social Actions results in the following URL: </p>
<p><code>http://search.socialactions.com/actions?q=test</code></p>
<p>We can now see that Social Actions uses a <code>q</code> parameter for searches, so we tell the code that the <code>Param name="q"</code> and that its value is <code>{search terms}</code>, which will grab everything that is typed in the search box. Also, we need to tell the code what URL to append these parameters to. Again, from the search result URL, we see that the search URL is <code>http://search.socialactions.com/actions</code>. Now our code knows to append <code>&#038;q=TextFromSearchBox</code> after the search URL, which will then send you to the search engine&#8217;s results page.</p>
<p>Finally, you can polish your search plugin by adding a <code>ShortName</code>, <code>Description</code> and <code>Image</code>.</p>
<p>Once you complete your search plugin, you can add it to <a href="https://addons.mozilla.org/en-US/firefox/">Mozilla&#8217;s add-on site</a> (after testing, of course) so that the world can enjoy your search plugin.</p>
<p>Check out the end result on my <a href="http://garsplace.com/projects/">Projects</a> page or go straight to the <a href="https://addons.mozilla.org/en-US/firefox/addon/11225/">plugin on Mozilla</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://garsplace.com/2009/06/02/socialactions-search-for-firefox-a-quick-how-to/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Site Update</title>
		<link>http://garsplace.com/2009/06/02/projects-page/</link>
		<comments>http://garsplace.com/2009/06/02/projects-page/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 02:00:58 +0000</pubDate>
		<dc:creator>garyes19</dc:creator>
		
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://garsplace.com/?p=56</guid>
		<description><![CDATA[Hello,
Just an update that I added a Projects page to the site. Feel free to check it out as I continue to add all of my public projects to it.
Gary
]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Just an update that I added a <a title="Projects" href="http://garsplace.com/projects/">Projects</a> page to the site. Feel free to check it out as I continue to add all of my public projects to it.</p>
<p>Gary</p>
]]></content:encoded>
			<wfw:commentRss>http://garsplace.com/2009/06/02/projects-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First post</title>
		<link>http://garsplace.com/2009/05/04/first-post/</link>
		<comments>http://garsplace.com/2009/05/04/first-post/#comments</comments>
		<pubDate>Tue, 05 May 2009 04:50:23 +0000</pubDate>
		<dc:creator>garyes19</dc:creator>
		
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://garsplace.com/2009/05/04/first-post/</guid>
		<description><![CDATA[Hello.  This is the first post for this blog.  There is a lot of content on the way.
]]></description>
			<content:encoded><![CDATA[<p>Hello.  This is the first post for this blog.  There is a lot of content on the way.</p>
]]></content:encoded>
			<wfw:commentRss>http://garsplace.com/2009/05/04/first-post/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
