<?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 Aftaab Siddiqui on Medium]]></title>
        <description><![CDATA[Stories by Aftaab Siddiqui on Medium]]></description>
        <link>https://medium.com/@maskedsyntax?source=rss-8c41f7780292------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RruGNVSw10AmU3lV2CR5jA.jpeg</url>
            <title>Stories by Aftaab Siddiqui on Medium</title>
            <link>https://medium.com/@maskedsyntax?source=rss-8c41f7780292------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:19:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maskedsyntax/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[Why I Built a Focus App Instead of Another To-Do App]]></title>
            <link>https://medium.com/@maskedsyntax/why-i-built-a-focus-app-instead-of-another-to-do-app-dce2c6f4fd44?source=rss-8c41f7780292------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce2c6f4fd44</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[indiedev]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Aftaab Siddiqui]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 13:18:43 GMT</pubDate>
            <atom:updated>2026-06-19T13:18:43.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCG_jnNPfFfmfeS9nJ0Etg.jpeg" /></figure><p>Most productivity apps assume people have a productivity problem.</p><p>I increasingly think many people have a setup problem.</p><p>Before starting focused work, I would often open Spotify for music, a Pomodoro timer for time tracking, a notes app for quick thoughts, and a task manager to decide what to work on.</p><p>None of these tools were individually bad.</p><p>The friction came from constantly switching between them.</p><p>That observation became the starting point for Lofikofi.</p><p>Instead of building another task manager or another timer, I wanted to create a workspace that reduced the number of decisions required before starting work.</p><p>The first version combines four things:</p><ul><li>Ambient soundscapes</li><li>Focus timers</li><li>Lightweight task boards</li><li>Quick notes</li></ul><p>The goal is simple: open one app and start working.</p><h3>Why macOS first?</h3><p>Desktop is where I spend most of my working hours.</p><p>The experience I wanted didn’t make much sense as a mobile app initially because the problem existed at my desk, not in my pocket.</p><p>Starting with a single platform also helped keep the scope manageable.</p><h3>What I learned</h3><p>The hardest part wasn’t development.</p><p>It was deciding what not to build.</p><p>Every productivity tool can quickly become a giant project full of calendars, AI features, analytics, collaboration, and integrations.</p><p>I deliberately kept Lofikofi small.</p><p>The product became better every time I removed a feature rather than added one.</p><h3>What’s next?</h3><p>I’m currently exploring:</p><ul><li>Spotify playlist support</li><li>YouTube playlist support</li><li>Better task management workflows</li><li>Additional ambient sound packs</li></ul><p>The goal remains the same: reduce setup friction and help people get into deep work faster.</p><p>Lofikofi is available on the Mac App Store as a small one-time purchase ($2.99). No subscriptions, no accounts, and no recurring fees.</p><p>App Store: <a href="https://apps.apple.com/app/lofikofi/id6747198839">https://apps.apple.com/app/lofikofi/id6747198839</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce2c6f4fd44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Local-First Flutter App: Bridging SQLite and Riverpod]]></title>
            <link>https://medium.com/@maskedsyntax/building-a-local-first-flutter-app-bridging-sqlite-and-riverpod-e586152ad292?source=rss-8c41f7780292------2</link>
            <guid isPermaLink="false">https://medium.com/p/e586152ad292</guid>
            <category><![CDATA[desktop-app]]></category>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[riverpod]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Aftaab Siddiqui]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 12:39:02 GMT</pubDate>
            <atom:updated>2026-06-03T12:44:33.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ymazvhUWVBD43Bnp" /><figcaption>Photo by <a href="https://unsplash.com/@altumcode?utm_source=medium&amp;utm_medium=referral">AltumCode</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In a world obsessed with cloud sync, sometimes the most important feature you can offer your users is absolute privacy. When building Patterns, an OCD and journaling application, keeping sensitive mental health data strictly on the device wasn’t just a nice-to-have; it was a foundational requirement.</p><p>But “local-first” often introduces a specific UI challenge in Flutter: how do you build a fluid, reactive interface over a traditional, imperative SQLite database without drowning in boilerplate?</p><p>The answer lies in combining the robustness of <strong>sqflite</strong> with the modern state management capabilities of Riverpod, specifically using <strong>AsyncNotifier</strong>.</p><h3>The Problem with Imperative Databases</h3><p>SQLite is inherently imperative. You ask for data, you wait for the disk, and you get a list of rows. But Flutter builds best reactively. You want your UI to automatically update the moment a new journal entry is saved, without having to manually tell five different widgets to refresh their state.</p><h3>The Riverpod Bridge</h3><p>To solve this, we used Riverpod’s <strong>AsyncNotifier</strong>. This allows us to treat our SQLite database almost like a reactive stream.</p><p>Here is a look at how we manage the Journal state:</p><pre>class JournalNotifier extends AsyncNotifier&lt;List&lt;JournalEntry&gt;&gt; {<br>  @override<br>  Future&lt;List&lt;JournalEntry&gt;&gt; build() async {<br>    final entries = await DbHelper.instance.getJournalEntries();<br>    entries.sort((a, b) =&gt; a.date.compareTo(b.date));<br>    return entries;<br>  }<br><br>  Future&lt;void&gt; saveEntry(String date, String content) async {<br>    state = const AsyncLoading();<br>    state = await AsyncValue.guard(() async {<br>      final entry = JournalEntry(<br>        date: date,<br>        content: content,<br>        createdAt: DateTime.now(),<br>        updatedAt: DateTime.now(),<br>      );<br>      await DbHelper.instance.upsertJournalEntry(entry);<br>      final entries = await DbHelper.instance.getJournalEntries();<br>      entries.sort((a, b) =&gt; a.date.compareTo(b.date));<br>      return entries;<br>    });<br>  }<br>}</pre><h3>The Magic of AsyncValue.guard</h3><p>The secret sauce here is `AsyncValue.guard`. When a user saves an entry, we immediately set the state to `AsyncLoading()`. This allows the UI to show a subtle loading indicator if needed.</p><p>Then, `guard` handles the asynchronous database insertion. If it succeeds, it fetches the fresh list of entries, sorts them, and updates the state. If the database throws an error, `guard` automatically catches it and transitions the state to an error state, which our UI can respond to elegantly.</p><p>This pattern eliminates manual `try/catch` blocks cluttering our business logic and completely decouples the UI from the database operations. The UI just listens to `ref.watch(journalProvider)`, and Riverpod ensures it always has the latest, correctly ordered data straight from the local disk.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e586152ad292" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Patterns: A Quiet Space for OCD Tracking and Journaling]]></title>
            <link>https://medium.com/@maskedsyntax/building-patterns-a-quiet-space-for-ocd-tracking-and-journaling-3ae699ffc442?source=rss-8c41f7780292------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ae699ffc442</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[journaling]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[ocd]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Aftaab Siddiqui]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 16:08:52 GMT</pubDate>
            <atom:updated>2026-06-01T16:08:52.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OQ_QWtw42br1QyhxSMViZg.jpeg" /></figure><p>When you are tracking intrusive thoughts, compulsions, and daily distress levels, the last thing you want is a cluttered interface or a complex dashboard that feels like work. Building a tool for mental health requires a very different approach than building a typical productivity app.</p><p>You need a quiet place. A private notebook.</p><p>That is why I built Patterns. Patterns is a minimalist journaling and OCD self-tracking application designed to provide clarity through structured reflection.</p><h3>The Design Philosophy</h3><p>Many habit tracking applications try to do everything. They give you dense charts, gamified streaks, and endless configuration options. But mental health tracking is deeply personal. A user opening an OCD tracker might already be in a state of high anxiety. The cognitive load needs to be as close to zero as possible.</p><p>When designing Patterns, the goal was to create an experience that feels calm, private, and intentional. I explicitly chose not to build a dashboard-heavy interface. The app does not blast its logo on every screen. It does not<br>force you through complex forms. Instead, it offers a welcoming environment to record your experiences quickly so you can move on with your day.</p><h3>The Core Experience</h3><p>Patterns focuses entirely on two main activities.</p><p>First, it offers Daily Journaling. At its core, Patterns provides a distraction-free writing space. Each entry is tied to a specific date, allowing you to build a chronological history of your reflections. Whether you are doing a daily brain dump or working through a specific emotional hurdle, the journal gives you a clean canvas.</p><p>Second, it features an OCD Tracker. For those managing Obsessive-Compulsive Disorder, the app includes dedicated tools to document events as they happen. You can log whether an event was an obsession or a compulsion. You can record your distress level on a simple slider from zero to ten. You can also note your response strategies. The goal is to make logging fast and low-friction by capturing the essential context without causing form fatigue.</p><p>Over time, understanding your mental habits becomes important, but looking at a massive grid of data can be paralyzing. Patterns includes an Insights view that summarizes your entries and average distress levels over time. The charts are designed to be digestible and help you spot trends without feeling like you are analyzing a corporate spreadsheet.</p><h3>Privacy as a Requirement</h3><p>When it comes to mental health data, privacy is a fundamental requirement.</p><p>Patterns is a local-first application. There is no user account to create, no cloud sync to configure, and no central server collecting your data. Your journal entries, distress ratings, and strategy notes stay entirely on<br>your device. The app does not sell data or share it with third parties.</p><p>If you want to back up your information, you can manually export an unencrypted file to store wherever you feel is safe. You are in complete control of your data.</p><h3>Available Everywhere</h3><p>Because mental health does not care what operating system you use, Patterns is designed to be accessible. Built with Flutter, it is available today across the platforms you use most.</p><p>You can download it right now on the iOS App Store for iPhone and iPad, as well as on the Mac App Store. For Windows and Linux users, installers are available on GitHub. An Android version is also coming soon.</p><p>It is important to note that Patterns is a tool for personal reflection and self-tracking. It does not diagnose or treat any condition, and it is not a replacement for professional care from a qualified clinician.</p><p>If you are looking for a simple and private way to understand your mind better, I hope Patterns can be a helpful companion. You can learn more and find all download links at <a href="http://patterns.maskedsyntax.com/">patterns.maskedsyntax.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ae699ffc442" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Android Studio & AVD for App Development on Linux]]></title>
            <link>https://medium.com/@maskedsyntax/optimizing-android-studio-avd-for-app-development-on-linux-2f21412cdf48?source=rss-8c41f7780292------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f21412cdf48</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kernel]]></category>
            <dc:creator><![CDATA[Aftaab Siddiqui]]></dc:creator>
            <pubDate>Fri, 06 May 2022 20:07:18 GMT</pubDate>
            <atom:updated>2022-05-06T20:07:18.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tqDq5lnjXt_bLLAUxnjDbw.png" /></figure><p>If you are like me who’s stuck with an old laptop with not so good specs, Android Development almost becomes a no go. The amount of ram Android Studio takes along with the android virtual device and even after that, the bad performance of the virtual device makes it almost impossible to work with it.</p><p>Thus, in this article, I will show you guys how I have setup my laptop for android development on Linux to optimize its performance. A quick introduction to the laptop specs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*8tZfEzA7sROpndp9kQJZzw.png" /><figcaption>Laptop specs</figcaption></figure><p>I have dual booted with Arch(i3wm) and Ubuntu(Gnome), but you can go with any Linux distribution. If you have lesser ram than 8Gb and/or older hardware, I would suggest you to go with a much more minimal Desktop Environment such as xfce or lxqt/lxde or a window manager such as i3wm, awesomewm, etc.</p><p>If you have directly installed Ubuntu, than you already have a swap partition (2Gb). Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space. Thus, this space is extremely useful if you often face problems with memory shortage.</p><p>If you don’t have swap partition or swap file, I suggest you to take a look at this article about Swap Partitions and create one.</p><p><a href="https://opensource.com/article/18/9/swap-space-linux-systems">How to add Swap Space on Linux</a></p><p>Once the swap partition is created, it is time to install Android Studio and other apps. But before installing Android Studio and AVD, it’s important to configure hardware acceleration for the android emulator. Follow the steps to configure it:</p><h4>1. Install the cpu-checker package:</h4><pre>sudo apt install cpu-checker</pre><h4>2. Run kvm-ok:</h4><pre>$ kvm-ok</pre><p>Expected output: INFO: /dev/kvm exists KVM acceleration can be used</p><p>If you get the following error, it means that you can still run virtual machines. Your virtual machine will be slower without the KVM extensions.</p><h4>3. Install KVM on Linux:</h4><pre>sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils</pre><h4>4. Add users to the group:</h4><p>The group name is changed to libvirt, and you also need to be a member of ‘kvm’:</p><pre>$ sudo adduser `id -un` libvirt<br>Adding user &#39;&lt;username&gt;&#39; to group &#39;libvirt&#39; ...<br>$ sudo adduser `id -un` kvm<br>Adding user &#39;&lt;username&gt;&#39; to group &#39;kvm&#39; ...</pre><p>To check:</p><pre>$ groups<br>adm dialout cdrom floppy audio dip video plugdev fuse lpadmin admin sambashare kvm libvirtd</pre><p>To add your &lt;username&gt; to the groups:</p><pre>$ sudo adduser `id -un` kvm<br>Adding user &#39;&lt;username&gt;&#39; to group &#39;kvm&#39; ...<br>$ sudo adduser `id -un` libvirtd<br>Adding user &#39;&lt;username&gt;&#39; to group &#39;libvirtd&#39; ...</pre><p>After the installation, <strong>you need to relogin</strong> so that your user becomes an effective member of kvm and libvirtd user groups. The members of this group can run virtual machines.</p><h4><strong>5. Verify Installation:</strong></h4><p>You can test if your install has been successful with the following command:</p><pre>$ virsh list --all<br> Id Name                 State<br>----------------------------------</pre><pre>$</pre><p>If on the other hand you get something like this:</p><pre>$ virsh list --all<br>libvir: Remote error : Permission denied<br>error: failed to connect to the hypervisor<br>$</pre><p>Something is wrong (e.g. you did not relogin) and you probably want to fix this before you move on. The critical point here is whether or not you have write access to /var/run/libvirt/libvirt-sock.</p><p>The sock file should have permissions similar to:</p><pre>$ sudo ls -la /var/run/libvirt/libvirt-sock<br>srwxrwx--- 1 root libvirtd 0 2010-08-24 14:54 /var/run/libvirt/libvirt-sock</pre><p>Also, /dev/kvm needs to be in the right group. If you see:</p><pre>$ ls -l /dev/kvm<br>crw-rw----+ 1 root root 10, 232 Jul  8 22:04 /dev/kvm</pre><p>Now that we have optimized everything, the only thing left is to install Android Studio and start using it. Here’s another catch, if you want your android studio to load faster and be a litter snappier, try to install it from their official website instead of using snap or Ubuntu Software center as snaps are a bit slower than the official packages.</p><p>Download the .tar.gz file from their website then follow the given steps:</p><h4>1. Unpack the <em>android-studio-*.tar.gz</em> file to a different folder.</h4><p>The recommended installation location according to the filesystem hierarchy standard (FHS) is <strong>/opt</strong>. To install Android Studio into this directory, enter the following command:</p><pre>sudo tar xzf android-*.tar.gz -C /opt/</pre><h4>2. Switch to the <strong>bin</strong> subdirectory:</h4><pre>cd /opt/android-*/bin</pre><h4>3. Run <em>studio.sh </em>file.</h4><pre>sh studio.sh</pre><p>To create a desktop entry, do one of the following:</p><ul><li>On the Welcome screen, click Configure | Create Desktop Entry</li><li>From the main menu, click Tools | Create Desktop Entry</li></ul><p>Now that everything is done, restart your computer and you will see much better performance from android studio.</p><p>Instead of Android Studio, you can also use other text editors/IDEs such as visual studio code, sublime text, or even vim with plugins (I did use it once and it was actually good).</p><p>If you still find issues with any of the steps, you can always ping me!</p><p>Cheers :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f21412cdf48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>