<?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 Shubham Phadte on Medium]]></title>
        <description><![CDATA[Stories by Shubham Phadte on Medium]]></description>
        <link>https://medium.com/@shubhamrp?source=rss-3b24050b2d62------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*M8dNTmLMiJY4DAjkYlYblA.jpeg</url>
            <title>Stories by Shubham Phadte on Medium</title>
            <link>https://medium.com/@shubhamrp?source=rss-3b24050b2d62------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:13:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shubhamrp/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[Centered Container with CSS Flexbox Layout Model]]></title>
            <link>https://medium.com/sage-systems/centered-container-with-css-flexbox-layout-model-cd66fb7f277c?source=rss-3b24050b2d62------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd66fb7f277c</guid>
            <dc:creator><![CDATA[Shubham Phadte]]></dc:creator>
            <pubDate>Fri, 02 Oct 2020 08:20:13 GMT</pubDate>
            <atom:updated>2020-10-02T08:20:13.630Z</atom:updated>
            <content:encoded><![CDATA[<p>Many a times Web Developers arrive at this simple need of centering a container on a webpage. This is a very simple concept to be implemented but can lead to a lot of wasted time and also mind-share. So I am writing this article as guide(for me as well) to come back to when needed to understand the CSS Flexbox implementation to center a container.</p><p>It’s a very simple implementation and I have started this series of articles from basic to advanced implementation of use cases in Web Development. So, let’s get started.</p><p>Start with a simple index.html webpage. If you are using VS Code you can enter ‘!’ — exclamation mark to generate a template html page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWw6yuHvT7f7Tb6WO1ow_A.png" /><figcaption>! — emmet abbreviation to generate template html</figcaption></figure><p>Fill in the index.html by adding link tag for the css stylesheet — style.css.</p><p>Change the title as desired.</p><p>Create a div with the class name “container”. Within it, create a div with class name “heading” and textarea with class name “container-input”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WBjs2xlzUekNnPcNhdOoUQ.png" /></figure><p>It should look something like this in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qklNTEZOTjs6lssW-BPpUQ.png" /><figcaption>Output of basic index.html</figcaption></figure><p>With the bare structure of the webpage ready, we can focus on the style.css to style the webpage and achieve our goal of centering the container elegantly.</p><p>The property <strong><em>box-sizing: border-box</em></strong><em> </em>ensures that<em> </em>width and height apply to all parts of the element: content, padding and borders. So everything within it is constrained within limits.</p><p>Styling the body, we use <strong><em>display:flex; justify-content:center; align-items-center;</em></strong>which makes the display as a flexbox and within the body the items are placed at center horizontally(along the main axis — horizontal axis using<strong><em> justify-content:center;</em></strong>) and items are aligned vertically(along the cross axis-vertical axis using <strong><em>align-items-center;</em></strong>).</p><p>We fix the <strong><em>min-height:100vh;</em></strong> so that body takes entire screen height and <strong><em>margin:0; </em></strong>to ensure that scrollbar is removed.You can change the background color as you wish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sewTa1rw-beYph-uYntg9w.png" /><figcaption>body styling</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZPbpfSQ0AfDE_c7KYIFpw.png" /><figcaption>Output of body styling</figcaption></figure><p>Actually in the above code itself we have achieved our goal but let us improve on the webpage’s styling.</p><p>Styling the container, set <strong><em>background-color</em></strong> as you wish. <strong><em>padding</em></strong> &amp; <strong><em>border-radius</em></strong> to value as you wish. I have fixed the <strong><em>width</em></strong> to <strong><em>700px. max-width:90% </em></strong>ensures that if screen size is reduced as in a phone screen, the container will be 90% of screen-size. <strong><em>text-align:center;</em></strong> will align the contents to the center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FbYor0IVfy1BopCWKwUY3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2COUaRaF5SoXwpelzVTgEw.png" /><figcaption>Output of above styling</figcaption></figure><p>Finally, we can style the contents of the container as shown in the below image. Give an appropriate <strong>color</strong> &amp; <strong>font-size</strong> to the heading.</p><p>Also, the input box is styled to make the background transparent so that it takes the background of the container. Border is slightly darker than the background and border-radius gives curves at the edges. This will make the input box elegant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCMflrLjGjYHebNaUJfl3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*An7xnBzMehdg_wb3TBtwCw.png" /><figcaption>Final Output</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd66fb7f277c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sage-systems/centered-container-with-css-flexbox-layout-model-cd66fb7f277c">Centered Container with CSS Flexbox Layout Model</a> was originally published in <a href="https://medium.com/sage-systems">Sage Systems</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bird’s-eye View of Web Development]]></title>
            <link>https://medium.com/sage-systems/birds-eye-view-of-web-development-42f9452451f3?source=rss-3b24050b2d62------2</link>
            <guid isPermaLink="false">https://medium.com/p/42f9452451f3</guid>
            <dc:creator><![CDATA[Shubham Phadte]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 12:59:22 GMT</pubDate>
            <atom:updated>2020-10-01T10:56:30.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*BzbSNo0Xv4c5o-cvkDCrXw.jpeg" /></figure><h3>Bird’s-eye View of Full Stack Web Development</h3><p>Beginners in Web Development are often confused with what all things need to be learned, what to focus on in their beginning stages of learning and what should be their plan on their chosen path.</p><blockquote>Every master was once a beginner. Every pro was once an amateur. <br>~Robin Sharma</blockquote><p>In this article, I cover in brief the areas under Full-Stack Web Development and other basics to focus on in order to get your fundamentals right and have in your mind, a clear picture of Web Development as a whole.</p><p>If you, due to time constraints, are unable to go through the entire article, my request is to just save the two diagrams below which very well outline what your knowledge base should if you are looking at being a pro in Web Development &amp; Programming in the long run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*mw5ioSzA89EA4sRckXZR5A.png" /><figcaption>Bird’s Eye View of Web Development</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*hJ09nHXH26EHNzq3U1DKag.png" /><figcaption>Knowledge Base Improvement over time</figcaption></figure><h3>Evolution of Web Development</h3><p>Web Development over the years has undergone continuous improvement and changes.<strong> Web 1.0</strong> can be considered as the era of static web pages, while <strong>Web 2.0 </strong>is the era of web apps which saw mass adoption of financial services, social media and utility applications by people. Many industry stalwarts believe that <strong>Web 3.0</strong> will be the next era where web applications will be customized and AI-driven to provide better experience to users.</p><h3>Front-end</h3><p>Front-end development is basically concerned with the User Interface. <strong>Markup, Style &amp; Logic</strong> are three things that basically sum up the front-end development. The front-end of any application is its portal to the users through which users can interact and that is why anything which a user directly comes in contact with, comes under the purview of front-end development.</p><p><strong>HTML, JavaScript &amp; CSS </strong>form the holy trinity of front-end development. At this point you need to know the basics of how internet &amp; web browsers work, what constitutes webpages and how web pages are loaded in the front-end and the interaction with the back-end. Gradually work on building webpages with styling(CSS) and functionality(JS).</p><p>In 2020, almost all developers use front-end frameworks/libraries; most widely used are <strong>ReactJS, Svelte,Vue and Angular</strong>.</p><p>If you wish to be good at UI/UX designing/development, then the knowledge of front-end is all you need to hone your craft. If it is just designing the User Interface, there are tools like <strong>Figma, Adobe XD, Sketch</strong> etc.</p><h3>APIs &amp; Data Transfer</h3><p>Now a developer has a user interface ready, but how does it communicate with a server/ back-end? <strong>APIs &amp; Data Transfer</strong> is the crucial link between the back-end and front-end. <strong>REST(Representational State Transfer) </strong>is commonly used. It ensures interoperability between different computers/ devices with a standard set of constraints on what is transferred.</p><p>Data Transfer is done by sending strings back and forth through a protocol called <strong>HTTP</strong>. Two common formats for data are <strong>JSON &amp; XML</strong>. We convert a data string to JSON by a process called <strong>serialization.</strong></p><h3>Back-end</h3><p>Back-end of an application is the logical core of the application which blends together the front-end, databases and other servers and provides as an important junction for data-handling of the application.</p><p>Most common back-end(server-side) languages are: <br><strong>Python(Flask&amp; Django Framework)<br>JavaScript(Express Framework with NodeJS Runtime Environment) php(Laravel Framework)<br>C#(ASP.NET)<br>Java(Spring Framework)</strong></p><p>For ease of use, back-end is often looked at as an organization of services and processes which work accordingly to accomplish different tasks.</p><h3>Databases</h3><p>Databases are important part of Web Applications for the simple reason that web apps deal with real world data and the data needs to be stored, processed and updated as and when needed. <strong>Database Development</strong> in itself is a very complex field but overall it can be divided into <strong>SQL</strong>(Relational) &amp; <strong>NoSQL</strong>(Non-relational) databases.</p><p><strong>SQL Databases</strong> have a structured way of storing data in the form of tables and there are associated rules for accessing &amp; updating data and interaction between the tables. Eg: <strong>MySQL &amp; Postgres.</strong></p><p><strong>NoSQL Databases</strong> are basically collection of objects and can be used for unstructured data.Eg: <strong>MongoDb &amp; Casssandra.</strong></p><p>There are many other database paradigms and not really within the scope of this article.</p><p>Keep in mind that databases are usually the bottleneck of any web app and as the data size grows larger the databases have to be designed in such a way that the overall efficiency of the application is maintained.</p><h3>Security</h3><p>When dealing with user data, security is of paramount importance. <strong>Authentication </strong>&amp;<strong> Authorization</strong> are two pillars of security of any application. <strong>Authentication</strong> basically deals with who can access your application(eg: a user logging in using email id and password). While <strong>authorization</strong> defines user roles(eg: admin of a facebook page can change the cover image of the page, while viewers cannot).</p><p>If you are building a really simple app, for example, an app in which an user can create cat-themed greeting cards and requires user logging in &amp; using a password, it is important that you are thorough in user authentication techniques because users many a times use the same password on several applications(may be their netbanking account ). So, if your user authentication data is compromised, it may lead to adverse effects for your users.</p><h3>Infrastructure &amp; Networking</h3><p>Infrastructure &amp; Networking basically deals with deployment &amp; maintenance of your application on the web. You can very well host a website on your computer which will run 24*7 but that doesn’t seem feasible particularly since there are companies who provide dedicated servers online for affordable costs. Knowledge of <strong>SSH, scripting, Docker </strong>will help you when it comes to this phase.</p><p><strong>AWS</strong>(Amazon Web Services), <strong>GCP</strong>(Google Cloud Platform) &amp; <strong>DigitalOcean </strong>are companies which do the hardware management for you while you take care of the deployment &amp; maintenance of your application.</p><h3>Amateur to Pro</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*hJ09nHXH26EHNzq3U1DKag.png" /></figure><p>In the above image, the graph basically covers the stages you need to keep in mind as you keep getting better in programming. Every developer starts as a framework consumer with basic language proficiency. Slowly over time one feels the need to know <strong>Data Structures &amp; Algorithms</strong> to make their applications more efficient. Finally, a pro in the field will know that there are essentially <strong>Design Patterns</strong> which can be configured or utilized as per the application’s needs and demands to build large applications.</p><p>The bird’s-eye view is a horizontal representation while the graph is a vertical representation of the knowledge base in Web Development &amp; Programming as a whole.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42f9452451f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sage-systems/birds-eye-view-of-web-development-42f9452451f3">Bird’s-eye View of Web Development</a> was originally published in <a href="https://medium.com/sage-systems">Sage Systems</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple Python Script to download YouTube Videos using pytube]]></title>
            <link>https://medium.com/sage-systems/a-simple-python-script-to-download-youtube-videos-using-pytube-aed3dd9da660?source=rss-3b24050b2d62------2</link>
            <guid isPermaLink="false">https://medium.com/p/aed3dd9da660</guid>
            <dc:creator><![CDATA[Shubham Phadte]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 07:08:06 GMT</pubDate>
            <atom:updated>2020-09-27T07:08:06.735Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are just starting out learning python and looking for simple python projects or applications or if you are looking to download YouTube videos the “programmer way”, then this article is for you.</p><p>This was one of my first python scripts a few years ago and I thought of putting it out here along with the github repository url so that others can access it. I know there are many websites where you can simply enter the url of the YouTube video or YouTube playlist but there is a different vibe about running a command line script to download YouTube videos.</p><p><em>pytube</em> is a very serious, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos. It can be used to download individual videos as well as a playlist of YouTube videos. So let’s get started.</p><ol><li>In an empty directory create a blank file with a .py extension (the python script)</li></ol><p>2. Install the pytube library using the command line(below command is for python 3)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*N6vWykzSdUOFxSs-VFq1Uw.png" /></figure><p>3. Import the Youtube module in our script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*T6Xms2fp7wtcNbjHFOE85g.png" /></figure><p>4. I’ll explain the following code line by line</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJQnZnh9XJs3CrCCUKF2VQ.png" /><figcaption>Run the script the command line using python &lt;scriptname&gt;.py</figcaption></figure><p>The first 3 lines is about taking the input from the command line. Once the script is run you can enter the url of the desired video in the command line and press enter. <br>It gives you the details of the YouTube video. <em>yt=YouTube(x)</em> where x is the url of the video.</p><p>As can be seen <em>yt.title</em> will give you the title of the video.</p><p><em>yt.streams </em>will give you all the streams available of the video. We are accessing the first stream(highest quality) using <em>yt.streams.first()</em>.</p><p>Finally we download the video using <em>download() </em>method. <em>yt.streams.first().download()</em> will start downloading the video and “Download Successful!!” will be printed once video download is completed.</p><p>5. To access the available streams of the video, you can use <em>yt.streams.all()</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-uDFIQn1yMruU0vulqTBxg.png" /></figure><p>6. To download an entire playlist</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VmkiNop13oHQ97e8UCVXAw.png" /></figure><p>Github repo: <a href="https://github.com/shubham-rp/python-youtube-downloader">https://github.com/shubham-rp/python-youtube-downloader</a></p><p>To know more about pytube: <a href="https://pypi.org/project/pytube/">https://pypi.org/project/pytube/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed3dd9da660" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sage-systems/a-simple-python-script-to-download-youtube-videos-using-pytube-aed3dd9da660">A simple Python Script to download YouTube Videos using pytube</a> was originally published in <a href="https://medium.com/sage-systems">Sage Systems</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify Contact Form Submission with Netlify]]></title>
            <link>https://medium.com/devclustergoa/simplify-contact-form-submission-with-netlify-1341e33fefb?source=rss-3b24050b2d62------2</link>
            <guid isPermaLink="false">https://medium.com/p/1341e33fefb</guid>
            <dc:creator><![CDATA[Shubham Phadte]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 08:41:19 GMT</pubDate>
            <atom:updated>2020-06-07T08:41:19.534Z</atom:updated>
            <content:encoded><![CDATA[<p>So you have a website or a blog and you probably want to add a contact form or manage your existing contact form submissions better. <a href="https://www.netlify.com/">Netlify</a> provides a seamless and easy way to do that.</p><p><a href="https://www.netlify.com/">Netlify</a> is a web developer platform which can be used to deploy primarily static websites and has many great services which simplifies deployment processes.</p><p>Let’s start with grabbing a free HTML website template. If you have an existing website or an HTML form or want to build a form from scratch, that’s fine! You can skip this step and make use of it.</p><p>The following is a free template which I found online with a pretty simple contact form.</p><p><a href="https://html5up.net/phantom">Phantom by HTML5 UP</a></p><h3><strong>Configuring the form</strong></h3><p>The form in the template looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvANXuvyAAtlH0dTdB6kTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*jRWR-gf1cP611m73mTa9-Q.png" /><figcaption>Code</figcaption></figure><p>Add data-netlify=&quot;true&quot; and name=&quot;&lt;your-form-name&gt;&quot;in the &lt;form&gt; tag. The name attribute will correspond to the form name on Netlify Dashboard once we deploy the site. While setting data-netlify to true helps Netlify find the form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*CJHFcL7vQreopCx54BGSHA.png" /></figure><p>You can also integrate reCAPTCHA to your form by adding a div with data-netlify-recaptcha=&quot;true&quot; at the bottom of your form just above the submit button as shown in the next piece of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*Sbkq6zLD7PCDrvLBs7WErg.png" /><figcaption>reCAPTCHA added to the form</figcaption></figure><p>If you locally host the site now, you won’t see any reCAPTCHA as the site needs to be deployed on Netlify for the effects to be seen. So let’s move on to deployment.</p><p>If you don’t have a <a href="https://www.netlify.com/">Netlify</a> account yet, you can sign up at <a href="https://www.netlify.com/">https://www.netlify.com/</a></p><p>After logging in you will be greeted by a dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-CparaK2bt-BH2VSXKbM5Q.png" /><figcaption>Netlify Dashboard</figcaption></figure><p>As you can see, you can add a new site from Git, which is the recommended way to host sites as you can manage projects better from Git. <br>But since this is a simple static HTML site, let’s drag and the folder of the site from the system into the space provided in the site&#39;s panel.</p><p>Once you drop your folder Netlify will automatically go through the project files and deploy the site and host it on a system-generated URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PuH9ghIY8cWUwOzc2KqPg.png" /><figcaption>Our site has been deployed</figcaption></figure><p>Now let’s test out if the Form Submission works.</p><p>Click on the URL provided by Netlify for your site and scroll down to the form. It should look similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNTT3quNjQL_kH8EQ89LFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuDeOWYddx21aoISSQsLpg.png" /></figure><p>Enter test contact details and submit the form by clicking on send.</p><p>Now got the site dashboard on Netlify and open the forms panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*OebsGwWUkkDvecgiXm7dMw.png" /><figcaption>contact-form is active</figcaption></figure><p>As you can see, in the Active forms section there is our form with the name specified in the code.</p><p>Click on the form to open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31b-hf3rcuYDVu0S8a1gRQ.png" /></figure><p>You can click open the individual submissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OEm-5mkxcIaQv3XC8667PQ.png" /></figure><p>You can additionally download the submissions as a CSV file and also integrate custom reCAPTCHA or additional spam-prevention to your form.</p><p>All this by simply adding a few attributes to your form.</p><p>Further, you can add a custom domain name to your site in Site Settings, if you want to deploy your site on Netlify. What I love about the platform is the way in which in they have simplified a lot of deployment and maintenance processes especially for static sites. Do give it a try!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1341e33fefb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devclustergoa/simplify-contact-form-submission-with-netlify-1341e33fefb">Simplify Contact Form Submission with Netlify</a> was originally published in <a href="https://medium.com/devclustergoa">Dev Cluster</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>