teleren/devto huggingface dataset:
Unlocking the Power of Python: Why It's Your Ultimate Programming Partner
Tags: python, datascience, webdev, beginners
Published: 2024-05-05 18:42:32

Hey there, before we dive in, let me confess – I'm not your typical pro blogger. I'm still finding my way around this blogging thing, so forgive any typos you stumble upon (blame the keyboard, not me!).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r95rlwe5hodr7hchfbu8.gif)


So, let's get down to business – why should you even bother learning Python? Whether you're a greenhorn or a seasoned computer whiz, this is for you.

Let me kick things off with a personal story – why did I bother learning Python, and how did it turn me into an independent wizard? Well, Python isn't just any programming language; it's your magic wand to automate tasks. I even automated my train ticket booking with Python – but that's a story for another day!

Python isn't just modern; it's the cool kid on the block. And it's the backbone of AI – you know, that thing where we try to make machines as smart as humans. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ujlynz3ddznoua2sm1t2.gif)

Here's the kicker – Python comes with a treasure trove of libraries. Think of them as pre-written code gifts from other developers, saving you from coding from scratch (because who has time for that, right?).

But wait, there's more! Python isn't just for nerds – it's the lifeblood of web development too. With frameworks like Django, Flask, and FastAPI, you can whip up web wonders faster than you can say "HTML."

And let's talk syntax – Python's syntax is so intuitive, it's like chatting with your computer. Take this snippet:

```python
name = "Naveen"
if name is "Naveen":
    print("Yesss, the name is Naveen!")
```

It's like having a casual conversation with your code! 
The above code snipped is basically checking if the name is Naveen.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zlbyxvv6527hbu44oiv.gif)

Now, onto the serious stuff – data. They say data is the new oil of the 21st century (who knew, right?). And guess what? Python is your trusty oil drill, helping you analyze mountains of data with ease.

Oh, and did I mention job opportunities? Learning Python opens doors to a world of possibilities:
1. Software Engineer
2. Data Scientist (Yep, Python made my Scientist dreams come true!)
3. Python Automation Engineer
4. Data Engineer (Data, data everywhere!)
5. Data Analyst
6. Backend Engineer (It's not about your backyard – it's about building the guts of applications!)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybg5qkn3m14vxprp5cpa.gif)

So there you have it – a crash course in Python awesomeness. Trust me, Python isn't as scary as it sounds – you'll fall in love with it faster than you can say "for loop." If you enjoyed this blog, give it a thumbs up and hit that follow button. I promise more Python antics and beginner-friendly coding shenanigans are on the way!"
Google Sheet + Google Drive = 🤯 - Part 1
Tags: api, learning, programming, designsystem
Published: 2024-05-05 18:42:01

This is the 3rd post in my portfolio series. In a previous article, I wrote the way I implement dev.to API. I will tell you about my journey to find the way to show my repository on portfolio

**This is the hardest part (<u>with me</u>) in this series, I repeat, the hardest part (<u>with me</u>)!!! 🤪**

