<?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: Umesh</title>
    <description>The latest articles on DEV Community by Umesh (@dev_codflaw).</description>
    <link>https://dev.to/dev_codflaw</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%2F662011%2F89c42cf8-fad1-4e13-b34e-1bcf965d2b16.png</url>
      <title>DEV Community: Umesh</title>
      <link>https://dev.to/dev_codflaw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev_codflaw"/>
    <language>en</language>
    <item>
      <title>Git Branch and Git Merge</title>
      <dc:creator>Umesh</dc:creator>
      <pubDate>Mon, 06 Feb 2023 07:58:24 +0000</pubDate>
      <link>https://dev.to/dev_codflaw/git-branch-and-git-merge-4nf</link>
      <guid>https://dev.to/dev_codflaw/git-branch-and-git-merge-4nf</guid>
      <description>&lt;p&gt;git branch&lt;br&gt;
git checkout -b &lt;br&gt;
git status&lt;br&gt;
git add . or git add &lt;br&gt;
git commit -m "type your message here"&lt;br&gt;
git push --set-upstream origin &lt;br&gt;
git push &lt;/p&gt;

&lt;p&gt;-- when required&lt;br&gt;
git config --local user.email ""&lt;br&gt;
git config --local user.name ""&lt;/p&gt;

&lt;p&gt;git checkout main&lt;br&gt;
git merge &lt;br&gt;
git pull&lt;br&gt;
git push &lt;br&gt;
&lt;/p&gt;

&lt;p&gt;git pull&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Screen recorder, screenshot tool for Linux [Ubuntu]</title>
      <dc:creator>Umesh</dc:creator>
      <pubDate>Thu, 14 Jul 2022 09:20:56 +0000</pubDate>
      <link>https://dev.to/dev_codflaw/screen-recorder-screenshot-tool-for-linux-ubuntu-2546</link>
      <guid>https://dev.to/dev_codflaw/screen-recorder-screenshot-tool-for-linux-ubuntu-2546</guid>
      <description>&lt;p&gt;Install Kazam- Video recorder&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-add-repository ppa:sylvain-pineau/kazam

sudo apt update

sudo apt install kazam

sudo apt upgrade

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

&lt;/div&gt;



&lt;p&gt;To remove Kazam&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo add-apt-repository --remove ppa:sylvain-pineau/kazam

sudo apt update

sudo apt upgrade

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

&lt;/div&gt;



&lt;p&gt;We can perform all task in above-mentioned steps from a command line as well using Shortcut Keys.&lt;br&gt;
• Use below keys to Start the Recording SUPER-CTRL-R&lt;br&gt;
• Use below keys to Finish the recording SUPER-CTRL-F&lt;br&gt;
• Use below keys to Pause the recording SUPER-CTRL-P&lt;br&gt;
• Use below Keys to Quit the recording SUPER-CTRL-Q&lt;/p&gt;

&lt;p&gt;Note: SUPER key refers to the windows key which is available in most of the computers.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>kazam</category>
      <category>videorecorder</category>
    </item>
    <item>
      <title>What is the difference between a for loop and an iterator in Python?</title>
      <dc:creator>Umesh</dc:creator>
      <pubDate>Sun, 10 Jul 2022 07:11:56 +0000</pubDate>
      <link>https://dev.to/dev_codflaw/what-is-the-difference-between-a-for-loop-and-an-iterator-in-python-2964</link>
      <guid>https://dev.to/dev_codflaw/what-is-the-difference-between-a-for-loop-and-an-iterator-in-python-2964</guid>
      <description>&lt;p&gt;Iteraor and for loop doing that exact same thing just with a little change.&lt;/p&gt;

&lt;p&gt;before going to explain, first let me clear about iterator waht it is....&lt;/p&gt;

&lt;p&gt;Iterator:&lt;/p&gt;

&lt;p&gt;Basically Iterator is an object that contains a countable number of values. It means having multiple values/ objects so we can use iterator to traverse all the values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In Python, Iterator object having two mendatory methods &lt;strong&gt;iter&lt;/strong&gt;() and &lt;strong&gt;next&lt;/strong&gt;().&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;List, Tuples, Dictionary, Sets all are iterable objects and we can iterate and travese all the values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For loop implements iterator in the background&lt;/strong&gt;.&lt;br&gt;
Before For loop starts, It will create iteratator object and iterator/ traverse all the elements until the &lt;strong&gt;StopIterator exception&lt;/strong&gt; arise.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# get the iterator 
iterator_object = iter(some_iterable_object) 

while True: 
    try: 
        # get the next item         
        item = next(iterator_object) 
        # do whatever you need to do with this item 
    except StopIteration:   
        break

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

&lt;/div&gt;



&lt;p&gt;So, For loop in nothing but an implementation of Iterator in an infinite while loop.&lt;/p&gt;

</description>
      <category>python</category>
      <category>iterator</category>
    </item>
  </channel>
</rss>
