<?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 Toufeeq Ahamed on Medium]]></title>
        <description><![CDATA[Stories by Toufeeq Ahamed on Medium]]></description>
        <link>https://medium.com/@toufeeqahamedns?source=rss-30afc7a74601------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NrqRuUoS5ARk23Nt-6lnQg@2x.jpeg</url>
            <title>Stories by Toufeeq Ahamed on Medium</title>
            <link>https://medium.com/@toufeeqahamedns?source=rss-30afc7a74601------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:38:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@toufeeqahamedns/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[Two Clocks for Every Prayer: Why Paigham Shows Your Masjid’s Time First ⏰]]></title>
            <link>https://toufeeqahamedns.medium.com/two-clocks-for-every-prayer-why-paigham-shows-your-masjids-time-first-16eefb169e5e?source=rss-30afc7a74601------2</link>
            <guid isPermaLink="false">https://medium.com/p/16eefb169e5e</guid>
            <dc:creator><![CDATA[Toufeeq Ahamed]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 14:52:35 GMT</pubDate>
            <atom:updated>2026-12-05T02:45:53.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>A prayer time can mean two different things. Here’s how our app tells them apart.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lOR3FiW-FaMLP4cY_kTsg.png" /><figcaption>Two clocks for every prayer</figcaption></figure><p>Imagine it’s 5 a.m. Your prayer app says Fajr is at 5:08. You walk to the masjid, and the jamaat starts at 5:30.</p><p><em>“Was the app wrong?”</em></p><p>Not really. It answered a different question.</p><p>Every prayer has two clocks. One is the sky: the moment the prayer’s time begins. The other is your masjid: the moment the jamaat starts. Most apps show you the first and let you assume the second.</p><p>When we built Salaah times in Paigham, I wanted the app to always know which clock it is showing, and to tell you. This post walks through how it decides, one step at a time.</p><p>Grab a cup of chai. There’s a little Kotlin, and it’s short! ☕</p><h3>The Two Clocks 🕰️</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O51Ea9ILZOKQ-Ck7xzD_sw.png" /><figcaption>One clock is maths. The other is a decision.</figcaption></figure><p>The sky’s clock is maths. Give it a place and a date, and it can tell you when Fajr begins anywhere in the world.</p><p>The masjid’s clock is a decision. The imam and the committee pick the jamaat time, usually a little after the prayer begins, and round it to something people can remember. No formula can predict that.</p><p>So one rule sits above everything else in the app:</p><blockquote><strong>A calculated time is our best guess. A masjid’s published time is the answer.</strong> If your masjid’s timetable is on Paigham, the app shows that. Calculation is only the fallback.</blockquote><p>That rule gives the app its first question.</p><h3>Step 1: Is Your Masjid’s Timetable on Paigham? 🕌</h3><p>When you follow a masjid on Paigham and its timetable is there, the app shows it as it is: the Azaan and Iqama from your masjid’s own board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WFLgbrPwerZF20x8UlBGg.jpeg" /><figcaption>A masjid’s own timetable on Paigham: the masjid’s times, not a calculation.</figcaption></figure><p>In code, the app keeps one value that says which clock the screen is on:</p><pre>enum class TimingsSource {<br>    LOCAL,  // calculated on the phone: start times only, no iqama<br>    MASJID, // the followed masjid&#39;s own timings, with iqama<br>}</pre><p>(Simplified from TimingsSource.kt.)</p><p>When it’s MASJID, the app shows the masjid&#39;s times instead of its own calculation. There is nothing to guess.</p><p>But plenty of masjids don’t have their timetable on Paigham yet. What then?</p><h3>Step 2: If Not, Read the Sky ☀️</h3><p>Then Paigham works out the start times itself.</p><p>I didn’t write the astronomy, and you shouldn’t either. We use <strong>adhan2</strong>, a Kotlin Multiplatform port of the well-known Adhan library, so Android and iOS run the same calculator. For India it uses the Karachi method with the Hanafi rule for Asr, the convention most masjids in South Asia follow.</p><p>The maths needs one more thing from you: where you are.</p><h3>Step 3: Find You, Then Say It’s a Guess 📍</h3><p>Paigham asks the phone for its location and calculates for that spot. At the top of the screen, where a masjid’s name would go, it shows a location pin, your city’s name and one important word: “(Approx.)”.</p><p>If the phone can’t find you, the app uses Bengaluru and says so: “Bangalore (Approx.)”.</p><p>That label is the honest part. A calculated time can’t know your masjid’s jamaat, so it shows Azaan and Iqama at the same moment. It’s a good start time, and only a start time.</p><p>A guess that says it’s a guess beats a confident wrong answer. 🏷️</p><p>There’s one more place these times show up: our website.</p><h3>Step 4: The Same Answer on the Website 🌐</h3><p>The Paigham website has namaz time pages for 30 Indian cities, plus Ramadan timetables. If the website and the app disagreed by even a minute, everything above would be undone.</p><p>So the website runs the same method in JavaScript, and its tests check it against real answers from the app’s own library, for six city and date pairs at the edges: Srinagar in June (the longest days, far north), Kozhikode in December (the shortest, far south) and four more. If either side drifts, a test fails before anything ships.</p><p>Two codebases, one answer. 💎</p><h3>Back to 5 a.m. 🌅</h3><p>So what would Paigham have shown you that morning?</p><p>If your masjid’s timetable had been on Paigham: the jamaat at 5:30, from your masjid’s own board.</p><p>If it hadn’t: Fajr’s start time, under your city’s name marked “(Approx.)”, so you’d know to check with your masjid.</p><p>Either way, you’d know which clock you were looking at.</p><h3>Final Thoughts 💡</h3><p>If you take three things from this post:</p><p>✅ <strong>Separate the two clocks.</strong> When a prayer begins is astronomy. When the jamaat starts is a human decision.</p><p>✅ <strong>Borrow the maths, test the edges.</strong> A good library plus tests at the extremes beats a clever engine of your own.</p><p>✅ <strong>Label your guesses.</strong> “Approx.” is a feature, not an apology.</p><h3>What’s Next? 🚀</h3><p>Coming up: how Paigham reads a masjid’s printed timetable and turns it into structured data.</p><p>💬 <strong>What do you think?</strong> How does your masjid set its Iqama times: fixed through the year, or moving with the seasons?</p><p>Paigham is free: <a href="https://paigham.app/download?utm_source=medium&amp;utm_medium=social&amp;utm_campaign=two-clocks">https://paigham.app/download?utm_source=medium&amp;utm_medium=social&amp;utm_campaign=two-clocks</a></p><p>Happy building! 🛠️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16eefb169e5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Built Paigham: Your Neighbourhood’s Muslim Community, in One Place ]]></title>
            <link>https://toufeeqahamedns.medium.com/why-i-built-paigham-your-neighbourhoods-muslim-community-in-one-place-e097fa2da4fd?source=rss-30afc7a74601------2</link>
            <guid isPermaLink="false">https://medium.com/p/e097fa2da4fd</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[muslim]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Toufeeq Ahamed]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 05:13:21 GMT</pubDate>
            <atom:updated>2026-11-27T05:13:21.415Z</atom:updated>
            <content:encoded><![CDATA[<h4>Two moments, six years apart, and what I’m still learning from building a community app for India’s Muslims.</h4><p>Imagine moving to a new neighbourhood. On your first Friday you find the masjid, and the questions start. <em>“When is Jumah here? Is there a class for the kids? Where do people go for Sehri in Ramadan?”</em></p><p>The answers exist. They’re on the notice board, with the committee, and in a WhatsApp group you haven’t been added to yet. 🤷</p><p>What if your neighbourhood’s Muslim community was in one place: your masjid, your neighbours and your groups?</p><p>That’s <strong>Paigham</strong>, a neighbourhood Muslim community app for India. This is the story of why I built it, what I got wrong, and where it’s going.</p><p>Grab a cup of chai. This one’s personal. ☕</p><h3>It Started With a Different Community 🛵</h3><p>In college, I wanted to build a community app for an electric scooter company in Bengaluru and sell it to them. Then I found out they already had one.</p><p>I built one anyway. It was my first Flutter project, and its repository is still called community, dated January 2019. I didn&#39;t know it then, but that word would follow me.</p><h3>The Lockdown 🏠</h3><p>Then came the COVID-19 lockdown. We were at home, and the masjid went quiet for us. No bayans reached us. No announcements. No simple way to give Sadaqah to the masjid. Whatever news there was arrived through scattered WhatsApp groups.</p><p>I kept thinking: the community is right here, but nothing connects it.</p><blockquote><strong><em>The knowledge never went away. It just stopped reaching people.</em></strong></blockquote><p>The idea that became Paigham started there: one place where a masjid can reach everyone around it, and where the community can support its masjid.</p><h3>The Question at Hajj 🕋</h3><p>In 2022, I went for Hajj. There, a man started talking to me, and he said something I haven’t forgotten.</p><p>He said people like us, educated, who have made some money, come here and navigate Hajj easily. Then he asked: what about giving back? What are we giving from what we’ve learned?</p><p>That was the trigger. I came home thinking about Paigham, and decided: let’s build it. Let’s make it a one-stop place for Muslims: to stay connected, to learn, and to give back.</p><h3>Building It 💻</h3><p>We officially started in May 2023 and registered Paigham Technologies LLP. The first version reached the stores on 11 March 2024, just as Ramadan began.</p><p>It started with two of us: me and my brother Nizam. He tested every build with me, stayed up the late nights, and brainstormed with me. He’s still here: today he runs Paigham’s Instagram, Facebook and YouTube.</p><h3>The Mistake I Fixed at 2 AM 🕑</h3><p>On launch day, posts in Qaum, our community tab, showed the wrong time: off by five and a half hours. The server stored times in UTC, and the app showed them as if they were local time.</p><p>At 2 in the night, I “fixed” it by switching the database to Indian time, so the server’s clock wrote the time people expected. We also had no deep links and no way to share a post yet.</p><p>That fix bought us time, but it wasn’t a real fix. This year we did it properly: every time is stored as an exact instant, and the app converts it to your local time on screen.</p><p>⚠️ <strong>The lesson:</strong> store time as an instant, and decide how to show it only at the very end, on the person’s screen.</p><h3>What Paigham Is Today 🤝</h3><p>Every Muslim neighbourhood has a centre, and it’s usually the masjid. So Paigham starts there and grows outward:</p><p>✅ <strong>Qaum, the community tab:</strong> Aam for every paigham you can see, from your masjids, your area and Paigham, and Apne for your masjids, their groups and your areas.</p><p>✅ <strong>Your masjid, followed once:</strong> its Azaan and Iqama times, and its announcements as text, a voice note or a photo of the poster.</p><p>✅ <strong>Ramadan together:</strong> Sehri Finder shows Sehri places near you, nearest first.</p><p>Around that sit the everyday tools people asked for: Quran, Hadith, Duas, Qibla, the Hijri calendar and a Zakat calculator. Paigham also lists more than 23,000 masjids across India, so yours is likely already there.</p><h3>The Hard Part: Masjids Said No 🛠️</h3><p>Here’s what surprised me most. Early on, masjids didn’t want it, and many still don’t. For a committee of volunteers with day jobs, a new app feels like extra work, not help.</p><p>So most masjids on Paigham are quiet today. I’ve chosen to keep building anyway, on the belief that if Paigham is genuinely useful, people will come, and masjids will follow them.</p><p>Fewer than a thousand people have signed up so far, and only a few use it every day. That’s the honest number, and it’s why I’m writing this.</p><h3>Final Thoughts 💡</h3><p>If you take three things from this story:</p><p>✅ <strong>The problem was never information.</strong> The neighbourhood already knows. The problem is reach.</p><p>✅ <strong>Build for the people who will use it, not only the people you hope will run it.</strong> Masjids may follow their community, not the other way round.</p><p>✅ <strong>Start small, and be honest about it.</strong> Paigham is early, and I’d rather say so.</p><h3>What’s Next? 🚀</h3><p>Next up: live Azaan you can listen to from home, and video in Qaum. Further out, I want to help imams teach online and reach the people who want to learn from them.</p><p>Next Friday I’ll write about how Paigham calculates Salaah times, and why a masjid’s own Iqama time always wins over a calculated one.</p><p>💬 <strong>What do you think?</strong> How does news from your masjid reach you today? I’d love to hear how it works where you are.</p><p>If you’d like to try it, Paigham is free: <a href="https://paigham.app/download?utm_source=medium&amp;utm_medium=social&amp;utm_campaign=why-i-built">https://paigham.app/download?utm_source=medium&amp;utm_medium=social&amp;utm_campaign=why-i-built</a></p><p>JazakAllah khair for reading. 🤲</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e097fa2da4fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>