teleren/devto huggingface dataset:
What are the highest paid industries in the world?
Tags: programming, python, javascript, tutorial
Published: 2022-07-25 02:17:21


There are a number of industries that have high salaries and demand for experienced professionals. In this essay, we will discuss the five highest-paid industries in the world. We will also highlight some of the key factors that contribute to these industries’ high paychecks.

## [Find out the average salary of cyber security experts by city](https://professional-writer0.blogspot.com/2022/07/what-is-average-annual-salary-for.html)

There are many industries in the world which generate a lot of money. In this essay, we are going to focus on the five most high paying industries in the world. We are not going to focus on the low paying industries, as they are obviously not as lucrative. We are also not going to focus on the high paying but less popular industries. Instead, we are going to focus on the five most popular and high paying industries.

## The five high paying industries are:

Financial Services: This industry generate a lot of money thanks to the high demand for services such as loans, investments, and insurance.

Legal Services: This industry generates a lot of money thanks to the high demand for legal services. This is especially true in countries with a high population density. The legal system is complex and requires a lot of time and money to be properly followed.

Healthcare: This industry is one of the fastest growing industries in the world. The demand for healthcare services is increasing every day, not only because of the increasing population, but also because of the advancing technology.

Technology: This is one of the most high paying industries because of the high demand for technology services, especially in fields such as software development and internet marketing.

Manufacturing: This industry is steadily growing and is expected to remain popular in the future. Manufacturers are always in need of new and innovative products, which is why the demand for their services is constantly increasing.

There are also low paying, yet equally as lucrative industries out there that we don't know about. For example, the agricultural industry is a low paying industry, yet it generates a lot of money thanks to the high demand for food products. There are also many less popular and high paying industries which we haven't mentioned in this essay. We encourage you to do your own research and discover the many lucrative and low paying industries out there.

Lastly, are there any lower paying, yet equally as lucrative industries out there that we don't know about? This is a difficult question to answer. It depends on the particular industry and on how lucrative it is. However, we can assume that there are many lower paying, yet equally as lucrative industries out there.

The five high paying industries are:Financial ServicesLegal ServicesHealthcareTechnologyManufacturingThere are also low paying, yet equally as lucrative industries out there that we don't know about.
Average Monthly Salary in Singapore
Tags: salary
Published: 2022-07-25 01:55:00

I thought of doing something different. Since I am from Singapore, this is a report by JobStreet stating the Average Monthly Salary. Take this as a pinch of salt!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsfo67n5r1gqm02hqdnq.png)
Retrieving deleted passwords in Chrome
Tags: browser, productivity
Published: 2022-07-24 23:19:00

#Scenario

I accidentally cleared my browsing data including Passwords in Chrome whilst synced to my chrome account

By clicking on Clear Data here
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61yqwpbyqy8cy84onucs.png)
 
This is how you know if you're syncing to your google account
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qkpyecjpdpnvzkde67tj.png)
 
When this happens, it'll delete the passwords from the google cloud servers as well as all your devices.

#How to fix

First, this is a bad situation. The only way you can retrieve the passwords is if you have a second device that is also synced to google. This could be another laptop, a mobile etc. but whatever it is - immediately, turn off the wifi on it. 

This is because as soon as Chrome has a chance to go on the Internet, it'll sync and delete all the passwords on there too. For me, I had a second laptop and I drove a couple of blocks from my house to make sure it didn't accidentally pick up the wifi whilst I was unlocking it.

#Exporting your password

After you have deprived the device of network access, let's immediately export the passwords so whatever happens, we know we still have them.

You can do that by going to the password screen

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h18gumsj4bmuc5txmgnj.png)
 
And clicking on Export password under the ellipsis in Saved Passwords

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gemrmpd02r4te617vg68.png)
 
Note this will create a cleartext CSV file with all your passwords. This is just for backup purposes - I would delete this once everything is running again.

#Turn off the sync 

After I deprived the device of network access, I turned off the sync on it.

Go to Chrome Settings, You and Google and click Turn Off.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mb1fw1iylr84cs2opt91.png)
 
**Very important here is to make sure to leave the Clear bookmarks, history, passwords checkbox unchecked.**

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

#Turn the sync back on

Once you've logged out, turn your wifi back on.

You should notice that your browser profile no longer is logged in but it still has your passwords stored against it.

If you log back in and turn on sync, it should reinstate your password back to your Google account.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i5e5ceswwmyzvkx3f9v7.png)
 
If you check your other devices you should be able to see that the passwords have been reinstated on the cloud account.
Stripe No signatures found matching the expected signature for payload.
Tags: javascript, webdev
Published: 2022-07-25 01:03:27

I've been working on this error for more than a week:

No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?

For some reason, it was erroring because I was defining bodyParser before routes in my express server.

