<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 <title>Socks and Sandals</title>
 <link href="http://cbcg.net/atom.xml" rel="self"/>
 <link href="http://cbcg.net/"/>
 <updated>2011-12-19T18:18:31-05:00</updated>
 <id>http://cbcg.net/</id>
 <author>
   <name>Toby DiPasquale</name>
   <email>toby@cbcg.net</email>
 </author>
 
 <entry>
   <title>Started a Posterous</title>
   <link href="http://cbcg.net/2009/08/17/started-a-posterous.html"/>
   <updated>2009-08-17T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2009/08/17/started-a-posterous</id>
   <content type="html">&lt;p&gt;I recently started a &lt;a href=&quot;http://codeslinger.posterous.com&quot;&gt;Posterous&lt;/a&gt; and I&amp;#8217;ve been using it a bit more than this site. Check it out! :)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>EC2 Talk at PLUG North Tonight</title>
   <link href="http://cbcg.net/2009/02/09/ec2-talk-at-plug-north.html"/>
   <updated>2009-02-09T00:00:00-05:00</updated>
   <id>http://cbcg.net/blog//2009/02/09/ec2-talk-at-plug-north</id>
   <content type="html">&lt;p&gt;I&amp;#8217;m giving my &lt;a href=&quot;http://cbcg.net/talks.html&quot;&gt;Cloud Cover&lt;/a&gt; talk tonight at &lt;a href=&quot;http://www.phillylinux.org/north.html&quot;&gt;&lt;span class=&quot;caps&quot;&gt;PLUG&lt;/span&gt; North&lt;/a&gt;. If you&amp;#8217;re in the area and are interested in EC2, come on out and join us! :)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Changing my OpenID</title>
   <link href="http://cbcg.net/2009/01/01/changing-my-openid.html"/>
   <updated>2009-01-01T00:00:00-05:00</updated>
   <id>http://cbcg.net/blog//2009/01/01/changing-my-openid</id>
   <content type="html">&lt;p&gt;After &lt;a href=&quot;http://cbcg.net/2008/12/18/movin-on-up.html&quot;&gt;consolidating my sites&lt;/a&gt; the other day, I noticed that I could no longer log in to sites with my old &lt;a href=&quot;http://openid.net&quot;&gt;OpenID&lt;/a&gt;. After a moment&amp;#8217;s reflection, I realized that the traffic for the OpenID was being redirected to the new site and thus looking to an OpenID provider as if my OpenID was, in fact, the new homepage &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt;. Oops! :)&lt;/p&gt;
&lt;p&gt;To rectify this, I had to do a couple of things:&lt;/p&gt;
&lt;p&gt;First, I installed a &lt;a href=&quot;http://yadis.org&quot;&gt;&lt;span class=&quot;caps&quot;&gt;YADIS&lt;/span&gt;&lt;/a&gt; service discovery file in the docroots of both sites:&lt;/p&gt;
&lt;pre&gt;
  &amp;lt;xrds:XRDS 
      xmlns:xrds=&quot;xri://$xrds&quot; xmlns=&quot;xri://$xrd*($v*2.0)&quot; 
      xmlns:openid=&quot;http://openid.net/xmlns/1.0&quot;&amp;gt;
    &amp;lt;XRD&amp;gt;
      &amp;lt;Service priority=&quot;1&quot;&amp;gt;
        &amp;lt;Type&amp;gt;http://openid.net/signon/1.0&amp;lt;/Type&amp;gt;
        &amp;lt;URI&amp;gt;http://www.myopenid.com/server&amp;lt;/URI&amp;gt;
        &amp;lt;openid:Delegate&amp;gt;
	  http://tobydipasquale.myopenid.com/
	&amp;lt;/openid:Delegate&amp;gt;
      &amp;lt;/Service&amp;gt;
    &amp;lt;/XRD&amp;gt;
  &amp;lt;/xrds:XRDS&amp;gt;
