<?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 Kemboi Michael on Medium]]></title>
        <description><![CDATA[Stories by Kemboi Michael on Medium]]></description>
        <link>https://medium.com/@kemboimichael52?source=rss-be249bf5230a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dsGR00njBaTu1DcI</url>
            <title>Stories by Kemboi Michael on Medium</title>
            <link>https://medium.com/@kemboimichael52?source=rss-be249bf5230a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 01:17:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kemboimichael52/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[How I Used an NFC Sticker to Control Spotify Between My Phone and Laptop]]></title>
            <link>https://medium.com/@kemboimichael52/how-i-used-an-nfc-sticker-to-control-spotify-between-my-phone-and-laptop-4597732bc646?source=rss-be249bf5230a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4597732bc646</guid>
            <category><![CDATA[nfc-sticker]]></category>
            <category><![CDATA[rfid-tags]]></category>
            <dc:creator><![CDATA[Kemboi Michael]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 08:43:03 GMT</pubDate>
            <atom:updated>2026-08-23T20:06:38.793Z</atom:updated>
            <content:encoded><![CDATA[<p>A few weeks ago I fell into a rabbit hole watching NFC tag videos on YouTube. Someone tapped their phone on a tiny sticker and their entire desk setup turned on. Lights, monitor, speakers, all of it. One tap.</p><p>I don’t have a smart home. I don’t have smart lights. But I do have Spotify playing basically every waking hour of my day. And I have one specific annoyance that has bugged me forever.</p><p>Every time I sit at my desk I have to open Spotify, tap the little speaker icon, find my laptop in the device list, and switch playback over. Every time I leave I do it in reverse. It takes maybe 10 seconds but it’s the kind of friction that quietly drives you insane over months.</p><p>So I fixed it with a sticker.</p><p>Now I tap my phone on a small NFC sticker stuck to my desk and my music instantly moves to my laptop. Tap it again and it comes back to my phone. That’s it. No app switching. No menus. Just tap.</p><p>Here’s exactly how I built it, from scratch, step by step.</p><h3>What You Need</h3><ul><li>An Android phone with NFC</li><li>An NFC sticker (NTAG213 type, costs almost nothing)</li><li>Spotify Premium (required for device switching via the API)</li><li>Spotify desktop app installed on your laptop</li><li>Two free Android apps: <strong>HTTP Shortcuts</strong> by Waboodoo and <strong>NFC Tools</strong> by wakdev</li><li>A free Spotify Developer account</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Id3dPNPNiUgmc6oEsGdZrw.jpeg" /><figcaption>Mobile Apps you’ll need</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUaCNHb8OE-oTYjzzQZiqg.png" /><figcaption>NFC Sticker</figcaption></figure><h3>How It Actually Works</h3><p>Spotify has a Web API that lets you transfer playback between devices with a single HTTP request. The trick is doing this automatically and permanently without having to refresh tokens every hour.</p><p>Here is the full flow when you tap the sticker:</p><ol><li>Your phone reads the NFC sticker and opens HTTP Shortcuts.</li><li>HTTP Shortcuts fetches a fresh Spotify access token using a stored refresh token</li><li>It checks which device is currently active</li><li>It switches playback to the other device</li></ol><p>The refresh token is the secret sauce. Unlike access tokens that expire every hour, a refresh token lives forever. You get it once and never think about it again.</p><h3>Step 1 — Create a Spotify Developer App</h3><p>Go to <strong>developer.spotify.com/dashboard</strong> and log in with your Spotify account.</p><p>Click <strong>Create App</strong> and fill in:</p><ul><li><strong>App name:</strong> NFC Transfer (or anything)</li><li><strong>Redirect URI:</strong> <a href="https://oauth.pstmn.io/v1/callback">https://oauth.pstmn.io/v1/callback</a></li><li>Tick the <strong>Web API</strong> checkbox</li></ul><p>Once created, go to <strong>Settings</strong> and copy your <strong>Client ID</strong> and <strong>Client Secret</strong>. Keep these handy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvUa52uoG03uo01-EyvKgQ.png" /><figcaption>Spotify Developr Portal</figcaption></figure><h3>Step 2 — Get Your Permanent Refresh Token</h3><p>This is a one-time process. Do it once and you never need to touch it again.</p><h3>Authorize the app</h3><p>Paste this into your browser, replacing YOUR_CLIENT_ID:</p><pre>https://accounts.spotify.com/authorize?client_id=YOUR_CLIENT_ID&amp;response_type=code&amp;redirect_uri=https://oauth.pstmn.io/v1/callback&amp;scope=user-modify-playback-state%20user-read-playback-state</pre><p>Log in and approve. Your browser redirects to a broken page. That is normal. Copy the long string after code= in the URL bar. It starts with AQ... and you have about 60 seconds before it expires. Move quickly.</p><h3>Exchange the code for a refresh token</h3><p>Open a terminal and run this, replacing all three placeholders:</p><pre>curl -X POST &quot;https://accounts.spotify.com/api/token&quot; \<br>  --data-urlencode &quot;grant_type=authorization_code&quot; \<br>  --data-urlencode &quot;code=YOUR_CODE&quot; \<br>  --data-urlencode &quot;redirect_uri=https://oauth.pstmn.io/v1/callback&quot; \<br>  --data-urlencode &quot;client_id=YOUR_CLIENT_ID&quot; \<br>  --data-urlencode &quot;client_secret=YOUR_CLIENT_SECRET&quot;</pre><p>You get back a JSON response like this:</p><pre>{<br>  &quot;access_token&quot;: &quot;BQA...&quot;,<br>  &quot;token_type&quot;: &quot;Bearer&quot;,<br>  &quot;expires_in&quot;: 3600,<br>  &quot;refresh_token&quot;: &quot;AQD...&quot;,<br>  &quot;scope&quot;: &quot;user-modify-playback-state user-read-playback-state&quot;<br>}</pre><p>Copy the refresh_token value and save it. This is permanent.</p><h3>Save a helper script</h3><p>Create a script so you can get fresh access tokens anytime:</p><pre>nano ~/spotify_token.sh</pre><p>Paste this inside (replace the placeholders):</p><pre>curl -X POST &quot;https://accounts.spotify.com/api/token&quot; \<br>  --data-urlencode &quot;grant_type=refresh_token&quot; \<br>  --data-urlencode &quot;refresh_token=YOUR_REFRESH_TOKEN&quot; \<br>  --data-urlencode &quot;client_id=YOUR_CLIENT_ID&quot; \<br>  --data-urlencode &quot;client_secret=YOUR_CLIENT_SECRET&quot;</pre><p>Run it anytime with bash ~/spotify_token.sh.</p><h3>Step 3 — Get Your Device IDs</h3><p>You need the Spotify device IDs for both your laptop and your phone.</p><p>Make sure Spotify is open and playing on both devices. Run your token script:</p><pre>bash ~/spotify_token.sh</pre><p>Copy the access_token from the response, then run:</p><pre>curl -X GET &quot;https://api.spotify.com/v1/me/player/devices&quot; \<br>  -H &quot;Authorization: Bearer YOUR_ACCESS_TOKEN&quot;</pre><p>You get a list like this:</p><pre>{<br>  &quot;devices&quot;: [<br>    {<br>      &quot;id&quot;: &quot;c3ee7ff6d7dc6eb8b12f561529b8571621f78981&quot;,<br>      &quot;name&quot;: &quot;My Laptop&quot;,<br>      &quot;type&quot;: &quot;Computer&quot;<br>    },<br>    {<br>      &quot;id&quot;: &quot;1de0f66d1322485f0b9644feff207af7e488a4e7&quot;,<br>      &quot;name&quot;: &quot;My Phone&quot;,<br>      &quot;type&quot;: &quot;Smartphone&quot;<br>    }<br>  ]<br>}</pre><p>Save both IDs.</p><h3>Step 4 — Build the Shortcuts in HTTP Shortcuts</h3><p>Install <strong>HTTP Shortcuts</strong> from the Play Store. You will create 4 shortcuts total.</p><h3>Create a global variable</h3><p>Go to the menu (three lines, top left) then Global Variables, tap plus, choose Constant.</p><ul><li>Name: spotify_token</li><li>Value: leave empty</li><li>Save</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5XT7aKDQdlsWPlqukoM2Q.png" /><figcaption>Global Variable Menu</figcaption></figure><h3>Shortcut 1 — Refresh Spotify Token</h3><p>This fetches a fresh token and saves it automatically.</p><ul><li><strong>Name:</strong> Refresh Spotify Token</li><li><strong>Method:</strong> POST</li><li><strong>URL:</strong> <a href="https://accounts.spotify.com/api/token">https://accounts.spotify.com/api/token</a></li><li><strong>Headers:</strong> Content-Type set to application/x-www-form-urlencoded</li><li><strong>Body (x-www-form-urlencoded), add 4 fields:</strong></li><li>grant_type = refresh_token</li><li>refresh_token = your refresh token</li><li>client_id = your client ID</li><li>client_secret = your client secret</li><li><strong>Scripting, Run on Success:</strong></li></ul><pre>var token = JSON.parse(response.body).access_token;<br>setVariable(&quot;spotify_token&quot;, token);<br>_runAction(&#39;show-toast&#39;, {message: token.substring(0, 20)});</pre><h3>Shortcut 2 — Spotify to Laptop</h3><ul><li><strong>Name:</strong> Spotify to Laptop</li><li><strong>Method:</strong> PUT</li><li><strong>URL:</strong> <a href="https://api.spotify.com/v1/me/player">https://api.spotify.com/v1/me/player</a></li><li><strong>Headers:</strong></li><li>Authorization = Bearer {spotify_token} (use the curly brace picker button)</li><li>Content-Type = application/json</li><li><strong>Body (Custom Text):</strong></li></ul><pre>{&quot;device_ids&quot;:[&quot;YOUR_LAPTOP_DEVICE_ID&quot;],&quot;play&quot;:true}</pre><h3>Shortcut 3 — Spotify to Phone</h3><ul><li><strong>Name:</strong> Spotify to Phone</li><li><strong>Method:</strong> PUT</li><li><strong>URL:</strong> <a href="https://api.spotify.com/v1/me/player">https://api.spotify.com/v1/me/player</a></li><li><strong>Headers:</strong></li><li>Authorization = Bearer {spotify_token} (use the curly brace picker button)</li><li>Content-Type = application/json</li><li><strong>Body (Custom Text):</strong></li></ul><pre>{&quot;device_ids&quot;:[&quot;YOUR_PHONE_DEVICE_ID&quot;],&quot;play&quot;:true}</pre><h3>Shortcut 4 — Check Active Device</h3><p>This is the toggle logic. It checks which device is active and switches to the other one.</p><ul><li><strong>Name:</strong> Check Active Device</li><li><strong>Method:</strong> GET</li><li><strong>URL:</strong> <a href="https://api.spotify.com/v1/me/player">https://api.spotify.com/v1/me/player</a></li><li><strong>Headers:</strong></li><li>Authorization = Bearer {spotify_token} (use the curly brace picker button)</li><li><strong>Scripting, Run on Success:</strong></li></ul><pre>if (!response.body || response.body.trim() === &#39;&#39;) {<br>  enqueueShortcut(&#39;YOUR_SPOTIFY_TO_LAPTOP_SHORTCUT_ID&#39;);<br>} else {<br>  var data = JSON.parse(response.body);<br>  var activeDevice = data.device.id;<br>  if (activeDevice === &#39;YOUR_LAPTOP_DEVICE_ID&#39;) {<br>    enqueueShortcut(&#39;YOUR_SPOTIFY_TO_PHONE_SHORTCUT_ID&#39;);<br>  } else {<br>    enqueueShortcut(&#39;YOUR_SPOTIFY_TO_LAPTOP_SHORTCUT_ID&#39;);<br>  }<br>}</pre><blockquote><em>Important: use the shortcut IDs here, not the names. Find each ID by long pressing the shortcut, tapping Show Info, then copying the Shortcut ID.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*8q_XfN_yY6zc49Eg_1eAPQ.png" /><figcaption>Example of a shortcut ID</figcaption></figure><h3>Create the master Multi-Shortcut</h3><p>Tap plus, choose Multi-Shortcut, name it NFC Spotify. Add these two in order:</p><ol><li>Refresh Spotify Token</li><li>Check Active Device</li></ol><p>Save. This is the shortcut that your NFC sticker will trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKraRFckNES0fUEg9HdRNA.png" /><figcaption>Multi Shortcut Menu</figcaption></figure><h3>Step 5 — Program the NFC Sticker</h3><ol><li>Long press <strong>NFC Spotify</strong> in HTTP Shortcuts</li><li>Tap <strong>Show Info</strong></li><li>Copy the <strong>Deep Linking URL</strong></li><li>Open NFC Tools, tap <strong>Write</strong>, then <strong>Add a record</strong>, then <strong>URL/URI</strong></li><li>Paste the deep linking URL</li><li>Tap <strong>Write / XX Bytes</strong></li><li>Hold your phone against the sticker until you feel a vibration</li></ol><p>Done. The sticker is programmed.</p><h3>Testing It</h3><p>Make sure music is playing on your phone and Spotify is open on your laptop. Tap the sticker. Within 2–3 seconds the music should move to your laptop. Tap again and it comes back to your phone.</p><h3>Keep Spotify Running in the Background</h3><p>This only works if Spotify is running on your laptop. On Linux you can add it to startup apps so it launches minimized automatically:</p><pre>mkdir -p ~/.config/autostart<br>cat &gt; ~/.config/autostart/spotify.desktop &lt;&lt; &#39;EOF&#39;<br>[Desktop Entry]<br>Type=Application<br>Name=Spotify<br>Exec=spotify --minimized<br>Hidden=false<br>NoDisplay=false<br>X-GNOME-Autostart-enabled=true<br>EOF</pre><p>On Windows, open Spotify settings and turn on <strong>Minimize to tray on close</strong>.</p><h3>Troubleshooting</h3><p>Problem Fix 401 Unauthorized Run Refresh Spotify Token manually first Empty device list Make sure Spotify is open and active on the target device Could not trigger shortcut Use shortcut IDs not names in enqueueShortcut() NFC opens browser Deep linking URL should start with http-shortcuts:// not http://http-shortcuts:// Unexpected end of JSON Nothing is playing - start a song first</p><h3>Final Thoughts</h3><p>The whole thing cost me an afternoon and NFC stickers that were basically pocket change. The result is one of those rare automations that genuinely changes a small daily habit for the better.</p><p>There is something unexpectedly satisfying about tapping a sticker and watching your music follow you. And once the token refresh flow is working, you can extend this to do all kinds of things: skip tracks, pause playback, set volume, launch playlists. All from a tap.</p><p>Happy tapping. 🎵</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4597732bc646" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Stigma: Nurturing Mental Health for a Brighter Tomorrow]]></title>
            <link>https://medium.com/@kemboimichael52/beyond-the-stigma-nurturing-mental-health-for-a-brighter-tomorrow-8e428af30a22?source=rss-be249bf5230a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e428af30a22</guid>
            <category><![CDATA[mental-health-awareness]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[suicide]]></category>
            <dc:creator><![CDATA[Kemboi Michael]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 12:42:02 GMT</pubDate>
            <atom:updated>2024-07-08T12:42:02.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding and Prioritizing Mental Health</p><p>In recent years, mental health has rightfully gained attention as a crucial aspect of overall well-being. While physical health often takes center stage, mental health is equally important. It influences how we think, feel, and act, impacting every facet of our lives. This blog post explores the importance of mental health, common challenges, and ways to foster a healthier mind.</p><p>The Importance of Mental Health</p><p>Mental health encompasses our emotional, psychological, and social well-being. It affects our ability to handle stress, relate to others, and make decisions. A strong mental health foundation allows us to navigate life’s challenges, maintain relationships, and achieve our goals. Ignoring mental health can lead to serious consequences, such as anxiety, depression, and other mental health disorders, which can significantly impair daily functioning and quality of life.</p><p>Common Mental Health Challenges</p><p>1. Anxiety Disorders: Characterized by excessive fear or worry, anxiety disorders can interfere with daily activities. Symptoms include rapid heartbeat, restlessness, and difficulty concentrating.</p><p>2. Depression: A persistent feeling of sadness and loss of interest in activities once enjoyed. It can lead to various emotional and physical problems, affecting one’s ability to function at work and home.</p><p>3. Stress: While a natural response to demanding situations, chronic stress can lead to serious health issues, including heart disease, high blood pressure, and diabetes.</p><p>4. Post-Traumatic Stress Disorder (PTSD): This can develop after exposure to a traumatic event, leading to severe anxiety, flashbacks, and uncontrollable thoughts about the event.</p><p>5. Eating Disorders: Conditions such as anorexia, bulimia, and binge-eating disorder are serious mental health conditions that affect eating behaviors and attitudes toward food and body image.</p><p>Fostering Mental Health</p><p>Prioritizing mental health involves adopting habits and practices that support emotional and psychological well-being. Here are some strategies:</p><p>1. Open Communication: Talking about your feelings can help you stay in good mental health and deal with times when you feel troubled. Whether with friends, family, or a therapist, expressing your emotions can provide relief and perspective.</p><p>2. Physical Activity: Regular exercise is beneficial for both physical and mental health. It can improve mood, reduce anxiety, and increase overall happiness through the release of endorphins.</p><p>3. Healthy Diet: Nutrition plays a vital role in mental health. Consuming a balanced diet rich in fruits, vegetables, lean proteins, and whole grains can improve mood and energy levels.</p><p>4.Adequate Sleep: Quality sleep is essential for mental health. Establishing a regular sleep schedule and creating a restful environment can enhance sleep quality and mental resilience.</p><p>5. Mindfulness and Meditation: Practices like mindfulness and meditation can reduce stress, increase focus, and improve overall emotional health. Taking time to relax and be present can significantly impact your mental well-being.</p><p>6. Professional Help: Seeking help from mental health professionals, such as psychologists, psychiatrists, or counselors, is crucial when dealing with mental health issues. Therapy and medication can be effective treatments for many mental health conditions.</p><p>Breaking the Stigma</p><p>Despite growing awareness, stigma surrounding mental health persists. Many individuals hesitate to seek help due to fear of judgment or misunderstanding. Education and open conversations are key to breaking down these barriers. By sharing personal experiences and fostering empathy, we can create a supportive environment where everyone feels comfortable seeking help.</p><p>Conclusion</p><p>Mental health is an integral part of our overall health and well-being. By understanding its importance, recognizing common challenges, and adopting practices to foster a healthier mind, we can lead more fulfilling lives. Remember, seeking help is a sign of strength, not weakness. Prioritize your mental health today, and encourage others to do the same. Together, we can build a society where mental health is openly discussed, understood, and valued.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e428af30a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Portfolio Project Blog Post]]></title>
            <link>https://medium.com/@kemboimichael52/portfolio-project-blog-post-86d64dcb586e?source=rss-be249bf5230a------2</link>
            <guid isPermaLink="false">https://medium.com/p/86d64dcb586e</guid>
            <dc:creator><![CDATA[Kemboi Michael]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 18:23:52 GMT</pubDate>
            <atom:updated>2023-12-13T18:29:58.037Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>We’ve reached the culmination of our final project, and it’s time to reflect on the journey, challenges, and triumphs that shaped our portfolio project. As a team comprising Winfred Kioko and Me Michael Kemboi, our mission was to streamline sales and elevate success through the creation of a user-friendly and adaptable point of sale (POS) system. This blog post serves as a testament to the collective effort and individual contributions that brought our project to fruition.</p><h3>Project Inspiration and Team Dynamics</h3><p>Our project emerged from a noticeable gap in the market, aiming to address the need for a more intuitive, scalable, and adaptable POS system. While each team member shared a passion for improving sales operations, personal experiences interacting with existing solutions highlighted specific areas for enhancement. As an engineering challenge, our focus revolved around creating a platform that seamlessly integrates into various business environments. Roles were clearly defined, with Me Michael Kemboi specializing in Django and backend functionalities, while Winred Kioko took the lead on frontend development and user experience.</p><h3>Personal Story: Connecting with the Project</h3><p>Our connection to the project goes beyond a shared interest in sales. For Winfred, it was an opportunity to leverage expertise gained from previous experiences in backend development and database management. Me on the other hand, found inspiration on my past work on intuitive user interfaces. The project became a bridge between technical proficiency and a shared vision to make POS systems more accessible, drawing parallels with our individual journeys in the software development landscape.</p><h3>Project Accomplishments</h3><p>Our project resulted in a robust POS system, designed with the end user in mind. Utilizing Django Web Framework, we created a solution that not only streamlines point of sale operations but also provides advanced reporting, user-centric design, and robust integration capabilities. The architecture, as illustrated below, ensures smooth data flow and efficient functionality.</p><h3>Technical Challenge: Overcoming Integration Hurdles</h3><p>The most challenging technical hurdle we faced was integrating our backend with the frontend seamlessly. Following the STAR method, the Situation involved aligning our frontend and backend structures, the Task was to ensure smooth data flow, the Action included close collaboration and extensive testing, and the Result was a successfully integrated system. This obstacle pushed our limits, requiring collaboration, quick thinking, and an innovative approach to ensure project success.</p><h3>Lessons Learned and Future Path</h3><p>Throughout the project, we gained valuable insights into Django and frontend technologies, honed our collaborative skills, and navigated the intricacies of project management. Looking ahead, we acknowledge the importance of continuous learning, understanding ourselves better as engineers, and paving the way for future projects. This experience challenged our preconceptions, confirmed some beliefs, and opened doors to potential future directions, such as diving deeper into full-stack development and exploring emerging technologies in the retail space.</p><h3>About the Author</h3><p>Michael Kemboi is a seasoned backend software engineer with a deep expertise in Python and Django. His passion lies in crafting robust backend solutions and optimizing database management systems. Throughout the project, Kemboi’s proficiency in Django Web Framework played a pivotal role in streamlining point of sale operations and addressing key inefficiencies.</p><p>Explore Kemboi’s contributions to the project by visiting the <a href="https://chat.openai.com/c/Winfred-GitHub-Project-Link">GitHub Repository</a>[<a href="https://github.com/kemboi-73/pos_project">https://github.com/kemboi-73/pos_project</a>]. Connect with Kemboi on <a href="https://chat.openai.com/c/Winfred-LinkedIn-Profile-Link">LinkedIn</a>[<a href="https://www.linkedin.com/in/michael-kemboi-135227270/">https://www.linkedin.com/in/michael-kemboi-135227270/</a>] to learn more about his journey in backend development and stay updated on his latest endeavors.</p><p>Kemboi’s commitment to excellence in backend engineering shines through in our project, showcasing his ability to navigate complex challenges and deliver solutions that align with the project’s goals.<br>X -formerly twitter link- [<a href="https://twitter.com/Kemboi_73">https://twitter.com/Kemboi_73</a>]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86d64dcb586e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Web Stack Unveiled: What Happens When You Type https://www.google.com and Press Enter]]></title>
            <link>https://medium.com/@kemboimichael52/the-web-stack-unveiled-what-happens-when-you-type-https-www-google-com-and-press-enter-d72976b75d8b?source=rss-be249bf5230a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d72976b75d8b</guid>
            <dc:creator><![CDATA[Kemboi Michael]]></dc:creator>
            <pubDate>Sun, 15 Oct 2023 16:37:07 GMT</pubDate>
            <atom:updated>2023-10-15T16:37:07.210Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*n8Gl57JPKjh0iWQ8RNkrmA.png" /></figure><p>Introduction</p><p>The internet is an intricate web of technologies and protocols that make it possible for us to access websites with a simple click. When you type “<a href="https://www.google.com/">https://www.google.com</a>&quot; into your browser and hit Enter, a complex series of steps and components come into play to fetch the desired web page. In this blog post, we will explore the journey of your request, from DNS resolution to content delivery.</p><p>1. DNS Request</p><p>The process begins with a DNS (Domain Name System) request. When you type “<a href="https://www.google.com/">https://www.google.com</a>&quot; in your browser, the DNS resolver on your device initiates a query to translate the human-friendly domain name “<a href="http://www.google.com/">www.google.com</a>&quot; into an IP address, which is the language of computers. This query usually goes through several stages of DNS resolution, from the local cache to authoritative name servers, until the IP address for Google’s servers is found.</p><p>2. TCP/IP</p><p>Once the IP address is determined, your browser creates a connection using the Transmission Control Protocol (TCP) and Internet Protocol (IP). TCP ensures reliable and ordered data delivery, while IP handles routing and addressing. Your browser sends a series of packets containing the request to Google’s IP address.</p><p>3. Firewall</p><p>Many organizations and internet service providers implement firewalls to secure their networks. These firewalls examine incoming and outgoing traffic for threats and may block certain requests. If your request passes through a firewall, it proceeds to the next step.</p><p>4. HTTPS/SSL</p><p>Google enforces a secure connection using HTTPS (Hypertext Transfer Protocol Secure), which is an extension of HTTP. It provides encryption and authentication through SSL (Secure Sockets Layer) or its successor, TLS (Transport Layer Security). Your browser and Google’s servers perform a handshake to exchange encryption keys, ensuring that your data remains confidential during transit.</p><p>5. Load-Balancer</p><p>Large-scale websites like Google employ load balancers to distribute incoming traffic across multiple web servers. This ensures even distribution of the workload and redundancy for fault tolerance. The load balancer examines your request and forwards it to an available web server.</p><p>6. Web Server</p><p>Upon reaching a web server, your request is processed. The web server receives your request, interprets it, and generates a response, which is typically an HTML page. Google uses a vast network of web servers to handle user requests efficiently.</p><p>7. Application Server</p><p>In the case of dynamic web applications, an application server comes into play. It interacts with databases, processes business logic, and generates dynamic content. Google’s search engine likely uses application servers to provide personalized search results and other dynamic features.</p><p>8. Database</p><p>For services that rely on storing and retrieving data, such as Google’s search results or user information, databases are crucial. The application server communicates with the database server to fetch or update data.</p><p>Conclusion</p><p>The journey of your request, from typing “<a href="https://www.google.com/">https://www.google.com</a>&quot; in your browser to receiving the search results, involves a complex orchestration of technologies and components. DNS resolution, TCP/IP communication, firewalls, HTTPS/SSL encryption, load balancers, web servers, application servers, and databases work in tandem to make the internet experience seamless and secure.</p><p>Understanding these fundamental components of the web stack is essential for anyone working in software engineering or related fields. It not only aids in troubleshooting issues but also provides a deeper appreciation for the technology that powers the digital world.</p><p>So, the next time you enter a URL in your browser, remember the intricate journey it takes behind the scenes to deliver the content you seek.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d72976b75d8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>