teleren/devto huggingface dataset:
The Solution of "curl: (6) Could not resolve host" Error with "nginx server_name"
Tags: nginx
Published: 2022-02-09 12:02:08

When I tried to reach out to the server that I named in nginx.conf, curl threw me an error:

```bash
curl myServerName.test:80
```

And then

```bash
"curl: (6) Could not resolve host: "
```

My nginx.conf

```conf
http{

     server {

        listen 80;
        server_name myServerName.test;


        return 200 "hello world!\n";
    }
}

```

The curl could not reach the host. I had to edit the /etc/hosts.

```bash
sudo nano /etc/hosts
```

and then /etc/hosts appeared like below

```
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

```

And added the myServerName.test after a space tab near the localhost. the last state of /etc/hosts :

```
127.0.0.1       localhost  myServerName.test

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

```

Tried the curl again

```bash
curl myServerName.test:80
```

Then

```bash
hello world!

```
Contact me

- [Linkedin](https://www.linkedin.com/in/cengiz-berat-din%C3%A7kan-ab4208128/)

- [twitter](https://twitter.com/dinckan_berat)

- [github](https://github.com/pandashavenobugs)
Building Website from Scratch - Part 1
Tags: webdev, shriekdj, codewithshriekdj, devlog
Published: 2022-02-09 11:48:50

Hello Everybody I am gonna create a website and I Will Try To Share Everything About it continuesly untill I Made It Completely.

I Can create a simple site with HTML, CSS and JavaScript but this other Frameworks Wasted My Time too Much.

By Scratch I Mean I Will Start From Single index.html file to Dynamic Blog and then CMS Maybe(Not Confirmed).

As of Now No Plans About What is The Actual Purpose For the Building Site But Just Want to Share How it would be for a completely new webdevs out there.

I Will try to make it open-source.

### This will Gonna Be The Repository of the Website.
{% github shriekdj/site-from-scratch %}
Print a page with JS in the background
Tags: javascript, webdev, typescript, print
Published: 2022-02-09 11:33:30

## Print a given URL
```ts
async function printURL(url: string): Promise<void> {
    const iframe: HTMLIFrameElement;

    iframe = await document.createElement('iframe');
    iframe.setAttribute("src", url);
    await document.body.appendChild(iframe);

    iframe.contentWindow.print();
}
```

## Print an existing HTML node
```ts
function printHTMLElement(element: HTMLElement) {

    const cloned = element.cloneNode(true)
    let section = document.getElementById("print")

    if (!section) {
        section = document.createElement("div")
        section.id = "print"
        document.body.appendChild(section)
    }

    section.innerHTML = `
        <style>
           @page {
                size: landscape;
                margin: 0mm;
            }
            
            @media screen {
              #print {
                display: none;
               }
            }
            
            @media print {
            
                body * {
                    visibility:hidden;
                }
                #print, #print * {
                    visibility:visible;
                }
                #print {
                    position:absolute;
                    left:0;
                    top:0;
                    padding: 1.5rem;
                }
                
                .hidden-on-print {
                    visibility:hidden;
                }
            }
        </style>
    `;
    section.appendChild(cloned);
    window.print();
}
```
What are the leading technologies ? 
Tags: career, 2022, discuss
Published: 2022-02-09 11:32:29

Well, I did my research and I found out.

Top 10 leading technologies for 2022.

1. Artificial intelligence
2. Data Science
3. Intelligent process automation
4. Border computing
5. Extended Reality
6. Blockchain
7. Fifth generation
8. Cyber Security
9. Internet of Things
10. Human Enhancement

I'm wondering what your thoughts are on Leading Technology.
684. Redundant Connection
Tags: cpp, algorithms, 100daysofcode
Published: 2022-02-09 11:30:37

# **684. Redundant Connection**

# Description

In this problem, a tree is an **undirected graph** that is connected and has no cycles.

You are given a graph that started as a tree with `n` nodes labeled from `1` to `n`, with one additional edge added. The added edge has two **different** vertices chosen from `1` to `n`, and was not an edge that already existed. The graph is represented as an array `edges` of length `n` where `edges[i] = [ai, bi]` indicates that there is an edge between nodes `ai` and `bi` in the graph.

Return *an edge that can be removed so that the resulting graph is a tree of* `n` *nodes*. If there are multiple answers, return the answer that occurs last in the input.

## Example 1:


