<?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 Petar on Medium]]></title>
        <description><![CDATA[Stories by Petar on Medium]]></description>
        <link>https://medium.com/@ipetrovbg?source=rss-52b45e82c75c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cF9uf6DXoSH4WyQKcQMtRQ.jpeg</url>
            <title>Stories by Petar on Medium</title>
            <link>https://medium.com/@ipetrovbg?source=rss-52b45e82c75c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 16:52:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ipetrovbg/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[Struggling to Find Inspiration: A Personal Reflection]]></title>
            <link>https://medium.com/@ipetrovbg/struggling-to-find-inspiration-a-personal-reflection-4ec17536af2e?source=rss-52b45e82c75c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ec17536af2e</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Petar]]></dc:creator>
            <pubDate>Sun, 28 May 2023 12:20:33 GMT</pubDate>
            <atom:updated>2023-05-28T12:20:33.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gHXd52N16jMkk54Nj6xReg.jpeg" /></figure><p>Struggling with finding inspiration is a real thing. But let me tell you, finding inspiration is absolutely essential to keep doing what you love. Whether it’s software development, photography, or working in a grocery store, everyone needs that something special that motivates them to keep going and excel in their chosen field.</p><p>I haven’t really spoken about this before, but a few years ago, I found myself working as a reporting photographer for a local newspaper. However, I reached a point where I couldn’t find any inspiration in what I was doing. Nothing seemed to interest me anymore. It was a tough spot to be in, and I knew I had to do something about it. I had to either find that much-needed inspiration or consider leaving. And you know what? Eventually, I made the difficult decision to quit. Looking back, I’ve come to realise that there is absolutely nothing wrong with giving up on something you thought would be your lifelong profession, your destined path. Sometimes, you just have to ask yourself the tough questions: Am I truly happy with what I’m doing? Do I find it fulfilling or valuable in any way, either for myself or for others? If the answer is a resounding “No,” then it’s time to step back, reevaluate, and find something else that truly ignites your passion.</p><p>In any field, in any industry, people rely on you. They put their confidence and faith in you to do the right thing, to excel in your role, so they don’t have to worry. In other words, they need someone who can shoulder the burden and make their lives a little easier. To truly excel in what you do, you have to become that person, the one who takes ownership and goes above and beyond. It requires tremendous dedication, but believe me, it’s worth it.</p><p>Giving up on what I thought would be my lifelong work taught me a valuable lesson about the importance of inspiration. But let me be real with you — it wasn’t an easy journey. First, it’s not easy to recognise that you’re struggling to find inspiration. And then, it’s even harder to make the decision to let go of everything. I remember vividly the time after I quit my job as a photographer. I didn’t have anything lined up, and I found myself working as a cashier in a supermarket, just to make ends meet. Don’t get me wrong, there is nothing wrong in working at a supermarket. It just wasn’t my cup of tea. Nonetheless, it was a humbling experience, and it gave me the time and space I desperately needed to reflect on what I truly wanted to do next.</p><p>And you know what happened? Not long after, I stumbled upon the world of software development. It was a serendipitous discovery that changed my life. I fell head over heels in love with it — yes, it may sound strange, but that’s exactly how I felt, and that feeling still resonates within me today. To me, software development is nothing short of a remarkable journey. It’s like having a medium to create with, starting from scratch, just like an artist with a blank canvas. Layer by layer, you build something almost alive, something that is not only useful but also meaningful.</p><p>But here’s the thing, my friend. As the years go by, you find yourself on autopilot, effortlessly creating project after project. However, there comes a time when you face a project that challenges your patience. You find yourself forced to use a tool or do something that’s not interesting or inspirational to you. And let me tell you, it’s in those moments that inspiration becomes your lifeline, your driving force to battle through the tough times. Some people call it “burnout” and we all experience it to some extent. But it’s that initial spark of inspiration that motivates you to keep going, to keep pushing forward.</p><p>So, to all of you who may be struggling at this very moment, I want to offer you some heartfelt advice: Find something that truly inspires you. Discover that one thing that motivates you and keeps your fire burning, even on those days when the tasks ahead may seem less than inspiring. Trust me, we’ve all been there. But remember, you need to keep going, keep pushing through the challenges and obstacles that come your way.</p><p>I hope you find my personal journey and reflections interesting and, above all, helpful. Wishing you all the best on your quest for inspiration.</p><p>Peace!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ec17536af2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wait No More: Combining Time-Based and Event-Driven AWS Step Functions Wait Steps to Improve…]]></title>
            <link>https://medium.com/@ipetrovbg/wait-no-more-combining-time-based-and-event-driven-aws-step-functions-wait-steps-to-improve-4a6154ea53df?source=rss-52b45e82c75c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a6154ea53df</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <dc:creator><![CDATA[Petar]]></dc:creator>
            <pubDate>Fri, 03 Mar 2023 20:03:11 GMT</pubDate>
            <atom:updated>2023-03-03T20:03:11.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wait No More: Combining Time-Based and Event-Driven AWS Step Functions Wait Steps to Improve Workflow Efficiency</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*UhC4SMZ96DEcIghaYrg92g.png" /></figure><p>Coordinating tasks across distributed systems and managing workflows can be a challenging task for software developers. Fortunately, <a href="https://aws.amazon.com/step-functions/">AWS Step Functions</a> is a serverless workflow service that provides an easy-to-use solution for building and orchestrating multi-step workflows. One of the most powerful features of Step Functions is the ability to create wait steps that can pause the workflow execution for a specified time or until a condition is met.</p><p>However, Step Functions does not have a built-in option to wait for a specified time or a manual trigger at the same time. Recently, I experimented with two “competing” wait steps in Step Functions to address this issue. One of the wait steps was set to wait for a certain amount of time, while the other wait step was set to wait for a manual trigger using a token. This pattern can help to wait until a certain point in time and continue after that, or continue earlier by stopping the other wait step.</p><p>Initially, I didn’t consider the parallel steps feature in Step Functions. However, digging more into this issue, I found that I could use a parallel step to create two “wait” steps, one for waiting for a certain amount of time and another that waits for a manual trigger through a token. But there was a caveat to this approach — the parallel step would exit only after all branches were “done,” which wasn’t what I wanted. To solve this, I “failed” the whole parallel step once one of the “wait” steps was triggered and caught all exceptions with a catch-all to continue the execution.</p><p>In the food and beverage industry, it is common to print orders at specific times, such as 15 minutes before a show starts. However, if a customer arrives earlier, they may want their order prepared earlier. To address this issue in a serverless environment, a cron job can be used to trigger a Lambda function every x minutes to query an RDS database e.g. and check if anything needs to be printed. While this approach works, it can result in wasted resources.</p><p>The two competing wait steps pattern can eliminate the need for the cron job and Lambda function to query the database every x minutes, as the workflow execution can be paused until the specified time or manually triggered. This can reduce the number of resources required and improve the efficiency of the workflows.</p><p>In conclusion, AWS Step Functions is a powerful serverless workflow service that can simplify the development and orchestration of multi-step workflows. While it has some limitations, experimenting with different patterns and techniques can lead to innovative solutions. The two competing wait steps pattern is one such example, which can help you optimise resource utilisation and improve the efficiency of your workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a6154ea53df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LaTeX — Table of Contents]]></title>
            <link>https://medium.com/@ipetrovbg/latex-table-of-contents-ac22840d0086?source=rss-52b45e82c75c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac22840d0086</guid>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[table-of-contents]]></category>
            <dc:creator><![CDATA[Petar]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 07:17:58 GMT</pubDate>
            <atom:updated>2020-08-02T07:17:58.889Z</atom:updated>
            <content:encoded><![CDATA[<h3>LaTeX — Table of Contents</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94b0c74221959fc5eb4a85f58310042c/href">https://medium.com/media/94b0c74221959fc5eb4a85f58310042c/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac22840d0086" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>