teleren/devto huggingface dataset:
Apprendre .NET Aspire en français
Tags: dotnet, french, webdev, cloudnative
Published: 2024-07-02 16:24:47


En mai dernier, durant Microsoft Build, .NET Aspire a été officiellement annoncé. Cette nouvelle pile prête pour le cloud et conçue pour .NET, visant à permettre aux développeurs de créer rapidement et facilement des applications natives cloud.

![.NET Aspire en 6 points](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/95attcw0u23p4mbp77mn.png)

Que ce soit pour une toute petite application ou une solution complexe comprenant plusieurs microservices, .NET Aspire est conçu pour vous aider à démarrer rapidement et à évoluer en toute confiance.

Dans la vidéo francophone suivante, je vous démontre pas-à-pas comment ajouter .NET Aspire à une application existante, dans le confort de Visual Studio 2022.

{% youtube jJiqqVPDN4w %}

## Chapitres

- [Mise en contexte](https://www.youtube.com/live/jJiqqVPDN4w?si=yvGQZUahsJRUVy46&t=484)
- [Quand utiliser .NET Aspire](https://www.youtube.com/live/jJiqqVPDN4w?si=q1BxJOaOrW3WByS3&t=934)
- [Application avant l'ajout de .NET Aspire](https://www.youtube.com/live/jJiqqVPDN4w?si=q0fj5UJ5MEmWOR_b&t=1484)
- [Demo 1 - Ajout des Paramètres par défaut intelligents](https://www.youtube.com/live/jJiqqVPDN4w?si=W4oWt2Qez-vxo2Iv&t=2222)
- [Tableau de bord du développeur](https://www.youtube.com/live/jJiqqVPDN4w?si=v7yQcb7ZK2RF1pm2&t=3411)
- [Demo 3 - Orchestration](https://www.youtube.com/live/jJiqqVPDN4w?si=miBtoWcYsymg-e-R&t=3729)
- [Demo 4 - Découverte de services](https://www.youtube.com/live/jJiqqVPDN4w?si=sGXlFw2lYurF1itF&t=4852)
- [Demo 5 - Ajout de composante](https://www.youtube.com/live/jJiqqVPDN4w?si=0VqiM0t25mlnrzDA&t=5564)
- [Déploiement](https://www.youtube.com/live/jJiqqVPDN4w?si=0QIGm7OPB37MC48K&t=6279)
- [Autres langages et ressources](https://www.youtube.com/live/jJiqqVPDN4w?si=F3W-b1wmDm4QhlVg&t=6545)
  

## En Conclusion

.NET Aspire peut semblé complexe au premier abord, mais c'est tout le contraire! Il est conçu pour vous aider à démarrer rapidement, quelle que soit la taille de votre application. Utilisez .NET Aspire pour que votre projet procurera une meilleure expérience pour les développeurs et simplifiera le déploiement de votre application.

Si plus de contenu en français vous intéresse, n'hésitez pas à le faire savoir en laissant un commentaire ci-dessous ou en me contactant sur les médias sociaux.


## Liens utiles

- Apprenons .NET – Aspire: https://aka.ms/letslearn/dotnet/aspire
- Documentation: https://aka.ms/dotnet-aspire
- Contenue de l'atelier/ workshop: https://github.com/dotnet-presentations/letslearn-dotnet-aspire
Discover Perfect Quality Replica Products at Affordable Prices with RRMALL
Published: 2024-07-02 15:59:46


오늘날의 시장에서 합리적인 가격에 고품질 제품을 찾는 것은 어려울 수 있습니다. RRMALL은 이러한 간극을 메우며 최고의 품질과 최저가를 보장하는 레플리카 제품을 도매가로 제공합니다. 직접 공장 거래를 통해 RRMALL은 고객들에게 최상의 품질과 최저가를 보장합니다. 이제 RRMALL이 레플리카 제품을 위한 최고의 목적지인 이유를 자세히 알아보겠습니다.

**도매가로 제공되는 탁월한 품질**

RRMALL은 원본 제품을 모든 면에서 모방한 레플리카 제품을 고객에게 제공합니다. 재료부터 제작 기술까지 모든 제품은 높은 기준을 충족하도록 설계되어 내구성과 미적 매력을 보장합니다. 직접 공장 거래는 중간 유통 과정을 제거하여 비용을 절감하고 RRMALL이 뛰어난 가격을 제공할 수 있게 합니다.

**다양한 제품군**

패션 액세서리, 전자 제품 또는 가정용품을 찾고 있든, RRMALL은 선택할 수 있는 포괄적인 [레플리카](https://rrmall02.com) 제품을 제공합니다. 각 제품군은 최신 트렌드와 시대를 초월한 클래식을 포함하도록 신중하게 선별되어 모든 사람에게 적합한 제품을 보유하고 있습니다.

**패션 액세서리**

디자이너 핸드백과 시계부터 스타일리시한 주얼리와 선글라스까지, RRMALL은 고급 제품과 거의 구별되지 않는 다양한 패션 액세서리를 제공합니다. 각 제품은 세심한 주의로 제작되어 고급스러운 미학을 부담 없는 가격에 즐길 수 있습니다.

**전자 제품**

빠르게 변화하는 기술 세계에서 최신 상태를 유지하는 것은 비용이 많이 들 수 있습니다. RRMALL은 고성능과 스타일을 제공하는 고품질 레플리카 전자 제품을 저렴한 가격에 제공합니다. 스마트폰부터 스마트워치까지, 최신 가젯을 경제적인 가격으로 만나보세요.

**가정용품**

RRMALL의 다양한 가정용품으로 생활 공간을 업그레이드하세요. 세련된 장식품부터 기능적인 주방용품까지, 각 제품은 품질과 가성비를 결합하여 스타일리시한 집 환경을 쉽게 조성할 수 있도록 합니다.

**직접 공장 거래**

RRMALL에서 쇼핑하는 주요 이점 중 하나는 직접 공장 거래입니다. 제조업체로부터 직접 제품을 소싱하여 고객이 품질을 저해하지 않고 최상의 가격을 받을 수 있도록 합니다. 이 직접 접근 방식은 또한 품질 관리를 개선하여 각 제품이 RRMALL의 높은 기준을 충족하도록 합니다.

**고객 만족 보장**

RRMALL에서는 고객 만족이 최우선입니다. 각 제품은 고객에게 제공되기 전에 엄격한 품질 검사를 거칩니다. 또한, RRMALL은 편리한 반품 정책을 제공하여 고객이 만족감을 가지고 쇼핑할 수 있도록 합니다.

**RRMALL을 선택해야 하는 이유**

RRMALL을 선택하는 것은 품질, 가성비, 신뢰성을 선택하는 것입니다. 다양한 제품군, 직접 공장 거래, 그리고 고객 만족에 대한 헌신으로 RRMALL은 레플리카 제품 시장에서 신뢰할 수 있는 이름을 확립했습니다. 자신을 위한 쇼핑이든 소매 사업을 시작하려는 것이든, RRMALL은 최고의 가치를 제공합니다.

**지금 바로 쇼핑 시작하세요**

완벽한 품질의 레플리카 제품을 저렴한 가격에 발견할 준비가 되셨나요? 지금 바로 RRMALL을 방문하여 다양한 제품을 탐색해 보세요. RRMALL과 함께라면 비싼 가격 없이도 고급스러움과 품질을 즐기는 것이 그 어느 때보다 쉬워졌습니다.
DevOps Beginnings: Mastering Python and Golang!
Tags: python, devops, go, productivity
Published: 2024-07-02 16:15:23

🌟 Exciting News! 🌟

I'm thrilled to share that I've started my journey into the world of DevOps! As a first step, I'm diving deep into learning the basics of Python and Golang. 🚀

I'm looking forward to connecting with fellow developers and DevOps professionals to exchange knowledge and experiences. Let's grow and innovate together!

#DevOps #Python #Golang #DevCommunity #TechJourney #ContinuousLearning #TechGrowth #Programming
Automating User and Group Management on Linux with Bash
Published: 2024-07-02 16:12:22

Managing user accounts and groups is a fundamental aspect of system administration. In dynamic environments, such as those in software development companies, the ability to automate this process can save time and reduce errors. This article explains a Bash script designed to automate the creation of user accounts and groups based on a predefined list, ensuring each user has a secure, randomly generated password.
Understanding the Script

The script create_users.sh takes a text file as input, where each line specifies a username and associated groups, separated by a semicolon. It performs the following actions:
User and Group Creation: For each line in the input file, the script creates a user and a personal group with the same name. It also adds the user to specified groups, creating those groups if they don't already exist.

Password Management: It generates a secure, random password for each user, sets it, and stores it in a secure file, ensuring that only the root user can access it.

Logging: All actions are logged to /var/log/user_management.log, providing a clear audit trail.

Why This Approach?

This script emphasizes security and accountability. By generating random passwords and securing the password file, it ensures that user accounts are protected from the outset. Logging actions allow system administrators to track changes and troubleshoot issues.

Deployment and Usage

To use the script, simply run it as root and pass the path to your input file as an argument:
sudo bash create_users.sh usernames.txt
Ensure that your input file follows the format username;group1,group2. 

Learn More

For those interested in further automating and managing Linux systems, the https://hng.tech/internship offers valuable resources and opportunities. Whether you're looking to hire tech talent or enhance your skills, https://hng.tech/hire platform and premium courses provide a wealth of information and support.

Conclusion

Automating user and group management not only streamlines system administration tasks but also enhances security and efficiency. By leveraging simple yet powerful Bash scripts, sysadmins can ensure their systems are well-organized and secure.
The Difference Between indexOf and findIndex in JavaScript
Tags: webdev, javascript, programming
Published: 2024-07-02 16:06:28



indexOf is a method available for both arrays and strings in JavaScript, used to search for the first occurrence of a value using strict equality ("===").

findIndex is a higher-order function specifically designed for arrays, used to search for the first element that satisfies a condition specified by a callback function.




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y7zm8m430ed3mlb7rdug.png)
350. Intersection of Two Arrays II
Tags: php, leetcode, algorithms, programming
Published: 2024-07-02 15:48:03

350\. Intersection of Two Arrays II

Easy

Given two integer arrays `nums1` and `nums2`, return _an array of their intersection_. Each element in the result must appear as many times as it shows in both arrays, and you may return the result in **any order**.

**Example 1:**

- **Input:** nums1 = [1,2,2,1], nums2 = [2,2]
- **Output:** [2,2]

**Example 2:**

- **Input:** nums1 = [4,9,5], nums2 = [9,4,9,8,4]
- **Output:** [4,9]
- **Explanation:** [9,4] is also accepted.

**Constraints:**

- <code>1 <= nums1.length, nums2.length <= 1000</code>
- <code>0 <= nums1[i], nums2[i] <= 1000</code>



**Solution:**

```
class Solution {

    /**
     * @param Integer[] $nums1
     * @param Integer[] $nums2
     * @return Integer[]
     */
    function intersect($nums1, $nums2) {
        // Count occurrences of each element in both arrays
        $counts1 = array_count_values($nums1);
        $counts2 = array_count_values($nums2);

        $intersection = [];

        // Iterate through the first count array
        foreach ($counts1 as $num => $count) {
            // Check if the element exists in the second array
            if (isset($counts2[$num])) {
                // Find the minimum occurrence
                $minCount = min($count, $counts2[$num]);
                // Add the element to the result array, repeated $minCount times
                for ($i = 0; $i < $minCount; $i++) {
                    $intersection[] = $num;
                }
            }
        }

        return $intersection;
    }
}
```



**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
Event Delegation
Tags: event, delegation, javascript
Published: 2024-07-02 15:37:42

## Funny Example

Alright, let's use a funny example with a classroom and students. Imagine a classroom full of students, and each student is holding a card. When you tap a student's card, they say something funny. Instead of going to each student and asking them to say something funny when tapped, you tell the teacher to watch over all the students and handle it.

Here's how it works with event delegation:

1. The Students and the Teacher:

- The students are the items you want to interact with.
- The teacher is the parent element that listens for the tap (click) on any student's card.

2. The Plan:

- You tell the teacher, "Hey, whenever someone taps a student's card, let's make that student say something funny!"

Now, let's see this in JavaScript:

```
<!DOCTYPE html>
<html>
<head>
  <title>Event Delegation Classroom</title>
</head>
<body>
  <div id="classroom">
    <div class="student" style="background-color: yellow;">🧑‍🎓</div>
    <div class="student" style="background-color: orange;">🧑‍🎓</div>
    <div class="student" style="background-color: pink;">🧑‍🎓</div>
  </div>

  <script>
    // The teacher (parent)
    const classroom = document.getElementById('classroom');

    // Add an event listener to the teacher
    classroom.addEventListener('click', function(event) {
      // Check if the clicked element is a student
      if (event.target.classList.contains('student')) {
        alert('Student says: "Why was the math book sad? It had too many problems!"');
      }
    });
  </script>
</body>
</html>

```

So, event delegation is like having a teacher who handles all the funny jokes for the students, making it easier and more efficient!
The Tee: A History of Comfort, Rebellion, and Self-Expression
Tags: tshirt, mens, womenstshirt, online
Published: 2024-07-02 15:35:06

It started life as a practical undergarment in the late 19th century, then evolved into a symbol of casualness and self-expression.
Early versions were basic tees made from wool or cotton, worn for warmth and sweat absorption. The U.S. Navy adopted a similar design in the 1890s, solidifying its association with practicality.
The 20th century saw the [t-shirt's](https://pegance.com/collections/) rise to casual wear. Returning soldiers from World War I preferred the comfort of their undershirts, and cheaper cotton made them more accessible. Hollywood further boosted the t-shirt's coolness factor with actors like Marlon Brando sporting them on screen. Rock and roll cemented this connection, with musicians like Elvis Presley making t-shirts a symbol of rebellion and individuality.
The invention of screen printing in the 1930s opened a new era. T-shirts became a canvas for self-expression, adorned with everything from political slogans to band logos. College students were at the forefront, using them to showcase school spirit or social causes.
The 70s and 80s saw designer brands enter the game, offering high-quality materials and bold logos. New fabrics like polyester also emerged, making t-shirts more suitable for active lifestyles.
Today, the men's t-shirt offers a perfect blend of comfort and style. We have a wide range of fabrics, from classic cotton to performance blends, and various styles to choose from. Graphic tees remain popular, while plain ones are wardrobe essentials.
T-shirts transcend mere clothing. They represent casualness, self-expression, and even rebellion. They've been used for social causes, promoting bands and sports teams, and even launching political campaigns. Their presence in iconic photos and films solidifies their place in pop culture history.
The future of the t-shirt is likely to involve even more innovation. Sustainable fabrics and advancements in technology could make them even more comfortable and functional.
One thing's for certain: the t-shirt's ability to adapt ensures its continued relevance in the ever-changing world of fashion.
July 3: Virtual AI, Machine Learning and Computer Vision Meetup
Tags: computervision, ai, machinelearning, datascience
Published: 2024-07-02 15:21:36

Don’t forget to join us this Wed on July 3 for the monthly AI, Machine Learning and Computer Vision Meetup!

**Register for the Zoom**: [https://voxel51.com/computer-vision-events/ai-machine-learning-computer-vision-meetup-july-3-2024/](https://voxel51.com/computer-vision-events/ai-machine-learning-computer-vision-meetup-july-3-2024/)

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

We have a great lineup of speakers including:

* **Performance Optimization for Multimodal LLMs** - [Neha Sharma](https://www.linkedin.com/in/hashux/) from Ori Industries

* **Deep Dive: Responsible and Unbiased GenAI for Computer Vision** - [Daniel Gural](https://www.linkedin.com/in/daniel-gural/) at Voxel51

* **5 Handy Ways to Use Embeddings, the Swiss Army Knife of AI** - [Harpreet Sahota](https://www.linkedin.com/in/harpreetsahota204/) at Voxel51
Bug Report for SAW
Published: 2024-07-02 15:11:35



Date: 01/07/2024

**Summary:**
The application has multiple issues affecting its usability, particularly with the URL management functionalities. Various buttons and features do not perform as expected, and some operations cause the application to crash or behave unpredictably.

**Detailed Description of Issues:**

UI Issue: "Add URL" Button Covers Text on Startup
- Severity: Medium
- Description: Upon opening the application, the "Add URL" button overlaps with text on the screen, obstructing readability.
- Steps to Reproduce:
- Open the application.
- Observe the "Add URL" button's position relative to on-screen text.
"Add URL" Button Non-Functional

- Severity: High
- Description: The "Add URL" button does not function when clicked.
- Steps to Reproduce:
- Click the "Add URL" button.
- No action is taken by the application.
"URL Must Contain" Text on Sidebar Not Functional

- Severity: Medium
- Description: The feature indicating that the URL must contain specific text on the sidebar does not work as intended.
- Steps to Reproduce:
- Add a URL.
- Check if the URL is validated against the specified text.
Inconsistent Performance: "Add URLs from File"

- Severity: High
- Description: Adding URLs from a file does not work reliably; sometimes, the app needs to be restarted to function correctly.
- Steps to Reproduce:
- Attempt to add URLs from a file.
- Observe if the operation succeeds without requiring a restart.
False Link Detection in DOCX Files

- Severity: Medium
- Description: The application detects links in DOCX files that do not contain any links. It is unclear if this is intentional.
- Steps to Reproduce:
- Add a DOCX file with no links.
- Check if the app identifies any links.
Loss of Scrapped Links on Restart

- Severity: High
- Description: When the app is restarted, it only retains scraped links, and un-scrapped links are lost.
- Steps to Reproduce:
- Scrap links in the app.
- Restart the app.
- Observe that only scraped links are present.
App Crash When Adding DOCX File with URLs

- Severity: Critical
- Description: The application closes unexpectedly when a DOCX file containing URLs is added.
- Steps to Reproduce:
- Add a DOCX file containing URLs.
- Observe if the app crashes.
Incorrect URL Display After Restart

- Severity: High
- Description: After restarting the app, it displays random URLs associated with a file instead of the correct URLs.
- Steps to Reproduce:
- Add a file with URLs.
- Restart the app.
- Check the URLs displayed.
Scraping Functionality Without Internet

- Severity: Medium
- Description: The application continues to scrape URLs even when there is no internet connection, which is unexpected behavior.
- Steps to Reproduce:
- Disconnect from the internet.
- Attempt to scrape URLs.
- Observe if the app continues to scrape.
Environment:
App Version: 
Operating System: Windows 10


Additional Comments: It is crucial to address these issues to improve the application's reliability and user experience. Please feel free to contact me for any further information or clarification.
Boost Your Testing Game
Published: 2024-07-02 15:08:26

 
### JavaScript Testing Frameworks

1. **Jest**
   - **Summary**: A comprehensive testing framework developed by Facebook. It's widely used for testing JavaScript applications, particularly those built with React.
   - **Features**: Built-in test runners, coverage reports, snapshot testing, and mock functions.

2. **Mocha**
   - **Summary**: A flexible testing framework for Node.js, known for its simplicity and extensive configuration options.
   - **Features**: Asynchronous testing, customizable reporting, and integration with various assertion libraries like Chai.

3. **Cypress**
   - **Summary**: An end-to-end testing framework for web applications, designed to be fast, reliable, and easy to use.
   - **Features**: Real-time reloads, time-travel debugging, and a powerful dashboard for test results.

4. **Jasmine**
   - **Summary**: A behavior-driven development (BDD) framework for testing JavaScript code.
   - **Features**: Easy syntax, no need for external libraries, built-in assertions, and support for asynchronous testing.

5. **Karma**
   - **Summary**: A test runner developed by the AngularJS team, primarily for unit testing in JavaScript.
   - **Features**: Supports multiple browsers, real-time testing, and integration with various continuous integration (CI) tools.

6. **QUnit**
   - **Summary**: A powerful, easy-to-use JavaScript unit testing framework, particularly useful for testing jQuery projects.
   - **Features**: Built-in assertions, test organization, and support for asynchronous testing.

7. **Ava**
   - **Summary**: A minimalistic test runner for JavaScript, known for its simplicity and parallel test execution.
   - **Features**: Parallel test execution, concise API, and support for ES6/ES7 features.

8. **Enzyme**
   - **Summary**: A JavaScript testing utility for React, developed by Airbnb, allowing for easier manipulation and traversal of React components.
   - **Features**: Shallow rendering, full DOM rendering, and static rendering.

These frameworks cater to different needs, from unit testing and integration testing to end-to-end testing, and they offer a range of features to support efficient and effective test automation in JavaScript projects.
NPX vs NGX vs NPM
Published: 2024-07-02 15:03:49

```
npx: an npm package runner
```

```
ngx packages are used by Angular
ngx : used by Angular to run Angular projects.
```



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


NPM => Is a JS package manager.

NPX => Is a tool for executing Node packages and execute npm package binaries.

It is easy to remember:

-npm stands for MANAGER

-npx stands for EXECUTE
FIRST GLANCE ANALYSIS
Tags: data, analytics, datacleaning, firstglance
Published: 2024-07-02 15:03:10

Hi guys,

I have always wanted to write technical reports and share my knowledge in data analytics, this is my first time and if I can, you can too!

Today, I am going to be uncovering initial insights from a dataset at first glance. The data we are using contains 3 years of vehicle sales from 2003 - 2005. 

WOOAHHH! Long time ago, right? 😂 

Well, that's the fun thing about data analytics, you get to go back in time. I LOVE IT and I am sure you can feel the thrill too.

LET'S GOOOO!🤸‍♀️🚀

Data link below
👇 
[Sale data link](https://docs.google.com/spreadsheets/d/1FgeHIjUj67rKU6XaDFXXKKmAf_Igc0UTds9ZaL8WY-o/edit?usp=sharing)

Here comes the big question💡, without doing any deep analysis, what are the obvious patterns, trends, or anomalies in the data?

I know , I know, data can seem overwhelming 😑, but don't worry, you've got this. Let's go!😋

Firstly, the headers are very important because they give us a description of the data we are looking at, with each variable having unique values that are relevant to understanding the full scope of the data. In this case, we can observe that some of the data headers are ambiguous which causes confusion on what the values are really describing. Example of such headers is MSRP.

Secondly, Eagle-eyed observers would have seen the inconsistency of date, postal code and PHONE format, this can be troublesome when trying to perform deep analysis. Also, there are missing values for columns like postal code, state.

Thirdly, we can perform simple calculations to find the year with the highest sales, trendy products or highest selling products, we can also find the most frequent/regular customer to award loyalty bonuses and the Country with the highest market potential or where most sales occur in order to streamline the company's target market. All these can be done using simple formulas.

Finally, the following trends were uncovered by performing light analysis on the dataset, we can see a sudden upward surge in sales in 2004 followed by decrease in 2005 (all-time low). Also, we can observe that Classic cars are bought more often than other cars.

{% codepen https://codepen.io/ben-aj/pen/xxNvLQN %}


If we perform deeper analysis, start questioning our findings and finding out the WHYs, finding cause and trends that can help business decisions. It's so much like being a detective, a business Sherlock Holmes unlocking mysteries, and growing the revenue of this company, haha!

😁