<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>drewdez.com</title>
    <description>Personal website of Andrew Desautels, transportation consultant and aspiring web developer/data scientist/technology entrepreneur.</description>
    <link>http://drewdez.com/</link>
    <atom:link href="http://drewdez.com/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Mon, 24 Jan 2022 14:48:41 -0700</pubDate>
    <lastBuildDate>Mon, 24 Jan 2022 14:48:41 -0700</lastBuildDate>
    <generator>Jekyll v3.6.0</generator>
    
      <item>
        <title>A Closer Look at a Briefcase of Reese's</title>
        <description>&lt;p&gt;In advance of March Madness, Reese’s started airing a commercial featuring an animated briefcase (almost) full of peanut butter cups, with the premise that if your boss won’t let you leave work early to watch the tournament, you should bribe him/her with a briefcase of peanut butter cups.&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; If you haven’t seen the ad, you can watch it below in all its deliciousness.&lt;/p&gt;

&lt;div class=&quot;video-container&quot;&gt;
  &lt;iframe src=&quot;https://player.vimeo.com/video/167456913&quot; width=&quot;640&quot; height=&quot;360&quot; frameborder=&quot;0&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
  &lt;p&gt;&lt;a href=&quot;https://vimeo.com/167456913&quot;&gt;reese&amp;#039;s - briefcase&lt;/a&gt; from &lt;a href=&quot;https://vimeo.com/jenhubbard1&quot;&gt;Jen Hubbard&lt;/a&gt; on &lt;a href=&quot;https://vimeo.com&quot;&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;As an analytically-minded person and a lover of peanut butter cups, I found that the ad left me with several unanswered questions. The results of my analysis follow.&lt;/p&gt;

&lt;h3 id=&quot;original-recipe&quot;&gt;Original Recipe&lt;/h3&gt;

