<?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 Bharadwaja on Medium]]></title>
        <description><![CDATA[Stories by Bharadwaja on Medium]]></description>
        <link>https://medium.com/@bharadwaja1557?source=rss-707eb93b5d7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NkGBOqD1SOVDUV_uSebruw.png</url>
            <title>Stories by Bharadwaja on Medium</title>
            <link>https://medium.com/@bharadwaja1557?source=rss-707eb93b5d7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:59:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharadwaja1557/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[The Hidden Homebrew Problem]]></title>
            <link>https://medium.com/@bharadwaja1557/the-hidden-homebrew-problem-c033c3617186?source=rss-707eb93b5d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c033c3617186</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[homebrew]]></category>
            <dc:creator><![CDATA[Bharadwaja]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 10:42:33 GMT</pubDate>
            <atom:updated>2026-03-26T10:44:02.308Z</atom:updated>
            <content:encoded><![CDATA[<p>I want to write this blog in a <strong>Q&amp;A style</strong>, because it’s my blog anyway<br>(just kidding — it’s easier to write that way, i guess).</p><p>So here we go…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZrwIBe9BmPTyPVkkykP5g.png" /><figcaption>brewed by <a href="https://medium.com/@bharadwaja1557">this-guy</a></figcaption></figure><h3>Question 1: The WHAT ?!</h3><p>I still remember the excitement of buying my shiny new Apple Silicon Mac.</p><p>Coming from a Windows background, everything felt like magic.</p><p>Apps were opening like they were files.<br>Files were opening like they were nothing.</p><p>No loading screens.<br>No lag.<br>No drama.</p><p>Just <strong>speed</strong>.</p><p>And honestly… I loved it (I mean, who doesn’t love speed?).</p><p>I have to admit — <strong>Apple absolutely cooked with Apple Silicon.</strong><br>The machine felt unreal.</p><p>Everything was super fast.</p><p>Or at least… it <strong>should have been</strong>.</p><p>A few weeks later, something felt <em>off</em>.<br>Builds were slower than expected.<br>Some packages behaved strangely.<br>And once in a while, things would fail for reasons that made no sense.</p><p>At first I ignored it.</p><p>Then curiosity kicked in.</p><p>One tiny command later, I realised something shocking:</p><p>My Apple Silicon Mac had been quietly running <strong>Intel software the entire time</strong>.</p><p>And the reason?</p><p><strong>Intel Homebrew.</strong></p><h3>Question 2: Huhh ??</h3><p>Homebrew installs to <strong>two completely different locations</strong>, depending on your CPU architecture.</p><p><strong>Intel Macs </strong>➪ /usr/local<br><strong>Apple Silicon Macs </strong>➪ /opt/homebrew</p><p>If your Homebrew installation lives in /usr/local, you&#39;re almost certainly using the <strong>Intel version</strong>.</p><p>Which means every package you install is compiled for <strong>x86_64</strong>, not <strong>ARM64</strong>.</p><p>Your shiny M-series processor is basically running software designed for a completely different CPU, just like mine :(</p><p>Poor thing.</p><h3>The 30-Second Check</h3><p>Before reading further, run this command:</p><pre>uname -m &amp;&amp; which brew &amp;&amp; brew --prefix</pre><p>Expected output on Apple Silicon:</p><pre>arm64<br>/opt/homebrew/bin/brew<br>/opt/homebrew</pre><p>If you instead see something like:</p><pre>x86_64<br>/usr/local/bin/brew<br>/usr/local</pre><p>Then congratulations…</p><p>Your terminal is running <strong>under Rosetta</strong>, emulating an Intel CPU.</p><p>In simpler words:</p><p>Your <strong>Apple Silicon Mac is pretending to be an Intel Mac.</strong></p><p>And you probably didn’t even realise it.</p><h3>Question 3: But Why ??</h3><p>This usually happens in one of these situations:</p><ul><li>Terminal was opened <strong>using Rosetta</strong></li><li>You followed an <strong>old Homebrew tutorial</strong></li><li>A <strong>script</strong> installed Homebrew automatically</li><li>You migrated from an <strong>Intel Mac</strong></li><li>You installed tools before checking your <strong>environment</strong></li></ul><p>And the scary part is that <strong>everything still works</strong>.</p><p>So most devs <strong>never notice</strong>.</p><p>Until something breaks months later.</p><p>Running Intel Homebrew on Apple Silicon causes subtle issues:</p><ul><li>slower performance</li><li>mixed ARM and x86 binaries</li><li>broken Python environments</li><li>problems with ML libraries (PyTorch, TensorFlow)</li><li>strange compile errors</li></ul><p>Sometimes things work.</p><p>Sometimes they mysteriously don’t.</p><p>And debugging it is painful.</p><h3>The Silent Performance Killer: Rosetta</h3><p>Apple created <strong>Rosetta 2</strong> to run Intel apps on Apple Silicon.</p><p>It’s honestly engineering magic.</p><p>But it also hides problems extremely well.</p><p>To check if your terminal is running <strong>Rosetta</strong>, Run:</p><pre>sysctl -n sysctl.proc_translated</pre><p>Output:</p><pre>1 → running under Rosetta<br>0 → native Apple Silicon</pre><p>If the command returns 1, it means your terminal itself is running through Rosetta.</p><p>This usually happens when <strong>Terminal </strong>was accidentally configured to launch in Intel mode.</p><p>To fix this:</p><ol><li>Open <strong>Finder</strong></li><li>Go to <strong>Applications → Utilities</strong></li><li>Right-click <strong>Terminal</strong></li><li>Click <strong>Get Info</strong></li><li>Look for the option <strong>“Open using Rosetta”</strong></li><li><strong>Make sure it is unchecked</strong></li></ol><p>Now close the terminal completely and open it again.</p><p>Run the check once more:</p><pre>sysctl -n sysctl.proc_translated</pre><p>You should see 1 now.</p><p>Which means your terminal is running <strong>natively on Apple Silicon</strong>.</p><h3>Question 4: How to Fix This ?</h3><p><strong>1. Uninstall Intel Homebrew</strong></p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)&quot;</pre><p><strong>2. Install Apple Silicon Homebrew</strong></p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>After installation, verify:</p><pre>which brew</pre><p>You should see:</p><pre>/opt/homebrew/bin/brew</pre><p><strong>3. Ensure Your Shell Uses the Correct PATH</strong></p><p>Even after installing Homebrew Git, macOS might still use the built-in Git.</p><p>Check:</p><pre>which -a git</pre><p>Example output:</p><pre>/opt/homebrew/bin/git<br>/usr/bin/git</pre><p>If Git still shows Apple’s version, clear the shell cache:</p><pre>hash -r</pre><p>Now verify again:</p><pre>git --version</pre><h3>Final Thoughts</h3><p>Apple Silicon Macs are incredibly powerful machines.</p><p>But small configuration mistakes can quietly push your system back into <strong>Intel emulation mode</strong>, defeating much of the performance advantage.</p><p>And the tricky part?</p><p>Nothing obviously breaks at first.</p><p>Everything installs.<br>Everything runs.<br>Everything seems normal.</p><p>Until one day… it isn’t.</p><p>So if you’re on an Apple Silicon Mac, it’s worth taking <strong>30 seconds</strong> to check:</p><pre>uname -m &amp;&amp; which brew &amp;&amp; brew --prefix</pre><p>If you see /usr/local anywhere in that output, your Mac might be living a secret Intel life ;)</p><p>Apple built one of the fastest developer machines ever made.</p><p>Just make sure your tools know it too.</p><p>Thanks for reading the blog and wish you Happy Coding :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c033c3617186" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My GATE Journey]]></title>
            <link>https://medium.com/@bharadwaja1557/my-gate-journey-83dd4eefca65?source=rss-707eb93b5d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/83dd4eefca65</guid>
            <category><![CDATA[gate-preparation]]></category>
            <category><![CDATA[student-life]]></category>
            <category><![CDATA[iit-kanpur]]></category>
            <category><![CDATA[overcoming-failure]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Bharadwaja]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 22:48:36 GMT</pubDate>
            <atom:updated>2025-12-02T10:05:28.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="study-desk" src="https://cdn-images-1.medium.com/max/735/1*t93xkHK4Sk6nto-ucbuxJA.jpeg" /></figure><p>My GATE journey is not some extraordinary story, it’s just pure stubbornness, a little curiosity, and a whole lot of unexpected twists. I wanted to share this part of my life because it remained one of the most meaningful chapters, and I promise it’ll be an enjoyable blog. I’ve divided it into arcs, because why shouldn’t life feel like an anime sometimes? 🙂</p><p>And here we go…</p><p><strong><em>1. The Awakening Arc </em></strong>🌞</p><p>It was a random morning in my 4th semester. The <em>Avengers</em> (thats our friends group) had bunked the Operating Systems class and were chilling in the hostel. Around 9:30 AM, I walked into another room to see what the others were doing.</p><p>Everything was normal, everyone doom-scrolling, wasting time, living the usual BTech life, except one guy (let’s call him <strong><em>Hawkeye</em></strong>). He was solving math problems from a giant book… a book roughly the size of my pillow. I saw him and then left without disturbing him. But at 12:30 PM when I went again to call them for lunch, Hawkeye was still in the same position doing the same problems. After lunch its nap-time, and guess what, hawkeye was doing the same freaking questions. IN THE MIDDLE OF SEMESTER!!!</p><p>The reason for my surprise is - we were the type who only open books one day before exams, and here was Hawkeye rewriting the rules. He told me he was preparing for something called “<strong>GATE” </strong>(little did i know that its going to be a wonderful part of my life).</p><p>I researched it and realized that maybe I could reignite my old dream of getting an IIT tag in my life. Yeah, like most JEE aspirants, I cleared JEE Mains but not JEE Advanced (no doubt it’s the second toughest exam in India). I gave up on the IIT dream and joined BTech through EAMCET. Out of curiosity, I decided to give GATE a try, and I started to prepare for it.</p><p><strong><em>2. The Training Arc </em></strong>⚔️</p><p>My faculty and seniors gave me some resources (RBR &amp; Applied GATE videos), and I started with my favourite subject, Computer Networks (Oh God, I love it!!). I had only 4 months, so I managed to cover DS, CN, and OS. Nothing great, but enough to take a shot.</p><p>I gave my first attempt in 3rd year. I went with Hawkeye to the exam centre. Hawkeye was very cool and calm. And me? I wasn’t nervous either because I treated it like a “let’s-see-what-happens” exam. So I decided to give it like any other semester exam. After coming out of the exam hall, I felt some positive-energy thing inside. And just like that, I got AIR 5413. Even I was shocked. I thought that I could do much better if I started from the beginning next year. And with that confidence in my mind, I decided to get into IIT in the next attempt <em>(spoiler: I did not)</em>.</p><p><strong><em>3. The Humbling Arc </em></strong>📉</p><p>In my final year, I wanted to take things seriously. I decided to take online coaching.</p><p>I have 2 problems with my brain. <br>1. I always make <em>my own</em> schedule<br>2. Good Multitasking? Not my cup of tea.</p><p>So I avoided live classes and went for recorded content. I found a couple of names and finally settled for ACE online coaching. I started to complete the syllabus and go to practice questions as soon as possible. Somewhere in the middle of my preparation, I felt too overconfident about my preparation strategy.</p><p>Then came my friend, another Avenger (let’s call him <strong><em>Dr. Strange)</em></strong>. He solved a problem in 2 minutes. Meanwhile, I was struggling with the same question for two days. He showed me how much I was lacking in practice and set my new standard. Thanks to Dr. Strange for grounding me back to reality. I didn’t complete the full syllabus, but I improved a lot. I completed all the subjects except COA.</p><p>Exam day came. To be honest, I was unsure, because I knew this was not my one-hundred-percent effort. I knew this was not my one-hundred-percent dedication, but what could I do now… so I went inside the exam hall anyway. After finishing the exam, I felt like, “It went good, but it could be better.” Eventually, I got AIR 2026. I was not happy, but also not sad either. It felt like something was off.</p><p>Everyone who knew me congratulated me, and one of my friends even said this “God is giving a small hint that your MTech will be finished by year 2026, so He gave you AIR 2026.” I liked his intent, but I wasn’t ready to settle.</p><p>Then came the hardest decision of my life. I asked my father whether I should join college or attempt GATE again. He simply asked <em>“What do YOU want? If you want to write again, write again. Don’t join with regret.”</em><strong> <br>THATS EXACTLY WHAT I WANTED TO HEAR!!</strong></p><p><strong><em>4. The Reset Arc </em></strong>🔁</p><p>With the drop year confirmed, I wanted good coaching, because without any guidance I would go off track. After some research and hearing tons of good reviews, Hawkeye and I joined <strong><em>GO Classes</em></strong> (one of the best decisions of my life). Deepak sir and Sachin sir were so good that I binge-watched lectures like a Netflix series. I can’t thank them enough. I will never forget you guys, thank you both.</p><p>I restarted from scratch and planned to finish the whole syllabus by November 30. I knew the basics, and I completed 4 subjects in 3 months. And then, my old enemy returned, “<em>overconfidence”</em>.</p><p>My overconfident brain cells calculated that I could finish everything by Oct 20 (which is very good actually). So I decided to take a “small break” for 1 week and get some good sleep (and play Minecraft 🎮). That 1 week became 2 weeks, 3 weeks, and kept going till 6 weeks. Forty days gone.</p><p>When reality hit again, I realised that if I didn’t restart now, it would be impossible to achieve my goal. So I began again. Slower than before, but steadier. However, I managed to complete most of the syllabus. I took the GO Classes Test Series and practiced decently. Not perfect, but good enough.</p><p>The AIMTs were great tests to attempt; they showed where my concepts were strong and where they were not. So I gave all the AIMTs. After every AIMT, Hawkeye and I used to have a talk and discuss our mistakes (and laugh at our own silly mistakes). At the end, my average of all AIMTs was around 56. It was not great, but I believe it’s not bad either. So with some last-moment revisions and the <em>Top Gun: Maverick</em> movie, I started to the exam centre with lots of hope.</p><p><strong><em>5. The Endgame Arc</em></strong> 🤞🏻</p><p>Finally, the day.</p><p>Hawkeye and I entered the exam centre knowing… <strong><em>This is the Endgame</em></strong>. There is no turning back now. We hoped for the best and entered the exam hall. I set my target marks to be not less than 70. But the first three questions were so difficult that I almost lost all confidence. So I instantly jumped to Question 20 and kept going. At the end, the same “difficult” questions felt very easy (thank God I solved them later). And my raw marks were 75.67, and the result was AIR 394 (yes, I’m one of the shift-1 victims 🙂).</p><p>But honestly?<br> The disappointment hit hard. Even after dropping a full year, I still hadn’t given my one-hundred-percent. But the outcome was good. I think this will be marked in my heart forever, even after getting a not-bad rank. Anyway, that was my last GATE attempt. GATE is not a destination; it’s just the beginning. There are many more goals ahead now. Thanks to all my friends and faculty who inspired me and helped me in this journey.</p><p>Today, I have joined <strong>IIT Kanpur - MTech CSE</strong>. And I’m excited for the new arc that’s beginning.</p><p>For anyone who is curious about my stats:<br>CS 2023 — AIR 5413<br>CS 2024 — AIR 2026<br>CS 2025 — AIR 394 ✨</p><p>Total Hours Studied : 1019 (in 3 years)<br>Average Hours/day : 3</p><p>If you want suggestions, guidance, or if you’re curious to know who <em>Hawkeye</em> and <em>Dr.Strange</em> are 😂, feel free to connect:</p><p><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/bharadwaja1557/">https://www.linkedin.com/in/bharadwaja1557/</a><br><strong>GateOverflow:</strong> <a href="https://gateoverflow.in/user/Bharadwaja1557">https://gateoverflow.in/user/Bharadwaja1557</a></p><p>Thank you so much for reading my journey.<br> I genuinely appreciate it.</p><p>Before ending, I’ll share what <em>Dr.Strange</em> once told me:<br><strong>“Don’t have a good day, have a great day.”</strong> 👋🏻✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83dd4eefca65" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>