teleren/devto huggingface dataset:
Insertion Sort
Tags: sort, insertionsort, tutorial, algorithms
Published: 2023-06-12 11:48:57

## Insertion Sort:

To sort a list of numbers with insertion sort method, you can follow these steps:

1. Start with the first number in the list.
2. Compare it to the number before it (if there is one).
3. If the number is smaller than the previous one, keep comparing it to the numbers before until you find the right spot.
4. Move any larger numbers one position up to make space for the smaller number.
5. Repeat these steps for each number in the list until the whole list is sorted.
Basically, you're checking each number and putting it in its correct place in the list by comparing it to the numbers that come before it. You keep doing this until the whole list is in the right order.

## C++ Code

```
#include <bits/stdc++.h>
using namespace std;

void insertion_sort(int arr[], int n) {
    for (int i = 0; i <= n - 1; i++) {
        int j = i;
        while (j > 0 && arr[j - 1] > arr[j]) {
            int temp = arr[j - 1];
            arr[j - 1] = arr[j];
            arr[j] = temp;
            j--;
        }
    }

    cout << "After Using insertion sort: " << "\n";
    for (int i = 0; i < n; i++) {
        cout << arr[i] << " ";
    }
    cout << "\n";
}

int main()
{
    int arr[] = {13, 46, 24, 52, 20, 9};
    int n = sizeof(arr) / sizeof(arr[0]);
    cout << "Before Using insertion Sort: " << endl;
    for (int i = 0; i < n; i++)
    {
        cout << arr[i] << " ";
    }
    cout << endl;

    insertion_sort(arr, n);
    return 0;
}
```

Time Complexity: O(N^2) 
Auxiliary Space: O(1)


**Time Complexity Analysis of Insertion Sort**
The worst-case time complexity - O(N^2)
The average case time complexity - O(N^2)
The time complexity of the best case - O(N).
Interrupções no Trabalho Moderno: Como Isso Afeta Negativamente os Desenvolvedores de Software
Published: 2023-06-12 11:38:16

A natureza do trabalho moderno mudou drasticamente com a era digital. Trabalhar de forma remota, colaborar virtualmente e multitarefa tornaram-se a norma em muitas indústrias, incluindo a indústria de desenvolvimento de software. No entanto, com essa mudança vieram também novos desafios, um dos quais é a interrupção frequente do trabalho. Estas interrupções podem ter um impacto significativo na produtividade e na qualidade do trabalho dos desenvolvedores de software.

## O Impacto das Interrupções no Fluxo de Trabalho

Para os desenvolvedores de software, a manutenção do foco e a imersão no trabalho são essenciais. Isso é muitas vezes referido como estar em um "estado de fluxo", onde eles são capazes de se concentrar totalmente na tarefa em mãos. No entanto, as interrupções frequentes - seja por e-mails, mensagens instantâneas ou mesmo reuniões inesperadas - podem quebrar este estado de fluxo, tornando difícil para os desenvolvedores retomar o ritmo do trabalho.

## O Efeito das Interrupções na Qualidade do Código

Interrupções frequentes podem levar a erros e bugs no código. Quando os desenvolvedores são interrompidos, eles podem perder o controle do que estavam fazendo, levando a possíveis erros quando retomam o trabalho. Além disso, a pressão para retomar rapidamente o trabalho após uma interrupção pode resultar em uma revisão inadequada do código, potencialmente levando a falhas de software.

## O Impacto das Interrupções na Saúde Mental

Além de afetar a produtividade e a qualidade do trabalho, as interrupções frequentes também podem ter um impacto negativo na saúde mental dos desenvolvedores de software. O estresse constante de ser interrompido e a pressão para retomar o trabalho podem levar a burnout, ansiedade e outros problemas de saúde ment

## Mitigando o Impacto das Interrupções

Para mitigar o impacto das interrupções, as empresas podem implementar políticas como "horas de silêncio", onde os desenvolvedores não são esperados para responder a e-mails ou mensagens, ou podem designar determinados dias para reuniões, deixando o restante da semana livre para trabalho ininterrupto.

