<?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 Marcelo Fernández on Medium]]></title>
        <description><![CDATA[Stories by Marcelo Fernández on Medium]]></description>
        <link>https://medium.com/@mar.ale.fer?source=rss-feb74e044f3e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yJ0X35YWnG5x_PrVMgSfCQ.jpeg</url>
            <title>Stories by Marcelo Fernández on Medium</title>
            <link>https://medium.com/@mar.ale.fer?source=rss-feb74e044f3e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 12:34:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mar.ale.fer/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[Argentinian Song “Era en Abril”]]></title>
            <link>https://medium.com/@mar.ale.fer/argentinian-song-era-en-abril-f2206e4b08e4?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2206e4b08e4</guid>
            <category><![CDATA[spanish-music]]></category>
            <category><![CDATA[music]]></category>
            <category><![CDATA[latin-american-music]]></category>
            <category><![CDATA[rock-nacional]]></category>
            <category><![CDATA[argentinian-culture]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Wed, 26 Mar 2025 14:17:49 GMT</pubDate>
            <atom:updated>2025-04-04T15:48:44.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkjKOJlPcFDnmPLYDjIPnA.jpeg" /><figcaption>My sketch of an Amaryllis flower, drawn while writing this post.</figcaption></figure><p>One of the most beautiful and, at the same time, saddest songs — a musical representation of the grays of an autumn afternoon.</p><p><em>Era en abril el ritmo tibio<br>De mi chiquito que danzaba<br>Dentro del vientre un prado en flor<br>Era su lecho y el ombligo y el ombligo<br>Y el ombligo el sol</em></p><p>In English, the meaning is like:</p><p><em>It was in April, the warm rhythm<br> of my little one dancing<br> inside the womb, a meadow in bloom<br> It was his bed, and the navel, the sun</em></p><p>That is for me the highest part, the most emotionally appealing part of this song.</p><p>You can search for the full lyrics, but before that, listen to one of the first recordings of this song.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2x36iSDJLaQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2x36iSDJLaQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2x36iSDJLaQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e97994dc1490d41752d008ac95289c39/href">https://medium.com/media/e97994dc1490d41752d008ac95289c39/href</a></iframe><p>The song tells the story of a couple, a father and mother, whose baby was not born because it died in the womb</p><p>There are very famous Argentinian artists in this video:</p><ul><li>Juan Carlos Baglietto</li><li>Silvina Garré</li><li>Fito Paez in the piano</li></ul><p>This song was written by Jorge Fandermole when he was a teenager, years before it became so popular in the 80s.</p><p>I would like to start a series of posts with this one, focusing on interesting cultural and social topics from Argentina, Latin America, and the broader Latin world (including books and songs from Spain).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2206e4b08e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey building my platform from scratch. part 1]]></title>
            <link>https://medium.com/@mar.ale.fer/journey-building-my-platform-from-scratch-part-1-9da762b1d0a0?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9da762b1d0a0</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Thu, 19 Sep 2024 02:00:36 GMT</pubDate>
            <atom:updated>2025-04-16T18:40:14.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*3N6VUCqIgI398Ifoohn7Lw.gif" /><figcaption>Architecture schema that includes from left to right: Route 53, Cloudfront, API Gateway, Lambda, and DynamoDB</figcaption></figure><p>I am making a few PoCs and combining them to have the whole application. That is my approach to the job.</p><p>The platform&#39;s objective is to provide some services to tourists in transit, like LuggageHero.</p><p>Then, I need to implement:</p><ul><li>Payments, with Stripe</li><li>A sort of map to search for storage providers</li><li>A booking system</li></ul><p>Some rules and procedures for both sides: Luggage owners and storage providers</p><p>That is the general overview and will be the context for this and future articles. But my focus will be on my decision-making by choosing some tech or discoveries I will make, because I need to learn, for instance, Leafled to show a Map.</p><h4>My security concerns influenced the platform of choice</h4><p>My first obstacle for years to change from developing administrative systems to creating solutions for consumers was the fear of being hacked, not only about information unfolding or stolen but also about paying high amounts for infrastructure used on my behalf by an attacker.</p><p>So, after having reviewed many times cloud providers, for this journey I decided to use AWS, because of their IAM service. Ok with that I have some level of security in the platform itself. I like the granularity, at the point that you can have a Lambda for instance that only have permissions to read in a DynamoTable… and it is simple to maintain this policies.</p><h4><strong>Security concerns about my product</strong></h4><p>How can I securely develop my platform and be efficient in resource utilization?</p><p>It’s not only about being attacked, it’s also about money. How to start cheap when you have few users, mitigate risks, and be prepared to scale.</p><p>I am embracing a Serverless approach to tackle security and financial efficiency.</p><p>For that, the more convenient data store is DynamoDB, and the better processing service is Lambda Functions.</p><p>Backend services. Protecting from the outside to the inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*3N6VUCqIgI398Ifoohn7Lw.gif" /><figcaption>The same diagram</figcaption></figure><p>So, the idea is, from the backend to the frontend:</p><ul><li>Tables in DynamoDB</li><li>Lambda to do CRUD on those tables</li><li>API Gateway to expose the services</li><li>Route 53 to have my domain running</li><li>CloudFront distributions,</li></ul><p><strong>Route 53</strong>. It manages DNS for my domain and subdomains. I need them to expose my landing page, frontend (React), and endpoints.</p><p><strong>CloudFront distributions. </strong>These act as a barrier in front of my endpoints. From the distribution, for example, I point to an endpoint in API Gateway. This allows me to filter traffic — such as restricting IP connections to a few countries at the beginning — and helps prevent attacks or unwanted consumption of my services.</p><p>This is good, it is a matter of peace of mind (security). Without thinking about it, the list was ordered from the most expensive (DynamoDB) to the cheapest (CloudFormation).</p><p>You have to protect in that order. CloudFront capacity to filter traffic is powerful and cheap. On the other hand, with API Gateway, if you have an evil bot generating a relentless flood of traffic, they (AWS) will charge you the same, even if you have a rejection rule in API Gateway, they will charge you as a request.</p><p>Could happen that unnecessary requests pass Cloudfront and API Gateway. Indeed here you can save resources by preventing consuming DynamoDB by using models to filter bad-formed requests or inside your Lambda logic. And so on… In DynamoDB, you have capacity units to define some threshold of consumption, and eventually, AWS will throttle the consumption, send you an alert (you need to configure it), and give you time to think and adjust.</p><p>I will continue with more details about the topics from this article in this journey. In the following articles, I will also write about other decisions like using Serverless Framework, GitHub Actions, Cognito Authentication, React, Redux, and TanStak.</p><p>Previous to publishing the extended articles here, I am publishing them on LinkedIn, the whole series is here:<a href="https://www.linkedin.com/posts/maralefer_aws-serverless-dynamodb-activity-7273063626935009281-FBQ3?utm_source=share&amp;utm_medium=member_desktop"> https://www.linkedin.com/posts/maralefer_aws-serverless-lambda-activity-7247747744017072128-pDoN?utm_source=share&amp;utm_medium=member_desktop</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9da762b1d0a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebranding My Portfolio: Adding Multilingual Options with Gulp and Tailwind CSS]]></title>
            <link>https://medium.com/@mar.ale.fer/rebranding-my-portfolio-adding-multilingual-options-with-gulp-and-tailwind-css-b2fc2b0b2883?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2fc2b0b2883</guid>
            <category><![CDATA[domain-names]]></category>
            <category><![CDATA[multilanguage]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[gulp]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Sat, 10 Aug 2024 11:04:50 GMT</pubDate>
            <atom:updated>2024-08-10T11:04:50.434Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekqvXNnTo60ZvqbFR9Cugw.png" /><figcaption>Editing my logo on the Inkscape App</figcaption></figure><h3>Getting a new domain</h3><p>I want to share my first steps to change my portfolio web page to support both Spanish and English.</p><p>My objective is to change from <a href="http://www.respuestadigital.com.ar/">www.respuestadigital.com.ar</a> to <a href="http://www.digitalanswer.online./">www.digitalanswer.online.</a></p><p>First of all, I bought a new domain on Godaddy, <a href="https://www.godaddy.com/">https://www.godaddy.com/</a></p><p>In the GoDaddy control panel, I said that I wanted to use my existing domain which is on the DigitalOcean cloud, <a href="https://www.digitalocean.com/">https://www.digitalocean.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-NjN2Zf28PP3W2GJgOc3dg.png" /></figure><p>From this point, I followed several steps and I will summarize them to go straight to the point of this article.</p><h3>Summarized: DNS tasks, configuring Nginx, and testing the new domain</h3><p>On DigitalOcean, I added the new domain in networking and pointed to a droplet ( a virtual machine) that hosts the current portfolio site.</p><p>Inside that droplet, I added a configuration file, pointing to the same folder, to say to Nginx (<a href="https://nginx.org/en/">https://nginx.org/</a>)to serve the site for the new domain; and added HTTPS support using Certbot, <a href="https://certbot.eff.org/">https://certbot.eff.org/</a>.</p><p>From then I have the Spanish old version but running in the new domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7g1O4OUS3KUDSGjXX6PlQ.png" /><figcaption>A screenshot of a website in Spanish with a domain in English</figcaption></figure><h3>The first approach to a multilanguage page</h3><p>Being the first time I was doing this for myself, I asked GPT, <a href="https://chat.openai.com/">https://chat.openai.com/</a></p><p>It provided a simple starting point for a webpage in two languages</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;My Bilingual Website&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;!-- English Content --&gt;<br>    &lt;div id=&quot;english&quot; lang=&quot;en&quot;&gt;<br>        &lt;h1&gt;Welcome to My Website&lt;/h1&gt;<br>        &lt;p&gt;This is an example of a bilingual website.&lt;/p&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Spanish Content --&gt;<br>    &lt;div id=&quot;spanish&quot; lang=&quot;es&quot;&gt;<br>        &lt;h1&gt;Bienvenido a Mi Sitio Web&lt;/h1&gt;<br>        &lt;p&gt;Este es un ejemplo de un sitio web bilingüe.&lt;/p&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Language Selection --&gt;<br>    &lt;div&gt;<br>        &lt;button onclick=&quot;showEnglish()&quot;&gt;English&lt;/button&gt;<br>        &lt;button onclick=&quot;showSpanish()&quot;&gt;Español&lt;/button&gt;<br>    &lt;/div&gt;<br><br>    &lt;script&gt;<br>        function showEnglish() {<br>            document.getElementById(&#39;english&#39;).style.display = &#39;block&#39;;<br>            document.getElementById(&#39;spanish&#39;).style.display = &#39;none&#39;;<br>        }<br><br>        function showSpanish() {<br>            document.getElementById(&#39;english&#39;).style.display = &#39;none&#39;;<br>            document.getElementById(&#39;spanish&#39;).style.display = &#39;block&#39;;<br>        }<br><br>        // Default to English<br>        showEnglish();<br>    &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*I1DsAVz-V9twfxnnJEcHvQ.gif" /></figure><p>That was in the right way. Then I continued adding content to the basic HTML in both sections and applying Tailwind CSS styles, <a href="https://tailwindcss.com/">https://tailwindcss.com/</a></p><p>This CSS framework is optional, but I wanted to be more familiar with it.</p><h3>This approach can’t grow so much, I needed to add some tooling, and the answer was Gulp.</h3><p>Eventually, the page grew, and I was at the point when I needed to choose between continuing with the one-file approach or trying something different.</p><p>I made the previous page, the Spanish version, 4 years ago using Gatsby.js, <a href="https://www.gatsbyjs.com/">https://www.gatsbyjs.com/</a></p><p>The problem with that version was that I based it on a Gatsby template with complex CSS styling (at least for me). This time I wanted to take more control, asked again to GPT, how to split the HTML file into a few parts, ideally having templates for different languages, and it suggested using Gulp, <a href="https://gulpjs.com/">https://gulpjs.com/</a></p><p>At first glance, it is like Gatsby or Next.js, but without React.js, resembles template engines that you could be familiar with, like RoR, Django, or ASP.NET. For me, it is a template engine that could have files as inputs and generate files as outputs.</p><p>After playing with it, I have a folder structure I want to share with you, to save you time if you want to follow this approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*Iu8Rgm4PHjfo9zF7gAnRgw.png" /><figcaption>Screenshot of a folder structure on Visual Studio Code</figcaption></figure><p>You can see that it is a node.js project. I will share the files’ content but before that I want to comment about this structure.</p><p>You need to run gulp when your work is done, so I added it as a script in package.json. When you run Gulp, it generates the dist folder, with the HTTP, CSS, and assets that are the site ready to publish.</p><p>Gulp execution is controlled by gulpfile.js. It takes the content of the <strong>data</strong>, <strong>lang</strong>, and <strong>partials</strong> folders, and combines them to generate the <strong>dist</strong> folder.</p><p>The JSON files in the <strong>data</strong> folder have the content in both languages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*tRwNI7s9vsUmnptau0m70g.png" /></figure><p>data/index-en.json</p><pre>{<br>    &quot;header&quot;: {<br>      &quot;title&quot;: &quot;Welcome to My Website&quot;,<br>      &quot;description&quot;: &quot;This is an example of a bilingual website.&quot;<br>    },<br>    &quot;buttons&quot;: {<br>      &quot;signin&quot;: &quot;Sign In&quot;,<br>      &quot;signup&quot;: &quot;Sign Up&quot;,<br>      &quot;another_language&quot;: &quot;Español&quot;,<br>      &quot;another_lang_code&quot;: &quot;es&quot;<br>    },<br>    &quot;cards&quot;: [<br>      {<br>        &quot;icon&quot;: &quot;fas fa-users text-blue-500&quot;,<br>        &quot;title&quot;: &quot;Access and Collaborate&quot;,<br>        &quot;text&quot;: &quot;Access your patient&#39;s history from any device. You can collaborate with up to 5 users in your clinic.&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-lock text-green-500&quot;,<br>        &quot;title&quot;: &quot;Trust&quot;,<br>        &quot;text&quot;: &quot;We take security seriously. Your data and your patients&#39; data will always be secure because we use HTTPS.&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-money-bill-wave text-green-500&quot;,<br>        &quot;title&quot;: &quot;Save Money!&quot;,<br>        &quot;text&quot;: &quot;The first month of the service is free!&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-dollar-sign text-yellow-500&quot;,<br>        &quot;title&quot;: &quot;Lowest Fee&quot;,<br>        &quot;text&quot;: &quot;6 USD, 10 NZD, or 10 AUD.&quot;<br>      }<br>    ],<br>    &quot;footer&quot;:{<br>      &quot;copyright&quot;: &quot;2024 digital answer, all rights reserved&quot;<br>    }<br>  }</pre><p>data/index-es.json</p><pre>{<br>    &quot;header&quot;: {<br>      &quot;title&quot;: &quot;Bienvenido a Mi Sitio Web&quot;,<br>      &quot;description&quot;: &quot;Este es un ejemplo de un sitio web bilingüe.&quot;<br>    },<br>    &quot;buttons&quot;: {<br>      &quot;signin&quot;: &quot;Ingresar&quot;,<br>      &quot;signup&quot;: &quot;Registrarse&quot;,<br>      &quot;another_language&quot;: &quot;English&quot;,<br>      &quot;another_lang_code&quot;: &quot;en&quot;<br>    },    <br>    &quot;cards&quot;: [<br>      {<br>        &quot;icon&quot;: &quot;fas fa-users text-blue-500&quot;,<br>        &quot;title&quot;: &quot;Accede y Colabora&quot;,<br>        &quot;text&quot;: &quot;Accede a la historia de tu paciente desde cualquier dispositivo. Puedes colaborar con hasta 5 usuarios en tu clínica.&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-lock text-green-500&quot;,<br>        &quot;title&quot;: &quot;Confía&quot;,<br>        &quot;text&quot;: &quot;Nos tomamos la seguridad en serio. Tus datos y los de tus pacientes siempre estarán seguros porque usamos HTTPS.&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-money-bill-wave text-green-500&quot;,<br>        &quot;title&quot;: &quot;¡Ahorra!&quot;,<br>        &quot;text&quot;: &quot;¡El primer mes del servicio es gratis!&quot;<br>      },<br>      {<br>        &quot;icon&quot;: &quot;fas fa-dollar-sign text-yellow-500&quot;,<br>        &quot;title&quot;: &quot;La Cuota Más Baja&quot;,<br>        &quot;text&quot;: &quot;6 USD, 10 NZD, o 10 AUD.&quot;<br>      }<br>    ],<br>    &quot;footer&quot;:{<br>      &quot;copyright&quot;: &quot;2024 digital answer, todos los derehos reservados&quot;<br>    }<br><br>  }</pre><p>The<strong> lang</strong> folder contains the templates for both languages, in my case they provide the same layout because I am focused on content right now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*eUA2QflESKJ6dG745iNgNg.png" /></figure><p>lang/index-en.html</p><pre>@@include(&#39;../partials/header.html&#39;)<br>&lt;main class=&quot;container mx-auto p-4&quot;&gt;<br>    &lt;div class=&quot;flex flex-wrap -mx-4&quot;&gt;<br>        @@include(&#39;../partials/cards.html&#39;)<br>    &lt;/div&gt;<br>&lt;/main&gt;<br>@@include(&#39;../partials/footer.html&#39;)</pre><p>lang/index-es.html</p><pre>@@include(&#39;../partials/header.html&#39;)<br>&lt;main class=&quot;container mx-auto p-4&quot;&gt;<br>    &lt;div class=&quot;flex flex-wrap -mx-4&quot;&gt;<br>        @@include(&#39;../partials/cards.html&#39;)<br>    &lt;/div&gt;<br>&lt;/main&gt;<br>@@include(&#39;../partials/footer.html&#39;)</pre><p>Here you can see the benefit of splitting the one-page file. Now we have these two templates, and each template also is composed of other templates: <strong>header</strong>, <strong>cards</strong>, and <strong>footer</strong>.</p><h3>Templates and data working together</h3><p>In the <strong>partials</strong> folder, I have the <strong>header</strong>, <strong>cards</strong>, and <strong>footer </strong>templates. In them, I can get information from the data folder using the Gulp tags:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*IvYYwmeaFeKJWKai62yupQ.png" /></figure><p>partials/header.html</p><pre>&lt;header class=&quot;bg-gradient-to-r from-white via-gray-200 to-gray-100 p-4 flex justify-between items-center&quot;&gt;<br>    &lt;img src=&quot;../assets/digitalanswer_logo.png&quot; alt=&quot;Logo&quot;  class=&quot;h-12&quot;&gt;<br>    &lt;div class=&quot;space-x-4&quot;&gt;<br>        &lt;button class=&quot;px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-700&quot;&gt;{{ buttons.signin }}&lt;/button&gt;<br>        &lt;button class=&quot;px-4 py-2 bg-green-500 text-white rounded hover:bg-green-700&quot;&gt;{{ buttons.signup }}&lt;/button&gt;<br>        &lt;button <br>            class=&quot;px-4 py-2 bg-gray-500 text-white rounded hover:bg-gray-700&quot;<br>            onclick=&quot;showContent(&#39;{{ buttons.another_lang_code }}&#39;)&quot;<br>        &gt;<br>        &lt;i class=&quot;fas fa-language&quot;&gt;&lt;/i&gt;<br>            {{buttons.another_language}}<br>        &lt;/button&gt;<br>    &lt;/div&gt;<br>&lt;/header&gt;</pre><p>Here you have the logo and the buttons. Pay attention to the <strong>{{}}</strong> tags that get information from <strong>data/index-en.jso</strong>n and <strong>data/index-es.json</strong></p><p>When built, it looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*A5y4dZnW4tAF-v9cwyYrgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*ar3Lu9Ae8LZlGkF8rB8Tvw.png" /></figure><p>partials/footer.html</p><pre>&lt;footer class=&quot;m-3 p-5 border-t-2 border-zinc-500&quot;&gt;<br>    &lt;img src=&quot;../assets/digitalanswer_logo.png&quot; alt=&quot;Logo&quot;  class=&quot;h-8&quot;&gt;<br>    &lt;p&gt;&lt;i class=&quot;fa-regular fa-copyright&quot;&gt;&lt;/i&gt; {{footer.copyright}}&lt;/p&gt;<br>  &lt;/footer&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*AvTys4liycDQv7QITDYirA.png" /></figure><p>The next is the more interesting because iterates the card information</p><p>partials/cards.html</p><pre>{% for card in cards %}<br>&lt;div class=&quot;w-full sm:w-1/2 md:w-1/4 px-4 mb-4&quot;&gt;<br>    &lt;div class=&quot;bg-white p-6 rounded-lg shadow-lg h-full&quot;&gt;<br>        &lt;div class=&quot;flex items-center mb-4&quot;&gt;<br>            &lt;i class=&quot;{{ card.icon }} text-4xl text-blue-500&quot;&gt;&lt;/i&gt;<br>            &lt;h2 class=&quot;text-2xl font-bold ml-4&quot;&gt;{{ card.title }}&lt;/h2&gt;<br>        &lt;/div&gt;<br>        &lt;p&gt;{{ card.text }}&lt;/p&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>{% endfor %}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XFvcPwd6vH9L4AYHblGjQ.png" /></figure><p>The final touch is in <strong>templates/index.htm</strong>l, this file has the logic to switch between languages</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;script src=&quot;https://cdn.tailwindcss.com&quot;&gt;&lt;/script&gt;<br>    &lt;!-- &lt;link href=&quot;./css/tailwind.css&quot; rel=&quot;stylesheet&quot;&gt; --&gt;<br>    &lt;script src=&quot;https://kit.fontawesome.com/&lt;mi_fa_code&gt;.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>    &lt;title&gt;digital answer site&lt;/title&gt;<br>    &lt;style&gt;<br>        .language-content {<br>            display: none;<br>        }<br>        .language-content.active {<br>            display: block;<br>        }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;!-- English Content --&gt;<br>    &lt;div id=&quot;content-en&quot; class=&quot;language-content&quot;&gt;<br>        &lt;!-- English content will be injected here --&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Spanish Content --&gt;<br>    &lt;div id=&quot;content-es&quot; class=&quot;language-content&quot;&gt;<br>        &lt;!-- Spanish content will be injected here --&gt;<br>    &lt;/div&gt;<br><br>    &lt;script&gt;<br>        function loadContent(language) {<br>            fetch(`index-${language}.html`)<br>                .then(response =&gt; response.text())<br>                .then(data =&gt; {<br>                    document.getElementById(`content-${language}`).innerHTML = data;<br>                    document.getElementById(`content-${language}`).classList.add(&#39;active&#39;);<br>                });<br>        }<br><br>        function showContent(language) {<br>            console.log(`load content---${language}`)<br><br>            document.getElementById(&#39;content-en&#39;).classList.remove(&#39;active&#39;);<br>            document.getElementById(&#39;content-es&#39;).classList.remove(&#39;active&#39;);<br>            loadContent(language);<br>        }<br><br>        // Set default language<br>        document.addEventListener(&#39;DOMContentLoaded&#39;, (event) =&gt; {<br>            showContent(&#39;en&#39;); // Default to English<br>        });<br>    &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>The Gulp script is in gulpfile.js</p><pre>const gulp = require(&#39;gulp&#39;);<br>const fileInclude = require(&#39;gulp-file-include&#39;);<br>const postcss = require(&#39;gulp-postcss&#39;);<br>const tailwindcss = require(&#39;tailwindcss&#39;);<br>const autoprefixer = require(&#39;autoprefixer&#39;);<br>const data = require(&#39;gulp-data&#39;);<br>const nunjucksRender = require(&#39;gulp-nunjucks-render&#39;);<br>const fs = require(&#39;fs&#39;);<br>const path = require(&#39;path&#39;);<br><br>// Function to get data for the HTML files<br>function getDataForFile(file) {<br>    const lang = path.basename(file.path, &#39;.html&#39;);<br>    const dataFilePath = `./src/data/${lang}.json`;<br>    if (fs.existsSync(dataFilePath)) {<br>        return JSON.parse(fs.readFileSync(dataFilePath));<br>    }<br>    return {}; // Return empty object if data file does not exist<br>}<br><br>// CSS task to process Tailwind CSS<br>gulp.task(&#39;css&#39;, function() {<br>    return gulp.src(&#39;src/css/tailwind.css&#39;)<br>        .pipe(postcss([<br>            tailwindcss,<br>            autoprefixer<br>        ]))<br>        .pipe(gulp.dest(&#39;dist/css&#39;));<br>});<br><br>// HTML task to process partials and language-specific HTML files with file includes and Nunjucks<br>gulp.task(&#39;html-partials&#39;, function() {<br>    return gulp.src(&#39;src/lang/*.html&#39;)<br>        .pipe(fileInclude({<br>            prefix: &#39;@@&#39;,<br>            basepath: &#39;@file&#39;<br>        }))<br>        .pipe(data(getDataForFile))<br>        .pipe(nunjucksRender({<br>            path: [&#39;src/templates&#39;]<br>        }))<br>        .pipe(gulp.dest(&#39;dist&#39;));<br>});<br><br>// HTML task to process the main index.html template<br>gulp.task(&#39;html-index&#39;, function() {<br>    return gulp.src(&#39;src/templates/index.html&#39;)<br>        .pipe(data(getDataForFile))<br>        .pipe(nunjucksRender({<br>            path: [&#39;src/templates&#39;]<br>        }))<br>        .pipe(gulp.dest(&#39;dist&#39;));<br>});<br><br>// Default task to run both CSS and HTML tasks<br>gulp.task(&#39;default&#39;, gulp.series(&#39;css&#39;, &#39;html-partials&#39;, &#39;html-index&#39;));</pre><p>To list all the files, there is an image located at assets/digitalanswer_logo.png. Additionally, there is a stylesheet at src/css/tailwind.css with the following content:</p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p>I have this<strong> package.json</strong>, you can see the dependencies and the build script. I am using node.js v.20 (I switch between node versions using nvm <a href="https://github.com/nvm-sh/nvm">https://github.com/nvm-sh/nvm</a>)</p><pre>{<br>  &quot;name&quot;: &quot;digitalanswer_site&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;description&quot;: &quot;digitalanswer site&quot;,<br>  &quot;main&quot;: &quot;index.js&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,<br>    &quot;build&quot;: &quot;gulp&quot;<br>  },<br>  &quot;repository&quot;: {<br>    &quot;type&quot;: &quot;git&quot;,<br>    &quot;url&quot;: &quot;git+https://github.com/mar-ale-fer/digitalanswer_site.git&quot;<br>  },<br>  &quot;keywords&quot;: [],<br>  &quot;author&quot;: &quot;&quot;,<br>  &quot;license&quot;: &quot;ISC&quot;,<br>  &quot;bugs&quot;: {<br>    &quot;url&quot;: &quot;https://github.com/mar-ale-fer/digitalanswer_site/issues&quot;<br>  },<br>  &quot;homepage&quot;: &quot;https://github.com/mar-ale-fer/digitalanswer_site#readme&quot;,<br>  &quot;dependencies&quot;: {<br>    &quot;autoprefixer&quot;: &quot;^10.4.20&quot;,<br>    &quot;gulp&quot;: &quot;^5.0.0&quot;,<br>    &quot;gulp-data&quot;: &quot;^1.3.1&quot;,<br>    &quot;gulp-file-include&quot;: &quot;^2.3.0&quot;,<br>    &quot;gulp-nunjucks-render&quot;: &quot;^2.2.3&quot;,<br>    &quot;gulp-postcss&quot;: &quot;^10.0.0&quot;,<br>    &quot;tailwindcss&quot;: &quot;^3.4.8&quot;<br>  }<br>}</pre><p>to have these dependencies I executed the following</p><pre>npm install gulp-file-include gulp-postcss tailwindcss autoprefixer gulp-data gulp-nunjucks-render</pre><p>And executed both, I think one is enough, the local or the global shall be ok</p><pre>npm install --global gulp-cli</pre><p>and</p><pre>npm install gulp</pre><p>When I run gulp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_XPW499kd-pNj307k-D4IQ.gif" /></figure><p>I can test the generated site on the <strong>dist</strong> folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*sl4XrCj45kVlxlZ8es4ciw.gif" /></figure><p><strong>Conclusion</strong></p><p>Now, I can confidently continue adding content about my products, having become familiar with Tailwind and the associated tooling. Additionally, with the code stored in a Git repository, I can easily track my changes. I hope this Gulp tooling setup saves you some time as well.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2fc2b0b2883" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing a Flutter Web app that uses Socket.io from another machine in my network.]]></title>
            <link>https://medium.com/@mar.ale.fer/testing-a-flutter-web-app-that-uses-socket-io-from-another-machine-in-my-network-e5e38b650ac7?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5e38b650ac7</guid>
            <category><![CDATA[sockets]]></category>
            <category><![CDATA[postman-testing]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 17:55:17 GMT</pubDate>
            <atom:updated>2024-02-22T01:14:07.615Z</atom:updated>
            <content:encoded><![CDATA[<h3>Testing a Flutter Web app that uses Socket.io from another (Windows) machine in my network.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EP4hQC0Fswb5I9xh" /><figcaption>Photo by <a href="https://unsplash.com/@roketpik?utm_source=medium&amp;utm_medium=referral">Artur Shamsutdinov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hi guys, I’ll be quite messy with this writing, but I prefer that to delay useful information to be shared.</p><p>When testing a Flutter App that uses sockets implemented by socket.io, they aren’t regular sockets, you can’t test them with regular tools.</p><p>The best approach is to use Postman, they have a specific socket.io request that does the job.</p><p>More in: <a href="https://blog.postman.com/postman-now-supports-socket-io/">https://blog.postman.com/postman-now-supports-socket-io/</a></p><p>I wanted to test a Flutter app with concurrent users so I opened two browser tabs on the Mac and another user on an Android device. When I wanted to add the 4th user, I had problems with my Windows machine. I wanted unsuccessfully to install Flutter in the particular version (also a specific Dart version)… eventually, I couldn’t resolve it.</p><p>The solution was to deploy a web app on my Mac and consume it from Windows using the Wifi. But it wasn’t an easy journey.</p><p>Because the app uses ReCaptcha, and it allows localhost and another URL (www.url2.com for instance), and Windows wasn’t localhost, to meet the reCaptcha requirement I updated system32/drivers/etc/hosts with something like:</p><pre>www.url2.com 192.x.x.x</pre><p>where 192.x.x.x was the IP of my Mac in the wifi network.</p><p>More about hosts file: <a href="https://www.howtogeek.com/27350/beginner-geek-how-to-edit-your-hosts-file/">https://www.howtogeek.com/27350/beginner-geek-how-to-edit-your-hosts-file/</a></p><p>After that, I wanted to copy and paste the Flutter debug URL for the web debug app. Something like this on my Mac.</p><pre>http://localhost:51242</pre><p>Changed it, in the Windows machine to:</p><pre>http://www.url2.com:51242</pre><p>That URL didn’t work, and in the browser console, I received a message about Service workers not being present or not configured.</p><p>After researching, they don’t work in insecure contexts (HTTP) so I shall change HTTP to HTTPS.</p><p>More about service workers: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers">https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers</a></p><p>But the debug server (Flutter) didn’t do the magic.</p><p>So I built the web version of my app</p><pre>flutter build web</pre><p>Then in the generated app, in ../build/web/, I executed a tiny https server.</p><pre>pip install https.server</pre><pre>https.server </pre><p>More about this https server: <a href="https://github.com/pathtofile/https.server">https://github.com/pathtofile/https.server</a></p><p>And finally, I could execute the Flutter web app from Windows browsing:</p><pre>https://www.url2.com:8443</pre><p>:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5e38b650ac7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Low Code to Django+React.js]]></title>
            <link>https://levelup.gitconnected.com/from-low-code-to-django-react-js-561fd99f0375?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/561fd99f0375</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[low-code-development]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Thu, 19 May 2022 01:30:39 GMT</pubDate>
            <atom:updated>2025-04-16T12:23:05.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A screen with source code" src="https://cdn-images-1.medium.com/max/1024/0*XLoMfiuoOBC6xJpp" /><figcaption>Photo by <a href="https://unsplash.com/@radowanrehan?utm_source=medium&amp;utm_medium=referral">Radowan Nakif Rehan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>(This is a translation of my original post in Spanish <a href="https://medium.com/@mar.ale.fer/del-low-code-a-django-react-js-13698abc6a40"><em>Del Low Code a Django+React.js</em></a>)</p><p>I am a Systems Engineer. For the last 16 years, I have worked in web development using low code technology, a tool created in Latam. I always wanted to develop my own web applications, but the technology that I had been working on was proprietary, with a license schema. Then I learned Java, and .Net (It at a time had a full-stack product that used Entity Framework as ORM)… in 2014 node.js, Angular, and MongoDB … but in 2015, working as a teacher in high school, teaching python, a professor of the University ( Universidad del Comahue) shared my a book “Python para todos” (Python for everyone). At the same time, I knew Meteor.js, very interesting but a kind of automagic… The Meteor team began to talk about a technology called React.js that had been an equivalent to the native meteor frontend technology called Blaze.</p><p>A few months later, the Meteor team began to talk about the idea of taking a portion of Meteor for the creation of a new product. That product today is known as Apollo (server and client). At this point, I was quite confused. Meteor somehow was fading. Then I went back to my comfort zone, the low code proprietary tool, due to its ORM with a strong focus on automatizing the database queries and migrations (changes in the database schema, e.g: creating a new table). At that moment I found similarities with Django. Both were soo similar: both had a very mature ORM, with a DRY (Don’t repeat yourself) philosophy. In the next post, I will continue talking about the adoption of open source technology and its benefits for my career (I work for a fintech as a frontend developer with React.js).</p><p>In the meantime, I invite you to explore one of my personal projects, a multitenant system for pet&#39;s clinical history on <a href="https://github.com/mar-ale-fer/cloudvetrd_comunidad">GitHub</a>, which is a full-stack Django project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=561fd99f0375" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/from-low-code-to-django-react-js-561fd99f0375">From Low Code to Django+React.js</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Del Low Code a Django+React.js]]></title>
            <link>https://medium.com/@mar.ale.fer/del-low-code-a-django-react-js-13698abc6a40?source=rss-feb74e044f3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/13698abc6a40</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Marcelo Fernández]]></dc:creator>
            <pubDate>Fri, 01 Oct 2021 02:54:36 GMT</pubDate>
            <atom:updated>2023-08-17T17:04:01.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*roibpdcg2-Ic4wPf" /><figcaption>Photo by <a href="https://unsplash.com/@ilyapavlov?utm_source=medium&amp;utm_medium=referral">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Soy Ingeniero en Sistemas. Hace ya 16 años que trabajo en desarrollo web utilizando una tecnología Low Code creada en latinoamérica. Siempre quise construir mis propias aplicaciones, pero la tecnologia que usaba era propietaria, tenía un esquema de licencias. Entonces investigué Java, .Net que en algún momento tuvo un producto fullstack que usaba Entity Framework, node.js, Angular, mongodb… Hace 6 años me ofrecieron un puesto como docente de secundaria, para enseñar Python. Gente de la universidad me compartió un libro “Python para todos”. En paralelo vi Meteor.js, muy interesante pero tal vez muy <em>automágico</em>… El equipo de Meteor comenzó a hablar de una tecnología nueva React.js que era un equivalente a su frontend que creo que se llamaba Blaze… a los meses el mismo equipo de Meteor comenzó a hablar de que de alguna forma tomarían parte de Meteor y crearian un nuevo producto, que actualmente se conoce como Apollo. En este punto estaba un poco perdido, Meteor de alguna forma se estaba diluyendo… volví a mi zona de confort, la herramienta Low Code propietaria… tenía un ORM y su fuerte principal era la automatización de las consultas a la base de datos así como las migraciones, los cambios en tablas. En ese momento encontré la similitud con Django. Era prácticamente lo mismo, tenía un ORM muy maduro, con filosofía DRY (Don’t repeat yourself). En un lugar definias la lógica del negocio (los models) y se aplicaban en distintos puntos de la aplicación, incluido el ORM, que comparado, por ejemplo, con Sequelize para node.js, te va versionando o sincronizando el estado de tus objetos con la base de datos, realizando alter tables si corresponde. En un próximo post seguiré ampliando las características que me hicieron elegir Django como mi herramienta favorita para mis proyectos personales. Hasta la próxima.</p><p>Estamos a mediados de Agosto de 2023, ayer estuve compartiendo una pequeña demo de Django con mi equipo y les encantó. Así que aprovecho para dejar un link a un repositorio que compartí hace unos años. Sigue vigente, es un sistema completo de historia clínica veterinaria, multitenant. Es decir, se pueden tener varias clinicas trabajando en paralelo sin que compartan datos. El repo es: <a href="https://github.com/mar-ale-fer/cloudvetrd_comunidad">https://github.com/mar-ale-fer/cloudvetrd_comunidad</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13698abc6a40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>