<?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: Oyoh kennedy</title>
    <description>The latest articles on DEV Community by Oyoh kennedy (@oyohkennedy25).</description>
    <link>https://dev.to/oyohkennedy25</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%2F1208423%2Fd8f54e7a-a85a-4d2f-bc15-777ff731fab3.jpeg</url>
      <title>DEV Community: Oyoh kennedy</title>
      <link>https://dev.to/oyohkennedy25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oyohkennedy25"/>
    <language>en</language>
    <item>
      <title>Optimizing your productivity: A guide to strategic break during long hour of work.</title>
      <dc:creator>Oyoh kennedy</dc:creator>
      <pubDate>Fri, 17 Nov 2023 08:38:09 +0000</pubDate>
      <link>https://dev.to/oyohkennedy25/optimizing-your-productivity-a-guide-to-strategic-break-during-long-hour-of-work-1fea</link>
      <guid>https://dev.to/oyohkennedy25/optimizing-your-productivity-a-guide-to-strategic-break-during-long-hour-of-work-1fea</guid>
      <description>&lt;p&gt;Can you think of a friend who works for long hours on a computer, programming, writing, and researching for hours? By the way that friend could be you. This seems to be a problem considering the amount of time we spend keeps going up, which in turn affects productivity and creativity.&lt;/p&gt;

&lt;p&gt;Here is an article written with Python code that schedules breaks during the day, reminding you to listen to your favourite song on the web or just take a walk from your computer.&lt;/p&gt;

&lt;p&gt;Step 1&lt;/p&gt;

&lt;p&gt;Start by installing Python on your computer if you don't have it.&lt;br&gt;
 &lt;a href="https://www.python.org/downloads/release/python-3120/"&gt;https://www.python.org/downloads/release/python-3120/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2&lt;/p&gt;

&lt;p&gt;Open a Python application and launch IDE: This is like a note pad or a place where we write codes.&lt;/p&gt;

&lt;p&gt;Step 3&lt;/p&gt;

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

&lt;p&gt;To embed a YouTube video on your webpage, utilize the &lt;code&gt;webbrowser.open&lt;/code&gt; function with the video link as the input.&lt;/p&gt;

&lt;p&gt;Step 4&lt;/p&gt;

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

&lt;p&gt;To introduce a time delay in the code, employ the &lt;code&gt;time.sleep&lt;/code&gt; function. For instance, to pause for 2 hours before the YouTube video pops up, use &lt;code&gt;time.sleep(2 * 60 * 60)&lt;/code&gt; where the value is in seconds.&lt;/p&gt;

&lt;p&gt;Step 5&lt;/p&gt;

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

&lt;p&gt;Implementing a repeated time loop with a total of 3 breaks, initialize variables &lt;code&gt;total_break&lt;/code&gt; as 3 and &lt;code&gt;break_count&lt;/code&gt; as 0. Utilize a &lt;code&gt;while&lt;/code&gt; loop, and incorporate the &lt;code&gt;time.ctime&lt;/code&gt; function to track the program's runtime.&lt;br&gt;
Here is the output &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---40-K-4x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/76tr2z0o9qvtn9ewjybh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---40-K-4x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/76tr2z0o9qvtn9ewjybh.jpeg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>python</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