Em suma, enquanto as interrupções são uma parte inevitável do trabalho moderno, é importante reconhecer o impacto que elas podem ter e buscar estratégias para minimizá-las, a fim de manter uma força de trabalho de desenvolvimento de software saudável e produtiva.
React props and components
Published: 2023-06-12 11:37:33

React is an immensely popular JavaScript library in the world of web development. In the core of React there are two important concepts: props and components. The understanding of React props and components is crucial for developers to be able to create reusable and interactive user interfaces, allowing the creation of efficient, dynamic apps. 

In React, props pass data between components. In javascript terms, they can be considered parameters like function arguments. They are immutable, props flow from parent components to child components. 

In this example there is a parent component called 'ParentComponent' that renders a child component called 'ChildComponent'. It passes a prop named 'message from parent to child, it is defined in the parent component.

```
class ParentComponent extends React.Component {
  render() {
    const message = "Hello, world!";
    return <ChildComponent message={message} />;
  }
}

```
In the child component, 'message' can be accessed as a prop:

```
class ChildComponent extends React.Component {
  render() {
    return <p>{this.props.message}</p>;
  }
}

```
The child component can now use the prop value from the parent component and render it dynamically.

React components are the fundamental building blocks that encapsulate reusable and independent UI elements. Two types of components exist: functional components and class components.

Functional components are written as JavaScript functions, making them concise and straightforward. Here's an example:

```
const FunctionalComponent = (props) => {
  return <p>{props.message}</p>;
};

```
The ability of React is displayed when props and components work together. Props facilitate data transmission, while components allow the structure and functionality for rendering said data. This synthesis allows developers to build modular and adaptable applications.

React props and components are important to understand in order to construct interactive and modular web applications. Props allow data transfer, while components provide the structure for rendering. Utilizing props and components, developers can construct reusable, flexible, and scalable code. The relationship between these concepts are vital in being able to implement React efficiently.
How can you create dashboard stats card using Tailwind CSS
Tags: tailwindcss, dashboard, ui, css
Published: 2023-06-12 11:35:15


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1g4fah9g2rbqkmxzu09.png)
The code starts with a <div> wrapper with the classes "flex", "flex-row", and "flex-wrap". This container gives its children a flexible style that lets them wrap to the next line if they need to.


There are four card parts inside the container. Each is made up of a <div> element with a different Tailwind CSS class. These classes control the width, padding, and flex behaviour of the card parts to get the layout you want on different screen sizes.

Each part of a card has a <div> element with the class "h-full rounded-xl bg-white shadow-2xl". This controls how the card looks, including the colour of its background, whether its sides are rounded, and whether it has a shadow.

In the content part of each card, there is a title, a value, and an optional tooltip. The title is shown by a h2 element with the class "text-3xl font-bold" and is centered vertically using the "self-center" class. The number is also a h2 element with the same classes, but the "Total Sales" card has an extra span element with a dollar sign in it. The tooltip is a small piece of text next to the value that shows how much the value has changed. It is hidden by default, but JavaScript and the "x-data" and "x-show" properties make it appear when the mouse is over it.

Below the number, there is an <a> element that looks like a link that says "View more...". It has a class for styling when the mouse is over it.

Each card has a different look based on the colour scheme and SVG icon that go with it. The icons are inserted using an svg> element with the "bi" class, which refers to Bootstrap Icons. Using CSS positioning and change, the icons are put in the middle of a circle-shaped background.