![Begin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ylkfri63gyo922q478b3.gif)
## Problem
As I said, I am a back-end guy so I want to try to make everything automatic, less manual as I can. Like [articles section](https://portfolio-locnguyenpvs-projects.vercel.app/articles), I want [projects section](https://portfolio-locnguyenpvs-projects.vercel.app/projects) work as the same. The first solution I think is [GitHub RestAPI](https://docs.github.com/en/rest?apiVersion=2022-11-28), its usage is quite simple **BUT** ... when I implemented it into 80%, I realized it does not get a <u>thumbnail of project</u>, I be like image below when I know it
![suprise](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cadk4yzu3dlbyfgy7za.jpg)
Although I can use default image for all projects, but I don't want 🙄. I started to research with the support of Mr.KnowEverything - a.k.a Google, and **no hope** 😑. 

## Solution
After many and many searches, when I prepared to give up, I saw FreeCodeCamp's post about [using Google Sheets to build CMS](https://www.freecodecamp.org/news/how-to-build-a-basic-cms-with-google-sheets-and-reactjs/). An idea appeared in my head 💡 what if I build the CMS to store repository info - sounds possible huh?

When I found the way and connected with some research, I decided to combine **Google Sheets** and **Google Drive** to solve it 😎.

![idea](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6vcc31f84magmb7x0rq.gif)

## System Design
Here is the sketch design of my solution

![sysdesign](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fw32uuajml6lutu97k1x.gif)
<figcaption>System Design</figcaption>
In this design, it will have 3 main components:

- **API Gateway:** Access to get repository info (git_url, thumbnail_id, etc)
- **Google Sheets:** Act like SQL data table, store repository info
- **Google Drive:** Store the thumbnail of the repository and return a <u>unique ID</u> to save into the sheet (We will use this to load the thumbnail on the website 😉) 

## Conclusion
Sound like my solution is a little bit messy, so if you have any suggestions, please tell me 🤗

In the next article, I will show how to implement this in code.
 
Happy coding and learning!
Weekly Bites #1: Your Curated Tech Digest 🌟
Tags: news, webdev, angular, css
Published: 2024-05-05 18:41:38

_Photo by <a href="https://unsplash.com/@kalenemsley?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Kalen Emsley</a> on <a href="https://unsplash.com/photos/green-mountain-across-body-of-water-Bkci_8qcdvQ?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>_
  
Hey there, tech enthusiasts! 👋 

Welcome to another edition of Weekly Bites, your go-to source for the latest and greatest in the world of technology. 📰

Grab a cup of coffee ☕, settle in, and let's dive into the exciting world of tech together! 🌍

## Module Federation 2.0

Exciting news! Module Federation 2.0 is here, bringing a host of powerful new features to supercharge our frontend development. 🌟

This blog post dives into the enhancements, from the sleek new documentation site to the game-changing flexibility in module loading and cross-tool sharing.

👉 Check it out here: https://module-federation.io/blog/announcement.html

## Unified Control State Change Events in Angular

Exciting news for Angular developers! 📣 The latest Angular v18.0.0 introduces a game-changing feature: the "events" property on AbstractControl. 🎉

This powerful addition allows you to easily track changes in control state, including value, pristine state, touch status, and control status, all through a single observable. 🔍

👉 Check it out here: https://netbasal.com/unified-control-state-change-events-in-angular-7e83c0504c8b

## CSS Cascade

🔍 Want to level up your CSS skills and understand how styles are resolved? This blog post by Amelia Wattenberger dives deep into the CSS Cascade, explaining the core concepts in a visual and easy-to-follow way.

📈 Mastering the cascade will help you write more efficient and maintainable stylesheets, avoiding specificity battles and !important overrides.

👉 Check it out here: https://2019.wattenberger.com/blog/css-cascade

## Raycast

Raycast is a game-changing productivity tool that brings all your favorite utilities together in one sleek, extendable launcher. ⚡️

The best part? You can now build your own rich, native Raycast extensions using familiar web technologies like React, TypeScript, and Node. 🛠️

👉 Check it out here: https://www.raycast.com

## Conquering Imposter Syndrome

Feeling like an imposter despite your accomplishments? You're not alone. This insightful blog post reveals the key to conquering imposter syndrome - taking action! 💪

By focusing on hands-on problem-solving and gaining real-world experience, we can prove our capabilities to ourselves and combat self-doubt. 🌟

👉 Check it out here: https://addyo.substack.com/p/conquering-imposter-syndrome

---

I hope you found something that sparked your curiosity and inspired you to dive deeper into the fascinating world of technology. 🥳

Remember, learning is a lifelong journey, and every new piece of knowledge brings you one step closer to mastering your craft. 🚀

Don't forget to share this post with your friends and colleagues who share your passion for all things tech! 📣

Until next time, happy exploring! 🌠
Building RESTful APIs: Exploring CRUD Operations, Postman, JDBC, and Media Types
Tags: java
Published: 2024-05-05 17:29:19

Hey Dev.to community! Today, I deepened my understanding of building RESTful APIs and wanted to share my insights with you all:

Understanding REST and Web Services: Explored the fundamentals of RESTful architecture and web services, understanding their principles and advantages in building scalable and interoperable systems.
CRUD Operations: Discussed the implementation of CRUD (Create, Read, Update, Delete) operations in RESTful APIs, understanding how to design resource endpoints and handle HTTP methods for data manipulation.
Postman for API Testing: Explored Postman, a powerful tool for API testing and development, learning how to create and execute requests, set headers, and analyze responses for testing RESTful APIs.
Fetching and Adding Data Using JDBC: Implemented fetching and adding data to a database using JDBC, understanding how to establish database connections, execute SQL queries, and handle database operations in Java.
Media Types JSON and XML: Explored media types JSON and XML for representing data in RESTful APIs, understanding their syntax, advantages, and usage scenarios for data exchange.
Overall, today's deep dive into building RESTful APIs has equipped me with valuable tools and techniques for developing robust and scalable web services. Excited to continue exploring and experimenting with API development! #REST #WebServices #APIs #LearningJourney
Learning AWS Day by Day — Day 56 — Amazon SQS — FIFO queues
Tags: aws, cloud, cloudcomputing, beginners
Published: 2024-05-05 17:26:20

Exploring AWS !!

Day 56

Amazon SQS — FIFO queues

FIFO (First In First Out) — all capabilities of standard queue, used when order is important and duplicity of messages can’t be tolerated.

Examples of usage:
Ecommerce websites for order management where order is critical.
Third-party systems integration where events to be delivered are necessary to be delivered only once.
Communications and networking — sending and receiving data in same order.
Online ticketing service — where tickets are given according to first come first serve basis.

FIFO queues are available in all regions.

FIFO delivery logic -
Sending messages:
If sending multiple messages, a deduplication ID is provided, SQS stores the messages and acknowledges the transmission. Then, each message can be received and processed in the order they were sent, so that order is maintained.
Here, messages are ordered according to their unique message group ID. You need to associate these IDs with the message when processing, else the action may fail. If you decide to process the group of messages, then you can provide same ID to all the messages.
Receiving messages:
Specific message group ID requests cannot be processed. When messages are processed with same message group ID, FIFO tries to send all the messages with same group ID first. This lets other users to process messages with a different message group ID. Once you receive a message from a message group ID, you cannot receive another message unless you delete the present one.
Retrying Multiple Times:
Allows producers or consumers to attempt multiple retries. If a producer detects failed SendMessage, it can retry to resend the message, using same deduplication ID. If a consumer detects failed ReceiveMessage, it can retry many times, using same receive request message ID. When you receive a message with a group ID, you cannot receive the messages from same ID further unless you delete it.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8r2mv805xtlo55a9llr3.png)

