<?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 Mitul Chowdhury on Medium]]></title>
        <description><![CDATA[Stories by Mitul Chowdhury on Medium]]></description>
        <link>https://medium.com/@mitul_digifello?source=rss-150b28630330------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U2DbxLMVzXBKpcEnEUxi_w.png</url>
            <title>Stories by Mitul Chowdhury on Medium</title>
            <link>https://medium.com/@mitul_digifello?source=rss-150b28630330------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:03:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mitul_digifello/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Your Android Update Fails: Everything About App Signing Keys]]></title>
            <link>https://medium.com/@mitul_digifello/why-your-android-update-fails-everything-about-app-signing-keys-8e0bc5247c49?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e0bc5247c49</guid>
            <category><![CDATA[android-keystore]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[google-play-store]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[android-update]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 11:06:43 GMT</pubDate>
            <atom:updated>2026-11-23T11:06:43.548Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sU0ohFY7h36UEXISqt8vFw@2x.png" /></figure><p>Have you ever thought about how your phone knows that you have installed an app from the Play Store or from a third-party site?</p><p>Have you ever thought about what happens if an attacker tries to clone an app and get into your phone?</p><p>Have you ever thought about how the Google Sign-In feature works, and how Google understands which app, out of all the apps registered with it, you are trying to log in to?</p><p>And if you are a developer, have you ever thought about this: you have a published app on the Play Store, which you have downloaded on your phone. You are working on the development of the app, and before releasing an update, you want to install the new build on the phone where you already have the old app from the Play Store. The update fails and shows a package error.</p><p>So today, in this article, we will try to understand each and every concept in detail, so that in the future you do not have any confusion about Android keys and these questions.</p><h3>How does the phone know the app came from the Play Store?</h3><p>Let us start with the first question. This actually has nothing to do with keys. When an app is installed, Android records which app performed the installation. This is called the installer package name, and it is stored on the phone along with the other details of the app.</p><ul><li><strong>Play Store:</strong> the installer is recorded as com.android.vending.</li><li><strong>Downloaded from a website or a file manager:</strong> the installer is the app that triggered the install, such as the browser or the file manager.</li><li><strong>Installed from a computer (for example, adb):</strong> it is often empty, or a system component.</li></ul><p>But this only tells us who installed the app. It does not tell us whether the app is genuine or has been tampered with. That is where keys come in.</p><h3>What does “digitally signed” mean?</h3><p>When a developer exports an app, the developer has two keys: one is the public key and the other is the private key. When the developer exports the app, it comes along with a digital signature generated by the developer.</p><p>So what does “digitally signed” mean? It means the hash of the app is taken out, and then it is encrypted with the private key of the developer.</p><p>Along with the digital signature and the main app, there is also a certificate, which contains the public key along with the information about the developer. So when we download an app, we get 3 things in the bundle:</p><ul><li>The main app file</li><li>The digital signature</li><li>The certificate of the app</li></ul><h3>A bit of asymmetric encryption</h3><p>To understand the next part, you need a bit of knowledge about asymmetric encryption. This is a type of encryption where two keys are involved: one is the private key and the other is the public key. Data encrypted with the private key can only be decrypted with the public key, and vice versa.</p><h3>What happens when we install the app</h3><p>After downloading the app, when we try to install it, the system takes out the public key of the developer from the certificate. Then it uses that public key to decrypt the digital signature and takes out the hash of the APK file. After that, it matches this hash with the hash of the APK file it received.</p><p>If they match, the app can be installed. Otherwise, it cannot be installed.</p><h3>Install or update? How Android decides</h3><p>Now, how does the Android system decide whether the APK we have downloaded is the same app that is already there or not? Based on this only, it shows the update or install message.</p><p>The Android system tries to match two things with the existing app: the package name of the app and the certificate of the app. If the package name is the same, it moves to the second part, which is certificate matching. If it passes both, it shows the update option. Otherwise, if the package name is the same but the certificate is different, it shows the error INSTALL_FAILED_UPDATE_INCOMPATIBLE.</p><p>Go through the cases below for a better understanding:</p><ul><li><strong>Legitimate update</strong> (package name matches, certificate matches): it is the same app. It installs smoothly as an update and keeps your existing app data.</li><li><strong>Fake or modified app</strong> (package name matches, certificate is different): it is blocked. Android throws the INSTALL_FAILED_UPDATE_INCOMPATIBLE error and refuses to install it, protecting your existing app’s data from being hijacked.</li><li><strong>Another app by the same developer</strong> (package name is different, certificate matches): it is a different app. It installs side by side as a separate app, though Android lets both apps securely share data or run in the same process if configured.</li><li><strong>Completely new app</strong> (package name is different, certificate is different): it is a different app. It installs normally as a brand-new, isolated app.</li></ul><p>So if an attacker tries to build a malicious version of the app with the same package name, Android rejects the update.</p><h3>What happens when we publish the app on the Play Store</h3><p>When we publish the app on the Play Store, it first verifies the digital signature. After that, it re-signs the app with its own key (the app signing key managed by Google Play), so both the digital signature and the certificate change.</p><p>Suppose a developer is working on an app and it is in closed testing right now. The developer wants to roll out an update, so before that, he decides to check the app on his phone. He has downloaded his own app from the Play Store. When he exports the updated version of the app and tries to install it on the phone, an error occurs.</p><p>The developer’s thought process was that the app was exported in the same way as before, and the developer key and the certificate are the same in both cases, so why is there an error? It is because Google Play changed the digital signature and the certificate in between. To update it, the build has to be added to the Play Store first, and then it can be updated.</p><p>So the only way is to delete the app which was installed from the Play Store, install the new updated app, and then test it.</p><h3>How Google Sign-In knows which app is asking</h3><p>Now we will look at how Google knows which app, out of all the registered apps, is requesting the sign-in. Google receives two things about the app: the package name and the fingerprint. (Android and Google Play services read these from the installed app itself, so the app cannot simply claim to be someone else.)</p><p>With the help of the package name, Google understands which app is requesting the sign-in. Now, any attacker can make an app with the same package name and send the same request to Google. So how does Google handle this?</p><p>This is where the second thing becomes important, which is the fingerprint. The fingerprint is the SHA-1 hash of the certificate of the app. When the developer sets up the sign-in option, Google takes the fingerprint from the developer.</p><p>Now you can ask: the fingerprint can be different from time to time, right? When the app is on the Play Store, the certificate is different. When we are building it ourselves, the certificate is different. And when we are using the app in debug mode, the certificate is different again. So we add all three fingerprints of the app in Google.</p><p>Google identifies the app by the package name and matches the fingerprint. If it matches any of them, it allows the sign-in feature. Otherwise, it is rejected.</p><h3>What if the attacker copies the certificate?</h3><p>Now you can think: the certificate has the public key of the developer and the information about the developer, so any attacker can take it out of the APK file. So if the certificate is copied and the package name is also kept the same, can the attacker access the Google Sign-In feature of the app?</p><p>But remember, when installing the app, we first take out the public key from the certificate and then try to decrypt the digital signature. So here, it will fail in two ways.</p><p><strong>Case 1:</strong> the attacker signs the app with his own private key, but keeps the copied certificate. The digital signature was created with the attacker’s private key, so it cannot be verified with the public key of a different developer. The app will not even install on the system.</p><p><strong>Case 2:</strong> the attacker also replaces the digital signature. Then the initial decryption will work, but later, when the hash of the main app file is compared with the hash from the digital signature, it will not match, and there will be an error.</p><p><strong><em>Finally</em></strong>, to sum it up, the phone knows where an app came from by recording the installer at the time of installation, while the keys and signatures decide whether the app can be trusted. The digital signature makes sure the app has not been changed, and the certificate makes sure that an update comes from the same developer as the app that is already installed.</p><p>This is the reason an update with a different certificate is rejected, why your own build does not install over the Play Store version, and why Google Sign-In asks for the fingerprints of all three certificates. And as long as the private key of the developer stays safe, an attacker cannot get past any of these checks.</p><p>So the next time you see the INSTALL_FAILED_UPDATE_INCOMPATIBLE error, you will know exactly what is going on. I hope this article cleared up your confusion about Android keys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e0bc5247c49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When You Run a Program on Linux?]]></title>
            <link>https://medium.com/@mitul_digifello/what-happens-when-you-run-a-program-on-linux-2e049211aeda?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e049211aeda</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 09:33:58 GMT</pubDate>
            <atom:updated>2026-08-15T09:33:58.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BirAEIdn67wYphZ-cgLViQ.png" /></figure><h3>You open a terminal, type:</h3><pre>python app.py</pre><p>and press Enter. A moment later, your Python program starts running. From the outside, it looks like one simple action. Inside Linux, however, several things are happening. Bash creates a process, the kernel manages that process, the CPU executes its instructions, and the scheduler shares CPU time between it and other programs running on your computer.</p><h3>Bash Is a Process Too</h3><p>When you open a terminal, you are not directly talking to the Linux kernel. A program called a <strong>shell</strong> is running inside that terminal. On many Linux systems, that shell is Bash.</p><p>Bash is itself a normal process. It has a process ID, its own memory, CPU state, open files, and other information that the kernel keeps track of. Its main job is to wait for commands from you, understand them, and start the programs you ask for.</p><p>So when your terminal is waiting for you to type something, you can think of the system like this:</p><pre>Terminal<br>   ↓<br>Bash<br>   ↓<br>waiting for your command</pre><p>Now you type:</p><pre>python app.py</pre><p>Bash needs to start your Python program. This is where the parent-child relationship between processes begins.</p><h3>Bash Creates a Child Process</h3><p>Bash normally does not replace itself with Python. If it did, Bash would disappear and there would be no shell left to give you another command after Python finished.</p><p>Instead, Bash creates another process. The traditional Unix way of doing this is with the fork() system call.</p><p>The simplified sequence looks like this:</p><pre>Bash<br> │<br> └── fork()<br>       ↓<br>    Child process<br>       │<br>       └── exec()<br>             ↓<br>        Python app.py</pre><p>The fork() call creates a child process. At first, the child is very similar to the parent. Linux uses a technique called <strong>Copy-on-Write</strong>, so it does not need to immediately make a complete physical copy of all the parent&#39;s memory.</p><p>The child then uses an exec-family system call, commonly execve(), to replace its current program with the Python interpreter and your application.</p><p>After this, we can think of the process tree like this:</p><pre>Bash<br>PID 1000<br>   │<br>   └── Python<br>       PID 1001</pre><p>Bash is the parent process and Python is the child process.</p><p>The exact way Bash performs this is more complicated than this simple diagram, but fork() followed by exec() is a very useful model for understanding how programs are started on Linux.</p><h3>What Happens While Python Is Running?</h3><p>Once the child has executed Python, the CPU starts executing the machine instructions that make up the Python interpreter and your application.</p><p>The Python process also has its own virtual address space. This is where its code, data, heap, stack, shared libraries, and other memory mappings live.</p><p>You can think of the process as something like this:</p><pre>Python process<br>│<br>├── CPU execution state<br>├── Virtual memory<br>├── Open files<br>├── Process ID<br>├── Signals<br>└── Other kernel-managed information</pre><p>The CPU has registers that are important for running the process. For example, the instruction pointer tells the CPU where execution should continue, while the stack pointer tells it where the current stack is.</p><p>On x86–64, these are represented by registers such as:</p><pre>RIP → current instruction location<br>RSP → current stack location</pre><p>The kernel keeps track of the information needed to manage the process. When the process is not currently running, Linux can preserve the necessary execution context and later restore it so the process can continue from where it stopped.</p><h3>What If Bash Dies First?</h3><p>Now imagine that Bash is still the parent of your Python process:</p><pre>Bash<br> │<br> └── Python</pre><p>What happens if Bash crashes or exits while Python is still running?</p><p>A common misconception is that Python must also die because its parent died. That is not normally true.</p><p>The Linux kernel notices that Python’s original parent no longer exists and <strong>reparents</strong> the child to an appropriate process. In the simple case, you can think of it as being adopted by PID 1, which on many modern Linux systems is systemd.</p><p>So the situation changes from:</p><pre>Bash<br> │<br> └── Python</pre><p>to something like:</p><pre>Bash ❌</pre><pre>Python<br>   ↓<br>orphan<br>   ↓<br>reparented</pre><p>The Python process is now called an <strong>orphan process</strong>.</p><p>An orphan is not an error. It simply means that the process is still alive but its original parent has gone away. Linux has mechanisms to make sure that such processes can still be managed and eventually reaped when they finish.</p><p>There is one important detail here. The fact that Bash died does not mean Python will always continue forever. Python can still receive a signal for another reason, crash, reach the end of its program, or otherwise terminate. Terminal and session behavior can also cause signals such as SIGHUP to reach processes when a terminal disappears.</p><p>The important rule is:</p><blockquote><strong><em>The death of a parent does not automatically kill its child.</em></strong></blockquote><h3>What If Python Dies First?</h3><p>Now let’s reverse the situation.</p><p>Suppose Bash is still running but Python finishes first:</p><pre>Bash<br> │<br> └── Python</pre><p>Python eventually reaches the end of its program or calls an exit function. The process stops running.</p><p>But Linux cannot immediately throw away every piece of information about the process. The parent may need to know how its child finished. For example, it may need the child’s exit status.</p><p>For a short period, the terminated child can therefore become a <strong>zombie process</strong>.</p><pre>Bash<br> │<br> └── Python<br>      ↓<br>    zombie</pre><p>A zombie is important to understand because it is <strong>not a running process</strong>. It is not sitting on the CPU doing work and it is not continuing to execute Python code. The kernel keeps a small amount of information about the terminated process until the parent collects its exit status.</p><p>The parent can do this with a wait-family system call such as:</p><pre>waitpid(...)</pre><p>After the parent collects the child’s status, the kernel can remove the remaining information associated with the zombie.</p><p>The normal sequence is therefore:</p><pre>Python running<br>     ↓<br>Python exits<br>     ↓<br>Zombie<br>     ↓<br>Bash calls waitpid()<br>     ↓<br>Zombie is reaped<br>     ↓<br>Gone</pre><p>This is why the distinction between an orphan and a zombie is so important.</p><p>An <strong>orphan</strong> is a child whose parent died while the child is still running.</p><p>A <strong>zombie</strong> is a child that already died but whose parent has not yet collected its exit status.</p><h3>What Happens If a Program Creates Lots of Zombies?</h3><p>Imagine a long-running program creates many child processes but never waits for them.</p><p>You could end up with something like:</p><pre>Parent<br> ├── Zombie<br> ├── Zombie<br> ├── Zombie<br> ├── Zombie<br> └── Zombie</pre><p>These processes are not using CPU to perform their old work, but their remaining process information still uses kernel resources.</p><p>If enough zombies accumulate, they can become a real problem because the system has a limited number of process-related resources.</p><p>This is sometimes called a <strong>zombie leak</strong>. It is not the same thing as a traditional memory leak, but the basic idea is similar: something that should have been cleaned up is being left behind.</p><p>That is why programs that create child processes need to properly collect their children.</p><h3>How Can Python Run Alongside Everything Else?</h3><p>While your Python program is running, you probably have many other programs open too. Maybe you have VS Code, Chrome, a music player, and your terminal all running at the same time.</p><p>It looks like everything is executing together. On a single CPU core, however, only one instruction stream can execute at a particular instant.</p><p>Linux creates the feeling of simultaneous execution by switching between runnable tasks very quickly.</p><p>The kernel contains a <strong>scheduler</strong> that decides which task should run on each CPU. A simplified view looks like this:</p><pre>CPU<br> │<br> ├── Python<br> ├── Chrome<br> ├── VS Code<br> ├── Python<br> ├── Terminal<br> └── ...</pre><p>On a modern multicore CPU, multiple tasks can actually execute at the same time on different cores. But the scheduler is still responsible for deciding which runnable tasks get time on each CPU.</p><h3>Context Switching</h3><p>Suppose Python is currently running and the scheduler decides that another task should run.</p><p>Linux needs to preserve the information necessary for Python to continue later. This is called a <strong>context switch</strong>.</p><p>Conceptually:</p><pre>Python<br> │<br> ├── RIP<br> ├── RSP<br> ├── other registers<br> └── other execution context<br>          ↓<br>        saved</pre><p>Linux then restores the appropriate context for another task:</p><pre>Next process<br> │<br> ├── RIP<br> ├── RSP<br> ├── other registers<br> └── other execution context<br>          ↓<br>         CPU</pre><p>The important thing to understand is that the CPU registers are physically inside the CPU. The kernel does not own the registers. Instead, when Linux stops a task, it preserves the necessary CPU state in kernel-managed data structures and architecture-specific context areas. Later, it restores that information into the CPU registers.</p><p>This allows the process to continue from approximately the same point where it stopped.</p><p>For example:</p><pre>Python running<br>   ↓<br>RIP → Python instruction 500<br>RSP → Python stack<br>   ↓<br>context switch<br>   ↓<br>another process runs<br>   ↓<br>context switch<br>   ↓<br>Python runs again<br>   ↓<br>RIP/RSP and other state restored<br>   ↓<br>Python continues</pre><p>Linux uses task_struct together with architecture-specific structures and mechanisms to manage this information. You will often see operating-system textbooks use the term <strong>Process Control Block (PCB)</strong> for this general idea, but you should not assume that Linux has one structure called PCB containing absolutely everything about a process.</p><h3>What About Process Memory?</h3><p>There is another important part of a process that the kernel manages: its virtual memory.</p><p>Each process gets its own virtual address space. This gives processes the impression that they have their own private memory.</p><p>For example, Chrome and Python could both use the virtual address:</p><pre>0x400000</pre><p>That does not mean they are using the same physical RAM.</p><p>The CPU uses page tables to translate virtual addresses into physical addresses:</p><pre>Virtual address<br>      ↓<br>Page tables<br>      ↓<br>Physical address<br>      ↓<br>RAM</pre><p>For example, conceptually:</p><pre>Chrome:<br>0x400000 → Physical RAM A</pre><pre>Python:<br>0x400000 → Physical RAM B</pre><p>The virtual address is the same, but the translation is different because the processes have different address-space mappings.</p><p>This is also connected to process switching. When Chrome is running, the CPU is operating with Chrome’s memory-management context. When Linux switches to Python, it also uses Python’s address-space mappings.</p><p>So you can think of the running process as having something like:</p><pre>Chrome<br> │<br> ├── RIP → Chrome&#39;s instructions<br> ├── RSP → Chrome&#39;s stack<br> └── memory mappings → Chrome&#39;s address space</pre><p>Then Linux switches to Python:</p><pre>Python<br> │<br> ├── RIP → Python&#39;s instructions<br> ├── RSP → Python&#39;s stack<br> └── memory mappings → Python&#39;s address space</pre><p>This is one of the key connections between <strong>processes, CPU registers, context switching, and virtual memory</strong>.</p><h3>Why Can’t Python Read Chrome’s Memory?</h3><p>The isolation between processes is important for both stability and security.</p><p>Imagine that Python could simply read or modify any memory belonging to Chrome. A buggy program could accidentally overwrite another program’s data. A malicious program could also try to steal passwords, browser information, or other sensitive data.</p><p>Linux therefore gives each process its own virtual address space and uses CPU memory-protection mechanisms and page tables to control what that process can access.</p><p>So Python normally sees:</p><pre>Python<br>   ↓<br>its virtual address space<br>   ↓<br>its allowed memory</pre><p>while Chrome sees:</p><pre>Chrome<br>   ↓<br>its virtual address space<br>   ↓<br>its allowed memory</pre><p>This does not mean processes can never share data. They can deliberately use mechanisms provided by the operating system, such as pipes, sockets, shared memory, and message queues.</p><p>The important difference is that the processes <strong>choose to communicate through these mechanisms</strong> instead of simply reaching into each other’s private memory.</p><h3>How Does Python Talk to the Kernel?</h3><p>Your Python program also needs to interact with things that it cannot access directly.</p><p>For example, suppose your Python program wants to read a file.</p><p>Python cannot simply reach down and control the SSD itself. Instead, it asks the kernel to perform the operation.</p><p>The basic path looks like this:</p><pre>Python<br>   ↓<br>system call<br>   ↓<br>Linux kernel<br>   ↓<br>filesystem<br>   ↓<br>device driver<br>   ↓<br>storage device</pre><p>The kernel performs the privileged work and eventually returns the result to the Python process.</p><p>The same basic idea applies to many other operations. Programs use system calls to read and write files, create processes, allocate memory, communicate over networks, and perform many other operating-system operations.</p><h3>System Calls, Interrupts and Exceptions</h3><p>There are several different ways the CPU and kernel become involved in what a program is doing.</p><p>A <strong>system call</strong> happens when a user program deliberately asks the kernel for a service:</p><pre>Python<br>   ↓<br>syscall<br>   ↓<br>Kernel</pre><p>A <strong>hardware interrupt</strong> is different. Here, hardware can get the CPU’s attention. For example, a network card may receive some data and generate an interrupt so the operating system can process the event.</p><pre>Network card<br>      ↓<br>hardware interrupt<br>      ↓<br>CPU<br>      ↓<br>Kernel</pre><p>An <strong>exception</strong> happens when the CPU encounters a special condition while executing an instruction. For example, a program may try to access memory in a way that is not allowed.</p><pre>Program<br>   ↓<br>CPU detects exceptional condition<br>   ↓<br>Kernel</pre><p>The kernel then decides what should happen. In a memory-access violation, for example, the process may receive a signal such as SIGSEGV.</p><p>These three ideas should not be mixed together:</p><pre>Program → system call → Kernel</pre><pre>Hardware → interrupt → CPU/Kernel</pre><pre>CPU detects exceptional condition → Kernel</pre><h3>Putting Everything Together</h3><p>Now we can follow the whole journey of:</p><pre>python app.py</pre><p>Bash is already running as a process. When it sees your command, it creates a child process, traditionally using fork(). That child then uses execve() or another exec-family call to replace its current program with the Python interpreter.</p><pre>Bash<br> │<br> └── fork()<br>       ↓<br>     Child<br>       │<br>       └── execve()<br>             ↓<br>        Python app.py</pre><p>The CPU then executes the Python program. Python has its own virtual address space, stack, heap, code, and other memory mappings. The kernel keeps track of the process and manages the resources it uses.</p><p>While Python is running, the Linux scheduler may switch the CPU to other processes. Linux preserves the necessary execution context, including information related to registers such as RIP and RSP, so that Python can continue later from where it stopped.</p><p>If Python needs to read a file, send network data, create another process, or perform some other operation that requires kernel services, it uses system calls.</p><pre>Python<br>   ↓<br>syscall<br>   ↓<br>Kernel<br>   ↓<br>resource / filesystem / driver</pre><p>Eventually, Python finishes and exits. Its parent, Bash, can collect its exit status using a wait-family system call. Until that happens, the terminated child can exist as a zombie.</p><p>If Bash dies while Python is still running, Python does not automatically die. It becomes an orphan and is reparented to an appropriate process.</p><p>So the simple command:</p><pre>python app.py</pre><p>is actually connected to many important parts of Linux:</p><pre>Bash<br>  ↓<br>fork()<br>  ↓<br>Child<br>  ↓<br>exec()<br>  ↓<br>Python<br>  ↓<br>CPU executes instructions<br>  ↓<br>Scheduler shares CPU time<br>  ↓<br>Virtual memory protects the process<br>  ↓<br>System calls communicate with the kernel<br>  ↓<br>Python exits<br>  ↓<br>Parent collects exit status<br>  ↓<br>Process is completely cleaned up</pre><p>What looks like a single command is therefore the result of several parts of the operating system working together. Once you understand this chain, concepts such as processes, scheduling, system calls, virtual memory, signals, and the kernel stop looking like separate topics. They are all pieces of the same system working together whenever you run a program on Linux.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e049211aeda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Semantic Search Without a Vector Database: Embeddings + Cosine Similarity in Node.js]]></title>
            <link>https://medium.com/@mitul_digifello/semantic-search-without-a-vector-database-embeddings-cosine-similarity-in-node-js-3afa83afd09e?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/3afa83afd09e</guid>
            <category><![CDATA[cosine-similarity]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[vector-search]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 17:02:36 GMT</pubDate>
            <atom:updated>2026-07-23T17:02:36.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhlysqJ6ff8NxeG6H3-cXA.png" /><figcaption>Semantic Search Without a Vector Database: Embeddings + Cosine Similarity in Node.js</figcaption></figure><p>When people talk about RAG, they almost always mention vector databases.</p><p>You hear names like:</p><ul><li>Pinecone</li><li>Weaviate</li><li>Qdrant</li><li>pgvector</li></ul><p>These tools are really good. No doubt about that.</p><p>But while building <strong>Question Maker</strong>, I realized I did not actually need one.</p><p>Every user’s files only stay alive during one session. Most users upload a few hundred chunks at most. For something that small, setting up a full vector database felt like using a bulldozer to plant one flower. It works… just feels too much.</p><p>So I decided to do the math myself using plain JavaScript.</p><p>In this article I will show you:</p><ul><li>How I turn text into embeddings</li><li>How I find the most relevant chunks using cosine similarity</li><li>Why this simple method works really well for small RAG projects</li></ul><h3>Step 1: Turn Every Chunk Into an Embedding</h3><p>After chunking, every piece of text looks something like this.</p><pre>{<br>  text,<br>  sectionTag,<br>  chunkIndex<br>}</pre><p>Computers do not understand words the way humans do.</p><p>So before searching by meaning, every chunk needs to become a vector using Gemini’s embedding model.</p><p>Here is the code.</p><pre>const embedChunks = async (chunks, api_key) =&gt; {<br>  const ai = new GoogleGenAI({ apiKey: api_key });<br>  const texts = chunks.map((chunk) =&gt; chunk.text);</pre><pre>  const response = await ai.models.embedContent({<br>    model: &quot;gemini-embedding-001&quot;,<br>    contents: texts,<br>    config: { taskType: &quot;RETRIEVAL_DOCUMENT&quot; },<br>  });</pre><pre>  return chunks.map((chunk, index) =&gt; ({<br>    ...chunk,<br>    vector: response.embeddings[index].values,<br>  }));<br>};</pre><p>A few things are happening here.</p><ul><li>Every chunk is sent in one batch request.</li><li>Gemini returns the embeddings in the same order.</li><li>Each vector is attached back to its original chunk.</li></ul><p>Pretty simple honestly.</p><p>The search query also needs an embedding.</p><p>But this time I use a different task type.</p><pre>const embedQuery = async (query, api_key) =&gt; {<br>  const ai = new GoogleGenAI({ apiKey: api_key });</pre><pre>  const response = await ai.models.embedContent({<br>    model: &quot;gemini-embedding-001&quot;,<br>    contents: query,<br>    config: { taskType: &quot;RETRIEVAL_QUERY&quot; },<br>  });</pre><pre>  return response.embeddings[0].values;<br>};</pre><p>In my project, the query is usually the syllabus or topic entered by the user.</p><p>For example:</p><ul><li>Thermodynamics</li><li>Heat Transfer</li><li>Data Structures</li><li>Computer Networks</li></ul><p>That query becomes one vector which is compared with every chunk.</p><h3>Step 2: Calculate Cosine Similarity</h3><p>Now comes the fun part.</p><p>How do we know which chunk is closest to the query?</p><p>We use <strong>cosine similarity</strong>.</p><p>It compares two vectors by looking at the angle between them instead of their length.</p><p>If two vectors point almost in the same direction, they probably have similar meaning.</p><p>Here is the code.</p><pre>const cosineSimilarity = (vecA, vecB) =&gt; {<br>  const dotProduct = vecA.reduce((acc, val, i) =&gt; acc + val * vecB[i], 0);</pre><pre>  const magnitudeA = Math.sqrt(<br>    vecA.reduce((acc, val) =&gt; acc + val * val, 0)<br>  );</pre><pre>  const magnitudeB = Math.sqrt(<br>    vecB.reduce((acc, val) =&gt; acc + val * val, 0)<br>  );</pre><pre>  if (magnitudeA === 0 || magnitudeB === 0) return 0;</pre><pre>  return dotProduct / (magnitudeA * magnitudeB);<br>};</pre><p>The result is between <strong>-1 and 1</strong>.</p><ul><li><strong>1</strong> means the meanings are very close.</li><li><strong>0</strong> means they are mostly unrelated.</li><li><strong>-1</strong> means they point in completely opposite directions.</li></ul><p>Most useful matches are usually close to <strong>1</strong>.</p><p>Math looks scary at first. But once you write the function it is just another helper function sitting quietly in your project.</p><h3>Step 3: Find the Best Chunks</h3><p>Now every chunk has a vector.</p><p>The query also has a vector.</p><p>The next job is easy.</p><ul><li>Compare every chunk with the query.</li><li>Give each chunk a score.</li><li>Sort them.</li><li>Pick the best ones.</li></ul><p>That is all.</p><pre>const retrieveRelevantChunks = (queryVector, chunks, topK) =&gt; {<br>  const scoredChunks = chunks.map((chunk) =&gt; ({<br>    ...chunk,<br>    score: cosineSimilarity(queryVector, chunk.vector),<br>  }));</pre><pre>  return scoredChunks<br>    .sort((a, b) =&gt; b.score - a.score)<br>    .slice(0, topK);<br>};</pre><p>In my project I keep <strong>topK = 10</strong>.</p><p>Only the ten best chunks are sent to the AI instead of the whole document.</p><p>That saves tokens and usually gives much better answers too.</p><h3>Why I Did Not Use a Vector Database</h3><p>This search method checks every chunk one by one.</p><p>That means the search time grows as more chunks are added.</p><p>For a few hundred chunks this is incredibly fast. Usually only a few milliseconds. Nobody notices.</p><p>The best part is there is almost nothing extra to manage.</p><ul><li>No vector database</li><li>No indexing</li><li>No extra server</li><li>No extra deployment</li></ul><p>Everything runs inside Node.js.</p><p>Life becomes much easier.</p><h3>When You Should Use a Vector Database</h3><p>This simple approach is not perfect for every project.</p><p>If you have:</p><ul><li>Millions of vectors</li><li>Thousands of users</li><li>Shared knowledge across many documents</li><li>Large production systems</li></ul><p>Then a real vector database becomes the better choice.</p><p>Tools like Pinecone, Qdrant, Weaviate, and pgvector are built exactly for that job.</p><p>They use smart indexing methods to search huge collections much faster than checking every vector one by one.</p><h3>Final Thoughts</h3><p>For my project, keeping everything inside plain Node.js was the simplest solution.</p><p>A few hundred chunks are easy to search with cosine similarity, and the performance is more than good enough.</p><p>Sometimes people jump straight to complex tools because everyone else is using them. But if your project is small, simple code often wins. Less setup. Less headache. More time to build the things that actually matter.</p><p>Thanks for reading! 😊</p><p>💼 LinkedIn: <a href="https://www.linkedin.com/in/mitul-chowdhury-200974374/">https://www.linkedin.com/in/mitul-chowdhury-200974374/</a><br>💻 GitHub: <a href="https://github.com/Mitul0000">https://github.com/Mitul0000</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3afa83afd09e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chunking Text for RAG: Sentence-Aware Splitting With Overlap in Plain Node.js]]></title>
            <link>https://medium.com/@mitul_digifello/chunking-text-for-rag-sentence-aware-splitting-with-overlap-in-plain-node-js-370a898ddd5f?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/370a898ddd5f</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[chunking-strategies]]></category>
            <category><![CDATA[overlapping]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-07-17T06:01:01.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yd_g37IJnttNJcN_nN_-HQ.png" /></figure><p>When people first hear about chunking in a RAG pipeline, it sounds very easy. Just split the text into smaller pieces and done. But once you start building it, you find many small problems hiding everywhere.</p><p>The biggest question is this.</p><p><strong>How do you split a large document into smaller chunks without breaking the meaning of the text?</strong></p><p>While building <strong>Question Maker</strong>, my AI tool that turns study materials into exam papers, I had to solve this problem. Whenever a document is too big for direct prompting, it goes through the RAG pipeline. Before anything can be embedded or searched, the document must be split into smaller chunks.</p><p>This is how I built it.</p><h3>Start With Sections Instead of One Huge Text</h3><p>By the time chunking starts, my document is not one long string anymore.</p><p>During the file extraction step, I already organize everything into sections.</p><p>Each section has:</p><ul><li>A heading</li><li>The text</li><li>The order</li></ul><p>Because of that, I process one section at a time instead of working on the whole document together. Makes life much easier.</p><p>The first thing I do is check whether the section is already small enough.</p><pre>const sectionTokenCount = countTokens(section.text);</pre><pre>if (sectionTokenCount &gt; CHUNK_SIZE) {<br>  // needs splitting<br>} else {<br>  chunks.push({<br>    text: section.text,<br>    sectionTag: section.heading,<br>    chunkIndex: chunkIndex++,<br>  });<br>}</pre><p>If the section already fits inside the chunk limit, I leave it exactly as it is.</p><p>There is no reason to split a short “Definitions” section into smaller parts. That would only separate ideas that belong together. Not very smart if you ask me.</p><h3>Split by Sentences Instead of Characters</h3><p>A simple way to chunk text is cutting every few thousand characters.</p><p>That works.</p><p>But it also breaks sentences in half. Sometimes even formulas. That is not good for embeddings and it also makes retrieved text harder to read.</p><p>So I decided to split by sentences instead.</p><pre>const sentences = section.text.match(/[^.!?]+[.!?]+/g) || [section.text];</pre><p>Now I add one sentence at a time into the current chunk.</p><p>If adding the next sentence would make the chunk too large, I close the chunk and start another one.</p><pre>let currentChunkSentences = [];<br>let currentTokenCount = 0;</pre><pre>for (let s = 0; s &lt; sentences.length; s++) {<br>  const sentence = sentences[s];<br>  const sentenceTokens = countTokens(sentence);</pre><pre>  if (<br>    currentTokenCount + sentenceTokens &gt; CHUNK_SIZE &amp;&amp;<br>    currentChunkSentences.length &gt; 0<br>  ) {<br>    // close current chunk<br>  }</pre><pre>  currentChunkSentences.push(sentence);<br>  currentTokenCount += sentenceTokens;<br>}</pre><p>This way every chunk ends after a full sentence.</p><p>Never in the middle of one.</p><h3>Why Overlap Is So Important</h3><p>Imagine one idea starts at the end of chunk 3 and finishes at the beginning of chunk 4.</p><p>Now imagine only chunk 3 gets retrieved.</p><p>The AI never sees the ending of that idea.</p><p>That is where overlap helps.</p><p>Instead of starting every new chunk from zero, I copy a small part from the end of the previous chunk and place it at the beginning of the next one.</p><p>Funny little trick. But it works really well.</p><p>Here is the code.</p><pre>let overlapSentences = [];<br>let overlapTokens = 0;</pre><pre>for (let j = currentChunkSentences.length - 1; j &gt;= 0; j--) {<br>  const t = countTokens(currentChunkSentences[j]);</pre><pre>  if (overlapTokens + t &gt; CHUNK_OVERLAP) break;</pre><pre>  overlapSentences.unshift(currentChunkSentences[j]);<br>  overlapTokens += t;<br>}</pre><pre>currentChunkSentences = overlapSentences;<br>currentTokenCount = overlapTokens;</pre><p>The last few sentences from one chunk become the first few sentences of the next chunk.</p><p>Because of this, important information does not suddenly disappear at chunk boundaries.</p><h3>Save the Last Chunk</h3><p>After every sentence has been processed, there is usually one unfinished chunk left.</p><p>That chunk also needs to be stored.</p><pre>if (currentChunkSentences.length &gt; 0) {<br>  chunks.push({<br>    text: currentChunkSentences.join(&quot; &quot;).trim(),<br>    sectionTag: section.heading,<br>    chunkIndex: chunkIndex++,<br>  });<br>}</pre><p>Simple enough.</p><h3>The Settings That Control Everything</h3><p>These two values decide how the chunking behaves.</p><pre>CHUNK_SIZE: 1000,<br>CHUNK_OVERLAP: 150,</pre><p>Here is what they mean.</p><ul><li><strong>CHUNK_SIZE</strong> keeps each chunk small enough for embeddings and generation.</li><li><strong>CHUNK_OVERLAP</strong> keeps nearby chunks connected by sharing a little context.</li></ul><p>I also save some extra information with every chunk.</p><ul><li>Section heading</li><li>Chunk index</li></ul><p>These fields became very useful while debugging.</p><p>Whenever retrieval returns a chunk, I can instantly see which section it came from. That made testing the similarity search much easier. Sometimes debugging feels like detective work. This helped a lot.</p><h3>Final Thoughts</h3><p>Chunking is one of those things that looks easy until you build it yourself.</p><p>Splitting by sentences keeps every chunk natural and easy to understand.</p><p>Adding overlap makes sure important ideas are not lost between chunks.</p><p>Together these two small ideas make retrieval much more reliable, and the AI gets better context when generating answers.</p><p>Thanks for reading! 😊</p><p>💼 LinkedIn: <a href="https://www.linkedin.com/in/mitul-chowdhury-200974374/">https://www.linkedin.com/in/mitul-chowdhury-200974374/</a><br>💻 GitHub: <a href="https://github.com/Mitul0000">https://github.com/Mitul0000</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=370a898ddd5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Do Not Always Use RAG: Automatic Routing by Token Count in Node.js]]></title>
            <link>https://medium.com/@mitul_digifello/why-i-do-not-always-use-rag-automatic-routing-by-token-count-in-node-js-ea69923e02ce?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea69923e02ce</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[ocr]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Thu, 16 Jul 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-07-16T06:01:01.874Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnS552VtyV_7UeAFGUEJ8g.png" /></figure><p>When many people first learn about RAG (Retrieval-Augmented Generation), they often think it should be used for every project. But that is not really true. RAG was made to fix one problem only. It helps when your text is too large to send to the AI model all at once or when sending everything would cost too much money or take more time.</p><p>If your document is small, using RAG is just extra work. You have to split the text into chunks, create embeddings, save them in a database, and search through them later. All that work is not needed if the whole document can fit inside one request. It is kind of like using a huge truck to carry one small bag. It works… but it feels silly.</p><p>While building <strong>Question Maker</strong>, I noticed users upload all kinds of files.</p><p>For example:</p><ul><li>A short two-page handout</li><li>Class notes</li><li>A full semester textbook</li><li>Big PDF study materials</li></ul><p>These files are very different. Sending all of them through the same pipeline did not make much sense. Because of that I built a small router. It checks how many tokens the extracted text has and then picks the best path by itself.</p><h3>Estimating Token Count Without a Tokenizer</h3><p>The best way to count tokens is by using the tokenizer made for the AI model you are using.</p><p>But for my project I did not need an exact number. I only wanted a quick estimate so the router could make a simple choice.</p><p>A common rule says English text has about <strong>4 characters for every token</strong>. That is good enough for this job.</p><pre>exports.countTokens = (text) =&gt; {<br>  if (!text) return 0;<br>  const estimatedTokens = Math.ceil(text.length / 4);<br>  return estimatedTokens;<br>};</pre><p>This number is not perfect. And that is completely fine. I am not using it for billing or anything very serious. It only helps decide which path to take.</p><h3>How the Router Makes the Decision</h3><p>After counting the estimated tokens, the router compares that number with a fixed limit.</p><pre>const { RAG_TOKEN_THRESHOLD } = require(&quot;../Config/constants&quot;).constants;<br>const { countTokens } = require(&quot;./tokenCounter&quot;);</pre><pre>exports.decideRoute = (text) =&gt; {<br>  const tokenCount = countTokens(text);</pre><pre>  if (tokenCount &gt; RAG_TOKEN_THRESHOLD) {<br>    return &quot;rag&quot;;<br>  }</pre><pre>  return &quot;Direct&quot;;<br>};</pre><p>Instead of writing the limit in different places, I keep everything inside one config file.</p><pre>exports.constants = {<br>  RAG_TOKEN_THRESHOLD: 50000,<br>  CHUNK_SIZE: 1000,<br>  CHUNK_OVERLAP: 150,<br>  TOP_K: 10,<br>  SESSION_EXPIRATION: 3600 * 6,<br>};</pre><p>The cutoff in my project is <strong>50,000 tokens</strong>.</p><p>Here is what happens:</p><ul><li>Less than <strong>50,000 tokens</strong> → Send the whole text directly to the AI.</li><li>More than <strong>50,000 tokens</strong> → Start the full RAG pipeline.</li></ul><p>That pipeline does a few extra things:</p><ul><li>Split the document into chunks</li><li>Create embeddings</li><li>Search for the most useful chunks if needed</li><li>Generate the final questions</li></ul><p>The routing code stays very simple.</p><pre>const route = decideRoute(fullText);</pre><pre>let contentText;</pre><pre>if (route === &quot;Direct&quot;) {<br>  contentText = fullText;<br>} else {<br>  // chunk, embed, and retrieve<br>}</pre><p>Simple code. Easy to read. I like it that way.</p><h3>It Is Not Only About Saving Money</h3><p>Many people think this is only about cost. That is only half of the story.</p><p>When the document is small enough, sending the whole thing gives the AI complete context. It can read everything together and understand links between different parts of the document.</p><p>RAG works in a different way.</p><p>Instead of giving the AI the full document, it only sends the chunks that look most similar to the search query. Most of the time this works very well. But sometimes an important paragraph might not get selected. Things happens.</p><p>That means RAG gives you better scaling for huge documents, but there is a small chance some useful information stays behind.</p><p>Because of that I only use RAG when I actually need it.</p><h3>Final Thoughts</h3><p>This small router keeps the system fast and simple.</p><p>Small files go through the direct path, so the AI gets the complete document and can understand everything together.</p><p>Large files move into the RAG pipeline, making it possible to work with textbooks and very large PDFs without sending everything at once.</p><p>Using RAG for every document is usually not the best choice. Sometimes the simplest solution is the smartest one. Funny enough people forget that.</p><p>Thanks for reading! 😊</p><p>💼 LinkedIn: <a href="https://www.linkedin.com/in/mitul-chowdhury-200974374/">https://www.linkedin.com/in/mitul-chowdhury-200974374/</a><br>💻 GitHub: <a href="https://github.com/Mitul0000">https://github.com/Mitul0000</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea69923e02ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Turning Uploaded PDFs Images and Docs Into Structured JSON with Gemini (Node.js)]]></title>
            <link>https://medium.com/@mitul_digifello/turning-uploaded-pdfs-images-and-docs-into-structured-json-with-gemini-node-js-d6c23f03d96f?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c23f03d96f</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[ocr]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[document-processing]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 17:29:01 GMT</pubDate>
            <atom:updated>2026-07-15T17:29:01.993Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lY_8NBoem7JgWEQ-25013g.png" /></figure><p>I am building a project called <strong>Question Maker</strong>. People upload their study files like PDFs images or documents. Then they choose how many MCQs short questions or long questions they want. After that the app makes a complete question paper with an answer key. Users can also download it as a PDF.</p><p>Before any AI could make questions I had to solve one small but very important problem. How can I get clean text from whatever file someone uploads? It sounds easy but it took more time then I first thought.</p><p>This article is about that part of the project. It is all about reading files and changing them into structured JSON. The biggest problem was making sure Gemini always returned valid JSON that my Node.js app could read without breaking.</p><h3>Sending uploaded files straight to Gemini</h3><p>At first I looked at using different libraries for every file type. One tool for PDFs another for images and another one for Word files. That felt messy.</p><p>So I decided to let Gemini do the hard work.</p><p>Gemini can read many file types by itself. You can send the raw file data and ask it to understand what is inside. It does not matter if it is a scanned notebook photo a PDF or a normal document. They all follow the same process in my app. That made the code much cleaner.</p><p>The uploaded files come from <strong>multer</strong> as buffers. Then I change every buffer into Gemini’s inlineData format.</p><pre>const fileParts = files.map((file) =&gt; ({<br>  inlineData: {<br>    data: file.buffer.toString(&quot;base64&quot;),<br>    mimeType: file.mimetype,<br>  },<br>}));</pre><p>There are two important things happening here.</p><ul><li><strong>Base64 encoding</strong> keeps binary file data safe while sending it inside a JSON request.</li><li><strong>mimeType</strong> tells Gemini what each file really is. It knows if it should read a PDF PNG image or plain text file. So there is no guessing.</li></ul><p>After that I send both the uploaded files and the text prompt together in one request.</p><pre>const contents = [<br>  {<br>    role: &quot;user&quot;,<br>    parts: [...fileParts, { text: promptText }],<br>  },<br>];</pre><pre>const response = await ai.models.generateContent({<br>  model: &quot;gemini-2.5-flash&quot;,<br>  contents,<br>  config: {<br>    responseMimeType: &quot;application/json&quot;,<br>    responseSchema: {<br>      /* ... */<br>    },<br>  },<br>});</pre><h3>Asking Gemini for a fixed JSON structure</h3><p>Getting plain text back was not enough for my project.</p><p>Later I need to split the content into smaller chunks for retrieval and question generation. Because of that I asked Gemini to return the data in a fixed format.</p><pre>{<br>  &quot;sections&quot;: [<br>    {<br>      &quot;heading&quot;: &quot;string&quot;,<br>      &quot;text&quot;: &quot;string&quot;,<br>      &quot;order&quot;: 1<br>    }<br>  ]<br>}</pre><p>Looks simple right. Well not really.</p><p>This is where the real trouble started.</p><h3>The JSON parsing problem</h3><p>Even after using responseMimeType: &quot;application/json&quot; and adding a response schema Gemini sometimes returned JSON that could not be parsed.</p><p>Some common problems were:</p><ul><li>New lines inside a string instead of \n</li><li>LaTeX commands like \frac \therefore or \times with invalid backslashes</li><li>Random Markdown code blocks around the response</li></ul><p>Just one of these mistakes is enough to make JSON.parse() fail.</p><p>When the uploaded files had lots of maths this happened much more often. That was not fun honestly.</p><p>My first idea was very simple. Replace every backslash with another one using regex.</p><p>Bad idea.</p><p>That also changed valid JSON escapes like \n and \&quot;. The JSON became broken in a different way. So that fix was not really a fix.</p><h3>The solution that finally worked</h3><p>Instead of using one big regex I checked the response one character at a time.</p><p>The function keeps track of whether it is currently inside a JSON string. Only characters inside string values are cleaned. Everything outside stays exactly the same.</p><pre>function sanitizeJsonText(text) {<br>  let out = &quot;&quot;;<br>  let inString = false;<br>  let escapedNext = false;</pre><pre>  for (let i = 0; i &lt; text.length; i++) {<br>    const ch = text[i];<br>    const code = text.charCodeAt(i);</pre><pre>    if (!inString) {<br>      if (ch === &#39;&quot;&#39;) inString = true;<br>      out += ch;<br>      continue;<br>    }</pre><pre>    if (escapedNext) {<br>      out += ch;<br>      escapedNext = false;<br>      continue;<br>    }</pre><pre>    if (ch === &quot;\\&quot;) {<br>      const next = text[i + 1];</pre><pre>      if (next &amp;&amp; &#39;&quot;\\/bfnrtu&#39;.includes(next)) {<br>        out += ch;<br>        escapedNext = true;<br>      } else {<br>        out += &quot;\\\\&quot;;<br>      }</pre><pre>      continue;<br>    }</pre><pre>    if (ch === &#39;&quot;&#39;) {<br>      inString = false;<br>      out += ch;<br>      continue;<br>    }</pre><pre>    if (code &lt;= 0x1f) {<br>      switch (ch) {<br>        case &quot;\n&quot;:<br>          out += &quot;\\n&quot;;<br>          break;<br>        case &quot;\r&quot;:<br>          out += &quot;\\r&quot;;<br>          break;<br>        case &quot;\t&quot;:<br>          out += &quot;\\t&quot;;<br>          break;<br>        default:<br>          out += &quot;\\u&quot; + code.toString(16).padStart(4, &quot;0&quot;);<br>      }</pre><pre>      continue;<br>    }</pre><pre>    out += ch;<br>  }</pre><pre>  return out;<br>}</pre><p>Why not just use regex?</p><p>Because JSON formatting is allowed to have spaces tabs and new lines between objects. Those should never be changed.</p><p>I only wanted to clean the text inside string values. A normal regex can not easily tell the difference. That is why checking one character at a time worked much better.</p><p>After cleaning the response parsing became simple again.</p><pre>let parsedData;</pre><pre>try {<br>  parsedData = JSON.parse(sanitizeJsonText(rawText));<br>} catch (error) {<br>  throw new Error(<br>    &quot;Failed to parse JSON from AI response. Raw response: &quot; + rawText<br>  );<br>}</pre><h3>What I learned from this</h3><p>If you are building an app where an LLM returns JSON do not fully trust responseMimeType: &quot;application/json&quot;.</p><p>It helps Gemini return the correct structure but it does not promise that every single character inside the response is safe for JSON.parse().</p><p>If your files contain maths code or lots of special symbols you will probably run into this problem too. Maybe not on day one but it will happen.</p><p>The best thing you can do is:</p><ul><li>Treat every AI response as untrusted text.</li><li>Clean the response before parsing it.</li><li>Do not rely only on regex for fixing JSON.</li><li>Test with real files not only simple examples.</li></ul><p>That one small sanitizing function saved me many hours of debugging. It was one of those boring parts of the project but it made the rest of the pipeline much more reliable. Sometimes the smallest pieces of code end up doing the biggest job.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c23f03d96f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Smart AI Helper with n8n (Telegram + Google + Gmail)]]></title>
            <link>https://medium.com/@mitul_digifello/building-a-smart-ai-helper-with-n8n-telegram-google-gmail-33b1efdc5d24?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/33b1efdc5d24</guid>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-automation]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 17:04:45 GMT</pubDate>
            <atom:updated>2026-05-25T16:35:18.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*QvUsBnQ335dow5Q_hELB3A.png" /></figure><p>Automation is not only about saving time now. It is more like making small systems that can think a little, choose things, and do work for you. In this post, I will show one strong n8n workflow where a single AI helper reads Telegram messages and connects with tools like Google Calendar, Google Tasks, and Gmail.</p><p>This is not just simple automation. It feels like your own AI helper sitting quietly and doing stuff.</p><h3>What This Workflow Actually Does</h3><p>This setup makes a Telegram bot that uses AI. It can do many things like:</p><ul><li>Read what the user types and try to understand it</li><li>Create or change or delete Google Calendar events</li><li>Handle your Google Tasks like adding or removing</li><li>Read emails and also send emails from Gmail</li><li>Reply back fast on Telegram without delay</li></ul><p>All things are controlled by one main AI agent. Like one boss controlling small workers.</p><h3>How This Whole Workflow is Built</h3><h3>1. Telegram Trigger (Starting Point)</h3><p>The flow begins with a Telegram Trigger. This is like the door.</p><p>Whenever someone sends a message:</p><ul><li>The workflow starts running</li><li>The message goes to the AI agent</li></ul><p>So Telegram becomes your main control place. You just type and things happen. Simple.</p><h3>2. AI Agent (The Brain Part)</h3><p>In the middle there is the AI Agent node. This is the main brain. Everything important happens here.</p><p>It can:</p><ul><li>Understand what the user is trying to say (like schedule something tomorrow)</li><li>Decide which tool should be used</li><li>Send proper commands to other services</li></ul><p>You can think like this:</p><p>One brain. Many hands. It controls all.</p><h3>3. Connected Tools (The Working Parts)</h3><p>The AI agent is connected with different tools. Each tool does one type of job. No confusion mostly.</p><h4>Google Calendar Tools</h4><ul><li>Create event</li><li>Delete event</li><li>Update event</li><li>Get events</li></ul><p>Example:</p><p>If you say<br>“Schedule a meeting at 5 PM tomorrow”<br>It will just create it. No need to open calendar. Easy.</p><h4>Google Tasks Tools</h4><ul><li>Create task</li><li>Get tasks</li><li>Update task</li><li>Delete task</li></ul><p>Example:</p><p>“Add task finish homework tonight”<br>Task will be saved fast. Done.</p><h4>Gmail Tools</h4><ul><li>Get all emails</li><li>Send email</li><li>Reply to email</li></ul><p>Example:</p><p>“Send email to John about project update”<br>Email goes out. You did not even open Gmail. Kind of cool.</p><h4>Memory (Optional but Helpful)</h4><p>There is also a memory node. This one is small but very useful.</p><p>It helps the AI to:</p><ul><li>Remember what you said before</li><li>Understand follow-up messages</li></ul><p>Example:</p><p>“Reschedule it to 6 PM”<br>AI knows what “it” means. Because it remembers. Sometimes it may get confused but mostly works.</p><h3>4. Telegram Response (Final Output)</h3><p>After everything is done, the AI sends a reply back to Telegram.</p><p>So the full flow looks like this:</p><p>User → Telegram → AI Agent → Tools → AI → Telegram Reply</p><p>It is like a loop. Message goes and comes back with work done.</p><h3>Real Life Ways You Can Use This</h3><p>You can use this setup in daily life. Some simple ideas:</p><h3>Daily Helper</h3><p>You can ask:</p><ul><li>What tasks are there today</li><li>Add task study physics</li></ul><h3>Smart Time Planning</h3><p>You can say:</p><ul><li>Book meeting with Rahul tomorrow at 4 PM</li><li>Show calendar for today</li></ul><h3>Email Stuff</h3><p>You can type:</p><ul><li>Reply to last email with I will get back soon</li><li>Send email to team about meeting</li></ul><h3>One Control Place</h3><p>Everything is handled from one place only. Telegram. No need to jump between apps again and again.</p><h3>Why This Setup Feels Powerful</h3><h3>One Place for Everything</h3><p>You do not need to open many apps. Just use Telegram and that is enough.</p><h3>AI Takes Decisions</h3><p>You do not click buttons or choose tools. AI decides what to do. Sometimes feels like magic a little.</p><h3>Easy to Grow</h3><p>You can add more tools later like:</p><ul><li>Notion</li><li>Slack</li><li>Databases</li><li>APIs</li></ul><p>It can grow big slowly.</p><h3>Beginner Friendly</h3><p>You do not need heavy coding. Just connect nodes. Even if you are new you can try. Maybe little confusing at first but okay.</p><h3>Important Idea to Understand</h3><p>The most important thing here is this:</p><p>The AI Agent is not doing the work itself. It is choosing which tool should do the work.</p><p>That makes the system:</p><ul><li>Flexible</li><li>Easy to expand</li><li>Simple to upgrade later</li></ul><p>This part is very important. Do not ignore.</p><h3>How You Can Make It Better</h3><p>If you want to go one step ahead, you can try:</p><ul><li>Add login or authentication for each user</li><li>Save data for each user separately</li><li>Add voice input from Telegram to text to AI</li><li>Connect more APIs like weather or stock</li><li>Make a small dashboard to see logs</li></ul><p>It can become very powerful if you keep improving.</p><h3>Conclusion</h3><p>This type of automation is slowly becoming the future.</p><p>Instead of opening apps and doing things manually, you just talk to an AI and it handles work in the background. Feels simple but strong.</p><p>With n8n, you are not only automating small tasks. You are building your own AI system. And that is kind of crazy if you think about it.</p><p><em>Github project link: </em><a href="https://github.com/Mitul0000/AI-Productivity-Manager.git"><em>https://github.com/Mitul0000/AI-Productivity-Manager.git</em></a></p><p><em>I regularly share experiences on AI, Security, Development. Follow for </em><a href="https://www.linkedin.com/in/mitul-chowdhury-200974374/"><strong><em>more</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33b1efdc5d24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Evolution of Learning Programming: Why Pre-AI Methods Still Shape the Best Approach in Computer…]]></title>
            <link>https://medium.com/@mitul_digifello/the-evolution-of-learning-programming-why-pre-ai-methods-still-shape-the-best-approach-in-computer-936999d4868e?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/936999d4868e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-engineering]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Sat, 21 Mar 2026 16:31:11 GMT</pubDate>
            <atom:updated>2026-03-21T16:31:11.846Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Evolution of Learning Programming: Why Pre-AI Methods Still Shape the Best Approach in Computer Science</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dV1VVGPPtzsLSwxs.jpg" /><figcaption>Image taken from the source https://www.siteuptime.com/</figcaption></figure><p>Today many students in computer science and engineering believe that using AI for ideas, generating codes is the new standard.</p><p>However if we look at the past, how engineers learned, a very different picture appears. The most of the tools or platform that we are using nowadays were build long ago without the help of AI. The engineers then relied on books, manuals, documentation for learning concepts.</p><p>This difference in learning approach is essential because it shows what actually builds deep understanding and what only creates the illusion of it.</p><h3>How Engineers Learned Before AI</h3><p>Before modern tools like AI learning programming required patience and active effort. Engineers depended heavily on structured resources.</p><p>They primarily used books and official documentation as their main source of knowledge. Instead of copying the solution from the AI or tutorials, they would type code by hand, run them, and debug them. This process forced them to understand every line, because there was no shortcut to getting the program to work.</p><p>At the same time, learning was strongly project-based. Many programmers while reading a book to learn some concepts started with small, simple projects like writing BASIC programs, building small utilities helped them to retain the knowledge that they were gaining from the book. In the process of making the project they had to go through the documentation as the content of the book is not always enough. This helped them to learn in dept concepts.</p><p>This process is time taking but very usefull to work in industry where learning followed an apprenticeship model. Companies trained engineers internally and junior developers worked under experienced engineers. They read internal documentation, and gradually took on more responsibility.</p><h3>How Modern Students Are Learning</h3><p>Today we think that learning the same content is much easier and less time taking. With AI tools any student can generate project ideas, system architecture, and complete code within minutes.</p><p>This has changed the learning approach of the student. Instead of making the things step by step, they often generate full projects and then try to understand them afterward. While this may seem efficient but it usually results in surface level understanding. Students can describe what the code does but struggle to explain how it works internally, debug unexpected errors, or modify it for new situations.</p><p>There is also a miss understanding that AI will always be available so learning to code with deep knowledge is not necessary. However this assumption proves wrong when problems become complex and also when the code is not documented properly. In such cases AI cannot independently design correct solutions. It can only assist someone who already understands the problem.</p><h3>The Role of AI in Learning</h3><p>AI is not the problem. The problem lies in the way the AI is used.</p><p>AI can be used efficiently. For example it can help clarify difficult concepts, explain error messages, provide feedback on code. It can also generate practice questions or point to useful learning resources.</p><p>However problems arise when AI is used to replace human brain. Relying on it to generate full project ideas, write large portions of code often prevents real understanding from developing.</p><p>Experienced programmers consistently emphasize one idea. Tools should assist thinking, not replace it. AI is most effective when it acts as a support system rather than a primary driver.</p><h3>The Old-School Method of Learning a Language</h3><p>The traditional way of learning a programming is still considered effective because it is structured and active.</p><p>The process usually begins with choosing one solid book and treating it as a complete learning path for the specific topic that the user wants to learn. Instead of jumping between multiple sources, the focus stays on one consistent explanation of the subject.</p><p>Learning is done actively. This means:</p><ul><li>Typing every code example manually</li><li>Running and modifying the code</li><li>Observing what changes and why</li></ul><p>After reading a section learners often try to recreate small examples from memory. This helps test whether they actually understand the concept or just recognize it.</p><p>At the same time a small project is started early. Instead of waiting until the end of the book, learners build something simple alongside their reading. As new concepts appear in the book, they are directly applied to the project. This creates a continuous loop of learning and application.</p><h3>Building Projects Without Relying on AI</h3><p>Project building is where our learning goes beyond the concepts of the book and goes more deeper.</p><p>The process typically starts with a small and clearly defined idea such as a simple to do list. Instead of planning something large, the focus remains on a few concrete features.</p><p>Each feature is then broken into smaller steps. The programmer describes what needs to happen in simple terms and then translates that into code. When additional tools or libraries are required, they are discovered through documentation and research.</p><p>Before integrating any library into the main project, it is first learned separately. This often involves:</p><ul><li>Reading official documentation</li><li>Trying basic examples</li><li>Building a small test program</li></ul><p>This approach ensures that every tool used in the project is properly understood.</p><h3>The Most Effective Learning Approach Today</h3><p>The most effective approach in 2026 is not about choosing between old methods and AI but use them together.</p><p>Strong fundamentals still come first. These are best developed through books, documentation, and structured learning resources. Core concepts like programming logic, data structures, and system behavior cannot be replaced by generated code.</p><p>AI then acts as a supporting tool. It can help explain difficult topics and assist in debugging. However it should not replace the process of thinking, designing, and building.</p><p>Projects should be started early and kept small. As challenges arise the solution should come from revisiting concepts and understanding the problem more deeply rather than immediately asking AI for a complete answer.</p><p>Most importantly code should never be treated as something to copy. Whether it comes from a book or AI, it should be typed, modified, and tested. Real learning happens when the programmer interacts with the code, not when they simply read it.</p><h3>Conclusion</h3><p>The discussed method is for one who is new in the world of programming. The use case of AI varies with experience. An experienced person after having the knowledge of everything, can use AI to write code for time efficiency or to handle workload. But for the one who is learning the concepts of programming for the first time, AI can become the biggest enemy for them.</p><p>Earlier engineers developed strong skills because they had no shortcuts. They learned through books, documentation, and continuous practice. This forced them to think deeply and understand systems at a fundamental level.</p><p>In the process of learning if we think to save time, we need to even sacrifice understanding. Without active effort it is easy to create the illusion of knowledge without actually developing it.</p><p>The most effective learning method remains the one that builds real understanding. AI can support this process but it cannot replace it.</p><p>In the end, the ability to solve real problems comes from how well you understand the system not how quickly you can generate code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936999d4868e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My affiliate marketing automation with n8n (Wordpress + Worriorplus)]]></title>
            <link>https://medium.com/@mitul_digifello/my-affiliate-marketing-automation-with-n8n-wordpress-worriorplus-fa13c1bd4f1b?source=rss-150b28630330------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa13c1bd4f1b</guid>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[affiliate-marketing]]></category>
            <dc:creator><![CDATA[Mitul Chowdhury]]></dc:creator>
            <pubDate>Wed, 05 Nov 2025 07:51:50 GMT</pubDate>
            <atom:updated>2025-11-05T07:51:50.710Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qfg6W06JKzbF-HN9WyTgdg.png" /><figcaption>My affiliate marketing automation with n8n (Wordpress + Worriorplus)</figcaption></figure><p>If you have done affiliate marketing then you must have an idea that how hectic it is to repeat the same process — finding offers, witting posts, formatting, uploading images and publishing them one by one.</p><p>In the similar way it was frustrating to myself until I decided to <strong>automate the entire process</strong> using <strong>n8n</strong>, <strong>WordPress</strong>, and <strong>WarriorPlus</strong>.</p><p>Today my blogs are even posted when I am asleep. Here is how I automated the process :-</p><h3>The Idea: Automate Everything from Offer to Post</h3><p>I wanted a system that could:</p><ul><li>Pull new product info from my Google Sheet (where I store WarriorPlus offers).</li><li>Write a <strong>fully SEO-optimized article</strong> automatically.</li><li>Generate the <strong>title, slug, and meta description.</strong></li><li>Create and set a <strong>featured image</strong>,</li><li>Then <strong>publish it on WordPress</strong>, and finally</li><li>Send me a <strong>Telegram notification</strong> saying “Post Published ✅”.</li></ul><p>Basically — a <strong>self-writing affiliate blog</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b4LQCehQdEzt0I1mDtQueQ.png" /></figure><h3>The Workflow: My n8n Setup Explained</h3><p>Here is how the flow works (you can see it in my screenshot above 👆):</p><h3>1. Schedule Trigger</h3><p>Every morning, n8n automatically activates the flow using a <strong>Schedule Trigger</strong>.<br> This ensures new content goes live consistently without me lifting a finger.</p><h3>2. Get Rows from Google Sheet</h3><p>The workflow reads my product sheet where I have listed all my upcoming WarriorPlus offers (product name, affiliate link, category, author name, about the product).</p><h3>3. Copywriter AI Agent (GPT-4o-mini)</h3><p>I have choose this model as open AI provides free api key by which easily we can access this model. This is the brain of the system.<br> It takes the product info and writes a <strong>human-like, SEO-optimized blog post</strong> — formatted perfectly for WordPress. The prompt that I have provided here is totally based on my requirements.</p><h3>4. Create Title, Slug &amp; Meta</h3><p>Here another OpenAI node generates catchy blog titles, custom slugs, and meta descriptions all optimized for SEO.<br> It uses a <strong>structured output parser</strong> so that it provides the output in defined structure.</p><h3>5. Merge &amp; Clean Up HTML</h3><p>Both the content and metadata are merged together and then a quick cleanup step ensures the HTML is WordPress-friendly.</p><h3>6. Post on WordPress</h3><p>Once ready the post is automatically published on my site (digifello.com).<br> It includes title, body, meta description.</p><h3>7. Set Featured Image</h3><p>The system also:</p><ul><li>Fetches the image from the link that I need to put in the sheets and</li><li>Uploads it to WordPress and</li><li>Sets it as the <strong>featured image</strong> for the post.</li></ul><h3>8. Telegram Notification</h3><p>Finally, it sends me a success message on Telegram with the post link so I know my content is live.</p><p>This was the whole process of automation.</p><h3>Tools I Used</h3><ul><li><strong>n8n</strong> — for automation</li><li><strong>Google Sheets</strong> — to manage WarriorPlus offers</li><li><strong>OpenAI (GPT-4o-mini)</strong> — for writing and metadata generation</li><li><strong>WordPress API</strong> — to publish posts automatically</li><li><strong>Telegram Bot</strong> — to send success messages</li></ul><h3>Why This Changed Everything</h3><p>Before automation:</p><ul><li>I used to spend <strong>1–2 hours per post</strong>.<br> After automation:</li><li>It takes only around 20<strong> minutes</strong> to review and approve a post.</li></ul><h3>Future Plans</h3><p>Next, I’m planning to:</p><ul><li>Auto-detect new WarriorPlus launches via API,</li><li>Generate Canva-style featured images dynamically,</li><li>And auto-schedule posts based on competition level.</li></ul><p>Basically — full <strong>hands-free affiliate blogging</strong>.</p><blockquote><strong>Note:</strong> After the post is published automatically, the review post needs to be checked before making it public. As the content was generated by AI, it is most likely to take time to get indexed in Google, so for that I recommend you change some lines, words, and phrases in the article.</blockquote><h3>Conclusion</h3><p>If you are frustrated by repeating some tasks every day, then you can automate the process and save your precious time.</p><p>If you are into affiliate marketing and tired of doing the same manual steps daily then try n8n and automate your process.<br>It is open-source, flexible, and once you set it up… it feels like magic.</p><p><strong>Tags:</strong> #AffiliateMarketing #n8n #Automation #WordPress #WarriorPlus #AIContent</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa13c1bd4f1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>