<?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 Rahmat Santosa on Medium]]></title>
        <description><![CDATA[Stories by Rahmat Santosa on Medium]]></description>
        <link>https://medium.com/@rnsantosa?source=rss-2cd478a2203a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RDKIIRV7uBAEqgpE1KS44Q.jpeg</url>
            <title>Stories by Rahmat Santosa on Medium</title>
            <link>https://medium.com/@rnsantosa?source=rss-2cd478a2203a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:20:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rnsantosa/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[Introduction to Apache Airflow]]></title>
            <link>https://blog.devgenius.io/introduction-to-apache-airflow-5398619364f2?source=rss-2cd478a2203a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5398619364f2</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Rahmat Santosa]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 23:59:47 GMT</pubDate>
            <atom:updated>2022-08-25T20:21:17.555Z</atom:updated>
            <content:encoded><![CDATA[<h4>An open source to automate and schedule your workflow</h4><p>Let’s say you want to do data scraping to get gas prices data for today. As a programmer, you built a simple python script to do this. You run the script, and, ta-da! You get your data for gas prices today. But then, you want to do it again tomorrow. And the next day too. Turns out you need to do it everyday. And then your you need to do more complex things on your work.</p><p>Then you realize that it seems redundant to do the same thing over and over again, and it is also hard to scale your program— there must be some simple automation and powerful tools to do this.</p><h4>Airflow to the rescue</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPF_70zBWvdhV_G5Ft41Wg.png" /><figcaption>Airflow | Creds: Airflow Docs</figcaption></figure><p><a href="https://airflow.apache.org/">Airflow</a>, as described by the <a href="https://airflow.apache.org/docs/apache-airflow/stable/index.html">official documentation</a>, is an open source platform to <em>programmatically</em> author, schedule, and monitor workflows. In a simple way, this is what you can basically do:</p><ol><li>Create a set of task (workflow) that you want your machine to do</li><li>Schedule it to run periodically, e.g: daily, weekly, monthly</li><li>Monitor your workflow to ensure it works properly</li></ol><p>The advantage of Airflow is that you can do any type of workflow, including executing bash scripts, python scripts, querying a database such as GCP and AWS, or do machine learning training. Yes… it can be any type of workflow as long as you can put it into code!</p><p>Airflow is a reliable tools and it has been widely used by large company, such as Twitter and Lyft. Twitter uses Airflow to automate their machine learning pipeline. Lyft uses Airflow to create their batch ETL (Extract, Transform, and Load) data pipeline, so that it can be used to analyze data by business user. All of this is created by the help of implementing Airflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*ZldgAwDQJ83WPBYsgc7hJQ.gif" /><figcaption>Airflow Interface | Creds: Airflow Docs</figcaption></figure><p>Now, let’s take a look at how we can utilize airflow basic features.</p><h4>Create your workflow</h4><p>Airflow defines workflow as a DAG (Directed Acyclic Graph). This is the core concept of Airflow, to define your set of task as a graph so you can set how they depend on each other. For example, we want to run task “a”, and after it finish it will run “b” and “c”, and after both finish it should run “d”. This is how the DAG will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/0*tKsmQAVa_Wydcysq.png" /><figcaption>A DAG | Credit: Airflow Docs</figcaption></figure><p>The beauty of Airflow is that it defines workflows as a code — a python code. This makes them become more maintainable, versionable, testable, and collaborative. And they are also simple and very readable.</p><p>There are tons of configuration you can do with your workflow. For example, you can configure what to do when some task failed, how many retries should it do until it stop trying, or even branching when there are some ‘if’ case in your tasks.</p><h4>Schedule your workflow</h4><p>After defining your DAG, Airflow can schedule your workflow in a timely periods such as daily, weekly, and monthly. You can also do more customized schedule using a string cron expression. One of the limitation, however, is that Airflow is currently not optimized for scheduling in minutes or hours period — to do that, we have to find another tools that support <em>data stream</em>.</p><p>In other case, if you want to run your workflow for a date that have passed, such as last week or last month, you can do this by using Airflow feature called “backfill”. This will be helpful if you need, for example, to run your ETL data pipeline script for data in the past.</p><h4>Monitor your workflow</h4><p>After creating and scheduling our workflow, you can also monitor the DAGs that you have created in a very simple and intuitive UI. There are many things you can do in Airflow’s web UI, but one of the most powerful one is to monitor DAG as a tree.</p><p>Here, we can see how our DAG run. It tells which task failed, which one succeed, and when the overview between dates that the DAG has run. This is very helpful in case one of our task in our workflow failed. We can be sure which task failed and where to start debugging our workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lHeW5FGLfqwAYDUt.png" /><figcaption>Airflow UI defines DAG as a tree to monitor task | Credit: Airflow docs</figcaption></figure><p>Airflow is a powerful open-source platform to automate a set of tasks and monitor it. There are plenty of stuff we can do with Airflow because it supports many operator to run our task. It also is easy to maintain and understand because it defines workflow as a DAG in python code. For automating batch period tasks, Airflow could be one of your best solution to choose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5398619364f2" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/introduction-to-apache-airflow-5398619364f2">Introduction to Apache Airflow</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bing Bong and His Selflessness]]></title>
            <link>https://medium.com/@rnsantosa/bing-bong-and-his-selflessness-651852ddde55?source=rss-2cd478a2203a------2</link>
            <guid isPermaLink="false">https://medium.com/p/651852ddde55</guid>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[pixar]]></category>
            <category><![CDATA[disney]]></category>
            <dc:creator><![CDATA[Rahmat Santosa]]></dc:creator>
            <pubDate>Thu, 18 Aug 2022 00:45:05 GMT</pubDate>
            <atom:updated>2022-08-18T00:45:05.537Z</atom:updated>
            <content:encoded><![CDATA[<p>I like to watch movies, and some of my favorites include Disney/Pixar’s animated films. In one of their movies, there is a character that I truly adored and lasted for so long in my memory. It was one of the main character in 2015 animated feature film ‘Inside Out’, Bing Bong.</p><h4>A Glimpse of Bing Bong</h4><p>A little bit of introduction — if you haven’t watch the movie ‘Inside Out’ — this movie tells us a story about what happens inside the mind of an eleven-years old Riley who is facing a hard time adapting when she and her family is moving out. Pixar animated the emotions of Riley as the main character: Joy, Sadness, Fear, Disgust, and Anger. Bing Bong is an imaginary friend created by Riley in her early childhood, who also stayed in Riley’s memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*vJWmaIaTYHxGYlXjdd2ldg.png" /><figcaption>Bing Bong — Credits to Disney/Pixar</figcaption></figure><h4>The scene that made me tear up</h4><p>In one part of the movie (<em>spoiler alert!</em>), there is this <a href="https://www.youtube.com/watch?v=RPQRHemfk9E">desperate scene</a> where Bing Bong and Joy are trapped in a trench called Memory Dump. They need to get out of there to save Riley using their old imaginary rocket. But after several attempts failed, Bing Bong finally decided that he stays in the Memory Dump so that Joy can continue her journey, even though this means that he will forever be erased from Riley’s memory.</p><p>When I watched that scene in the movie, my eyes started to get watery and I felt heartbroken seeing Bing Bong slowly fading away. Seeing this also kinda feels like you are finally saying goodbye to your childhood and move on to the next phase, because Bing Bong is a character that is strongly-tied to represent Riley’s childhood.</p><h4>Why I Look Up to Bing Bong</h4><p>What I really like and look up from Bing Bong is his <strong>selflessness</strong>. He sacrifices himself in order to save other people he love.</p><p>This may sounds wrong, because in another occasions, I also learned that we need to put ourself first before we save someone else. But there are several cases, like in that scene earlier, where you need to make such decision for greater purpose, and you have to finally tone down your ego in order to reach bigger goals, even when it means a little bit of sacrifice.</p><p>Bing Bong also was genuinely very happy when he sees Joy made it outside the trench, even though he didn’t make it. It shows that he has a very pure heart. I was a bit slapped because I realized there were times in life when I felt like life is like a competition, and it could kinda feels irritating when somebody has a greater achievement. Bing Bong, on the other hand, is able to see enjoy life and he does not only focus on himself.</p><p>Bing Bong is a fictional character from a Pixar movie, but he represent the characteristic that I want to have. He is fearless, imaginative, and genuinely likes to help other people even if it means sacrificing his own ego. Even though his character is gone in the movie, he will always have a special place in my heart because of his heroic and selfless action in the movie.</p><blockquote>“Take her to the Moon for me, okay?”</blockquote><blockquote><em>— Bing Bong’s last words</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651852ddde55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build the Habit to Track Our Spending Using Fortune City]]></title>
            <link>https://medium.com/@rnsantosa/build-the-habit-to-track-our-spending-using-fortune-city-a47f7be1314e?source=rss-2cd478a2203a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a47f7be1314e</guid>
            <category><![CDATA[money-management]]></category>
            <category><![CDATA[financial-planning]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[ui-ux]]></category>
            <dc:creator><![CDATA[Rahmat Santosa]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 01:00:23 GMT</pubDate>
            <atom:updated>2022-08-11T01:54:23.428Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a habit to track our spending is hard. We all know that it is important to be mindful of how we spend our money, and one way to do that is to jot down our spending.</p><p>We could to this in many ways: write our spending in our notes, create an excel sheet, or installing some money manager apps. Unfortunately, these could get boring over time because it is quite repetitive and mundane.</p><p>Luckily, there is a free, simple, fun app that make tracking spending enjoyable for us — Fortune City. Here’s some feature that make this app my favorite spending tracker app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*dCQd_7yasqJnM2tE7USm7g.jpeg" /><figcaption>Me when I see something cool on e-commerce</figcaption></figure><h4>Easy to Track Spending</h4><p>When we want to track a new spending, just add new record using this simple UI. Just enter the amount we spend, select category, add a short description, and you’re done! We can also see the summary of what we spend today, or just simply jump to other date to see our spending that day. This flow make tracking our spending very easy because we don’t have many columns to fill — it will only take less than 10 seconds to make a new entry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*PMjoWv8W5ICdmRczWYA8jQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*kYSb7esqiAzmf5hsc8nGNQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*_gt12fw2ySa7LoO6glvRBQ.jpeg" /><figcaption>Tracking is easy</figcaption></figure><h4>Summarize Our Spending</h4><p>After tracking our spending for several day, we’ll want to take an overview of how we spend our money. Fortune City provide a clean and simple dashboard that shows just enough information that summarize how we spend our money. We can also pick the timespan of how long our dashboard should be. This is very helpful because it help us become aware of how much we spend in each category, and to plan how our spending should be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*ewKx0z3txoFPBAiApMrc4g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*MIFBUIZTKDCDvdM7JSQ7qQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*e37nM4fvKtyKqmBD0QXTLg.jpeg" /><figcaption>Simple and Intuitive Dashboard</figcaption></figure><h4>Build a City!</h4><p>This is the most exciting part of the app: you’ll get a building every time you track a spending! We also get to hire people in the city to work at our building, and they will make money for us (well, not real money, but game money). This make tracking our spending enjoyable because each time you create new entry, we will feel rewarded. The more we track our spending, the more advance and big our city will get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*ZY_vZi4n2nXf9Kg1fkf3TQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*fuHObXLu22-L4MBLke9Z3g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*_af5upPfThl4DjPRN3OYSg.jpeg" /><figcaption>Mini Sim City Games!</figcaption></figure><h4>Other Feature</h4><p>Once you get used to these basic feature, there are a lot of other things that you can explore in this app. For example, you can also add budget for each category, so you can be more aware of how much budget you have left. You can also add several account type, such as credit card or debit card. There is a finance review feature that help you separate “wants” and “needs”. There are plenty things we can explore in this app.</p><h4>Verdict</h4><p>It is not always easy to start the habit of tracking our spending. According to the book “Atomic Habits” by James Clear, there are three laws to make a behavioral change: make it obvious, make it attractive, and make it easy.</p><blockquote>“The first three laws of behavior change — make it obvious, make it attractive, and make it easy — increase the odds that a behavior will be performed this time. The fourth law of behavior change — make it satisfying — increases the odds that a behavior will be repeated next time.” — James Clear</blockquote><p>I think this app is very helpful to start a tracking spending habit. It makes tracking spending easy, attractive, and satisfying. In addition to that, it also have tons of feature that help us manage our money better. Overall, I surely recommend you to use this app if you want to start committing to tracking-spending habit, and also if you’re into app that has a good UI/UX.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a47f7be1314e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>