<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by David Ciani on Medium]]></title>
        <description><![CDATA[Stories by David Ciani on Medium]]></description>
        <link>https://medium.com/@davidciani?source=rss-2e3795250714------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZlqIioIdRN6xZvMdHt1K0Q.jpeg</url>
            <title>Stories by David Ciani on Medium</title>
            <link>https://medium.com/@davidciani?source=rss-2e3795250714------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:30:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidciani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Don’t you love it when you overthink things?]]></title>
            <link>https://medium.com/@davidciani/don-t-you-love-it-when-you-overthink-things-c98fa3ffb52e?source=rss-2e3795250714------2</link>
            <guid isPermaLink="false">https://medium.com/p/c98fa3ffb52e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[occams-razor]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[David Ciani]]></dc:creator>
            <pubDate>Tue, 22 Dec 2015 00:57:22 GMT</pubDate>
            <atom:updated>2015-12-22T01:43:02.744Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycdA5WlrjIu5cYtalUnYVw.jpeg" /></figure><p>The obvious way to de-duplicate a list in Python is to do something like:</p><pre>distinct_list = list(set(list_with_dups))</pre><p>…but that doesn’t preserve order, which when you are trying to get something to match up for an auto-grader would seem like it’s important.</p><p>So I went on a journey through the wonderful world of <a href="http://stackoverflow.com/">Stack Overflow</a> looking for a solution. Apparently the commonly accepted method uses a ordered dictionary from the standard library:</p><pre>from collections import OrderedDict</pre><pre>distinct_list = list(OrderedDict.fromkeys(list_with_dups))</pre><p>But that didn’t match the expected output, which the course instructors thankfully provide for testing. After some experimentation, I am distraught to discover that naïve approach using a set, that I had passed over without even testing, is actually the one they used to generate the sample output.</p><p>The lack of Occam’s razor is strong in this one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c98fa3ffb52e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Can’t Seem To Fall Asleep]]></title>
            <link>https://medium.com/@davidciani/i-can-t-seem-to-fall-asleep-40d569bbb481?source=rss-2e3795250714------2</link>
            <guid isPermaLink="false">https://medium.com/p/40d569bbb481</guid>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[personal]]></category>
            <category><![CDATA[sleep]]></category>
            <dc:creator><![CDATA[David Ciani]]></dc:creator>
            <pubDate>Sun, 25 Oct 2015 20:34:48 GMT</pubDate>
            <atom:updated>2015-10-25T23:36:38.371Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OghiTQ0D0QB1YTeGxsReQQ.jpeg" /><figcaption>My trusty books… one for reading, one for writing.</figcaption></figure><h4>Some late night musings</h4><p>I can’t seem to fall asleep when I’m all wound up like this. This is a particularly bad night for it too… I have to get up at half-past two in the morning to take my sister up to the San José Airport. She’s off to North Carolina for the week! Maybe putting pen to paper will help a bit.</p><p>I need lines… this notebook doesn’t have lines. Tough luck, David. You’re basically broke, so no new Moleskine for you. Those things are so expensive anyway. I’ll have to tough it out with this one for a while. Maybe I’ll fill it up one day… I don’t think I ever have filled up a non-academic notebook. I think I’d get great satisfaction from that. If only I’d get myself to write more. Better set a goal… you know how good I am at following through with those. Write a page or so every day? That sounds fairly straight forward. Hehe, straight…</p><p>Anyway, maybe I could dovetail it with my “read more” initiative that I am currently involving myself with. I read a lot of …ahem… “short subject” material on the internet and I’ve decided that I need to get more in touch with the dead tree side of things. I decided to pick back up a book, <em>A Spy Among Friends: Kim Philly and The Great Betrayal</em> by Ben MacIntyre, that I had bought down in San Diego when I was visiting my uncle back in June. My introduction to the work of Mr. MacIntyre was in a history course I took at UC Santa Cruz, the <em>History and Culture of Espionage</em>. He writes narrative accounts of true espionage in the riveting style of a fictional spy novel. More on that another time.</p><p>While working in the goals department, let’s turn to exercise. I need more of it. This walking a mile and a half to Starbucks and back a few times a week isn’t cutting it. I need something more focused. Jogging in the morning or something like that, maybe? Not too much though, jogging is hard on your body. Twenty minutes sound about right; anything will help.</p><p>Good night and good luck with that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40d569bbb481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Margarita That Doesn’t Suck]]></title>
            <link>https://medium.com/@davidciani/a-margarita-that-doesn-t-suck-94b60772f0c3?source=rss-2e3795250714------2</link>
            <guid isPermaLink="false">https://medium.com/p/94b60772f0c3</guid>
            <category><![CDATA[alcohol]]></category>
            <category><![CDATA[bartending]]></category>
            <category><![CDATA[cocktails]]></category>
            <dc:creator><![CDATA[David Ciani]]></dc:creator>
            <pubDate>Mon, 17 Aug 2015 21:09:08 GMT</pubDate>
            <atom:updated>2015-08-17T21:09:08.428Z</atom:updated>
            <content:encoded><![CDATA[<p>As household bartender, I’ve experimented a bit with the margarita, which is my parent’s drink of choice. Scold them all you want, my parents most definitely have me hooked (not in a particularly bad way) on margaritas. They always rave about how good the ones I make are and how the ones they get when we go out to dinner don’t even compare. I thought I’d share my “secret recipe” with all of you.</p><p>Traditionally the margarita has three ingredients: lime, triple sec, and Tequila. I’m going to go over my thoughts on each one. Before I do that, let’s talk ratios. The <a href="http://www.iba-world.com/index.php?option=com_content&amp;id=259&amp;tmpl=component&amp;task=preview&amp;Itemid=532">official recipe</a> from the International Bartender’s Association calls for a ratio of 7 parts tequila, 4 parts triple sec, 3 parts lime juice. You may want to start with that, as I did, but you might want to experiment using more or less triple sec and lime juice to adjust drink to suit your taste. I use a 3 parts tequila, 2 parts triple sec, 1 part lime juice ratio, which is also quite popular.</p><h3>The Sour Part</h3><p>The biggest thing you can do to improve a margarita is to use fresh lime juice. This “sour mix” used in many mixed drinks is the biggest thing holding you back. Don’t put corn syrup, citric acid or “natural and artificial flavors” in your drinks. Spend the time, effort, and money to get fresh limes and squeeze them yourself, its worth it. We normally use Persian Limes and normally can get them at Costco. Try to find big ripe ones, which will make squeezing them much easier.</p><h3>The Sweet Part</h3><p>There are a number of different ways to go with the triple sec part. The IBA calls for <a href="https://en.wikipedia.org/wiki/Cointreau">Cointreau</a>, which is a premium option. It is more authentic, made from the peels of bitter oranges, but is also more expensive. The more “mass market” option is a standard orange liqueur/triple sec/Curaçao. These come in a variety of brands and types, some of which they adulterate with artificial colors, for cosmetic effect. Definitely skip the blue stuff. I use <a href="http://www.dekuyperusa.com/flavor/dekuyper-triple-sec">DeKuyper</a>. We have also used <a href="http://www.bols.com/products/liqueur">Bols</a>, though it had a slightly unappealing caramel flavor (though we don’t know if that was because we didn’t store it properly).</p><h3>The Tequila</h3><p>I’ve found that the “quality” (i.e. the price) of the tequila doesn’t matter much: the store brand stuff is just as drinkable as the more expensive bottles. The only tequila I have used thus far that I have found objectionable was the Hornitos Reposado. I think “lawnmower effluent” would be the best term to describe it. Our go-to tequila is <a href="http://www.tequila.net/tequila-reviews/blancos/milagro-tequila-silver.html">Milagro Silver Tequila</a>, though when Costco doesn’t have that in stock, the <a href="http://www.costco.com/Kirkland-Signature%E2%84%A2-Silver-Tequila-100%25-Blue-Agave.product.100041195.html">Kirkland brand</a> is more than serviceable. Over the years I’ve tried Don Juilo, Patron, Hornitos, Sauza, the Trader Joe’s brand, and a few others.</p><h3>David’s Signature Margarita</h3><p>Warning: <em>this recipe makes a “grande” margarita which is about 2.5 “drinks” per the US standard of 17 ml of alcohol per “drink”.</em></p><ul><li>75 ml tequila (plata, 100% puro de agave)</li><li>50 ml triple sec (DeKuyper or similar)</li><li>25 ml fresh Persian lime juice</li></ul><ol><li>Combine ingredients in a cocktail shaker with ice.</li><li>Shake, for longer than you’d think. I normally give it about thirty shakes.</li><li>Serve over ice in a rocks glass.</li></ol><p><em>Originally published at </em><a href="http://blog.davidciani.com/2015/07/a-margarita-that-doesnt-suck/"><em>blog.davidciani.com</em></a><em> on July 11, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94b60772f0c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oh yay, Pigovian taxes]]></title>
            <link>https://medium.com/@davidciani/oh-yay-pigovian-taxes-9cb2d82a8817?source=rss-2e3795250714------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb2d82a8817</guid>
            <category><![CDATA[policy]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[water]]></category>
            <dc:creator><![CDATA[David Ciani]]></dc:creator>
            <pubDate>Fri, 03 Apr 2015 19:26:08 GMT</pubDate>
            <atom:updated>2015-04-03T19:26:08.116Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://gregmankiw.blogspot.com/2015/04/california-should-raise-price-of-water.html">Greg Mankiw&#39;s Blog</a></p><p>It frustrates me how policy makers are so adverse to Pigovian taxes (except for cigarettes, apparently). They are one of the most efficient ways of fixing negative externalities, like consuming too much water. The rebate is a good idea, but I wouldn’t give it to commercial consumers, especially agricultural interests shipping their products out of state.</p><p>A longer term approach would be to deposit the revenues in a fund that pays dividends to residents (cf. Alaska Permanent Fund). No more free rides for out of state consumers of our agricultural products while promoting more efficient domestic water use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb2d82a8817" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bigger, Faster, Cheaper]]></title>
            <link>https://medium.com/@davidciani/bigger-faster-cheaper-4107f171dda3?source=rss-2e3795250714------2</link>
            <guid isPermaLink="false">https://medium.com/p/4107f171dda3</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[free-speech]]></category>
            <dc:creator><![CDATA[David Ciani]]></dc:creator>
            <pubDate>Sat, 21 Mar 2015 01:51:15 GMT</pubDate>
            <atom:updated>2015-03-21T01:51:15.758Z</atom:updated>
            <content:encoded><![CDATA[<h3>Slate on Twitter</h3><p>Yes, Google manipulated its search results. It&#39;s probably allowed to. http://slate.me/1I7oLiH pic.twitter.com/EEqeMOh9Ud</p><p>Isn’t it obvious that Google’s search results are a form of protected speech? Maybe my technical literacy blinds me to that assertion’s non-obviousness compared to the typical man-on-the-street.</p><p>Humans created <em>The Algorithm</em>. It reflects the authors’ qualitative assumptions of the worthiness of a given piece of content — not unlike a newspaper editor of the last millennium. What makes Google’s approach different is that it formalizes the qualitative assessments allowing the systematic application to larger bodies of content, namely the Internet.</p><p>Just because something is bigger, faster, and cheaper shouldn’t distract from its fundamental nature. This is a common thread found in the public discourse about the intersection new technologies and society. From drones to targeted advertising and self-driving cars, there is a palpable uneasiness (and in some sections of society, fear) of these technological developments because people aren’t making the schematic connection between them and more familiar concepts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4107f171dda3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>