teleren/devto huggingface dataset:
Is The Customer Always Right? Trading Strategies for Difficult Customers
Published: 2022-02-24 13:17:31

No matter what business you are in, you will likely encounter difficult customers at some point. These are the customers who are never happy, always demanding and seem to think that they can treat your staff and business however they please. While it can be frustrating to deal with these types of customers, it is important to remember that they are still your customers and should be treated with respect. Here are a few trading strategies for dealing with difficult customers:

Never lose your cool - It can be easy to get angry when dealing with a difficult customer, but this is only going to make things worse. Stay calm and professional at all times, no matter how unreasonable the customer may be being.

Listen more than you talk - One of the best ways to defuse a difficult situation is to simply listen to what the customer has to say. Do not interrupt and let them finish speaking before you respond.

Avoid confrontation - It is important to remember that you do not have to agree with everything a difficult customer says or does. However, it is best to avoid any kind of conflict or argument. This will only make things worse and could potentially damage your relationship with the customer.

Be patient - Sometimes it takes time for a difficult customer to calm down and see reason. Be patient and continue trying to work through the issue until they are ready to compromise.

If all else fails, politely end the conversation - There may come a time when you realize that there is no way to resolve the issue with a difficult customer. In this case, it is best to end the conversation politely and move on. Remember that you do not need to put up with abuse from any customer, no matter how valuable they may be.

