teleren/devto huggingface dataset:
What are the characteristics of fiction writing?
Published: 2020-12-22 12:31:34

Where grammar and spelling are the two most important aspects of writing, the rules of grammar can be bent and molded when it comes to fiction writing. Whether it is about creating a character such as Harry Potter or giving the story a setting such as the [Hula Bear Island](https://www.eden-bancrofts.com/product/spouts/), the following characteristics of fiction writing play a great role.

•	The character of the story 
•	The development of the plot
•	The setting 
•	The point of view
•	The storyline
•	The theme 
•	The writing style

Do you think these characteristics of fiction define story writing on the whole?
AMP Driven Landing Page in Minutes
Tags: aws, amp, landing, website
Published: 2020-12-22 12:06:17

The landing page is the most important part of your marketing strategy. It's the first impression that people have of your business. The landing page is where you explain to potential customers what you do and why they should buy from you. When creating a landing page, the goal is not just to get people to click on the link, but to entice them to stay on that page for as long as possible. Your landing page is a vital part of your marketing strategy, especially if you are launching a new product or service. It needs to be clean, simple and easy to navigate. The more concise it can be, the better.

Amp is a growing e-commerce platform that allows you to build an online store for your brand. Landing pages are a great way to convert more visitors into customers. You can create a whole page for just one product. A landing page is a single webpage that you can use to quickly make a sale. A landing page gives your visitors an opportunity to make a decision about whether they want to buy your product, service, or subscription.

https://swipepages.com/ is a new tool in the market, making landing page job very easy. No need to go through complex codings and templates. Just pick a working theme and customize it for your use. This is super friendly to optimize for any [SEO Expert](https://seofreelance.net/).

The tool is super magic for lead generation, You can do this by creating a landing page that's designed specifically for leads. Landing pages are essential for B2B companies and should be designed to convert as much of your traffic as possible.
Why Cloud Computing Is Important For Businesses: 10 Advantages Of Cloud Computing
Published: 2020-12-22 11:58:59

Businesses of every size choose cloud computing because of the increased efficiency, improving cash flow, and much more. It is a significant shift from the traditional way companies think about IT resources. Cloud brings a plethora of services such as Software as a Service (SaaS), Platform as a Service (PaaS), Information as a Service (IaaS), and more, which results in bringing results for the organizations.

94% of small businesses have switched to cloud computing in the last decade. Want to know what good cloud computing services bring to small businesses? If yes, watch the full video to know some fantastic insights into cloud computing and why small businesses are switching to it.

👇 For more case-studies and Guides Follow-us👇

Hire-us at                                    👉https://bit.ly/2VhRb9p
Connect with us on LinkedIn   👉https://bit.ly/36MyI9X
Follow us on Facebook            👉https://www.facebook.com/cloudanalogy/
Follow us on Twitter                 👉https://twitter.com/cloudanalogy
Follow us on Instagram            👉https://www.instagram.com/cloud_analogy/
Subscribe to us on Youtube https://www.youtube.com/channel/UCf0FnuGyYNRbxJzqicyAFlA
What will r4nkt do for you and your app?
Tags: saas, gamedev, gamification, learning
Published: 2020-12-22 11:41:47

If you're a developer who has thought about introducing gamification features into your app or website, you will want to take a look at [r4nkt](https://r4nkt.com).

Check [this article](https://r4nkt.com/blog/what-will-r4nkt-do-for-you) out for a bit more insight into what a service like r4nkt can do for you.

https://r4nkt.com/blog/what-will-r4nkt-do-for-you
How do I Buy Commercial Property in Mohali?
Tags: buycommercialpropertyinmohali, commercialproperty, vrsgroup, propertyinmohali
Published: 2020-12-22 11:35:25

<a href="https://www.vrsventures.com/how-do-i-buy-commercial-property-in-mohali">Buy Commercial Property in Mohali</a> – Commercial real estate is the kind to top the wish list of any investor today. There is a good reason behind this as it has been proven to be a fruitful endeavor repeatedly throughout the years. However, the increase in benefits that owning a <a href="https://www.vrsventures.com/commercial/mohali">commercial property</a> brings, also brings an increase in the responsibility. This is why it is important to ensure that you follow all the sound investment practices with your due diligence.

As expected, <a href="https://www.vrsventures.com/commercial/chandigarh">commercial properties</a> are a mile apart from the traditional investments single-families often make. This requires one to be thoroughly involved in crunching numbers as well as in raising the capital. Therefore, you must be fully aware that this will take more efforts from you as an investor in the commercial real estate. However, if you are willing to give what it takes, this guide should help you through the process of purchasing your <a href="https://www.vrsventures.com/commercial/mohali">commercial property in Mohali</a>
Making use of useContext Hook!
Tags: react, webdev, hook, context
Published: 2020-12-22 11:24:08

*Welcome back devs!*

We have talked about using ContextAPI, how to create context, how to Provide context value, and how to Consume context value in the last post of the series.

In this post, we are going to see how to make use of *useContext* Hook.

*Description:*

useContext accepts a context object (the value returned from React.createContext) and returns the current context value for that context. The current context value is determined by the value prop of the nearest <MyContext.Provider> above the calling component in the tree.

When the nearest <MyContext.Provider> above the component updates, this Hook will trigger a rerender with the latest context value passed to that MyContext provider
 

*Following are the changes you need to make to our previous code in our earlier code in order to use* **useContext** *hook:*

Now,

![useContext](https://dev-to-uploads.s3.amazonaws.com/i/ikpztwz5idw194htvryg.JPG)

 vs

Before,

![without useContext](https://dev-to-uploads.s3.amazonaws.com/i/uxr566pklh4u6u6e1iba.JPG)

Only this code you have to change, the rest all remains the same as it is.

*Note*: useContext(MyContext) only lets you read the context and subscribe to its changes. You still need a <MyContext.Provider> above in the tree to provide the value for this context.

*Stay tuned for the upcoming posts of the Series!!*

*I hope it might help you, Feel free to leave a comment if you have any doubt!*

*Feedbacks are always welcome!*

*Happy Coding!*

*-Jayant Khandelwal*
npm displays badge for built-in TypeScript declarations
Tags: typescript, news, npm, webdev
Published: 2020-12-22 11:12:18

Good news for my fellow TypeScript developers!

Since the 16th of December, npm displays a small TS badge for packages with bundled TypeScript declarations:

![npm displays packages with bundled TypeScript declarations](https://dev-to-uploads.s3.amazonaws.com/i/wz9ws4ilq3xijhlsq92m.jpg)
(*example: https://www.npmjs.com/package/vue*)

This makes it easier to know, whether the maintainer supports TypeScript and if you have to use a package from the `@types` repository.

---

*Find GitHub's original announcement here: [npm displays packages with bundled TypeScript declarations](https://github.blog/changelog/2020-12-16-npm-displays-packages-with-bundled-typescript-declarations/)*
Add a loader to gatsby website
Tags: react, gatsby, javascript
Published: 2020-12-22 11:12:14

   I've been lately looking for some tricks to add a custom loading spinner to gatsby website without using the nProgress plugin that gatsby provide in the documentation, neither using the `gatsby-browser.js` file and calling browser Api's such as `onRouteUpdate` and `onInitialClientRender`, after trying few approaches the best one that performs as expected is made by `useEffect` hook, so here is the way to do that :

####Prepare your `svg` spinner :
 you can pick one from the examples provided in this [link](https://codepen.io/nikhil8krishnan/pen/rVoXJa) , copy it's code and create a file `loadingSpinner.svg` inside your assets file, and past the code there .

####Create a file `Loader.js` :
in this file import your `svg` spinner and create a loader component :  
```
import loadingSpinner from "assets/loadingSpinner.svg"


function Loader (){
  
  return (
    <div style={{
         position : "fixed",
         display : "flex",
         width : "100vw",
         height : "100vh",
         justifyContent : "center",
         alignItems : "center",
         zIndex : 600,
         backgroundColor : "#FFF"
         }}
    >
        <img src={loadingSpinner} 
             alt="loader" 
             width="150px" 
             height="150px"
        />
    </div>
  )
}
export default Loader
```
> Note : you can change the color and size of the spinner in the `svg` file . 


#### Add the Loader to `html.js` file:

import the Loader component in your `html.js` file, and put it inside a `div` tag just below the opening `body` tag, and give that `div` an id :
```
    <div id="full-page-loader">
       <Loader />
    </div>
```
at this point, the loader component will be displayed permanently whenever you run the website, we will figure this out in the next step .
 
####Control the Loader component:

in the `Layout.js` file, get the loader component by it's id inside a the `useEffect` hook and delete it when the Layout file get rendered, just like this : 
```
useEffect(() => {
    try {
      const element = document.getElementById("full-page- 
      loader")
      if (element) element.parentNode.removeChild(element)
    } catch(error) {
      console.log(error)
    }
  })
```
> Note : we must use `try catch` block, so we can test our code while it's being executed, using just a normal if statement won't work and it will return a property of null error either for `parentNode` or the `removeChilde` method .
New Commercial Project in Mohali | VRS Group
Tags: newcommercialpropertyinmohali, vrsgroup, commercialprojectinmohali
Published: 2020-12-22 11:07:21

<a href="https://www.vrsventures.com/new-commercial-project-in-mohali">New Commercial Project in Mohali</a> – Searching for a new home? The listing price and interior features aren’t the only things to keep in mind when looking at a house. Nowadays, buyers must also remember to watch out for hidden cameras, high maintenance costs, and bad neighbors when touring a property in Mohali. For more advice on what to look out for when attending an open house or a private showing, read our tips below for <a href="https://www.vrsventures.com/new-commercial-project-in-mohali">New commercial project in Mohali</a>: 

Get in touch with sellers
In today’s tech-savvy world, buyers must be mindful that during a presentation, sellers can watch and listen. Many of today’s offices are equipped with smart cameras and microphones, from Ring video doorbells to Nest surveillance cams, making it easy for <a href="https://www.vrsventures.com/commercial/mohali">commercial property</a> owners to spy on prospective buyers while they tour a property.

Sales in your area
Study comparable sales nearby before viewing a home. These “comps,” or comparable sales, apply to properties recently sold that have identical features. Be sure to pay attention to the square feet, characteristics, and location of a comp. This will give you a clear idea of whether a home is reasonably priced or not.
Scratch the edge using WebFlux (Part 1)
Tags: webdev, kotlin, java, mongodb
Published: 2020-12-22 11:05:48

Part 1 (create a simple service using WebFlux)
In this story, we look at the first layer and start it right now. so go to Spring Initializer and create a project with the following config:
- Choose Gradle
- Choose lovely Kotlin
- Java 11
You could choose anything you want, these were my favorites and you’ll see the codes base on them.
And the following dependencies:
- Spring Reactive Web (Build reactive web applications with Spring WebFlux and Netty)
- Spring for Apache Kafka (Publish, subscribe, store, and process streams of records)
- Spring Security (Highly customizable authentication)
These are enough so far, generate and extract then open the extracted folder with your favorite IDE (I proudly using Intellij Idea, and it’s my suggestion for you), let it to resolve your dependencies and indexes your project and libraries.

If you are interested, you can find complete story on Medium:
https://micrommer.medium.com/scratch-the-edge-using-spring-webflux-part-1-8290f9a7cf6b

I'll love your feedback!
Context ApI + useContext Hook (The deadly Beast)!!
Tags: react, hooks, context, webdev
Published: 2020-12-22 10:59:04

**Fun Fact:**
*Context API to State management in React, is Hammer to Hulk!*

**Don't you agree?**
Check it out yourself :

*"Context provides a way to pass data through the component tree without having to pass props down manually at every level."*

![Tree](https://dev-to-uploads.s3.amazonaws.com/i/2g8yb9vpwm5y0rqytlkf.JPG)

**Consider a Scenairo:**

In the above Tree, if we need to access the *username* in *Component A, Component D, and Component F* then these can be the following ways:

**Method 1.)**
Pass it down through all the components as props i.e (B -> D) and (C -> E -> F). The Problem with this method is that we need to unnecessarily pass props through *Component B, Component C, and Component E* as they are the *Parent Component* of Component D and F. It decreases the efficiency of our software.

**Method 2.)**  Use Context API

We will make use of *Method 2*:

**Steps to Create Context**

1.) Create the context
2.) Provide the context value
3.) Consume the context value

Let us consider only the case from *(C -> E -> F)*.

**Step 1:)** Create the Context:

![Create Context](https://dev-to-uploads.s3.amazonaws.com/i/u2ilp5foddgvocv90knc.JPG)

In the first Step, we have made a context using *React.createContext()*.



**Step 2.)** Provide the context value:

![Provider](https://dev-to-uploads.s3.amazonaws.com/i/wj62grerdoppzj29mgqu.JPG)


Now, we have used the *Context Provider* to pass the *value* to the components.

**Note:** *value* passed in *Provider* will be passed to all the components (and their Child Components) present inside the *Provider Tag*. In our case, the value will be passed to Component C and its child Components (i.e *Component E* and *Component F*).

**Step 3.)** Consume the context value:

![Consume Context](https://dev-to-uploads.s3.amazonaws.com/i/tjhq8xak1jfuvosjzs1c.JPG)

Now we need to *Consume* the *context value* which we have passed down to Component C and its child Components. We will consume it in Component F.

In the return statement, place a *Consumer* tag and enclose the JSX function in it having the context value as arguments (*username* as an argument in our case).

**Output:**

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7fxlkhxyyzc95q96k7l3.JPG)

This is how you can make use of Context API.

*It can be noted that there is a little bit of hassle in order to consume context value*

*In order to make consumption of context value an easy task, we will make use of the* **useContext** *hook in the upcoming post!*  

**Stay tuned for the upcoming posts of the Series!!**

*I hope it might help you, Feel free to leave a comment if you have any doubt!*

*Feedbacks are always welcome!*

*Happy Coding!* 

*-Jayant Khandelwal*
Nested Mutations in GraphQL Nexus

Tags: graphql, node, prisma, nexus
Published: 2020-12-22 10:57:54

I've struggled with creating an array of mutation with GraphQL Nexus
, I tried so many solutions but I wasn't satisfied with it because it causes bad performance in some cases, but today I tried a solution that I think it's the better way to create an array of mutations in Nexus, I've used graphql-auth example from Prisma examples repo to explain my point. I created the nested mutation option to deletePost mutation in the [example](https://github.com/Ahmeddammarr/Array-mutations-in-GraphQL-Nexus). 
Please check it and tell me what do you think about it and of course, I want to know your suggestions for solutions better than this.
Django: makemigrations and migrate
Tags: django, python, sql, database
Published: 2020-12-22 10:55:06

In this post, I'm trying to explain what __*makemigrations*__ and __*migrate*__ commands can do in Django.

We have these 2 commands in Django to create SQL commands:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/54onjnufzk1lszhey4dh.png)

Now let's see what exactly they are doing with our database.

1. First we create a new model class in __models.py__

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/klpfiuv3n5xzlnropsx2.png)

