<?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 YahIa Nasr on Medium]]></title>
        <description><![CDATA[Stories by YahIa Nasr on Medium]]></description>
        <link>https://medium.com/@YahiaNasr?source=rss-48e48536b834------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PIk7kN7LHyYbbisT</url>
            <title>Stories by YahIa Nasr on Medium</title>
            <link>https://medium.com/@YahiaNasr?source=rss-48e48536b834------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:58:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@YahiaNasr/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[Piccolo]]></title>
            <link>https://medium.com/@YahiaNasr/piccolo-aabf40952b38?source=rss-48e48536b834------2</link>
            <guid isPermaLink="false">https://medium.com/p/aabf40952b38</guid>
            <dc:creator><![CDATA[YahIa Nasr]]></dc:creator>
            <pubDate>Wed, 15 May 2024 23:52:47 GMT</pubDate>
            <atom:updated>2024-05-15T23:52:47.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pix5RTqWC8QNMnQVdpxA6A.png" /><figcaption>Piccolo home interface</figcaption></figure><p>The word Piccolo in Italian means little or small, Piccolo is my implementation of a URL shortener that offers to shorten URLs and create QR codes. I embarked on this project to learn about NoSQL databases and how to route stuff on the backend.</p><h3>Back Story</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MSEXK1GW-s5tP283" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For a couple of months before building Piccolo, I didn’t know what I wanted to build for the portfolio project. I was indecisive and all ideas looked the same to me. I’m still very uninspired but I had to make a decision so I looked around google and social media for challenging backend projects. an Idea of a URL shorter popped up more than once in many of the results so It felt like the right challenge to embark on.</p><h3>Breakdown</h3><p>The idea was pretty simple, you create some short random URL and store it next to the original URL, and whenever it’s requested you redirect to the original URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*lyhIl97RkQcUbbA5" /></figure><p>The code for the backend was simple I used the Flask framework and used MongoDB as my NoSQL database of choice and I can say that it’s my favorite database ever. especially with the Pymongo library which makes life much easier. On top of that, I used the Python QR code library to generate QR codes. The front end was plain HTML CSS and vanilla JavaScript.</p><h3>Lesson learned</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qod05dDp15Ca88wN" /><figcaption>Photo by <a href="https://unsplash.com/@nilsjakob?utm_source=medium&amp;utm_medium=referral">Nils Stahl</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The whole project ended up being underwhelming it was not the challenge that I had hoped for, I over estimated the task and underestimated my ability but I’m grateful that it helped me realize that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aabf40952b38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WordPress installation Issue]]></title>
            <link>https://medium.com/@YahiaNasr/wordpress-installation-issue-73110c7b5678?source=rss-48e48536b834------2</link>
            <guid isPermaLink="false">https://medium.com/p/73110c7b5678</guid>
            <category><![CDATA[alxafrica]]></category>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[incident-reporting]]></category>
            <dc:creator><![CDATA[YahIa Nasr]]></dc:creator>
            <pubDate>Sun, 14 Apr 2024 06:29:56 GMT</pubDate>
            <atom:updated>2024-04-14T06:38:53.742Z</atom:updated>
            <content:encoded><![CDATA[<p>On Monday[April 8th] a co-worker came to me with an issue on their virtual server, they have a LAMP stack on there that is returning a 500 error. They reported that the issue occurred after updating the WordPress installation and Its configuration.</p><p>We identified the updates to WordPress as the Root Cause of the issue and started the debugging process. The issue lasted from around 10:59 AM EST to around 12:44 PM EST</p><h3>Recovery and Resolution</h3><ol><li>made sure all the LAMP stack components were active.</li><li>examined the running processes using the Linux command</li></ol><pre>ps aux</pre><p>which showed two Apache processes — “root” and “www-data” — were running properly.</p><p>3. Checked the “sites-available” folder in the “/etc/apache2/” directory and confirmed that the web server was serving content from “/var/www/html/”.</p><p>4. Then I traced one process at a time using “strace” tool on the process while ‘curl’-ing the server.</p><p>5. The process of the “www-data” revealed an error of</p><blockquote>“-1 ENOENT (No such file or directory)” when trying to access the file “/var/www/html/wp-includes/class-wp-locale.phpp”</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FMUEq7KfQvNolX9YujV%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FMUEq7KfQvNolX9YujV%2Fgiphy.gif%3Fcid%3D790b761134ioxiqgui918b098cfzawind7a9vtcht8m7t028%26ep%3Dv1_gifs_search%26rid%3Dgiphy.gif%26ct%3Dg&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExM3Vtc2UxNTA0d2toa3BsamJ1OXF0dm1yZmQzaGpja2hoOXVhbWw5cSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FMUEq7KfQvNolX9YujV%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/ffba335e6ce59b0355700bd1aa3d7f9a/href">https://medium.com/media/ffba335e6ce59b0355700bd1aa3d7f9a/href</a></iframe><p>6. I Had to google .phpp to make sure there’s no such file extension, it turns out it’s a thing but it isn’t something you should find in any of the LAMP stack files.</p><p>7. Quick search for the erroneous “.phpp” file extension in the “/var/www/html/” directory using Vim pattern matching and found it in the “wp-settings.php” file (line 137).</p><p>8. Corrected the typo by removing the trailing “p” from the line. I verified the fix by performing another “curl” on the server and received a 200 A-OK response.</p><h3>Conclusion</h3><p>The outage experienced by the WordPress application on Monday was promptly addressed and resolved through the identification and correction of a typographical error within the “wp-settings.php” file. Moving forward, the implementation of preventative measures will help mitigate the risk of similar incidents occurring in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73110c7b5678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type ‘https://www.google.com’ in your browser and press Enter↵]]></title>
            <link>https://medium.com/@YahiaNasr/what-happens-when-you-type-https-www-google-com-in-your-browser-and-press-enter-eeeda2e08e75?source=rss-48e48536b834------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeeda2e08e75</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[YahIa Nasr]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 22:07:50 GMT</pubDate>
            <atom:updated>2024-03-16T22:07:50.257Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LMoJLx2KW-rDnLFa" /><figcaption>Photo by <a href="https://unsplash.com/@firmbee?utm_source=medium&amp;utm_medium=referral">Firmbee.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We all wondered at some point about what goes on behind the scenes when we access google.com the website on which the average person conducts between three and four searches daily. well, this article here is to help demystify this.</p><h3><strong>User Types into the Browser</strong></h3><p>The process starts in the browser when you first type the letter ‘g’, It starts a process for suggesting the website you’d like to access, these suggestions could be based on many things like your history, cookies, and geographical location.</p><p>After you complete your input and press enter the browser then processes the URL that you provided to figure out whether it’s a valid URL or a Search term.</p><p>A URL is identified by a protocol or a resource ‘/’. In the case of a search term, the browser redirects the input to its default search engine.</p><p>In the case of the URL the browser then determines the protocol, the protocol can be explicitly specified when you type in the website for example “https://google.com” and here we know that the URL will be handled using the HTTPS protocol.</p><p>In the other case where the URL is not explicitly specified, most browsers default to HTTPS and then fall back to HTTP if the connection fails or if the site doesn’t yet support HTTPS</p><h3>Domain Name resolution</h3><p>After specifying the protocol the browser needs to find the IP address of the URL to connect to it.</p><p>To do this it first looks into its local cache, if the domain isn’t found it proceeds to look in the operating system’s host file which is a file that stores some hostnames and their IPs locally. If the hostname isn’t found in the host file the domain proceeds to make a DNS lookup.</p><p>DNS stands for the Domain Name System which is conceptually similar a phone book for the internet containing entries for human-readable URL and their IP addresses.</p><p>This DNS lookup request is sent as a single UDP packet to the default DNS provider, and the DNS provider responds with the correct IP address for the domain.</p><h3>Establish a connection with Google</h3><p>Once the browser has the right IP for Google, the browser proceeds to initiate a TCP connection with the Google server.</p><p>it is worth mentioning that the firewall may be configured to block certain addresses, ports, or protocols.</p><p>After a browser conducts a successful TCP handshake, it proceeds to make an SSL/TCL handshake which involves the client sending a random number and a cipher suite to be used alongside the SSL version. The server responds with the chosen cipher and a random number alongside its SSL certificate the client then proceeds to verify the certificate sent by the server with the Certificate Authority. the client then sends a “client’s key exchange” with a pre-master secret encrypted by the server’s public key. Now both the client and server generate a session key using the pre-master secret and the random numbers sent at the beginning of the handshake. then they exchange a “finish message” to confirm the handshake was successful.</p><h3>Google’s Side of the Story</h3><p>The connection to Google’s servers initially goes to a load balancer. This balances the client connections before internally linking them to the suitable application server using a variety of load-balancing algorithms. Given the high traffic on a website like Google, load balancing is crucial for distributing traffic across multiple servers.</p><p>Once the request reaches the server, it is managed by the application server. The application server is a critical component that plays a substantial role in the entire process. This server is responsible for accessing Google’s database server, which houses a vast amount of data. The application server retrieves the specific data that is necessary to fulfill the user’s request successfully. This data retrieval process is efficient and happens in a matter of milliseconds, contributing to the seamless user experience when accessing Google.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeeda2e08e75" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>