<?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: Mohit Majumdar</title>
    <description>The latest articles on DEV Community by Mohit Majumdar (@mohitmajumdar).</description>
    <link>https://dev.to/mohitmajumdar</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%2F1206694%2F6f60ed58-cb5b-428e-9345-0f92aa11065b.jpeg</url>
      <title>DEV Community: Mohit Majumdar</title>
      <link>https://dev.to/mohitmajumdar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohitmajumdar"/>
    <language>en</language>
    <item>
      <title>Simplifying Selenium Projects with Containerized Chrome</title>
      <dc:creator>Mohit Majumdar</dc:creator>
      <pubDate>Thu, 13 Jun 2024 19:18:00 +0000</pubDate>
      <link>https://dev.to/mohitmajumdar/simplifying-selenium-projects-with-containerized-chrome-43ll</link>
      <guid>https://dev.to/mohitmajumdar/simplifying-selenium-projects-with-containerized-chrome-43ll</guid>
      <description>&lt;p&gt;Today, I stumbled upon a game-changing solution for my Selenium projects, and I wanted to share my experience. Over the past few months, I’ve been grappling with the challenge of hosting my project in the cloud. The main issue was that my project involves opening a browser to scrape data, which made things complex.&lt;/p&gt;

&lt;p&gt;Initially, I thought about using a Windows server, downloading Chrome on it, and running the code there. However, this approach quickly became too resource-intensive and unwieldy. Managing the server and ensuring everything ran smoothly was a headache, and it didn’t seem like a sustainable solution.&lt;/p&gt;

&lt;p&gt;During my research, I came across an alternative that changed everything: containerized Chrome with Selenium. For those unfamiliar, containerization allows you to bundle your application with all its dependencies into a "container" that can run consistently across different computing environments. This means you can deploy your Selenium projects with Chrome in a much more lightweight and scalable manner.&lt;/p&gt;

&lt;p&gt;I decided to give it a try, and the results have been fantastic. Setting up containerized Chrome in the cloud was straightforward, and it significantly reduced the load on my resources. Not only did it make the deployment process easier, but it also enhanced the performance and reliability of my scraping tasks.&lt;/p&gt;

&lt;p&gt;If you’re facing similar challenges with hosting Selenium projects, I highly recommend looking into containerized Chrome. It has made my life much easier, and I believe it can do the same for you. Embracing this approach has been a game-changer, turning a cumbersome task into a streamlined process. &lt;/p&gt;

&lt;p&gt;Give it a try, and see the difference it can make for your projects!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>selenium</category>
      <category>docker</category>
    </item>
    <item>
      <title>Django Database Reset Chronicles: Recovering from the Brink of Disaster</title>
      <dc:creator>Mohit Majumdar</dc:creator>
      <pubDate>Mon, 05 Feb 2024 18:33:50 +0000</pubDate>
      <link>https://dev.to/mohitmajumdar/django-database-reset-chronicles-recovering-from-the-brink-of-disaster-985</link>
      <guid>https://dev.to/mohitmajumdar/django-database-reset-chronicles-recovering-from-the-brink-of-disaster-985</guid>
      <description>&lt;h4&gt;
  
  
  Introduction:
&lt;/h4&gt;

&lt;p&gt;Start with a humorous or relatable anecdote about the life of a programmer dealing with databases, setting the tone for the challenges and lessons ahead.&lt;/p&gt;

&lt;h4&gt;
  
  
  The Tricky Tango of Table Renaming:
&lt;/h4&gt;

&lt;p&gt;Describe the seemingly innocent decision to rename tables in &lt;code&gt;models.py&lt;/code&gt; that spiraled into a migration mayhem. Use witty programming-related metaphors to capture the chaos.&lt;/p&gt;

&lt;h4&gt;
  
  
  The Daredevil Move: Deleting Tables Directly:
&lt;/h4&gt;

&lt;p&gt;Confess to the brave (or reckless) act of deleting tables directly and the unexpected fallout that ensued. Perhaps liken it to performing a high-stakes stunt in the programming circus.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DROP table_name;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  The Plot Twist: Attempted Solution with &lt;code&gt;dumpdata&lt;/code&gt;:
&lt;/h4&gt;

&lt;p&gt;Share the optimism of trying to salvage the situation with Django's &lt;code&gt;dumpdata&lt;/code&gt; command, only to be thwarted by the missing table. Compare it to a heroic mission that faced an unexpected enemy.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python manage.py dumdata &amp;gt; data.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Backing Up - The Safety Net:
&lt;/h4&gt;

&lt;p&gt;Emphasize the importance of backups with a dramatic comparison to a superhero's utility belt. Discuss the relief of taking a backup using &lt;code&gt;pg_dump&lt;/code&gt; and how it provided a lifeline in the midst of the chaos.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pg_dump -U username -d database_name -t tablename -f data.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  The Great Format Fiasco:
&lt;/h4&gt;

