teleren/devto huggingface dataset:
Unable to await Delete Method.
Tags: typescript, angular
Published: 2022-02-08 10:35:25

`  await this.configurationService.deleteTrf(this.trfCode);
     this.afterStatusChange();`

` deleteTrf(trfCode : string) {
      let url = `${this.getTrfApiUrl()}${trfCode}`;
      return this.http.delete(url).pipe(
        map((apiResponse) => {
          return this.apiResponseHandler.handleApiResponse(apiResponse);
        }),
        catchError(error =>{
          this.loggerService.error(`Could not delete Trf Code ${trfCode} `, error);
          throw new Error(`Deletion of Trf ${trfCode} failed`);
        })
      );
     }`

**Requirement **

1.   await this.configurationService.deleteTrf(this.trfCode); 

Until the Above line is completed below line should wait (2)

2. this.afterStatusChange();
Can Context Analysis Help Extract Meaningful Insights?
Tags: machinelearning, ai, storytelling, datascience
Published: 2022-02-08 10:28:32

I am currently reading a very interesting book by James Gate, entitled Storytelling with Data: The New Visualization Data Guide to Reaching Your Business Aim in The Fastest Way. In the book, I found a very interesting chapter, that describes the importance of the Context, when extracting insights from data.

I have elaborated on the author’s thoughts and here I describe what I have learned, regarding the importance of Data Context. I exploit a practical example to illustrate the concepts I learned.

Context Analysis involves the analysis of all the world around a dataset. The world around a dataset may include different aspects. For example, if you are measuring the temperature of the sea surface over time, context may include the weather conditions, the presence of some ships, and so on.
Three elements concur to define Context Analysis:

- Events
- Environment
- Time

I consider the three aspects separately, and I use a practical example to explain them.

## 1 Setup of the Scenario
For example, I consider the number of passengers carried by Italian air transport from 1970 to 2020. The used dataset is released by the World Data Bank under the CC-BY 4.0 license.
The objective of this section is to convert the raw dataset into a time series, that contains the considered indicator for Italy.

Firstly, I load the dataset as a Pandas Dataframe:

```
import pandas as pd
df = pd.read_csv('API_ITA_DS2_en_csv_v2_3472313.csv')
```

The original dataset contains different indicators, thus I select only what interests me:

`indicator = 'Air transport, passengers carried'
df_ind = df[df['Indicator Name'] == indicator]`

Then, I drop the unused columns:

```
df_ind.drop(['Country Name', 'Country Code', 'Indicator Name', 'Indicator Code','Unnamed: 65'], axis=1, inplace = True)
```

I rename the index to value:

```
df_ind.rename(index={511 : 'value'}, inplace=True)
```

Now, I build the time series:

