teleren/devto huggingface dataset:
Release 0.27.0 of Spellcheck (GitHub) Action - a feature release with improved support for PySpelling default configuration
Tags: release, opensource, githubaction
Published: 2022-09-09 06:42:08

---
title: Release 0.27.0 of Spellcheck (GitHub) Action - a feature release with improved support for PySpelling default configuration
published: true
description: Feature release with improved support for PySpelling default configuration
tags: release, opensource, githubaction
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
Finally I got around to pushing [release 0.27.0](https://github.com/rojopolis/spellcheck-github-actions/releases/tag/0.27.0) of the [GitHub Spellcheck Action](https://github.com/marketplace/actions/github-spellcheck-action), it has been in my TODO pipeline for way too long. 

This release comes with improved support for PySpelling own configuration scheme. So in addition to the existing support for naming the configuration files, this action now supports the files names [used by PySpelling by default](https://facelessuser.github.io/pyspelling/#command-line-usage).

1. `.spellcheck.yml`
1. `.spellcheck.yaml`
1. `spellcheck.yml`
1. `spellcheck.yaml` (the old default)
1. `.pyspelling.yaml` (PySpelling default)
1. `.pyspelling.yml` (PySpelling default)

One could argue that this is a design flaw for this action, but now we are here and turning back will require a lot of effort.

If you want to see the original issue and related discussion it is available in the repository as [issue #109](https://github.com/rojopolis/spellcheck-github-actions/issues/109)

Please feel free to open issues and/or PRs, all contributions are welcome.

Thanks to @proffalken for his contribution

As mentioned in [the announcement for release 0.26.0](https://dev.to/jonasbn/release-0260-of-spellcheck-github-action-a-maintenance-updating-core-component-2c0b) I had two things in the pipeline, this is the second. The first are not as easily addressed, so it will require some more work.

Another important note is that the releases:

- 0.17.0
- 0.18.0

Will be sunsetted in the middle of October, so now is a good time to update.

## Change log

### 0.27.0, 2022-09-09, feature release, update not required

- Support for default PySpelling configuration files via PR [#116](https://github.com/rojopolis/spellcheck-github-actions/pull/116) from @proffalken

- Docker image updated to Python 3.10.6 slim via PR [#117](https://github.com/rojopolis/spellcheck-github-actions/pull/117) from @dependabot. [Release notes for Python 3.10.6](https://docs.python.org/release/3.10.6/whatsnew/changelog.html#python-3-10-6-final)
Classes in JavaScript
Tags: javascript, react, reactnative, oop
Published: 2022-09-09 06:23:17

In programming, classes are the blueprints for objects.
A class mainly have properties and methods.
Properties are like 'Variables attached to classes'.
Methods are like 'functions attached to classes'.

Let's create a class named Person.
```
class Person {
    //js object constructor.
    constructor() {
        this.name = "Max";
    }
    
    printMyName() {
        console.log(this.name);
    }
}
```
Above class 'Person' is having two things in it's body, a constructor function to create and initialise instance variable and a method 'printMyName()' to print the value in instance variable.
The above class 'Person' is a blueprint. In order to give life to this class, we have to create object for this class 'Person'.
Let's create an object for the class 'Person'.

```
const person = new Person();
person.printMyName();
```
In the above code, we are creating an object using new keyword.
And we are calling the method 'printMyName()' to print the value in instance variable.

**Inheritance**
Like a child inherits the behaviour of his/her parents, we can also make a class inherits the methods and attributes of another class.
Let's create a inherited class,

```
class Human {
    constructor(){
        this.gender = 'male';
    }
    
    printGender() {
        console.log(this.gender);
    }
}

class Person extends Human {
    //js object constructor.
    constructor() {
        super();
        this.name = "Max";

    }
    
    printMyName() {
        console.log(this.name);
    }
}
```
Here we use the keyword extends to make the class 'Person' inherits the methods and properties of the class 'Human'.
Also we use super() inside constructor function because, we are overriding the constructor function in class 'Person' and because of that the constructor function in class 'Human' won't have any effect. The super() function is used to give child class the access to methods and properties of a parent or sibling class.
Now let's create object from this inherited class, 

```
const person = new Person();
person.printGender();
```
Since we are inheriting the class 'Human' in class 'Person', we can access the method printGender() of 'Human' class from the class 'Person'.
Web3 Development Company
Tags: webdev, web3, blockchain
Published: 2022-09-09 05:54:26

We're a pioneering web3 development company that harnesses the power of decentralisation and smart contracts to build scalable, asset agnostic applications.

You have a web3 product idea and need help bringing it to life? We're Stimulai, the team that will take your vision from an MVP all the way through mainnet deployment.

We understand that web3 is still a new and emerging technology, which is why we're always keeping up with the latest developments and trends. This means that we're able to offer our clients cutting-edge solutions that are ahead of the curve. We're also early adopters of new technologies, so you can be confident that your project is in good hands.

https://stimulai.com/web3-development-company
Stimulai
Tags: blockchain, webdev, ethereum
Published: 2022-09-09 05:52:57

We're a pioneering blockchain development company that harnesses the power of decentralisation and smart contracts to build scalable, asset agnostic applications.

You have a blockchain product idea and need help bringing it to life? We're Stimulai, the team that will take your vision from an MVP all the way through mainnet deployment. With us on board you'll get expert guidance for each step in development along with our track record of success which ensures project completion without any surprises!

https://stimulai.com/blockchain-development-company
Laravel 8 Has Many Through Relationship Example
Tags: laravel8, php, relationship, mysql
Published: 2022-09-09 05:48:48

In this article, we will see laravel 8 has many through relationship example. hasManyThrough relationships are difficult to understand compared to other relationships. 

you use hasManyThrough relationship laravel 6, laravel 7 and laravel 8. The has-many-through relationship provides a convenient way to access distant relations via an intermediate relation.

So, let's see has many through in laravel 8.

For example, if a category is connected with products and products connected with orders, then we can access all orders connected with a specific category. 

So, simply you can access or get data using intermediate model relation using hasManyThrough in laravel 8.

Now, we will create categories, products, and order tables. categories table connected with products and products table connected with orders table like below screenshot and we also create migration and model for all table and retrieve data using the model.
VI logo in Python
Tags: vodafone, idea, chiki1601, python
Published: 2022-09-09 05:45:30

Hello friends...

I created VI logo using Python...

which is shown below:


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


I am glad that I am implementing Python turtle graphics by making various logos🥳🥳🥳🥳🥳
Plutotv logo in Python
Tags: python, chiki1601, playtv
Published: 2022-09-09 05:45:24

Hello friends...

I created Plutotv logo using Python...

which is shown below:

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

I am glad that I am implementing Python turtle graphics by making various logos🥳🥳🥳🥳🥳
Essential Questions To Ask Your Logo Designer
Published: 2022-09-09 05:30:17

Everyone wants their logo to be the best in the industry. But to get your logo best you need to hire a professional logo design company. It's quite important to have a professional logo designer especially with someone who has the creative chops, industry experience and can get you exactly the same logo that can represent your business. So, we bring you the most important questions you need to ask to your logo designers to get the best logo. Sit tight and read on to make sure you have hired the most creative and professional from the logo design company in New York for the job. 

**How Will You Ensure Our Logo is Unique?**

Once you set the meeting with your potential logo designer you must ask whether they can design a unique one as per your needs and standards. You need to be different from your competitors, must be recognizable, have elements that make it easy for your market to understand. You won't be able to make any kind of first impression on your market if your logo is just like everyone else's. Your brand does things differently, and everyone on your team is a genuine creative. 

**Have You Had Experience Designing for Our Target Market?**

Ensuring that cool and distinct designs for your logo is important. But to get it, you need a [professional logo design company](https://www.vervebranding.com/logo-design.html) by your side. That has years of experience to use the right images, words, design, fonts and colors for different clients. These factors will immensely help you target the right audience. So, the design firm's experience comes in handy to get a logo that will step with the expectations of your customer base. 

**How Many Logo Options Will You Give Me?**

If you want your logo to be best in the industry you need to choose from several options. You shouldn’t have to settle for a logo that you know really isn’t a good fit just because a freelance graphic design professional doesn’t want to give you more than one choice. So, you need to ask how many designs you will get with your pack. Is it 3, 4 or 5. When you settle on a final design, you need to know how many revisions will you be offered? Do you have to accept a design as is? How much do you need to pay to make additional edits or will it be free? What formats will the logo be delivered in?

**Endnotes**

These are the top three questions to ask for the logo designers from the [logo design company in New York](https://www.vervebranding.com/us/logo-design-company-in-new-york.html). As long as you will ask these questions you will have the best logo in the industry from the best designers.
Sorting Terminology - Must Know
Tags: beginners, algorithms, tutorial
Published: 2022-09-09 05:18:27

#What is in-place sorting? 

An in-place sorting algorithm uses consistent space for generating the output (modifies the given array most effective). It sorts the list most effective through enhancing the order of the elements within the list.

For example, Insertion Sort and Selection Sorts are in-place sorting algorithms as they do now no longer use any extra area for sorting the list and a typical implementation of Merge Sort is not in-region, additionally the implementation for counting type is not an in-place sorting algorithm.

so the auxiliary space complexity of non-in-place sorting algorithms is extended through O(N) where N is the quantity of elements on which sorting needs to be applied while for in-region algorithms it does not increase.

#Types Of Sorting :

- Internal Sorting
- External Sorting 

#Sort Stability :

- Stable Sort
- Unstable Sort

#Internal sorting:
When all data is placed in main memory or internal storage, the sorting is called internal sorting.
In internal sorting, the problem cannot accommodate entries beyond their size.

Example: heap sort, bubble sort, selection sort, quick sort, shell sort, insertion sort.

#External sorting:
If all the data to be sorted cannot be put into memory at once, the sorting is called an external sorting . External Sorting is used for large amounts of data.
The Merge sort and its variations are commonly used for external sorting.
Some external storage storage , such as hard drives and CDs, are used for external sorting.

Example: Merge sort, Tag sort, Polyphase sort, Four tape sort, External radix sort, Internal merge sort, etc.

#What is stable sorting?
When two same pieces of data appear in the same order on ordered data without changing their position, it is called stable sort.

Example: merge sort, insertion sort, bubble sort.

#What is unstable sorting?
If two data appearing in a different order in the sorted data is called an unstable sort.
Example: quick sort, heap sort, shell sort.
Forced to write documentation? Don't know where to start?
Tags: tutorial, productivity, testing, writing
Published: 2022-09-09 04:42:53

Read [my recent post about user documentation.](https://dev.to/cartervi/user-guide-templates-convenient-convenient-12f8)
In it, I talk about how manual templates help and speed up the process of creating a manual.
GLHF

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9m3pecp7c5pdj4l2kdm.jpg)
AWS IAM Cheat Sheet
Tags: 30daysofaws, day01, aws, certifieddeveloperassociate
Published: 2022-09-09 04:28:26

![](https://seeklogo.com/images/A/aws-iam-identity-and-access-management-logo-99B1CACF5A-seeklogo.com.png)

- IAM consists of the following:
  - Users
  - Groups
  - Roles
  - Policy Documents
- IAM is Global. It doesn't apply to any specific region.
- There is no charge to use IAM.
- IAM is compliant with Payment Card Industry (PCI) Data Security Standard (DSS)
- The "root account" has complete Admin access.
- **Don't use "root account"** for everyday use. Instead, create users. A new user will have NO permissions by default. Grant least privilege needed for their job.
- New user will be assigned with password, Access Key ID & Secret Access Keys. The password will be used to login to AWS management console. Access Key ID & Secret Access Key will be used to login via the APIs and CLI
- Always setup MFA on your root account.
- Use Groups to assign permissions to IAM users
- Use Roles to Delegate permissions. Role is more secure than creating individual user. Roles gives temporary credentials for access; whereas User has long term credentials.
- Create and customize [password rotation policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_account-policy.html)
- Policies can be attached to users, groups and roles. Use AWS defined policies, assign permissions wherever possible. Policy is defined in JSON format and contains version, statements, - effect, action, resource, principal, and condition.
- STS [Security Token Service](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) provides temporary security credentials to the trusted users. STS is global and there is no charge to use it.
- Digest: https://tutorialsdojo.com/aws-identity-and-access-management-iam/
- IAM best practices - Question might ask you to identify best practices among the given choices. https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
- Difference between when to use Role and User.
- IAM Policy Simulator - service for testing and troubleshooting IAM Policies. [Details](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html)

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

- [Practice notes](https://romankurnovskii.com/en/docs/aws-certified-developer-associate/iam/#practice)
- [Questions](https://romankurnovskii.com/en/docs/aws-certified-developer-associate/iam/#questions)
[Python] Looping with FizzBuzz
Tags: programming, beginners, python
Published: 2022-09-09 04:24:00

_Statement:_ 
Write the code needed to print to the console all the numbers from 1 to 100.

- For multiples of 3, instead of the number, print Fizz.
- For multiples of 5, print Buzz.
- For numbers which are multiples of both 3 and 5, print FizzBuzz.

_Solution:_

```python
for i in range(1, 101):

    if i % 3 == 0:
        print("Fizz")
    elif i % 5 == 0:
        print("Buzz")
    else:
        print(i)
        
    if i % 3 == 0 and i % 5 == 0:
        print("FizzBuzz")
```
[View the working code](https://www.online-python.com/ONFumaLjkl)
How to use this socket object globally anywhere in project
Published: 2022-09-09 04:14:45

import Emitter from '../config/emitter'

exports.register = (server, options, next) => {
  const io = require('socket.io')(server.listener)
  io.on('connection', (socket) => {
    socket.emit('action', action)
  })
  next()
}

exports.register.attributes = {
  name: 'socket'
}
Intersection of Two Linked Lists
Tags: javascript, leetcode
Published: 2022-09-09 03:59:21

Intersection of Two Linked Lists
Approach 1:
1) get length of both List
2) skip the extra nodes by moving pointer & decreasing length
3) now compare till u get common elemnt

```js
var getIntersectionNode = function(headA, headB) {
    let m = getLength(headA);
    let n = getLength(headB);
    let a = headA, b = headB;

  while (m != n) {
    if (m > n) {
      m--;
      a = a.next;
    } else {
      n--;
      b = b.next;
    }
  }
  while (a && a != b) {
    a = a.next;
    b = b.next;
  }
  return a;
}
const getLength = function(head) {
    if (!head) {
        return 0;
    }
    let length = 0;
    let curr = head;
    while (curr.next !== null) {
        curr = curr.next;
        length++;
    }
    return length;
}

```

Approach 2 :
1) two pointer 
2) iterate in while till both are not same
3) if one is null return one & make other same as first
4) loop till mismatch

```js
var getIntersectionNode = function(headA, headB) {

    let ptrA = headA
    let ptrB = headB
    
    while(ptrA != ptrB){
        
        if(ptrA == null){
            ptrA = headB
        }else{
            ptrA = ptrA.next
        }
        if(ptrB == null){
            ptrB = headA
        }else{
            ptrB = ptrB.next
        }   
    }
    return ptrA
};
```
VS Code Extension - Git Graph
Tags: vscode, git, github, version
Published: 2022-09-09 03:46:34

Today I was talking about a tool that helped me a lot, to unravel the Bug, which apparently is not wrong, let's find out the reason more calmly.

At the moment of desperation a graphical tool on the git path was indispensable, so that the two weeks work of 4 developers has been undone, thanks to this tool I was able to browse the changes and map the changed and relevant files that could cause the Bug.

![Git Graph demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9ky8fbsma1j1dktfccv.gif)

And before you ask, couldn't you do that in the Github UI? Yes, it could be done, but not with such speed, when loading pages you lose a precise time if you don't lose your train of thought.

As another tool in armory didn't really do it, its installation my VS Code is so light that I don't even feel the difference. I hope I don't need it anytime soon, but if I do, I'll definitely waste a lot less time this time.

If you don't believe me, I suggest you try it, you can find it in the VS Code extensions browser or in the links below:

- https://github.com/mhutchie/vscode-git-graph

- https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
How useful is Listing section ? 🤔
Published: 2022-09-09 03:24:42

Namaste 🙏 
Hey guys, I wanted to ask from you all that how much useful is it to use the Listing section provided by dev.to ?

Like if you have used it before, what were the results. Did you get better reach, conversion etc etc ?

I would be glad to know your experience in the comments 😊. (Thanks in advance)
TRTCCalling, a powerful new-gen real-time communication tool
Published: 2022-09-09 03:24:00

**What is TRTCCalling?**

TRTCCalling is a real-time communication solution based on Tencent Real-Time Communication (TRTC) and Tencent Cloud Instant Messaging. It supports one-to-one and group audio/video calls and allows quick integration.


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

**What can TRTCCalling do?**

Online customer service, online interview, corporate online communication, online consultation, audio/video social networking, and more.

| Demo address |

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tg597vvpq3zn9xhyb0kb.png)
https://web.sdk.qcloud.com/component/trtccalling/demo/web/latest/index.html#/login

How do I connect to it?

**Step 1. Import the `TRTCCalling` component**

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

**Step 2. Create a `TRTCCalling` object**

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

**Step 3. Log in**

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

**Step 4. Make a one-to-one call**
Caller: Make a call


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdys1ip33wfqncqoqidl.png)
Callee: Answer a call


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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0dlw9c4kwflchgdc393v.png)
We invite you to connect TRTCCalling to your product, and we welcome your feedback and suggestions.
System Design: PACELC Theorem
Tags: distributedsystems, architecture, tutorial
Published: 2022-09-09 03:02:02


The PACELC theorem is an extension of the CAP theorem. The CAP theorem states that in the case of network partitioning (P) in a distributed system, one has to choose between Availability (A) and Consistency (C).

PACELC extends the CAP theorem by introducing latency (L) as an additional attribute of a distributed system. The theorem states that else (E), even when the system is running normally in the absence of partitions, one has to choose between latency (L) and consistency (C).

_The PACELC theorem was first described by [Daniel J. Abadi](https://scholar.google.com/citations?user=zxeEF2gAAAAJ)._

![pacelc-theorem](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/pacelc-theorem/pacelc-theorem.png)

PACELC theorem was developed to address a key limitation of the CAP theorem as it makes no provision for performance or latency.

For example, according to the CAP theorem, a database can be considered Available if a query returns a response after 30 days. Obviously, such latency would be unacceptable for any real-world application.


---

_This article is part of my open source [System Design Course](https://github.com/karanpratapsingh/system-design) available on Github._

{% github karanpratapsingh/system-design %}