&lt;p&gt;Detail the realization that the saved SQL file was in the wrong format, leading to the ultimate database reset. Infuse humor by comparing it to a classic blunder in a programmer's sitcom.&lt;/p&gt;

&lt;p&gt;to check file type run&lt;br&gt;
&lt;code&gt;file filename&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  Discovering the Magic of &lt;code&gt;psql&lt;/code&gt;:
&lt;/h4&gt;

&lt;p&gt;Unveil the eureka moment of discovering the alternative solution using &lt;code&gt;psql&lt;/code&gt; to restore the database, overcoming errors with a touch of wizardry. Paint it as the unexpected plot twist in the saga.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;psql -U username -d database_name -f data.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Manual Redo - The Redemption Arc:
&lt;/h4&gt;

&lt;p&gt;Describe the redemption arc of redoing tasks manually, with a touch of irony and determination. Emphasize the satisfaction of finding the data intact, akin to a surprising plot twist in a programmer's novel.&lt;/p&gt;

&lt;h4&gt;
  
  
  Lessons from the Debugging Odyssey:
&lt;/h4&gt;

&lt;p&gt;Inject humor and wisdom into the lessons learned, framing them as essential survival tips for programmers navigating the treacherous waters of database management. Use relatable metaphors and analogies.&lt;/p&gt;

&lt;h4&gt;
  
  
  Conclusion:
&lt;/h4&gt;

&lt;p&gt;Wrap up the story with a witty and encouraging conclusion, leaving readers with a smile and a newfound appreciation for the unpredictability of database adventures. Encourage them to share their own tales of triumphs and tribulations.&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>postgres</category>
    </item>
    <item>
      <title>Unveiling My First AWS Bill: A Beginner's Journey into Cloud Costs</title>
      <dc:creator>Mohit Majumdar</dc:creator>
      <pubDate>Thu, 04 Jan 2024 17:34:03 +0000</pubDate>
      <link>https://dev.to/mohitmajumdar/unveiling-my-first-aws-bill-a-beginners-journey-into-cloud-costs-22c1</link>
      <guid>https://dev.to/mohitmajumdar/unveiling-my-first-aws-bill-a-beginners-journey-into-cloud-costs-22c1</guid>
      <description>&lt;h4&gt;
  
  
  Introduction:
&lt;/h4&gt;

&lt;p&gt;Hey everyone! In December 2023, I dove headfirst into the fascinating realm of AWS, driven by a simple curiosity about the cloud. Little did I know that this journey would unfold into a valuable lesson on understanding the ins and outs of AWS billing.&lt;/p&gt;

&lt;h4&gt;
  
  
  Section 1: AWS Billing Overview:
&lt;/h4&gt;

&lt;p&gt;AWS welcomes you with a user-friendly billing interface, where you only pay for what you use—a pretty sweet deal! Even though I was cruising along in the free tier, a surprise bill came knocking on my virtual door.&lt;/p&gt;

&lt;h4&gt;
  
  
  AWS Cost Management:
&lt;/h4&gt;

&lt;p&gt;Navigating the financial side of AWS is made easier with AWS Cost Management. Picture it as your trusty sidekick in budget creation. To stay ahead of any unexpected costs, I set up a zero-budget alert, acting like a friendly reminder if I ever started to exceed those free tier limits.&lt;/p&gt;

&lt;h4&gt;
  
  
  The Oops Moment:
&lt;/h4&gt;

&lt;p&gt;In my excitement to explore, I goofed up. I had several Elastic Compute Cloud (EC2) instances up and running, thinking I was being smart by consolidating my data into a single image for use in different places. Then there was this snapshot—about 30GB in size—that I created and completely forgot about. Surprise, surprise, after my free tier bid farewell, a bill showed up, courtesy of that unnoticed snapshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4L1_iLxH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfo6b51c0by5ntblf75x.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4L1_iLxH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfo6b51c0by5ntblf75x.jpg" alt="Invoice from AWS " width="800" height="1035"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Conclusion:
&lt;/h4&gt;

&lt;p&gt;Lesson learned: always keep an eye on the stuff you deploy in the cloud. If you're done with it, kick it to the virtual curb to avoid any surprise charges. And hey, those budget alerts? Golden. They're like your financial guardian angel, preventing any unexpected budget heartaches.&lt;/p&gt;

&lt;p&gt;In this ever-evolving world of cloud tech, it's all about sharing experiences. Hopefully, by sharing mine, I've made navigating the AWS landscape a bit easier for you. Just remember, the cloud is fantastic, but it pays to be a savvy user. Happy cloud adventures!&lt;/p&gt;

</description>
      <category>cloudcomputing</category>
      <category>aws</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