Overall, the code uses both HTML and Tailwind CSS classes to make a nice style for a dashboard's stats cards. The flexible container and responsive classes make sure that the cards adjust to different screen sizes. This makes it good for a responsive site design.

 [Here is the full code link](https://play.tailwindcss.com/LUuZG2Sjl1)
"HTML List:Everything you need to know."
Tags: beginners, html, github, javascript
Published: 2023-06-12 11:21:47


"HTML List: Everything you need to know."
HTML lists are a great way to organize and present information on a web-page in a structured format. There are two major types of lists that you can create in HTML.
Ordered Lists:
Ordered Lists are mainly applied when you want to illustrate a list of items in a particular order. Each item will be preceded by a number or letter, thus creating an ordered list in HTML. The ordered list starts with the <ol>` tag.
Example

<h4>orderedlist</h4>
<ol>
    <li>productB</li>
    <li>productC</li>
    <li>product D</li>
</ol>


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



The tag <ol> creates the ordered list, and each item is presented by the t `<li>` tag. The browser will generate the numbers in the list created automatically.

Unordered Lists
This specific list displays a list of items on a web-page with no specific order. A bullet point precedes each item. We must start with the `<ul>` tag to create the unordered list in HTML.

Example
<h4>Unorderedlist</h4>
<ul>
    <li>productB</li>
    <li>productC</li>
    <li>productD</li>


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

When you use the <ul> tag, you can create an unordered list, and the `<li>` tag will present a particular item. The browser will generate the bullet points in the list created automatically.
Vue + Flask - Bloglite Application Source Code.
Tags: webdev, opensource, javascript, programming
Published: 2023-06-12 11:16:33

 A web application where users can register, login, create and manage posts, comment on other users' posts, follow and unfollow other users, and search for other users. Additional features include : Backend jobs like export, alert and reporting jobs.

**LINK :** {% embed https://github.com/faizanxmulla/flask-blog-app-v2 %}

**Features :**

1. User authentication : Signup and Login (Token Based Authentication - JWT).

2. Account management : Create, view, edit, and delete user accounts.

3. Content management : Create, view, edit, and delete posts.

4. User profile : View own posts, followers, and follows.

5. User feedback : Comment on posts to express opinions.

6. Explore other users : View their posts, followers, and follows.

7. Social features : Search, follow, and unfollow other users.

8. Personalized feed : View posts from followed users.

9. RESTful API : API available for posts, users, comments, and follows.

10. User-Triggered Async Jobs : Download user's posts as a CSV file.

11. Daily Reminder Jobs : Receive daily reminders to post.

12. Scheduled Jobs : Receive a report as an email or PDF summarizing engagement for the month.

13. Performance and Caching - added caching & cache expiry where required to increase the API performance.

=========================

**Technologies Used :**

1. Flask: backend API is developed using Flask, a lightweight and flexible web framework for Python.

2. VueJS: frontend UI is built using VueJS CLI, a popular JavaScript framework for building user interfaces.

3. Jinja2 templates : used for rendering HTML templates and sending emails.

4. Bootstrap : used for styling and UI components to create an attractive and responsive user interface.

5. SQLite and SQLAlchemy : SQLite database is used for data storage, and SQLAlchemy is used as an ORM (Object-Relational Mapping) tool to interact with the database.

6. Flask-Restful : used to develop the RESTful API for the app

7. Flask-SQLAlchemy : used to access and modify the app's SQLite database.

8. Flask-Celery : used for asynchronous background jobs at the backend.

9. Flask-Caching: used for caching API outputs and increasing performance.

10. Redis : used as an in-memory database for the API cache and as a message broker for celery.

11. Git : responsible for version control.

=========================

Do ⭐ the repository, if it inspired you, gave you ideas for your own project or helped you in any way !!!
PMP Certification Requirements
Published: 2023-06-12 11:08:56

The Project Management Professional (PMP) certification is a widely recognized and highly regarded credential for project managers. To obtain the PMP certification, individuals must meet certain requirements set by the Project Management Institute (PMI), the governing body for PMP certification. Here are the key requirements:

Education: Candidates must have a secondary degree (high school diploma, associate's degree, or equivalent) along with at least 5 years of project management experience. Alternatively, candidates with a four-year degree (bachelor's degree or equivalent) need a minimum of 3 years of project management experience.

Project Management Experience: The project management experience should include leading and directing projects. It involves the application of knowledge, skills, tools, and techniques to project activities. The experience should be non-overlapping, meaning that you cannot count the same months or years of experience for multiple projects.

Project Management Education: Candidates are required to complete 35 hours of project management education. This requirement can be fulfilled through formal project management training, courses, or programs offered by PMI Registered Education Providers (R.E.P.s) or academic institutions.

PMP Exam: Once the education and experience requirements are met, candidates can apply to take the PMP exam. The exam consists of 180 multiple-choice questions and covers various aspects of project management, including initiation, planning, execution, monitoring and controlling, and closing. It assesses the candidate's knowledge, skills, and abilities related to project management.

Click below for more information :
https://youtu.be/PdURfzb4SZI
Retro games are back in fashion
Published: 2023-06-12 09:02:06

Nintendo games have consistently enjoyed popularity over the years, and presently, obtaining original games for the console has become increasingly challenging. The surge in demand for Nintendo games has led to shortages and limited availability in the market.

The difficulty in acquiring original Nintendo games has sparked a resurgence in the popularity of retro games. Many gamers are turning to vintage titles from the NES, SNES, and Game Boy eras as an alternative. These classic games, known for their nostalgic charm and timeless gameplay, are experiencing a revival in the gaming community.

The appeal of retro games lies in their simplicity and the sense of nostalgia they evoke. Players are drawn to the pixelated graphics, catchy soundtracks, and straightforward mechanics that defined the early days of gaming. Retro games offer a sense of familiarity and a return to the roots of the hobby.

The rise of online platforms and digital marketplaces has made it easier to access retro games. Many older titles are being re-released as digital downloads or included in compilation packages, providing gamers with a convenient way to experience classic Nintendo games without the scarcity and high prices associated with original copies.

Additionally, the growing interest in retro gaming has led to the development of new titles inspired by the classic era. Independent developers are creating games with pixel art aesthetics and gameplay mechanics reminiscent of the Nintendo games of yesteryear. These indie titles capture the essence of the retro gaming experience while offering fresh and innovative gameplay elements.

While the difficulty in obtaining original [Super Nintendo Games](https://retrogamer.store/retro-super-nintendo) may be disheartening for some, the resurgence of retro games provides an exciting and accessible alternative. Whether rediscovering beloved classics or exploring new titles with a vintage feel, gamers are embracing the charm and timeless appeal of retro gaming in the face of scarcity in the original game market.
The Top 10 Practices for Successfully Completing the CIS-SAM Certification
Published: 2023-06-12 10:55:32

Our PDF questions and solutions are carefully organized consistent with the  CIS-SAM examination shape and syllabus. these questions are the most frequently asked questions in CIS-SAM  certification exam for CIS-SAM -  licensed device Administraup to dater examination. So why are you watching for, buy your PDF examination dumps upupdated, and get suitable bring about  CIS-SAM certification exam in first strive. And enjoy your achievement in  CIS-SAM certification exam with the assist of our real PDF exam dumps. functions of [ServiceNow CIS-SAM Exam Dumps](https://dumpsboss.com/servicenow-exam/cis-sam/) constantly ensures which you are provided with only the exceptional and most up-to-date  CIS-SAM exam preparation substances. We’ll hold you updated with new capabilities and releases in an effort upupdated make your paintings even less difficult. We additionally continuously upgrade our  CIS-SAM examination questions and solutions for ninety days. So our CIS-SAM exam education substances is simulated with the sensible examination. We’re on-hand up-to-date help solve any problems or questions you have got. easy up-to-date and Print Our CIS-SAM PDF exam Questions PDF up to date be one of the most essential and popular record codecs in many paintings industries. 

Get Upto 90% Off >>>>>> https://dumpsboss.com/servicenow-exam/cis-sam/
Create a desktop entry for postman in ubuntu
Tags: ubuntu, desktopentry, shortcut
Published: 2023-06-12 10:48:34

Download postman and extract it in your home folder.

Create a `postman.desktop` file in local share folder and paste the following script in your local share file :

```
nano ~/.local/share/applications/postman.desktop
```

```
[Desktop Entry]
Version=1.0
Type=Application
Name=Postman
Icon=/home/{user_name}/Postman/app/icons/icon_128x128.png
Exec=/home/{user_name}/Postman/Postman
Comment=Supercharge your API workflow
OnlyShowIn=Unity;GNOME;
StartupNotify=false
StartupWMClass=Postman
X-UnityGenerated=true
Categories=Development;IDE;
```

Here replace your username with your
Unit testing: Jest - Angular Tour of heroes app 100% code coverage
Published: 2023-06-12 10:38:28

## What is unit testing ?

**Unit testing is a software testing approach that involves testing individual units or components of a software system in isolation to ensure they function correctly. **

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

I know that a lot of people struggle to write good unit tests. So, I decide to prepare clear example of most popular angular learning app - "Tour of heroes" with 100% code coverage. 

**REPOSITORY:** [angular-tour-of-heroes-jest-100-coverage](https://github.com/christiyan14/angular-tour-of-heroes-jest-100-coverage)

I hope the repository will help many people.

---

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


[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kristiyan-velkov-763130b3/)

<a href="https://revolut.me/kristiyanvelkov" target="_blank">
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxmsw2d2ooukhdg8x5ar.png)
</a>

If you like my work and want to support me to work hard, please donate via:

<a href="https://revolut.me/kristiyanvelkov" title="Link to Revolut">Revolut website payment</a> or use the QR code above.                                                                                                                           


**Thanks a bunch for supporting me! It means a LOT 😍**
Getting Started with Amazon Web Services Virtual Private Cloud: A Beginner's Guide
Published: 2023-08-03 10:29:31

---
title: Getting Started with Amazon Web Services Virtual Private Cloud: A Beginner's Guide
published: true
date: 2023-06-12 10:07:32 UTC
tags: 
canonical_url: 
---

Are you just starting on your Amazon Web Services (AWS) cloud computing journey? The Virtual Private Cloud (VPC), one of the many services that AWS provides, is one that you'll undoubtedly run into. In this article, we'll gradually dive into understanding AWS VPC and why it's so important for those just getting started with cloud computing.

A VPC is a virtual network within the AWS ecosystem where you can launch AWS resources like databases and application servers. It's like having your slice of the AWS cloud that is logically isolated from everyone else's, giving you complete control over your virtual networking environment. For example, having your room in the hostel without a roommate where you can control the entire setting. Though you are part of the entire hostel, you still have your piece of the room.

Creating a VPC is like setting up your network in a traditional on-premises data centre but with the added advantages of scalability, security, and integration with powerful AWS services. Your VPC can span multiple AWS availability zones, enhancing the redundancy and reliability of your applications.

The major benefit of VPC is, the flexibility it provides. If you are thinking of launching a public web application, you can set up a public VPC or if you want to have a secure backend, you can achieve that too with a private subnet. Choose your network the way your application needs it and set it up. All these customisations are available at your fingertips through a web console.

Another important aspect is security. In an AWS VPC, you control your network's access points, both inbound and outbound. You can use security groups and network access control lists (ACLs) to provide stringent security measures. Plus, you can leverage VPC Flow Logs for network traffic monitoring and troubleshooting.

Getting started with AWS VPC might seem very difficult at the start, but remember, you'll get there. Don't feel pressured to understand everything at once. Begin by familiarising yourself with its basic concepts, like subnets, route tables, and internet gateways. From there, experiment, learn, and grow. AWS provides plenty of documentation and resources to guide you along the way. AWS FAQs is a great place to start. Most of your questions will get answered there.

In the end, I would like to conclude with, AWS VPC is a powerful tool in the AWS suite that gives you control, security, and flexibility. Embracing it early on sets a solid foundation for your cloud computing journey. With patience, curiosity, and a bit of practice, you'll soon be navigating your AWS VPC with ease. Happy cloud computing!