<?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[The Jade Mind - Medium]]></title>
        <description><![CDATA[Focus on essence, do what you love and be authentic - Medium]]></description>
        <link>https://medium.com/jademind?source=rss----c753727340cb---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>The Jade Mind - Medium</title>
            <link>https://medium.com/jademind?source=rss----c753727340cb---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:11:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/jademind" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ralph Wiggum writes my software — so I have time for what matters]]></title>
            <link>https://medium.com/jademind/ralph-wiggum-writes-my-software-so-i-have-time-for-what-matters-f0f7aa57da47?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/f0f7aa57da47</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 12:48:47 GMT</pubDate>
            <atom:updated>2026-01-14T12:48:27.028Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ralph Wiggum writes my software — so I have time for what matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Lbr_5r1WOjQ2q-TzgI9rA.png" /></figure><blockquote><strong><em>Time is not a resource problem.<br>Time is an attention problem.</em></strong></blockquote><p>Between children, partnership, everyday life, and the constant background noise of administration, there is barely any contiguous space left for deep, focused work. Not because of a lack of discipline, but because modern software development is permanently fragmented: a test here, a fix there, a follow-up question, a review, a “can you take a quick look.” The code itself is rarely the problem, it’s the constant requirement to be present.</p><p>For a long time, I tried to solve this with better time management. Tools, methods, prioritization. The result was almost always the same: more structure, but not more time. And certainly not a calm, reliable time. Yet that is exactly what’s needed to make good decisions, technically and personally.</p><p>What was missing wasn’t another framework, a new library, or a faster editor. What was missing was a system that could take over work without demanding my constant attention. Development that happens in the background. Reliable. Verifiable. Without emotional overhead.</p><p>So the question was no longer: <em>How do I develop faster?</em></p><p>Instead: <em>How can software come into existence while I focus on the things that actually matter?</em></p><h3>“Get Ralph working and shipping code” — a tweet that stuck</h3><p>It wasn’t a long thread. No “AI will change everything” manifesto. Just <a href="https://x.com/ryancarson/status/2008548371712135632">a single post by Ryan Carson</a> that casually articulated something many had already felt, but rarely stated clearly: that we should start letting agents build software, even if they sometimes seem like they don’t fully know what they’re doing. <em>Ralph Wiggum</em>, in other words.</p><p>The idea behind it is as simple as it is disarming. You give an AI clear tasks, a clear frame, and let it work. Not perfectly. Not elegantly. But consistently. Like Ralph from <em>The Simpsons</em>: good-natured, persistent, occasionally surprisingly effective. Not a genius. Not a rockstar. Just someone who keeps going.</p><p>What stuck from the post and the <a href="https://www.youtube.com/watch?v=RpvQH0r0ecM">accompanying podcast</a> wasn’t the humor, but the sobriety. <strong>No promise of magical productivity gains. No marketing language.</strong> Just a very practical look at something that’s already happening: a large part of daily development work follows patterns. Writing tests, adapting code, following structures, processing feedback. Tasks that consume time, but rarely require creative peak performance.</p><p>That’s exactly why the story resonated. Not because it claimed something radically new, but because it said something obvious out loud. If we’re already defining precisely what software should do, why don’t we let it come into being on its own? Under supervision, with guardrails, but without permanent oversight.</p><h3>What “Ralph Wiggum” really means (and what it doesn’t)</h3><p>To talk meaningfully about <a href="https://simpsons.fandom.com/wiki/Ralph_Wiggum">“Ralph Wiggum”</a>, we first have to clarify what it does <em>not</em> mean. It’s not about an AI suddenly writing better code than experienced developers. It’s not about delegating responsibility or handing decisions over to a statistical model. Anyone approaching it that way will inevitably be disappointed or build systems they shouldn’t trust.</p><p>The core of the concept is far more grounded. “Ralph Wiggum” stands for one or more agents that autonomously execute clearly defined tasks. Tasks with a beginning, an end, measurable criteria, and ideally automated checks. Ralph doesn’t think strategically. Ralph doesn’t understand product context. But Ralph is very good at executing instructions consistently, again and again, without fatigue, without context loss.</p><p>That limitation is precisely the point. There is no “magic code.” Everything that emerges does so within a frame I define: project structure, conventions, tests, and quality rules. Ralph doesn’t improvise, he follows. And that’s exactly what makes the result verifiable, reproducible, and controllable.</p><p>The mental model is simple: I define the goal and the rules. Ralph walks the path. If he stumbles, I see it in the tests. If he drifts off course, I adjust the guardrails.</p><blockquote><strong><em>Responsibility stays with me. Execution lives in the system.</em></strong></blockquote><p>That separation is where the real strength of the approach lies.</p><h3>Why I let Ralph work in Ruby on Rails</h3><p>Rails is not a neutral tool. It is opinionated, conventional, and deliberately restrictive in many places. That’s exactly what makes it so well-suited for agent-driven development. Clear directory structures, established patterns, predictable workflows. Sometimes constraining for humans, ideal for agents. There’s little room for interpretation, but many implicit rules that reliably repeat.</p><p>On top of that come the classic Rails virtues: tests as a given, linters, formatters, CI pipelines. None of these are “extras.” They are guardrails. They define what’s acceptable and what isn’t. For an agent like Ralph, they are the actual feedback system. He doesn’t work by intuition, but by clear signals: green or red, pass or fail. That’s what autonomous development has to look like.</p><p>Seen this way, Rails suddenly stops looking like an “old” framework and starts looking like a very stable automation platform. For me, there was another factor as well: years of experience in Ruby on Rails development. The conventions, the quirks, the typical pitfalls, all of that is familiar territory. That’s exactly why it was immediately clear that Ralph had to work here. Rails provides an environment where repeatable work can be executed reliably, without constantly reinterpreting what’s right or wrong.</p><p>Out of that thinking, the <a href="https://github.com/jademind/ralph-rails-starter"><em>ralph-rails-starter</em></a> project emerged. Not as a showcase and not as a finished product, but as a baseline. A starting point designed from the outset so that a large part of the development work doesn’t happen manually. The goal was a structure I can reuse whenever a new Rails project begins, without starting from scratch every time.</p><p>The starter project deliberately contains no magic. Instead, it offers scripts for agent-driven workflows, clearly defined processes, and a strong focus on self-verification. Tasks should be repeatable, results verifiable, errors visible. Autonomy doesn’t emerge from intelligence, but from good constraints.</p><h3>Autonomous development as a time recovery strategy</h3><p>The real gain from autonomous development isn’t speed. It’s time. More precisely: contiguous, reliable time. The kind of time that isn’t constantly sliced apart by follow-up questions, small decisions, or the next context switch.</p><blockquote><strong><em>When development runs in the background, the working mode fundamentally changes.</em></strong></blockquote><p>Tasks are triggered, not shepherded. Results are there when they need to be reviewed, not in between. The countless micro-decisions that normally consume attention throughout the day disappear. Not because they’re no longer made, but because they’ve been encoded upfront into rules, tests, and requirements.</p><p>This form of time recovery isn’t a classic “efficiency topic.” It’s not about shipping more features in the same amount of time, even though that inevitably happens too. <strong>It’s about consciously using the regained time differently.</strong> Time that becomes available again for family, for recovery, for phases without a screen. And equally for strategic thinking: architecture, product questions, long-term decisions that otherwise get lost in day-to-day execution.</p><p>From our perspective, this is a central point. <strong>Energy is more valuable than speed.</strong> A system that accelerates me while draining me isn’t progress. Autonomous development works in the opposite direction: it reduces friction, lowers cognitive load, and creates spaces where focus becomes possible again.</p><p>Not doing everything myself is not a loss of control. It’s a deliberate decision to apply attention where it actually makes a difference.</p><h3>The real skill shift: from code to clarity</h3><p>As execution shifts toward autonomy, the craft inevitably shifts as well. The real skill shift doesn’t happen in the code, but before it. Programming itself is now largely automatable. Patterns, boilerplate, tests, refactorings. All of it follows rules. What cannot be automated is ambiguity.</p><p>The new craft is about formulating requirements precisely. Not vague wishes, but verifiable statements. Establishing consistency where implicit assumptions used to live. Eliminating ambiguity before it materializes in code. In this setup, the Product Requirement Document becomes the central artifact. Not as bureaucratic overhead, but as the operational foundation for everything that follows.</p><p>Coding moves backward. Thinking moves forward. Anyone who wants autonomous development must take the time to describe problems cleanly. Every unclear formulation, every contradictory requirement will resurface later, then as a failing test, incorrect behavior, or an endless agent loop.</p><p>This is where AI comes into play in a very targeted way. Not as a decision-maker, but as an amplifier. AI is remarkably good at structuring PRDs, exposing gaps, making dependencies visible, and challenging implicit assumptions. It brings experience from countless similar problems and can help turn requirements into a consistent form more quickly.</p><p>But this is also where autonomy ends. A good PRD doesn’t emerge from generation, but from responsibility. Reading, revising, controlling, deciding, this part cannot be delegated. The more care goes into this step, the better what Ralph produces later will be. Autonomous development does not forgive ambiguity. It amplifies it.</p><blockquote><strong><em>The PRD is the actual code. Everything else is execution.</em></strong></blockquote><h3>Software that works for my life</h3><p>Ultimately, this isn’t about AI, agents, or new development paradigms. It’s about life. About time with your children or friends, about being present in moments that can’t be postponed, and about focusing on the things that actually matter. Software is only progress if it enables exactly that, not if it binds me more tightly.</p><p>In this context, Ralph Wiggum is not a replacement for experience, judgment, or responsibility. He is a tool. A very consistent, sometimes clumsy, but reliable tool. He doesn’t take thinking away from me, but he takes repetition away. And that’s exactly where his strength lies.</p><p>Development becomes calmer. More predictable. More sustainable. Not because less happens, but because the right things happen, at the right time and in the right measure. Instead of constant intervention, there are clear phases: define, let it run, review. In between, space emerges.</p><p><strong>I write less code.</strong></p><p><strong>I build better systems.</strong></p><p><strong>And I get time back.</strong></p><p>Not as a bonus, but as a deliberate design decision.</p><h3>Resources:</h3><ul><li>Ralph Rails Starter Project: <a href="https://github.com/jademind/ralph-rails-starter">https://github.com/jademind/ralph-rails-starter</a></li><li>Ryan Carson Tweet: <a href="https://x.com/ryancarson/status/2008548371712135632">https://x.com/ryancarson/status/2008548371712135632</a></li><li>The Startup Idea Podcast: <a href="https://www.youtube.com/watch?v=RpvQH0r0ecM">https://www.youtube.com/watch?v=RpvQH0r0ecM</a></li><li>Original Ralph technique: <a href="https://ghuntley.com/ralph/">https://ghuntley.com/ralph/</a></li><li>Ralph Orchestrator: <a href="https://github.com/mikeyobrien/ralph-orchestrator">https://github.com/mikeyobrien/ralph-orchestrator</a></li></ul><p><strong><em>Note: </em></strong><em>Ralph Wiggum” and The Simpsons are copyrighted properties of their respective rights holders and are referenced here purely for illustrative and metaphorical purposes, with no affiliation, endorsement, or association with this article, the person or the company behind it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0f7aa57da47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/ralph-wiggum-writes-my-software-so-i-have-time-for-what-matters-f0f7aa57da47">Ralph Wiggum writes my software — so I have time for what matters</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cursor Background Agents Without Tears]]></title>
            <link>https://medium.com/jademind/cursor-background-agents-without-tears-f738ef99d4be?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/f738ef99d4be</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cursor]]></category>
            <category><![CDATA[cursor-ai]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 08:44:35 GMT</pubDate>
            <atom:updated>2025-08-25T08:44:35.814Z</atom:updated>
            <content:encoded><![CDATA[<h4>Fix Cursor Background Agent: Debian InRelease Not Valid Yet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uffZENU-E3x6umop" /><figcaption>Photo by <a href="https://unsplash.com/@almoya?utm_source=medium&amp;utm_medium=referral">Aerps.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’re using <a href="https://cursor.com/?ref=mentalflares.com">Cursor</a> to go all in-not just for AI-assisted coding, but to <strong>move faster</strong>, <strong>work smarter</strong>, and <strong>collaborate seamlessly</strong>.</p><p>It’s become a core part of our development stack-whether we’re iterating on new MVPs, shipping updates to live customer projects, or exploring fresh ideas. Cursor’s background agents let us run AI-generated prompts in the cloud, apply structured code changes, and create pull requests automatically- <strong>all without touching our local dev environments</strong>.</p><p>It’s fast. It’s flexible. You can even update a prompt and refactor a module from your mobile phone.</p><p>And because agents run in the background-executing changes for you-they’re especially powerful for solo founders and small teams trying to move without friction.</p><p>But then-after setting up a new Python project and configuring a custom Dockerfile-your Cursor background agent refuses to start in the cloud, even though the exact same image builds flawlessly on your local machine.</p><p>You debug. You swear. Locally, it works. But somewhere in the cloud, the build fails with a <strong>Debian APT error about the future</strong>. <em>Literally.</em></p><p>This is one of those subtle but painful interruptions that slows your shipping velocity-and erodes momentum.</p><p>If you’ve run into <strong>“InRelease is not valid yet”</strong> errors while building Docker-based agents, this post is for you.</p><p>We’ll walk through how I fixed it for a real Python/FastAPI project -using Cursor background agents.</p><h3>From Zero to Custom: Why We Defined a Dockerfile</h3><p>Out of the box, <strong>Cursor background agents</strong> don’t require a custom Dockerfile. You can get started quickly with a default environment-perfect for many Node, Python, or TypeScript projects that don’t need special system-level dependencies. Cursor takes care of provisioning the VM, installing your project’s dependencies, and running the agent in the background so the AI can execute your prompts and submit pull requests.</p><p>But for more complex setups, that default environment can fall short.</p><p>In our case-working on <em>Storyteller</em>, a FastAPI-based audio application-we needed tighter control. The project uses:</p><ul><li><strong>Python 3.11 + FastAPI</strong></li><li><strong>Text-to-speech</strong> (via ElevenLabs), which relies on system-level audio tooling</li><li><strong>Headless dependencies</strong> (like xvfb) for proper audio handling in CI and background environments</li></ul><h3>The role of environment.json</h3><p>We also wanted a base image that was <strong>lean</strong>, <strong>non-root</strong>, and wouldn’t bake our app code or Python dependencies into the image itself (those get installed per repo state at runtime).</p><p>That’s where the .cursor/environment.json file comes in.</p><p>This file controls how the agent is built and started. It lets you:</p><ul><li><strong>Specify a custom Dockerfile and build context</strong></li><li><strong>Define install commands</strong> for Python (or any) dependencies</li><li><strong>Start services or servers</strong> like uvicorn</li><li><strong>Expose ports</strong> for web UIs or APIs</li><li><strong>Define terminals</strong> for common interactive commands</li></ul><p>Here’s a simplified example:</p><pre>{<br>   &quot;agentCanUpdateSnapshot&quot;:true,<br>   &quot;name&quot;:&quot;fastapi-env&quot;,<br>   &quot;build&quot;:{<br>      &quot;dockerfile&quot;:&quot;./Dockerfile&quot;,<br>      &quot;context&quot;:&quot;..&quot;<br>   },<br>   &quot;install&quot;:&quot;pip install -r requirements-dev.txt&quot;,<br>   &quot;start&quot;:&quot;uvicorn app.main:app --host 0.0.0.0 --port 8000&quot;,<br>   &quot;ports&quot;:[<br>      {<br>         &quot;name&quot;:&quot;web&quot;,<br>         &quot;port&quot;:8000<br>      }<br>   ],<br>   &quot;terminals&quot;:[<br>      {<br>         &quot;name&quot;:&quot;FastAPI dev server&quot;,<br>         &quot;command&quot;:&quot;uvicorn app.main:app --host 0.0.0.0 --port 8000&quot;,<br>         &quot;description&quot;:&quot;Starts the API server&quot;<br>      }<br>   ]<br>}Creating your custom Dockerfile</pre><p>If you’re looking to define a custom Dockerfile for your own agent, Cursor provides <a href="https://cursor.com/environment-json-dockerfile.md?ref=mentalflares.com">a short guide</a> that explains the key principles:</p><ol><li><strong>Start with a lightweight base image</strong><br>Use something minimal like python:3.11-slim to keep builds fast and images small.</li><li><strong>Avoid copying your application code</strong><br>Cursor will clone the repo separately when the agent runs-don’t bake it into the image.</li><li><strong>Create a non-root user</strong><br>This prevents permission issues and aligns with best practices for running dev tools securely.</li><li><strong>Set </strong><strong>WORKDIR to that user&#39;s home directory</strong><br>Ensures consistency and avoids writing to system directories.</li><li><strong>Preinstall system dependencies</strong><br>Install tools like curl, git, ffmpeg, or xvfb as needed-these won&#39;t change frequently and should live in the base image.</li><li><strong>Leave Python dependencies to </strong><strong>environment.json</strong><br>Let the agent install those dynamically using the install field.</li></ol><h3>The Error That Broke the Background Agent Startup (But Not Locally)</h3><p>Once our custom Dockerfile and environment.json were in place, we expected everything to &quot;just work.&quot;</p><p>And locally, it did. The image built cleanly. No surprises.</p><p>But when Cursor’s background agent tried to start-running that same Dockerfile in the cloud-the VM failed during its initial setup phase. The logs revealed a very specific Debian APT error:</p><pre>E: Release file for http://deb.debian.org/debian/dists/bookworm-updates/InRelease is not valid yet (invalid for another 5d ...)<br>E: Release file for ... is not signed.</pre><p>At first glance, this looks like a signing or network issue-but it’s actually a <strong>timestamp validation failure</strong>.</p><h3>What’s really happening:</h3><ul><li>When the background agent VM boots up, it runs apt-get update to install system dependencies.</li><li>Debian’s APT system performs <strong>strict time checks</strong> on package metadata, using headers like Date and Valid-Until.</li><li>If the VM’s <strong>system clock is slightly behind</strong> the timestamp on the Debian mirror, APT treats the metadata as “from the future.”</li><li>It then refuses to use the repository and exits with code 100.</li></ul><p>This was <em>not</em> a bug in our Dockerfile or environment config. It was a case of <strong>clock skew</strong> between Cursor’s cloud VM and the Debian server it pulled packages from.</p><ul><li><strong>Local builds worked</strong> — because our machines had clocks synced with the mirror.</li><li><strong>Remote agents failed</strong> — because the cloud VM’s clock was slightly off.</li></ul><p>And since Cursor relies on background agents to run code updates and create pull requests, a failed agent means the AI can’t even begin processing your prompt. No PR, no change, no progress.</p><h3>The Fix: A Dockerfile That Builds Reliably, Every Time</h3><p>To make the build resilient, we did three things:</p><h3>1. Pin to a Stable Debian Image</h3><p>Avoid “testing” or time-sensitive mirrors (e.g., trixie). Use something solid:</p><pre>FROM python:3.11-slim-bookworm</pre><h3>2. Install All System Dependencies Early</h3><p>We include everything needed for audio + headless workflows:</p><pre>apt-get install -y --no-install-recommends \ <br>   ca-certificates curl ffmpeg git wget xvfb build-essential</pre><h3>3. Configure APT to Ignore Clock Skew</h3><p>This was the magic:</p><pre># Global APT config: tolerate skew and retry <br>RUN set -eux; \<br>  printf &#39;%s\n&#39; \<br>    &#39;Acquire::Check-Valid-Until &quot;false&quot;;&#39; \<br>    &#39;Acquire::Check-Date &quot;false&quot;;&#39; \<br>    &#39;Acquire::Retries &quot;5&quot;;&#39; \<br>  &gt; /etc/apt/apt.conf.d/99-clock-skew.conf</pre><p>This disables strict time checks during apt-get update, and adds retries for flaky mirrors. You&#39;ll rarely hit this again.</p><h3>The Final, Battle-Tested Dockerfile</h3><p>After chasing false leads and debugging frustrating clock skew errors, this is the Dockerfile that finally made everything click. It handles system setup cleanly, avoids brittle APT behavior, and ensures your Cursor background agent <strong>boots reliably-locally or in the cloud-every single time</strong>.</p><pre>FROM python:3.11-slim-bookworm<br><br>ENV PYTHONDONTWRITEBYTECODE=1 \<br>    PYTHONUNBUFFERED=1 \<br>    PIP_NO_CACHE_DIR=1 \<br>    DEBIAN_FRONTEND=noninteractive<br><br>RUN set -eux; \<br>  printf &#39;%s\n&#39; \<br>    &#39;Acquire::Check-Valid-Until &quot;false&quot;;&#39; \<br>    &#39;Acquire::Check-Date &quot;false&quot;;&#39; \<br>    &#39;Acquire::Retries &quot;5&quot;;&#39; \<br>  &gt; /etc/apt/apt.conf.d/99-clock-skew.conf<br><br>RUN apt-get update \<br> &amp;&amp; apt-get install -y --no-install-recommends \<br>    ca-certificates curl ffmpeg git wget xvfb build-essential \<br> &amp;&amp; rm -rf /var/lib/apt/lists/*<br><br>RUN useradd -ms /bin/bash ubuntu<br>USER ubuntu<br>WORKDIR /home/ubuntu<br><br>ENV PATH=&quot;/home/ubuntu/.local/bin:${PATH}&quot;<br>RUN python -m pip install --user --upgrade pip</pre><h3>Summary</h3><p>In this post, we share how we use <strong>Cursor background agents</strong> -cloud-based VMs that execute AI-assisted coding prompts and create pull requests-to move faster, offload processing, and collaborate flexibly (even from a phone).</p><p>While setting up a custom Dockerfile for a FastAPI + audio project, our agents failed to start remotely with a Debian <strong>“InRelease not valid yet”</strong> error. The culprit? <strong>Clock skew</strong> between the VM and Debian mirrors, causing APT to reject package metadata as “from the future.”</p><p>The solution was a <strong>battle-tested Dockerfile</strong>:</p><ul><li>Pinned to a stable Debian base image</li><li>Installing all system dependencies upfront</li><li>Configuring APT to ignore strict date checks and retry on errors</li><li>Running under a non-root user with a clean Python environment</li></ul><p>The result: background agents that <strong>boot reliably every time</strong>, restoring the invisible magic of AI-assisted development.</p><p><em>Originally published at </em><a href="https://www.mentalflares.com/fix-cursor-background-agent-inrelease-error/"><em>https://www.mentalflares.com</em></a><em> on August 25, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f738ef99d4be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/cursor-background-agents-without-tears-f738ef99d4be">Cursor Background Agents Without Tears</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlock the Power of Custom JSON API Routes for Your WordPress Plugins]]></title>
            <link>https://medium.com/jademind/unlock-the-power-of-custom-json-api-routes-for-your-wordpress-plugins-d340b0955267?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/d340b0955267</guid>
            <category><![CDATA[wordpress-plugins]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Fri, 07 Apr 2023 18:50:33 GMT</pubDate>
            <atom:updated>2023-04-07T18:50:32.979Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*56lr71rSKNqs4FS2" /><figcaption>Photo by <a href="https://unsplash.com/es/@hostreviews?utm_source=medium&amp;utm_medium=referral">Stephen Phillips - Hostreviews.co.uk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Custom routes in WordPress plugins can significantly enhance your website’s functionality, allowing you to create unique and dynamic interactions with your users. By leveraging the WordPress REST API, you can expose custom endpoints for various purposes, such as communicating with a front-end application, fetching data from external sources, or building a proxy to other services to hide secret access keys.</p><p>In this article, we’ll explore implementing a custom WordPress plugin with a custom JSON API route, which can be used in JavaScript Ajax calls to send data to a specific function.</p><h4>Implementing the Custom Plugin and JSON API Route</h4><p>To create our custom plugin, we’ll start by creating a new folder in the wp-content/plugins directory. Name the folder custom-api-route. Inside the folder, create a new PHP file called custom-api-route.php and add the following code to initialize the plugin:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40f26e822396f093be2108b358916a49/href">https://medium.com/media/40f26e822396f093be2108b358916a49/href</a></iframe><p>Now, let’s register our custom JSON API route. Since we focus on the specific custom route and function, we’ll keep it simple and avoid using PHP classes or any other boilerplate code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72f248a99fd02ee83826a32ea2d32005/href">https://medium.com/media/72f248a99fd02ee83826a32ea2d32005/href</a></iframe><p>This code snippet registers a new POST route at /wp-json/custom-api-route/v1/submit. The process_data_submission function will handle the submitted data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d98392e95d49836b20d9598cc652089/href">https://medium.com/media/3d98392e95d49836b20d9598cc652089/href</a></iframe><p>This function takes a WP_REST_Request object as an argument and processes the submitted data accordingly. In this example, we return a successful response with a status message, but you can modify this function to process the data as needed.</p><h4>Using the Custom Route in JavaScript</h4><p>Now that we have implemented our custom JSON API route, let’s create a JavaScript example to interact with the API using an Ajax call. In this example, we’ll use the Fetch API to send a POST request to our custom route immediately after the DOM is ready and print the result of the function.</p><p>First, create a new JavaScript file inside the plugin folder, and name it custom-route-script.js. Add the following JavaScript code to interact with our custom API route:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40135a58aecd5790c2143cb68b259ab7/href">https://medium.com/media/40135a58aecd5790c2143cb68b259ab7/href</a></iframe><p>This script will execute immediately after the DOM is ready, sending a POST request to our custom route with some example data. The result of the function is printed to the console.</p><p>Next, we need to enqueue this script in our WordPress plugin. Update the custom-api-route.php file to include the following function to enqueue the script:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6480206b985b400d0d4841f2b4010d88/href">https://medium.com/media/6480206b985b400d0d4841f2b4010d88/href</a></iframe><h4>Summary</h4><p>This article shows how to create a custom WordPress plugin with a custom JSON API route. By following this straightforward process, you can quickly and efficiently implement custom routes in your WordPress plugins to extend your website’s functionality.</p><p>For more information and documentation on the WordPress REST API and plugin development, check out the following resources:</p><ol><li><a href="https://developer.wordpress.org/rest-api/">WordPress REST API Handbook</a></li><li><a href="https://developer.wordpress.org/plugins/">WordPress Plugin Developer Handbook</a></li></ol><p>With a better understanding of custom API routes, you can now take your WordPress plugin development skills to the next level and maybe create more powerful, interactive experiences for your users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d340b0955267" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/unlock-the-power-of-custom-json-api-routes-for-your-wordpress-plugins-d340b0955267">Unlock the Power of Custom JSON API Routes for Your WordPress Plugins</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Hubspot Email with Line Items Data]]></title>
            <link>https://medium.com/jademind/automated-hubspot-email-with-line-items-data-a6e71b4018ca?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/a6e71b4018ca</guid>
            <category><![CDATA[hubspot]]></category>
            <category><![CDATA[email-template]]></category>
            <category><![CDATA[transactional-emails]]></category>
            <category><![CDATA[hubl]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 23:38:46 GMT</pubDate>
            <atom:updated>2023-02-16T23:38:46.787Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*12Zf-wStmeRKodhw" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When creating transactional/automated email templates in Hubspot, you are mainly limited to displaying information via <a href="https://knowledge.hubspot.com/website-pages/personalize-your-content">personalization tokens</a>. However, the “Programmable Email Beta” introduced additional capabilities to add your custom code and enrich your email content with further data.</p><p>Using custom code — like you are used to it within modules — within emails opens up a wide range of new possibilities. You can use <a href="https://developers.hubspot.com/docs/cms/hubl/functions">HubL functions</a> and <a href="https://developers.hubspot.com/docs/cms/hubl/filters">HubL filters</a> to fetch, manipulate and render various data.</p><p>Since many knowledge articles and community questions for <a href="https://knowledge.hubspot.com/email/create-programmable-emails">creating programmable email templates</a> exist, we will skip this step in our article. Instead, this article focuses on a small and quick hands-on example of rendering a custom deal line items table in your email.</p><p>First, you must create your HTML email template in your Design Manager. Use a self-describing name for your file and add some meta information. The meta information will help you to select your “custom email template” later on.</p><pre>&lt;!-- <br>templateType: email <br>isAvailableForNewContent: true <br>label: Custom Deal Mail with Line Items <br>screenshotPath: ../images/deal-email.png <br>isEnabledForEmailV3Rendering: true <br>--&gt;</pre><p>Next, add all your custom HTML and CSS inline code to style your email. Use the <a href="https://developers.hubspot.com/docs/cms/building-blocks/modules/using-modules-in-templates#content-attribute">content_attribute</a> function to add content blocks with some default content you can easily change in the email designer. After that, we are ready to add some magic and render line item information for a given deal.</p><p>Since we want to use this email within a deal-based workflow, we can access deal information via the deal variable in our template. We can fetch all relevant line items using the <a href="https://developers.hubspot.com/docs/cms/hubl/functions#crm-associations">crm_associations</a> function for the given deal. This function allows us to</p><ul><li>filter line items by condition,</li><li>limit the number of line items to fetch,</li><li>specify properties to return and</li><li>sort the line items by an attribute.</li></ul><p>The code block below shows the fetching of line items of the current deal. You need to provide the association category ( HUBSPOT_DEFINED) and the <a href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview">association type id</a> ( 19 for Deal to Line Item) to receive the associated objects. The query parameter enables us to filter objects using standard operators on the attributes (e.g., price__gte=100 for all line items with a price greater than or equal to 100). Furthermore, the query allows sorting objects by one or more attributes. With the properties parameter, you can select the attributes to fetch from the line item objects. It is a simple, comma-separated list of strings.</p><pre>set items = crm_associations(<br>  deal.hs_object_id, <br>  &quot;HUBSPOT_DEFINED&quot;, <br>  19, <br>  &quot;limit=10&amp;orderBy=hs_position_on_quote&quot;, <br>  &quot;name,description,price,quantity&quot;, <br>  true <br>)</pre><p><strong>Bonus: </strong>The attribute hs_position_on_quote is undocumented by Hubspot, but it is responsible for ordering line items within a deal. So if you want to get the exact ordering as you see it in the Hubspot UI, you can add this sorting criterion to receive the same result within your email.</p><p>Putting it all together, below you can see the complete code of an HTML table rendering deal line items.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fab17f0f5631f1a3a9f2354f1b13b54/href">https://medium.com/media/1fab17f0f5631f1a3a9f2354f1b13b54/href</a></iframe><p>At last, add a new email by selecting the “automated” email type and selecting your custom email template. Now you can fill up your content blocks with custom content and add more personalization tokens if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YaFtiwiiF9MY-1s2.png" /></figure><p>There you go, finish and save your email and use it within a deal-based workflow. Your customers will receive a nicely formatted line items table with all details you want to provide them.</p><p><em>Originally published at </em><a href="https://jademind.com/blog/posts/automated-hubspot-email-with-line-item-data/"><em>https://jademind.com</em></a><em> on February 16, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6e71b4018ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/automated-hubspot-email-with-line-items-data-a6e71b4018ca">Automated Hubspot Email with Line Items Data</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Export and Backup Your Data and Files from Slack]]></title>
            <link>https://medium.com/jademind/export-and-backup-your-data-and-files-from-slack-1271d91c2a62?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/1271d91c2a62</guid>
            <category><![CDATA[export]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Tue, 05 Jul 2022 07:47:13 GMT</pubDate>
            <atom:updated>2022-07-05T07:47:13.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aKgK573K7rpTaOm_" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We decided to opt-out of the very noisy universe of Slack in favor of native frictionless messaging, note-taking, and sharing tools. So after navigating the Slack Data Export Jungle and finally exporting data as JSON files, we created a handy Python script to download and backup all shared files, so you don’t have to.</p><p>Slack was a good companion over the years, but focusing on actual work while subscribed to multiple Slack workspaces was getting difficult.</p><p>In addition, the overabundance of messages during the day was no longer acceptable. To get back on focused work and calm down, we set a fixed deadline for closing our Slack workspace and signing out of all customer workspaces. We used Slack for several years and shared a lot of information, knowledge, and files. So naturally, we did not want to lose any of that.</p><p>The <a href="https://slack.com/help/articles/201658943-Export-your-workspace-data">Slack export feature</a> enables you to export your data depending on your active subscription.</p><blockquote><strong><em>Free and Pro plan:</em></strong><em><br></em>The zip file will contain your workspace’s message history in JSON format and file links from all public channels.</blockquote><blockquote><strong><em>Business plan:</em></strong><em><br></em>The zip file will contain your message history in JSON format and file links from all public channels or from all channels and DMs, depending on your export type.</blockquote><blockquote><strong>Enterprise plan:</strong><em><br></em>The zip file will contain your organization’s message history in JSON format and file links from all channels and conversations.</blockquote><p>You must be on the Business Plan to export all private channels and conversations. We used a Pro plan for our company over the years, so we had to switch to the Business Plan to create a full export of the whole workspace with all vital information. So, we deactivated all unused user accounts and upgraded to a Business plan, allowing us to export all channels and direct messages as JSON files.</p><p>After downloading the workspace export, we got all our channels and direct messages as separate folders, including a JSON file for each day a conversation did take place. Each JSON file consists of an array of messages containing all necessary information. In addition, the files array within the message dictionary includes all shared files during the conversations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*B_Ll5IfG8TpZjSgd.png" /></figure><p>The property url_private contains the secret URL to the file you need to download. After closing the Slack account, Slack will remove all your files from its servers. Therefore, you need to download and store them in a secure location to retain a full backup.</p><p>Fortunately, we crafted a simple Python script to do the job automatically. It goes through all channel directories, creates a “files” folder, and stores the downloaded files. Moreover, the file names are kept the same but prefixed with the message’s ID to avoid collisions.</p><p>If you are interested in the downloader script, check out our <a href="https://github.com/jademind/slack-files-download">public repo</a> or just copy the Gist below. It requires a Python 3 environment, and you must pass the path to your Slack export folder. A progress bar displays the status of the download. The execution of the script is idempotent, meaning you can execute it multiple times, and it will download only missing files. This behavior enables you also to backup your files regularly.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f1f2cdcec10dc49e5e2a8362c61b945/href">https://medium.com/media/6f1f2cdcec10dc49e5e2a8362c61b945/href</a></iframe><p><em>Originally published at </em><a href="https://jademind.com/blog/posts/slack-export-all-files/"><em>https://jademind.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1271d91c2a62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/export-and-backup-your-data-and-files-from-slack-1271d91c2a62">Export and Backup Your Data and Files from Slack</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hubspot Emails with Custom Data]]></title>
            <link>https://medium.com/jademind/hubspot-emails-with-custom-data-fbbc9c82ef64?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/fbbc9c82ef64</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[hubspot]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Wed, 01 Jun 2022 11:18:53 GMT</pubDate>
            <atom:updated>2022-06-18T19:26:31.490Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K2ZnjkqYs3ES8y3t" /><figcaption>Photo by <a href="https://dlx.media/">https://dlx.media/</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Using the standard email feature from <a href="https://www.hubspot.com/">Hubspot</a> and working with the Drag&amp;Drop editor is pretty fine. However, you may want to create some more sophisticated emails for your customers in some situations including complex data.</p><p>Currently, the email templates of Hubspot are very limited in respect of adding <strong>custom data</strong>. You can use so-called <strong>personalization tokens</strong> to insert data from connected objects of your CRM (Contact, Product, Deal data). This is handy for inserting a personal greeting, some product offers, or providing some details on the last deal you made with this customer.</p><p>When working with <a href="https://knowledge.hubspot.com/crm-setup/use-custom-objects">custom objects</a>, you may introduce more <strong>complex data</strong> instead of simple strings. Maybe you are saving structured data (CSV, JSON, XML, etc.) even pre-rendered HTML into your custom object properties. In this case, adding this data to your email template is very limited and frustrating.</p><p>This is where <a href="https://knowledge.hubspot.com/email/how-to-use-transactional-email-in-hubspot">transactional emails</a> and the <a href="https://developers.hubspot.com/docs/api/developer-guides-resources">Hubspot API</a> come in very handy. With the help of the <a href="https://developers.hubspot.com/docs/api/marketing/transactional-emails#single-send-api">Single-Send API</a>, we can send a transactional email template and pass any custom property to it. The custom property can be used within the email template by simply inserting it as a template token like {{custom.myCustomProperyName}}.</p><p><strong>Attention</strong>: When using a custom code function in your workflow and Node.js as the implementation language, be aware that the @hubspot/api-client version 3.4.1 is available only at the moment of writing this post. Since the documentation of the Hubspot API is more recent, you will face some pitfalls when using the coding examples because of deprecated or no longer existing framework interfaces. You also have the option to develop your function with Python and use the @hubspot/api-client version 4.0.4 package.</p><p>Getting the work done and send your mail with custom data is done in three simple steps. We will create a workflow and implement a custom function to showcase this.</p><h4>Setup the mail template</h4><p>Start with a new email based on a template. In Hubspot access Marketing -&gt; Emails -&gt; Create email and select <em>Automated</em> as email type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jWBRgS2pTvZ4EJyplxPEw.png" /><figcaption>Choose Automated email type to work with workflows</figcaption></figure><p>Next, lay out your email template and add all the necessary message body. You can insert personalization tokens by using the text module wherever you like. For our example, we want to display a table with some statistics about the reading count of medium articles of a given user. Insert an HTML module and edit the code to display the table. At this point, we insert our own custom token {{custom.readingStats}}. This token will contain the statistics as pre-rendered HTML rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CG6l7MouRtCLT5Uk6sOWqA.png" /></figure><p>Finally, go to the email settings and add all the details like subject, sender, language, etc. It is very important to change the subscription type to <em>Transactional</em>. Emails marked as transactional emails can be used within workflows and the API. It is also unnecessary to insert unsubscribe links and other GDPR-relevant information in this case.</p><p>Before saving the email convert it to a single-send email via the <em>Actions</em> menu. After saving the email, write down the ID of the email template. You will find it in the current URL or on the details page of the email. This ID is used in the custom function to send the email via the API.</p><h4>Create the workflow</h4><p>Next, access Workflows -&gt; Create workflow and set up the workflow based on the relevant data for your use case. For our example, we choose a Contact-based trigger with a monthly execution, and the workflow will execute on the first day of each month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SdVfNrkq7Ptq8MGqBBDxDA.png" /><figcaption>Workflow based on contacts with a recurring trigger</figcaption></figure><p>Our workflow definition is pretty simple and includes all <em>active</em> contacts. The schedule trigger step is responsible for executing this workflow regularly. As the last step, we insert a <em>custom code</em> action. As implementation language, we choose Node.js 12.x. Also, we will need to add a secret, so we can access the Hubspot API within our code. We simply name the secret API_KEY, and it will be available as an environment variable within our code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzR3vk4De0kqvUF6Um9ODg.png" /><figcaption>Final workflow including the custom function</figcaption></figure><h4>Implement the custom function</h4><p>After adding the custom code workflow step, we are ready to add our custom function. Basically, we need to do the following things:</p><ul><li>Set up the Hubspot API client</li><li>Get the contact details of the current workflow contact</li><li>Fetch or prepare some custom data</li><li>Send the email by using the Single-Send API and provide our custom data as an additional parameter</li></ul><p>Below, you will find the example code for adding the readingStats custom data, containing some pre-rendered HTML table rows. This is a fixed string for simplicity, but you can complement it with a particular data fetching method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb309e061a56b8a3177f8466a580d027/href">https://medium.com/media/eb309e061a56b8a3177f8466a580d027/href</a></iframe><p>Finally, you can directly test your custom code by selecting an existing contact. Be careful selecting some of your testing contacts because the function will send the email in any case.</p><p><strong>Tip:</strong> For the purpose of debugging, you can use console.log and the output will be shown directly in the web user interface after the execution.</p><p><em>Resources:</em></p><ul><li><a href="https://developers.hubspot.com/docs/api/workflows/custom-code-actions">https://developers.hubspot.com/docs/api/workflows/custom-code-actions</a></li><li><a href="https://knowledge.hubspot.com/email/how-to-use-single-send-in-an-email-to-merge-custom-properties">https://knowledge.hubspot.com/email/how-to-use-single-send-in-an-email-to-merge-custom-properties</a></li><li><a href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects">https://developers.hubspot.com/docs/api/crm/crm-custom-objects</a></li><li><a href="https://developers.hubspot.com/docs/api/marketing/transactional-emails#single-send-api">https://developers.hubspot.com/docs/api/marketing/transactional-emails#single-send-api</a></li><li><a href="https://knowledge.hubspot.com/workflows/create-workflows">https://knowledge.hubspot.com/workflows/create-workflows</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbbc9c82ef64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/hubspot-emails-with-custom-data-fbbc9c82ef64">Hubspot Emails with Custom Data</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Docker images with GitLab CI on AWS ECR]]></title>
            <link>https://medium.com/jademind/build-docker-images-with-gitlab-ci-on-aws-ecr-3abf14481ff4?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/3abf14481ff4</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Fri, 06 May 2022 11:16:09 GMT</pubDate>
            <atom:updated>2022-05-06T11:16:09.461Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*omn5mFYu274ZKCjT" /><figcaption>Photo by <a href="https://unsplash.com/@carrier_lost?utm_source=medium&amp;utm_medium=referral">Ian Taylor</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://docs.gitlab.com/ee/ci/">GitLab CI</a> is a great way to automate testing, building and deploying of almost any application. Recently we came across the requirement to setup a repository with several definitions of Docker container images. For sure we wanted to use GitLab CI to also automate the building of our images and to push them to our container registry. Although you can setup a private container registry on GitLab too, our project required us to use the <a href="https://aws.amazon.com/ecr/">AWS Elastic Container Registry</a>. Given that fact, it will need to do some additional setup to install the AWS CLI and to login to the ECR service. All of that will be explained step by step.</p><h3>Gitlab runner</h3><p>First of all you should setup a dedicated GitLab runner on e.g. <a href="https://m.do.co/c/7db46891f3df">DigitalOcean</a>, because you need to update the configuration of your runner. To do the setup you can follow the blog article <a href="https://about.gitlab.com/2016/04/19/how-to-set-up-gitlab-runner-on-digitalocean/">How to set up GitLab Runner on DigitalOcean</a>.</p><p>After installing the GitLab runner, head over to the config.toml and enable the privileged mode with privileged = true.</p><p>After that, disable shared runners for your GitLab repository and enable your own private runner instance. Now you are ready to setup your continuous integration configuration.</p><h3>Linting Dockerfile</h3><p>As an additional step to ensure that all Dockerfiles are syntactically correct, we decided to use <a href="https://www.npmjs.com/package/dockerlint">dockerlint</a>. This will test all Dockerfiles within the GitLab repository and prohibit any unexpected building errors due to syntax errors. This step is completely optional but we would suggest to consider it for your projects too.</p><p>The next section will provide you the complete GitLab CI configuration to build your images.</p><h3>CI configuration</h3><p>So in this step we will setup our GitLab CI configuration to enable it to build Docker images and push it to the AWS ECR. In short, our script will do the following:</p><ol><li>Use a basic Docker image</li><li>Use Docker in Docker (DinD) as a service</li><li>Install AWS CLI</li><li>Login to AWS ECR</li><li>Build and push our images</li></ol><p>The script also installs some necessary packages (node, python) to get the AWS CLI up and running but I will not go into further details. As another requirement you will need to setup some environment variables within the GitLab CI settings page. For a successful authentication to AWS ECR set the following variables:</p><p>Now checkout our complete configuration file at <a href="https://gist.github.com/anka/19008ab17a6c45eba4d7fed5945f5614">GitHub Gist</a>. It should provide you with all necessary details to setup your build automation. Please notice, that the actual step of building your Docker images is up to you. We used a simple bash script to build all images within subfolders of our GitLab repository.</p><p>We hope you got some insights on how to easily automate building Docker images on GitLab. Feel free to further improve our CI configuration with additional steps or leave a comment for some additional topics.</p><p><em>Originally published at </em><a href="https://jademind.com/blog/posts/build-docker-images-with-gitlab-ci-on-aws-ecr/"><em>https://jademind.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3abf14481ff4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/build-docker-images-with-gitlab-ci-on-aws-ecr-3abf14481ff4">Build Docker images with GitLab CI on AWS ECR</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails Parallel Testing and the flipper gem]]></title>
            <link>https://medium.com/jademind/rails-parallel-testing-and-the-flipper-gem-99f3d39ecd6e?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/99f3d39ecd6e</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[parallel-testing]]></category>
            <category><![CDATA[rails-6]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[flaky-tests]]></category>
            <dc:creator><![CDATA[Thomas Winkler]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 19:46:03 GMT</pubDate>
            <atom:updated>2021-11-29T19:46:02.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUZRb74f6UEqaZFMAMrcHQ.jpeg" /></figure><p>Last week we updated our test suite to take advantage of the possibility to run tests in parallel. This feature was introduced in Rails 6 (see <a href="https://guides.rubyonrails.org/testing.html#parallel-testing">Guide</a>).</p><p>With adding a single line in the test_helper.rb</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86006001599fb158291fa49bf6bd3334/href">https://medium.com/media/86006001599fb158291fa49bf6bd3334/href</a></iframe><p>we instantly benefit from a significant performance boost. However, we observe that some of our tests turn flaky so we took a closer look.</p><p>It turns out that the <a href="https://github.com/jnunemaker/flipper">flipper</a> gem (which by the way is an awesome gem for feature flagging) shares state across the tests running in parallel.</p><p>To fix this issue one option would be to mock the Flipper service in your tests. Another option (we choose because of less effort) is to use the flipper provided Flipper::Adapters::PStoreto create a pstore (<a href="https://ruby-doc.org/stdlib-2.5.3/libdoc/pstore/rdoc/PStore.html">PStore</a> implements a file based persistence mechanism based on a Hash) for each sub process Rails starts to run the tests.</p><p>For this purpose we create a new Flipper instance based on the original Flipper instance in the parallelize_setup hook which will be called for each sub process. And here is the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73b822dfb059e6a1c191b6dd7e52931b/href">https://medium.com/media/73b822dfb059e6a1c191b6dd7e52931b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99f3d39ecd6e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/rails-parallel-testing-and-the-flipper-gem-99f3d39ecd6e">Rails Parallel Testing and the flipper gem</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Rake Tasks with Cron and File Locks]]></title>
            <link>https://medium.com/jademind/running-rake-tasks-with-cron-and-file-locks-c394334645fb?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/c394334645fb</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[rake]]></category>
            <category><![CDATA[cron]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 19:45:31 GMT</pubDate>
            <atom:updated>2021-11-29T19:45:31.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0uRQkr-iHEuSWO4g" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://guides.rubyonrails.org/command_line.html#custom-rake-tasks">Rake</a> tasks within <a href="https://guides.rubyonrails.org/">Ruby on Rails</a> are compelling. It doesn’t matter if you need to do some maintenance, cleanup or complex data processing, rake tasks will emerge in your system as it is becoming bigger and more complex. More importantly, you certainly want to execute these tasks regularly and in the background.</p><p><a href="https://man7.org/linux/man-pages/man8/cron.8.html">cron</a> is a wonderful tool to execute regular tasks in the background in a Unix-based system. However, reading and editing the schedule by using <a href="https://man7.org/linux/man-pages/man5/crontab.5.html">crontab</a> can be very tedious sometimes. This will become even more true when using specific time constraints like every day at 4:00 am or every three minutes.</p><h3>Whenever</h3><p>Thanks to the ruby gem <a href="https://github.com/javan/whenever">whenever</a>, creating such tasks will be easy as pie and using its DSL (Domain Specific Language) makes reading and editing the schedule like a charm. Installing the gem and creating your first schedule will be done in less than a minute. Add gem &#39;whenever&#39;, require: falseto your Gemfile and execute a bundle install . After that, run bundle exec wheneverize . and you will get a config/schedule.rb stub you can start at.</p><p>You can define a background job by simply using the keyword every, a time constraint (e.g. 2.hours, 5.minutes, etc.) and a concrete job definition within the block. There are three built-in job types available:</p><ul><li>runner … running a simple ruby command e.g. calling a service class</li><li>command … running a OS-level command</li><li>rake … running a rake task</li></ul><p>Also, there exists the possibility to create custom job types, which will become handy later on. For simplicity, we add a basic schedule definition:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e163cf2bff333a8efdf638de45b7ae6b/href">https://medium.com/media/e163cf2bff333a8efdf638de45b7ae6b/href</a></iframe><p>When running bundle exec whenever you will get the background jobs as a crontab definition shown below printed in your CLI. Adding the option --update-crontab on the command would immediately update your crontab on your local system.</p><pre>0 4 * * * <strong>/</strong>bin<strong>/</strong>bash -l -c &#39;cd /tmp/example &amp;&amp; RAILS_ENV=production bundle exec rake reports:generate --silent&#39;<br><br>0 * * * * <strong>/</strong>bin<strong>/</strong>bash -l -c &#39;cd /tmp/example &amp;&amp; bundle exec bin/rails runner -e production &#39;\&#39;&#39;<em>DB</em>::<em>Cleanup</em>.new.call&#39;\&#39;&#39;&#39;</pre><pre>0,5,10,15,20,25,30,35,40,45,50,55 * * * * <strong>/</strong>bin<strong>/</strong>bash -l -c &#39;cd /tmp/example &amp;&amp; RAILS_ENV=production bundle exec rake data:process --silent&#39;</pre><p>Doing this on your production system would create the cron jobs for you and keep them up to date on each deployment. Finally, the</p><h3>Mutual exclusion with flock</h3><p>Sometimes, executing processing tasks in the background in small intervals can lead to blocking situations. To avoid this, it would be handy not to start the background job if it is still running. A mutex (in our case, a file lock) will help overcome this problem.</p><p>The linux command line tool <a href="https://man7.org/linux/man-pages/man1/flock.1.html">flock</a> enables us to manage file locks within shell scripts. It simply creates a file and sets an advisory lock for it so that another process trying to get a lock on that file will fail. As mentioned above, whenever allows us to create a custom job type. We will use a custom job type to incorporate the flock command before executing e.g. the rake command.</p><p>Below you will find the extended example schedule from above with such a custom job type. We use the command itself and a prefix to create a unique file name for the lock file. The flock command requires a file path and a command to execute. We can further specify the option -n to make it non-blocking, and the execution will fail immediately if the file is locked. Using the option -w 10 would wait for further 10 seconds until it fails.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9308a02a857a4ca216f706d0168c97e2/href">https://medium.com/media/9308a02a857a4ca216f706d0168c97e2/href</a></iframe><p>After running bundle exec whenever again, the final output for our crontab will look like stated below. It creates a unique name for the lock file and uses the flock command to prohibit multiple executions.</p><pre>0,5,10,15,20,25,30,35,40,45,50,55 * * * * <strong>/</strong>bin<strong>/</strong>bash -l -c &#39;/usr/bin/flock -n /tmp/example/tmp/8480f0bad19e3d25b66eca0e56d2f6205581304dd589a23f8fdce6b627805365.lock -c &quot;cd /tmp/example &amp;&amp; bundle exec rails data:process --silent &quot;&#39;</pre><p>Our wrap_with_lock method accepts a prefix parameter, which easily enables you to create other custom jobs with a corresponding file lock. Hopefully, this will help you in some situations in your Ruby on Rails projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c394334645fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/running-rake-tasks-with-cron-and-file-locks-c394334645fb">Running Rake Tasks with Cron and File Locks</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Flutter Channel to Share a File on iOS and Android]]></title>
            <link>https://medium.com/jademind/a-flutter-channel-to-share-a-file-on-ios-and-android-94f03e8aca9d?source=rss----c753727340cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/94f03e8aca9d</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Andreas Katzian]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 00:31:39 GMT</pubDate>
            <atom:updated>2019-11-28T16:44:35.490Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="Women operating a smartphone to share a file" src="https://cdn-images-1.medium.com/max/1024/0*UjjBDnRbTARdSFkK" /><figcaption>Photo by <a href="https://unsplash.com/@youxventures?utm_source=medium&amp;utm_medium=referral">You X Ventures</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://flutter.dev/">Flutter</a> is a great new approach for cross-platform development without a doubt. In many cases, you will get away with standard features. Still, at some point, you need some platform-specific functionality. That’s when <a href="https://flutter.dev/docs/development/platform-integration/platform-channels">Platform Channels</a> come in handy.</p><p>In our showcase today, we want to share a file by using the platform-specific sharing dialog. Using channels, we will create separate implementations for Android and iOS and also take some UI-specific aspects into account.</p><h3>Channels</h3><p>To write custom platform-specific code, Flutter uses message channels to communicate between your Flutter app (the <em>client</em>) and the specific platform part of your application (the <em>host</em>). So rather than build upon additional, generated code, you have to implement your custom behavior for Android or iOS separately within the language of your choice (Java, Kotlin, Swift, Objective-C). After that, you can use Flutter’s platform-specific API to activate the desired functionality and receive results through the message channel, respectively.</p><p>Flutter provides a compact, <a href="https://flutter.dev/docs/development/platform-integration/platform-channels">architectural overview</a> of the Channels concept to show the clear separation of implementation points and the message communication channel to use for exchanging messages.</p><figure><img alt="Flutter’s architectural overview of platform channels" src="https://cdn-images-1.medium.com/max/580/1*IyZxSjFOQNVju3WUu758Bg.png" /><figcaption>Flutter’s Platform Channel Architecture (Source: <a href="https://flutter.dev/docs/development/platform-integration/platform-channels">flutter.dev</a>)</figcaption></figure><p>When writing your custom code, you can use all platform-specific APIs to use frameworks, device sensors or other hardware capabilities. There are no limitations since you are implementing your features within the native environment. Furthermore, all messages and responses are exchanged asynchronously between the host and the client. This procedure will ensure UI responsiveness.</p><h3>Message Data Types</h3><p>To exchange data effectively, Flutter uses a so-called message codec. Data will be serialized into a binary format by using a simple key-value representation. The serialization and deserialization of all messages and responses happen automatically.</p><p>When receiving a message within your platform-specific implementation, the deserialization of data will also respect the given data types. Furthermore, it will cast the data to platform-specific data types.</p><p>The following table illustrates some data type conversions:</p><pre>+--------+----------------------------+---------------------+<br>|  Dart  |        Objective-C         |        Java         |<br>+--------+----------------------------+---------------------+<br>| bool   | [NSNumber numberWithBool:] | java.lang.Boolean   |<br>| int    | [NSNumber numberWithInt:]  | java.lang.Integer   |<br>| String | NSString                   | java.lang.String    |<br>| List   | NSArray                    | java.util.ArrayList |<br>+--------+----------------------------+---------------------+</pre><p>To get the full overview of all supported data types, you can consult the <a href="https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html">StandardMessageCodec</a> class documentation. Keep in mind that lists and maps are restricted to the supported data types too. However, you can implement a custom message codec on your own if you need to exchange complex data.</p><h3>Implementation Details</h3><p>Once you got the basics about platform channels and if you are already familiar with Kotlin and Swift, you can head over to your custom implementation. To initiate a platform-specific sharing dialog on Android and iOS and to provide a file to share, you need to follow three simple steps:</p><ol><li>Open a method channel in your Dart code and call a method passing in your file data.</li><li>Implement the channel callback method within iOS and present a share dialog using UIActivityViewController.</li><li>Implement the channel callback method within Android and start a share intent.</li></ol><h4>Dart Code</h4><p>To simplify and reuse the sharing code, we are going to introduce a Share class providing the capability to share a file using a method channel. Utilizing a channel is straight forward. Create a channel by using the constructor of MethodChannel and give it a unique channel identifier. This identifier will be used within your platform-specific implementation to register a channel callback and to receive messages.</p><p>To send a message, simply create a Map of data you want to submit and invoke a remote method by calling the method invokeMethod. Again you use another identifier to specify the method to call. Below you find the full implementation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/997765f345dce8a16a8d8eed0f4ac26e/href">https://medium.com/media/997765f345dce8a16a8d8eed0f4ac26e/href</a></iframe><p>As you may have noticed, the file method has an optional Rect rect parameter. This parameter can be used to provide the location of a Widget (e.g.RaisedButton) the share action was initiated on. This comes in handy when using the sharing dialog on an iPad. Since iOS will display a modal popover, it needs the origin of the trigger to show a corresponding arrow indicator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dH4U0i0V0NLtNTdum_sixA.png" /><figcaption>Modal popover on iPad with an arrow indicator</figcaption></figure><p>Finally, initiate the sharing of a file by using the code in your Dart implementation. You can also provide a subject to display it at the sharing dialog or use it as an e-mail subject.</p><pre>await Share.<em>file</em>(&quot;Sharing an example file&quot;, &#39;Example.pdf&#39;, filepath, &#39;application/pdf&#39;, rect: widgetRect);</pre><h4>iOS Code</h4><p>In your iOS AppDelegate you need to open the flutter method channel with the same channel identifier you are using in your Dart code. After that, set a method call handler and check the id of the method attribute. By accessing the arguments attribute, you will receive all data passed through the method channel.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ddf6a565ef7fba5677e94ba8a15557f1/href">https://medium.com/media/ddf6a565ef7fba5677e94ba8a15557f1/href</a></iframe><p>Next, add the specific sharing code within a separate method. Here, each value will be extracted from the arguments parameter and cast to their specific data types. Create an instance of UIActivityViewController, set all activity items, including the path of your file you want to share, and the source rectangle the share action was initiated from.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8f8c49e6bb716ac7e45cd41a10f7144/href">https://medium.com/media/a8f8c49e6bb716ac7e45cd41a10f7144/href</a></iframe><p>When showing the activity view controller, you will see the default iOS share dialog with the given subject and your attached file. At this point, you finished your first platform channel and successfully used a platform-specific API on your own.</p><h4>Android Code</h4><p>To complete the whole story, we do have to implement the custom platform channel code within your Android app too. Open your main activity file and fill in the code, as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f30b3aeea7b66db8ecb58e623d86689f/href">https://medium.com/media/f30b3aeea7b66db8ecb58e623d86689f/href</a></iframe><p>It is no surprise at all that the Android code looks quite similar to the iOS code. You have to open the platform channel, get the call arguments and present the sharing activity. In this case, we do not have to specify any location parameters due to the fact that the Android sharing dialog does not have a corresponding trigger indicator.</p><p>Now you are ready to build your Flutter app and test your platform-specific file-sharing feature on your simulators or real devices.</p><h3>Dart packages</h3><p>If you want to have some production-ready sharing capabilities, you can use some available Dart packages to get a head start for your application. Depending on the selected package, you may face some limitations, but using the presented guide to implement it on your own should be a no-brainer.</p><p>Listed below, you will find selected Dart packages for sharing content and/or files, which are available and maintained:</p><ul><li><a href="https://pub.dev/packages/esys_flutter_share">esys_flutter_share</a></li><li><a href="https://pub.dev/packages/share_extend">share_extend</a></li><li><a href="https://pub.dev/packages/flutter_share_me">flutter_share_me</a></li></ul><p>Furthermore, you will find many more implementations when <a href="https://pub.dev/packages?q=share">searching for sharing packages</a>.</p><h3>Conclusion</h3><p>In this article, you got a comprehensive overview of Flutter`s platform channels and how to extend your Flutter app with platform-specific features. Check out Flutter`s documentation to gain further insights and play around with different code examples.</p><p>If you found a solution for a common problem with your platform-specific implementation, feel free to share it with the community. To do so, you should deal with advanced topics like <a href="https://flutter.dev/docs/development/packages-and-plugins/developing-packages#dart">developing</a> and <a href="https://flutter.dev/docs/development/packages-and-plugins/developing-packages#publish">publishing</a> Dart packages.</p><p>Happy channeling (:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94f03e8aca9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jademind/a-flutter-channel-to-share-a-file-on-ios-and-android-94f03e8aca9d">A Flutter Channel to Share a File on iOS and Android</a> was originally published in <a href="https://medium.com/jademind">The Jade Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>