<?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 Adipta Biswas on Medium]]></title>
        <description><![CDATA[Stories by Adipta Biswas on Medium]]></description>
        <link>https://medium.com/@adiptabiswas?source=rss-3e99f28e6668------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ba2b1UMfj2Hj0gVW6cdEfQ.jpeg</url>
            <title>Stories by Adipta Biswas on Medium</title>
            <link>https://medium.com/@adiptabiswas?source=rss-3e99f28e6668------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 21:17:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adiptabiswas/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[Semantic HTML — An overview]]></title>
            <link>https://adiptabiswas.medium.com/semantic-html-an-overview-a1bd69ca0f22?source=rss-3e99f28e6668------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1bd69ca0f22</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Adipta Biswas]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 09:58:16 GMT</pubDate>
            <atom:updated>2021-06-23T09:58:16.342Z</atom:updated>
            <content:encoded><![CDATA[<h3>Semantic HTML — An overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-Z1RoqHqPVfFH9gNj5fRg.png" /></figure><p>If you have just started learning <strong>HTML</strong> language, this article might be a free and rich tutorial for you. To become a good Front-end web developer, we must know how and where to use the s<strong>emantic elements</strong> in our script. This article contains almost everything we need to know about semantic elements in HTML.</p><h3>What is Semantic?</h3><p><a href="https://en.wikipedia.org/wiki/Semantics">Wikipedia</a> says, “Semantic is the study of meaning, reference, or truth”.</p><p>If you are not new to programming, you must know about the term s<strong>emantic errors</strong>,<strong><em> </em></strong>i.e.<strong> logical errors</strong><em>.</em><strong> </strong>In simpler terms,<em> if we are in search of the literal meaning of a word, we go for the semantics or logical meaning of that particular word.</em></p><p>We are good to dive deep now.</p><h3>What are Semantic HTML elements?</h3><p>Just like other HTML elements and tags, S<strong>emantic elements </strong>serve their own important roles in terms of <em>defining</em>, <em>viewing,</em> and <em>rendering</em> an HTML document. They help to divide and format an HTML page in a hierarchical manner by adding a literal meaning to every section of the page.</p><p><em>Semantic elements add logical meaning to every section of an HTML page so that web browsers can understand them in terms of content.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*FX4dVupckKqEhTltvPgC_w.png" /><figcaption>Fig 1. Designing a web document using Semantic HTML elements like section, footer, etc.</figcaption></figure><p>If we view <strong>Fig 1</strong>, we can see some tags like header, footer, section, etc. <em>Going by their names, their role in every document is exactly how they are named</em>. As a collective, they are nothing but called the Semantic elements in HTML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/1*k1FoJabhG4qM5Vyaxzi87g.gif" /><figcaption>Fig 2. HTML Semantic elements — W3Schools</figcaption></figure><p>In <strong>Fig 2</strong>, we can see how the semantic elements in HTML <em>divide a web page into respective partitions</em>. It’s easy for us to at least guess the functionalities of those elements and what purpose each and everyone solves. <em>When we add Semantic elements, we add meaning to the contents of an HTML document.</em></p><h3>Some important Semantic HTML elements:</h3><h4>* header:</h4><p>This tag represents the block that contains the headings of an HTML page. The h1, h2, etc. tags reside inside the header semantic tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*eXbegqMn6gSucYxNA0RpiA.png" /><figcaption>Fig 3. &lt;header&gt; tag containing &lt;h1&gt; and &lt;h2&gt; tags</figcaption></figure><h4>* nav:</h4><p>The nav tag is solely responsible to enclose and represent the navigation bar of an HTML page. It defines a set of links redirected to other resources over the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*9b_qXX5bH1EoL1hLVpAbjw.png" /><figcaption>Fig 4. The two &lt;a&gt; tag-links are enclosed by the &lt;nav&gt; tag</figcaption></figure><p>We should use nav tag outside header tag for our browsers to understand web pages better and improve overall script flow.</p><h4>* section:</h4><p>When we write an HTML document, we provide a lot of content in our scripts. The section element helps us to better arrange and divide the contents provided in our HTML file in terms of blocks. The closest alternative to this tag is the <strong>non-semantic element </strong>div .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*GL18neuuVobYw9GJTQwBLQ.png" /><figcaption>Fig 5. There are two &lt;section&gt; elements containing two distinct paragraphs</figcaption></figure><h4>* figure:</h4><p>This tag embodies independent pictures, images, screenshots, illustrations, etc. The figure tag might be able to help to identify any kind of imagery content in an HTML document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*KjoHrdSi3n3j7QgUXq6OaA.png" /><figcaption>Fig 6. The &lt;figure&gt; tag containing a &lt;figcaption&gt; tag inside it</figcaption></figure><h4>* article:</h4><p>When we write content, we tend to put it inside a article tag. This tag is mostly used to demonstrate content mostly in blog pages or media sites. Any meaningful writings or contents on a blog page are to be enclosed inside article tags. The article tag helps our browsers to identify any descriptive content from a page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*5nASMafb1GVyzqL4Y2Fvow.png" /><figcaption>Fig 7. There are two &lt;article&gt; tags representing two distinct articles</figcaption></figure><h4>* aside:</h4><p>The aside tag is used when we want to display something in the sidebar of our web page. The advertisements on a blog page are mostly put inside the aside elements. We often use this tag to present content horizontally away from the main flow of our content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*dpjj15h0r5HpPD2gG-im4Q.png" /><figcaption>Fig 8. Representation of &lt;aside&gt; element nested under body tag</figcaption></figure><h4>* footer:</h4><p>We all have noticed addresses, maps, site maps, etc. at the bottom of almost every web sites. The footer tag embodies those data inside it and no other object which doesn’t represent the bottom of a web page is kept inside it. The footer element marks the bottom of a web page just like the header tag marks the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*RPaTyteiedD5dR2sthCglw.png" /><figcaption>Fig 9. The &lt;footer&gt; tag is kept just before the ending of the body tag</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1bd69ca0f22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS property — Position]]></title>
            <link>https://adiptabiswas.medium.com/css-property-position-a4cade1d5f99?source=rss-3e99f28e6668------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4cade1d5f99</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Adipta Biswas]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 11:09:56 GMT</pubDate>
            <atom:updated>2021-06-14T11:09:56.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS property — Position</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0g8gUbsLqzF3uf913aaSSQ.png" /></figure><p>Hello, World! In this content, we will try to grab the concepts of one of the trickiest and crucial topics in CSS.</p><p>Position layout property in CSS is solely used to place and position elements respectively in an HTML document. They assign respective positions to HTML elements so that the overall design of our page is maintained and managed well.</p><p>The widely used position property in CSS are as follows:</p><h4>Static position:</h4><p>When an HTML element gets assigned with static position, the various position properties like left, right, top and bottom doesn&#39;t work. Elements in an HTML document carry static position by default.</p><p>Let’s copy and paste the code below in an IDE to view what’s happening.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3cf9080f35fae4ed3cd4cdbcd6b1b8ed/href">https://medium.com/media/3cf9080f35fae4ed3cd4cdbcd6b1b8ed/href</a></iframe><p>Upon adding position property static to the selector id Div2, we saw that the position of Div2 box didn&#39;t change. Hence, we can conclude that elements with position static doesn&#39;t get affected by left, right, top or bottom properties.</p><h4>Relative position:</h4><p>When an element gets assigned with position relative, the position properties like left, right, top and bottom affects the element&#39;s position in the page relative to it&#39;s normal position as static.</p><p>Let’s copy and past the code below to Div2 selector to replace the previous position property.</p><pre><strong>#Div2 {<br>        position: relative;<br>        left: 20px;<br>        top: 50px;<br>      }</strong></pre><p>We can see that the Div2 box changed it&#39;s position relative to it&#39;s normal or static position, i.e. 20px from the left and 50px from the top. Upon applying relative position property to an element, other contents in the same box doesn&#39;t get affected and change positions.</p><h4>Fixed position:</h4><p>This position property is used to freeze an element in a particular location of the page so that scrolling doesn’t affect the visibility or location of the element. When we apply fixed value to a selector, it gets removed from the flow of the HTML document, i.e. the selector element gets uprooted from it&#39;s actual position, becomes relative to the entire viewport and doesn&#39;t get scrolled.</p><p>Let’s copy and past the code below to know the difference.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85d6ecbed80d208ee9630c374c227530/href">https://medium.com/media/85d6ecbed80d208ee9630c374c227530/href</a></iframe><p>After scrolling, we can see that the id Div2 gets fixed in the topmost corner of the document.</p><h4>Absolute position:</h4><p>Just like fixed position, the absolute position property removes selectors from the flow. As the element gets removed from it&#39;s normal position, the parent element doesn&#39;t regard it as it&#39;s child anymore. The element becomes relative to the document.</p><p>Let’s copy and paste the code below to see how absolute position affects the element.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/568008e41126e455238e58480064e1c8/href">https://medium.com/media/568008e41126e455238e58480064e1c8/href</a></iframe><p>We can see that the element with id Div2 becomes absolute to a parent element with id overall. Let&#39;s tweak the code to see how the element with absolute position behave if there are no parent elements with non static position value.</p><pre><strong>#overall {<br>        background-color: orange;<br>        border: solid;<br>        /* position: relative; */<br>        font-family: monospace;<br>        font-size: 3rem;<br>      }</strong></pre><p>The selector element with id Div2 gets absolute with the document.</p><p>When absolute position property is applied to an element, it becomes relative to it&#39;s parent element if and only if the parent element is not positioned static. The element becomes absolute to it&#39;s nearest parent with position value apart from static.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4cade1d5f99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Unleashing the beast in Python” — We are Pythonistas, let’s write lighter codes.]]></title>
            <link>https://adiptabiswas.medium.com/unleashing-the-beast-in-python-we-are-pythonistas-lets-write-lighter-codes-41d913ed4703?source=rss-3e99f28e6668------2</link>
            <guid isPermaLink="false">https://medium.com/p/41d913ed4703</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Adipta Biswas]]></dc:creator>
            <pubDate>Sun, 13 Dec 2020 18:20:23 GMT</pubDate>
            <atom:updated>2021-06-14T10:24:37.156Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Unleashing the beast in Python” — We are <strong>Pythonistas</strong>, let’s write lighter codes.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1cUKJmtr8KylJDoRmxvfA.jpeg" /><figcaption>I am powerful</figcaption></figure><p><em>The field of Data Science is expanding everyday. An increasing population is resulting to gain more amount of data for analysis, information extraction and changing lives. Frequent and lots of data transformations, data formatting, feature filtering and many other jobs are required to be done successfully before coming up with a good data set for Modeling in the field of Data Science.</em></p><p>The Feature engineering part consumes a lot of power and time in this field followed by the Data preparation part. As we all know that there are a lot of tasks involved before looking at the modeling part, writing repetitive codes and writing codes in the traditional way consume a lot of time, makes our code bulkier and often increase the code-time complexity. In this article, I am going to explain and demonstrate: <strong>Lambda</strong> function, <strong>Map</strong> function, <strong>Filter</strong> function and <strong>List comprehension</strong> technique.</p><h3>Pythonic In-line functions:</h3><p>There are a lot of <em>built-in functions</em> in Python which were efficiently designed and written just to make our lives easier. Most of the functions are used as an <em>in-line functions</em> at the time of writing out scripts. As we know, everything that we see in an OO language like Python are o<em>bjects</em>, belong to various <em>classes</em>.</p><h4>Lambda function:</h4><p>The <strong>Lambda</strong> function or <em>lambda()</em>, very well known as the <em>anonymous function</em> is designed specially to fit functions in a single line. <em>We can definitely understand the power of this feature in terms of code readability, reduction in bulkiness of code and increase in efficiency.</em></p><p>Let’s say we have a data frame as mentioned below. We have to create a new feature that will have the concatenated values of two or more other object type features. If we have shifted recently to Python, we would approach it in the traditional method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf73f2502f4ed5d89673148de73e6f39/href">https://medium.com/media/cf73f2502f4ed5d89673148de73e6f39/href</a></iframe><p><em>We can solve the same problem by using Lambda function and reduce the number of lines to two lines only. In order to see the difference, we can definitely refer to the code is below and compare the similar code above. We must also remember that Lambda function returns output of type function.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2889b6d56a99b370fbe9601adf8c183/href">https://medium.com/media/f2889b6d56a99b370fbe9601adf8c183/href</a></iframe><h4>Map function:</h4><p>We all are familiar with how <em>algebraic functions </em>perform basic operations on a given set of <em>input </em>known as the <em>Domain</em> and which in turn <em>maps</em> on to another set as <em>output</em> known as the <em>Co-domain</em>. The Map function or map() in Python is a built-in function performs the similar way as it takes each item from any form of data structure as input and maps a function and generates a sequence of output.</p><p><em>In Python scripts, the Map function comes in handy with the Lambda function as it helps the function to apply over all the elements from the iterable object and perform the objective of the function on the data.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bd992424943a5f33326354c73a9b614/href">https://medium.com/media/0bd992424943a5f33326354c73a9b614/href</a></iframe><h4>Filter function:</h4><p><em>The Filter function or filter() is also one of the most important built-in functions Python hold. Just like normal filters in any other fields, in Python, the Filter function performs on a given set of conditions. It generate iterators from a given set of values if the passed conditions are satisfied.</em></p><p>While coding in Python, we often tend to increase the bulkiness of our code by not using this function where it should be used. In a given data set, let’s say we have to filter out the names of animals which doesn’t start with the letter “C”. We make the code bulkier if we use the traditional approach of filtering with a function as mentioned below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b5bd359c683ec7eb98a21c5cae7bcdc/href">https://medium.com/media/0b5bd359c683ec7eb98a21c5cae7bcdc/href</a></iframe><p><em>The Filter function returns an iterator and they need to be further casted to any form of desired structures</em>. The similar problem can be solved as well using the filter() function in a single line or two as demonstrated below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a4e22f7abdebc48428a309b83cda486/href">https://medium.com/media/1a4e22f7abdebc48428a309b83cda486/href</a></iframe><h3>Pythonic approach— List comprehension</h3><p>Being lazy is good but writing small and smart codes in Python is better. Python has given power to some of it’s data structures such as the <em>List </em>and the most reputed among them is the power of <strong>List comprehension</strong>. A shorter syntax is one of the most important phase of a good programming language, mostly in the world of Data Science where you don’t have much time to write codes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa128b50411cfd479b9a1e8f882edaf7/href">https://medium.com/media/fa128b50411cfd479b9a1e8f882edaf7/href</a></iframe><p>The code above is taking a lot of steps to perform a task of <em>doubling values</em> in a list and storing them in a new list. <em>With the help of List comprehension technique, we can reduce those number of steps to not more than 3 lines in an optimized form.</em> We can see that in the code below and compare it with the similar code written above:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/078d7cb8679196e7dd8c00853529ce98/href">https://medium.com/media/078d7cb8679196e7dd8c00853529ce98/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41d913ed4703" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>