<feed xmlns="http://www.w3.org/2005/Atom">
  <title>David Moreno&#39;s blog</title>
  <link href="https://damog.net/blog/atom.xml" rel="self"/>
  <link href="https://damog.net/blog/"/>
  <updated>2020-11-21T21:35:55+01:00</updated>
  <id>https://damog.net/blog/</id>
  <generator>Hugo -- gohugo.io</generator>

                 
                 
                 

  <entry>
    <title type="html"><![CDATA[I don&#39;t believe in geographical distances]]></title>
    <link href="https://damog.net/blog/2020/11/21/i-dont-believe-in-geographical-distances/"/>
    <id>https://damog.net/blog/2020/11/21/i-dont-believe-in-geographical-distances/</id>
    <published>2020-11-21T21:35:55+01:00</published>
    <updated>2020-11-21T21:35:55+01:00</updated>
    <content type="html"><![CDATA[<p>A few years ago, I wrote this post on my <a href="https://medium.com/@damog">Medium blog</a>, <a href="https://medium.com/@damog/i-dont-believe-in-geographical-distances-c8b6a56718ff">&ldquo;I don&rsquo;t believe in geographical distances&rdquo;</a>. It was in one of those desperate moments seeking attention looking at Medium as yet another social network as a transport for validation.</p>
<p>Moving it here to immortalize it properly, where it belongs.</p>
<hr>
<p><img src="https://damog.net/files/pics/nyc-hipster.jpg" alt="NYC Hipster"></p>
<h2 id="i-dont-believe-in-geographical-distances">I don&rsquo;t believe in geographical distances</h2>
<p>I am less and less a believer of geographical distances. Bear with me.</p>
<p>I understand that literally speaking, this is not a matter or a system of belief, but I do believe that <strong>as human beings we stop imagining and thinking about new possibilities to render reality and facts</strong>, first because change is hard and it takes effort, and second because <em>yay</em> comfort zone.</p>
<p>It is 2018. I&rsquo;ve now known the very few people that I&rsquo;m fortunate to call my best friends for about half of my life now. This has now broken the fifteen-year time span. In a recent conversation with one of those friends, we spoke about an acquaintance in common that I last interacted with, roughly sixteen years ago. <em>Holy crap</em>. <strong>Time, linearly, is relentless and even more so is technology, because it&rsquo;s not linear.</strong> You and I do not have the capacity to grow as fast as technological advancements, you and I will get outdated unless we keep a very open, young, fit, resilient mind. Easier said than done.</p>
<p>People still struggle with basic remote interaction. People still think that Lisbon or Dublin are <em>far</em>, or that interacting with a team of people from Ukraine, Canada and Argentina is an accomplishment. Older generations will applaud how smart their younger offsprings are, when in reality it is technology what has made it all possible, only making some of those younger folks more capable but dependable, if anything, not clever.</p>
<p>This is fine, though.</p>
<p>More easily than ever can you <a href="https://medium.com/r/?url=https%3A%2F%2Fwww.theatlantic.com%2Finternational%2Farchive%2F2014%2F06%2Fhow-millennials-are-changing-international-travel%2F373007%2F">travel and experience the world</a>. I even sometimes feel bad and guilty for my previous generations. I can&rsquo;t imagine how frustrating traveling the world would&rsquo;ve been for my dad when he was my age in the late 80s (well, he didn&rsquo;t), much less how it would&rsquo;ve been for my mom (she also didn&rsquo;t), but that is a different can of worms.</p>
<p><strong>Geographical distances should be treated as a lie today</strong>. You can shorten them with a variety of ways, <a href="https://medium.com/r/?url=https%3A%2F%2Fwww.nationalreview.com%2F2017%2F01%2Finternational-travel-today-much-easier-cheaper-it-was%2F">traveling is very affordable</a>; possibilities to <a href="https://medium.com/r/?url=https%3A%2F%2Fwww.nytimes.com%2F2017%2F02%2F15%2Fus%2Fremote-workers-work-from-home.html">work in most industries anywhere are unique</a> in time; you now have to actively choose who to stop any interaction and communication with because you can&rsquo;t stand them, even if you haven&rsquo;t seen them in person for decades. <strong>You opt-out of technology benefits</strong>. When you do that, you neglect those benefits and advantages that it brings to you and anyone around you. As such, <strong>you develop a resistance or apprehension that eventually leads to mistaken notions or assumptions that things, events or activities, are difficult because they are physically and geographically distant</strong>.</p>
<p>Most groups of people, teams, organizations, families, will have very similar struggles when they are distant from one side of town versus the other one in Shanghai, as much as between Bordeaux and Nice, or between Argentina and Venezuela. If the struggles are similar or the same for everyone, the geographical distance no longer exists or represents a problem.</p>
<p>The problem in reality is <a href="https://medium.com/r/?url=https%3A%2F%2Fwww.health.harvard.edu%2Fmind-and-mood%2Fwhy-behavior-change-is-hard-and-why-you-should-keep-trying">human behavior change</a>. And human beings can&rsquo;t change easily or be told to do so. We are very accustomed to a single particular way of doing things that we don&rsquo;t take full advantage of what technology has brought us because of resisting to change. And this is not only about video calls, but about how we work, what we work on, how we adapt our transportation habits, <a href="https://medium.com/r/?url=https%3A%2F%2Fwww.sciencedirect.com%2Fscience%2Farticle%2Fpii%2FS1877042814041858">how we evolve as society</a>.</p>
<p>I personally find great pleasure on proving a lot of those assumptions wrong. And those assumptions are naturally on me as well, as a human being. But self-awareness of your own problem is the first step to improving anything. I therefore greatly enjoy proving myself wrong.</p>
]]></content>
  </entry>

  <entry>
    <title type="html"><![CDATA[2020 Am I Right]]></title>
    <link href="https://damog.net/blog/2020/11/21/2020-am-i-right/"/>
    <id>https://damog.net/blog/2020/11/21/2020-am-i-right/</id>
    <published>2020-11-21T21:20:55+01:00</published>
    <updated>2020-11-21T21:20:55+01:00</updated>
    <content type="html"><![CDATA[<p>What an absolute shit show 2020 has been, am I right?</p>
<p>It&rsquo;s definitively been one crazy ride. I started blogging and writing a private journey, actually. It&rsquo;s on Google Docs and it worked quite well even though there has nothing new on that for about six months. This post also serves as a simple proof that this blog is still alive and that I still intend to keep it updated.</p>
<p>For the time being, stay home, keep distanced from others and wear a mask.</p>
<p>From De Baarsjes, Amsterdam, NL, <em>dm</em>.</p>
]]></content>
  </entry>

  <entry>
    <title type="html"><![CDATA[21st Century Progress]]></title>
    <link href="https://damog.net/blog/2019/04/06/21st-century-progress/"/>
    <id>https://damog.net/blog/2019/04/06/21st-century-progress/</id>
    <published>2019-04-06T12:23:12+02:00</published>
    <updated>2019-04-06T12:23:12+02:00</updated>
    <content type="html"><![CDATA[<p>There&rsquo;s this very cool Twitter account called <a href="https://twitter.com/year_progress">@year_progress</a> that tweets every time the year has elapsed 1%. The author, <a href="https://filiph.net/">Filip Hráček</a> has built other counters in his <a href="https://progressbarserver.appspot.com/">progress bar page</a>, mainly to keep track of the current quarter, month and workday. Overall a pretty intersting hack.</p>
<p>Inspired by that hack and based on the fact that I wanted to try out some of the <a href="https://aws.amazon.com/lambda/">AWS Lambda features</a>, I started to think about how to calculate the progress of the entire 21st century. Given we are in 2019, assumption would be that we are roughly 19% in so far of the century. Then I started obsessing about it a little bit thinking on ways to calculate it. At the end, I learned a whole bunch about time calculation on a very long timespan. For instance, the fact that we have leap years makes the calculation far far interesting. A naive approach would be to think that every year elapsed will mean that 1% of the century has occured. And not really, since the leap years will unbalance that out:</p>
<p><div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#f92672">&gt;&gt;&gt;</span> <span style="color:#f92672">from</span> datetime <span style="color:#f92672">import</span> datetime, date, time
<span style="color:#f92672">&gt;&gt;&gt;</span> start <span style="color:#f92672">=</span> datetime(<span style="color:#ae81ff">2001</span>, <span style="color:#ae81ff">1</span>, <span style="color:#ae81ff">1</span>, <span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">0</span>)
<span style="color:#f92672">&gt;&gt;&gt;</span> end   <span style="color:#f92672">=</span> datetime(<span style="color:#ae81ff">2100</span>, <span style="color:#ae81ff">12</span>, <span style="color:#ae81ff">31</span>, <span style="color:#ae81ff">23</span>, <span style="color:#ae81ff">59</span>, <span style="color:#ae81ff">59</span>)
<span style="color:#f92672">&gt;&gt;&gt;</span> (end <span style="color:#f92672">-</span> start)<span style="color:#f92672">.</span>total_seconds()
<span style="color:#ae81ff">3155673599.0</span></code></pre></div>
Those are a lot of seconds in a whole century, isn&rsquo;t it.</p>
<p>So if we split all of those seconds into 100, to get 1%, we don&rsquo;t necessarily end up by the end of 2001 or early beginning of 2002:
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#f92672">&gt;&gt;&gt;</span> (end <span style="color:#f92672">-</span> start)<span style="color:#f92672">.</span>total_seconds() <span style="color:#f92672">/</span> <span style="color:#ae81ff">100</span>
<span style="color:#ae81ff">31556735.99</span>
<span style="color:#f92672">&gt;&gt;&gt;</span> start <span style="color:#f92672">+</span> timedelta(<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">31556735.99</span>)
datetime<span style="color:#f92672">.</span>datetime(<span style="color:#ae81ff">2002</span>, <span style="color:#ae81ff">1</span>, <span style="color:#ae81ff">1</span>, <span style="color:#ae81ff">5</span>, <span style="color:#ae81ff">45</span>, <span style="color:#ae81ff">35</span>, <span style="color:#ae81ff">990000</span>)</code></pre></div></p>
<p>We are actually 5 hours and 45 minutes into the new year: 5h 45m 35s to be exact. On the other end, we are logically roughly the same distance away:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#f92672">&gt;&gt;&gt;</span> start <span style="color:#f92672">+</span> timedelta(<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">31556735.99</span> <span style="color:#f92672">*</span> <span style="color:#ae81ff">99</span>)
datetime<span style="color:#f92672">.</span>datetime(<span style="color:#ae81ff">2099</span>, <span style="color:#ae81ff">12</span>, <span style="color:#ae81ff">31</span>, <span style="color:#ae81ff">18</span>, <span style="color:#ae81ff">14</span>, <span style="color:#ae81ff">23</span>, <span style="color:#ae81ff">10000</span>)</code></pre></div>
<p>Moreover, contrary to popular belief, not every four years a <a href="https://www.reddit.com/r/askscience/comments/3gvxio/why_is_the_year_2100_not_a_leap_year/">leap year</a> happens. 2100 is <strong>not</strong> a leap year. So in the 21st century there&rsquo;s 24 leap years:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#f92672">&gt;&gt;&gt;</span> <span style="color:#f92672">import</span> calendar
<span style="color:#f92672">&gt;&gt;&gt;</span> leaps <span style="color:#f92672">=</span> []
<span style="color:#f92672">&gt;&gt;&gt;</span> <span style="color:#66d9ef">for</span> i <span style="color:#f92672">in</span> range(<span style="color:#ae81ff">2001</span>, <span style="color:#ae81ff">2100</span> <span style="color:#f92672">+</span> <span style="color:#ae81ff">1</span>):
<span style="color:#f92672">...</span>     <span style="color:#66d9ef">if</span> calendar<span style="color:#f92672">.</span>isleap(i):
<span style="color:#f92672">...</span>             leaps<span style="color:#f92672">.</span>append(i)
<span style="color:#f92672">...</span> 
<span style="color:#f92672">&gt;&gt;&gt;</span> 
<span style="color:#f92672">&gt;&gt;&gt;</span> leaps
[<span style="color:#ae81ff">2004</span>, <span style="color:#ae81ff">2008</span>, <span style="color:#ae81ff">2012</span>, <span style="color:#ae81ff">2016</span>, <span style="color:#ae81ff">2020</span>, <span style="color:#ae81ff">2024</span>, <span style="color:#ae81ff">2028</span>, <span style="color:#ae81ff">2032</span>, <span style="color:#ae81ff">2036</span>, <span style="color:#ae81ff">2040</span>, <span style="color:#ae81ff">2044</span>, <span style="color:#ae81ff">2048</span>, <span style="color:#ae81ff">2052</span>, <span style="color:#ae81ff">2056</span>, <span style="color:#ae81ff">2060</span>, <span style="color:#ae81ff">2064</span>, <span style="color:#ae81ff">2068</span>, <span style="color:#ae81ff">2072</span>, <span style="color:#ae81ff">2076</span>, <span style="color:#ae81ff">2080</span>, <span style="color:#ae81ff">2084</span>, <span style="color:#ae81ff">2088</span>, <span style="color:#ae81ff">2092</span>, <span style="color:#ae81ff">2096</span>]</code></pre></div>
<p>So by the end of 2019, 4 leap years have elapsed in the century, which are 345600 seconds (4 times 86400 seconds).</p>
<p>So when 2019 comes to an end, we won&rsquo;t really be at 19% elapsed sharp:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python"><span style="color:#f92672">&gt;&gt;&gt;</span> end_2019 <span style="color:#f92672">=</span> datetime(<span style="color:#ae81ff">2019</span>, <span style="color:#ae81ff">12</span>, <span style="color:#ae81ff">31</span>, <span style="color:#ae81ff">23</span>, <span style="color:#ae81ff">59</span>, <span style="color:#ae81ff">59</span>)
<span style="color:#f92672">&gt;&gt;&gt;</span> full <span style="color:#f92672">=</span> end <span style="color:#f92672">-</span> start
<span style="color:#f92672">&gt;&gt;&gt;</span> ( ( end_2019 <span style="color:#f92672">-</span> start)<span style="color:#f92672">.</span>total_seconds() <span style="color:#f92672">/</span> full<span style="color:#f92672">.</span>total_seconds() ) <span style="color:#f92672">*</span> <span style="color:#ae81ff">100</span>
<span style="color:#ae81ff">18.998466735912885</span></code></pre></div>
<p>Time is a pain in arse but also kinda fun. Go follow <a href="https://twitter.com/century_bar">@century_bar</a> for more of this fun. A bit more of the explanation is at the GitHub repo <a href="https://github.com/damog/century-progress">here</a>.</p>
<p><em>dm</em></p>
]]></content>
  </entry>

  <entry>
    <title type="html"><![CDATA[Hugo]]></title>
    <link href="https://damog.net/blog/2019/03/31/hugo/"/>
    <id>https://damog.net/blog/2019/03/31/hugo/</id>
    <published>2019-03-31T20:53:11+02:00</published>
    <updated>2019-03-31T20:53:11+02:00</updated>
    <content type="html"><![CDATA[<p>I&rsquo;ve migrated this blog to <a href="https://gohugo.io">Hugo</a>. I can&rsquo;t believe how incredibly fast it is. Processing roughly 1400 of my posts takes it roughly 330ms. No other static site processor has ever been this fast with so much of my content.</p>
<p>Now the entire repo is <a href="https://github.com/damog/blog">here</a>.</p>
]]></content>
  </entry>

  <entry>
    <title type="html"><![CDATA[16 personalities 2019]]></title>
    <link href="https://damog.net/blog/2019/02/24/16-personalities-2019/"/>
    <id>https://damog.net/blog/2019/02/24/16-personalities-2019/</id>
    <published>2019-02-24T19:04:06+00:00</published>
    <updated>2019-02-24T19:04:06+00:00</updated>
    <content type="html"><![CDATA[<p>So this is new. And a bit surprising actually.</p>
<p><img src="https://damog.net/files/misc/blog/16personalities.png" alt=""></p>
]]></content>
  </entry>

  <entry>
    <title type="html"><![CDATA[Dell XPS 13 9380]]></title>
    <link href="https://damog.net/blog/2019/02/16/dell-xps-13-9380/"/>
    <id>https://damog.net/blog/2019/02/16/dell-xps-13-9380/</id>
    <published>2019-02-16T15:53:34+00:00</published>
    <updated>2019-02-16T15:53:34+00:00</updated>
    <content type="html"><![CDATA[<p>Got myself a XPS 13&quot; <a href="https://www.dell.com/en-us/work/shop/dell-laptops-and-notebooks/new-xps-13/spd/xps-13-9380-laptop?appliedRefinements=302">9380</a> that Dell just released as &ldquo;Developer Edition&rdquo; with Ubuntu 18.04 LTS pre-installed. They <em>just</em> released it on January 2019.</p>
<p>Ubuntu didn&rsquo;t last long though. I prefer OS X Mojave than any of the Ubuntu installations. It&rsquo;s okay though, it&rsquo;s just not for me.</p>
<p>Big big <em>big</em> shoutout to <a href="https://twitter.com/JeremyGarrouste?lang=en">Jérémy Garrouste</a> for <a href="https://wiki.debian.org/InstallingDebianOn/Dell/Dell_XPS_13_9380">his documentation</a> only a few days ago of the Debian installation for Buster on the laptop which helped me figure out I needed to upgrade the BIOS to fix a couple of issues and be able to run the <code>d-i</code> alpha 5 with the Atheros drivers. Time to dust a few things here and there :)</p>
<p><img src="https://damog.net/files/misc/blog/IMG_20190215_171421.jpg" alt=""></p>
<p><img src="https://damog.net/files/misc/blog/IMG_20190215_171647.jpg" alt=""></p>
<p><img src="https://damog.net/files/misc/blog/IMG_20190215_171736.jpg" alt=""></p>
<p><img src="https://damog.net/files/misc/blog/IMG_20190215_190933.jpg" alt=""></p>
<p>Well that&rsquo;s not a picture of the alpha <code>d-i</code> but from the first time I tried to install before upgrading the BIOS.</p>
]]></content>
  </entry>
</feed>
