<?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 Chandima Galahitiyawa on Medium]]></title>
        <description><![CDATA[Stories by Chandima Galahitiyawa on Medium]]></description>
        <link>https://medium.com/@chandima-galahitiyawa?source=rss-c2baffa8b801------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CTeUDEXTgwiulYItujOLRw.jpeg</url>
            <title>Stories by Chandima Galahitiyawa on Medium</title>
            <link>https://medium.com/@chandima-galahitiyawa?source=rss-c2baffa8b801------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:34:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandima-galahitiyawa/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[I Made Two Phones Talk to Each Other With Every Radio Turned Off]]></title>
            <link>https://medium.com/@chandima-galahitiyawa/i-made-two-phones-talk-to-each-other-with-every-radio-turned-off-e4cd036bfba0?source=rss-c2baffa8b801------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4cd036bfba0</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chandima Galahitiyawa]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 08:23:26 GMT</pubDate>
            <atom:updated>2026-08-26T08:23:26.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9SX6Uc7820RIschP0ptvEA.png" /></figure><p>It started as one of those thoughts you can’t shake.</p><p>We carry these phones stuffed with radios, cellular, Wi-Fi, Bluetooth, NFC, the works, and they’re always reaching out to some tower or router or cloud. And one night I wondered: if I switched all of that off, could two phones still say something to each other?</p><p>They both have a screen. They both have a camera. A screen can show things. A camera can see things. That’s technically a channel, right? One phone could show information, and the other could watch it.</p><p>So I tried to build a walkie-talkie where your voice travels as light, from one phone’s screen into the other phone’s camera, and nothing else. No network anywhere. It works in Airplane Mode. I spent about two weeks getting it to actually run between a Galaxy S26 Ultra and an iPhone 17 Pro, and the first time I heard my own voice come out the other phone with the internet completely off, I genuinely laughed out loud.</p><p>Here’s the story of how it works, and why it was so much more fun than it had any right to be.</p><h3>The whole idea in one breath</h3><p>You hold a button and talk. The phone records your voice, squeezes it down small, chops it into hundreds of tiny pieces, and turns each piece into a QR code. Then it just starts flashing those QR codes on the screen, one after another, over and over.</p><p>The other phone points its camera at that screen, reads the QR codes as they flash by, collects all the pieces, puts them back in order, and plays your voice out of its speaker.</p><p>That’s it. Sound goes in one end, becomes light in the middle, and comes out as sound on the other end. The two phones never touch the network once.</p><h3>Why you can’t just make “one big QR code”</h3><p>The obvious first instinct is: compress the audio, cram it all into a single giant QR code, done. That doesn’t work. A QR code can only hold a few kilobytes before it turns into an impossibly dense grid of tiny squares that no phone camera can actually read. Even a short voice clip is way too big.</p><p>So the audio has to be broken into small chunks, and now you’ve quietly signed up for a real networking problem, the same one the internet solves under the hood. Each little chunk needs to know who it belongs to, which message it’s part of, what its position is, and how many pieces there are in total. And it needs a little checksum so the receiver can tell if it got scrambled on the way in.</p><p>I packed all of that into a tight little binary header, about 15 bytes of bookkeeping wrapped around each chunk of audio. Compact on purpose, because every extra byte makes the QR code denser and harder to scan. So each QR code you see flickering on screen is really one self-describing packet: “Hi, I’m piece 47 of 400, from message 3, here’s my data, and here’s my checksum.”</p><h3>Cameras are worse at this than you’d think</h3><p>Here’s the part that humbled me. I assumed: show 400 QR codes, camera reads 400 QR codes. Nope. Not even close.</p><p>A phone camera misses frames constantly. It’s refocusing, the exposure shifts, your hand shakes a little, there’s glare on the screen, the timing between the two phones drifts. Sometimes it reads the same code five times in a row and then misses the next ten entirely.</p><p>The fix is almost stupidly simple: the sender doesn’t show each code once. It just loops the whole sequence forever. 1, 2, 3, all the way to 400, then straight back to 1, 2, 3 again. The receiver keeps a checklist. Already got piece 47? Ignore it. Still missing piece 88? Grab it next time it comes around. Missing pieces, duplicate pieces, pieces arriving out of order: all handled, because the receiver only cares about which pieces it still needs, not what order they show up in. And anything corrupted gets caught by its checksum and thrown away, so you never play a garbled mess.</p><p>It’s not elegant, but it’s the kind of not-elegant that just works.</p><h3>The part I’m actually proud of: the “Master QR”</h3><p>Looping raw pieces works, but it felt crude, like tracking 400 separate things with no structure. So I added a layer on top, and this is the bit that made the whole thing feel like a real protocol instead of a hack.</p><p>Instead of treating all the pieces as one long flat list, I group them, ten pieces to a group. And in front of each group, I flash a special little Master QR. The Master QR doesn’t carry any audio at all. It’s tiny, just a scrap of metadata that says: “The next group is pieces 40 through 49, there are 40 groups in total, and here’s a fingerprint of what this whole group should add up to.”</p><p>So the receiver’s job becomes calmer and more organized: see a Master QR, know exactly which group is coming, collect those ten pieces, check them against the group’s fingerprint, and if they match, lock that group in as verified and done. Then move to the next group. Build the message group by group instead of juggling hundreds of loose pieces.</p><p>And here’s the nice bit: if a group’s fingerprint doesn’t match, say a piece got quietly mangled, the receiver just throws that whole group away and waits for it to come around again on the next loop. The group heals itself. You get retransmission for free, scoped to just the ten pieces that went wrong instead of the entire message.</p><p>While building this I went digging and found out I’d wandered into a real research field with a name: Optical Camera Communication. People have done gorgeous, far more advanced versions of this. <a href="https://people.csail.mit.edu/nabeel/pixnet-mobicom10.pdf">MIT’s PixNet</a> turned an LCD and a camera into a multi-megabit link. <a href="https://dl.acm.org/doi/10.1145/2307636.2307645">COBRA</a> streamed color barcodes between phones. <a href="https://dl.acm.org/doi/10.1145/2639108.2639132">Strata</a> and <a href="https://dl.acm.org/doi/10.1145/2639108.2639135">RDCode</a> built layered, structured barcode schemes for exactly this reliability problem. And there’s a lovely open-source project called <a href="https://github.com/divan/txqr">txqr</a> that sends files through animated QR codes using fountain codes. Finding all of that was equal parts “oh, I’m not crazy” and “oh, I’m very late to this party.” My version is the deliberately low-tech one: plain black-and-white QR codes any phone can already read, with all the cleverness hiding in the protocol instead of the pixels.</p><h3>The audio detour</h3><p>I wanted the voice as tiny as possible, so quality goes out the window: mono, low sample rate, low bitrate. It sounds like a cheap phone call, which is perfect, because a 30-second message ends up around 60 kilobytes instead of megabytes.</p><p>I wanted to use Opus, the codec everyone reaches for at low bitrates. But I hit a wall: getting Opus to both record and play reliably on Android and iPhone turned out to be a mess. So I fell back to good old AAC, the boring, universal choice that just works on both phones without a fight. Sometimes the unsexy option is the right one. The phone’s own audio system does the decoding on playback, which is a big reason the whole thing runs on both platforms from a single codebase.</p><h3>Two weeks of “why isn’t this working”</h3><p>Most of the fun, and most of the swearing, was in the timing. Show the QR codes too fast and the camera can’t keep up. Too slow and a message takes forever. Make the QR codes bigger and denser to carry more data, and suddenly the camera can’t read them at all. Every dial you turn to make it faster makes it less reliable, and vice versa. There’s no single right setting either: the perfect speed is different for every pair of phones, every lighting condition, every distance.</p><p>So I built a little debug screen that shows the truth: how many QR codes were shown versus how many were actually read versus how many turned into usable pieces. Watching those three numbers diverge is oddly mesmerizing, and it’s the only honest way to tune the thing. The big lesson tattooed on my brain now: one QR code on the screen is absolutely not one packet received.</p><h3>Is it fast? No. Is it useful? Also kind of no.</h3><p>Let me be honest with you. This is slow. Really slow. The channel moves data at a crawl, so it’s not a live phone call. It’s more like sending a voice memo that takes a couple of minutes to trickle across. It’s store-and-forward, not real-time. And no, it doesn’t beat literally any radio at literally anything.</p><p>It has basically no commercial point, and I’m completely fine with that. I didn’t build it to sell it. I built it because the idea wouldn’t leave me alone, and I wanted to know if it was possible. It was. That was the whole reward.</p><h3>What I actually got out of it</h3><p>Somewhere in those two weeks, a silly toy quietly taught me the guts of how real networks work: packets, checksums, handling loss, deduplicating, reordering, retransmitting, building reliability on top of something unreliable. I solved the same problems the internet solves, except my “wire” was a pane of glass glowing at a lens. That reframing, the network is just light now, made a bunch of abstract computer-science ideas suddenly concrete and physical.</p><p>And there’s a version-two list already itching at me: use fountain codes so any set of pieces reconstructs the message, add a little acknowledgement code the receiver can flash back so the sender only resends the groups that failed, maybe color QR codes to move more data. But there’s no rush. Sometimes the right move is to just enjoy that the thing works.</p><p>If you want to poke at it, break it, or build your own version, it’s all open source: code, tests, and that debug screen included.</p><p>👉 <a href="https://github.com/ChandimaGalahitiyawa/audioqr">https://github.com/ChandimaGalahitiyawa/audioqr</a></p><p>Build the weird idea. Two weeks later you might be laughing at your own voice coming out of a phone that’s convinced it’s completely offline. Worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4cd036bfba0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Most Startup Ideas Fail Before They Even Begin]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@chandima-galahitiyawa/why-most-startup-ideas-fail-before-they-even-begin-675b83940017?source=rss-c2baffa8b801------2"><img src="https://cdn-images-1.medium.com/max/2600/0*DRD4IyShSf-VZj9F" width="4624"></a></p><p class="medium-feed-snippet">There&#x2019;s a strange thing that happens when you start talking about your startup idea.</p><p class="medium-feed-link"><a href="https://medium.com/@chandima-galahitiyawa/why-most-startup-ideas-fail-before-they-even-begin-675b83940017?source=rss-c2baffa8b801------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@chandima-galahitiyawa/why-most-startup-ideas-fail-before-they-even-begin-675b83940017?source=rss-c2baffa8b801------2</link>
            <guid isPermaLink="false">https://medium.com/p/675b83940017</guid>
            <category><![CDATA[lean-startup]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Chandima Galahitiyawa]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 12:04:41 GMT</pubDate>
            <atom:updated>2026-06-17T12:04:41.827Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why Every IT Startup Needs an]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@chandima-galahitiyawa/why-every-it-startup-needs-an-8d959735b3bb?source=rss-c2baffa8b801------2"><img src="https://cdn-images-1.medium.com/max/1000/1*EdXlnLdL4yqzIOfc2FrfYg.png" width="1000"></a></p><p class="medium-feed-snippet">Employee Value Proposition?</p><p class="medium-feed-link"><a href="https://medium.com/@chandima-galahitiyawa/why-every-it-startup-needs-an-8d959735b3bb?source=rss-c2baffa8b801------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@chandima-galahitiyawa/why-every-it-startup-needs-an-8d959735b3bb?source=rss-c2baffa8b801------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d959735b3bb</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <dc:creator><![CDATA[Chandima Galahitiyawa]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 02:16:24 GMT</pubDate>
            <atom:updated>2025-10-31T02:16:24.145Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Day I Learned That Slowing Down Wasn’t Laziness]]></title>
            <link>https://medium.com/word-garden/the-day-i-learned-that-slowing-down-wasnt-laziness-ba2afab61cae?source=rss-c2baffa8b801------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba2afab61cae</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[mindfulness]]></category>
            <category><![CDATA[wordgarden]]></category>
            <dc:creator><![CDATA[Chandima Galahitiyawa]]></dc:creator>
            <pubDate>Mon, 29 Sep 2025 17:30:15 GMT</pubDate>
            <atom:updated>2025-09-29T17:30:15.634Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>And why it changed how I live my life</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nPEnf-CesWQMN0E5" /></figure><p>I used to think productivity was the measure of my worth.<br>If I wasn’t doing something, I felt guilty. My to-do lists ruled my mornings, my evenings blurred into late-night scrolling, and rest felt like a luxury I hadn’t earned.</p><p>One afternoon, my body finally decided it had had enough. I sat down at my desk, stared at the screen, and… nothing. No words came. No thoughts. Just silence in my mind.</p><p>For the first time, instead of forcing myself through it, I walked outside. I sat under a tree, watching how the sunlight flickered through the leaves.</p><p>Something strange happened: the longer I sat, the clearer my thoughts became. By the time I returned to my desk, I had more clarity in 15 minutes of “doing nothing” than I’d had in weeks of pushing through.</p><p>That day I realized:</p><ul><li>Slowing down isn’t laziness, it’s fuel.</li><li>Rest isn’t wasted time, it’s renewal.</li><li>My value isn’t in how much I produce, it’s in how present I am when I create, love, and live.</li></ul><p>Now, when I feel the old guilt creeping back, I remind myself: nature never rushes, yet everything gets done.</p><p>Sometimes, the most productive thing you can do is pause.</p><p><em>Edited by </em><a href="https://medium.com/u/aea3e7cd5773"><em>Wandering Mind</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba2afab61cae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/word-garden/the-day-i-learned-that-slowing-down-wasnt-laziness-ba2afab61cae">The Day I Learned That Slowing Down Wasn’t Laziness</a> was originally published in <a href="https://medium.com/word-garden">Word Garden</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>