<?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 Aashish Nehete on Medium]]></title>
        <description><![CDATA[Stories by Aashish Nehete on Medium]]></description>
        <link>https://medium.com/@ashnehete?source=rss-4d6e7303bc68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Ggq5PspUmnQ6mFQuGlc6WA.jpeg</url>
            <title>Stories by Aashish Nehete on Medium</title>
            <link>https://medium.com/@ashnehete?source=rss-4d6e7303bc68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 04:35:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashnehete/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[I Deleted a Database in Production]]></title>
            <link>https://medium.com/workindia-in/i-deleted-a-database-in-production-be78f1211b93?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/be78f1211b93</guid>
            <category><![CDATA[production]]></category>
            <category><![CDATA[deleted]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[failure]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 18:38:33 GMT</pubDate>
            <atom:updated>2020-11-03T18:39:24.805Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>And I had no backup</strong></h4><p>There comes a moment in every developer’s life when they must face this inevitable situation. Really, it’s a rite of passage for our community.</p><figure><img alt="PANIC!" src="https://cdn-images-1.medium.com/max/500/1*4wIhlxi095ZQ8ytKBUot8A.jpeg" /></figure><p>I’m writing this short post to chronicle the events that lead to this dreadful accident along with a few important lessons to learn from this fiasco.</p><p>Before we begin, a quick overview of my infrastructure. The infrastructure at WorkIndia is hosted on AWS and some of the terms reference to AWS Services, but this could happen to anyone hosting databases on virtual machines. This particular microservice was hosted on a <strong>single virtual machine running the API, a PostgreSQL, and a MongoDB </strong>server using Docker containers.</p><h3>Here’s what happened:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Y7Zbv8nMZd3snAA6izREdQ.png" /><figcaption>An apt representation of how it all went down.</figcaption></figure><h4><strong>6:35 PM</strong></h4><p>I try to SSH into the machine but due to unnaturally high CPU load, my connection is unsuccessful. At this point the usual solution is to reboot or stop/start the instance from the AWS Console panel. <strong>BIG MISTAKE!</strong></p><h4><strong>6:40 PM</strong></h4><p>Rebooting doesn’t work.</p><h4><strong>6:40:01 PM</strong></h4><p>I stop the instance and give it a few minutes to boot a new machine and start the docker containers.</p><h4><strong>6:42 PM</strong></h4><p>I see that another instance with the same name has been spawned.</p><figure><img alt="CONFUSED!" src="https://cdn-images-1.medium.com/max/220/1*f5Bt5QZGDuKk4c_p6ySulg.gif" /><figcaption><strong>CONFUSED!</strong></figcaption></figure><h4><strong>6:43 PM</strong></h4><p>Sudden realisation that the service has been configured behind an <strong>Auto Scaling Group (ASG)</strong>. When I stopped the original instance, the ASG couldn’t find a healthy machine and it created a new instance from a very old launch template.</p><p>Its okay, at least I have the original instance and all its data. I’ll just change the database host settings in the new machine.</p><h4><strong>6:43:01 PM</strong></h4><p><strong>Original instance is automatically terminated by ASG.</strong></p><p>Once I stopped the instance, the ASG determined the instance was unhealthy and proceeded to permanently terminate it. This is the default behaviour of an ASG but an instance can be saved from such a fate using a <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">termination policy</a>.</p><h4><strong>6:44 PM</strong></h4><p><strong>I realise I have no backup.</strong></p><figure><img alt="PANIC!" src="https://cdn-images-1.medium.com/max/220/1*KlEwqYdopxMpnR-RDkS-KQ.gif" /><figcaption><strong>PANIK! PANIK!</strong></figcaption></figure><h4><strong>6.45 PM</strong></h4><p>I call in reinforcements, but its too late. The damage is done. All data on both the PostgreSQL and MongoDB was lost.</p><h3>Recover some data?</h3><p>My trusted collegues immediately got to work and devised a plan to regenerate most of the lost data using logic from another service. It took them not more than a day, but thankfully the data was recovered, <em>more or less</em>.</p><h3>Lessons</h3><p>Infrastrucutre is an error prone business. As an infrastructure engineer, I feel more of my energy is spent on creating fail-safes than actually trying to create a perfectly robust application. Things will fail, its our job to handle the failures gracefully.</p><p>Here are a few lessons I’ll take away from the above incident:</p><h4><strong>Never keep stateless and stateful applications in the same virtual machine.</strong></h4><p>At our scale, it is unwise to mix stateless applications like API servers with stateful applications like PostgreSQL and MongoDB which have storage requirements. Stateless and stateful applications play by different rules and therefore need to have vastly different failure strategies.</p><h4>And the most obvious of all: always have a backup.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be78f1211b93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/workindia-in/i-deleted-a-database-in-production-be78f1211b93">I Deleted a Database in Production</a> was originally published in <a href="https://medium.com/workindia-in">WorkIndia.in</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django Behind a Proxy]]></title>
            <link>https://medium.com/workindia-in/django-behind-a-proxy-fefa91d337fd?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/fefa91d337fd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[header]]></category>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[proxy]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 04:13:44 GMT</pubDate>
            <atom:updated>2020-04-13T11:15:39.282Z</atom:updated>
            <content:encoded><![CDATA[<p>With the rise in number of microservices being used at WorkIndia, the old system of using a separate subdomain for each service along with a dedicated Elastic Load Balancer was quickly proving to be too expensive. Thus, a decision was taken to move all microservices under single subdomain using a single ELB. We also added a layer of Cloudfront to decrease costs.</p><p>But soon, we ran into some problems…</p><h3>Incorrect Host Headers</h3><p>The addition of Cloudfront proxy meant that some Django applications won’t get the correct Host headers. This generally isn’t a big deal, but one of our services used this extensively. (Pagination using Django Rest Framework uses it to create next and previous url)</p><p>For eg, Without a proxy, the host header for a sample request like https://api.workindia.in/api/health/ looked like this: <br>Host: api.workindia.in</p><p>But with a proxy, the header changed to Host: api.workindia.in:20000, because that was the port on which our ELB was configured.</p><h4>Solution</h4><p>Luckily, the developers of Django foresaw this and created a <a href="https://docs.djangoproject.com/en/3.0/ref/settings/#use-x-forwarded-host"><strong>setting</strong></a> that could override the Host header with a custom header X-Forwarded-Host.</p><p><strong>USE_X_FORWARDED_HOST = True</strong></p><p>Adding the above line in your settings file will make the application first check the X-Forwarded-Host. If the request contains X-Forwarded-Host header, it will be used as the value for current host.</p><h3>X-Forwarded-Host Header Not Present</h3><p>Feeling confident, I deployed the service in production. But to my disappointment Django was still using the value being passed in the Host header.</p><p>The above solution wasn’t enough, because neither Cloudfront nor the Load Balancer set the X-Forwarded-Host header automatically. Thus the request didn’t contain the required header.</p><h4>Solution</h4><p>Cloudfront allows you to add custom headers to an origin which will be attached to all requests to that origin. <strong>Following </strong><a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html#add-origin-custom-headers-configure"><strong>this guide</strong></a><strong>, we added the following header </strong><strong>X-Forwarded-Host: api.workindia.in.</strong></p><h3>Incorrect Protocol — HTTP instead of HTTPS</h3><p>Now that our request had the X-Forwarded-Host header, we were able to get the port out of our host. Yet, after deployment we couldn’t get it to work.</p><p>I realised that although the host was correct in the next url, the protocol wasn’t. Instead of https, the url was using http.</p><h4>Solution</h4><p>Again Django settings to the rescue. The <a href="https://docs.djangoproject.com/en/3.0/ref/settings/#secure-proxy-ssl-header">SECURE_PROXY_SSL_HEADER</a> setting can be used to specify which header and value determines if the request is https or http.</p><p>It takes a tuple with exactly 2 element:(Header-Name, Header-Value)</p><p>For eg. <strong>SECURE_PROXY_SSL_HEADER = (&#39;HTTP_X_FORWARDED_PROTO&#39;, &#39;https&#39;)</strong></p><p><em>(Remember, Django automatically adds </em><em>&#39;HTTP_&#39; to the start of x-header names before making the header available in </em><em>request.META.)</em></p><p>This tells Django to trust the request is secure (i.e.https) if the header X-Forwarded-Proto has a value of https.</p><p>Although, this didn’t work in my case because the ELB would always override X-Forwarded-Proto to http.</p><p>So, <strong>I </strong><a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html#add-origin-custom-headers-configure"><strong>added a custom header</strong></a> to my Cloudfront Origin (like we did above) called <strong>X-Custom-Proto: https</strong></p><p>I also changed the settings file as such:<br><strong>SECURE_PROXY_SSL_HEADER = (&#39;HTTP_X_CUSTOM_PROTO&#39;, &#39;https&#39;)</strong></p><p>Et voilà! Everything started working perfectly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fefa91d337fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/workindia-in/django-behind-a-proxy-fefa91d337fd">Django Behind a Proxy</a> was originally published in <a href="https://medium.com/workindia-in">WorkIndia.in</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing a Getting Started Tutorial]]></title>
            <link>https://medium.com/workindia-in/writing-a-getting-started-tutorial-f6314fd2683e?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6314fd2683e</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Wed, 05 Feb 2020 08:13:03 GMT</pubDate>
            <atom:updated>2020-02-05T08:13:03.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etmlXFkdq4ihVd8Pq-xYSw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@diskander?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">David Iskander</a> on <a href="https://unsplash.com/s/photos/getting-started?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>A mark of any popular product or technology which enables its adoption is good documentation. An in-depth documentation gives all users the freedom to explore the immense features of your application. On the other hand, a long singular technical document would deter the impatient and turn away potential adopters.</p><p>A simple way to avoid such a situation is to have a <strong><em>“Getting Started”</em></strong> section at the head of your documentation. It should contain a simple set of instructions to quickly get your service up and running, either to quickly sample, or if possible, a minimum viable ready-to-use product.</p><p>In this article, I suggest an outline for such an article.</p><p>It is a great idea to divide the document into sections as such:</p><ol><li>Introduction</li><li>Prerequisites</li><li>Steps</li></ol><h3>Introduction</h3><p>This section includes a short paragraph about the document. Some points to include are support for operating systems, browser support if it’s a web app. A list of popular technologies used can also be added.</p><h4>Example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ktrBuYg6rm-K3hECo89QGw.png" /><figcaption>Introduction for <a href="https://getcomposer.org/doc/00-intro.md#introduction">Composer</a>, a PHP Dependency Manager</figcaption></figure><h3>Prerequisites</h3><p>A list of all softwares needed to be installed before your application can be installed. You can either provide an installation instruction yourself, but it would be a better idea to link to their respective installation/download pages.</p><p>Also mention the specific version of your requirement if it is critical to the working of your application. You wouldn’t want users to fail just because a backwards incompatible change was introduced in your requirement.</p><h4>Example</h4><p>If your application is built on NodeJS, simply mention that NodeJS is required and add a link to the installation documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrMyzr8-VVRkhaiuGHKgjw.png" /><figcaption>A good example of this would be <a href="http://cronicle.net/">Cronicle</a>. Notice how it mentions and links NodeJS installation.</figcaption></figure><p>If you are shipping a docker image for easy installation, you should also add Docker in this section and link to the <a href="https://docs.docker.com/install/">Docker Installation</a>.</p><h3>Steps</h3><p>Cleary breakdown the procedure into logically independent steps. I have seen a few documents comprising solely of a single long code block with just shell commands. Most of the times, the user will copy-paste the whole thing, generally resulting in an error because they missed to replace a custom variable.</p><p>Such long scripts can be easily broken down into various steps so that the user spends time understanding each step, thus drastically reducing above errors.</p><p>Although, it would be overkill to use a step for every single command.</p><h4>Example</h4><p>This tutorial on <a href="https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04">How To Install Node.js</a> by DigitalOcean clearly chalks out my point. Notice how each command has been given dedicated space as to ensure a user’s attention to the important bits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppEZuKU8jBSX5gzIg5ZuUw.png" /><figcaption>A good example with explanation for each command</figcaption></figure><p>Below is a <strong><em>bad example</em></strong> which might end up confusing users if all the commands are directly pasted in the terminal as it contains a nano command as well as an apt install which may ask for permission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tUoPF7j8LZTzuyh60b6Wg.png" /><figcaption>A bad example to Install NodeJS</figcaption></figure><p>Tips</p><ol><li>Write all code in code blocks. (Syntax highlighting could be a nice add-on)</li><li>$ before all shell commands.</li><li>Use screenshots.</li><li>Link to external resources if you reference them in your documentation.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6314fd2683e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/workindia-in/writing-a-getting-started-tutorial-f6314fd2683e">Writing a Getting Started Tutorial</a> was originally published in <a href="https://medium.com/workindia-in">WorkIndia.in</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Faster Fene: A New Dawn for Marathi Cinema]]></title>
            <link>https://medium.com/@ashnehete/faster-fene-a-new-dawn-for-marathi-cinema-534b301aab87?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/534b301aab87</guid>
            <category><![CDATA[foreign-language]]></category>
            <category><![CDATA[marathi]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[faster-fene]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Sun, 12 Nov 2017 16:12:36 GMT</pubDate>
            <atom:updated>2023-08-19T18:26:12.531Z</atom:updated>
            <content:encoded><![CDATA[<p>I by no means claim to be a film critic, especially of the Marathi cinema. I’m only able to write this post, about this movie, is because I was born in a Marathi speaking family.</p><p>Marathi — a language spoken by around 75 million people worldwide; has its own film industry to boast of. And the newest addition to this list is: Faster Fene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIHTl0W0EpYlWhUBgR8MaA.jpeg" /><figcaption>Movie Poster for Faster Fene</figcaption></figure><p>A simple story of a murder, a budding detective, and an unforgettable villain. The premise or the genre is nothing new to the world, but what sets this movie apart from the rest is its beautiful plot, well developed characters and above all, outstanding acting from all the actors.</p><p>Taking a moment out to talk about the essence of the story: the villain. Phenomenal portrayal of Appa by Girish Kulkarni compels the viewers to stand in awe. They say, the story is as strong as its antagonist and this movie proves it right. Along with Amey Wagh as the protagonist detective Banesh Fene, completes the whole frame.</p><p>As I said I’m not a critic, and neither am I here to criticise the movie. So why am I writing this post? And more importantly, why am I writing about a Marathi movie in English?</p><p>Because that’s the language of my intended audience. A Maharashtrian may not need more than the trailer to encourage him to watch this movie, but I can’t stand the non-Marathi speakers missing out on such a gem.</p><p>This generation tries to transcend the boundaries of language as often as it can. For example, quite recently there has developed a trend of watching acclaimed foreign language movies. I, myself, have caught this bug and it has opened my eyes to the many cultures of this world. So why not you?</p><p>Faster Fene can be counted as one of those “acclaimed foreign language” movies not only as eye-opener for my culture, but also as a 2 hour entertainer. This may be the first time a “commercial” movie has gained such renown and can be recommended to non-speakers of Marathi.</p><p>So what are you waiting for? Go online, book a ticket and sit through the 2 hours and I promise you will not be disappointed. PS: Obviously there are subtitles.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbWYrU2BAmGo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbWYrU2BAmGo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbWYrU2BAmGo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3145c58c34bfcd1dcfc0e0535f94855d/href">https://medium.com/media/3145c58c34bfcd1dcfc0e0535f94855d/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=534b301aab87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the heck is CSS?]]></title>
            <link>https://medium.com/@ashnehete/what-the-heck-is-css-3c1b2f4f7e0e?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c1b2f4f7e0e</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Sat, 08 Apr 2017 14:12:43 GMT</pubDate>
            <atom:updated>2017-04-08T14:21:30.070Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You can tell your story across the globe now, but can you really show it.</blockquote><p>We saw <a href="https://medium.com/@ashnehete/what-the-heck-is-html-4bda639d0e9">HTML</a> last week. It helped us format content on a single page. The first website, though revolutionary, looked kinda pale with just words and links. If one really wants to build a social media network like FaceBook or even an marketing website for a small café, they need to make the website attractive for the people visiting those. Like really attractive.</p><p>And how to do that, that’s right — <strong>CSS.</strong></p><p>Håkon Wium Lie and Bert Bos, together co-created the specification for this new way of styling a document in 1996. Slowly, all the browsers started adopting this and today we can see it in use on every single website on the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*mI0a6cTpcvuhoNw2pvlzUw.png" /></figure><p>CSS stands for <strong>Cascading StyleSheets.</strong></p><p>HTML has styling abilities embedded in its tags, but CSS enables us to separate the presentation of the document from the content. This makes it easier to make changes in either of those aspects whenever needed.</p><p>As we know, a tag is the basic unit of any fundamental document. So, using CSS, we can <strong>select</strong> a tag (or a set of tags) and apply specific styles to them like <strong>font, color, position, border, background, etc.</strong></p><p>Each style is defined by a <strong>key-value</strong> pairing. The style property to be applied is the key and the value of that property is… well the value.</p><p>For eg,</p><pre>background-color: black</pre><p>This sets the <strong>background color</strong> to <strong>black</strong>. Duh!</p><p>Now, how do we attach this style to the content?</p><p>Actually, there are 3 ways to do that:</p><p><strong>1. Inline</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7256c76b51936c56593014776d75d37b/href">https://medium.com/media/7256c76b51936c56593014776d75d37b/href</a></iframe><p><strong>2. Internal</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8eb9d39c94a0798da8894fc2618c3efe/href">https://medium.com/media/8eb9d39c94a0798da8894fc2618c3efe/href</a></iframe><p><strong>3. External</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/640cfca1db9e461afa3985e8c39d26f2/href">https://medium.com/media/640cfca1db9e461afa3985e8c39d26f2/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cac95a0f03b87d02f56a2ce256038887/href">https://medium.com/media/cac95a0f03b87d02f56a2ce256038887/href</a></iframe><p>Furthermore, giving the style to a <strong>div</strong> tag will apply those properties to all the div tags in the document. So what if I want to attach the style to specific tag/tags only. Well obviously there is a provision for that; you can use <strong>id and class</strong> attribute on the tags. This helps you mark the tags to be used in not only styling but also manipulation (which we will see later).</p><h4>What next?</h4><ol><li><a href="https://www.freecodecamp.com/">FreeCodeCamp</a>, the best way to start learning the web.</li><li><a href="https://www.w3schools.com/html/">W3Schools</a> is regarded as the foremost tutorial for web technologies. (Debatable)</li></ol><p>Follow this series on <a href="http://ashnehete.in/what-the-heck-is/"><strong>What the heck is?</strong></a> for the latest articles on topics you don’t know about… yet!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c1b2f4f7e0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the heck is HTML?]]></title>
            <link>https://medium.com/@ashnehete/what-the-heck-is-html-4bda639d0e9?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bda639d0e9</guid>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Sun, 02 Apr 2017 16:34:28 GMT</pubDate>
            <atom:updated>2017-06-15T09:43:52.597Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This is the information age, powered by the internet. And HTML is what powers this information exchange.</blockquote><p>At the dusk of the previous century, less than a decade to the millennium; a single man named Tim Berners-Lee had the brilliant idea of a world wide web. The concepts of computer networks were already in place, he got them all together to create the first website at CERN. He designed and built the first web browser and the first web server, <a href="https://en.wikipedia.org/wiki/CERN_HTTPd">CERN HTTPd</a>.</p><p>The whole point of creating the world wide web was to facilitate information exchange (primarily between scientists at CERN), to connect different entities to each other only separated by a computer screen.</p><p>The transfer of data had been taken care of by the networks. All we need now was a way to format the data so that anyone can comprehend the data. Thus HTML was born.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*pV_KVJsHRRk7N9WzxEAiAQ.png" /><figcaption>A HTML file has a .html extension.</figcaption></figure><p>HTML stands for <strong>HyperText Markup Language.</strong></p><p>Okay, lets break it down.</p><p><strong>Hypertext</strong> is defined as the text displayed on a computer screen or any electronic devices containing links to other text documents.</p><p><strong>Markup Language</strong> is a <strong>syntax </strong>to structure a textual document to add information about the data in the text. (or if you may — metadata)</p><p>So, for example, how do you embed in a document that certain part of the text should be displayed in bold. In comes HTML. We format the data in such a way that it includes the information about the bold-<em>ness</em> of a text.</p><p>And that format is — &lt;b&gt;This is some bold text.&lt;/b&gt;</p><p>The <strong>browser</strong> is a specifically designed piece of software which understands this language and interprets it. It shows the user <strong>bold text</strong> rather than &lt;b&gt;bold text&lt;/b&gt;.</p><p>The fundamental units of this language are tags. “&lt;b&gt;” is a tag, its a bold tag, and “&lt;/b&gt;” is the corresponding end tag. Each tag is terminated using a corresponding end tag, enclosing in the data to be formatted according to the specific tag. This format also allows for nesting other tags inside it (that’s actually the true strength of HTML).</p><p>The most import tags are html, head and body. Each html document should have these to exploit the full potential of a web browser. It is structured as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daeb5db14080e6b52cfe7160a76b5381/href">https://medium.com/media/daeb5db14080e6b52cfe7160a76b5381/href</a></iframe><p>We have only seen the <em>bold</em> tag till now. So what else can we do with this?</p><p>Well you already know that; each and every website out there uses HTML to serve its content to the user. All the stuff you see out there on the world wide web is powered by this language (and other tools).</p><p><em>The bottom line: HTML is basis of all websites today and learning it is a piece of cake.</em></p><h4>What next?</h4><ol><li><a href="https://www.freecodecamp.com/">FreeCodeCamp</a>, the best way to start learning the web.</li><li><a href="https://www.w3schools.com/html/">W3Schools</a> is regarded as the foremost tutorial for web technologies. (Debatable)</li></ol><p>Follow this series on <a href="http://ashnehete.in/what-the-heck-is/"><strong>What the heck is?</strong></a> for the latest articles on topics you don’t know about… yet!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bda639d0e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the heck is Bootstrap]]></title>
            <link>https://medium.com/@ashnehete/what-the-heck-is-bootstrap-5a0193e5cfa4?source=rss-4d6e7303bc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a0193e5cfa4</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Aashish Nehete]]></dc:creator>
            <pubDate>Sun, 26 Feb 2017 13:39:40 GMT</pubDate>
            <atom:updated>2017-02-26T13:52:49.782Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*wXhdUKkpJUQZ-kqtBWCwWA.png" /><figcaption>Bootstrap</figcaption></figure><p><a href="http://getbootstrap.com/">getbootstrap.com</a> defines itself as:</p><blockquote>Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.</blockquote><p>Ummm… okay got it, thanks!</p><p>A substantial number of people have approached me confused about what Bootstrap actually does or how it works. The word framework really puts beginners in a fix, driving them away from this project.</p><h3><strong>A brief introduction to web programming</strong></h3><p><strong>HTML</strong> — A way to format(markup) information we want to display on a website.</p><p><strong>CSS</strong> — A way to style the information in a HTML document. Making it pretty and all. ;)</p><p>Integrating styles in your HTML page using CSS can be done in 3 different ways:-</p><p>1. Inline — Styling inside the HTML Tag.</p><p>2. Internal — Writing the styles inside the &lt;style&gt; tag.</p><p>3. External — Including the link to an external .css file in our target HTML file.</p><h3><strong>Get to the Bootstrap part already</strong></h3><p>Essentially, Bootstrap is a huge CSS file filled with styling for all the HTML tags you will need to create a website. It’s a BIGGGG file, take a look <a href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">here</a>.</p><p>Let’s take a look at an example to make it clear.</p><p><strong>Without Bootstrap:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fashnehete%2Fembed%2Fpreview%2FxqboBj%3Fheight%3D600%26amp%3Bslug-hash%3DxqboBj%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fashnehete%2Fpen%2FxqboBj&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2ca6537cad710ee643c0037ce159fb9/href">https://medium.com/media/c2ca6537cad710ee643c0037ce159fb9/href</a></iframe><p><strong>With Bootstrap:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fcodepen.io%2Fashnehete%2Fpen%2FVpYJGE&amp;src=https%3A%2F%2Fcodepen.io%2Fashnehete%2Fembed%2Fpreview%2FVpYJGE%3Fheight%3D600%26amp%3Bslug-hash%3DVpYJGE%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/51e73ef1970db1646696fa4bb1f9537f/href">https://medium.com/media/51e73ef1970db1646696fa4bb1f9537f/href</a></iframe><p>The same HTML code looks so beautiful by just adding the Bootstrap CSS file to our projects.</p><p>Simple enough?</p><p>To end the article here will be a great understatement to Bootstrap. Not only does it provide styles to HTML tags but also extends them to various components usually essential to a modern website. Some of those components are: -</p><ol><li>Grid System</li><li>Icons &amp; Typography</li><li>Buttons</li><li>Forms</li><li>Navigation Bars</li><li>Tables</li><li>etc.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Iz51jbbIBdHF1vJFJHsuw.png" /><figcaption>Different components and how they look</figcaption></figure><p>You know what’s the best thing about websites: <strong>portability</strong>. The ability to access the same content irrespective of the device you are on.</p><p>You know what’s the worst thing about websites: <strong>portability</strong>. Different devices mean different screen sizes. And that becomes difficult for developers to style the elements on the page using sizing.</p><p>In comes Bootstrap to the rescue with its responsive styling. Responsive is the latest trend in web design; it means that the content of the pages will dynamically adapt to the screen size of the device you are accessing the website from. Woah, isn’t that awesome!</p><p>Apart from CSS, the framework also provides JS scripts to add functionalities like modals, dropdowns, tabs, etc.</p><p>I hope that helps you better understand how simple and powerful Bootstrap is. So head over to the <a href="https://getbootstrap.com/">official site</a> now and start building your websites.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a0193e5cfa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>