<?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 Ezequiel Boehler on Medium]]></title>
        <description><![CDATA[Stories by Ezequiel Boehler on Medium]]></description>
        <link>https://medium.com/@ezequielboehler?source=rss-732ec8f0f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NT5liteIcBlhoHHw1oHAbg.jpeg</url>
            <title>Stories by Ezequiel Boehler on Medium</title>
            <link>https://medium.com/@ezequielboehler?source=rss-732ec8f0f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:19:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ezequielboehler/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[Productivizando una API de R via Docker y GCP. Parte 1]]></title>
            <link>https://medium.com/@ezequielboehler/productivizando-una-api-de-r-via-docker-y-gcp-parte-1-1e2d765590a6?source=rss-732ec8f0f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e2d765590a6</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[google-cloud-run]]></category>
            <dc:creator><![CDATA[Ezequiel Boehler]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 03:17:30 GMT</pubDate>
            <atom:updated>2019-09-03T03:17:30.474Z</atom:updated>
            <content:encoded><![CDATA[<h4>Automatizando proceso de ETL y reportería</h4><h4>Contexto</h4><p>Hace unos meses me toco viajar a Santiago, Chile, para un proyecto de un cliente. Mi rol ahi fue armar la estructura de medición y la reportería de un MVP de aceleración de ventas via campañas de Marketing Digital (Google y Facebook).</p><p>No muy sorprendentemente, el cliente tenía muy pocas métricas sobre la gestión de dichos prospectos. No había consenso sobre una tasa de conversión, ni de sus sitios web ni de la gestión post lead. Sumado a eso, esta era la primera vez que iban a salir a buscar prospectos fuera de bases cerradas, y el proyecto duraba solo 8 semanas, por lo que era importante aprender lo más velozmente posible las particularidades de dicha estrategia para poder ajustar rápido y optimizar.</p><p>Ahora bien, la información de dicha gestión, no pertenecía al mismo canal de ventas, sino a otro equipo, el de Inteligencia Comercial, que trabajaba los resultados con un proceso batch al principio de cada día, utilizando los datos de la gestión del día anterior. Por temas de seguridad me mandaban esos resultados en un archivo de .xlsx por mail cada mañana. A su vez, esa consulta de datos que me enviaban la realizaban manualmente cada día, por lo que a veces habían demoras en la entrega o diferencias en los formatos de la data en ciertas variables.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FbEVKYB487Lqxy%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FbEVKYB487Lqxy%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FbEVKYB487Lqxy%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="239" frameborder="0" scrolling="no"><a href="https://medium.com/media/e99c8044dbd9e24f164f7218f1f030a2/href">https://medium.com/media/e99c8044dbd9e24f164f7218f1f030a2/href</a></iframe><p>Una vez recibidos los datos, debía limpiarlos, hacer todos los cálculos pertinentes, y luego dejarlos disponibles en un reporte online para que puedan acceder el equipo de marketing, del canal de ventas, y otros stakeholders.</p><p>Eso lo termine solucionando con un script de R, que luego de realizar esas tareas, subía los datos limpios y los procesados a 2 tablas de BigQuery, que estaban conectadas a un Dashboard de Data Studio.</p><p>Pero el proyecto eventualmente iba a finalizar, y el proceso no podía depender de que alguien recibiera el correo con los datos crudos y corriera el script manualmente cada día. Se requería automatizar esas tareas.</p><h4>Proceso</h4><p>En mi cabeza sabia que automatizar esto tenía que ser posible, pero tenia solo las partes separadas. Por un lado, me imaginaba que tenia que haber una forma de correr el script de R a pedido, de forma automática, y ahi es donde recordé la librería Plumber, que permite crear una API en base a funciones en tu script de R.</p><p>Pero eso no iba a ser todo. Esa API tenía que estar levantada y disponible para ser utilizada. Y eso nunca lo había hecho antes. Pero por suerte, en la industria se hablaba (y aun se habla) de Cloud Run, un producto de Google Cloud para levantar y correr apps.</p><p>Así que bien, ya tenia la forma de que el script de R corra como una función desde un Endpoint (Plumber) y la forma de tener ese endpoint levantado (CloudRun). Pero quedaban aún 2 problemas más por resolver.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FqLWdMYX1NYF2g%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FqLWdMYX1NYF2g%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FqLWdMYX1NYF2g%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/92211ce133b7a825d5b0d661b27e1986/href">https://medium.com/media/92211ce133b7a825d5b0d661b27e1986/href</a></iframe><p>El primero es que R no es una app, por lo tanto, no tenía idea de cómo utilizar Cloud Run para levantar esto. Ahí es donde entra Docker. No voy a hablar mucho de Docker porque este es el primer proyecto en el que lo utilice, y creo que lo logre más bien a fuerza de prueba y error, que a un entendimiento profundo del asunto. Pero en resumen, Docker me permitía crear una instancia donde esté instalado R y todas las dependencias que necesitaba para mi script, e inclusive levantar la API de Plumber al correr.</p><p>El segundo era que una vez levantado todo eso, se suponía que debía funcionar automáticamente. Para mi suerte, Google Cloud tiene otro producto llamado Cloud Functions. Te permite escribir funciones en distintos lenguajes (en este caso Node.js) que corren al suceder determinados eventos, y se conectan muy bien con otros productos de Google Cloud. Mejor aún, uno de los triggers / disparadores que se podían usar por defecto, era la subida o creación de un archivo en Google Cloud Storage. Ahora sí, tenia todas las piezas.</p><p>Entonces, como funcionaria esto? Pues así:</p><ol><li>El cliente sube el archivo que me enviaba por mail directo a un bucket de Google Cloud Storage.</li><li>Al hacer eso, una Cloud Function programada para escuchar cuándo un nuevo archivo se sube a ese Bucket, se ejecuta, y hace un Http request al endpoint que le indico.</li><li>Ese endpoint, es uno disponibilizado por Cloud Run, que tiene subida la imagen de Docker que incluye el script de R</li><li>El Endpoint recibe el request, corre la función de R, que lee este nuevo archivo subido, lo procesa, lo limpia y sube los datos a las tablas en Big Query</li><li>El reporte de Data Studio actualiza sus visualizaciones en base a la nueva data.</li></ol><p>Y listo! De esa forma, el único proceso manual es que el equipo de Inteligencia Comercial suba el archivo a Google Cloud Storage en vez de mandarlo por mail todas las mañanas.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FOHZ1gSUThmEso%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FOHZ1gSUThmEso%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa3Q4MTQ3aXBucHFiODM5YjNkZnEyN2xjMmxkcXl3MGdqNWwzanQ0biZlcD12MV9naWZzX2dpZklkJmN0PWc%2FOHZ1gSUThmEso%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="285" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad368894b6ffe6fc049ee45c8e795386/href">https://medium.com/media/ad368894b6ffe6fc049ee45c8e795386/href</a></iframe><h4>Conclusión</h4><p>Lo que me importa que se lleven de esto es que con pocas piezas (Plumber, Docker y Cloud Run) es posible disponibilizar una API escrita en R. La misma puede tener infinitas utilidades. En mi caso, fue para automatizar un proceso de ETL y reportería, pero también puede servir para hacer públicos modelos de Machine Learning, para crear servicios de Self-Service Analytics, entre otras cosas.</p><p>Si bien el proceso explicado así suena simple y fácil, y en verdad lo es, tenerlo listo me llevó a encontrarme con varias dificultades, principalmente en lograr que la imagen de Docker funcione.</p><p>Es por eso que en las siguientes partes de esta sería contare en detalle cada uno de los pasos de dicho proceso, comentando cómo supere cada obstáculo hasta lograr dejarlo funcionando.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e2d765590a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Fight For Work. Humans vs Machines. Addressing The Real Issue — Part 1]]></title>
            <link>https://medium.com/@ezequielboehler/the-fight-for-work-humans-vs-machines-addressing-the-real-issue-part-1-71e96636499d?source=rss-732ec8f0f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/71e96636499d</guid>
            <category><![CDATA[society]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ezequiel Boehler]]></dc:creator>
            <pubDate>Wed, 19 Oct 2016 01:45:46 GMT</pubDate>
            <atom:updated>2016-10-19T01:45:46.252Z</atom:updated>
            <content:encoded><![CDATA[<p><em>(On this Part 1, I will introduce my opinion on the subject. Keep in touch for Part 2, where I will try to come up with some possible solutions to it, and ways to make a healthy transition)</em></p><p>So, as many of you, I kept reading this last few weeks a bunch of articles about the future of work regarding the advancements in machine learning, automation and robotics. Like a lot of aspects in life, some are in favor, some against it.</p><p>But what I didn’t find yet, in any of them, is an explanation of what is our actual role in work. Our present work situation. And don’t get me wrong, I am not talking about unemployment, or what will the jobs of the future be, nor anything of the sorts. I’m talking here about what does work means to us, as a species.</p><p>Let me start by stating that, although many are taught the idea of needing to work just in order to survive, it is not the intrinsic reason of why humans work. Sure, it happens to be correlated, of course, but correlation does not imply causality.</p><p>We work because we think. To work, is to put in motion the idea of achieving. Something. Anything. A mind that is not capable of working, is a mind that is not capable of thinking. And the other way around applies too.</p><p>Though I hope that the reader won’t rage against this article, I want to make a pause here to make it clear that I know that in the world today, for many many people it is not an option to work for work’s sake, and that in fact if they don’t work they don’t eat, thus they don’t live. I am fully aware of this. And that’s exactly why I’m writing this article.</p><p>The issue I am addressing here is that if we believe that working is an intrinsic condition and necessity of us humans, because it lets us achieve, it lets us express ourselves, it gives us fulfillment, then work may never die. Because that would mean the death of the mind. A society in which no one works, is a numb one. Do not think of “work” as your 9 to 5 routine which stops you from doing other enjoyable things. Think of work as the idea of getting things done by thinking. If that stops, then we would get stuck, forever.</p><p>So please, everyone who thinks that machines working will be the doom of every human worker and create havoc on society as we know it, take a second to assimilate the fact that no machine will ever stop you from thinking or achieving.</p><p>Of course, things will change, but follow me on this idea. We have mainstream solar energy for every house just around the corner. There is innovation on construction materials that let us have more resistant buildings for less money. Agro technology is always evolvingr to being able to produce food more efficiently. We have good quality education at a very low cost thanks to the Internet. We can communicate with others all across the world cheaply. The collaboration economy helps us do many things for fewer bucks, like fundraising, finding a place to live, travel, and so much more. Take one of the most recent advancements for example: yesterday scientists broke a new record on nuclear fusion, getting closer to unlimited clean energy.</p><p>If you are like me, then you are getting the idea that the costs of living are dropping, and the quality of life is increasing. Yes, I know that not for everyone. But as long as this keeps on, we will all be able to do work that is actually meaningful for each individual. And then, and I hope this will be of global interest, many of us will be working on spreading this conditions towards every inch of the earth, raising the quality of life on all cities, towns, countries that nowadays are striving to survive.</p><p>We. Wont. Stop. Working. We will be working on different things. Some, unthinkable right now. Others, of worldwide importance. So to everyone reading this, I ask you to start thinking forward now, start being part of those solutions that you may think today are unachievable, because believe me, if you do that, you won’t be needing to worry about work. You will be working/thinking your whole life on building a better world. And that mindset is something really hard, maybe impossible, to replace with a machine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71e96636499d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>