teleren/devto huggingface dataset:
What is Content Velocity?
Published: 2021-09-16 06:56:50

Content velocity is a helpful metric that can help you gain deep insights into your content strategy. If you want to learn more about how it works and what benefits come with measuring this, then you are in the right place.

The value of creating the highest quality content for your users and search engines is indisputable. However, it’s also important to know where you stand against competitors in terms of their online presence.

It’s become more important than ever to know how much content your competitors are producing and how often this is being published.

What is Content Velocity?

Simply put, the amount of content a brand creates in a given period is called its “content velocity.”

If you would like to compare your content velocity versus your competitors, you would compare the number of new content pieces over a set time period.

Is Content Velocity important?

There are many use cases for measuring and reporting on content velocity. For example, you might want to figure out how long it takes your team or company to publish new blog posts so that if the time begins increasing significantly over a couple of weeks, there is an opportunity for process improvement instead of just assuming everything else in life has sped up around us!

Read more at: https://joshwillett.com/blog/
Vulnerability List in React Packages encountered while Building up React Application
Tags: react, vulnerabilities, reactdevutils
Published: 2021-09-16 06:51:44

Below vulnerabilities found in React application even i am using react-dev-utils v 11.0.4 could you suggest if those vulnerabilities resolved by react org?:

STATUS                 |  PUBLISHED  | DISCOVERED | GRACE DAYS 
immer     | CVE-2021-23436  | 8.0.1   | fixed in 9.0.6
set-value | CVE-2021-23440 | high     | fixed in 4.0.1        
serialize-javascript | CVE-2020-7660  | high   | fixed in 3.1.0       
glob-parent | CVE-2020-28469 | high       | fixed in 5.1.2              
object-path | CVE-2020-15256 | high    | fixed in 0.11.5              
python  | CVE-2021-28359 | medium   | fixed in 3.6.13                      
postcss   | CVE-2021-23382 | medium   | fixed in 8.2.13   
react-dev-utils | CVE-2021-24033 | moderate | fixed in 11.0.4   
object-path | CVE-2021-23434 | moderate | fixed in 0.11.
browserslist | CVE-2021-23364 | 4.14.2  | fixed in 4.16.5  
node-notifier | CVE-2020-7789  | moderate | fixed in 8.0.1 
sockjs        | CVE-2020-7693  | moderate | fixed in 0.3.20                   
yargs-parser | CVE-2020-7608  | moderate | fixed in 5.0.1, 13.1.2, 18.1.2, 15.0.1
AWS Route 53
Tags: aws, devops, serverless, security
Published: 2021-09-16 06:48:15

Route53 is a managed DNS (Domain Name System).It is a collections of rules and records which helps a client understand ,how to reach a server through its domain name eg 


```
www.exaple.com --------->Route53---------->1.23.474.90

```

In AWS there are 4 records you should no

1.A:hostname to IPV4 address
2.AAAA:hostname to IPV6 address
3.CNAME:hostname to hostname
4.Alias:hostname to AWS resource 

Take for instance a web browser  want to access our application hosted on a server with an IPV4 address of 32.99.85.89 .Behind the seen our web browser would make a request to our DNS which is Route53 asking it to give you the location where www.example.com is store. Route53 goes to it records and check where the A records is pointing to, which we set to be an IPV4 address .This then gives our web browser access to the content stored in this server. Why this is possible is because we have mapped a host name to an IP.


Route53 can use 
1.Public domain names you own(or buy)
2.private domains names that can be resolves by your instances in your VPCs(Virtual private cloud)

Routes53 has a lot of advances features like 
1.Load balancing 
2.Health checks
3.Routing policy: simple ,failover ,geolocation,
latency ,multi value

To get the IP address a domain name is hosted on you can used the following command on your mac or Linux terminal

1.

```nslookup examole.com```
2.
```dig example.com```

it depends on t

finally Route53 is not free you pay $0.50 per month for hosted zone
If you run a Github organisation you must do this now!
Tags: opensource, portfolio, github, productivity
Published: 2021-09-16 06:48:09

