teleren/devto huggingface dataset:
No plastic: what payment options can businesses offer today ?
Tags: cryptoprocessing, cryptocurrency, business, payment
Published: 2022-04-06 15:31:44


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3l71g9ifucan5oe5pliy.jpg)

Companies and entrepreneurs spend a lot of effort to make sure that customers learn about their products, go to the website and place an order. But businesses often lose customers at the very last stage due to the lack of a convenient payment option.

Recent events in the world are a reminder of how important it is to follow the news and events of the global economy. Some countries do not have popular payment systems; in others, a large portion of the population uses local companies for money transfers.

What can be done to help as many customers as possible make a purchase? You can work individually with each customer, hiring a staff of managers to be on site at all times — but this method is not proven to be effective. Some people prefer to use marketplaces — but artists, designers, other freelancers can’t be placed on them. There is also the practice of simple transfers to the seller, but in this case, the seller evades taxes, and it is impossible to recognize this method as reliable and correct.

One of the best options today is the introduction of cryptocurrencies as an international means of payment. And, in order not to deal with it yourself, you can connect the 0Xprocessing system.

How does the integration happen? The company owner or a trusted person registers a personal account and requests store activation and provides the necessary data (store ID or email address). This process takes time, but then he can integrate the API, test and run the processing. Fast, easy, convenient.

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

The company makes the following arguments in favor of connecting cryptocurrency as a way to pay for goods and services:
— Increased customer flow due to anonymity;
— Reducing commission expenses (in banks they reach 10–15% of transactions);
— Solving the problem of fraudulent chargebacks;
— Increase of speed of transactions.

Exactly in 0X you get additional bonuses: personal manager for accompaniment on all stages of connection and work, fast decision of problems and individual approach. Managers of the company will dive into the specifics of your business, give advice and help set up the process in the best way.

In addition, there are already a large number of cryptocurrencies: BTC, DAI, DOGE, ETH, HUSD, TUSD, USDC, USDT, BNB and others. But if you need to add a new one, the company takes into account the individual wishes of customers.