&lt;p&gt;The peanut butter cups in the briefcase appear to be arranged in an 8 cup x 5 cup x 4 cup configuration, for a total of 160 cups. This equates to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;16,800 calories (105 per cup): Don’t eat them all in one sitting!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;$45.53–79.60 approximate cost ($0.28–0.50 per cup, based on $20.49 for a &lt;a target=&quot;_blank&quot; href=&quot;http://www.amazon.com/Reeses-Peanut-Butter-1-5-Ounce-Packages/dp/B000IXUK8G/ref=pd_rhf_gw_p_img_1?ie=UTF8&amp;amp;refRID=1M2JZ560ZDPJGZFT3KFF&quot;&gt;box of 72 cups at Amazon&lt;/a&gt; and $1.99 for a 4-pack at my local CVS): does not include cost of briefcase&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;7.4 pounds (21 grams per cup): does not include weight of briefcase&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;going-king-size&quot;&gt;Going King Size&lt;/h3&gt;

&lt;p&gt;Based on personal measurements, a Reese’s peanut butter cup is approximately 1-7/8” in diameter, and 7/16” tall. The diameter, and the 8 cup x 5 cup arrangement would require the interior dimensions of the briefcase to be approximately 15” x 9-3/8” (we’ll get to height next). Based on a quick search of &lt;a target=&quot;_blank&quot; href=&quot;https://www.briefcase.com&quot;&gt;briefcase.com&lt;/a&gt;, it appears that a width of 15” is within the reasonable range of briefcase sizes, but a depth of 9-3/8” is probably on the small size relative to the width—8 cups by 6 cups may have been a bit more realistic.&lt;/p&gt;

&lt;p&gt;Height is a bit more complicated. First, there appears to be about a cup’s worth of height between the top of the cups and the rim of the briefcase. This implies the height of the bottom portion of the briefcase is equal to that of five peanut butter cups plus the thickness of the bottom of the briefcase—let’s call it 2-3/8”. Second, the lid appears to account for about 30% of total briefcase height, which comes out to just over 1”. This makes the total height of the briefcase about 3-3/8”, which seems to be a reasonable value.&lt;/p&gt;

&lt;p&gt;The real upshot here is that the briefcase is only at 57% capacity. As long as the walls of the briefcase are less than 5/32” thick and/or we’re willing to squish our peanut butter cups a tiny bit, we can fit three more entire layers—120 more cups—in the case! Here are some updated stats on the new and improved (and 75% tastier) briefcase of Reese’s:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;280 delicious peanut butter cups&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;29,400 calories&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;$79.68–139.30 approximate cost&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;13.0 pounds&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A couple of notes on the full briefcase:&lt;/p&gt;

&lt;p&gt;Even if the original 160 peanut butter cups was enough for you, it might be worth considering using the extra space, if only because it would help to keep the cups in place while carrying. If you really want to stick with the 160 cups, you could add some padding or find a thinner briefcase.&lt;/p&gt;

&lt;p&gt;You’ll want to exercise extra caution when opening the 280-cup briefcase (relative to the 160-cup briefcase), since there are two full layers of cups above the rim of the briefcase.&lt;/p&gt;

&lt;h3 id=&quot;avoiding-sticky-situations&quot;&gt;Avoiding Sticky Situations&lt;/h3&gt;

&lt;p&gt;Finally a few words of caution:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Do not use a nice briefcase for this, especially if you live in a warm climate, or work in a warm office.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Please make sure your boss doesn’t have a peanut allergy before trying this.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In summary, bribing your boss with a briefcase of peanut butter cups probably isn’t a great idea for any number of reasons, but it sure is fun to think about. Now, if you’ll excuse me, I have a couple of test subjects that are ready to move from the measurement phase to the consumption phase.&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;footnotes&quot;&gt;Footnotes&lt;/h3&gt;

&lt;div class=&quot;footnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      &lt;p&gt;The exact words are “If your boss won’t let you cut out early, try sweetening the deal.” &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</description>
        <pubDate>Sat, 19 Mar 2016 00:00:00 -0600</pubDate>
        <link>http://drewdez.com/blog/2016/03/19/briefcase-of-reeses/</link>
        <guid isPermaLink="true">http://drewdez.com/blog/2016/03/19/briefcase-of-reeses/</guid>
        
        
      </item>
    
      <item>
        <title>My First Hackathon</title>
        <description>&lt;p&gt;Since I started teaching myself to program, I’ve been intrigued by hackathons. I
love the idea of a short intense team competition but I had stayed away,
concerned my programming chops might not be up to par. Last November, I decided
to bite the bullet and enter the travel-themed &lt;a target=&quot;_blank&quot; href=&quot;http://amadeus.com/msite/hackat1050/&quot;&gt;HACK@1050&lt;/a&gt; held by Amadeus,
figuring that if my programming skills weren’t sufficient, at least my domain
knowledge would be useful. As it turns out, my concerns were unfounded—I met
some incredibly talented people, had a great time, and was able to contribute to
a prize-winning hack, which is detailed in the rest of this post.&lt;/p&gt;

&lt;p&gt;Before I go into details, let me set the scene…&lt;/p&gt;

&lt;p&gt;Imagine you’re browsing the web, reading a story about an amazing travel
destination. You’re overdue for a vacation, and you’ve finally found the perfect
place to go. You make a note to yourself to check airfares and hotel rates, but
then life gets in the way. Three months later—and even more stressed—you
find your note, and immediately regret not following up.&lt;/p&gt;

&lt;p&gt;Enter Vamoose—a context-aware Chrome extension that helps you bridge the gap
between dreaming and booking travel. With a single click, Vamoose determines
what place you’re reading about, and delivers costs for flights, hotels, and
rental cars without leaving the page—giving you an idea what it might cost to
make your travel dream a reality.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/vamoose_logo.png&quot; alt=&quot;Vamoose logo&quot; width=&quot;250px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;After a brief installation process, Vamoose can be triggered by clicking on the
Vamoose button in the Chrome toolbar or by clicking on a Vamoose icon embedded
in a Facebook page.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Vamoose toolbar button: When its toolbar button is clicked, Vamoose applies a
natural language processing algorithm&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; to determine the location most
prominently featured in the text of the current page. If Vamoose is unable to
determine a corresponding location, the user is prompted to enter one manually.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Vamoose Facebook icons: When you’re on a Facebook page, Vamoose inserts an
airplane icon next to each geotagged post. When one of these icons is clicked,
the Vamoose pane is activated with the corresponding location as the
destination.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once a location is determined (regardless of trigger method), Vamoose uses the
Google Places API and multiple Amadeus APIs&lt;sup id=&quot;fnref:2&quot;&gt;&lt;a href=&quot;#fn:2&quot; class=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; to retrieve an airfare between
your closest major airport and the closest major airport to the destination,
hotel and rental car rates at the destination, an estimate of carbon emissions
for the corresponding air travel&lt;sup id=&quot;fnref:3&quot;&gt;&lt;a href=&quot;#fn:3&quot; class=&quot;footnote&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;, and a booking link. This information is
then presented in a small overlay.&lt;/p&gt;

&lt;p&gt;In an attempt to address the sustainability component of the competition—and
to have a little fun—emissions estimates are expressed in terms of &lt;em&gt;Camel
Count&lt;/em&gt;, with 1 unit of &lt;em&gt;Camel Count&lt;/em&gt; equivalent to the average daily
CO&lt;sub&gt;2&lt;/sub&gt; emissions of one camel&lt;sup id=&quot;fnref:4&quot;&gt;&lt;a href=&quot;#fn:4&quot; class=&quot;footnote&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;. While this might not be the ideal
measure of emissions, it’s much more tangible than X kilograms of
CO&lt;sub&gt;2&lt;/sub&gt;. Putting a fun spin on this also draws attention to an aspect of
travel that usually goes ignored.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/vamoose_paris.jpg&quot; alt=&quot;Vamoose screenshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;For a more detailed description of Vamoose, check out &lt;a target=&quot;_blank&quot; href=&quot;http://gillian.im/2014/11/weekend-project-vamoose.html&quot;&gt;this blog
post&lt;/a&gt; from Gillian Morris, one of my teammates.&lt;/p&gt;

&lt;p&gt;You can view/download the source for Vamoose on GitHub
&lt;a target=&quot;_blank&quot; href=&quot;https://github.com/dzhang50/rlt&quot;&gt;here&lt;/a&gt;. Please excuse the lack of refinement; it was a
24-hour hackathon after all.&lt;/p&gt;

&lt;p&gt;Vamoose is written in JavaScript, and uses the AngularJS framework. Other tools
used include &lt;a target=&quot;_blank&quot; href=&quot;https://readability.com/&quot;&gt;Readability&lt;/a&gt;, &lt;a target=&quot;_blank&quot; href=&quot;https://github.com/NaturalNode/natural&quot;&gt;Node Natural&lt;/a&gt;, the &lt;a target=&quot;_blank&quot; href=&quot;http://download.geonames.org/export/dump/&quot;&gt;GeoNames.org City Names
1000 dataset&lt;/a&gt;, the &lt;a target=&quot;_blank&quot; href=&quot;https://developers.google.com/places/&quot;&gt;Google Places API&lt;/a&gt;, and multiple Amadeus APIs. The
Vamoose team consisted of &lt;a target=&quot;_blank&quot; href=&quot;http://twitter.com/mattduran_&quot;&gt;Matt Duran&lt;/a&gt; (undergrad at UMBC), &lt;a target=&quot;_blank&quot; href=&quot;http://gillian.im/&quot;&gt;Gillian Morris&lt;/a&gt;
(co-founder and CEO of the excellent travel app &lt;a target=&quot;_blank&quot; href=&quot;http://hitlistapp.com/&quot;&gt;Hitlist&lt;/a&gt;), Brian Shaler
(freelance developer), &lt;a target=&quot;_blank&quot; href=&quot;http://danzhang.net/&quot;&gt;Dan Zhang&lt;/a&gt; (PhD student at UT-Austin), and me.&lt;/p&gt;

&lt;p&gt;Here’s a photo of us collecting the Entrepreneurial Prize as the overall
winners!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/team_vamoose.jpg&quot; alt=&quot;Team Vamoose&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;footnotes&quot;&gt;Footnotes&lt;/h3&gt;

&lt;div class=&quot;footnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      &lt;p&gt;Vamoose first uses &lt;a target=&quot;_blank&quot; href=&quot;https://readability.com/&quot;&gt;Readability&lt;/a&gt; to parse the page content, then uses
&lt;a target=&quot;_blank&quot; href=&quot;https://github.com/NaturalNode/natural&quot;&gt;Node Natural&lt;/a&gt; to extract root words, and finally matches the resulting
roots with the &lt;a target=&quot;_blank&quot; href=&quot;http://download.geonames.org/export/dump/&quot;&gt;GeoNames.org City Names 1000 dataset&lt;/a&gt;. In cases where more
than one location is mentioned, Vamoose chooses the more frequently
mentioned location, and in cases where multiple cities share a name, Vamoose
chooses the one with the greatest population. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:2&quot;&gt;
      &lt;p&gt;Amadeus APIs used include &lt;em&gt;Flight Inspiration Search&lt;/em&gt;, &lt;em&gt;Flight Low Fare
Search&lt;/em&gt;, &lt;em&gt;Hotel Geo-Search&lt;/em&gt;, &lt;em&gt;Car Rental Shopping&lt;/em&gt;, &lt;em&gt;CO&lt;sub&gt;2&lt;/sub&gt;
Emission&lt;/em&gt;, and &lt;em&gt;Nearest Relevant Airport&lt;/em&gt;. &lt;a href=&quot;#fnref:2&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:3&quot;&gt;
      &lt;p&gt;Emissions estimates are only available for markets with non-stop flights. &lt;a href=&quot;#fnref:3&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:4&quot;&gt;
      &lt;p&gt;Approximately 41 kg per day, according to &lt;a target=&quot;_blank&quot; href=&quot;http://environmentalleader.com/2011/06/10/australia-considers-killing-camels-for-carbon-credits/&quot;&gt;this article&lt;/a&gt;. &lt;a href=&quot;#fnref:4&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</description>
        <pubDate>Wed, 10 Jun 2015 00:00:00 -0600</pubDate>
        <link>http://drewdez.com/blog/2015/06/10/my-first-hackathon/</link>
        <guid isPermaLink="true">http://drewdez.com/blog/2015/06/10/my-first-hackathon/</guid>
        
        
      </item>
    
      <item>
        <title>Hello, World!</title>
        <description>&lt;p&gt;This is the first post on the drewdez.com blog, where I’m planning
to write every week or two on a variety of topics of interest to me, including
transportation, technology, programming, sports, and much more. I’ll also be
writing about some of the personal projects I’ve been working on, and trying to
include some information that might be useful to anyone interested in doing
similar things.&lt;/p&gt;

&lt;p&gt;That’s all for now, but I hope to see you back here soon!&lt;/p&gt;
</description>
        <pubDate>Tue, 19 May 2015 00:00:00 -0600</pubDate>
        <link>http://drewdez.com/blog/2015/05/19/hello-world/</link>
        <guid isPermaLink="true">http://drewdez.com/blog/2015/05/19/hello-world/</guid>
        
        
      </item>
    
  </channel>
</rss>