Looking to have your Github organisation standout? Wanting it to match all the beautiful and intricate design work that your organisation has developed? Don't want to add contributing guidelines and code of conduct to every project? Don't worry this blog got you covered! 

In this blog, I will walk you through how to update your GitHub organisation, add more personalisation, and help your organisation stand out from the crowd. Incase you don't know markdown refer [this](https://www.markdownguide.org/cheat-sheet/)


## Creating the special repository 😎
In order to customize your Github organisation first let's initialise repo in which we will work! 

![Github organisation readme repository name](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7jutx0luot24fhs0l669.png)

Create a new repository with the name **.github** and make sure to keep the repo public and initialise with a readme.  

![Github organisation readme public init](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3b807j2hg91m2902fxdy.png)
 
## Creating the profile 🔥
Create a directory with the name profile and initialise with a markdown file named README.md or click on the green button in the repo which says **Add profile README**

![Github organisation readme profile init](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/stqtb3od44i8w4h4dyho.png)
 
Once the file has been created, you will see that GitHub knows you have accessed this special repo and presents you with the option to edit the file. Go ahead and click on this. You will get directed over to the file editor that is built into GitHub. Incase you have never created a readme make sure to visit [this](https://www.makeareadme.com/)
 

![Github organisation profile readme init](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ct0puz3ro1rny3dti40.png)
 
## Let's add COC and CG 🚀
In general all the projects in a particular organisation follows the same code of conduct, contributing guidelines and security rules and it becomes difficult to add it in every project. Now you can add it in the **.github** repo and make sure every contributor reads before sending a pull request! Incase you are confused on how it should look finally refer to [this](https://github.com/github/.github)

![Screenshot 2021-09-16 at 11.57.13 AM](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdl7rbssytjk47qdbzb6.png)
 

## Conclusion 💕
Making sure that your org stand out from the rest is crucial. Take advantage of the ability to personalise your organisation to showcase your community guidelines.

Have you already added the readme? I’d love to take a look at it! Feel free to share it with [me] (https://www.linkedin.com/in/aniket-pal/). Would also love to collaborate on [github](https://github.com/Aniket762)
My journey to ACM-ICPC Regionals ASIA! What did I learn?
Tags: icpc, cp, programming
Published: 2021-09-16 06:45:50

#ICPC:
The International Collegiate Programming Contest is a global competition designed to draw attention to a skill which has a profound effect on the modern world: programming. Teams of students representing their respective universities, compete by using teamwork and problem solving abilities to solve as many computer-related problems as possible within a given time limit. The most noteworthy teams from regional competitions come together every year for this contest to determine once and for all which school is the best at coding! It's really just another big programming competition. Except it's not, because ICPC is more than that. It's the World Cup of Algorithmic Programming Contests

#About Regionals
The ICPC regionals are organized by the local universities of different regions spread across the globe. The winners of these regional rounds of the contest get to represent the country in the ICPC World Finals. The Asia Regionals in India will be held at 4 sites viz. Amritapuri, Kolkata, Gwalior, and Kharagpu.
last year for the first time a team from our college(SISTEC) qualified for ICPC regionals. before that there was an online qualifying round in which only 700 teams are selected in INDIA and we were fortunate to make to the top 700 teams. then
#End of our Journey
Although we didn't manage to take the prize from the very topmost institutions, we beat plenty of other great IITs and NITs. Some of these are…IIT allahabaad, IIT guwahati, IIT jodhpur, IIT ranchi and many more,
We hope you enjoyed our article about the ICPC.
Thank you for reading, we are always excited when one of our posts is able to provide useful information on a topic like this!
Multiple ways to send Payload - Part 6
Published: 2021-09-16 06:38:56

In this blog, we are going to discuss more about POST request testing and automation using RestAssured. Request Body parameter is also called payload. In our previous blog we saw how to send payload as strings. 

There are three ways to send json payload.

1. Using Json File 
2. Using Org.JSON 
3. Using POJO

In this tutorial we will learn about passing json data as a file.

##Pass JSON file as payload
Create a .json file in “src/test/resources” folder and write payload in that.

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

Mention this file location using the File class in Java. Your file object will look like this:

####File jsonData = new File(“src\test\resources\jsondemo.json”)

####Below is the post request:
 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sa1ltjj3g3csg4iqdggk.png)

####Below is the output after code execution:

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

###Creating Payload as JSON Object: 

JSON, as you know, is nothing more than a data representation using Object and Array. As a result, we can also construct payloads using the JSONObject and JSONArray classes. To use this feature, however, you must include the org.json library in your project. To obtain the org.json library, include this dependency in your project.

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

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46e7i2s18rcdl3lglors.png)

So here's the code and explanation for converting above JSON to JSONObject.

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

Now we need to pass the json object in the body as shown below:

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/whvyd5jhu42hn17zisf9.png)
The advantages of various types of strings in Rust
Tags: rust, string
Published: 2021-09-16 06:08:41

