<?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 Justxd22 on Medium]]></title>
        <description><![CDATA[Stories by Justxd22 on Medium]]></description>
        <link>https://medium.com/@justxd22?source=rss-9dbf3a51710d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RwgSbvGv1nuO5nGr</url>
            <title>Stories by Justxd22 on Medium</title>
            <link>https://medium.com/@justxd22?source=rss-9dbf3a51710d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:31:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justxd22/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[Anxiety? Chill Pill to the Rescue!]]></title>
            <link>https://medium.com/@justxd22/anxiety-chill-pill-to-the-rescue-70acdf051daf?source=rss-9dbf3a51710d------2</link>
            <guid isPermaLink="false">https://medium.com/p/70acdf051daf</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[alx-blog]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Justxd22]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 16:49:52 GMT</pubDate>
            <atom:updated>2024-06-14T16:06:24.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVlYTOvxMctbqFSNh0UOyg.png" /></figure><p>Chill Pill is meticulously crafted with a primary focus on enhancing user experience, ensuring that users can maintain productivity, complete tasks efficiently, and even improve their sleep quality. With diverse range of auditory experiences, featuring an over 100+ sounds, including white noise, Funny noises, and even soothing cat purrs ᓚ₍ ^. .^₎ .</p><p>Our intuitive UI allows for seamless navigation, enabling users to quickly find and select the perfect sound for any situation with awesome hand-picked Icons. Whether you’re looking to drown out distractions, create a calm work environment, or wind down after a long day, Chill Pill has you covered.</p><p>Chill Pill is more than just a productivity tool — it’s a comprehensive solution for enhancing focus, relaxation, and overall well-being.</p><h3>Story behind Chill Pill</h3><p>After brainstorming we came up with three ideas:</p><ol><li>White Noise Engine</li><li>Fund Tracker</li><li>Inspirational Quotes</li></ol><p>Landed on “White Noise Engine” As it was simple, very useful, and a good challenge for the team, we started small by prototyping the Ui/Ux on Figma thanks to our teammate Ahmed, then we started discussing the backend and the different tools we could use, Little by little the project came to life, you can see the different icon stages here,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55ikaZYuXJ7tuyLX-uk68w.png" /></figure><p>Thanks to Amr for the awesome graphics we have the final logo, the went with a very simple Ui to avoid distractions and keep it easy for the user, The challenge was getting unique icons that fit with the overall theme for every audio we have that is 100+ as you can see the different stages here, we made a GitHub issue to keep track of everything,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1WsOWZwSK0yleOcrXqemA.png" /></figure><h3><strong>Framework, Backend and tools used</strong></h3><ul><li>using node Nextjs.</li><li>Easier hot reloads.</li><li>fast compile times.</li><li>fast deploys.</li><li>Nignx</li><li>pm2</li><li>GitHub (code hosting)</li><li>GitHub actions (building &amp; deploying)</li><li>typescript/javascript</li><li>HTML/CSS</li><li>python</li><li>ffmpeg</li><li>Json (dB indexing)</li></ul><p>We’re utilizing Next.js to revolutionize our web development projects. With this modern JavaScript framework simplifies website construction. A glance at our repository reveals our database in simple JSON we choose to keep it simple, listing sound names, descriptions, categories, and paths.</p><h3>Challenges</h3><p>The entire project was fraught with challenges, but the most significant one was the audio looping issue. When a 20-second audio track is played on a continuous loop, there was a noticeable 2-second blank gap when the audio finished and restarted. Given that the project involved over 100 audio tracks, this quickly became a major problem affecting the quality we promised our product would deliver.</p><p>After discussions with the team and experimenting with various solutions, I discovered a library called Howl, which handles audio tracks and comes with impressive features like 3D spatial audio. By reading the documentation and experimenting with Howl, I managed to solve about 50% of the issue, but it required further fine-tuning.</p><p>Eventually, I concluded that to achieve a seamless loop, it was necessary to skip 2 seconds at the start and end of the audio and then combine the output. I quickly created a bash script to batch cut all the audio files in the project to follow this pattern Using the amazing tool FFmpeg. And sure enough, the issue was resolved! You can personally test the app and experience the seamless loops for yourself.</p><h3><strong>Some of my roles on the team </strong>/ᐠ &gt; ˕ &lt;マ</h3><p>I started our codebase that is utilizing Nextjs with tailwind CSS, and wrote the audio indexing code in python that exports a dB index in Json for Nextjs to use, also I built and deployed the first demo of the app on my personal ALX server that was provided to us, I connected a domain and I setup nginx to proxy forward requests to the port 3000 where Nextjs lived, nginx config attached in the source code, i further went down and setup SSL and load balancing but it was never used due to low traffic, I also setup Github Actions with different configs throughout the project progress to build and ship our app on every commit made to the repo By SSH-ing into the server and triggering a new build then restarting pm2 instance, the second way was to build on a Github action node, zip it, and use SCP to transfer it into the server, Finally for production I deployed on Vercel, I would say I did 90% of DevOps work on the project, my other roles were issue tracking and feature ideas to life, and the main coding part ! which was an amazing journey 😅</p><h3><strong>Teamwork is the key 💪</strong></h3><p>Collaboration, Teamwork and Shared Experiences are always the key for success and moving forward, we raised different roles for every issue we found and worked as a team to kill all these bugs, Trello was our friend we made/assigned roles there, Also GitHub Issues:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FByLldc4cKnNQYJtvmaxDw.png" /></figure><h3>Project Authors</h3><p>Noor Amjad — <a href="https://github.com/Justxd22">GitHub</a> / <a href="https://twitter.com/_xd222">Twitter</a> / <a href="https://www.linkedin.com/in/noor-amjad-xd/">LinkedIn</a><br>Amr Abdelfattah — <a href="https://github.com/0x3mr">GitHub</a> / <a href="https://twitter.com/an0n_amr">Twitter</a> / <a href="https://www.linkedin.com/in/amrabdelfattah/">LinkedIn</a><br>Ahmed Shalaby — <a href="https://github.com/Madiocre">GitHub</a> / <a href="https://x.com/Ahmed_K_Shalaby">Twitter</a> / <a href="https://www.linkedin.com/in/ahmed-shalaby-31a03a235/">LinkedIn</a></p><h3>The Project</h3><ul><li>LIVE : <a href="https://chill-pill-mu.vercel.app/">https://chill-pill-mu.vercel.app/</a></li><li>Code: <a href="https://github.com/0x3mr/ChillPill">https://github.com/justxd22/ChillPill</a></li></ul><h3>About me</h3><p>I’m a passionate tech enthusiast driven by the pursuit of cutting-edge creations, Welcome to my world of endless innovation and expertise! With a diverse background spanning software engineering, game development, electronics, and web development.</p><p>Throughout my journey, I’ve garnered valuable experience by crafting dynamic applications,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/0*CCNdR55A1EwXkUPU.gif" /></figure><p>My GitHub profile is a treasure trove of projects showcasing my dedication and proficiency in these realms. I invite you to connect and collaborate on an inspiring tech adventure together!</p><p>Personal website: <a href="https://justxd22.github.io/">https://justxd22.github.io</a></p><p>Github: <a href="https://github.com/Justxd22/ChillPill?ta">https://github.com/Justxd22</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70acdf051daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The ‘G’ key journey]]></title>
            <link>https://medium.com/@justxd22/the-g-key-journey-c7544896ec78?source=rss-9dbf3a51710d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7544896ec78</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[alx-blog]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Justxd22]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 22:32:19 GMT</pubDate>
            <atom:updated>2024-04-14T20:55:40.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dfE5tp-L9NNqki7j.png" /></figure><p><strong>Ever</strong> wonder what happens when you open your social media to check up on your friends or maybe you want to check crypto space on twitter? What really happens behind the scenes??? How does all this magic works? How does it connect all people on miles away together on one network? Well, it’s not actually magic but a Real Product of Science and Engineering and years of technology came together to serve us from the comfort of our own home,</p><p>Imagine you’re typing “google.com” into your browser and hitting Enter. What happens next is a symphony of technology orchestrated to deliver your desired webpage to your screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*rQxXu1qrO7ox8GV3" /></figure><h3>The Operating System and DNS:</h3><p>Starting by your <strong>Operating System</strong> (OS) usually OS(s) are configured to follow your internet provider DNS but on more advance systems like Linux based OS(s) it’s customizable to your choice of privacy focused DNS, I will talk about what is a DNS later,</p><p>When you start by typing the letter “g” hundreds of code lines are triggered in the background from your Browser codebase, Aimed at predicting your final destination Based on your browser history, bookmarks, and even top searched words globally, your browser will suggest many predictions to save you time and it will even auto-type for you, Using different searching algorithms it will help you reach there faster,</p><p>Now after typing “google.com” and pressing enter, your browser will get back to your OS to figure out the network config that should include your preferred <strong>DNS server</strong> to start sending a <strong>DNS request</strong>,</p><p>Now what is a <strong>DNS server</strong>?? Well, the simplest way to explain it, is it’s a large phonebook to connect names to numbers, as you know we humans are better at remembering names unlike computers that like numbers everywhere, so we came up with the DNS concept Computers on the network communicate using numbers just like human phone numbers but in a different format called IP(s) that mainly have two versions IPv4 and IPv6</p><p>IPv6 was created to adapt to the outrageously growing number of computers on the network,</p><p><strong>DNS servers</strong> helps us to put names to these numbers to make our lives a lot easier and everything in order, Every entry on the DNS database is linked to a IP address of a computer on the network, dynamically linked using software so in case of a failure or IP change for whatever reason DNS servers will point to the new IP immediately, Common DNS servers you will find in the wild like Google’s own DNS server which lives at “8.8.8.8”, And the popular Cloudflare DNS server “1.1.1.1”, Usually by default you must be using your ISP DNS server you can check it up right now by going to “dnsleaktest.com”,</p><p>Now that your browser has a valid <strong>DNS server</strong> address it will start connecting with it to ask for “google.com” location on the network and it will do so by making a <strong>DNS request</strong> and the DNS will reply with a valid IP address that your browser will start a connection with.</p><h3>TCP and Firewall:</h3><p>Now since you are browsing a website you will be served HTML over the network using <strong>TCP protocol</strong>,</p><p>When your browser asks Google’s server to access the search engine your request will be passed down on <strong>Firewalls</strong> before reaching the server to make sure that you aren’t not doing something fishy or asking for something you shouldn’t have like a locally sys-admin web page or trying to access a different communication port used for different purpose other than browsing the web engine in your case, maybe like port 22 for SSH Which for security purposes is banned by the Firewall to prevent any unattended access, that’s the <strong>Firewall’</strong>s job to protect the servers And also your own computer has its own Firewall to keep you safe while browsing the internet.</p><h3>HTTPS/SSL:</h3><p>Moving on to the server side when it gets your http request to access the web engine “Google” it will start serving you the in the most secure route and that will be <strong>HTTPS</strong> it will ask your browser to redirect itself to a safe route and only communicate over <strong>HTTPS</strong> that is secure http end-to-end encrypted using SSL certificates to prevent anyone from spying/sniffing your traffic on the network, ensuring your online interactions remain confidential and tamper-proof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*exHcwdYewFfRk-bk" /><figcaption>Encryption</figcaption></figure><h3>Load-Balancer:</h3><p>Now did you ever wonder how does millions of people use your Favorite website/social media at the same time without ever crashing the servers and with uptime availability of 99% without breaking a sweat?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*YUEsM66mFd4agt8y.jpg" /></figure><p>Well the answer is <strong>“Load-Balancers”</strong> as the name says balancing all the loads from all over the world requesting different things like URLs/Videos/Photos/Data or any kind of media hundred times per mills seconds simultaneously evenly it distributes incoming requests between servers and scaling up to handle the extra traffic at peak ours, that’s the job of <strong>Load Balancers</strong> and it does so by redirecting your request to different servers Severing the same content, Usually with live production sites there’s at least 5 or more identical deployed servers that is used by the load balancers,</p><p>Now in our example on the first web request sent to “google.com” Server asking to access the web engine, we are being directed by the load-balancer to the most available free server based on our region to handle our request that must be one of the hundreds if not thousands of Google’s servers.</p><h3>Web Server:</h3><p>Next up when we have successfully reached the correct server, a <strong>webserver </strong>will be serving us and handling all our search queries that is configured to safely and smartly handle repetitive requests with using minimal traffic/resources using different compression algorithms to save Network time and CPU energy usually it serves static files used to build up the main UI in our case it’s the web engine Google so the <strong>web server</strong> will be serving google logo, and different fonts and styling files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*ChFMITOFRlOu629O" /></figure><h3>Application Server and Database:</h3><p>Next what happens when you start typing a query to search the internet? Well here comes the <strong>Application server</strong> Job to handle all our dynamic queries fast enough while taking all the loads from the main web servers, The <strong>application servers</strong> usually have direct access to the <strong>databases</strong> to handle all the data processing parts to serve the user the right data safely, like the login process, or a simple query looking for info on the web Which involve looking at a hundreds of databases to find the correct info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*8cHGvbMfcAnVGx7_" /></figure><p>Well, that was it the whole process of accessing the <strong>web</strong> through your browser, So, the next time you marvel at the wonders of the internet, remember the intricate dance of the web stack that makes it all possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMXEY7eSLkKsGLWZdigMkQ.png" /><figcaption>Diagram for the road.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7544896ec78" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>