<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Manoranjan</title>
    <description>The latest articles on DEV Community by Manoranjan (@manoranjand).</description>
    <link>https://dev.to/manoranjand</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F822576%2Fac4b7f58-2f4b-4eb6-b9ab-19f2f2a4b6e1.png</url>
      <title>DEV Community: Manoranjan</title>
      <link>https://dev.to/manoranjand</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manoranjand"/>
    <language>en</language>
    <item>
      <title>Use the right CSS Units</title>
      <dc:creator>Manoranjan</dc:creator>
      <pubDate>Fri, 24 Feb 2023 14:15:11 +0000</pubDate>
      <link>https://dev.to/manoranjand/use-the-right-css-units-2mc2</link>
      <guid>https://dev.to/manoranjand/use-the-right-css-units-2mc2</guid>
      <description>&lt;p&gt;Cascading Style Sheets (CSS) is a powerful styling language used for creating visually appealing and responsive websites. One of the most important aspects of CSS is the use of units, which allow developers to define the size and position of elements on a webpage. In this article, we will explore the different types of CSS units and provide some tips on how to use them correctly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0pxzkegbfr38xxqwtegj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0pxzkegbfr38xxqwtegj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Pixel (px)
&lt;/h4&gt;

&lt;p&gt;Pixel is the most commonly used unit of measurement in CSS. It represents a single dot on a screen and is used to define the exact size of an element. While pixels provide precise control over element size, they do not scale well across different devices and screen sizes.&lt;/p&gt;

&lt;h4&gt;
  
  
  Percentage (%)
&lt;/h4&gt;

&lt;p&gt;Percentage units are relative to the size of the parent element. For example, if you set the width of an element to 50%, it will be half the size of its parent element. This makes percentage units ideal for creating responsive designs that adapt to different screen sizes.&lt;/p&gt;

&lt;h4&gt;
  
  
  em and rem
&lt;/h4&gt;

&lt;p&gt;Em and rem are relative units that are based on the font size of the element. Em is relative to the font size of the parent element, while rem is relative to the font size of the root element (usually the html element). These units are useful for creating scalable designs that adapt to changes in font size.&lt;/p&gt;

&lt;h4&gt;
  
  
  Viewport units (vw and vh)
&lt;/h4&gt;

&lt;p&gt;Viewport units are based on the size of the browser window and are expressed as a percentage of the viewport width (vw) or viewport height (vh). These units are ideal for creating responsive designs that adjust to different screen sizes.&lt;/p&gt;

&lt;h4&gt;
  
  
  Absolute units (in, cm, mm, pt, pc)
&lt;/h4&gt;

&lt;p&gt;Absolute units are fixed units of measurement that are not dependent on the size of the viewport or parent element. They are commonly used for print stylesheets or in situations where precise control over element size is required.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tips for Using CSS Units Correctly:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Use relative units for responsive design: Relative units like percentage, em, and rem are ideal for creating responsive designs that adapt to different screen sizes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consider using viewport units: Viewport units (vw and vh) are a great way to create elements that are proportional to the size of the browser window.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use pixel units sparingly: While pixels provide precise control over element size, they do not scale well across different devices and screen sizes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use absolute units for print stylesheets: Absolute units like in, cm, mm, pt, and pc are commonly used for print stylesheets or situations where precise control over element size is required.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid using too many different units: Using too many different units in your CSS code can make it harder to maintain and debug. Try to stick to a consistent set of units throughout your stylesheet.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
      <category>style</category>
    </item>
    <item>
      <title>All About ChatGPT</title>
      <dc:creator>Manoranjan</dc:creator>
      <pubDate>Thu, 23 Feb 2023 14:38:50 +0000</pubDate>
      <link>https://dev.to/manoranjand/all-about-chatgpt-5aga</link>
      <guid>https://dev.to/manoranjand/all-about-chatgpt-5aga</guid>
      <description>&lt;p&gt;ChatGPT is an advanced artificial intelligence language model that was developed by OpenAI. It is considered one of the most powerful and sophisticated language models in the world, with the ability to understand and generate human-like language. In this article, we will take a closer look at what ChatGPT is, how it works, and its potential applications.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ferewd9e1srfnwk1mu051.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ferewd9e1srfnwk1mu051.png" alt=" " width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is ChatGPT?