Then in command-line:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/kh7053hxezgu0zgabb9q.png)

__makemigrate: What will happen after this command?__
It will generate the SQL command to create the table corresponding to each class you made in the models.py file. 

The corresponding SQL command after creating your class models in models.py and using makemigrations will be

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ih01uhkfr3cev68dx2hl.png)

and finally, we run this command:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/jcggu7uq9mzdtr7atqfe.png)
__migrate: What will happen after this command?__
It will create the table in the database using the commands which have been generated by makemigrations.
Nigerian latest news
Published: 2020-12-22 10:53:26

9ja news,
Nigerian news headlines,
latest Naija news,
all Naija news,
Nigerian latest news,
Naija news online,
ng newspapers online,
https://tropics.ng
Nigerian newspapers online,
latest nigeria news,
current nigeria news,
nigerian daily newspaper,
naija news today,
nigeria papers,
naija newspapers,
nigerian latest news,
nigeria newspapers online,
nigerian news headlines,
nigeria daily newspapers,
nigerian newspapers online today,
Current nigerian news,
naija newspapers,
nigerian newspapers today,
latest naija news,
the nigeria newspapers,
punch news papers,
nigeria newspapar on the internet,
nigerian newspapers leadership,
nigeria dailies today,
nigeria news online,
Commercial Property in Mohali
Published: 2020-12-22 10:51:07