&lt;/pre&gt;
&lt;p&gt;Then, I installed &lt;a href=&quot;http://nginx.net&quot;&gt;nginx&lt;/a&gt; rewrite rules on both sites to handle OpenID providers seeking authentication:&lt;/p&gt;
&lt;pre&gt;
  if ($http_user_agent ~* openid) {
    rewrite   ^(.*)$    /yadis.xrdf   break;
  }
  if ($http_accept ~* application/xrds\+xml) {
    rewrite   ^(.*)$    /yadis.xrdf   break;
  }
&lt;/pre&gt;
&lt;p&gt;This gives me two OpenID&amp;#8217;s, one for the old site and one for the new, both of which are backed by the same OpenID provider and delegate. All set, right?&lt;/p&gt;
&lt;p&gt;As it turns out, though, &lt;a href=&quot;http://www.clickpass.com/&quot;&gt;Clickpass&lt;/a&gt;, which I use for &lt;a href=&quot;http://news.ycombinator.com/&quot;&gt;Hacker News&lt;/a&gt;, does not support &lt;span class=&quot;caps&quot;&gt;YADIS&lt;/span&gt;. I had to install the following rewrite rule in both sites to have my OpenID work correctly with Clickpass:&lt;/p&gt;
&lt;pre&gt;
  if ($http_user_agent ~ URI::Fetch/0.08) {
    rewrite   ^(.*)$    /index.html   break;
  }
&lt;/pre&gt;
&lt;p&gt;I installed this rule under the others so that if Clickpass ever gets their act together, they will get the &lt;span class=&quot;caps&quot;&gt;YADIS&lt;/span&gt; file instead.&lt;/p&gt;
&lt;p&gt;As well, for the old site, I had to add a dummy index.html, and install the old method of OpenID delegation on both sites by adding the following tags to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of the &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt;:&lt;/p&gt;
&lt;pre&gt;
  &amp;lt;link rel=&quot;openid.server&quot; 
        href=&quot;http://www.myopenid.com/server&quot; /&amp;gt;
  &amp;lt;link rel=&quot;openid.delegate&quot; 
        href=&quot;http://tobydipasquale.myopenid.com/&quot; /&amp;gt;
&lt;/pre&gt;
&lt;p&gt;This works, but sucks because an OpenID provider has to suck down the whole page in order to get those two lines.&lt;/p&gt;
&lt;p&gt;In any case, both of my OpenIDs are working now. I hope this post will help others change their OpenIDs sanguinely!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Movin' On Up!</title>
   <link href="http://cbcg.net/2008/12/18/movin-on-up.html"/>
   <updated>2008-12-18T00:00:00-05:00</updated>
   <id>http://cbcg.net/blog//2008/12/18/movin-on-up</id>
   <content type="html">&lt;p&gt;Yesterday, I moved the blog from Slicehost to &lt;a href=&quot;http://www.linode.com&quot;&gt;Linode&lt;/a&gt; and consolidated it with my regular site, cbcg.net. Linode is pretty awesome so I decided to move there for hosting.&lt;/p&gt;
