<?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 Karthick Kannan on Medium]]></title>
        <description><![CDATA[Stories by Karthick Kannan on Medium]]></description>
        <link>https://medium.com/@karthick25487?source=rss-db141798d23d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f1B1hFZ5IiS11T3Z-i-TNg@2x.jpeg</url>
            <title>Stories by Karthick Kannan on Medium</title>
            <link>https://medium.com/@karthick25487?source=rss-db141798d23d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:57:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karthick25487/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[System Booting in Linux]]></title>
            <link>https://medium.com/@karthick25487/system-booting-in-linux-6e2e15cb1ef2?source=rss-db141798d23d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e2e15cb1ef2</guid>
            <category><![CDATA[linux-booting]]></category>
            <category><![CDATA[booting]]></category>
            <dc:creator><![CDATA[Karthick Kannan]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 17:40:11 GMT</pubDate>
            <atom:updated>2026-10-06T17:40:11.298Z</atom:updated>
            <content:encoded><![CDATA[<p>Before I attempt to illustrate the steps involved in booting a Laptop /PC, it will be good to mention a few terminologies</p><p><strong>Bootstrap loader —</strong></p><ul><li>a small piece of code to locate the kernel, loads it into main memory, and starts its execution.</li><li>it can also perform a variety of tasks. Usually, it runs diagnostics to determine the state of the machine. If the diagnostics pass, the program can continue with the booting steps.</li></ul><p>ROM —</p><ul><li>short form for read-only memory. Compare this with RAM, which is random access memroy. ROM is convenient for system booting because it needs no initialization and serves the purpose.</li><li>In common terminology, ROM are also known as <strong>firmware</strong>, (characteristics fall somewhere between those of hardware and software). Executing code in ROMis slower than executing code in RAM. Some systems store the operating system i firmware and copy it to RAM for fast execution.</li></ul><p>GRUB -</p><p>For large operating systems (including Windows, UNIX), the bootstrap loader is stored in firmware, and the operating system is on disk. GRUB is an example of an open-source bootstrap program for Linux systems.</p><p>Once the bootstrap program has been loaded, it can traverse the file system to find the operating system kernel, load it into memory, and start its execution. At this point of time, the system is no longer booting. It is said to be in Running state.</p><p>With those terminologies explained, lets go over the conceptual illustration of the Linux system boot process.</p><p>Step 1: Power-On and firmware (BIOS)</p><ul><li><strong>POWER ON:</strong> Think of it as switching on the power button</li><li><strong>FIRMWARE (BIOS):</strong> See above.</li><li><strong>POST: RUN DIAGNOSTICS:</strong> <strong>Power-On Self-Test (POST)</strong>. It checks critical hardware like the CPU, RAM, and storage. If the POST fails for some reason, the boot process halts (often with beeps or an error message).</li><li><strong>POST PASSES:</strong> If critical components are healthy, the firmware proceeds.</li><li><strong>LOCATE BOOTSTRAP LOADER:</strong> The firmware reads its boot order settings (e.g., ‘Boot from SSD first’). It accesses the specified storage device (HDD/SSD).</li></ul><p>Step 2: GRUB Takes Over</p><p>After firmware’s job is done, execution control is given to the tiny bootstrap program (GRUB). The tiny initial code runs and initializes minimal disk access, and <em>loads the Stage 2 Bootloader (also known as GRUB)</em> into <strong>MAIN MEMORY (RAM)</strong>. From there, user is presented with a <strong>GRUB Menu: </strong>familiar boot menu (e.g., <em>Linux Kernel 5.15</em>, <em>Advanced Options</em>).</p><blockquote>From this step, two interesting things happen. GRUB locates two critical files on the storage device — vmlinuz and initrd.img (temporary File system called Initial RAM disk). These two files are loaded into the RAM</blockquote><p>Step 3: Kernel Initialization and User Space Transition</p><p>As GRUB finishes the loading of the 2 files, it now hands over control to the loaded kernel image. The kernel must initialize the entire system and prepare the environment for userspace applications.</p><ul><li><strong>vmlinuz (KERNEL IMAGE) -&gt; </strong>The kernel image, previously loaded into RAM, begins by self-decompressing. It starts running, takes over CPU management, memory management, and basic hardware initialization.</li><li><strong>MOUNT TEMPORARY ROOT (</strong><strong>initrd.img):</strong> a tiny, pre-built filesystem containing <em>only</em> essential storage drivers. The kernel mounts this temporary RAM disk as its first, temporary root (/) filesystem.</li><li>Kernel locates the <strong>REAL ROOT FILESYSTEM (/)</strong> and <em>switches</em> its root from the RAM disk to the real disk.</li><li><strong>INIT PROCESS (PID 1):</strong> With the real filesystem accessible, the kernel launches the very first userspace program known as the <strong>Init Process (</strong><a href="https://lwn.net/Articles/1008721/"><strong>systemd </strong></a><strong>)</strong>, which always gets Process ID 1 (PID 1).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsYy7O2qKgkeaK5b6OxO7A.jpeg" /><figcaption>Illustration for step 3</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e2e15cb1ef2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embedded Pointers and its implications]]></title>
            <link>https://medium.com/@karthick25487/embedded-pointers-and-its-implications-ecc213ad9574?source=rss-db141798d23d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecc213ad9574</guid>
            <category><![CDATA[innodb]]></category>
            <category><![CDATA[embedded-pointers]]></category>
            <category><![CDATA[dbms]]></category>
            <dc:creator><![CDATA[Karthick Kannan]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 16:20:19 GMT</pubDate>
            <atom:updated>2026-10-05T16:20:19.101Z</atom:updated>
            <content:encoded><![CDATA[<p>While reading for a MCQ based test, I came across this fascinating concept of Embedded Pointers which I wanted to explore in this article.</p><p>Having pretended to know DS and Algorithms for the last 10 years, I would rather be too proud to admit that I know what Embedded pointers are. While talking about embedded pointers, we dont *really* consider conceptual view of a database. Rather, an embedded pointers are an explicit physical storage addresses, page offsets, or record IDs stored directly within a data record’s structure.</p><p><strong>Context of an embedded pointer</strong> -</p><ul><li>In relational storage world, establishing a relationship (like Department-Employee) relies on <strong>foreign </strong>keys and <strong>secondary </strong>indexes.</li><li>But, in terms of Low-Level Organization of data, we have this common data structure for efficient retrieval (using indexing techniques).</li><li>In engines like InnoDB (MySQL), leaf nodes use embedded pointers(e.g., next_page and prev_page offsets) to form a doubly linked list across disk pages. This enables efficient sequential range scans without re-traversing the root B+ tree.</li><li>In graph database world, you can think of an index-free adjacency approach to model data. Here, nodes contain direct embedded pointers to adjacent edges and neighbor nodes, allowing $O(1)$ traversal steps.</li></ul><blockquote>In InnoDB storage, let me illustrate with an actual example. Without going into too much detail, tables are organized as <strong>clustered indexes</strong> structured as B+ trees. The primary key of a table forms the B+ tree, and the leaf nodes store the complete table rows (data payloads).<br>For example, <br>CREATE TABLE Employees ( emp_id INT PRIMARY KEY, name VARCHAR(50), salary INT ) ENGINE=InnoDB;</blockquote><p>Know that in InnoDB, all data is divided into fixed-size <strong>16 KB pages</strong>. Each page has a unique 4-byte <strong>Page Number</strong> (like Page 3, Page 10, Page 11). In this case, we will consider a type of Embedded pointer called <strong>Page Link Pointers:</strong> Leaf nodes store embedded FIL_PAGE_NEXT and FIL_PAGE_PREV page numbers in their headers to form a doubly linked list across disk pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*2sKpAOOtj16-RrqJoLWxww.png" /><figcaption>Horizontal pointers</figcaption></figure><p>Implementation details -</p><p>Every InnoDB page starts with a <strong>38-byte Page Header</strong> (FIL Header). Within this header, InnoDB embeds two 4-byte page number pointers:</p><ul><li>FIL_PAGE_NEXT (Offset 12): Page number of the next logical leaf page.</li><li>FIL_PAGE_PREV (Offset 8): Page number of the previous logical leaf page.</li></ul><p>In above example:</p><ul><li>On <strong>Page 10</strong>: FIL_PAGE_NEXT stores <strong>11</strong>.</li><li>On <strong>Page 11</strong>: FIL_PAGE_PREV stores <strong>10</strong>.</li></ul><p><strong>Why this matters?</strong></p><p>If we ever run a query like this -SELECT * FROM Employees WHERE emp_id &gt;= 101 AND emp_id &lt;= 208;</p><ol><li>InnoDB navigates down the tree from Root to Leaf (Page 10) via B+ tree vertical traversal first</li><li>It reads records on Page 10 (101: Alice, 105: Bob).</li><li>To find the next record, InnoDB does <strong>not</strong> re-traverse the root tree. It reads the embedded pointer FIL_PAGE_NEXT = 11 directly from Page 10&#39;s header and immediately jumps to <strong>Page 11</strong> to read 201: Charlie and 208: David.</li></ol><p>Putting it all together, lets look at a toy-example of B+ Tree in Python</p><pre>class BPlusTreeNode:<br>    def __init__(self, is_leaf=False):<br>        self.is_leaf = is_leaf<br>        self.keys = []<br>        # For Internal Nodes: pointers to child BPlusTreeNode instances<br>        # For Leaf Nodes: key-value data payloads or record slots<br>        self.children = []<br><br><br>class BPlusTreeLeafNode(BPlusTreeNode):<br>    def __init__(self):<br>        super().__init__(is_leaf=True)<br>        # Embedded pointers for horizontal scans (doubly linked list across leaves)<br>        self.next = None<br>        self.prev = None</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecc213ad9574" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI arrogance!!]]></title>
            <link>https://medium.com/@karthick25487/ai-arrogance-aade601e3c6c?source=rss-db141798d23d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aade601e3c6c</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Karthick Kannan]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 08:32:02 GMT</pubDate>
            <atom:updated>2026-09-30T08:32:02.081Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aade601e3c6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scoring above your weight at GIA]]></title>
            <link>https://medium.com/@karthick25487/scoring-above-your-weight-at-gia-c8f2d9371222?source=rss-db141798d23d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8f2d9371222</guid>
            <category><![CDATA[thoma]]></category>
            <category><![CDATA[gia]]></category>
            <category><![CDATA[assessment]]></category>
            <dc:creator><![CDATA[Karthick Kannan]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 18:11:43 GMT</pubDate>
            <atom:updated>2026-09-28T18:11:43.189Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I had a chance to take the <a href="https://www.thomas.co/assessments/general-intelligence-assessment-gia">Thomas GIA assessment</a> exam for a company that I was interviewing for. According to their website, it assesses fluid intelligence — the part of your IQ that defines learning agility (how quickly you can learn, adapt). In the actual test, which runs for roughly 25 minutes, it measures <strong>five key areas</strong> that assess workplace performance:</p><ul><li><strong>Reasoning</strong> — which tests your logical decision-making</li><li><strong>Perceptual speed</strong> — attention to detail and learning agility</li><li><strong>Number speed and accuracy</strong> — comfort with numerical data</li><li><strong>Word meaning</strong> — verbal reasoning and communication</li><li><strong>Spatial visualization</strong> — which tests your abstract thinking!</li></ul><p>Among all these sections, I think the most challenging one for me was the Spatial visualization. There are good amount of information online regarding how to ace this test. Notably this one — <a href="https://medium.com/@by.anna1990/how-to-pass-thomas-international-gia-test-8cc03d21da2">https://medium.com/@by.anna1990/how-to-pass-thomas-international-gia-test-8cc03d21da2</a> and I encourage everyone to read this one fully. my intention here is to explain a few things I had to go through while preparing for the Spatial visualization test.</p><p><em>So what is Spatial visualization?</em> — As per Thomas GIA website, Spatial<br>Visualization assesses your ability to manipulate mental images of objects. Underscore the word ‘<em>mental images</em>’ since you hardly have any time to draw this image in a piece of paper. You would need to understand how shapes and patterns fit together and how fast you can come to a conclusion. What that basically means is, you will be provided with 2 boxes and asked to identify whether the bottom symbol in the first box is <strong>identical </strong>to the top symbol, or is a <strong>mirror </strong>image of the top symbol. Similarly, you have to identify whether the bottom symbol in the second box is identical to the top symbol. Depending on what you assess at that point, you will have to choose either 0 or 1 or 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*Lq2Q3JGXxjMJPIkDyryvig.png" /></figure><blockquote>On taking and re-taking mock exams using the <a href="https://www.jobtestprep.co.uk/thomas-international-gia-practice">jobtestprep </a>course — (highly recommended to get a sense of how fast paced this entire test is), I came to a conclusion that spatial reasoning needs a different strategy altogether.</blockquote><p>I started my initial assessment with 4 points (out of 10 that is). While doing the exercise, I always had such an adrenaline rush that I couldn’t complete the test within the time provided. Note that in the actual test, there is no timer provided in your computer screen. It was only getting harder to visualize the letters provided in the test, since I had no understanding of how rotating , mirroring a letter (say with 2 or 3 twists) affects the final outcome</p><p><em>how to improve spatial reasoning? </em>— ‘go back to the basics’. Few options like drawing alphabets in a piece of paper, practicing rotation on them. But I still had some setbacks. I think my brain was not equipped to get a complete feel of what mirroring / rotation is all about. Enter Fridge magnets!!!</p><figure><img alt="Fridge magnets" src="https://cdn-images-1.medium.com/max/1024/1*8FD-8k6v4tbvhp2tof6bSg.jpeg" /><figcaption>Fridge magnets</figcaption></figure><p>Now its hard for me to explain why this worked for me. It probably has to do with neuroscience, But, I spent a complete day on playing with the alphabets like a 2 year old!!. Each flip and rotation that I attempted with different letters made me register the ‘movements’ much better in my brain. It helped me in reducing my anxiety, got an interesting dream of the letter ‘G’ rolling down a cliff :) , and importantly while taking the test, I could truly visualize better.</p><p>Try this the next time you take the spatial reasoning test and see if that improved your scores!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8f2d9371222" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first..]]></title>
            <link>https://medium.com/@karthick25487/my-first-69a1434e139f?source=rss-db141798d23d------2</link>
            <guid isPermaLink="false">https://medium.com/p/69a1434e139f</guid>
            <category><![CDATA[self-discovery]]></category>
            <dc:creator><![CDATA[Karthick Kannan]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 04:55:29 GMT</pubDate>
            <atom:updated>2025-03-25T04:55:29.103Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s my first article in medium and I have been thinking about what to write. Since I am a software developer by profession, it makes sense to write about that. However I think I don’t want to do that. Not because it’s boring but there is something more important to share about..</p><p>Ever since I started working a desk job, I got into the habit of what they call lazy. Now, I don’t want to defend myself but I always had little bit of fun working out physically- which started all thanks to my Uncle who helped me in imbibing the world of physical activity. I still remember the first time he did pushups in our old house and taught me whatever little I know and could retain at that age. Which brings me to my most interesting observation- whatever you feel you are good at and whatever you have real passion for, please don’t hold back. You never know who gets inspired seeing you do your favourite thing. In the worst case scenario, you still get to do the thing that you love and become good at it eventually. And yes, I am trying to motivate myself and my family around me as much as possible.</p><p>Bye!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69a1434e139f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>