This has been virtually impossible to debug, and I even asked an outside developer for help. Hopefully this helps someone when debugging their Stripe implementation.
Bulk deleting Cloudflare DNS records
Tags: cloudflare, dns
Published: 2023-03-17 17:01:04

---
title: Bulk deleting Cloudflare DNS records
published: true
date: 2022-07-25 00:00:00 UTC
tags: 
- cloudflare
- dns
canonical_url: https://mikefallows.com/posts/bulk-deleting-cloudflare-dns-records/
---

I've recently been trying to consolidate some of the services that I use, a sort of technical spring clean if you will. In summer.

As well as transferring domains that I own to a single provider, I wanted to have a single point of management that would also work for domains that I don't own, but happen to manage on behalf of clients. I've long been wanting to tinker with Cloudflare as it offers a chunk of nice features like [DDoS](https://en.wikipedia.org/wiki/Denial-of-service_attack) protection, asset compression, HTTPS and email routing, all on a pretty generous free plan. So far I've found it easy to work with, and after migrating a dozen or so domains to it, I've had a pretty good opportunity to try it out.

When you set up a new 'site' in Cloudlflare, you give it a domain and it will try to detect all the A records and create those for you. It does also seem to detect a couple of other records, but in most cases I've had to manually add some records myself, usually to do with email and third-party verification ([DMARC](https://en.wikipedia.org/wiki/DMARC), [SPF](https://en.wikipedia.org/wiki/Sender_Policy_Framework), etc.). You can also import records from a text file, but for my needs adding a couple of extra records helped me review any obsolete records that existed anyway.

## The problem

The only real issue I ran into was that for a couple of domains, on importing them to Cloudflare, it detected and created dozens of A records for standard terms eg. `1`, `2`, `3` ... `a`, `app`, `apps` ... `www1`, `www2`, etc. Nearly 200 unused records in total on one domain. The Cloudflare UI doesn't currently offer any ways to remove DNS records in bulk, so the process of removing so many manually, and on several domains made me look for a solution.

## A fix

Fortunately one of the other benefits of Cloudflare is that it offers a Rest API which allows you to delete [DNS](https://en.wikipedia.org/wiki/Domain_Name_System) records programmatically. I was able to put together a script to delete the unused records on one of my domains pretty quickly. I already knew I was going to be repeating this task on other domains, and that there would be some different requirements for each, so of course, I ~~wasted some time~~ _did the sensible thing_ and [put together a little repo](https://github.com/mikenewbuild/cloudflare) that could be configured. I haven't done much PHP recently so it was also an excuse to flex that muscle. It's still my favourite scripting language for putting something together quickly.

I honestly couldn't figure out why this happened on some domains and not others, there wasn't anything I could identify as the root cause. Maybe you're here because you've encountered the same problem? If so hopefully [this script might help you out](https://github.com/mikenewbuild/cloudflare)!
What's the difference between OLAP and OLTP Systems?
Tags: database, data, oltp, olap
Published: 2022-07-24 22:58:00

**What's OLTP?**
Online transactional processing AKA OLTP is a processing system that exists within a database that handles Transactions ( Update, Delete, Insert ) in an efficient way, it's made for the day-to-day transactions of an organization like when a new user is registred or when a user book a hotel ticket.
**What's OLAP?**
Online Analytics processing AKA OLAP is a processing system that exists within a data warehouse or a data mart that handles complex read queries ( SELECT ), OLAP systems are made for analytical reasons. the principal beneficiaries of OLAP are Data scientists, Data analysts, and Business analysts, an example of an OLAP system is when a school wants to know how many students have graduated from the school in the last 5 years
**Characteristics of OLTP:**

- OLTP databases store just current and relevant data 
- it uses regular DBMS (Database management systems)
- OLTP databases store data in a row-based way
- used for business tasks
- OLTP databases store data in a normalized way
- the size of the data is small
- Response time is fast, it measured in milliseconds
- Data integrity is a must
- perform read and write queries

**Characteristics of OLAP:**

- it uses a data warehouse
- OLAP databases store historical data and data used for analytics
- used for data mining, analytics, decision making...
- OLAP databases store data in a column-based way 
- OLAP databases store data in a denormalized way
-  the size of the data is large
- Response time is slow, it is measured in seconds, minutes, or hours.
- data integrity isn't a must but it may affect analytics accuracy
- perform read queries


**Main Difference between OLAP & OLTP:**
from the list of characteristics above you may be able to know the difference between the two systems but to resume the article we will discuss the main difference in this section.
in a big project, taking Facebook as an example there is two main parts, the application part which describes the actions you can take like posting a new picture, sending a message to a friend, or modifying your profile information the Facebook application deals with a database that uses OLTP system to performs those operations which we talked about, talking about analytical part in the other hand Facebook in order to make decisions that affect their business they analyze data from OLAP databases.
Events in node.js
Tags: node, javascript, webdev, beginners
Published: 2022-07-24 22:26:00

**Content:**
**1.Introduction about events in node.js
2.Example of using events in node.js

1.Introduction about events in node.js**

_1.1.EventEmitter class and events inbuilt module provided by node.js_

Events inbuilt module in node.js contains an EventEmitter class, that can be extended by other classes to use many of its methods. EventEmitter class calls two methods to add and remove events.

_1.2.EventEmitter class methods_

EventEmitter class has a method called "on" that takes in the name of the event as the first argument and the event callback function as the second argument.

The event callback function:

function syntax: when "this" is an argument it refers to the EventEmitter instance

arrow syntax: when "this" is an argument it refers to an empty object

EventEmitter class has a method called "emit" that takes in the name of the event to fire or trigger as the first argument and the following parameters as arguments to the callback function.

2.
**The eventemitter class: examples**



```
const {EventEmitter} = require("events");

class EventEmitterClass extends EventEmitter {
    constructor() {
        super();
    }
}

module.exports = {EventEmitterClass};
```


Set of examples to use the eventemitter class:

```
const {EventEmitterClass} = require("./eventEmitter");

const myEmitter = new EventEmitterClass();
myEmitter.on('event', (a, b) => {
  console.log(a,b);
  setImmediate(() => {
    console.log('this happens asynchronously');
  });
});
myEmitter.emit('event', 'a', 'b');

let m = 0;
myEmitter.once('event', () => {
  console.log(++m);
});
myEmitter.emit('event');
// Prints: 1
myEmitter.emit('event');



myEmitter.emit('error', new Error('whoops!'));

EventEmitterClass.captureRejections = true;
const ee = new EventEmitterClass();
ee.on('something', async (value) => {
  throw new Error('kaboom');
});

ee.on('error', (err) => {
    console.error('whoops! there was an error');
  });

ee.emit('something');
```
Celebrities mashup: show us your photo editing skills!
Tags: challenge, watercooler
Published: 2022-07-24 22:16:43

Photo by <a href="https://unsplash.com/@ilypnytskyi?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Igor Lypnytskyi</a> on <a href="https://unsplash.com/s/photos/image-editing?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>

---

Hello, coders! :computer:

Code is everything but there's room for more!
When I first stumbled upon [coucoutesqui](https://coucoutesqui.tumblr.com/) I knew I had to give it a try!

Rule is simple:
>pick two celebrities where one's last name is the other's first name and combine the two to give birth to a new celebrity.

I'll get started: Stevie Wonder Woman.

![celebrity mashup: Stevie Wonder Woman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrzru7w7ghlrlt60g5s2.jpg)

Fire up your favorite image editor and post fun images in the comments!
FHIR Patient Viewer
Tags: frontend, javascript, visualization, programming
Published: 2022-07-24 21:22:21

![Alt Text](https://media.giphy.com/media/UXO1VWyK7ZeD72NwVg/giphy.gif)

Hi everyone!

Just wanted to share here a quick post about my project for the Grand Prix :)

FHIR Patient Viewer is a single-page, reactive rendering tool built on Vue.js that displays in a human-friendly way the data returned from a /Patient/{id}/$everything call made to an InterSystems FHIR server. In the readme, I've included 3 main things: 1. A video demo connecting FHIR Patient Viewer to a sandbox IRIS FHIR server (the fastest way to test it); 2. A second video showing how I would use FHIR Patient Viewer in a production environment (using a custom backend to handle the API calls, written in PHP/Laravel in my example, but transferable to other languages/frameworks); and 3. instructions to modify the components, create your own version of the tool, and build your own dist files.

Thanks, everyone! Amazing quality in the projects in the contest!

Dan
day 2,
Tags: programming, beginners, webdev, nextjs
Published: 2022-07-24 12:36:00

24.07.2022
so, like I said previously; I feel like I've finally found my way around Next.js, all thanks to YouTube Tutorials & the documentations these guys provide... I've heard many things bout next.js being a beginner-friendly framework you'd work with, but it surely is too early for me to say that, knowing the fact that how much do I still rely onto tutorials & google. still, it's my second day, so I don't expect to be a master at it in a single day, & decided to go easy on me, & start working onto something.
so, first thing I wanted to work onto was creating my own website, as my project. It felt easy at first, to do the 'create next-app' & 'run dev' stuff, but then came the index, _app, etc. but I continued with the tutorials anyhow. 
if I didn't mentioned this before, I'll mention it now. I DON't Know React. I'm just taking a big-jump off the React/JavaScript learning course. I don't know if that's the right thing or not, but it's too late now.
I spent my whole day figuring bout the tags & working of all the files in a next.js app. Shoutout to @thenetninja for his YT tutorials, & CSS codes he provided, which  saved my time & after 48 hours, i'm here...[the image]
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/av3389836bv0f95l6ryi.png)
Why GetX is not a choice for maintainable projects!!
Tags: flutter, mobile, programming, productivity
Published: 2022-07-24 21:18:00



Recently, there is a lot of mobile developers migrating to Flutter and some of them, always get in the wrong direction in terms of selecting a pattern for state management. When it comes to Clean architecture and good maintainability, get is not a choice.

Do not get me wrong, but, one of the main reasons people love getX is because is easy to use, but painful to remove in the future. One of the principles to use Clean architecture in your projects is to easily switch between packages and patterns. 

This is one of the main reasons some companies that chose getX as their main state manager, get frustrated with flutter, when they try to add things outside getX, they have difficulty or give up trying it. So, if one day you decide to come to flutter, do not try getX.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2y16fvxddru9k4c2con.png)
What is Lit component
Tags: webcomponents, lit
Published: 2022-07-24 20:57:00

Each LIT component is a standard web components.

Web components have been introduced from the World Wide Web Consortium (W3C) to have interoperable components:

In fact, they are natively supported by browsers
and used in any HTML environment, with any framework or without any framework.

The W3C Web Component model is based on the following specifications:
- Custom Elements: HTML tags that encapsulate HTML content, including CSS instructions and javascript scripts;
- Shadow DOM: JavaScript API to insert hidden DOM elements into a document tree;
- ES Modules: to insert and reuse JavaScript documents, exporting objects, functions or variables from a JavaScript file;
- HTML Templates: markup templates not mapped on the displayed page that can be used as templates for custom elements.

The Web Component standard is supported by the most common browsers.

To use a Web component you need:
1. create a JavaScript class, or function, and export it from an existing JavaScript file, using ES Modules;
2. declare the new Custom Element, using the CustomElementRegistry.define() method;
3. add a hidden Shadow DOM to insert child elements to the Custom Element (optional);
4. define an HTML template with <template> tags;
5. use the Custom Element thus generated within the Web page like any standard HTML element.

A Lit component is a self-contained unit of the user interface, assembled from smaller building blocks such as:

- standard HTML elements
- other Web components

A Lit component can be a building block used to create larger and more complex interfaces:

- within an HTML document;
- another web component;
- a component of the framework.

See [LIT_0 slide](https://github.com/eleonorarocchi/LITplayground/blob/main/LIT_0.pdf)
I made a tool to round corners of a polygon in a proper way
Tags: showdev, algorithms, tooling, javascript
Published: 2022-07-24 20:51:33

If you ever needed to round corners of a polygon — not a rectangle, in which case at least you have a CSS rule "border-radius," but an n-polygon like star or a triangle — you probably googled for such an algorithm, an npm package, or a git repo. In my case, I found a few (lib [svg-round-corners](https://github.com/BrunoFenzl/svg-round-corners), stackoverflow [discussion](https://stackoverflow.com/questions/19269622/applying-rounded-corners-to-paths-polygons), [algo1](https://riptutorial.com/html5-canvas/example/18766/render-a-rounded-polygon-), [algo2](https://gorillasun.de/blog/an-algorithm-for-polygons-with-rounded-corners)), but all of these algos did a half of the work, literally: they would stop rounding the corner when the arc gets to a half of its shortest side. It's a trick to prevent arcs overlapping, but it also provides the lack of a naturally expected result.

Let's take an arbitrary triangle. Every triangle has an incircle. You will always get this incircle as the result of rounding triangle corners, so I had the same expectations from an algorithm / tool / library.

In the example below, the red dots are the centers of the edges, in other words, halfs. The expected behaviour is in the middle; the right part shows the result of the "unnatural" solutions mentioned above. See how in the example on the right, rounding stops on the bottom corners even if there is still room to go.

![Two ways of rounding corners of a polygon: 1. natural, 2. formal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rqnohruq1wmov8hqqfo.gif)

Another example. See how polygon gets rounded nicely and naturally in the middle, and how awkwardly (in my opinion) it looks in the next picture.

![Two ways of rounding corners of a polygon: 1. natural, 2. formal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ikwsxdr3ndvm3koha1uo.gif)

Well, since I never found the solution that gives me a rounded polygon with a prescribed result... I implemented my own: [round-polygon](https://github.com/foretoo/round-polygon). Check it out and feel free to play with it! Also check out a crazy [Demo](https://foretoo.github.io/round-polygon) that I created with this tool. =)

P.S. I took a few steps further: added an option to pass certain radius to a certain point of the polygon, and provided utility to get segments of arcs of rounded corners.

What do you folks think?