Message Ordering
Most important features are First-In-First-Out, and exactly-once-processing. The message delivery is strictly ordered and no duplicates are delivered.

Higher Throughput
Supports high number of requests per API, per second. To increase number of requests you can increase number of message groups.

Compatibility
Following services are not compatible with FIFO:
S3 Event Notifications
Lambda Dead Letter queues
Autoscaling Lifecycle Hooks
IoT Rule Actions
Welcome to Husqvarna Mähroboter
Published: 2024-05-05 17:22:28

Der Standort ist auf die Bereitstellung der größten Erfahrung und Lösungen für Husqvarna-Mähroboterausrüstung in Deutschland spezialisiert
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba9hmdxymj6hs2s78cmf.jpg)
All Png images for free download
Tags: pngdow, ai
Published: 2024-05-05 17:19:30


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ovkj1pmsukamayachpmd.jpg)
PNG images are a versatile and popular choice for digital graphics. With their transparent backgrounds and high image quality, they are perfect for a wide range of projects. At pngdow.com, you can easily access a vast collection of PNG images for free download. Whether you're looking for icons, illustrations, or photos, pngdow.com has you covered. Explore the site and discover the perfect PNG images to enhance your designs and projects today!
[https://pngdow.com/]
Learn and get certificate with Microsoft Learn
Tags: ai, beginners, productivity, machinelearning
Published: 2024-05-05 15:58:48

Hey everyone, Himel here,  check out these 5 Microsoft Must-Do Introductory Learning paths on #cloudcomputing and #artificialintelligence that is Absolutely FREE!
1.  Cloud Computing: Introductory course to grasp concepts like Microsoft Azure Fundamentals, Shared Responsibility model etc. https://learn.microsoft.com/.../describe-cloud-compute/...
2. AI Concepts: Introductory course to grasp concepts like machine learning, natural language processing etc. https://learn.microsoft.com/.../get-started-ai.../...
3. Machine Learning Concepts: Get to know about how machines recognize patterns in given data. https://learn.microsoft.com/.../fundamentals-machine.../...
4. Business value using AI: Get knowledge about how you can increase business value using AI. https://learn.microsoft.com/.../create-business-value/...
5.  Fundamentals of Generative AI: Course covering concepts of content generation using Artificial Intelligence. https://learn.microsoft.com/.../fundamentals.../...
Seeking advice
Tags: java, advice, cpp, webdev
Published: 2024-05-05 16:42:53

Hello everyone! I used to be an aerospace designer. Fell on hard times and had to leave the job few years ago. I am currently working 
in a non tech job that I very much dislike. I have an opportunity coming up within six weeks. I need to pass the coding round. I have already gotten started with Java. I do have coding experience from my school and college days when I used to write in C and CPP. Any advise on how I can become proficient in these six weeks so I am able to execute all the test cases during the coding round? The difficulty is intermediate to hard and they tend to ask from linear and non linear DS.
85. Maximal Rectangle
Tags: php, leetcode, algorithms, programming
Published: 2024-05-05 16:18:48

85\. Maximal Rectangle

Hard

Given a `rows x cols` binary matrix filled with `0`'s and `1`'s, find the largest rectangle containing only `1`'s and return <i>its area</i>.

**Example 1:**

![maximal](https://assets.leetcode.com/uploads/2020/09/14/maximal.jpg)

- **Input:** <code>**matrix = [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]]**</code>
- **Output:** <code>**6**</code>
- **Explanation:** <code>**The maximal rectangle is shown in the above picture**</code>.

**Example 2:**

- **Input:** <code>**matrix = [["0"]]**</code>
- **Output:** <code>**0**</code>

**Example 3:**
- **Input:** <code>**matrix = [["1"]]**</code>
- **Output:** <code>**1**</code>


**Constraints:**

*   `rows == matrix.length`
*   `cols == matrix[i].length`
*   `1 <= row, cols <= 200`
*   <code>`matrix[i][j]` is `'0'` or `'1'`</code>.

**Solution:**

```
class Solution {

    /**
     * @param String[][] $matrix
     * @return Integer
     */
    function maximalRectangle($matrix) {
        if (!$matrix) {
            return 0;
        }

        $result = 0;
        $m = count($matrix);
        $n = count($matrix[0]);
        $L = array_fill(0, $n, 0);
        $H = array_fill(0, $n, 0);
        $R = array_fill(0, $n, $n);

        for ($i = 0; $i < $m; $i++) {
            $left = 0;
            for ($j = 0; $j < $n; $j++) {
                if ($matrix[$i][$j] == '1') {
                    $L[$j] = max($L[$j], $left);
                    $H[$j] += 1;
                } else {
                    $L[$j] = 0;
                    $H[$j] = 0;
                    $R[$j] = $n;
                    $left = $j + 1;
                }
            }

            $right = $n;
            for ($j = $n - 1; $j >= 0; $j--) {
                if ($matrix[$i][$j] == '1') {
                    $R[$j] = min($R[$j], $right);
                    $result = max($result, $H[$j] * ($R[$j] - $L[$j]));
                } else {
                    $right = $j;
                }
            }
        }

        return $result;
    }
}
```


**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
237. Delete Node in a Linked List
Tags: php, leetcode, algorithms, programming
Published: 2024-05-05 16:18:13

237\. Delete Node in a Linked List

Medium

There is a singly-linked list `head` and we want to delete a node `node` in it.

You are given the node to be deleted `node`. You will not be given access to the first node of `head`.

All the values of the linked list are **unique**, and it is guaranteed that the given node `node` is not the last node in the linked list.

Delete the given node. Note that by deleting the node, we do not mean removing it from memory. We mean:

- The value of the given node should not exist in the linked list.
- The number of nodes in the linked list should decrease by one.
- All the values before `node` should be in the same order.
- All the values after `node` should be in the same order.

Custom testing:

- For the input, you should provide the entire linked list `head` and the node to be given `node`. `node` should not be the last node of the list and should be an actual node in the list.
- We will build the linked list and pass the node to your function.
- The output will be the entire list after calling your function.


**Example 1:**

![node1](https://assets.leetcode.com/uploads/2020/09/01/node1.jpg)

- **Input:** head = [4,5,1,9], node = 5
- **Output:** [4,1,9]
- **Explanation:** You are given the second node with value 5, the linked list should become 4 -> 1 -> 9 after calling your function.

**Example 2:**

![node2](https://assets.leetcode.com/uploads/2020/09/01/node2.jpg)

- **Input:** head = [4,5,1,9], node = 1
- **Output:** [4,5,9]
- **Explanation:** You are given the third node with value 1, the linked list should become 4 -> 5 -> 9 after calling your function.


**Constraints:**

- The number of the nodes in the given list is in the range `[2, 1000]`.
- `-1000 <= Node.val <= 1000`
- The value of each node in the list is **unique**.
- The `node` to be deleted is in the list and is **not a tail** node.

**Solution:**

```
/**
 * Definition for a singly-linked list.
 * class ListNode {
 *     public $val = 0;
 *     public $next = null;
 *     function __construct($val) { $this->val = $val; }
 * }
 */

class Solution {
    /**
     * @param ListNode $node
     * @return 
     */
    function deleteNode($node) {
        $node->val = $node->next->val;
        $node->next = $node->next->next;
    }
}
```


**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
881. Boats to Save People
Tags: php, leetcode, algorithms, programming
Published: 2024-05-05 16:16:30

881\. Boats to Save People

Medium

You are given an array `people` where` people[i]` is the weight of the i<sup>th</sup> person, and an infinite number of boats where each boat can carry a maximum weight of `limit`. Each boat carries at most two people at the same time, provided the sum of the weight of those people is at most `limit`.

Return _the minimum number of boats to carry every given person._

**Example 1:**

- **Input:** people = [1,2], limit = 3
- **Output:** 1
- **Explanation:** 1 boat (1, 2)

**Example 2:**

- **Input:** people = [3,2,2,1], limit = 3
- **Output:** 3
- **Explanation:** 3 boats (1, 2), (2) and (3)

**Example 3:**

- **Input:** people = [3,5,3,4], limit = 5
- **Output:** 4
- **Explanation:** 4 boats (3), (3), (4), (5)

**Constraints:**

- <code>1 <= people.length <= 5 * 10<sup>4</sup></code>
- <code>1 <= people[i] <= limit <= 3 * 10<sup>4</sup></code>

**Solution:**

```
class Solution {

    /**
     * @param Integer[] $people
     * @param Integer $limit
     * @return Integer
     */
    function numRescueBoats($people, $limit) {
        $ans = 0;
        $i = 0;
        $j = count($people) - 1;

        sort($people);

        while ($i <= $j) {
            $remain = $limit - $people[$j];
            $j -= 1;
            if ($people[$i] <= $remain) {
                $i += 1;
            }
            $ans += 1;
        }

        return $ans;
    }
}
```


**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**