Contact 0Xprocessing and find out more details:
At [0xprocessing.com](https://0xprocessing.com/)
By mail [pr@0xprocessing.com](pr@0xprocessing.com)
Or on social media by on [Telegram](https://t.me/OXprocessing), [Twitter](https://twitter.com/0Xprocessing) and [LinkedIn](https://www.linkedin.com/company/79672779/admin/).
What's a Digital Nomad?
Tags: lifestyle, travel, remote
Published: 2022-04-06 14:57:33

[Digital nomads](https://nomadlist.com/) thrive on remote work. They are free to travel from location to location, using technology to perform their work responsibilities, living a nomadic lifestyle. Digital nomads may also have families who work and study on the road.

Some of the best remote jobs include:
1. Computer & IT
2. Accounting & Fnance
3. Marketing
4. Medical & Health
5. Project Management
6. Customer Service
7. HR & Recruiting

As a digital nomad, you have the flexibility to create your own work schedule. Through [traveling](https://digitalnomads.world/), you are able to see the world. A nine-to-five position typically offers only two weeks of vacation each year, but by being a digital nomad you are able to create your own travel time. You can also use your mobile devices to work from anywhere in the world. 

Some of the top cities in the US to be a digital nomad include:
1. Salt Lake City
2. Boston
3. Denver, Colorado
4. Concord, New Hampshire
5. Minneapolis
6. Miami
7. Portland, Maine
8. Montpelier, Vermont
9. Jackson, Wyoming
10. Seattle

Other cities around the world include:
1. Toronto, Canda
2. Madrid, Spain
3. Auckland, New Zealand
4. Madeira, Portugal
5. Helsinki, Finland
6. Svalbard, Norway
7. Berlin, Germany
8. Valparaiso, Chile
9. Dublin, Ireland
10. Sydney, Australia

The digital nomad community is a wonderful way to meet new people. These new friends become resources within the community, which will become handy especially if you are just starting out as a digital nomad.

Another benefit of the digital nomad lifestyle is the cost of living. You can potentially reduce your overall expenses by comparing the cost of living in different locations and moving to a country with a lower cost of living. Another advantage of being a digital nomad is [remote work](https://remote.com/best-destinations-remote-work) erases commuting from the equation.

If you are considering becoming a digital nomad, remember the following:
1. It's not a vacation
2. Take it slow
3. The important of being offline
4. Meet the locals
5. Internet security
6. Always remember essentials
7. Schedule in fun

Happy coding!
The Endless Cycle of Learning...does it ever end?
Tags: devjournal, todayilearned, discuss
Published: 2022-04-06 14:56:13

To be blunt, the answer is no. Sorry to break the news to you.

We've all heard our college professors tell us that learning doesn't end after graduation. And that's especially true for developers. Why? There is always something new around the corner - new methods of doing things, new updates, new developments, new trends, etc. that we need to keep up with. Choosing a career in tech is choosing a lifetime of learning. Life in itself is, after all, constantly teaching us how to be better and encouraging us to grow.

Without growth, we would never advance and there is nothing worst than staying stagnate in one place. Some wonderful articles I found about staying motivated and continuing to learn each and everyday are:

{% embed https://dev.to/unitybuddy/5-ways-to-stay-motivated-as-a-developer-592o %}

{% embed https://dev.to/colecaccamise/how-to-stay-motivated-while-learning-to-code-1oi5 %}

{% embed https://dev.to/heritio/how-do-you-stay-motivated-as-a-web-developer-1n6i %}

{% embed https://dev.to/ash_grover/little-trick-to-stay-motivated-and-beat-procrastination-4118 %}

Short story is: 
- Regularly review your goals and progress
- Continue to set new goals
- Encourage yourself and find mentors both online and in person
- Surround yourself with positive friends and form study groups if needed
- Remember to use study breaks to avoid burn out

Keep in mind that it's a marathon, not a race. Focus on progress and not perfection.

What was the most recent thing you learned?

Happy coding!
Parameterized Test With Mocha | Selenium WebDriver With JavaScript Tutorial | Part IX
Published: 2022-04-06 14:45:32

Learn how to parameterize Mocha Selenium Webdriver test in JavaScript and how it can be used to realize JavaScript testing.
[Start FREE Testing](https://accounts.lambdatest.com/register?utm_source=devto&utm_medium=organic&utm_campaign=apr06_sb&utm_term=sb&utm_content=tutorial_video)

This video is part IX of the Selenium WebDriver JavaScript Tutorial series. In this video, Ryan Howard (@ryantestsstuff) covers what is a parameterized test and how to use Mocha in  JavaScript to parameterize the test. This video will also cover the basics of Selenium WebDriver,  where he showcases how to leverage parameterization to perform web automation testing using JavaScript on multiple browser and platform (or OS) combinations. 

You will also have insights on how to perform cross browser testing using Mocha in JavaScript at scale on LambdaTest’s cloud Selenium Grid to enhance your testing experience.

Also  Learn  🎫 -:

🔸 What is Mocha testing?
🔸 Does Mocha use selenium?
🔸 How to use Mocha to parameterize the test?
🔸 Does Mocha run tests in parallel?
Lesser Known Features of DEV — Ignoring a Tag via Negative Follow Weights
Tags: meta, documentation, howtodevto
Published: 2022-04-06 14:41:32

**_EDIT: This post is no longer valid, as we've replaced the concept of follow weights with a simplified feature for muting unwanted tags called hidden tags. You can learn more about this feature in the following [changelog post](https://dev.to/devteam/changelog-take-control-of-your-feed-with-hidden-tags-5db5)._**

{% embed https://dev.to/devteam/changelog-take-control-of-your-feed-with-hidden-tags-5db5 %}

It's quite common for folks on DEV to ask how they can ignore or see less of a certain tag. Well, I'm happy to say that there is a solution available that can help you!

To ignore a tag you must:

1. Follow the tag! (Yes, I realize this is a bit unintuitive.)
2. Navigate to you [Dashboard](https://dev.to/dashboard) and click [Following Tags](https://dev.to/dashboard/following_tags).
3. Find the tag you want to see less of and adjust the follow weight of the tag so that it's in the negative.
4. Click the button "Update Weights".
5. Look for the tag and see the "Anti-follow" signifier that sits beside the tags name.

For example, here's a picture of what it looks like when I'm anti-following [#codeequality](https://dev.to/t/codequality):


![anti-following code equality by adjusting the follow weight to negative 100](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbivxnduwme4i4kjhq0q.png)

If you'd like to see me walk through these steps via video, then watch this embedded Loom:

{% embed https://www.loom.com/share/9fc62b02158c4391825f2ee15ac6aa82 %}

If you have any feedback or questions, don't hesitate to comment below!
Free react native templates
Tags: free, reactnative, developers, tutorial
Published: 2022-04-06 14:34:06

Get your REACT NATIVE source code in just one click.

Copy & Paste source code in your project and develop your idea in real time react native application for both Android and iOS.

Checkout: [](https://rn-snippet.netlify.app/)

Login Screen designs:

1.Source code: [Click Here](https://rn-snippet.netlify.app/post/detail/NnP96wSCaMiH1clGhKY0)

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

2.Source Code: [Click Here](https://rn-snippet.netlify.app/post/detail/uM0lWhCht6HDiHdVb1dC) 

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

3.Source code: [Click Here](https://rn-snippet.netlify.app/post/detail/OMZAh0pSeuLIlUtGENt7) 

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

4.Source code: [Click Here](https://rn-snippet.netlify.app/post/detail/wxEZSEmzUIrU93xl0gKf) 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kmagtpef92cc6yd8hnpa.png)
 
Copy & Paste the code and complete your login screen with single click.

Happy Coding,

Vijayakumar KTM
Harsh Reality of Education system!
Tags: education, news, discuss, career
Published: 2022-04-06 14:12:00


![Reality of exam](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nwydwbkwn288dkzuckp.jpeg)


I took this picture in my college and I was shocked to see this. I'm a student and I know there are tons of students here. We study for exams and write our assignments and this is how our assignments and exam papers get treated. I felt really bad after seeing this...
Paracetamol.js💊| #94: Explica este código JavaScript
Tags: javascript, beginners, spanish, webdev
Published: 2022-04-06 14:10:08

## **<center>Explica este código JavaScript</center>**

```js
const a = NaN;
const b = 5/"Hola";

console.log( a === b ); // 🤔?
console.log(Object.is(a, b)); //🤔?
```

A. `true`, `false`
B. `false`, `true`
C. `true`, `NaN`
D. `true`, `undefiend`


{% details ➡ Respuesta ⬅%} 

B. `false`, `true`

El operador de igualdad estricta es muy potente, pero ¿sabias que existe uno aún mejor?

`Object.is` recibe 2 parámetros y hace una comparación profunda entre ellos, pero va un poco más lejos.

Casos como: `0 === -0` y `NaN === NaN` son mejor manejados con `Object.is`.

Cuando comparamos un `NaN` vs otro `NaN` usando `===` obtenemos siempre `false` lo que no tiene mucho sentido, en estos casos es mejor usar `Object.is`.

{% enddetails %}
Adding two number without (+, -) LT:371
Tags: bitwisee, problemsolving, programming
Published: 2022-04-06 14:06:21

**Why does this black magic bitwise stuff work?**



Recall that bitwise xor is 1 when the bits differ, and 0 when the bits are the same. 
For example (where D is decimal and B is binary), 20D == 10100B, and 9D = 1001B:

 10100
  1001
 -----
 11101
and 11101B == 29D.

But, _**if you have a case with a carry**_, it doesn't work so well. For example, consider adding (bitwise xor) 20D and 20D.

10100
10100
-----
00000
Oops. 20 + 20 certainly doesn't equal 0. Enter the (a & b) << 1 term. This term represents the "carry" for each position. On the next iteration of the while loop, we add in the carry from the previous loop. So, if we go with the example we had before, we get:

# First iteration (a is 20, b is 20)
10100 ^ 10100 == 00000 # makes a 0
(10100 & 10100) << 1 == 101000 # makes b 40

# Second iteration:
000000 ^ 101000 == 101000 # Makes a 40
(000000 & 101000) << 1 == 0000000 # Makes b 0
Now b is 0, we are done, so return a.

 This algorithm works in general, not just for the specific cases I've outlined. Proof of correctness is left to the reader as an exercise ;)

## Python solution(most upvoted)

```
def getSum(self, a, b):
        """
        :type a: int
        :type b: int
        :rtype: int
        """
        MAX_INT = 0x7FFFFFFF
        MIN_INT = 0x80000000
        MASK = 0x100000000
        while b:
            a, b = (a ^ b) % MASK, ((a & b) << 1) % MASK
        return a if a <= MAX_INT else ~((a % MIN_INT) ^ MAX_INT)
```

What do the masks do?

All the masks are doing is ensuring that the value is an integer, because your code even has comments stating that a, b, and the return type are of type int. Thus, since the maximum possible int (32 bits) is 2147483647. So, if you add 2 to this value, like you did in your example, the int overflows and you get a negative value. You have to force this in Python, because it doesn't respect this int boundary that other strongly typed languages like Java and C++ have defined. Consider the following:

`def get_sum(a, b):
    while b:
        a, b = (a ^ b), (a & b) << 1
    return a
This is the version of getSum without the masks.`

_print get_sum(2147483647, 2)
outputs

2147483649
while

 print Solution().getSum(2147483647, 2)
outputs

-2147483647
due to the overflow.
_
The moral of the story is the implementation is correct if you define the int type to only represent 32 bits.
How to Identify Bottlenecks as Your Engineering Org. Grows
Tags: programming, productivity, devops, datascience
Published: 2022-04-06 14:04:31

As an engineering leader, your role is to **build a high-performing team that can scale**. But this can be challenging, especially as the team grows. Identifying your bottlenecks is key to building high-performing teams and it’s a good first step to creating a productive environment and building a culture of continuous improvement.

Unfortunately, bottlenecks are not always easy to spot. Your gut may be telling you where the problem is, but even if you're right, how can you get an action plan rolling without data? What if there are other hidden bottlenecks? What if you are wrong?

**The best way to identify bottlenecks is by having in-depth, end-to-end visibility of your software delivery pipeline.** I'm talking about actionable data and metrics. 

By separating the five phases of the delivery pipeline, [Athenian](https://athenian.com/blog/identifying-bottlenecks-as-your-engineering-organization-grows) highlights any issues that may be reducing the speed and quality of your team's output. And today, I'm going to show you how you can use these metrics to pinpoint the bottlenecks in your engineering process. 

**We asked 50 engineering leaders:** "at what stage of the software engineering pipeline do you find the most bottlenecks?" and more than 50% said "Review." So let's explore an example of how you can dig deeper using data and figure out what's causing issues in your Review Time.


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

[Continue reading...](https://athenian.com/blog/identifying-bottlenecks-as-your-engineering-organization-grows)
Integrate SendGrid Email tool in laravel
Tags: webdev, laravel, integration, sendgrid
Published: 2022-04-06 14:01:09


![Integrate sendgrid email tool in laravel ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxwxpv97a0qajn0nt3pv.png)
SendGrid sends email in two ways:- SMTP relay and Web API. SendGrid provides client libraries in many languages. SMTP has many features by default but is hard to set up. It also provides a tracking mail API. SendGrid manages all the technical details, from scaling the infrastructure to ISP outreach and reputation monitoring to services and real-time analytics.

# Step by step guide on integration of SendGrid:

- Create an Account on SendGrid
If you don't have an account on the SendGrid platform. you should create one Click Here

- Configure SendGrid credentials to an application
You can update the env file with SendGrid credentials. Look at the below code after revising the env file

```
MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=XXXXXXXXXXX
MAIL_PASSWORD=XXXXXXXXXXX

```
[Read More](https://www.devrohit.com/sendgrid-integrate-in-laravel/)
#day 17 of solving [48/450] questions
Published: 2022-04-06 13:56:37

Next few post will all be about solving bitwise question.

[Single-number](https://leetcode.com/problems/single-number)

```
return (x := 0, [x := x ^ v for v in nums])[-1][-1]
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4c9e53wgsctt5vzsh251.png)

[number-of-1-bit](https://leetcode.com/problems/number-of-1-bit)

Approach 1 : using in-built fn to count 1 bits

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

Approach 2: 

Think of a number in binary n = XXXXXX1000, n - 1 is XXXXXX0111. n & (n - 1) will be XXXXXX0000 which is just remove the last significant 1****
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbk418h9yvbwzykgopmi.png)

[counting-bits/](https://leetcode.com/problems/counting-bits/)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nc3pxwoztx6v42jrxjir.png)
**self made one liner**

[missing-number](https://leetcode.com/problems/missing-number)

Two Approach:
1) total_sum - n*(n+1)/2
2) xor of (1........n) ^(1...............n) == missing number

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c6ut45f2vn5oe17tui7v.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ikaqsvwjjv09i5nbp6m9.png)
Passing array of json to Postgresql Function / Procedure and access it
Tags: postgres, database, backend
Published: 2022-04-06 13:54:59

As a backend developer I prefer to develop database functions or procedures rather than using any ORMs(performance issues).

So sometimes I have requirements to insert more than one row at a time to table and getting array of object in API's request body.Generally people prefers to loop over array and makes repetitive Insert call to database. 

In this article, I will show the way to Insert multiple entries into database from json array and without making Database calls for every array objects. I am using Postgresql Database language to solve this scenario 

First of all we will create one Postgresql Procedure or Postgresql Function Which takes array of objects as argument and process it.

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

we are expecting argument of type json in this function.
In the declare section of the postgresql function we have assigned this argument to over function's declared variable and have declared two others variable. "json_object" to hold one json object and "user_name" to hold key of json object.

**JSON_ARRAY_ELEMENT** :- is a postgresql function to process json, this function expands the top-level of JSON array into a set of JSON values.

So in our case JSON_ARRAY_ELEMENT will return JSON objects and We are looping through this JSON array and storing this json object into "json_object" variable.

While iterating through array we are getting each JSON object in "json_object" variable. after that we are extracting over required or useful key from the json object and inserting it into our database table. 

**user_name := json_object ->> 'user_name';**
this code will extract "user_name" key from our json object.

To Test this function in your postgresql environment.
Create one table.
![Table Creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixxpi3vggy2kme3af2rx.png)

Then execute above function to your postgresql environment 
And call the procedure with below mentioned call.
![procedure execution](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/imc1if4h0iarmbr9mr1p.png)

Hope you find this informative and in case have any doubts or queries, Feel Free to reach on below mentioned Details:
EmailId: ssquare489@gmail.com
Yubikey Proof
Published: 2022-04-06 13:46:36

This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/BBD87E95C26CE6FBC23043A2E6CD3105E59C12D1) to [this dev.to account](https://dev.to/minecodes). For details check out https://docs.keyoxide.org/advanced/openpgp-proofs/

[Verifying my OpenPGP key: openpgp4fpr:BBD87E95C26CE6FBC23043A2E6CD3105E59C12D1]
What is servlet?
Tags: java, servlet, webdev, backend
Published: 2022-04-06 13:44:25

# What is Servlet?

Imagine we have a client machine and a server. Client requests the server for a page (let's say). Now this page could be static, or it could be dynamic (built at runtime). When client requests the server, it will be like I don't have any page, so you have to build that web page at runtime, than the  request goes to an helper application also know as **Web Container**, e.g. Tomcat, JBoss, Websphere, etc).

Web Container contains "Servlet", **a java file which can take the request from client on the internet, process it and respond with a response as a HTML page**. Servlet will convert the client request, fetch the values, process the information and return a HTML page.


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

Web Container also contains “Deployment Descriptor”, **a simple XML document that is used to map URL to the servlet**.

But how do you create a servlet?

**A servlet is a normal java class which extends HttpServlet**, since we want this servlet features ( request, process, response ) the response from servlet will be in HTML format (you can also send the response in JSON/XML format) now that HTML page will go from your server to client machine in the format of Response Object.
Nextjs Pokedex
Tags: nextjs, javascript, tailwindcss, showdev
Published: 2022-04-06 12:56:21

Hi everyone, I created this pokedex with Next.js + PokeAPI some time ago and would like to share it with you now.

[To the Github Repo](https://github.com/Louis3797/nextjs-pokedex)

## Screenshots

![Screenshot 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nf4r6rhbf3t4j0u543y0.png)

![Screenshot 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzsqwll8kgjcvm37ikr3.png)

[To the Github Repo](https://github.com/Louis3797/nextjs-pokedex)