Continue reading on [Towards Data Science](https://towardsdatascience.com/can-context-analysis-help-extract-meaningful-insights-178a21a88e9f)
Python print function
Tags: python, beginners, tutorial
Published: 2022-02-08 10:14:06

> [Sign up to my newsletter!](https://baransel.dev/newsletter/).

## What is the `print()` Function?

To explain briefly without confusing you too much, the `print()` function is a function that allows us to output to the screen.

## How to Use the `print()` Function?

The `print()` function has three different uses;

* Single quotes (`' '`)
* Double quotes (`" "`)
* Three quotes (`“”” “””`)

Let's look at an example;

```python
print('baransel.dev Python Lessons')
print("baransel.dev Python Lessons")
print("""baransel.dev Python Lessons""")
```

Output:

```
baransel.dev Python Lessons
baransel.dev Python Lessons
baransel.dev Python Lessons
```

and you will get the same result in all three uses, why are there three different ways of use?

Let me explain it to you with a few examples;

You want to get an output like this;

> Baransel's class ended early today.

If you write the example like this;

```python
print('Baransel's class ended early today.')
```

Output:

```
  File "/Users/baran/Downloads/test.py", line 1
    print('Baransel's class ended early today.')
                    ^
SyntaxError: invalid syntax
```

In other words, the reason for the syntax error is that Python starts with the first quotation mark and ends when it sees the second quotation. Since it cannot read the text after the second quotation, it gives a syntax error. For this, a usage like this would be more accurate.

```python
print("Baransel's class ended early today.")
```

```python
print("""Baransel's class ended early today.""")
```

## Parameters of the `print()` Function:
Continue this post on my blog! [Python print function](https://baransel.dev/post/python-print-function/).
How I fell in love with my Amazon Kindle 2020
Tags: personal, fun, amazon, kindle
Published: 2022-02-09 09:22:42

---
title: How I fell in love with my Amazon Kindle 2020
published: true
date: 2022-02-08 09:56:55 UTC
tags: personal, fun, amazon, kindle
canonical_url: https://mszeles.com/how-i-fell-in-love-with-my-amazon-kindle-2020
---
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npzfswgvkossdch1w4tj.jpg)
1. I have ordered it on Friday
2. I have received it yesterday
3. I have unpacked it
4. I have started to use it
5. I fell in love with it immediately

That's the story. I won't waste your time.

Have a nice day. 😊

[Buy me a coffee!](https://buymeacoffee.com/mikiszeles) ❤
Next Permutation Leetcode – Python Solution
Tags: leetcode, leetcodemedium, leetcodepython, leetcodenextpermutation
Published: 2022-02-08 09:55:16

LeetCode has a Medium coding Problem in Its’ Algorithm Section “Next Permutation Leetcode”. Today We are going to solve this problem.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6f5q0zdas1j74c23ybu.jpg)
Question
A permutation of an array of integers is an arrangement of its members into a sequence or linear order.

For example, for arr = [1,2,3], the following are considered permutations of arr: [1,2,3], [1,3,2], [3,1,2], [2,3,1].
The next permutation of an array of integers is the next lexicographically greater permutation of its integer. If not feasible, reorganize the array in the lowest order possible (i.e., sorted in ascending order).

For example, the next permutation of arr = [1,2,3] is [1,3,2].
Similarly, the next permutation of arr = [2,3,1] is [3,1,2].
While the next permutation of arr = [3,2,1] is [1,2,3] because [3,2,1] does not have a lexicographical larger rearrangement.
Given an array of integers nums, find the next permutation of nums.

The replacement must be in place and use only constant extra memory.

Examples

Input: nums = [1,2,3]
Output: [1,3,2]
Input: nums = [3,2,1]
Output: [1,2,3]
Input: nums = [1,1,5]
Output: [1,5,1]
Constraints:

1 <= nums.length <= 100
0 <= nums[i] <= 100
Solution to Next Permutation Leetcode
Given the Skeleton Code given by Leetcode

class Solution(object):
    def nextPermutation(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        
Looking forward from the end of the original array, we can see that the number progressively grows higher, then lowers at 2, and then we seek for the first number greater than 2, which is 3, then we swap 2 and 3, and finally we transpose all the numbers after 3.

Complete Solution : https://hecodesit.com/next-permutation-leetcode-python-solution/
easy user UI login validation
Tags: javascript, beginners, webdev, tutorial
Published: 2022-02-08 09:53:28

I made modern user login validation powerd by volder npm package 

volder: [https://github.com/devSupporters/volder](https://github.com/devSupporters/volder)
project link to github: [https://github.com/alguerocode/js-volder](https://github.com/alguerocode/js-volder)

![login](https://user-images.githubusercontent.com/75932477/152019675-586596f1-1670-403a-815f-a00b69302740.gif)

**volder** is powerful Object schema validation, it lets you describe your data using a simple and readable schema and transform a value to match the requirements, it has custom error messages, custom types and nested schemas.
5 Articles every WebDev should read this week (#06)
Tags: webdev, tutorial, javascript, programming
Published: 2022-02-08 09:43:48

A curated list of the top five web development must-reads from last week. Don't miss out on the latest web development stories and insights. Read all about the cutting edge in web development, working in tech and the new tools and frameworks while learning a few new tricks.

---

## fetch() In Node.js Core: Why You Should Care

> Node.js v17.5 introduces support for fetch() – a popular cross-platform HTTP client API that works in browsers and Web/Service Workers – as an experimental core feature.

<https://fusebit.io/blog/node-fetch/>

---

## Babel.js 7.17.0 Released: RegExp 'v' mode and ... 🥁 decorators

> After years of iterations, rewrites and adjustments it looks like the decorators proposal has finally stabilized again on a new design! This release includes both parse and transform support for the new proposal. We also implemented the RegExp v flag proposal and added parsing support for destructuring private fields, both currently Stage 2. Lastly, a new experimental implementation of @babel/register.

<https://babeljs.io/blog/2022/02/02/7.17.0>

---

## 10 VSCode Extensions To Look Out For In 2022

> Let's take a look at the 10 promising VSCode extensions that are updated frequently and are getting more and more advanced each months. These tools are definitely worth keeping an eye on as a developer 👀🔥

<https://dev.to/alexomeyer/10-vscode-extensions-to-look-out-for-in-2022-4k42>

---

## What Web Frameworks Solve And How To Do Without Them (Part 1)

> In this article, Noam Rosenthal dives deep into a few technical features that are common across frameworks, and explains how some of the different frameworks implement them and what they cost.

<https://www.smashingmagazine.com/2022/01/web-frameworks-guide-part1/>

---

## State of frontend 2022

> Take part in the most popular frontend community survey. Let’s show the world together how our job really looks.

<https://tsh.io/state-of-frontend/>

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr).

Photo by [Alex Kulikov](https://unsplash.com/@burntime) on [Unsplash](https://unsplash.com)

---

[![Subscribe to the weekly modern frontend development newsletter](https://modernfrontend.dev/banner/banner_583-111.png)](https://modernfrontend.dev/)

---
Building a Selenium Framework
Published: 2022-02-08 09:22:39

#Create a Maven Project
### 1. Create new Maven Project
 -> Maven - new Project - maven-quickstart - GroupID + ArtifactID
### 2. Add all Dependencies in pom.xml
Add from Maven Repro: Selenium & TestNG
### 3. Create Base and utility functions
#### Create base Class in main/java & add Browser Invocation
- create a resources Package in main/java 
- create a file "data.properties" to store data in a central place 
store things like `browser = chrome` 
- envoce it in the base.file 
```java
Properties prop = Properties(); 
FileInputStream fis = new FileInputStream("//home//helloworld//Documents//Code//Ecplise//SampleProject//E2EProject//src//main//java//SampleProject//data.properties"); 
prop.load(fis);
String browsername = prop.getProperty("browser");
``` 
Find absolute path of data.properties in rightclick Properties
put it in the FileInputStream

```java
if (browserName == "chrome") 
{
			System.setProperty("webdriver.chrome.driver", "C://home//helloworld//chromedriver"); 
driver = new ChromeDriver(); 
} else if .... 
....
// instead of former implicitly Wait: 
new WebDriverWait(driver, Duration.ofSeconds(10));
return driver; 
``` 



### 4. Organizing Page objects
- Adding Tests
- Datadriving/ Prameterizing Tests
- Converting into TestNG Framework
- TestNG Listeners
- Screenshot on Test Failures
- Creating Excellent HTML reports for Test Results
- Jenkins Continuous Integration
Enable Bluetooth Headset with microphone support on Archlinux
Tags: linux, archlinux
Published: 2022-02-08 09:14:05

In most of arch based distro Bluetooth not enable by default, because of several security risks.

To get Bluetooth working open your terminal and put these commands.

```
sudo pacman -S --needed bluez bluez-utils pulseaudio-bluetooth
```

You may also need GUI tools to configure and manage Bluetooth. I am using `yay` to install `blueman`

```
yay blueman
```
![installing blueman from yay](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5do24p5job3yf9nf9qfe.png)

Start bluetooth for single session use
```
sudo systemctl start bluetooth
```
or Enables to start Bluetooth when booting the machine (permanent)
```
sudo systemctl enable bluetooth
```

Now open blueman and connect your bluetooth headset
![blueman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gp3y4zth1aluumbrty96.png)

After successful connection right click on connected device and check `Audio and input profiles`

![blueman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ztgad1zucaw9jywn2x73.png)

Then hover over `audio profiles` and choose `HSP/HFP, Codec mSBC`
![blueman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fgcad8ck1lamp4egjxbd.png)
 
If everything done correctly you'll find your bluetooth microphone showing and taking input in pulseaudio.

![Pulseaudio input devices](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pmr1orr2gddta7j119k0.png)
 
[Source](https://discovery.endeavouros.com/bluetooth/bluetooth/2021/03/)
Blog Project Part 1: Setting Workspace
Published: 2022-02-08 07:06:01

Hello fellow developers! I started my first Node.js project. This project is actually homework from Patika.dev platform and started files are provided by them. I code the Node.js part only.
In this blog, I will only create a workspace for the project. I already downloaded Node.js on my PC by the way.

## Starting ...

Create package.json file (type `npm init` and hit enter). The only change I made is that main file is not index.js, but app.js. 

![terminal.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1644301853196/5oyR3S-zG.png)

## Download Express and Nodemon 
Nodemon will restart the server automatically when something is changed, so we do not restart manually with Nodemon. Since it is a development dependency put `-D` while installing.

Type `npm install -D nodemon` and hit enter. 

After that type `npm install express`
Your package.json should be like this:


![nodemon and express.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1644302496502/qjjph-JeI.png)

To use Nodemon, go to package.json and add `"start": "nodemon app.js(if your main file is index.js, do it for index.js)"` under the `"script"`. After that type `npm start` on your terminal, then hit enter. Like this:

![to use nodemon.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1644303006993/Sh7UWV2N6.png)

### You should see this on your terminal after you type `npm start` and hit enter

![terminal0.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1644303056646/XWeyBKgdT.png)

Time to check if everything is alright. Go to your app.js file (if you do not have one, then make one). Afterward, write this code: 
```
const express = require("express");   // imported express framework
const app = express(); // using express function on app constant

// this is just dummy data to check if everything is working
const blog = { id: 1, title: "Blog title", description: "Blog description" };

// getting response send to send blog constant when "/" (root folder) is the url
app.get("/", (req, res) => {
  res.send(blog); 
});

// listening to port at 3000
const PORT = 3000;
app.listen(PORT, () => {
  console.log(`Server started at port ${PORT}`);
});
``` 
The `app.get()` takes two parameters. The first one is the route, this  "/" the root URL. The second one is a callback function that takes req (request) and res (response) as parameters. With the `res.send()` method, we send our code (in this case blog constant) to the server. 

The `app.listen()` method listens the server. It takes two parameters, the first one is the port. The second one is a callback function(optional).

If everything works fine, we should see this on our localhost:3000:

![Final.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1644303806546/4XuwqTtqL.png)


That is all for now. Take care and keep coding.
How to Group and Filter Items in the Angular Dropdown List
Tags: angular, webdev
Published: 2022-02-08 09:06:41

In this video, you will learn how to group the [Angular Dropdown List](https://www.syncfusion.com/angular-ui-components/angular-dropdown-list) items as well as how to filter them. You will also see different filter types in the Dropdown List, how to apply them, and how to include diacritic characters in filtering. 

Product Overview: https://www.syncfusion.com/angular-ui-components/angular-dropdown-list

Download example from GitHub: https://github.com/SyncfusionExamples... 

Demo: https://ej2.syncfusion.com/angular/demos/#/bootstrap5/drop-down-list/grouping-icon

{% youtube tn6EC6WBHwM %}
Confusing!!!
Tags: webdev, beginners, programming
Published: 2022-02-08 09:05:33

Hello guys...
This is my first article that i want to share to y'all.

I am a begginer on programming, i have a litle knowledge about web development, specially in HTML, CSS, JS and a PHP basic, i wondering what should i do for the future about my carrer, fyi i am a fresh graduate associate information system, when i was on my college i've learning something about programming but i dont have any experience to get working on development.

Many jobs that i've ever seen always needed for experience and stuff, but when i want to apply my CV, i've got nerveous, afraid and i dont know what i want to do.

And now, i want to know guys, how you could be a developer without any experience and get a job ? And how to making experience for related developer ?
Breaking News - Join the Selenide community on LinkedIn
Tags: selenide, selenium, testautomation, community
Published: 2022-02-08 09:00:09

---
title: Breaking News - Join the Selenide community on LinkedIn
published: true
date: 2022-02-08 08:57:26 UTC
tags: selenide, selenium, testautomation, community
canonical_url: https://mszeles.com/breaking-news-join-the-selenide-community-on-linkedin
---

Together with [Andrei Solnstev](https://www.linkedin.com/in/asolntsev/), we have created the [Selenide User Group](https://www.linkedin.com/groups/9154550/) on LinkedIn **to connect the Selenide community.**

In case you are an **E2E/UI automation engineer using Java/Selenium** , or you are just **looking for a framework to start your automation** , **I highly recommend checking the Selenide use group.**

So what is Selenide?

**Selenide is a cool end to end testing framework built on Selenium WebDriver**. As it is built on Selenium WebDriver, **it has the same feature set, and much more. It has a fluent API, it has advanced selectors, easier syntax, a built-in profiler and more.**

See you there. 😊

**Please share this post, so we can connect the Selenide 

[Buy me a coffee!](https://buymeacoffee.com/mikiszeles) ❤community.** 👍
i studied full html in 2 days
Tags: webdev, beginners, css, html
Published: 2022-02-08 08:31:19

first i thought i cant study things this much harder things and i just giveup for some reason and today i am studying css and the things is everything is possible you have to work for that everyone can study web development like me i get a udemy course bootcamp for free and i will share with you guys when someone needs it ask me its a great course for full stack development for course dm me in telegram we shall study together @shahil_kv in telegram feel free to ask good bye guys we will meet when i studied css bye for tips to me just comment
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-02-08 08:00:18

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258d992c4e.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ How do programming pirates pass method parameters?

___A:___ Varrrrarrrgs.
 -->
Luck
Tags: discuss, work, improvement, growth
Published: 2022-02-08 07:54:48

---
title: Luck
published: true
description: The harder you work, the more luck you'll have
tags: discuss, work, improvement, growth
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/80f1twenr1kege3llwcv.jpeg
---

_Originally published on [my blog](https://www.nikola-breznjak.com/blog/daily-thoughts/luck/)._

Anomalies aside (crypto millionaires, anyone? 🙂); if you don't work over the weekends (yes, plural) at some point in your career, you'll end up working for someone that did.

There's a great quote by Thomas Jefferson that fits here: "I find that the harder I work, the more luck I seem to have."

---

This is [why I write](https://www.nikola-breznjak.com/blog/daily-thoughts/why-do-i-write-these-daily-thoughts-posts/) these 'daily thoughts' posts.
Scrum usage Feedback
Tags: agile, productivity, devjournal, programming
Published: 2022-02-08 07:43:09

Hello,

For continuing my blog post series I propose to share with you my feedback on the scrum methodology.
I work with this methodology for few years now and i really appreciate this method. In this post I will share my feedback and some improvement that I use in my daily work.

I hope that you will appreciate this feedback.  

The article is available here [feedback scrum](https://fredlagage.fr/feedback-scrum/)
Zotrim Review : Scam Or Legit Is It Really Work
Tags: health
Published: 2022-02-08 07:37:05

The idea of becoming a Wal-Mart stocker because of my tight spot does not appeal to that many professional people. No one tracks the exact number of [Zotrim](https://ipsnews.net/business/2022/01/24/zotrim-australia-herbal-weight-loss-aid-fake-or-really-work-january-2022-report/ ) today. Indeed, simple pleasures are better. What can you do? Now we come to the matter of this. Watch what happens afterward. It's how to develop practical working relationships with Weight Loss Supplements experts. This cannot be argued, but This reeks of stupidity. This lets them know you are planning to obtain it. By all means, I assure you that I haven't done this however, we'll take on Zotrim last. This is one of the most popular collectible an evaluation types. I sincerely hope you get a lot out of that. I need to get more strangers. 

[https://ipsnews.net/business/2022/01/24/zotrim-australia-herbal-weight-loss-aid-fake-or-really-work-january-2022-report/ ](https://ipsnews.net/business/2022/01/24/zotrim-australia-herbal-weight-loss-aid-fake-or-really-work-january-2022-report/)