Mohali is the second largest real estate destination in the state after Chandigarh. Its easy connectivity with the other big cities of Northern India, the presence of global companies in the region, international airports, and the availability of quality educational institutions, already make Mohali a preferred residential hub. When a locality witnesses the growth of residential developments, the mushrooming of commercial property is obvious. So if you are considering buying a <a href="https://www.vrsventures.com/commercial/mohali">commercial property in Mohali</a>, you have made just the perfect investment move!

<a href="https://www.vrsventures.com">VRS Group</a> has managed to instill immense belief in its clients. After successfully delivering several commercial projects in Mohali in all their glory, the company is proud to declare that every deal that it has had with customers has always been impeccable, with no hidden costs in the process. We have an eye for detailing, whether it is in terms of construction quality or the way our management is trained to serve you. Our mantra is complete honesty, and we have sworn to chant it till the very end of time itself.
Can't move from Venmo to Cash App thinking about net trouble? Call help gathering.

Published: 2020-12-22 10:47:40

 
There can be occasions that you may object to the Venmo to Cash App trade because of the association straightforwardness. To get the issue executed you can run the diagnostics to find the flounder and dispose of it hence or you can other than use the assistance that is passed on by the tech consultancies.
https://www.my-contactsbackup.com/blog/send-money-from-venmo-to-cash-app/
Installing Kubernetes with on Container Linux using Kubeadm
Published: 2020-12-22 10:38:27

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ys9p1gs6npu9cqbl58e8.png)