&lt;/h3&gt;

&lt;p&gt;ChatGPT stands for "Chat Generative Pre-training Transformer." It is an advanced language model that is based on the transformer architecture, which was first introduced by Google in 2017. The transformer architecture is a neural network that uses self-attention mechanisms to process input data, allowing it to understand the context and meaning of text.&lt;/p&gt;

&lt;p&gt;ChatGPT takes this architecture to the next level, using a technique called "pre-training" to improve its language generation capabilities. Pre-training involves training the model on a large corpus of text data, such as books, articles, and other written content, to help it understand the nuances of language and grammar.&lt;/p&gt;

&lt;h3&gt;
  
  
  How does ChatGPT work?
&lt;/h3&gt;

&lt;p&gt;ChatGPT works by analyzing text inputs and generating responses based on what it has learned from its pre-training. When a user inputs a question or statement, ChatGPT uses its self-attention mechanisms to process the input and generate a response that is based on the context and meaning of the text.&lt;/p&gt;

&lt;p&gt;The model is designed to continuously learn and improve its language generation capabilities over time, allowing it to generate more accurate and nuanced responses. This is achieved through a process called "fine-tuning," which involves training the model on specific tasks, such as language translation or sentiment analysis, to improve its performance.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are the potential applications of ChatGPT?
&lt;/h3&gt;

&lt;p&gt;ChatGPT has a wide range of potential applications across various industries and fields. Some of the most common applications include:&lt;/p&gt;

&lt;p&gt;Customer service: ChatGPT can be used to create chatbots and virtual assistants that can handle customer inquiries and provide personalized support.&lt;/p&gt;

&lt;p&gt;Content creation: ChatGPT can be used to generate high-quality content for websites, social media, and other digital platforms.&lt;/p&gt;

&lt;p&gt;Language translation: ChatGPT can be used to translate text from one language to another, providing a more accurate and nuanced translation than traditional translation tools.&lt;/p&gt;

&lt;p&gt;Education: ChatGPT can be used to create interactive learning experiences that provide personalized feedback and support to students.&lt;/p&gt;

&lt;p&gt;Healthcare: ChatGPT can be used to analyze patient data and provide personalized recommendations for treatment and care.&lt;/p&gt;

&lt;p&gt;Overall, ChatGPT represents a significant advancement in the field of natural language processing and has the potential to transform the way we communicate and interact with technology. As the technology continues to evolve, we can expect to see even more exciting applications and use cases emerge in the years to come.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>discuss</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to execute your first .robot file.</title>
      <dc:creator>Manoranjan</dc:creator>
      <pubDate>Tue, 28 Jun 2022 15:23:22 +0000</pubDate>
      <link>https://dev.to/manoranjand/how-to-execute-your-first-robot-file-1gp</link>
      <guid>https://dev.to/manoranjand/how-to-execute-your-first-robot-file-1gp</guid>
      <description>&lt;p&gt;Robot Framework is a generic open source automation framework. It can be used for test automation and robotic process automation (RPA). It can be integrated with virtually any other tool to create powerful and flexible automation solutions.&lt;/p&gt;

&lt;p&gt;Robot Framework has an easy syntax, utilizing human-readable keywords. Its capabilities can be extended by libraries implemented with Python, Java or many other programming languages. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pre-requisites - you need to have python installed.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;step-1: install robotframework&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install robotframework

after executing this command verify the robotframework installation