```
Input: edges = [[1,2],[1,3],[2,3]]
Output: [2,3]
```

## Example 2:



```
Input: edges = [[1,2],[2,3],[3,4],[1,4],[1,5]]
Output: [1,4]
```

## Constraints:

- `n == edges.length`
- `3 <= n <= 1000`
- `edges[i].length == 2`
- `1 <= ai < bi <= edges.length`
- `ai != bi`
- There are no repeated edges.
- The given graph is connected.

---

# Solutions

## Solution 1

### Intuition

UNION FIND

### Code

```java
class Solution {
 public:
  const static int N = 1003;
  int p[N];
  int find(int x) {
    if (p[x] != x) {
      p[x] = find(p[x]);
    }
    return p[x];
  }
  vector<int> findRedundantConnection(vector<vector<int>> &edges) {
    vector<int> ans;
    for (int i = 1; i <= edges.size(); i++) {
      p[i] = i;
    }
    for (auto &edge : edges) {
      // already in same graph(== has sampe parent), so this edge is redundent
      if (find(edge[0]) == find(edge[1])) {
        ans.push_back(edge[0]);
        ans.push_back(edge[1]);
      } else {
        p[find(edge[0])] = find(edge[1]);
      }
    }

    return ans;
  }
};
```

### Complexity

- Time: O(N)
- Space: O(N)

---
5 Websites For Programming Beginners
Published: 2022-02-09 11:14:57

## Websites that help you to Learn Programming :