## Installing kubeadm kubectl kubelet

### Prerequisite:

Install CNI plugins (required for most pod network):

```
CNI_VERSION="v0.8.2"
mkdir -p /opt/cni/bin
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-amd64-${CNI_VERSION}.tgz" | tar -C /opt/cni/bin -xz
```

## Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))

```
CRICTL_VERSION="v1.17.0"
mkdir -p /opt/bin
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz" | tar -C /opt/bin -xz
```

## Copy paste the below snippet one by one in your CLI terminal - This is for both Master and Worker Nodes

```
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"

mkdir -p /opt/bin
cd /opt/bin
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
chmod +x {kubeadm,kubelet,kubectl}

RELEASE_VERSION="v0.2.7"
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service" | sed "s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service
mkdir -p /etc/systemd/system/kubelet.service.d
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

systemctl enable --now kubelet
```

## Initializing kubeadm - This is only for Master

```
kubeadm init
```

## Setting up kubeconfig - This is only for Master Node

```
  mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config
```

## Copying token from kubeadmn init snippet - This you should copy from Master. This you will get from Master node only

```
kubeadm join <control-plane-host>:<control-plane-port> --token <token> --discovery-token-ca-cert-hash sha256:<hash>
```

## Installing Network Plugin - This is only for Master Node

```
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
```

## Joining Worker Nodes - This is only for Worker Nodes

```
kubeadm join --token <token> <control-plane-host>:<control-plane-port> --discovery-token-ca-cert-hash sha256:<hash>
```

## Note:

Please do not run Master node snippet commands on Worker Nodes.

## References 
1. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#installing-kubeadm-kubelet-and-kubectl
2. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#initializing-your-control-plane-node