&lt;p&gt;You&amp;#8217;ll also note a complete site redesign which is thanks to the handy-dandy, static site generator &lt;a href=&quot;http://github.com/mojombo/jekyll/&quot;&gt;Jekyll&lt;/a&gt;. I&amp;#8217;m pretty excited about this move. It allows me to concentrate on the site itself and not the stuff powering it. That means: no more &lt;a href=&quot;http://mmonit.com/monit/&quot;&gt;monit&lt;/a&gt; emails about Ruby processes using up too much &lt;span class=&quot;caps&quot;&gt;RAM&lt;/span&gt; and being cycled, no caching problems, etc. I&amp;#8217;ve only got two things between you and I now: &lt;a href=&quot;http://nginx.net/&quot;&gt;nginx&lt;/a&gt; and the filesystem. In any case, you should expect to see more from this space given that the impedance barrier is now a lot lower.&lt;/p&gt;
&lt;p&gt;I hope I got all the redirects working right from blog.cbcg.net to cbcg.net. If not, please let me know! Thanks and I hope everyone had a great holiday season!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>ruby-sendfile 0.9.3 released</title>
   <link href="http://cbcg.net/2008/11/30/ruby-sendfile-0-9-3-released.html"/>
   <updated>2008-11-30T00:00:00-05:00</updated>
   <id>http://cbcg.net/blog//2008/11/30/ruby-sendfile-0-9-3-released</id>
   <content type="html">&lt;p&gt;I got a patch this afternoon from one &lt;a href=&quot;http://www.linkedin.com/in/damonmorda&quot;&gt;Damon Morda&lt;/a&gt; which fixed ruby-sendfile to compile again on Mac OS X Leopard. I&amp;#8217;ve included his patch and done a new release of ruby-sendfile which is now available via RubyGems (you can get the source tarball from &lt;a href=&quot;http://rubyforge.org/projects/ruby-sendfile/&quot;&gt;Rubyforge&lt;/a&gt; ).&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Bye bye, blog</title>
   <link href="http://cbcg.net/2008/10/21/bye-bye-blog.html"/>
   <updated>2008-10-21T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2008/10/21/bye-bye-blog</id>
   <content type="html">&lt;p&gt;This blog has been basically dead for a while now. I suck at blogging. Therefore, I&amp;#8217;m declaring this blog open only for future essays I might write. Don&amp;#8217;t expect any kind of timely updates from this space. If you want to keep up to date with me, follow me on Twitter. Thanks!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Chariot TechCast on Hadoop</title>
   <link href="http://cbcg.net/2008/08/02/chariot-techcast-on-hadoop.html"/>
   <updated>2008-08-02T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2008/08/02/chariot-techcast-on-hadoop</id>
   <content type="html">&lt;p&gt;The podcast I did a little while ago just hit the Interwebs: &lt;a href=&quot;http://techcast.chariotsolutions.com/index.php?post_id=364833&quot;&gt;check it out here&lt;/a&gt; and listen to us talk about Hadoop, MapReduce and related stuff. Thanks!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Cloud Cover: An Unauthorized Biography on EC2</title>
   <link href="http://cbcg.net/2008/08/01/cloud-cover-an-unauthorized-biography-on-ec2.html"/>
   <updated>2008-08-01T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2008/08/01/cloud-cover-an-unauthorized-biography-on-ec2</id>
   <content type="html">&lt;p&gt;I gave that talk last night to the &lt;a href=&quot;http://groups.google.com/group/philly-lambda&quot;&gt;Philly Lambda&lt;/a&gt; group and about 15 people showed up! It seemed like people were into it and enjoyed the presentation and I hope people got a more rounded perspective on what its like to work with EC2 for real, day to day. The slides are listed on my &lt;a href=&quot;http://cbcg.net/talks&quot;&gt;talks&lt;/a&gt; page; enjoy!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Mac System Info Script</title>
   <link href="http://cbcg.net/2008/07/28/mac-system-info-script.html"/>
   <updated>2008-07-28T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2008/07/28/mac-system-info-script</id>
   <content type="html">&lt;p&gt;Little script for getting system info on a Mac in one shot:&lt;/p&gt;
&lt;script src=&quot;http://gist.github.com/1689.js&quot;&gt;&lt;/script&gt;</content>
 </entry>
 
 <entry>
   <title>Single-Bit Errors Caused Massive S3 Failures</title>
   <link href="http://cbcg.net/2008/07/26/single-bit-errors-caused-massive-s3-failures.html"/>
   <updated>2008-07-26T00:00:00-04:00</updated>
   <id>http://cbcg.net/blog//2008/07/26/single-bit-errors-caused-massive-s3-failures</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://status.aws.amazon.com/s3-20080720.html&quot;&gt;This description of the recent Amazon S3 failures&lt;/a&gt; serves as a cautionary tale to all developers wishing to create &amp;#8220;simple&amp;#8221; services at scale: its the little things that kill you.&lt;/p&gt;</content>
 </entry>
 
</feed>

