<?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>Erics Tech Blog &#187; google</title>
	<atom:link href="http://eric.lubow.org/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric.lubow.org</link>
	<description>Thoughts, musings, and other idealistic (sometimes useful) systems and development hoopla.</description>
	<lastBuildDate>Fri, 18 Nov 2011 14:56:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Google Securing The Web One Discrete Monopolizing Push At A Time</title>
		<link>http://eric.lubow.org/2011/security/google-securing-the-web-one-discrete-monopolizing-push-at-a-time/</link>
		<comments>http://eric.lubow.org/2011/security/google-securing-the-web-one-discrete-monopolizing-push-at-a-time/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 12:52:31 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=1050</guid>
		<description><![CDATA[Contrary to speculation by some, Google&#8217;s decision for encrypting search data is motivated by the goal to make the web as a whole more secure and it&#8217;s not driven by economic interests. I think Google is silently forcing the internet to do what they should be doing on their own. Google can&#8217;t just tell everyone [...]]]></description>
			<content:encoded><![CDATA[<p>Contrary to speculation by some, Google&#8217;s decision for encrypting search data is motivated by the goal to make the web as a whole more secure and it&#8217;s not driven by economic interests.  I think Google is silently forcing the internet to do what they should be doing on their own.<br />
<span id="more-1050"></span><br />
<img src="http://eric.lubow.org/wp-content/uploads/2011/10/Google-Advanced-Security.png" alt="" title="Google Advanced Security" width="140" height="140" class="alignleft size-full wp-image-1055" />Google can&#8217;t just tell everyone to make their sites operate over SSL.  That would show their monopoly and their power (even though everyone knows it&#8217;s there).  So after <a href="http://blogs.ajc.com/jamie-dupree-washington-insider/2011/09/21/google-testimony-to-congress/">Eric Schmidt spoke to congress</a> about many things (including privacy), Google is finally releasing encrypted search for logged in users.  For more information on everything this means with regard to marketing and SEO, I recommend reading <a href="http://searchengineland.com/google-puts-a-price-on-privacy-98029">this comprehensive article</a> by <a href="http://searchengineland.com/">Search Engine Land</a>.  But for security, this has a whole different meaning.</p>
<p>Looking at this from a slightly different perspective, Google is saying that if you just make your site SSL available, then you can continue to have your referrers.  And that is ultimately what people (read marketers and SEO folks) want anyway.  To oversimplify a bit, making one&#8217;s site available over SSL is as easy as going to <a href="http://www.godaddy.com/">GoDaddy</a> or the like and buying and installing an SSL certificate on your web server.</p>
<p>But what does having this certificate really do?  It allows a website to be loaded in a secure, encrypted environment.  It also allows the browser and the user to validate that the site is who they say they are according to a set of authorities like Verisign or Thawte.  These are the folks whose job it is to verify that the certificate is being issued to a valid company (note that I said valid, not necessarily reputable as it&#8217;s not the job of certificate authorities to determine reputation).</p>
<p>And on a more technical level, as a user, SSL certificates keep traffic between you and the website you are interacting with more secure.  Looking at this via the <a href="http://en.wikipedia.org/wiki/OSI_model">OSI model for networking</a>; since all HTTP traffic happens at the application layer (layer 7), when SSL is not present, everything happens over plain text communications and can be <a href="http://en.wikipedia.org/wiki/Packet_analyzer">sniffed</a>.  SSL, which is a network protocol, occurs at layer 6 (the presentation layer) and therefore can encrypt and decrypt all the communications that happen at layer 7 (if used).</p>
<p>So if we all bit the bullet and added SSL capabilities to our sites, the net result would be a more secure internet from a user perspective.  There are plenty worse things that Google could be doing than forcibly making the internet more secure.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2007/linux-security/10-more-tips-towards-securing-your-linux-system/' rel='bookmark' title='10 More Tips Towards Securing Your Linux System'>10 More Tips Towards Securing Your Linux System</a></li>
<li><a href='http://eric.lubow.org/2009/musings/what-does-web-2-0-mean-to-you/' rel='bookmark' title='What Does Web 2.0 Mean To You?'>What Does Web 2.0 Mean To You?</a></li>
<li><a href='http://eric.lubow.org/2009/ruby/rails/custom-google-maps-marker-with-ym4r_gm/' rel='bookmark' title='Custom Google Maps Marker With YM4R_GM'>Custom Google Maps Marker With YM4R_GM</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2011/security/google-securing-the-web-one-discrete-monopolizing-push-at-a-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Tech Notes And Buzz Updates</title>
		<link>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/</link>
		<comments>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:00:00 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=746</guid>
		<description><![CDATA[Since Google Buzz is Twitterish in the sense that you can post a quick note, but different in the sense that (amongst other things), it can be longer than 140 characters. So in that vein, I&#8217;m starting to try to make a habit of a quick post (a couple per week) of things I do [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://www.google.com/buzz">Google Buzz</a> is <a href="http://twitter.com/">Twitter</a>ish in the sense that you can post a quick note, but different in the sense that (amongst other things), it can be longer than 140 characters.  So in that vein, I&#8217;m starting to try to make a habit of a quick post (a couple per week) of things I do to make my life easier.  This goes both for SysAdmins and for Programmers.<br />
<span id="more-746"></span><br />
I&#8217;ll be adding things for everything from Vim and Bash, to MySQL, Perl, Ruby, Python, and any other language or app that I happen to be using shortcuts in.  If you have another idea or a better way to do something, I&#8217;d love to hear it. So add a comment or hit me up on Twitter (<a href="http://twitter.com/elubow">@elubow</a>). I&#8217;ve already got a few up there so check them out.</p>
<p>And for the record, I am not trying to mimic or one up something like <a href="http://www.commandlinefu.com/">commandlinefu.com</a>.  Just providing things that work well in my world. </p>
<p>The Google Buzz account is <a href="http://www.google.com/buzz/eric.lubow/">here</a>.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2010/databases/mongodb/getting-a-random-record-from-a-mongodb-collection/' rel='bookmark' title='Getting a Random Record From a MongoDB Collection'>Getting a Random Record From a MongoDB Collection</a></li>
<li><a href='http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/' rel='bookmark' title='The Next Step In Browser Evolution'>The Next Step In Browser Evolution</a></li>
<li><a href='http://eric.lubow.org/2009/social-networking/why-idea-people-should-twitter/' rel='bookmark' title='Why Idea People Should Twitter'>Why Idea People Should Twitter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Does Web 2.0 Mean To You?</title>
		<link>http://eric.lubow.org/2009/musings/what-does-web-2-0-mean-to-you/</link>
		<comments>http://eric.lubow.org/2009/musings/what-does-web-2-0-mean-to-you/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 13:00:24 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=492</guid>
		<description><![CDATA[I have been doing a lot of reading and a lot of thinking and trying to decide what exactly Web 2.0 means. What massive advancement in an emerging technology called the internet advocates an increment in major version number? Some people say its the looks. The new feel of the internet with crazy CSS and [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing a lot of reading and a lot of thinking and trying to decide what exactly Web 2.0 means.  What massive advancement in an emerging technology called the internet advocates an increment in major version number?</p>
<p>Some people say its the looks.  The new feel of the internet with crazy CSS and rounded corners and a lighter more airy feeling.  I don&#8217;t think that&#8217;s it.</p>
<p>Some people say that its the AJAX layer that has been added to the internet.  This refers to the layer of interactivity a page web page can give you.  I don&#8217;t think it&#8217;s this either.<br />
<span id="more-492"></span><br />
But this is a technical blog, so one might be expecting a technical answer, right?  Well, it&#8217;s not always technical.  In my opinion, the term Web 2.0 basically encompasses 2 ideas:</p>
<ol>
<li>Search</li>
<li>Low barrier to entry</li>
</ol>
<p>I heard an interesting quote a while back (that I don&#8217;t know who said it), &#8220;The internet is like a library where all the books are strewn on the floor.&#8221;  This is a reference to the internet of old with lots of unindexed and unsearchable pages.  Yahoo! was around, but had very little of the internet indexed.  Then along came the &#8220;big bad&#8221; Google and indexed much of the web and made is massively searchable.  All of a sudden, the average person could find what they need.  Not only could they find what they needed, but they could also find what they want.  And best of all, they could find it quickly.  And human nature is always, I want what I want and I want it now.</p>
<p>But that&#8217;s not all that happened.  The other big ticket item is that not only could the average person find what they want quickly, but they could contribute.  They could contribute their knowledge to Wikipedia, their photos to Flickr, Facebook, MySpace, and Picasa, and their ideas to blogs, micro-blogs, and podcasts.  And to circle back to reason number one; it&#8217;s all indexed, searchable, and easy to find.  Now there are many search engines and many methods for people to share their ideas and find others who share their views and opinions.</p>
<p>All these ideas bring the world closer together.  That, in my mind, allows a major version number bump.  What does Web 2.0 mean to you?  Do you think that the version number bump is premature or unwarranted? </p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2011/security/google-securing-the-web-one-discrete-monopolizing-push-at-a-time/' rel='bookmark' title='Google Securing The Web One Discrete Monopolizing Push At A Time'>Google Securing The Web One Discrete Monopolizing Push At A Time</a></li>
<li><a href='http://eric.lubow.org/2010/musings/being-smart-is-all-about-being-resourceful/' rel='bookmark' title='Being Smart is all about Being Resourceful'>Being Smart is all about Being Resourceful</a></li>
<li><a href='http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/' rel='bookmark' title='The Next Step In Browser Evolution'>The Next Step In Browser Evolution</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/musings/what-does-web-2-0-mean-to-you/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Custom Google Maps Marker With YM4R_GM</title>
		<link>http://eric.lubow.org/2009/ruby/rails/custom-google-maps-marker-with-ym4r_gm/</link>
		<comments>http://eric.lubow.org/2009/ruby/rails/custom-google-maps-marker-with-ym4r_gm/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:00:29 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[ym4r]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=466</guid>
		<description><![CDATA[In one my Rails applications, I allow the user to search for surrounding businesses from their current location. I always showed them a You Are Here marker. The issue I had with this was that the marker was always the icon as the search results. Differentiating these markers is actually extremely easy with ym4r_gm plugin. [...]]]></description>
			<content:encoded><![CDATA[<p>In one my Rails applications, I allow the user to search for surrounding businesses from their current location.  I always showed them a <em>You Are Here</em> marker.  The issue I had with this was that the marker was always the icon as the search results.  Differentiating these markers is actually extremely easy with <a href="http://ym4r.rubyforge.org/">ym4r_gm plugin</a>.</p>
<p>First thing is to find a custom icon that you want to use.  You can just Google for custom Google maps icons.  I chose to use their default icon, just in a different blue. (You can download it <a href="http://eric.lubow.org/wp-content/uploads/2009/12/gmap_blue_icon.png">here</a> so you are working with what I am working with for this example).  The next thing I did was to use the Google <a href="http://www.powerhut.co.uk/googlemaps/custom_markers.php">custom markers web site</a> to find the proper config options for the icon.<br />
<span id="more-466"></span><br />
The Rails code is just used to create Javascript.  That is why it&#8217;s a good idea to run the image through custom markers website to get the Javascript output.  Ym4r_gm just turns the Ruby options specified into Javascript.  There are more options available, but this is the bare minimum necessary to create a separate icon.  All you need to do is use the option names given to you by the custom markers site and &#8220;Rubyify&#8221; them in <em>GIcon.new</em> (note: this is slightly harder than it sounds).</p>
<div class="codecolorer-container rails default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="rails codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#0066ff; font-weight:bold;">@map</span>.<span style="color:#9900CC;">icon_global_init</span><span style="color:#006600; font-weight:bold;">&#40;</span><br />
&nbsp; GIcon.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> &nbsp;<span style="color:#ff3333; font-weight:bold;">:image</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;/images/gmap_blue_icon.png&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#ff3333; font-weight:bold;">:icon_size</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> GSize.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">32</span>, <span style="color:#006666;">32</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#ff3333; font-weight:bold;">:icon_anchor</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> GPoint.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">16</span>, <span style="color:#006666;">32</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#ff3333; font-weight:bold;">:info_window_anchor</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> GPoint.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">16</span>, <span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#996600;">'youarehere_icon'</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
youarehere_icon = Variable.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'youarehere_icon'</span><span style="color:#006600; font-weight:bold;">&#41;</span> &nbsp; &nbsp;<br />
<span style="color:#0066ff; font-weight:bold;">@map</span>.<span style="color:#9900CC;">center_zoom_init</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0066ff; font-weight:bold;">@location</span>.<span style="color:#9900CC;">lat</span>, <span style="color:#0066ff; font-weight:bold;">@location</span>.<span style="color:#9900CC;">lng</span> <span style="color:#006600; font-weight:bold;">&#93;</span>, <span style="color:#006666;">15</span> <span style="color:#006600; font-weight:bold;">&#41;</span><br />
youarehere = GMarker.<span style="color:#5A0A0A; font-weight:bold;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0066ff; font-weight:bold;">@location</span>.<span style="color:#9900CC;">lat</span>, <span style="color:#0066ff; font-weight:bold;">@location</span>.<span style="color:#9900CC;">lng</span> <span style="color:#006600; font-weight:bold;">&#93;</span>,<br />
&nbsp; <span style="color:#ff3333; font-weight:bold;">:title</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;You Are Here&quot;</span>,<br />
&nbsp; <span style="color:#ff3333; font-weight:bold;">:info_window</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;You Are Here&quot;</span>,<br />
&nbsp; <span style="color:#ff3333; font-weight:bold;">:icon</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> youarehere_icon,<br />
&nbsp; :<span style="color:#5A0A0A; font-weight:bold;">draggable</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span><br />
<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<br />
<span style="color:#0066ff; font-weight:bold;">@map</span>.<span style="color:#9900CC;">declare_init</span><span style="color:#006600; font-weight:bold;">&#40;</span> youarehere, <span style="color:#996600;">'youarehere'</span> <span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color:#0066ff; font-weight:bold;">@map</span>.<span style="color:#9900CC;">overlay_init</span><span style="color:#006600; font-weight:bold;">&#40;</span> youarehere <span style="color:#006600; font-weight:bold;">&#41;</span></div></div>
<p>A few things worth nothing about this code in order to better understand what it&#8217;s doing.</p>
<p>If you don&#8217;t have the <strong>icon_size</strong> set properly, then your icon will look funny when the map renders.  The <strong>icon_anchor</strong> and <strong>info_window_anchor</strong> are just coincidentally half of 32, this is not always the case.  And that last item in <em>GIcon.new</em> is what is going to be the Javascript variable name.  For sanity&#8217;s sake, I chose to keep the Ruby variable name and Javascript variable names consistent.  The <em>Variable.new</em> line creates a ym4r_gm icon object in Ruby to be  passed to the <em>:icon</em> parameter of the <em>youarehere</em> marker.</p>
<p>The rest of the code is similar to your regular ym4r_gm map icon stuff.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/ruby/rails/one-time-modal-windows-with-rails-and-fancybox/' rel='bookmark' title='One Time Modal Windows With Rails and Fancybox'>One Time Modal Windows With Rails and Fancybox</a></li>
<li><a href='http://eric.lubow.org/2011/security/google-securing-the-web-one-discrete-monopolizing-push-at-a-time/' rel='bookmark' title='Google Securing The Web One Discrete Monopolizing Push At A Time'>Google Securing The Web One Discrete Monopolizing Push At A Time</a></li>
<li><a href='http://eric.lubow.org/2010/databases/mongodb/getting-a-random-record-from-a-mongodb-collection/' rel='bookmark' title='Getting a Random Record From a MongoDB Collection'>Getting a Random Record From a MongoDB Collection</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/ruby/rails/custom-google-maps-marker-with-ym4r_gm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Transferring Email From Gmail/Google Apps to Dovecot With Larch</title>
		<link>http://eric.lubow.org/2009/mail/transferring-email-from-gmailgoogle-apps-to-dovecot-with-larch/</link>
		<comments>http://eric.lubow.org/2009/mail/transferring-email-from-gmailgoogle-apps-to-dovecot-with-larch/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:15:56 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=458</guid>
		<description><![CDATA[As regular readers of this blog know, I am in the process of trying to back up Google Apps accounts to Dovecot. Well I have finally found my solution. Not only does it work, but its in Ruby. First thing that you&#8217;ll need to do is grab yourself a copy of Larch. I did this [...]]]></description>
			<content:encoded><![CDATA[<p>As regular readers of this blog know, I am in the process of trying to back up <a href="http://eric.lubow.org/2009/mail/backing-up-gmailgoogle-apps-to-a-dovecot-server/">Google Apps accounts to Dovecot</a>.  Well I have finally found my solution.  Not only does it work, but its in Ruby.</p>
<p>First thing that you&#8217;ll need to do is grab yourself a copy of <a href="http://github.com/rgrove/larch">Larch</a>.  I did this simply by typing and it installed everything nicely, but click the link to the repository on Github if it doesn&#8217;t work for you.<br />
<span id="more-458"></span></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo gem install larch</div></div>
<p>Immediately I dove in and ran it.  And immediately I hit my first problem:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ larch --from imaps://imap.gmail.com --from-user user@gmail.com --from-pass FILTERED --to-pass me@myserver.com --to-pass FILTERED --all<br />
... Removed for brevity ...<br />
NameError: uninitialized constant Larch::IMAP::OpenSSL (cannot recover)</div></div>
<p>The fix for this issue is that SSL needs to be available (or installed as a library) to Ruby.  Since I have Ruby built from source, it was just as easy as what&#8217;s below.  I have removed the output for readability.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /usr/local/src/ruby-1.8.6/ext/openssl<br />
$ ruby extconf.rb<br />
$ make<br />
$ sudo make install</div></div>
<p>Now that we have SSL installed, let&#8217;s try it again.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Dec 07 16:54:06] [info] user1@googleappsdomain.com@mail.mydomain.com: Net::IMAP::NoResponseError: Mailbox doesn't allow inferior mailboxes (will retry)<br />
[Dec 07 16:54:09] [fatal] Net::IMAP::NoResponseError: Mailbox doesn't allow inferior mailboxes (giving up)<br />
[Dec 07 16:54:09] [info] 69 message(s) copied, 0 failed, 0 untouched out of 69 total</div></div>
<p>Whoops, another stopping point.  If you are receiving the above error, then you need to make sure that your dovecot installation is set up for maildir.  What this error is saying is that your installation doesn&#8217;t support folder that are folders and mailboxes at the same time.  If your current dovecot installation is setup for mbox, you will need to convert it.  That is beyond the scope of this post, but add the code below in the <strong>/etc/dovecot.conf</strong> if it&#8217;s not already there.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mail_location = maildir:/var/spool/mail/vhosts/%d/%u/Maildir<br />
namespace private {<br />
separator = /<br />
prefix = &quot;&quot;<br />
inbox = yes<br />
}</div></div>
<p>I have been happily and successfully running Larch ever since.  </p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/mail/backing-up-gmailgoogle-apps-to-a-dovecot-server/' rel='bookmark' title='Backing Up Gmail/Google Apps to a Dovecot Server'>Backing Up Gmail/Google Apps to a Dovecot Server</a></li>
<li><a href='http://eric.lubow.org/2007/perl/mailimapclient/' rel='bookmark' title='Mail::IMAPClient'>Mail::IMAPClient</a></li>
<li><a href='http://eric.lubow.org/2007/perl/emailfind/' rel='bookmark' title='Email::Find'>Email::Find</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/mail/transferring-email-from-gmailgoogle-apps-to-dovecot-with-larch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up Gmail/Google Apps to a Dovecot Server</title>
		<link>http://eric.lubow.org/2009/mail/backing-up-gmailgoogle-apps-to-a-dovecot-server/</link>
		<comments>http://eric.lubow.org/2009/mail/backing-up-gmailgoogle-apps-to-a-dovecot-server/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 11:00:48 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[imap]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=446</guid>
		<description><![CDATA[I have been trying to find a way to copy everything from a Gmail account to a Dovecot mail server. The way I have ended up doing it so far is simply by using Apple Mail (if you regularly read this blog, you&#8217;d know that I use a Mac). The steps are as follows: Create [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to find a way to copy everything from a Gmail account to a Dovecot mail server.  The way I have ended up doing it so far is simply by using Apple Mail (if you regularly read this blog, you&#8217;d know that I use a Mac).  The steps are as follows:</p>
<ol>
<li>Create 2 accounts in Apple Mail: Gmail and the Dovecot account</li>
<li>Sync the Gmail account to your local computer</li>
<li>Copy everything to the Dovecot server</li>
</ol>
<p>This works, but I have to use a slow connection (my home connection) and I have a lot of accounts to do this for, so I would much prefer to script this.  The problem is that I have been trying to get this to work with either <a href="http://freshmeat.net/projects/imapsync/">imapsync</a> or <a href="http://code.google.com/p/imapcopy/">imapcopy</a>.  Neither seem to work properly.<br />
<span id="more-446"></span><br />
According to the documentation, I have the proper version and it should work with GMail.  I tried all the supported <strong>&#8211;authmech1</strong> possibilities.  I found an article saying that Google doesn&#8217;t accept the word <em>AUTHENTICATE</em> when authenticating, but then imapsync wouldn&#8217;t work and it claims it does.  So, when trying imapsync, this is what it looked like (some of the security issues have been blocked to protect the innocent):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[root@smtp4 imapsync-1.286]# ./imapsync --host1 imap.gmail.com --ssl1 --user1 user1@gmail.com --password1 MASKED --host2 mail.server.com --user2 user1@server.com --password2 MASKED<br />
$RCSfile: imapsync,v $ $Revision: 1.286 $ $Date: 2009/07/24 15:53:04 $ <br />
Here is a [linux] system (Linux mail.server.com 2.6.18-92.1.18.el5xen #1 SMP Wed Nov 12 09:48:10 EST 2008 x86_64)<br />
with perl 5.8.8<br />
Mail::IMAPClient &nbsp;3.21<br />
IO::Socket &nbsp; &nbsp; &nbsp; &nbsp;1.31<br />
IO::Socket::SSL &nbsp; <br />
Digest::MD5 &nbsp; &nbsp; &nbsp; 2.36<br />
Digest::HMAC_MD5 &nbsp;<br />
Term::ReadKey &nbsp; &nbsp; <br />
Date::Manip &nbsp; &nbsp; &nbsp; <br />
&nbsp;and the module Mail::IMAPClient version used here is 3.21<br />
Command line used:<br />
./imapsync --host1 imap.gmail.com --ssl1 --user1 user1@gmail.com --password1 MASKED --host2 mail.server.com --user2 user1@server.com --password2 MASKED --useheader Message-Id --skipsize --regextrans2 s/\[Gmail\]/Gmail/</div></div>
<p>My attempt at imapcopy was closer to successful, but still not what I needed.  I ran into some Dovecot errors (at least I think that&#8217;s what it is) that I am not sure what to do with.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[root@smtp4 imapCopy]# time sh imapCopy.sh imaps://user1%40gmail.com:MASKED@imap.gmail.com imap://user1%40server.com:MASKED@mail.server.com<br />
2009-12-02 18:13:28,811 &nbsp;INFO ImapCopier - Starting<br />
2009-12-02 18:13:28,812 DEBUG ImapCopier - Parameters length:2<br />
2009-12-02 18:13:28,813 DEBUG ImapCopier - opening conections<br />
2009-12-02 18:13:28,816 DEBUG ImapCopier - opening imaps conection to imap.gmail.com<br />
2009-12-02 18:13:32,633 DEBUG ImapCopier - opening imap conection to mail.server.com<br />
2009-12-02 18:13:34,666 DEBUG ImapCopier - Creating target Folder: Adbrite<br />
Exception in thread &quot;main&quot; javax.mail.MessagingException: Unsupported type;<br />
&nbsp; nested exception is:<br />
&nbsp; &nbsp; &nbsp; &nbsp; com.sun.mail.iap.ProtocolException: Unsupported type<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.sun.mail.imap.IMAPFolder.doCommandIgnoreFailure(IMAPFolder.java:2618)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.sun.mail.imap.IMAPFolder.create(IMAPFolder.java:725)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.fisbein.joan.model.ImapCopier.copyFolderAndMessages(ImapCopier.java:190)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.fisbein.joan.model.ImapCopier.copy(ImapCopier.java:152)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.fisbein.joan.model.ImapCopier.main(ImapCopier.java:35)<br />
Caused by: com.sun.mail.iap.ProtocolException: Unsupported type<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.sun.mail.imap.IMAPFolder$6.doCommand(IMAPFolder.java:745)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2639)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.sun.mail.imap.IMAPFolder.doCommandIgnoreFailure(IMAPFolder.java:2611)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 4 more</div></div>
<p>So if you have any idea what to do here in a more intelligent manner than I am stuck with, please let me know in the comments.  Thanks.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/mail/transferring-email-from-gmailgoogle-apps-to-dovecot-with-larch/' rel='bookmark' title='Transferring Email From Gmail/Google Apps to Dovecot With Larch'>Transferring Email From Gmail/Google Apps to Dovecot With Larch</a></li>
<li><a href='http://eric.lubow.org/2007/perl/mailimapclient/' rel='bookmark' title='Mail::IMAPClient'>Mail::IMAPClient</a></li>
<li><a href='http://eric.lubow.org/2009/system-administration/creating-a-slave-dns-server-on-bind9/' rel='bookmark' title='Creating a Slave DNS Server on Bind9'>Creating a Slave DNS Server on Bind9</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/mail/backing-up-gmailgoogle-apps-to-a-dovecot-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Getting Rid of The Google Analytics Overlay</title>
		<link>http://eric.lubow.org/2009/misc/getting-rid-of-the-google-analytics-overlay/</link>
		<comments>http://eric.lubow.org/2009/misc/getting-rid-of-the-google-analytics-overlay/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 21:46:45 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=264</guid>
		<description><![CDATA[It took a little hunting to figure this one out, so I decided to write a quickie blog post about it. If you use Google Analytics and have put the overlay on your website to gain information, you may have noticed that it is quite challenging to get rid of. Well the solution, as is [...]]]></description>
			<content:encoded><![CDATA[<p>It took a little hunting to figure this one out, so I decided to write a quickie blog post about it.  If you use Google Analytics and have put the overlay on your website to gain information, you may have noticed that it is quite challenging to get rid of.</p>
<p>Well the solution, as is turns out, is pretty simple.  Just go into your browser&#8217;s cookie repository, find and delete the cookie that calls itself <strong>GASO</strong>.  And poof, the overlay is gone.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/mail/transferring-email-from-gmailgoogle-apps-to-dovecot-with-larch/' rel='bookmark' title='Transferring Email From Gmail/Google Apps to Dovecot With Larch'>Transferring Email From Gmail/Google Apps to Dovecot With Larch</a></li>
<li><a href='http://eric.lubow.org/2009/misc/thoughts-on-blog-posting/' rel='bookmark' title='Thoughts on Blog Posting'>Thoughts on Blog Posting</a></li>
<li><a href='http://eric.lubow.org/2009/ruby/rails/custom-google-maps-marker-with-ym4r_gm/' rel='bookmark' title='Custom Google Maps Marker With YM4R_GM'>Custom Google Maps Marker With YM4R_GM</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/misc/getting-rid-of-the-google-analytics-overlay/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Next Step In Browser Evolution</title>
		<link>http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/</link>
		<comments>http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 01:23:43 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/blog/?p=51</guid>
		<description><![CDATA[I was having a chat with my two friends from Redub Consulting about the new Google Chrome browser. At a cursory exploration, we found that (as promised) the Javascript engine is incredibly fast. But I don&#8217;t want to throw that out there since Google already us that in their Chrome Comic. I want to talk [...]]]></description>
			<content:encoded><![CDATA[<p>I was having a chat with my two friends from <a href="http://redubllc.com/">Redub Consulting</a> about the new <a href="http://www.google.com/chrome">Google Chrome</a> browser.  At a cursory exploration, we found that (as promised) the Javascript engine is incredibly fast.  But I don&#8217;t want to throw that out there since Google already us that in their <a href="http://www.google.com/googlebooks/chrome/index.html">Chrome Comic</a>.  I want to talk about where this could be leading.</p>
<p>As some of you know, Adobe Air is a desktop application that can interact with internet applications.  The catch here is that since its a desktop application, it has access to the same elements of the physical machine as any other desktop application (USB ports, printers, sound/video out ports, etc).  Browsers don&#8217;t yet that kind of access to a computer.  They are limited to the user space in which they are run in.  All the sound and video you hear and see is sent through 3rd party applications within the browser.  What if the browser could control those elements of your machine?  What if your entire computer experience was now internet based.  Google is already trying to push this with software as a service (GoogleDocs), but keep extending this idea.  What if your media center could be controlled via an internet application?</p>
<p><a href="http://www.eclipse.org/">Eclipse IDE</a> is now at a point at which you can your code as its running and change function calls at the opcode level to avoid recompiling your program over and over.  Eclipse has grown to the point where its almost like an OS in its capabilities.  In that same vein, Google&#8217;s new browser now controls its individual tabs and sandboxes each tab in order to have task level control over potentially runaway web applications.  </p>
<p>So what I am trying to say here?  I&#8217;m glad you asked.  I believe this browser is the next step towards ubiquitous computing in the sense that 1 application to control your internet (or whole user) experience.  AppleTV for instance is a set of specially designed hardware that can be interacted with over the internet.  By allowing applications, such as Air (and potentially soon Chrome) to internet directly with the hardware attached to the computer, you are are negating the need for that specially designed hardware.  One piece of hardware can be designed to do it all in terms of the interactive experience.  Google is stepping to the plate and pushing forward for just this type of innovation.  Keep an eye on the features of Google Chrome to come.  If it becomes integrated any deeper into the desktop, it will open up a new age of ubiquitous computing.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/musings/what-does-web-2-0-mean-to-you/' rel='bookmark' title='What Does Web 2.0 Mean To You?'>What Does Web 2.0 Mean To You?</a></li>
<li><a href='http://eric.lubow.org/2010/backup/my-first-drobo-experience/' rel='bookmark' title='My First Drobo Experience'>My First Drobo Experience</a></li>
<li><a href='http://eric.lubow.org/2011/mac/exploring-applescript-with-alfred-shortcuts/' rel='bookmark' title='Exploring AppleScript with Alfred Shortcuts'>Exploring AppleScript with Alfred Shortcuts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

