<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>techno.blog(&#34;Dion&#34;) &#187; Google</title>
	<atom:link href="http://almaer.com/blog/tag/google/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Tue, 28 Aug 2012 14:41:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OneRiot has entered your Google</title>
		<link>http://almaer.com/blog/oneriot-has-entered-your-google</link>
		<comments>http://almaer.com/blog/oneriot-has-entered-your-google#comments</comments>
		<pubDate>Wed, 12 Nov 2008 12:01:58 +0000</pubDate>
		<dc:creator>dion</dc:creator>
				<category><![CDATA[Search]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[oneriot]]></category>

		<guid isPermaLink="false">http://almaer.com/blog/oneriot-has-entered-your-google</guid>
		<description><![CDATA[Tobias Peggs told me about the rebranding of Me.dium to OneRiot to show the change in direction from a &#8220;social browsing&#8221; company to a real-time search solution.
As a little experiment, to coincide with their launch today, I whipped up a little bit of Greasemonkey goodness in the form of OneRiot in your Google.
The premise is [...]]]></description>
			<content:encoded><![CDATA[<p>Tobias Peggs told me about the rebranding of Me.dium to <a href="http://www.oneriot.com">OneRiot</a> to show the change in direction from a &#8220;social browsing&#8221; company to a real-time search solution.</p>
<p>As a little experiment, to coincide with their launch today, I whipped up a little bit of Greasemonkey goodness in the form of <a href="http://almaer.com/firefox/userscripts/oneriot-google.user.js">OneRiot in your Google</a>.</p>
<p>The premise is simple, and you have probably seen it before. When you do a Google search, this userscript will head over to OneRiot to do the search there. The top result will then pop-in to the results.</p>
<p>I always tend to do something like this when a new search engine comes out. I am not mentally going to switch from using Google, so bring the mountain to Mohamed and plug in the top result to Google itself. This way, if it shows me something truly new (read: not the same as what Google gives me and still useful) then I will maybe pay more attention to it in the future.</p>
<p>Most of the work itself is infrastructure crud to get around loading up jQuery. Oh for a better way to load standard libraries!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// ==UserScript==</span>
<span style="color: #006600; font-style: italic;">// @name          OneRiot in your Google</span>
<span style="color: #006600; font-style: italic;">// @namespace     http://almaer.com/firefox/userscripts/</span>
<span style="color: #006600; font-style: italic;">// @description   Add a riot to your Google</span>
<span style="color: #006600; font-style: italic;">// @include       http://*google.com/search*</span>
<span style="color: #006600; font-style: italic;">// ==/UserScript==</span>
&nbsp;
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">// Add jQuery</span>
	<span style="color: #003366; font-weight: bold;">var</span> $<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> query <span style="color: #339933;">=</span> parseQuery<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> oneriotURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://www.oneriot.com/search?q='</span> <span style="color: #339933;">+</span> query<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> script <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	script.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'</span><span style="color: #339933;">;</span>
	script.<span style="color: #660066;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>script<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// Check if jQuery's loaded</span>
	<span style="color: #003366; font-weight: bold;">function</span> jQueryCheck<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> unsafeWindow.<span style="color: #660066;">jQuery</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span>jQueryCheck<span style="color: #339933;">,</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> $ <span style="color: #339933;">=</span> unsafeWindow.<span style="color: #660066;">jQuery</span><span style="color: #339933;">;</span> jQueryReady<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	jQueryCheck<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// The Real Work</span>
	<span style="color: #003366; font-weight: bold;">function</span> jQueryReady<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		GM_xmlhttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		    method<span style="color: #339933;">:</span> <span style="color: #3366CC;">'GET'</span><span style="color: #339933;">,</span>
		    url<span style="color: #339933;">:</span> oneriotURL<span style="color: #339933;">,</span>
		    <span style="color: #000066;">onload</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// Get the first result from OneRiot</span>
				<span style="color: #003366; font-weight: bold;">var</span> resulttitle <span style="color: #339933;">=</span> response.<span style="color: #660066;">responseText</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/(\&lt;a class=&quot;result_title&quot;.*?\&lt;\/a\&gt;)/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
				<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>resulttitle<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> title <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>resulttitle<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> url <span style="color: #339933;">=</span> title.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> title<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textContent</span><span style="color: #339933;">;</span>
					<span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;oneriot&quot; style=&quot;padding: 2px;&quot;&gt;&lt;a href=&quot;http://oneriot.com/&quot; title=&quot;Visit oneriot.com&quot;&gt;&lt;img src=&quot;http://almaer.com/dion/images/oneriot_logo.png&quot; border=&quot;0&quot; style=&quot;margin-right: 4px;&quot;/&gt;&lt;/a&gt; &lt;a href=&quot;'</span> <span style="color: #339933;">+</span> url <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; title=&quot;View the OneRiot result&quot;&gt;'</span> <span style="color: #339933;">+</span> text <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt; &lt;a href=&quot;'</span> <span style="color: #339933;">+</span> oneriotURL <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; style=&quot;color: #3399FF; padding: 0 8px;&quot; title=&quot;See more results for this query on the oneriot.com website&quot;&gt;more oneriot results&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#ssb'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">after</span><span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Add it to the Google DOM at the top</span>
				<span style="color: #009900;">&#125;</span>
		    <span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// Get the Google query from the query string</span>
	<span style="color: #003366; font-weight: bold;">function</span> parseQuery<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">search</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\&amp;q=(.*?)\&amp;/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>result <span style="color: #339933;">&amp;&amp;</span> result.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">return</span> result<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><img src='http://almaer.com/blog/uploads/oneriotatgoogle.png' alt='OneRiot at Google' border='0'/></p>
<p>OneRiot seems to do well for certain queries. This example does a good job at showing it off. In the Obama search, instead of just getting BarackObama.com, it shows recent news. That is why it is a nice complement to traditional search engines.</p>
<p>Kudos to the OneRiot team on the launch!</p>
]]></content:encoded>
			<wfw:commentRss>http://almaer.com/blog/oneriot-has-entered-your-google/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Gmail now supports IMAP</title>
		<link>http://almaer.com/blog/gmail-now-supports-imap</link>
		<comments>http://almaer.com/blog/gmail-now-supports-imap#comments</comments>
		<pubDate>Wed, 24 Oct 2007 13:58:47 +0000</pubDate>
		<dc:creator>dion</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>

		<guid isPermaLink="false">http://almaer.com/blog/gmail-now-supports-imap</guid>
		<description><![CDATA[I was really excited when I logged in to Gmail and saw the new settings:

I think this is my number one feature request for Gmail, so it is great to see it role out. Since Gmail is tag/label based, it isn&#8217;t as easy to implement IMAP as it may seem, so good job dev team!
The [...]]]></description>
			<content:encoded><![CDATA[<p>I was really excited when I logged in to Gmail and saw the new settings:</p>
<p><a href='http://mail.google.com/support/bin/answer.py?ctx=gmail&#038;hl=en&#038;answer=75725' title='Gmail Imap'><img src='http://almaer.com/blog/uploads/gmailimap.png' alt='Gmail Imap' /></a></p>
<p>I think this is my number one feature request for Gmail, so it is great to see it role out. Since Gmail is tag/label based, it isn&#8217;t as easy to implement IMAP as it may seem, so good job dev team!</p>
<p>The reason that I personally care is that I have been able to do this for my corporate account:</p>
<p><a href="https://mail.google.com/support/bin/answer.py?answer=77702"><img src="http://www.google.com/help/hc/images/gmail_77702c_en.gif" border="0" /></a></p>
<p>And now, I can finally do the same for my personal email account. Check out the automatic labels that you get.</p>
]]></content:encoded>
			<wfw:commentRss>http://almaer.com/blog/gmail-now-supports-imap/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