As a [wiki page maker](https://lightwiki.net/) I suggest you to Follow these tips and you should be able to successfully navigate any situation involving a difficult customer.
Python Embedded Functions
Tags: python, tutorial, beginners, programming
Published: 2022-02-24 13:05:22

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

## What is an embedded function?

Embedded functions are functions that come ready with the Python installation, unlike the functions we have created. Since these functions were previously developed by Python developers, we do not need to define these functions. E.g; These functions that we have used before, such as `print()`, `len()`, `type()`, `input()`, are embedded functions. We can directly call and use these functions without defining them. In this lesson, we will cover some important embedded functions that will be useful to us.

### Some Embedded Functions

In this lesson, I will cover the most used embedded functions, if you wish, you can find other functions [here](https://docs.python.org/3.9/library/functions.html).

### `map()`

This function provides convenience in the operations you want to do with functions on variables, let me show you with an example before you get too confused, then you will understand very well. Before that, let's see the general outline of the `map()` function first.

`map(function,iter1,iter2)`

What we call an iterator can be a `list`, a `tuple`, or any other data type.

Let's have a list, and we square all the elements of this list.

```python
list = [1,2,3,4,5,6,7,8,9,10]
 
def getSquare(number):
    return number**2
 
map1 = map(getSquare,list)
```

As you can see, we have assigned the `map()` function to the variable named `map1` and let's print it out immediately.

```python
print(map1)

# <map object at 0x000002DFD0A76860>
```

As you can see, we got a `map()` object, so we can see it, so let's convert the variable to a list type or another data type. Let's convert it to list type.

```python
map1 = list(map1)
print(map1)

# [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
```

As you can see, we have squared all the elements of the list. We said that we can apply embedded functions much more easily with the `lambda()` function that we have processed in our previous lesson. Let's do the same example with the lambda function, then you will understand much better.

```python
list = [1,2,3,4,5,6,7,8,9,10]
 
map2 = map(lambda number:number**2,list)
 
print(list(map2))
```

As you can see, we can do it much more easily with the `lambda()` function.

If we make a concise explanation, the `map()` function takes multiple parameters, the first being a `function`, and applies the function to other parameters. So it's not limited to applying to just one data type. Let's show it with an example.

```python
list1 = [1,3,5,9,7,6]
list2 = [6,8,7,9,4,6]
list3 = [8,4,9,3,1,5]

map2 = map(lambda x,y,z:x*y*z,list1,list2,list3)

print(list(map2))
```

As you can see, we can apply the `map()` function on more than one data at the same time.

### `reduce()`
Continue this post on my blog! [Python Embedded Functions](https://baransel.dev/post/python-embedded-functions/).

[Sign up to my newsletter!](https://baransel.dev/newsletter/).
6 Tipps für WordPress-Anfänger
Tags: wordpress, websiteerstellen
Published: 2022-02-24 15:49:24

---
title: 6 Tipps für WordPress-Anfänger
published: true
date: 2022-02-24 13:01:49 UTC
tags: WordPress,websiteerstellen
canonical_url: https://bloggerpilot.com/6-tipps-anfanger/
---

![6 Tipps für WordPress-Anfänger](https://bloggerpilot.com/wp-content/uploads/2022/02/6-tipps-desktop.png)

6 Tipps, die ich als WordPress-Anfänger gerne gehört hätte und...

Der Original-Artikel erschien auf [6 Tipps für WordPress-Anfänger](https://bloggerpilot.com/6-tipps-anfanger/).
Hello, World!
Published: 2022-02-24 12:51:03

**We cover:**
- JavaScript
- console.log()

---

**Introduction**

Hello~ Hello~ Everyone! This is my first post!

**Code**

`console.log("Hello~ Hello~ Everyone! This is my first post!");`

**What**

I just logged into the console (In JavaScript), which is something I do quite often when I'm trying to debug or simply test my code! Now you are probably wondering what in the world is this random person on the internet writing about, and **why**?

**Why**

Well it's simple, I'm just doing what every programmer loves doing before they get started on anything new. Typing "Hello, World!" into their editor and **seeing their instant feedback**. (Does this work? Do I work?!) 

---

**Next...**

Anyway, in my next post I will properly introduce myself in detail. **IF** that is ok with you all...
Demo ElectronJS y API REST
Tags: javascript, electron, rest
Published: 2022-02-24 12:47:54

Crear aplicaciones de escritorio nativas, siempre fue una especialización: Windows/VB, Linux/Qt o Mac/Objective-C.

Con el crecimiento del Internet, las empresas migraron muchas de sus aplicaciones hacia la Web2. ¡Ni qué decir de la era del _smartphone_!

En ese contexto, varios proyectos trataron de aprovechar los conocimientos y tecnologías web; para construir programas de escritorio. Por ejemplo: JavaFX, Electron, Tauri, etc.

Electron tiene buena popularidad, tanto que VSCode está construido sobre él.

---

Presentamos el código para invocar un API REST, usando **Javascript**. 

{% gist https://gist.github.com/edgargs/2840a9bb1b766acd81f1a07b1b94cdc0 file=index-add.js%}

{% gist https://gist.github.com/edgargs/2840a9bb1b766acd81f1a07b1b94cdc0 file=index-refresh.js%}

Y para maquetar la grilla, se emplea **HTML** y **CSS**.

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyky8z80rf9zqfgr7xjr.png)
 
---
## Documentación
https://www.electronjs.org/
{% github edgargs/my-electron-app no-readme %}
Why use Ionic for Mobile App Development
Published: 2022-02-24 12:34:12

Building an app with ionic is easy and fun because it is a complete open-source SDK for hybrid mobile app development.

Ionic provides tools and services for developing hybrid mobile apps usi ng Web technologies like CSS, HTML5, and Sass. Apps can be built with these Web technologies and then distributed through native app stores to be installed on devices.

Ionic offers lots of UI components like forms, filters, action sheets, lists, cards, and navigation menus. These components help to develop richly interactive apps. It also includes mobile components, typography, interactive paradigms, and an extensible base theme that adds up to the desktop web development experience.

Beautiful, high-quality components make it easy to build attractive and functional user interfaces, while seamless integration with popular frameworks like Angular and React make Ionic a natural choice for teams already using those technologies.

So get started with Ionic development by **hiring dedicated Ionic developers**.

I hope the above explanation offers a clear guide to why you should choose Ionic for your mobile app development needs.
HTTP Methods in 2 minutes
Tags: javascript, tutorial, webdev, beginners
Published: 2022-02-24 12:21:44

A resource or web page can be specified from the URL. However, this URL specifies what we want to do on the web server with the HTTP methods. These are also called command verbs. Because these indicate the client server - what to do.

This Methods are..

1. **Get** - This method is used when we want to read a resource or web page from a web server.

2. **POS**T - 
We not only read resources from web servers all the time, we also create new resources a lot of the time. This method is used if you want to create a new resource. In this case the body is also connected with the start line and header of the HTTP message. Simply put, this method is used when sending data from client to server.

3. **PUT **- 
This method is used to modify any resource on the web server.

4. **DELETE** - 
This method is used to delete any information or resources on a web server.


In addition to the above four methods, there are several other methods (about 39 including 4), but they are not very common.
Thanks
I'm Amit Zacker Student @MMDU Mullana Pursuing b.tech mechanical engineering | 
Tags: python, gopalganj, amitzacker, jaiker
Published: 2022-02-24 12:17:10

I'm Amit Zacker Student @MMDU Mullana Pursuing b.tech mechanical engineering |  Providing VIP Social media Accounts... I'm also belong to Gopalganj Bihar-841428 ! My full name is AMIT KUMAR. 
Amit gopalganj
Amitzacker
MMDU Mullana college
Amit bihar
Amit mmdu
REDUX FUNDAMENTAL
Tags: react, javascript, redux
Published: 2022-02-24 12:13:59

**What is Redux?**
Redux is a state management library for JavaScript applications. If we want to share state data from one component to another, we need passes from parent component to child component in the form of props. Using Redux we don't need props drilling to share data from one component to another because Redux is considered as a central store. Context APIs solve similar problems as Redux in this age, but Redux is better option for large scale applications where we need handle many state.

![Redux Store](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyt2m8stzg3sqccjt67k.png)

_Image Source:_ [codecentric](https://blog.codecentric.de/)

**Three Core Principle of Redux**

**1. Store:** It provides a universal data storage. We can create Redux store using createStore(). We must pass reducer as its first parameter. It takes an optional second parameter as 'initialState' and an optional 'middleware' which allows us to pass multiple middlewares like 'thunk', 'redux-logger', etc.
**2. Actions:** Actions are kind of events and they are just objects. When an event is trigged inside the application, then an action created which give instructions to update the state.
**3. Reducers:** When the action is dispatched and sent to the store, then the store holds the application state and updates the state by using the reducer function.
**Finally,** Update states are sent to UI.

**Benefits of Redux**

- Predictable state changes
- Centralized state
- Easy debugging
- Preserve page state
- Implement Undo/Redo features
- Large & growing Ecosystem of add-ons

**Disadvantages of Redux**

- Complexity
- Need to write some boiler plate code to get things done

**When not to use Redux**

- Tight budget
- Small to medium size applications
- Simple UI/data flow
- Static data
Now what!?
Tags: discuss, world
Published: 2022-02-24 11:50:25

---
title: Now what!?
published: true
description: Now what!?
tags: discuss, world
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13xp0zvdmnuh9xzyhwhb.jpg
---

> Even when I wrote that we seemingly [haven't learned anything](https://dev.to/nikola/we-havent-learned-anything-4c29), and that the [war should never be the solution](https://dev.to/nikola/war-should-never-be-the-solution-5ec7), I still didn't believe that it would come to today's "news". I thought that we, as a species, have grown above such behaviors. I only wonder where this ends, and feel sorry for all the innocent humans (on both sides) :/

---

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

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.
The Importance of Web Application Development in Australia
Published: 2022-02-24 11:45:05

Client-side and server-side programming are used in this type of development so that the app can be accessed using a web browser. The web application development process begins with the conception of a web application that meets the needs of clients. Then it proceeds on to the app's design, selecting the appropriate framework to build the web app, testing it, and ultimately deploying it.
A web application development company in Australia provides clients with web-based software solutions. However, in addition to customization, a competent developer should assure compatibility, robustness, adaptability, easy access, language, and other factors.
SharePoint JSON format
Published: 2022-02-24 04:44:17

Hi guys,

Does anyone know how to make it show as an original paragraph? Please see the below attached.


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

The current status as below.

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

The column JSON format suppose can help but I do not know how to. Below is that column JSON format.

{"$schema":"https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json","elmType":"div","style":{"flex-wrap":"wrap","display":"flex-wrap: nowrap"},"children":[{"elmType":"div","style":{"box-sizing":"border-box","padding":"4px 8px 5px 8px","display":"flex","border-radius":"16px","height":"24px","align-items":"center","white-space":"nowrap","overflow":"hidden","margin":"4px 4px 4px 4px"},"attributes":{"class":{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I understand the following statement"]},"sp-css-backgroundColor-BgCornflowerBlue",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I do not understand the following statement"]},"sp-css-backgroundColor-BgMintGreen",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","Tap to indicate that you understand this statement"]},"sp-css-backgroundColor-BgGold","sp-field-borderAllRegular sp-field-borderAllSolid sp-css-borderColor-neutralSecondary"]}]}]}},"children":[{"elmType":"span","style":{"line-height":"16px","height":"14px"},"attributes":{"iconName":{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I understand the following statement"]},"",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I do not understand the following statement"]},"",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","Tap to indicate that you understand this statement"]},"",""]}]}]},"class":{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I understand the following statement"]},"",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I do not understand the following statement"]},"",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","Tap to indicate that you understand this statement"]},"",""]}]}]}}},{"elmType":"span","style":{"overflow":"hidden","text-overflow":"ellipsis","padding":"0 3px"},"txtContent":"[$Question_x0020_6]","attributes":{"class":{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I understand the following statement"]},"sp-field-fontSizeSmall sp-css-color-CornflowerBlueFont",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","I do not understand the following statement"]},"sp-field-fontSizeSmall sp-css-color-MintGreenFont",{"operator":":","operands":[{"operator":"==","operands":["[$Question_x0020_6]","Tap to indicate that you understand this statement"]},"sp-field-fontSizeSmall sp-css-color-GoldFont",""]}]}]}}}]}]}