1. [W3Schools](https://www.w3schools.com/) : For Learning Programming & check for reference.

2. [Codeacademy](https://www.codecademy.com/) : For Learning Programming, read docs, cheat sheets etc..

3. [StackOverflow](https://stackoverflow.com/) : For asking your doubts and answer other people's doubts

4. [GitHub Learning Lab](https://lab.github.com/) : Learn Coding Using Git & GitHub.

5. [TypingClub](https://www.typingclub.com/) : For Learning Touch Typing. Very Useful while coding.

Thanks For You Time. Have A Nice Day.
AWS Insiders Podcast: Transforming Customer Experience with Amazon Personalize with Ankur Mehrotra
Tags: aws, podcast
Published: 2022-02-09 11:05:29

## Podcast
* [Episode URL](https://aws-insiders.simplecast.com/episodes/transforming-customer-experience-with-amazon-personalize-with-ankur-mehrotra-director-and-general-manager-for-aws-ai)
* Subscribe on [Apple Podcasts](https://podcasts.apple.com/us/podcast/aws-insiders/id1608453414), 
 [Spotify](https://open.spotify.com/show/0sH9zDLABk6FoLM0cpZHu1) or [RSS] (https://feeds.simplecast.com/4vl2TtzP)


## EPISODE NOTES
On this episode, Ankur Mehrotra dives deep into Amazon Personalize, a fully managed machine learning service that goes beyond static, rule-based recommendation systems and trains, tunes, and deploys custom ML models. Ankur explains how it allows for delivery of highly customized recommendations to customers across industries, how Personalize can drive meaningful business results, and much more.


> “Consumer habits are changing and the way they're engaging with different businesses are changing. We're seeing the need for personalization or the need for creating better user experiences in digital channels increase and we've seen that happen across different verticals." - Ankur Mehrotra

## Time Stamps

* (04:31) Metrics for customers on AWS and how Amazon Personalize can impact their business
* (12:46) How personalization can directly impact business output 
* (13:42) Measuring relevance cycle time with Amazon Personalize
* (16:34) Three pieces of advice to customers as they're getting started with Amazon Personalize
* (18:31) How to think about quantum of data 
* (22:11) Recommendations to avoid cost overruns while using Amazon Personalize
* (26:36) Success stories with Amazon Personalize
Generate a CSS Color Gradient
Tags: webdev, css, html, design
Published: 2022-02-09 11:02:58

The CSS Gradient online generator tool is a nice and simple to use utility to quickly generate linear and radial color gradients. You can create the gradients and export the CSS code with colors in HEX or RGB format. Free tool to easily make and generate cross browser linear or radial css gradients. You can generate your custom css gradient in HEX or RGBA color format. As a **[free css gradient generator tool](https://hexcolor.co/generate-color-gradient)**, this website lets you create a colorful gradient background for your website, blog, or social media profile.

![Generate a CSS Color Gradient](https://cdn.hexcolor.co/images/gradient.gif)

## What is a Gradient?
In computer graphics, a color gradient specifies a range of position-dependent colors, usually used to fill a region.[1] For example, many window managers allow the screen background to be specified as a gradient. The colors produced by a gradient vary continuously with position, producing smooth color transitions. A color gradient is also known as a color ramp or a color progression. In assigning colors to a set of values, a gradient is a continuous colormap, a type of color scheme. 

In nutshell, a gradient is the smooth transition of one or more shades in our canvas. Mostly, gradients are used to come up with visually appealing and soothing backgrounds. Compared to flat colors, a gradient color canvas is smoother and will highlight your content. It will also add more depth to your designs, making them memorable. Though, while working on gradients, make sure you there is a smooth transition of colors and try not to overdo it.

      
**[https://hexcolor.co/generate-color-gradient](https://hexcolor.co/generate-color-gradient)**
What is SDET?
Tags: testautomation, sdet, testing, softwaredevelopment
Published: 2022-02-09 16:14:17

---
title: What is SDET?
published: true
date: 2022-02-09 11:02:32 UTC
tags: testautomation, sdet, testing, softwaredevelopment
canonical_url: https://mszeles.com/what-is-sdet
---

A great introduction about what is Software Developer Engineer in Testing (SDET).

[https://www.syntaxtechs.com/blog/what-is-sdet](https://www.syntaxtechs.com/blog/what-is-sdet)

[Buy me a coffee!](https://buymeacoffee.com/mikiszeles) ❤
Role of Programmer During The Analysis Phase of Software Development
Tags: softwaredevelopment, customsoftwaredevelopment
Published: 2022-02-09 10:54:52

## **What Is The Software Development Life Cycle?**

SDLC refers to a standardized, repeatable technique for developing an information system that follows particular rules, methodologies, and standards.

The phrase is most commonly associated with the computer and information systems business, although it may also be used in systems and software engineering. SDLC is viewed as a framework for planning and controlling project creation in all of these phases.

The goal of an SDLC application is to identify the actions and phases involved in generating a specific [automation testing](https://www.devstringx.com) product, as well as to determine how they relate to other organizational approaches. From concept through delivery to consumers, the software development life cycle reflects the stages of software development.

## **Levels In SDLC**
The Analysis phase is one of seven phases in the SDLC. Until the perfect program is generated, the software development process follows a set of steps.

## **Analysis Phase**
The analysis phase is the first step in the project life cycle. The project's general direction is determined through the analysis phase, which includes the creation of a project strategy document. In most cases, gathering requirements entails more than just asking consumers what they want and recording their responses. The method of determining your needs is well-defined, depending on the complexity of your application.

## **What Happens During the Analysis Phase?**
The first is to build a requirements management plan or strategy that defines how requirements will be communicated, defined, modified, and tracked throughout the project's lifespan. This strategy entails creating a system for tracking requirements all through the base, change control process, as well as the rest of the life span.

Setting the broad direction for future work is another key activity. A succession of ground-breaking strategy documents is used to accomplish this. For instance, once you've defined your requirements, you may begin laying down broad training guidelines in your training plan paper. The strategy is high-level and will be developed at a lower level before being executed at the project's conclusion.

Lastly, the project team works towards preparing an optional document to help or support with the transition or shift from analysis to a more thorough and technical design. This document, known as System Conceptual Design, includes user feedback on a variety of ways the final solution will be implemented. This input covers a large portion of the final solution's appearance and feel.

[Original Source](https://www.theodysseyonline.com/programmer/particle-1)
Day 95 of 100 Days of Code & Scrum: CRUD Operations in MySQL
Tags: javascript, webdev, beginners, 100daysofcode
Published: 2022-02-09 10:46:59

Greetings, everyone!

I've spent most of the day learning MySQL, mostly focusing on CRUD operations. I'm starting to get used to MySQL now, and while I still prefer to use NoSQL databases for their flexibility, SQL can be fairly enjoyable to use as well.

Anyway, let's move on to my daily report!

## Yesterday

- I started [Colt Steele's MySQL course](https://www.udemy.com/course/the-ultimate-mysql-bootcamp-go-from-sql-beginner-to-expert/) and learned how to create, describe, and delete databases and tables in MySQL.

## Today

### MySQL

- learned how to perform CRUD operations in MySQL, using `CREATE`, `SELECT`, `UPDATE`, and `DELETE`.
- continued [Colt Steele's MySQL course](https://www.udemy.com/course/the-ultimate-mysql-bootcamp-go-from-sql-beginner-to-expert/).

### Scrum

- continued reading through [An Introduction to the Nexus Framework](https://scrumorg-website-prod.s3.amazonaws.com/drupal/2016-06/An%20Introduction%20to%20the%20Nexus%20Framework%20-%20June%202016_0.pdf).

Thank you for reading! Have a good day!

![Rammina Thank You Banner](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x9ayfxxxaz2g2hfcqbsk.png)

## Resources/Recommended Readings

- [The Ultimate MySQL Bootcamp: Go from SQL Beginner to Expert](https://www.udemy.com/course/the-ultimate-mysql-bootcamp-go-from-sql-beginner-to-expert/)
- [The 2020 Scrum Guide](https://scrumguides.org/scrum-guide.html)
- [An Introduction to the Nexus Framework](https://scrumorg-website-prod.s3.amazonaws.com/drupal/2016-06/An%20Introduction%20to%20the%20Nexus%20Framework%20-%20June%202016_0.pdf)

## DISCLAIMER

**This is not a guide**, it is just me sharing my experiences and learnings. This post only expresses my thoughts and opinions (based on my limited knowledge) and is in no way a substitute for actual references. If I ever make a mistake or if you disagree, I would appreciate corrections in the comments!

<hr />

## Other Media

Feel free to reach out to me in other media!

<span><a target="_blank" href="https://www.rammina.com"><img src="https://res.cloudinary.com/rammina/image/upload/v1638444046/rammina-button-128_x9ginu.png" alt="Rammina Logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://twitter.com/RamminaR"><img src="https://res.cloudinary.com/rammina/image/upload/v1636792959/twitter-logo_laoyfu_pdbagm.png" alt="Twitter logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://github.com/Rammina"><img src="https://res.cloudinary.com/rammina/image/upload/v1636795051/GitHub-Emblem2_epcp8r.png" alt="Github logo" width="128" height="50"/></a></span>
setup fix for cocoapods, ruby newbies
Published: 2022-02-09 10:21:10

Good day devs,
i came across **_cocoapods_** installed or not working issues when trying to setup working environment for hybrid development, here's a preview link to such error.
https://i.imgur.com/mWS6HN8.png

found a fix on [stackoverflow](https://stackoverflow.com/a/65528520/7440871) where as this fix is not popular, so i decided to repost about it for it worked for me.

Thanks and below is the script to fix the issue

`curl -L https://get.rvm.io | bash -s stable
rvm install ruby-2.6
rvm use ruby-2.6.5
rvm --default use 2.6.5
sudo gem update
sudo gem install ffi
brew install libffi
sudo gem install cocoapods
pod setup`
iapp Technologies LLP - Web and Apps Development Company
Tags: android, blockchain, ios, design
Published: 2022-02-09 09:47:00

Having an powerful enterprise internet site is critical in case you need to face out from the crowd. If you need to redecorate your enterprise internet site or create the brand new one, iapp Technologies is your go-to partner. We are the **[best web designing company](https://iapptechnologies.com/web-designing/)** that gives all sort of virtual experiences. From responsive designs to custom brand designs, get the high-quality net layout answers at low-cost prices.
 Want to create a feature-rich, scalable net application? Look no similarly than iapp Technologies. Being the **[best web app development company](https://iapptechnologies.com/web-development/)**, we're constructing top-notch net apps that cope with the wishes of precise businesses. Share your undertaking with us and we`ll get it finished fast with confident quality. 
 Choosing the proper cellular app improvement business enterprise is crucial in case you need to increase a completely **[mobile app development company](https://iapptechnologies.com/mobile-app-development/)** which could galvanize your customers and generate revenue. You could make your dream app concept come alive with iapp Technologies. Our skilled app builders have advanced 500+ cellular apps for Android and iOS platforms. If you want a top-notch app to develop your enterprise, then attain out to us now.
Comprehensive React UI Components Library
Tags: design, javascript, react, opensource
Published: 2022-02-09 09:40:47

## [arco-design](https://github.com/arco-design/arco-design)
<span><strong><i class="fa fa-star">Star 2.6k</i> <i class="fa fa-eye">Watch 26</i> <i class="fa fa-code-fork">Fork 226</i></strong></span>

<div align="center">
  <a href="https://arco.design" target="_blank">
    <img alt="Arco Design Logo" width="200" src="https://avatars.githubusercontent.com/u/64576149?s=200&v=4"/>
  </a>
</div>
<div align="center">
  <h1>Arco Design</h1>
</div>

<div align="center">

A comprehensive React UI components library based on the [Arco Design](https://arco.design/) system.

</div>

## Features

#### Comprehensive

With more than 60 crafted components that you can use out of the box.

#### Customizable theme

Extensive design tokens can be customized to build your own theme.

#### Reusable custom materials

Material market provides a one-stop solution for materials management. Reuse customized modules to make a breakthrough in efficiency.

#### TypeScript friendly

All components are written in TypeScript so it's type friendly.

## Examples

```javascript
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@arco-design/web-react';
import '@arco-design/web-react/dist/css/arco.css';

function App() {
  return (
    <Button type='secondary'>
      Hello World
    </Button>
  );
}

ReactDOM.render(, document.getElementById('app'));
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqzq8f9in7ppae1uah2d.png)
PYTHON 101; GETTING STARTED
Tags: python, beginners, luxacademy
Published: 2022-02-09 09:40:09


##** WHAT IS PYTHON**
First released in 1991 and created by Guido van Rossum, python is an interpreted, high-level and general-purpose programming language. 

## **GETTING STARTED**
### _Python Installation_
You can download the various versions of python through your preferred browser(preferred versions 3.6+). 

![Python Installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c2khhopg4ewn7eu69y7d.png)
 Clicking on download will download python.
 Click on the..exe file to set up python in your computer

**Writing the First Code**
Open the _Command Prompt_ and type python

![CMD](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vzkk34dtrzhd1aeqemp8.png)
You will be able to access Python.

`print(Hello World)`

##FUNDAMENTALS OF PYTHON
Here we get to know Python;

- Variables

- Strings and Comments

- Operators

- Lists 

- Dictionaries

- Sets

- Functions

###_Variables_
A **variable** is a storage location (Identified by the memory adress) paired with an associated symbolic name(an identifier), which contains some known or unknown quantity of information refered to as a value.
 
`name= eric`
`age= 19`
 _name_ and _age_ are variables

###_Strings and Comments_
 `#` is used to convert a string to a comment

`print("hello world")`
`#print ("Hello world")`

###_Operators_
There are different types of operators

- Boolean
Boolean values are two which are `True` or `False`

- Comprison
Comparison operators are 
       

1. Equal                  (`==`)
2.        Not equal              (`!=`)
3.        Greater than           (`>`)
4.        Less than              (`<`)
5.        Greater or equal to    (`>=`)
6.        Less than or equal to  (`<=`)
- Logical
       `and` 
       `or`
       `not`


###_Lists_

![Lists in python](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gllzc3z4d6cznphhapsn.png)
In lists, characters are enclosed in brackets [].

###_Dictionaries_
Items are stored in a key, value pair in a dictionary.
Dictionaries are defined using curly braces `{}` and are ordered. 

![Dictionaries in Python](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/omj9hy9epolynu60c8fq.png)

###_Sets_
Sets are defined using curly braces `{}` and are unordered.

```
ages = {19,20,21,22,23}
ages
{19,20,21,22,23}
```
###_Functions_

A function is a block of code that runs when it is called.
a function is defined with the `def` keyword.
```
def name():
    print('eric')

name()
eric
```
Here, name() is calls the function to execute.


In Conclusion, that was an overview of getting strarted with python programming for beginners. As part of LUX Academy,i am happy to be here.
[Azure Trial Hackathon Submission Post Placeholder Title]
Published: 2022-02-09 09:22:57

[Instructions]: # (To submit to the Microsoft Azure Trial Hackathon on DEV, please fill out all sections.)


### Overview of My Submission
[Note]: # (Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)


### Submission Category: 

[Note]: # (AI Aces, Computing Captains, Low-Code Legends, Java Jackpot, or Wacky Wildcards:)


### Link to Code on GitHub

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)
[Note]: # (Your repository must include a README)
[Note]: # (You must use and list a permissive license for your code: MIT, Apache-2)


### Additional Resources / Info

[Note:] # Screenshots/demo videos are encouraged!

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. Prizes for winning projects with multiple collaborators will be sent to the person who posts this submission and they will distribute the prize evenly. DEV will not split prizes as per our rules)

[Reminder]: # (Submissions are due on March 8, 2022 @ 11:59 PM UTC)