---
title: The advantages of various types of strings in Rust
published: true
description: 
tags: rust,string
//cover_image: https://direct_url_to_image.jpg
---

New Rustacians usually ask why Rust has many types of strings. I don't know the original intention. Anyways, it has some advantages as follow:

1. It minimizes the language core. Rust core has only str. String, OsString, CString are in the standard library, which is not a part of the language core.

2. Programmer can control performance. For example, &str refers to a byte slice so it should be fast, while String is a wrapper of Vec. String should have more performance penalty from heap memory allocation.

3. OsString and CString improve interoperability with other programming languages and operating systems. Rust can manipulate C-style strings directly without converting them to native Rust strings. OsString is also similar.

String conversation has a performance penalty. Also sometimes string conversation is not obvious. Some systems don't even use Unicode or other standards.

The alternative of having too many types is treating everything as a byte slice. However, type checking doesn't work well with too few types.
HTML tags | em-i
Tags: html, tags, em, i
Published: 2021-09-16 06:07:07

`<em>` is used to **define emphasized text**, and is typically rendered visually italicized by the browser and pronounced with emphasis by a screen reader, while `<i>` is used to **define text that differs from normal prose of the text for any reason** and it has to be read or said in a different tone or mood.

**Emphasized text** is that word or group of words that has an emphasis on the surrounding text and affects the meaning of the entire sentence. Thus, it is not the same to say "Get out of bed now" as "Get out of bed _now_."

**Valid uses of** `<i>` could be a text in another language, a technical or scientific term, a taxonomic designation, a thought, the name of a ship... or when the text refers to the definition of a word and not its meaning semantic (Ex: The word _he_ is an article).

**Neither is to be used exclusively for styling**. In case you want to use italics it is better to use the CSS `font-weight` property.

`<i>` **should be a last resort and only used when there is no other more appropriate tag available**, such as `<em>`, `<strong>`, `<mark>`, `<cite>` or `<dfn>`.

- Type: *inline* / *inline*
- Self-closing: *No* / *No*
- Semantic value: *No* / *No*