Will be grateful for anyhelp you can provide.
Install Flutter on Ubuntu 21.10 with Snap and APT
Tags: flutter, ubuntu, mobile, beginners
Published: 2022-02-24 11:39:54

Follow these steps to install Flutter, Java (OpenJDK), Android Studio, Chromium, and Visual Studio Code on Ubuntu 21.10.

We use Snap and APT to make it easy to keep these packages up-to-date.

## Flutter

Install the official [Flutter](https://snapcraft.io/flutter) Snap package with classic permissions.

```sh
sudo snap install flutter --classic
```

## Java SDK (OpenJRE)

As of this writing, [OpenJDK](https://openjdk.java.net/) 11 is the default JDK on Ubuntu 21.10.

```sh
sudo apt install default-jdk
```

## Android Studio

Install [Android Studio](https://snapcraft.io/android-studio) via Snap with classic permissions.

```sh
sudo snap install android-studio --classic
```

## Chromium

Install the [Chromium browser](https://snapcraft.io/chromium) via Snap.

```sh
sudo snap install chromium
```

### CHROME_EXECUTABLE

Next, set the `CHROME_EXECUTABLE` to the Chromium installation path.

Assuming your default shell is `bash`, add the following to `.profile` or `.bash_profile` if it exists.

**Note**: you may need to log out and back in after running the following command.

```sh
echo "export CHROME_EXECUTABLE=/snap/bin/chromium" >> ~/.profile
```

## Visual Studio Code

Install the [Visual Studio Code](https://snapcraft.io/code) IDE via Snap.

```sh
sudo snap install code --classic
```

### Flutter extension

Open Visual Studio Code and install the [Flutter](https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter) extension.

## Flutter Doctor

Finally, verify that everything was installed correctly by running Flutter Doctor.

```sh
flutter doctor
```

## Conclusion

In this quick overview, we have installed a full Flutter development environment in Ubuntu 21.10.

I hope you enjoy seeing your ideas take flight with Flutter :-)
Golang and Kubernetes 
Tags: kubernetes, go, docker, cloud
Published: 2022-02-24 11:33:20

Hi,
I am new to kubernetes and trying to find out where the documentation is for the golang packages for Kubernetes. 
For example I have: 
clientset.CoreV1().Pods(body.Namespace)
or 
podList, err := api.List(context.Background(), metav1.ListOptions{})

Trying to find out where for example api.List method comes from and where to find other methods used to interact with kubernetes API via Go. 
I see to find the github link for it: https://github.com/kubernetes/client-go

but no documentation. 
any help is greatly appreciated.
Design system by a person don't well-know
Published: 2022-02-24 11:31:11

First of all, I’m not an UI/UX professional, I’m Software Developer. But, I started this article because I saw in my personal projects there's redundant things between components. However, it did become a sadly job to update a property of a component per example. Thus, I did think how I can to makes better them? Answer to the ask, it is **design system**.

## Design system

A **design system** is a complete set of principles, rules and best practices to manage design at scale using reusable components and patterns.

## Why use a design system?

For create a system, can you has a lot work, but a good and robust **design system,** can saved hours of work and provide benefits to scale and the team**:**

- Development work can be created and replicated quickly and at scale;
- Consistency;
- Focus at more complex problems;
- It creates a patterns, to across products, channels and teams.

## What do need to create design system?

I highlight two principal topics to makes a great design system:

- Style guide;
- Components;

### Style guide

**Style guide** provide guidelines for way the your brand creating interfaces, like as: colors, typography and tone of voice. Generally, created by UX/UI team with developers team. The **style guide** is a tool that helps the team for maintaining consistent product and modular format.


![style guide](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ppcdcxrxw9u8o65jog53.png)

### Components

**Components** are reusable UI elements of our design system. Generally, it's clear, quickly and  abstract enough to use at many projects and variety of use cases. Examples of **components**: button, text field and dropdown.

![components](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/85xe3xbak20ojwrdwlht.png)

Generally components has to least two properties:

**name**: a name to component, quickly and easier to understand;

**description**: a description to the component, can you set details about the component like as: how it works and where be can used per example.

## Conclusion

It's not only UI/UX professional should be do know about **design system** and little bit concepts about it, for create a **design system** requires a lot works but can saved time to reusable and scale design. However, it is need shared with developers team too, for makes an achieve a good and don’t out of curve design.
Eventually consistency and cache
Tags: programming, cache, api, whatsapp
Published: 2022-02-24 11:29:28

## What is it?

Eventually consistency is a fancy name of doing something and only expecting the changed state after a while. And there is a guarantee that you will eventually get the expected state. Hence, consistency.

But that won’t work well with **caching**. And I had to deal with that recently when working with WhatsApp API.

When querying for a list of message templates from WhatsApp, we’ll cache the response for use later. It’s because message templates are not something that changes so frequently. Just cache it to reduce unnecessary API calls.

After creating a template, we won’t see it for a while if we call the listing API. That’s because of, you guessed it, eventually consistency.

Things will get worse because these responded message templates will be cached for a few minutes. Therefore, we won’t see the newly created template soon, even though it may be available on the WhatsApp API earlier.

## How to deal with it?

First, let’s simply ignore the cache for, like 1 minute, after creating a new template. That would be enough for the WhatsApp API to return the newly created template.

The next improvement would be reducing the cache expiration time to, like 5s, in the first 1 minute. Let’s call that the catching-up duration. After that, use the original expiration time.

Another improvement would be verifying that the new template is available in the response and starting caching at that point. That would be a bit more complex, as we need to store the template id and more code to extract it from the response.

Finally, while that new template is not available, we can still construct it and manually inject it into our own response.

## Recap

In the end, that works well. We can have both cache and eventually consistency playing together, minimizing the waiting time and the number of requests to an external platform! 🎉

Thanks for reading! Would love to hear your thoughts by leaving a comment.

*Previously published at [olvrng.github.io](https://olvrng.github.io/w/2022.02.22.eventually.consistency/).*