robot --version
or 
pip list 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;step-2 : install SeleniumLibrary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install robotframework-seleniumlibrary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step-3 : you still need to install browser drivers separately.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Goto the following link  
https://www.selenium.dev/selenium/docs/api/py/index.html#drivers
and download necessary drivers unzip and place it PATH,
or you can place inside python folder
Ex: C:\Program Files\Python-38\Scripts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step-4: Open your favorite IDE or simply nodepad &amp;amp; copy the below code &amp;amp; save as tc1.robot&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*** Settings ***
Library           SeleniumLibrary

*** Test Cases ***
My first robot file 
    Log To Console     Hello Robot World..!
    Open Browser https://www.google.co.in/ chrome
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step-5: Open the terminal &amp;amp; execute the file 🚀&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python -m robot tc1.robot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;congratulation..!! you have executed your first robot file 🙌&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>automati</category>
      <category>robot</category>
      <category>robotframewor</category>
    </item>
    <item>
      <title>A Guide To Flexbox</title>
      <dc:creator>Manoranjan</dc:creator>
      <pubDate>Mon, 27 Jun 2022 14:17:53 +0000</pubDate>
      <link>https://dev.to/manoranjand/a-guide-to-flexbox-o2h</link>
      <guid>https://dev.to/manoranjand/a-guide-to-flexbox-o2h</guid>
      <description>&lt;p&gt;Flexbox is a true revolution in CSS completely changes the way that we build one-dimensional layouts, it makes easy to align elements to one another, in different directions and orders.&lt;/p&gt;

&lt;p&gt;When elements are laid out as flex items, they are laid out along two axes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PTJU5Y_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rypnnxchgnh8ye7xs0gw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PTJU5Y_4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rypnnxchgnh8ye7xs0gw.png" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The main axis is the axis running in the direction the flex items are laid out, The default direction is horizontal left to right.&lt;/li&gt;
&lt;li&gt;The cross axis is the axis running perpendicular to the direction the flex items are laid out in. &lt;/li&gt;
&lt;li&gt;The parent element that has display: flex is called the flex container.&lt;/li&gt;
&lt;li&gt;The items laid out as flexible boxes inside the flex container are called flex items&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Flexbox Container Properties
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;display: It enables a flex context for all its direct children.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  display: flex;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;flex-direction: It enables a flex container to by laid out in horizontal left to right or vertical top to bottom
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  flex-direction: row | row-reverse | column | column-reverse;
}

/*
row (default): left to right.
row-reverse: right to left.
column: top to bottom.
column-reverse: bottom to top.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;flex-wrap: By default, flex items will all try to fit onto one line. You can change that and allow the items to wrap as needed with this property.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  flex-wrap: nowrap | wrap | wrap-reverse;
}

/*
nowrap (default): all flex items will be on one line
wrap: flex items will wrap onto multiple lines, from top to bottom.
wrap-reverse: flex items will wrap onto multiple lines from bottom to top.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;justify-content: controls where the flex items sit on the main axis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly;
}

/*
flex-start (default): items are packed toward the start of the flex-direction.

flex-end: items are packed toward the end of the flex-direction.

center: items are centered along the line.

space-between: items are evenly distributed in the line; first item is on the start line, last item on the end line.

space-around: items are evenly distributed in the line with equal space around them. 

space-evenly: items are distributed so that the spacing between any two items (and the space to the edges) is equal.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;align-items: controls where the flex items sit on the cross axis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  align-items: stretch | flex-start | flex-end | center | baseline;
}

/*
stretch (default): stretch to fill the container.

flex-start: items are placed at the start of the cross axis.

flex-end: items are placed at the end of the cross axis.

center: items are centered in the cross-axis.

baseline: items are aligned such as their baselines align.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;align-content: This aligns a flex container’s lines within when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  align-content: flex-start | flex-end | center | space-between | space-around | space-evenly;
}

/* similar to justify content */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;gap: controls the space between flex items.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  display: flex;
  ...
  gap: 10px;
  row-gap: 10px;
  column-gap: 10px;
}

/*
row-gap: explicitly controls the space between rows.

column-gap: explicitly controls the space between column.
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>css</category>
      <category>flexbox</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
