<?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 Samiksha Khadka on Medium]]></title>
        <description><![CDATA[Stories by Samiksha Khadka on Medium]]></description>
        <link>https://medium.com/@swabhimankhadka2001?source=rss-7d88f548d5fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F76WN_HPMizqUcJJ4xo3FQ.jpeg</url>
            <title>Stories by Samiksha Khadka on Medium</title>
            <link>https://medium.com/@swabhimankhadka2001?source=rss-7d88f548d5fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:00:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swabhimankhadka2001/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[We’ve Mastered the AI API Call, But Forgotten the User]]></title>
            <link>https://medium.com/@swabhimankhadka2001/weve-mastered-the-ai-api-call-but-forgotten-the-user-44b1a3b56bad?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b1a3b56bad</guid>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 05:55:25 GMT</pubDate>
            <atom:updated>2025-11-28T05:55:25.376Z</atom:updated>
            <content:encoded><![CDATA[<p>We have the engine; now, what kind of vehicles do we build?</p><p>Today, in my Equitech Future class, a discussion on Generative AI’s societal impact took a provocative turn. Our facilitator suggested that the core race, the frantic competition to build the largest and most powerful base models is reaching a point of saturation. The new frontier, the real battleground, is no longer in creating the intelligence, but in the art of its application.</p><p>This resonated deeply with me, as I’ve recently begun creating content that explores the fascinating tools proliferating across the internet. I am simultaneously shocked and overwhelmed by the sheer number of sites and startups I encounter that are built on top of these base AI models. It’s a digital gold rush, but one that demands a critical lens. It is both inspiring and deeply concerning.</p><p>What I see first is the commoditization of capability. The monumental achievement of a large language model is now a utility, available to any startup via a simple API call. The barrier to entry has not just been lowered; it has been demolished. This democratization is profound, but its immediate effect has been a landscape cluttered with what I’ve come to call ”feature-wrappers” , often superficial user interfaces built atop a foundational AI. They are solutions in search of a problem, adept at tackling minor inconveniences but rarely addressing a profound need.</p><p>This leads to a paradox: an <strong>innovation crisis in the midst of an innovation boom</strong>.</p><p>How many AI news summarizers does the world really need? How many slightly different chatbots for customer service, or near-identical AI-powered copywriting tools? The market is full of duplicates. We have a dozen startups all offering to revolutionize document editing by adding a nearly identical AI Assistant sidebar. Many of these ventures feel less like mission-driven companies and more like speculative tokens, placed on the board simply to say, “We are in AI.” The focus has shifted from deep problem-solving to shallow feature-building. We are obsessed with the what at the expense of the why and for whom.</p><p>Yet, to dismiss this entire ecosystem as noise would be a critical error. Buried within the avalanche of redundancy are genuine gems that hint at a more promising future.</p><p>The most compelling products are not merely “ChatGPT for X.” They are sophisticated systems where the AI is one instrument in a larger orchestra. Their magic lies not in the model itself, but in the orchestration layer, the unique data, the intuitive workflow, the deep, nuanced understanding of a specific domain.</p><p>Think of a tool that doesn’t just generate generic legal text but is fine-tuned on a specific firm’s case history and integrates seamlessly into a lawyer’s workflow. Or a design platform that uses AI not just to create an image, but to understand a brand’s entire visual ecosystem and enforce it across all assets. These aren’t feature-wrappers; they are building symphonies where we once only had a soloist.</p><p>The challenge for the next wave of builders , for us , is to move beyond the novelty. The almost saturation of model-building has reset the board. The base model is the raw, unformed marble. The art, the real work, is in the sculpting. It demands purpose, depth, and a ruthless focus on creating unique value.</p><p>The gold rush is over. Now, we build the civilization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*xrm-0zyltnkPxFpjYz3-MQ.jpeg" /><figcaption>image source : <a href="https://www.economist.com/">https://www.economist.com</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b1a3b56bad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eBPF and Security — Watching Over the Kernel]]></title>
            <link>https://medium.com/@swabhimankhadka2001/ebpf-and-security-watching-over-the-kernel-9e8c24e7dac5?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e8c24e7dac5</guid>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kernel]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 18:05:26 GMT</pubDate>
            <atom:updated>2025-09-19T18:05:26.504Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>eBPF and Security — Watching Over the Kernel</strong></h3><p>Security is one of those topics that everyone cares about, but most people think it’s reserved for experts sitting in dark rooms with 6 monitors and green code flying around. The truth is, Linux security is becoming more approachable than ever — thanks to eBPF.</p><p>In this post, I’ll show you how eBPF can help us monitor and secure our system, without needing to rebuild the kernel or write complicated kernel modules. We’ll cover both the <strong>theory</strong> (how it works) and a couple of <strong>practical demos</strong> you can try out right now.</p><h3>Why eBPF is a Game-Changer for Security</h3><p>Traditionally, securing Linux meant patching the kernel, writing custom modules, or relying on external monitoring tools that often added overhead. eBPF changes the game because:</p><ul><li><strong>It’s dynamic</strong>: You can load and unload programs into the kernel at runtime.</li><li><strong>It’s safe</strong>: The verifier ensures your code won’t crash the system.</li><li><strong>It’s powerful</strong>: You can attach probes to almost anything — syscalls, functions, network packets.</li></ul><p>This means we can detect suspicious behavior in real-time without slowing everything down.</p><p>Think of eBPF as installing invisible CCTV cameras inside your operating system. You can place them anywhere (file system, network, syscalls), and they’ll report back instantly.</p><h3>Example Use Cases in Security</h3><p>Here are a few ways eBPF is already being used for Linux security:</p><ul><li>Detecting brute-force login attempts.</li><li>Watching for unusual network activity.</li><li>Tracking which processes open sensitive files.</li><li>Monitoring system calls to flag suspicious behavior.</li></ul><p>Now let’s move from theory to something you can <em>see in action</em>.</p><h3>Demo 1: Tracing File Access with bpftrace</h3><p>Imagine we want to monitor every time someone (or some process) tries to open the /etc/passwd file — a file you definitely don’t want random programs messing with.</p><p>With bpftrace, this is just one line:</p><pre>sudo bpftrace -e &#39;tracepoint:syscalls:sys_enter_openat /str(args-&gt;filename) == &quot;/etc/passwd&quot;/ { printf(&quot;Process %d is opening /etc/passwd\n&quot;, pid); }&#39;</pre><p>What this does:</p><ul><li>Hooks into the openat syscall (used when opening files).</li><li>Checks if the filename is /etc/passwd.</li><li>Prints out the process ID if it matches.</li></ul><p>Now, if you or some process tries cat /etc/passwd, you’ll instantly see a log.</p><h3>Demo 2: Watching for Suspicious Network Connections</h3><p>We can also use bpftrace to log every outgoing connection on port 22 (SSH). This is handy if you suspect someone is trying to exfiltrate data or brute-force SSH.</p><p>sudo bpftrace -e ‘tracepoint:syscalls:sys_enter_connect /args-&gt;addrlen == 16/ { printf(“PID %d is connecting to something…\n”, pid); }’</p><p>This will print whenever a process tries to connect to a socket. You can refine this further to filter by port or destination.</p><h3>Beyond Demos: Real Security Tools</h3><p>Of course, in real-world systems you wouldn’t write one-liners every time. Entire tools have been built on top of eBPF for security, such as:</p><ul><li><strong>Falco</strong> → Detects abnormal application behavior.</li><li><strong>Tracee</strong> → Runtime security and forensics.</li><li><strong>Cilium Tetragon</strong> → Security observability for containers.</li></ul><p>These tools use the same concepts we just explored but at scale, with dashboards, alerts, and integrations.</p><h3>Wrapping Up</h3><p>eBPF gives us eyes and ears inside the kernel, without needing to modify or reboot it. For security, this is huge — it means we can detect and respond to threats in real-time, with minimal overhead.</p><p>In this post, we:</p><ul><li>Saw why eBPF is perfect for security.</li><li>Explored practical demos (file access and network monitoring).</li><li>Looked at real-world tools that build on eBPF.</li></ul><p>Next time you think about Linux security, remember: you don’t need six monitors and a hoodie — you just need a little eBPF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*IOORA2y8GtxjvtJvTwGHBA.png" /><figcaption>fig: eBPF Logo</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e8c24e7dac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Networking with eBPF: A New Superpower for the Internet]]></title>
            <link>https://medium.com/@swabhimankhadka2001/networking-with-ebpf-a-new-superpower-for-the-internet-5cc38018dbad?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cc38018dbad</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kernel-programming]]></category>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 17:56:01 GMT</pubDate>
            <atom:updated>2025-09-19T17:56:01.791Z</atom:updated>
            <content:encoded><![CDATA[<p>I was helping troubleshoot a network problem. The service was slow, connections were timing out, and everyone’s first instinct was: <em>“It must be the network.”</em></p><p>We fired up the usual tools — tcpdump, iptables, netstat — and while they gave us <em>some</em> clues, it felt like looking through a foggy window. We could see <em>something</em> happening, but not clearly enough to actually solve the problem.</p><p>That’s when I first heard about eBPF being used for networking. And honestly? It felt like discovering a secret superpower hiding inside Linux.</p><h3>The Old Way vs. The eBPF Way</h3><p>Traditionally, when you wanted to inspect or manipulate network traffic, you relied on static tools:</p><ul><li><strong>tcpdump</strong> could capture packets (but only what you told it to upfront).</li><li><strong>iptables</strong> could filter or block packets (but the rules got messy at scale).</li><li><strong>firewalls</strong> could enforce rules, but they were rigid and often slow under heavy load.</li></ul><p>These tools are great, but they’re like using a magnifying glass — you can only zoom in on one thing at a time.</p><p>eBPF, on the other hand, is like giving your kernel a brain upgrade. You can write tiny programs that decide <em>exactly</em> how to handle packets, in real time, right where they enter the system. No extra hops, no clunky layers.</p><h3>What Can You Do with It?</h3><p>Here’s where it gets exciting. With eBPF, you can:</p><ul><li><strong>Trace packets in real time<br></strong> Want to see which processes are receiving the most packets? Easy.</li><li><strong>Measure network latency<br></strong> Find out how long it takes for a packet to travel through your stack.</li><li><strong>Load balance traffic<br></strong> Distribute packets between servers dynamically, without traditional load balancers.</li><li><strong>Enhance security<br></strong> Block suspicious connections before they reach user space.</li></ul><p>This isn’t theory — this is how modern projects like <strong>Cilium</strong> power networking for Kubernetes clusters, handling millions of packets per second with fine-grained control.</p><h3>A Simple Example</h3><p>Let’s bring it back to earth with something you can try on your own system.</p><p>Here’s a one-liner with bpftrace to count the number of TCP connections being established:</p><pre>sudo bpftrace -e &#39;tracepoint:tcp:tcp_connect { @[comm] = count(); }&#39;</pre><p>Run this, and every time a program opens a new TCP connection, it’ll increment a counter. After a while, you’ll get a neat table showing which processes are making the most connections:</p><pre>curl 10<br>firefox 52<br>ssh 3</pre><p>Now imagine scaling this up. Instead of just counting, you could measure latency, block suspicious IPs, or reroute traffic — all inside the kernel, without slowing down the system.</p><h3>Why This Matters</h3><p>Think about it: the internet today runs on billions of connections flying back and forth every second. At this scale, even tiny inefficiencies add up.</p><ul><li>For <strong>cloud providers</strong>, eBPF means they can deliver faster, more secure networking without relying on bulky middle layers.</li><li>For <strong>security teams</strong>, it means catching malicious packets <em>before</em> they ever touch user applications.</li><li>For <strong>developers like us</strong>, it means having the ability to peek into networking like never before — without needing fancy, expensive tools.</li></ul><h3>Wrapping It Up</h3><p>Networking has always been one of the hardest things to debug and optimize. Traditional tools gave us a partial picture, but eBPF flips the script by letting us watch, measure, and even control packets in real time, directly in the kernel.</p><p>In other words: if traditional networking tools were like binoculars, eBPF is night-vision goggles with a built-in radar.</p><p>In the next blog, we’re going to explore another exciting side of eBPF: <strong>security</strong>. We’ll see how eBPF can act like a real-time security guard for your system, spotting suspicious activity the moment it happens.</p><figure><img alt="source: https://cilium.io/blog/2020/11/10/ebpf-future-of-networking/" src="https://cdn-images-1.medium.com/max/1004/1*TkkCG69FI-0_L45K6qVrgA.png" /><figcaption>source: <a href="https://cilium.io/blog/2020/11/10/ebpf-future-of-networking/">https://cilium.io/blog/2020/11/10/ebpf-future-of-networking/</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cc38018dbad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-World Use Cases of eBPF (And Why You Should Care)]]></title>
            <link>https://medium.com/@swabhimankhadka2001/real-world-use-cases-of-ebpf-and-why-you-should-care-bbd813ff5e81?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd813ff5e81</guid>
            <category><![CDATA[epbf]]></category>
            <category><![CDATA[bpftrace]]></category>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 19:40:07 GMT</pubDate>
            <atom:updated>2025-09-16T19:40:07.347Z</atom:updated>
            <content:encoded><![CDATA[<p>Up until now, we’ve been exploring eBPF step by step. First, we learned what it is. Then, we peeked under the hood to see how it works. In the last blog, we even ran our first hands-on experiments with bpftrace.</p><p>By now, you might be thinking:<br> <em>“Okay, cool, I can spy on syscalls and count file opens. But what does this mean in the real world? Why should anyone actually use eBPF?”</em></p><p>That’s exactly what we’re going to answer today. Let’s explore some of the <strong>real-world use cases of eBPF</strong> — the stuff that makes big tech companies rave about it, and the stuff you might find useful too.</p><h3>1. Observability: Seeing What’s Really Happening</h3><p>Imagine you’re running a web app that suddenly slows to a crawl. Your CPU usage looks fine, memory isn’t maxed out, and logs don’t tell you much. What now?</p><p>This is where eBPF shines. You can use it to trace system calls, measure latency, and figure out which function or process is causing bottlenecks — <strong>all in real time, without restarting your app or adding extra logging code.</strong></p><p>For example, one simple bpftrace script can show you which functions are eating up the most CPU cycles:</p><pre>sudo bpftrace -e &#39;profile:hz:99 { @[kstack] = count(); }&#39;</pre><p>This creates a stack trace profile — basically showing you where your CPU time is being spent. It’s like getting x-ray vision into your system.</p><p>No wonder companies like Netflix use eBPF to troubleshoot performance issues in production, on systems serving millions of users.</p><h3>2. Networking: High-Performance Packet Processing</h3><p>The original “BPF” was all about packets, and networking is still one of eBPF’s biggest superpowers.</p><p>Traditional firewalls and packet filters are fast, but rigid. With eBPF, you can write custom logic for how packets should be handled: filter them, redirect them, or even load balance traffic — all directly in the kernel, with almost zero overhead.</p><p>That’s why projects like <strong>Cilium</strong> use eBPF to provide secure, high-performance networking in Kubernetes clusters. Instead of relying on iptables (which can get messy at scale), eBPF gives them fine-grained control.</p><p>For you as a beginner, this could mean tracing network latency or packet drops on your local machine. For big companies, it means handling billions of packets per second without breaking a sweat.</p><h3>3. Security: Detecting Suspicious Behavior</h3><p>Here’s another powerful use: <strong>runtime security.</strong></p><p>With eBPF, you can watch what processes are doing in real time. For example, you could log every time a process tries to open /etc/passwd or make a network connection to a shady IP.</p><p>Tools like <strong>Falco</strong> (an open-source security project) are built on top of eBPF to detect abnormal behavior — like a container suddenly spawning a shell or accessing files it shouldn’t.</p><p>The beauty here is that eBPF can do this without slowing down your system or requiring invasive agents. It’s just watching kernel events quietly in the background.</p><h3>4. Cloud-Scale Monitoring</h3><p>One of the coolest things about eBPF is how lightweight it is. Because the programs run inside the kernel and only grab exactly the data you need, they scale really well.</p><p>That’s why companies like Cloudflare use eBPF to monitor thousands of servers without drowning in data. Instead of logging <em>everything</em> and analyzing it later, they can filter and process events right at the kernel level.</p><p>For us mere mortals, this means you can run tracing on your laptop without it turning into a jet engine. For big players, it means observability at cloud scale.</p><h3>5. Debugging Without Restarting</h3><p>Here’s one more everyday use case: <strong>debugging.</strong></p><p>Normally, if you want to debug a performance issue, you might recompile your program with debug logs, restart it, and hope you catch the bug. That’s not always possible in production.</p><p>With eBPF, you can attach to running processes <em>on the fly.</em> No restarts, no downtime. It’s like being able to add a debug print statement to a running program — without touching its code.</p><h3>Wrapping It All Up</h3><p>So far, we’ve seen eBPF in action for:</p><ul><li><strong>Observability</strong> (finding bottlenecks)</li><li><strong>Networking</strong> (handling packets smarter and faster)</li><li><strong>Security</strong> (detecting suspicious behavior)</li><li><strong>Cloud monitoring</strong> (scaling observability)</li><li><strong>Debugging</strong> (without restarts)</li></ul><p>The takeaway? eBPF isn’t just a cool toy for Linux geeks — it’s a practical, battle-tested technology that solves real problems in production systems every day.</p><p>And here’s the best part: you don’t need to be Netflix or Cloudflare to use it. Even on your personal machine, you can start applying eBPF to understand your system better, troubleshoot faster, and maybe even catch things you didn’t know were happening.</p><p>In the next post, we’re going to zoom in on one of these areas — <strong>networking</strong> — and see how eBPF takes it to a whole new level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsh_jZu2HEy2T3zvsbs5Uw.png" /><figcaption>source:<a href="https://www.groundcover.com/ebpf/ebpf-observability">https://www.groundcover.com/ebpf/ebpf-observability</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd813ff5e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Hands-On with eBPF (Using bpftrace)]]></title>
            <link>https://medium.com/@swabhimankhadka2001/my-first-hands-on-with-ebpf-using-bpftrace-59a4280311c7?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/59a4280311c7</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[bpftrace]]></category>
            <category><![CDATA[kernel]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 19:33:03 GMT</pubDate>
            <atom:updated>2025-09-16T19:33:03.935Z</atom:updated>
            <content:encoded><![CDATA[<p>In the last two blogs, we talked about what eBPF is and how it works under the hood. That’s all cool in theory, but let’s be honest: theory only gets you so far. The real fun begins when you actually try it out on your own machine.</p><p>That’s exactly what we’re going to do today. No complicated setup, no thousand-line programs — just a few small experiments with a tool called <strong>bpftrace</strong>.</p><h3>What is bpftrace?</h3><p>Think of bpftrace as your “hello world” tool for eBPF. It gives you a simple scripting language that you can use to trace events inside the kernel.</p><p>Instead of writing C code, compiling, and dealing with all that low-level stuff, bpftrace lets you write one-liners. You type a short command, and suddenly you’re seeing live data from the kernel.</p><p>For a beginner, this is the easiest way to dip your toes into eBPF.</p><h3>Step 1: Installing bpftrace</h3><p>If you’re on a modern Linux distribution (like Ubuntu, Fedora, Arch), chances are you can install it directly:</p><pre>sudo apt install bpftrace # Ubuntu/Debian</pre><pre>sudo dnf install bpftrace # Fedora</pre><p>If you’re using another distro, check your package manager — most of them have it available.</p><p>Pro tip: you’ll need root privileges (that’s why we use sudo) because we’re asking the kernel for some pretty deep insights.</p><h3>Step 2: Your first trace</h3><p>Let’s start with something fun. Try this command:</p><p>sudo bpftrace -e ‘tracepoint:syscalls:sys_enter_execve { printf(“Program executed: %s\n”, str(args-&gt;filename)); }’</p><p>What this does:</p><ul><li>Attaches to the execve syscall (that’s the one the system uses when you run a program).</li><li>Every time a process starts, it prints the name of the program.</li></ul><p>Now, open another terminal and start running random commands: ls, pwd, nano, whatever. You’ll see them show up instantly in your bpftrace output.</p><p>It feels like magic, right? Suddenly you’re watching your operating system’s heartbeat in real time.</p><h3>Step 3: Counting syscalls</h3><p>Another fun one. Let’s count how many times processes call openat (that’s basically when they open files):</p><pre>sudo bpftrace -e &#39;tracepoint:syscalls:sys_enter_openat { @[comm] = count(); }&#39;</pre><p>This one doesn’t just print text — it keeps a running counter grouped by process name (comm means command).</p><p>When you exit with Ctrl+C, you’ll see a summary table like this:</p><pre>bash 5<br>vim 2<br>firefox 37</pre><p>So now you know which processes have been opening files the most. Pretty cool, right?</p><h3>Step 4: Measuring latency</h3><p>What if you want to see how long certain syscalls take? Easy:</p><pre>sudo bpftrace -e &#39;tracepoint:syscalls:sys_enter_execve { @start[tid] = nsecs; }<br>tracepoint:syscalls:sys_exit_execve /@start[tid]/ {<br>@latency = hist((nsecs - @start[tid]) / 1000); delete(@start[tid]); }&#39;</pre><p>This one looks scary, but all it does is measure how long program executions take and then show you a histogram. You get a real sense of performance overhead in your system.</p><h3>Why this matters</h3><p>Playing with bpftrace like this gives you two big wins:</p><ol><li>You actually <em>see</em> what your computer is doing behind the scenes.</li><li>You start to understand how eBPF attaches to different events (like syscalls, functions, or network packets).</li></ol><p>It’s not about memorizing commands — it’s about building intuition. Once you see it in action, all the theory from the last two blogs starts clicking into place.</p><h3>Wrapping up</h3><p>Today we ran our first eBPF programs using bpftrace — and we didn’t need to write a single line of C. We traced programs as they executed, counted file opens, and even measured latency.</p><p>In the next blog, we’ll move beyond toy examples and explore <strong>real-world use cases</strong>: how companies actually use eBPF for monitoring, troubleshooting, and performance tuning.</p><p>But for now, take a moment to play with bpftrace on your machine. Try tracing different syscalls, or counting events you’re curious about. It’s one of those things where you learn best by just experimenting.</p><figure><img alt="bpftrace github" src="https://cdn-images-1.medium.com/max/739/1*2H9QqoVNOgkhu4D-Kz5TwQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59a4280311c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How eBPF Works Under the Hood (Without the Scary Jargon)]]></title>
            <link>https://medium.com/@swabhimankhadka2001/how-ebpf-works-under-the-hood-without-the-scary-jargon-b94cb8cb0b43?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b94cb8cb0b43</guid>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[sandbox]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 20:03:31 GMT</pubDate>
            <atom:updated>2025-09-15T20:03:31.496Z</atom:updated>
            <content:encoded><![CDATA[<p>In the first blog, we talked about what eBPF is and why it matters. We kept things high-level: eBPF is like a safe little sandbox inside the Linux kernel where you can run your own code.</p><p>But if you’re anything like me, the moment you hear “kernel” or “bytecode,” your brain might start screaming: <em>This is too advanced!</em></p><p>Don’t worry. In this post, I’m going to explain how eBPF actually works — step by step — in a way that makes sense even if you’ve only got basic programming and OS knowledge.</p><h3>Step 1: You write a tiny program</h3><p>An eBPF program usually starts as C code. Yes, just plain C — nothing crazy. For example, you might write a program that says:</p><ul><li>“Every time a process executes a new program, print its name.”</li><li>Or “Count how many packets are received on this network interface.”</li></ul><p>So far, this is like writing a small script. Nothing unusual.</p><h3>Step 2: Your program gets compiled to bytecode</h3><p>Here’s where it gets interesting. Instead of running your C code directly, it gets compiled into <strong>eBPF bytecode</strong>.</p><p>Think of bytecode like the middle language — not human-friendly like C, but not as raw as machine instructions either. It’s a set of instructions that the kernel understands.</p><p>If you’ve ever worked with Java or Python, it’s a bit like how your code gets compiled into something the virtual machine can run. Same idea here.</p><h3>Step 3: The kernel says, “Hold up. Let me check that first.”</h3><p>This is my favorite part. Before your program actually runs in the kernel, it has to pass through the <strong>verifier</strong>.</p><p>The verifier is basically a security guard at the door. It inspects your program and asks:</p><ul><li>Does it run forever (infinite loops)?</li><li>Does it try to access memory it shouldn’t?</li><li>Is it going to crash the system?</li></ul><p>If the answer to any of those is “yes,” your program gets rejected. No exceptions.</p><p>This is why eBPF is safe compared to traditional kernel modules. One buggy kernel module can take down the entire system, but eBPF programs are checked strictly before they’re allowed in.</p><h3>Step 4: The program gets attached to an event</h3><p>Once the verifier gives a thumbs up, your eBPF program doesn’t just run randomly. It needs an <strong>event</strong> to attach to.</p><p>Events can be things like:</p><ul><li>A system call (e.g., when a process opens a file).</li><li>A network packet arriving.</li><li>A function inside the kernel being called.</li></ul><p>So if you wrote a program to log every time a process runs, you’d attach it to the execve syscall. From that moment on, every time a program runs on your machine, your little eBPF program runs too.</p><h3>Step 5: Results flow back to user space</h3><p>Finally, whatever your program does — whether it’s counting, printing, or filtering — the results come back to <strong>user space</strong> (the normal part of your system where applications run).</p><p>This means you can see the data with tools like bpftrace, or feed it into monitoring dashboards, or even trigger alerts.</p><h3>A simple analogy</h3><p>Let’s make this less abstract. Imagine you’re in an airport.</p><ol><li><strong>Writing your eBPF program</strong> = packing your luggage.</li><li><strong>Compiling to bytecode</strong> = putting it in a standard-sized suitcase.</li><li><strong>Verifier</strong> = airport security scanning your bag. If you have a knife (infinite loop) or explosives (invalid memory access), they throw it out.</li><li><strong>Attaching to an event</strong> = boarding your flight. You can’t just wander around the runway — you have to get on a specific plane (system call, packet, function).</li><li><strong>Results</strong> = you arrive at your destination, and your friends (user space programs) get what you brought.</li></ol><h3>Wrapping up</h3><p>So, that’s the lifecycle of an eBPF program:</p><ol><li>Write code.</li><li>Compile to bytecode.</li><li>Kernel verifies it.</li><li>Attach it to an event.</li><li>Get results back.</li></ol><p>Nothing magical, nothing impossible — just a clever way of safely running tiny bits of code inside the kernel.</p><p>In the next post, we’ll actually run some simple eBPF programs using <strong>bpftrace</strong> so you can see all of this in action. Spoiler: it’s going to feel like peeking behind the curtain of your operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9Outa7HTdtH7LU_uVCmUQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b94cb8cb0b43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding eBPF: A Beginner’s Guide]]></title>
            <link>https://medium.com/@swabhimankhadka2001/understanding-ebpf-a-beginners-guide-8d191b35f2ec?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d191b35f2ec</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ebpf]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 19:29:40 GMT</pubDate>
            <atom:updated>2025-09-15T19:30:38.427Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve been following the world of Linux, networking, or system monitoring, you’ve probably come across the term <strong>eBPF</strong>. At first glance, it might sound like one of those buzzwords that only hardcore kernel hackers care about. But the truth is, eBPF is one of the most exciting and practical technologies to come out of Linux in the past decade — and you don’t need to be a kernel wizard to understand the basics.</p><p>In this post, I’ll walk you through what eBPF actually is, why it matters, and how you (even as a beginner with basic programming and OS knowledge) can start wrapping your head around it.</p><h3>So, what is eBPF?</h3><p>eBPF stands for <strong>extended Berkeley Packet Filter</strong>. Originally, BPF was created back in the ’90s as a way to filter network packets efficiently — basically telling the system, “Hey, I only care about packets that match these rules.”</p><p>But Linux developers later extended this idea into something much bigger. Instead of just filtering packets, <strong>eBPF lets you run small, safe programs inside the Linux kernel</strong> itself.</p><p>That means you can customize the behavior of the kernel — without actually modifying kernel source code or loading risky kernel modules. Think of it like a tiny, secure sandbox inside the kernel where you can drop in your own logic.</p><h3>Why should you care?</h3><p>Here’s why eBPF is such a big deal:</p><ul><li><strong>Performance monitoring made easy</strong>: With eBPF, you can trace what’s happening inside your system in real-time. Which process is hogging CPU? What’s slowing down your app? eBPF can tell you.</li><li><strong>Stronger security</strong>: You can use eBPF programs to detect suspicious activity (like a process trying to read sensitive files) and take action instantly.</li><li><strong>Smarter networking</strong>: Modern load balancers, firewalls, and service meshes are powered by eBPF because it can process packets super fast and with more flexibility than traditional tools.</li><li><strong>Cloud-scale observability</strong>: Companies like Netflix, Facebook, and Google rely on eBPF to monitor and optimize systems running thousands of servers.</li></ul><h3>But… isn’t kernel programming dangerous?</h3><p>Normally, yes. Writing kernel modules is risky — one bug and you could crash the whole machine.</p><p>That’s why eBPF is different: before your program runs, the kernel runs a <strong>verifier</strong>. The verifier checks your code for safety:</p><ul><li>No infinite loops</li><li>No unsafe memory access</li><li>No messing around with arbitrary kernel internals</li></ul><p>Only if your program passes these checks does the kernel allow it to run. That’s why eBPF is considered safe compared to traditional kernel hacking.</p><h3>A simple way to imagine eBPF</h3><p>Think of your operating system kernel as a car engine. Normally, if you wanted to tweak how the engine works, you’d need to tear it apart — risky, messy, and potentially fatal to the car.</p><p>eBPF is like plugging in a safe, tiny chip that can influence how the engine behaves: measure fuel consumption, adjust how air flows, or monitor for unusual sounds — all without ripping the engine apart.</p><h3>How do people use it today?</h3><p>Here are some real-world examples of eBPF in action:</p><ul><li><strong>Monitoring</strong>: Tools like bcc and bpftrace let you write eBPF scripts to track system calls, latency, and performance bottlenecks.</li><li><strong>Security</strong>: eBPF can enforce runtime security policies (like blocking processes from opening sensitive files).</li><li><strong>Networking</strong>: Projects like <strong>Cilium</strong> use eBPF to build high-performance networking for Kubernetes clusters.</li></ul><h3>Where can you start?</h3><p>If you’re curious to get your hands dirty:</p><ol><li>Make sure you’re on a recent Linux kernel (most modern distros support eBPF).</li><li>Install <strong>bpftrace</strong> (a high-level tracing language for eBPF).</li><li>Try running a simple command like:</li></ol><pre>sudo bpftrace -e &#39;tracepoint:syscalls:sys_enter_execve { printf(&quot;Program executed: %s\n&quot;, str(args-&gt;filename)); }</pre><p>This tiny program prints out every time a process on your system executes another program. It’s just scratching the surface, but it shows how powerful eBPF can be.</p><h3>Wrapping up</h3><p>eBPF is more than just a new Linux feature — it’s a paradigm shift in how we observe, secure, and control systems. Even if you’re just starting out with programming or operating systems, understanding eBPF opens up a whole new layer of how computers actually run.</p><p>The best part? You don’t need to be a kernel developer to benefit from it. With the growing ecosystem of tools around eBPF, you can start exploring today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*DtO_BMERGzz7CHCbL2JkLw.png" /><figcaption>eBPF Logo</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d191b35f2ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If SEO Deserves This Much Love, So Does Accessibility]]></title>
            <link>https://medium.com/@swabhimankhadka2001/if-seo-deserves-this-much-love-so-does-accessibility-c52c99acf620?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c52c99acf620</guid>
            <category><![CDATA[digital-accessibility]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[disabled-people]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 18:31:21 GMT</pubDate>
            <atom:updated>2025-06-03T18:46:52.690Z</atom:updated>
            <content:encoded><![CDATA[<p>The web was built with one goal in mind: to be accessible for <em>everyone</em>. But somehow, we ended up optimizing more for machines (SEO anyone?) than for real people — especially those who navigate the world differently.</p><p>Let me share a small story.<br> Imagine a book sitting on a 6-foot-high shelf. A person who is 3.5 feet tall might need a custom ladder — something thoughtfully designed just for them. Someone who is 5.5 feet tall? They might only need a small stool lying around in a corner of the house.</p><p>Now, ideally, we want to design our products so that <em>everyone</em>, regardless of their height — or ability — can reach that book. But even if we aren’t yet able to build that custom ladder, isn’t it worth pulling out that stool? Because sometimes, small changes — like adding <em>alt text</em>, enabling proper <em>element separation</em>, or making sure labels are <em>screen reader-friendly</em> — can make a world of difference.</p><p>Here’s a real-world example: on platforms like eSewa, screen readers often face challenges. When a user enables <strong>TalkBack</strong> (Android) or <strong>VoiceOver</strong> (iOS) — assistive technologies that read aloud on-screen elements — and taps on a specific item like “electricity,” the system should read only that element. However, because multiple elements are grouped into one block, tapping on “electricity” triggers the screen reader to read the entire utility and bill payments section instead of just the word “electricity.” This makes navigation confusing and inefficient. That’s not just a technical oversight — it’s a missed human connection.</p><p>According to the <strong>National Federation of the Disabled — Nepal (NFDN)</strong>, web products should follow the <strong>Web Content Accessibility Guidelines (WCAG)</strong>. Aim for <strong>Level AA compliance</strong> as a starting point — and <strong>AAA</strong> if you really care. These standards talk about everything from color contrast and keyboard navigation to ensuring screen reader compatibility. Their Web Accessibility Guide provides practical checklists and examples tailored for our context.</p><p>From a business point of view, accessible design isn’t just a moral win — it’s a market win. You’re serving a larger, often overlooked user base. It’s not about extra work — it’s about inclusive thinking.</p><p>Let’s not wait until we have the perfect ladder. Let’s start by reaching for that stool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6Cpuaf01kxN_FqaDDb_QA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c52c99acf620" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ctrl + z for machine : The Art of Machine Unlearning]]></title>
            <link>https://medium.com/@swabhimankhadka2001/ctrl-z-for-machine-the-art-of-machine-unlearning-583975418c2e?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/583975418c2e</guid>
            <category><![CDATA[artifical-intellegence]]></category>
            <category><![CDATA[ai-ethics]]></category>
            <category><![CDATA[ai-safety]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[machine-unlearning]]></category>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 17:36:12 GMT</pubDate>
            <atom:updated>2025-06-01T17:36:12.849Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Ctrl + z for machine : The Art of Machine Unlearning</strong></h3><p>Picture this: you’ve been using a music streaming app for years, and it’s got you pegged. It knows you love indie rock, can’t resist a good jazz playlist, and secretly binges 80s pop on rainy days. But then you decide to quit the app and delete your account, expecting all your musical preferences to vanish. You’d think that’s the end of it, right? Not quite. The app’s AI might still “remember” your tastes, subtly shaping recommendations for other users based on what it learned about you. Erasing your data completely isn’t just about deleting a file — it’s about ensuring that every trace of it is gone forever, with no hidden remnants lingering in the system. That’s where machine unlearning comes in, a fascinating new area of tech that teaches AI to forget specific information, as if it never knew it in the first place.</p><p>Why should you care? Well, in a world where privacy matters more than ever — think about laws like Europe’s GDPR, which gives you the “right to be forgotten” — machine unlearning is a big deal. It’s not just about protecting your personal info; it’s also about making AI fairer and safer by removing harmful or biased data. Whether you’re a curious student or just someone who uses apps daily, understanding machine unlearning can help you see how tech companies handle your data behind the scenes. Let’s dive into this topic.</p><h3>Hmm Let’s start with machine Learning?</h3><p>Machine learning is a method that enables systems to make decisions by predicting outcomes from data. A programmer creates an initial model, trains it on a designated dataset, and iteratively refines its parameters based on the accuracy of its predictions, ultimately producing a robust and optimized model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/0*QosTJwoic-Zku6-O" /></figure><p>Fig : Machine Learning (https://arxiv.org/html/2411.11315v1)</p><h3>What is Machine Unlearning, Anyway?</h3><p>At its core, machine unlearning is about teaching an AI to erase the influence of specific data like your music preferences or photos without starting from scratch. When you delete something from an app, the data might disappear from the database, but the AI model that learned from it doesn’t automatically forget. It’s like how you might still hum a song you haven’t heard in years because it’s stuck in your head. Machine unlearning makes sure the AI acts as if it never encountered that data, which is crucial for privacy and trust.</p><p>This is a game-changer because retraining an AI from the ground up is like rebuilding a house every time you want to change the curtains: slow and expensive.</p><h3>Why It Matters</h3><ul><li><strong>Privacy</strong>: Laws like GDPR mean companies must delete your data if you ask. Unlearning ensures the AI doesn’t hold onto traces of it.</li><li><strong>Fairness</strong>: If an AI learns from biased data (say, unfair hiring patterns), unlearning can help remove those biases.</li><li><strong>Safety</strong>: Bad actors might sneak harmful data into AI systems. Unlearning can kick that data out, keeping the system secure.</li></ul><h3>How Does Machine Unlearning Work?</h3><p>Imagine an AI model as a giant recipe book, with each piece of data as an ingredient. Unlearning is like removing one ingredient without rewriting the whole book. Here’s a simplified look at the process:</p><ol><li><strong>Spot the Data to Forget</strong>: A user or system flags data to remove, like your old playlists or a biased dataset entry.</li><li><strong>Tweak the Model</strong>: Use special algorithms to adjust the AI so it no longer relies on that data.</li><li><strong>Check the Results</strong>: Test the AI to make sure it’s forgotten the data, often by seeing if it can still “recall” it in sneaky ways.</li></ol><p>One cool method is the SISA framework (Sharded, Isolated, Sliced, Aggregated). It’s like dividing the recipe book into smaller chapters:</p><ul><li>Split the data into separate chunks (shards).</li><li>Train mini-models on each chunk.</li><li>Combine their predictions for the final output.</li><li>To forget something, you only update the chunk it’s in, not the whole book.</li></ul><p>This saves time and energy, kind of like updating just one page of a notebook instead of rewriting it all.</p><h3>A Peek Under the Hood (For the Tech-Curious)</h3><p>For those ready to dig deeper, let’s get technical. Machine unlearning often involves two approaches: <em>exact</em> and <em>approximate</em> unlearning. Exact unlearning ensures the AI is identical to one trained without the forgotten data, while approximate unlearning is faster but might leave faint traces, like a smudge on a whiteboard.</p><p>Here’s a simplified pseudocode for the SISA approach:</p><pre>for shard in data_shards:<br>   model = init_model()<br>   for slice_i in range(0,len(shard)):<br>       for slice_j in range(0,slice_i+1):<br>         data_slice_i += shard[slice_j]<br>       model.train(data_slice_i)<br>   shard_models.append(model)<br><br># Aggregation for inference<br>def predict(x):<br>   return aggregate([model.predict(x) for model in shard_models])</pre><h3>The Machine Unlearning Framework</h3><p>The machine unlearning (MU) framework, as described in recent studies, provides an efficient mechanism for removing user data from machine learning models while maintaining performance. It consists of two primary modules: a learning module that trains the model on a dataset and an unlearning module that activates when a user requests data removal. To enhance efficiency, the dataset, with ( N ) data points, is divided into ( S ) shards, each containing ( D = N/S ) points, and each shard is further split into ( R ) slices. When a user requests their data be forgotten, the service provider identifies the relevant slice and retrains it, achieving a best-case speed-up of up to ( (R + 1)/2 ) times compared to non-sliced retraining. The number of training epochs with slicing is ( e = e’/R ), where ( e’ ) is the epochs without slicing, and each slice is trained for ( e/R ) epochs. While this slicing technique incurs minor storage overhead for saving parameter states, it significantly accelerates unlearning without notable drawbacks, making it a robust solution for privacy-focused machine learning applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QCX5XLlduHzEsqSP" /></figure><p>Fig : General MU Framework (https://onlinelibrary.wiley.com/doi/full/10.1002/eng2.13081)</p><h3>The Math Behind It (Don’t Panic!)</h3><p>You don’t need to be a math wizard to get this, but a little math helps explain why unlearning is so cool. Let’s break it down simply.</p><h3>Exact Unlearning &amp; Approximate Unlearning</h3><p>Exact unlearning is a process in machine learning that ensures a model completely forgets specific data, as if it was never trained on it.</p><p>Approximate unlearning,focuses on efficiently minimizing the influence of target data points. It aims to minimize the influence of unlearned data to an acceptable level while achieving an efficient unlearning process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*zDOYx4uXKWU5jT9M" /></figure><p>Fig : Approximate and Exact Machine Unlearning (<a href="https://arxiv.org/html/2411.11315v1">https://arxiv.org/html/2411.11315v1</a>)</p><p>A typical machine learning pipeline consists of three primary stages, i.e., training, inference, and unlearning. First, the initial model W∗ is trained on the initial dataset 𝒟i⁢n⁢i⁢t, and the output is used in the inference stage; afterward, once a request to delete the data 𝒟m is received, the updated model Wu can be obtained through the unlearning stage, when the data set becomes 𝒟∖𝒟m. The process pointed by the red arrow is to apply the updated model Wu directly to the inference stage, i.e., approximate unlearning; the process pointed by the green arrow is to start retraining the initial model W∗ on the new data set 𝒟∖𝒟m from scratch, i.e., exact unlearning</p><h3>Why Machine Unlearning is Awesome (and Tricky)</h3><p>Machine unlearning has some amazing uses:</p><ul><li><strong>Protecting You</strong>: It helps companies follow privacy laws by erasing your data from their AI systems.</li><li><strong>Fixing Mistakes</strong>: Got biased data in your AI? Unlearning can remove it, making decisions fairer.</li><li><strong>Stopping Hackers</strong>: If someone sneaks bad data into an AI, unlearning can boot it out.</li><li><strong>Saving Creativity</strong>: Generative AIs (like those making art) can forget copyrighted stuff, avoiding legal drama.</li></ul><p>But it’s not all smooth sailing. Here are some hurdles:</p><ul><li><strong>It’s Resource-Hungry</strong>: Methods like SISA need extra storage for mini-models, which can get pricey.</li><li><strong>Big AIs are Tough</strong>: Unlearning in huge models (like ChatGPT) is like editing a million-page book.</li><li><strong>Forgetting Completely</strong>: Some methods leave tiny traces of data, which could be a privacy risk.</li><li><strong>Proving It Worked</strong>: How do you know the AI really forgot?</li></ul><h3>What’s Next for Machine Unlearning?</h3><p>This field is buzzing with potential. Researchers are working on:</p><ul><li><strong>Federated Unlearning</strong>: Federated Learning (FL) is a machine learning approach where multiple devices (like phones or computers) collaboratively train a shared model without sharing their raw data. Instead of sending data to a central server, each device trains a local model on its own data and only shares model updates (like weights or gradients) with a central server. The server aggregates these updates to improve the global model, which is then sent back to the devices. This keeps data private, reduces central storage needs, and enables training on decentralized data. FL is widely used in applications like personalized AI on smartphones, healthcare, and IoT, but it faces challenges like communication costs, data heterogeneity, and privacy concerns.</li><li><strong>Better Tests</strong>: How do you prove an AI forgot your data? The WMDP benchmark tests if an AI still “knows” risky info (e.g., dangerous tech) after unlearning, ensuring it acts like it never learned it [1]. Think of it as a quiz to catch lingering memories. This builds trust, ensuring companies can’t just claim they deleted your data — you’ll have proof.</li><li><strong>Ethics First</strong>: Machine unlearning isn’t just about tech — it’s about doing the right thing. As AI plays a bigger role in our lives, people want to know their data is handled responsibly. Ethics-first approaches are about creating rules and practices to make unlearning transparent, fair, and trustworthy. Transparency is critical, with companies documenting processes for audits, akin to “showing your work.” Privacy protection leverages techniques like differential privacy to erase individual data traces, while bias mitigation employs fairness metrics to prevent models from reinforcing harmful patterns. Verification protocols, such as third-party audits and benchmarks like WMDP, confirm data removal. Stakeholder inclusion ensures policies reflect diverse perspectives, not just corporate interests, and regulatory alignment guarantees compliance with laws like GDPR, embedding legal accountability into technical processes. Together, these principles build trust and robustness in AI systems.</li></ul><h3>Wrapping Up</h3><p>Machine unlearning is like giving AI a “forget” button, and it’s changing how we think about privacy, fairness, and safety in tech. For beginners, it’s a reminder that your data matters, and there’s tech out there fighting to protect it. For tech enthusiasts, it’s a playground of algorithms, math, and real-world impact. So, next time you delete an account, ask yourself: <em>Is the AI really forgetting me?</em> And if you’re inspired, maybe you’ll be the one to help make unlearning even better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=583975418c2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Become an Ubuntu Member]]></title>
            <link>https://medium.com/@swabhimankhadka2001/how-to-become-an-ubuntu-member-8a7dee5c333c?source=rss-7d88f548d5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a7dee5c333c</guid>
            <dc:creator><![CDATA[Samiksha Khadka]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 18:26:58 GMT</pubDate>
            <atom:updated>2025-03-22T18:58:47.624Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Become an Ubuntu Member</h3><p>Hmm, do I need to answer about why to become an Ubuntu community member? Or you can simply look from <a href="https://ubuntu.com/community/membership">the official Ubuntu membership page</a>.</p><p>If you want to check the application process, head over to <a href="https://ubuntu.com/community/membership/application">the application guide</a> as I wanna make this blog short and keep it very technical.</p><p>Basically, you’ll have to create a Launchpad or Ubuntu One account, and after that, another key step of application is signing the Code of Conduct, which might be a bit tricky for newbies. (If you’ve come to this blog, then you already know why I said it might be tricky).</p><p>Let’s move to the real agenda, right? (Disclaimer: I wouldn’t have written this article if the LLM model I used hadn’t hallucinated)</p><p><strong>This blog is for Ubuntu users.</strong></p><h3>The Process</h3><p>I recommend using CLI because, come on, we’re using Ubuntu . If you use CLI, you’ll be able to enter the passphrase (I’ll tell you about this later). Follow these commands, as there are many ways to do this, so you might get overwhelmed with all the information.</p><h3>Step 1: Generate a GPG Key (via CLI)</h3><p>First, make sure you have the necessary packages:</p><pre>sudo apt-get update<br>sudo apt-get install gnupg</pre><p>Now generate your key:</p><pre>gpg --full-generate-key</pre><blockquote>You’ll be prompted to follow these steps:</blockquote><p><em>a. Choose the Key Type</em></p><p>You’ll be asked to select the type of key you want to generate. The default is usually RSA and RSA, which is fine for most purposes.</p><pre>Please select what kind of key you want:<br>   (1) RSA and RSA (default)<br>   (2) DSA and Elgamal<br>   (3) DSA (sign only)<br>   (4) RSA (sign only)<br>Your selection? 1</pre><p><em>b. Choose the Key Size</em></p><p>Next, choose the key size. A larger key size is more secure but slower to use.</p><pre>RSA keys may be between 1024 and 4096 bits long.<br>What keysize do you want? (3072) 4096</pre><p><em>c. Set the Key Expiry</em></p><p>Choose how long the key should be valid:</p><pre>Please specify how long the key should be valid.<br>         0 = key does not expire<br>      &lt;n&gt;  = key expires in n days<br>      &lt;n&gt;w = key expires in n weeks<br>      &lt;n&gt;m = key expires in n months<br>      &lt;n&gt;y = key expires in n years<br>Key is valid for? (0) 1y</pre><p>After setting the expiry, confirm:</p><pre>Key expires at [date]<br>Is this correct? (y/N) y</pre><p><em>d. Provide Your Identity</em></p><p>Provide your name, email address, and an optional comment:</p><pre>GnuPG needs to construct a user ID to identify your key.</pre><pre>Real name: Your Name<br>Email address: your.email@example.com<br>Comment: (Optional, you can leave this blank)</pre><p>Confirm your details:</p><pre>You selected this USER-ID:<br>    &quot;Your Name &lt;your.email@example.com&gt;&quot;</pre><pre>Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O</pre><p><em>e. Set a </em><strong><em>Passphrase</em></strong></p><p>If you don’t know what a <strong>passphrase</strong> is, please Google it. You’ll need to set a strong passphrase to protect your private key.</p><pre>┌──────────────────────────────────────────────────────┐<br>│ Please enter the passphrase to protect your new key  │<br>│                                                      │<br>│ Passphrase: **************************************** │<br>│                                                      │<br>│        &lt;OK&gt;                              &lt;Cancel&gt;    │<br>└──────────────────────────────────────────────────────┘</pre><p><em>f. Generate the Key</em></p><p>GPG will now generate your key. This may take a few moments depending on your system’s performance and the key size you chose.</p><pre>We need to generate a lot of random bytes. It is a good idea to perform<br>some other action (type on the keyboard, move the mouse, utilize the<br>disks) during the prime generation; this gives the random number<br>generator a better chance to gain enough entropy.</pre><p><em>g. Key Generation Complete</em></p><p>Once the key is generated, you’ll see a confirmation message:</p><pre>gpg: key ABC123DEF456 marked as ultimately trusted<br>gpg: revocation certificate stored as &#39;/home/yourusername/.gnupg/openpgp-revocs.d/ABC123DEF456.rev&#39;<br>public and secret key created and signed.</pre><pre>pub   rsa4096 2023-10-01 [SC] [expires: 2024-10-01]<br>      ABC123DEF4567890ABCD1234567890ABCD123456<br>uid                      Your Name &lt;your.email@example.com&gt;<br>sub   rsa4096 2023-10-01 [E] [expires: 2024-10-01]</pre><p><em>h. Verify Your Key</em></p><p>You can verify that your key was created successfully by listing your keys:</p><pre>gpg --list-keys</pre><p>You should see your new key listed with the details you provided.</p><blockquote>Now if you go to “Passwords and Keys,” you’ll see a new GPG key. You can simply:</blockquote><ul><li>Go to Passwords and Keys &gt; GPG key</li><li>Select the key</li><li>Click on the hamburger menu on the left side</li><li>Click on “Sync and publish key”</li></ul><p>(Okay we are not done yet)</p><h3>Step 2: Find Your Key ID</h3><p>Use this command (replace with your email):</p><pre>gpg --keyid-format LONG --list-keys your.email@example.com</pre><p>You’ll get something like this:</p><pre>pub   rsa4096/ABCDEF0123456789 2018-01-01 [SCEA] [expires: 2021-01-01]<br>      ABCDEF0123456789ABCDEF0123456789<br>uid              [ ultimate ] Your Name &lt;your.email@example.com&gt;</pre><p>This shows the 16-byte Key-ID right after the key-type and key-size. In this example, it’s the highlighted part of this line:<br>pub rsa4096/<strong>ABCDEF0123456789</strong> 2018-01-01 [SCEA] [expires: 2021-01-01]</p><h3>Step 3: Publish Your Key</h3><p>Use this to publish your key:</p><pre>gpg --keyserver keyserver.ubuntu.com --send-keys ABCDEF0123456789</pre><p>Congratulations, you published your public key!<br>Please allow a couple of minutes for the servers to replicate that information before starting to use the key.</p><h3>Step 4: (Optional) Verify Your Key is Available</h3><p>You can check if the key is available on the Ubuntu key server by searching for it:</p><pre>gpg --keyserver keyserver.ubuntu.com --recv-key ABCDEF0123456789</pre><p>Replace ABCDEF0123456789 with your key ID.</p><h3>Step 5: Register Your Key with Launchpad</h3><ol><li>Log in to your Launchpad account</li><li>Go to <a href="https://launchpad.net/codeofconduct">https://launchpad.net/codeofconduct</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N9P6L_8y4k5RWs1K" /><figcaption>image 1</figcaption></figure><p>3. Click on “<strong>1. Log in and register your OpenPGP key</strong>”</p><p>4. Paste your GPG key fingerprint in the box and then click on “<strong>Import</strong>”</p><p>To get your fingerprint (which you’ll need for Launchpad), use this command:</p><pre>gpg --fingerprint</pre><p>You’ll get something like this:</p><pre>/home/username/.gnupg/pubring.kbx<br>---------------------------------<br>pub   rsa4096 2023-05-15 [SC]<br>      A1B2 C3D4 E5F6 G7H8 I9J0  K1L2 M3N4 O5P6 Q7R8 S9T0<br>uid           [ultimate] John Doe &lt;john.doe@example.com&gt;<br>sub   rsa4096 2023-05-15 [E]</pre><p>Copy the fingerprint part (in this example: A1B2 C3D4 E5F6 G7H8 I9J0 K1L2 M3N4 O5P6 Q7R8 S9T0) as this is what you&#39;ll need for Launchpad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUicMl_kzwVZWYgnSL_V2Q.png" /><figcaption>image 2</figcaption></figure><p>After pressing import you’ll receive an email with instructions for confirming registration of an OpenPGP key for use in Launchpad. The email will contain “ASCII armored” encrypted text that looks like this:</p><pre>-----BEGIN PGP MESSAGE-----<br>Blah blah blah<br>-----END PGP MESSAGE-----</pre><p>Save the text (ASCII armored encrypted text) to a file:</p><pre>touch text.txt</pre><p>(Copy the text(ASCII armored encrypted text) into this file using a text editor)</p><p>Then decrypt the text:</p><pre>gpg --decrypt text.txt</pre><p>Enter your <strong>passphrase</strong>. The message will be displayed along with the link you must follow to validate your key with Launchpad.</p><p>Follow the link, enter your Launchpad password when prompted, and you’re done with this step!</p><h3>Step 6: Sign the Code of Conduct</h3><p>Final step! You need to download the Ubuntu Code of Conduct and read it (I mean, like, seriously).</p><ol><li><strong>Download</strong> the Code of Conduct from <a href="https://launchpad.net/codeofconduct/2.0/+download">https://launchpad.net/codeofconduct/2.0/+download</a></li><li>Open your terminal and type or watever your file is named as:</li></ol><ul><li>gpg --clearsign UbuntuCodeofConduct-2.0.txt</li></ul><p>If asked <em>File &#39;UbuntuCodeofConduct-2.0.txt.asc&#39; exists. Overwrite?</em>, press <em>Y</em>.</p><p>3. A new file named <em>UbuntuCodeofConduct-2.0.txt.asc</em> will be created on your device. Open that and copy the content.</p><p>4. Back on the Launchpad page, click on “<strong>Sign it</strong>” and paste the text in the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgERMPi52QFrhBA48QYiDA.png" /><figcaption>image 3</figcaption></figure><p><strong><em>Wollah!</em></strong> You’ve signed your Code of Conduct and head here (<a href="https://ubuntu.com/community/membership/application">https://ubuntu.com/community/membership/application</a>) to read about creating an application.</p><p><strong>Now</strong> <strong>Go drink a glass of water and celebrate! hehe</strong></p><p>ps:storeyoursecretkeysafelyla</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qwjJh428RFglWZxZprFgeA.jpeg" /><figcaption>ref : <a href="https://images5.alphacoders.com/328/328981.jpg">https://images5.alphacoders.com/328/328981.jpg</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a7dee5c333c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>