[Definition and example `<em>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em) - [Definition and example `<i>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i) | [Support `<em>`](https://caniuse.com/mdn-html_elements_em) - [Support `<i>`](https://caniuse.com/mdn-html_elements_i)
TOP 10 DISDORD SERVER FOR DEV AND PROGAMMER
Published: 2021-09-16 05:27:44

Hello Everyone I Would Like To Recommend TOP 10 Discord Server For All Programmer And Web Developer Programmer And App Developer .

NUMBER 10
DISCORD:IT SERVER GLOBAL
This is My Discord Server You Can Join My Server Thank You
LINK:https://discord.gg/K4PEPbQZGK

NUMBER 9 
DISCORD:The Programmer Hangout
LINK:https://discord.gg/programming

NUMBER 8
DISCORD:/r/FlutterDEV
LINK:https://discord.gg/Ygt4wgSFrA

NUMBER 7
DISCORD:DEVCORD
LINK:https://discord.gg/devcord

NUMBER6
DISCORD:LOCALHOST
LINK:https://discord.gg/developers

NUMBER5
DISCORD:PYTHON
LINK:https://discord.gg/python

NUMBER4
DISCORD:TYPESCRIPT
lINK:https://discord.gg/typescript

NUMBER 3
DISCORD:RUST
LINK:https://discord.gg/rust-lang

NUMBER 2
DISCORD:NESTJS
LINK:https://discord.gg/nestjs

NUMBER 1
DISCORD:PROGRAMMER DEV
LINK:https://discord.gg/rwbpbmH8tV
Published My First Gatsby Theme
Tags: gatsby, opensource, portfolio
Published: 2021-09-16 05:03:08

Recently I was planning to redesign my portfolio. I planned to make it minimal and focus on showcasing my open-source works and writings. As I was using gatsby and I open-sourced my site, I decided to build it as a gatsby theme.

I had zero knowledge about developing a gatsby theme before starting the project. I started researching and found a great tutorial by Jason Lengstorf on [egghead.io](https://egghead.io/courses/gatsby-theme-authoring). I followed the tutorial and [documentation](https://www.gatsbyjs.com/docs/how-to/plugins-and-themes/building-themes/), and managed to build a minimal theme in a couple of days. It was so easy that I felt almost like developing a gatsby site.

I started by designing the theme in Figma with the [Atomic Design Pattern](https://bradfrost.com/blog/post/atomic-web-design/). I made a design system with color, typography, shadow, and some components so that I don't have to remember the color name, font size while designing the pages. You can find the design on this [Figma link](https://www.figma.com/file/oHQ9wMCrJ8UqlHgLbGigCt/shahid.pro?node-id=0%3A1).

After completing the basic design, I started researching for a good name. My theme focuses on showcasing open-source projects. So, it would be great to have the word `open-source` in it. I remember developer [Ahmad Awais](https://github.com/ahmadawais) used to call him `OpenSourcerer`, and dev.to founder Ben Halpern also likes to call him [full-time open sourcerer](https://dev.to/ben/job-title-full-time-open-sourcerer-1eh1). I checked on GitHub and Gatsby Plugin Library if the name already exists. It was available. So, I named my theme [gatsby-theme-open-sourcerer](https://github.com/sh4hids/gatsby-theme-open-sourcerer).

Now let's have a look at the theme.

## Features

- minimal in design
- markdown support for writing post
- page contents in `YAML` format
- open-source project showcasing with GitHub star count
- fully customizable

## Installation

A site can be bootstrapped easily with the theme by using the starter kit. Just run the following command (you have to have `gatsby-cli` installed).

```bash
gatsby new my-site https://github.com/sh4hids/gatsby-starter-open-sourcerer
```

Now navigate to the project folder and run `gatsby develop` to see your project in development mode.

## Customization

You can customize each part of the theme either by customizing the configuration or by shadowing. You can find the detailed instructions on the [theme's readme](https://github.com/sh4hids/gatsby-theme-open-sourcerer#readme).

## Hard Lesson

> To shadow a theme, we have to skip the `src` folder in the shadow theme.
> <br>- [issues/14134](https://github.com/gatsbyjs/gatsby/issues/14134#issuecomment-510310389)

Hope you'll find the theme useful. If you use and like the theme, please give a star and make a PR to add your site on [showcase section](https://github.com/sh4hids/gatsby-theme-open-sourcerer#sites-built-with-this-theme).
Question on easing comprehension
Tags: nlp, readability, keywordextraction, keyphreaseextraction
Published: 2021-09-16 04:38:26

This is a test post.
Personally, reading is one of the hardest thing to do. Would like to find way to enjoy reading more.
- Readability Scoring (how easy it is to read an article)
  - Python https://github.com/shivam5992/textstat
  - JS https://github.com/retextjs/retext-readability
- Keyword Extraction (highlighting paragraph keywords)
  - https://github.com/boudinfl/pke
  - https://github.com/DerwenAI/pytextrank
LaTeX & Maths: more on Aligned Equations
Tags: codenewbie, latex
Published: 2021-09-16 04:10:43

Hello, how are you? :) 

Today I tell you how to put text next to the equations instead of numbers and also how to put text between the aligned equations. Let's start!!!

## Text and equations

Do you remember that in [this](https://dev.to/latexteada/latex-maths-aligned-equations-4l79) post I told you about the different ways we can use the `&` signs, well we can mix this and the `\text{}` command 

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

Produces

![Screenshot from 2021-09-15 22-51-23](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k2u9h72iyv5chlwdsmkc.png)
  

## Text Between Equations

`align` is a good environment to align the equations, but once you left the environment it aligns the new equation in a new position 

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

Produces

![Screenshot from 2021-09-15 23-01-56](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jusc0p2a5aypi3lw5svt.png)
 
It does not look good, right? How we can fix it? 

We can use the `intertext` instruction to put text inside the `align` equation and *keep* aligning the text on the same level

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

Produces 

![Screenshot from 2021-09-15 23-08-12](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77zrwycrdmogjtcq5aak.png)

This is all for today. 

Do not forget to follow me on Twitter `@latexteada`

Greetings :)
7 Facts about AWS Lambda
Tags: aws, amazon, lambda, programming
Published: 2021-09-16 03:35:47

1. By default there's a limit of 1000 concurrent lambda executions, this can be raised with a support ticket. There are companies that have this limit raised up to tens of thousands concurrent lambda executions.
2. There's a default limit of 75GB of code storage (so up to 10 React apps, lol) which can also be raised.
3. It's possible to run Lambda functions on a custom VPC, which is useful when you need to work with RDS, EC2, containers etc. When using a custom VPC you should create a custom subnet for lambda functions to prevent issues when the function will scale massively
4. You get charged for the lambda execution time in 100ms blocks (so if your function takes 10ms to execute, you'll pay for 100ms)
5. With aliases you can run different versions of Lambda function with a different probability (for instance run version A 90% of the time and version B 10% of the time)
6. You can push failed async lambda function invocations to dead letter queue (for instance - SQS)
7. Pricing:

* First 1 million requests per month are free, afterwards you pay $0.20 per additional 1 million requests
* 400,000 GB seconds free per month, afterwards you pay $0.0000166667 for every GB second
* Example: 128MB of Memory x 30M executed per month x 200ms run time per invocation = $5.83
* Cold starts affect less than 1% of production workloads (they are much more common in development environments, since there is way less traffic). A duration of a cold start varies from less than 100ms to more than 1s. It's not possible to 'target' warm environments.
* In order to reuse existing connections (and improve the performance of functions using http(s) request) use keep-alive property in order to reuse TCP connections on warm execution environments. 

More details: https://bit.ly/reuse-connection
It's possible to use custom runtimes for Lambda (apart from Node, .NET, Python etc.) so if you really want to use Haskell you can do that
Delete git tags local and remote.
Tags: git, github, gittag, cli
Published: 2021-09-16 02:30:20

## These may come in real handy when setting up code commit infrastructure.

---

I was setting up code commit conventions, change log and release infrastructure in React & Angular codebases. It used the following things.

- Code commit conventions for message formatting.
- Version bumping and change log with `standard-release`.
- Setting up and/or updating `README.md` and `CONTRIBUTING.md`.

While doing this, many tags were created for testing in the branch. I wanted to avoid having all those future tags in the repo.

Hence, I needed to do the following.

1. List all the tags meant for future releases.
2. Delete them in the local branch.
3. Delete them in the remote branch.

---

## LIST
### List all the tags

List all the tags, plus with matching pattern.

```bash
git tag --list

# Matching a pattern
git tag --list 'v*'
# The above matches tags starting with the letter "v"
```

---

## DELETE
Delete the tags in the local and remote branch.

### Local

```bash
git tag -d TAG1 TAG2 TAG3

# or

git tag --delete TAG1 TAG2 TAG3
```

### Remote

```bash
git push origin -d TAG1 TAG2 TAG3

# or

git push origin --delete TAG1 TAG2 TAG3
```

---

The above commands will come in handy in a lot of different situations.

Best!

Srini @ RoverHead