teleren/devto huggingface dataset:
Why aren't all videos monetized on YouTube?
Tags: monetization, youtube, videocontent, channel
Published: 2020-11-13 15:12:45

You can start your monetization program when you have 4,000 hours of general watch time on your channel during this year and have at least 1,000 subscribers.https://vlogbox.com/youtube-monetization-101-from-scratch-to-rich-through-6-steps/ this article reveals profound information about YouTube monetization.

To have your videos monetized simply adhere to certain guidelines:

•Create the video yourself. It tends to be day by day video blogs and home recordings, D.I.Y, unique music recordings, and unique short movies.

•Make sure you own all the essential rights to monetarily utilize all visuals made by you.

•Keep as a top priority that advertisers promote their products on advertiser-friendly content.

Therefore, if you follow all of these rules implementing your monetization program, your content has to be monetized. However, not only YouTube has its monetization platform, there is, for example, Vlogbox (https://vlogbox.com/) which generates a higher level of revenue share than YouTube.

Hope I’ve helped you. Glad to answer any additional questions.
📱Building reliable mobile app security
Tags: security, mobile, cryptography, ios
Published: 2020-11-13 15:06:08

Dealing with app security is often complicated for developers. Is your app secure? Is it protected “enough” so breaches won’t happen? Or, are you interested in the industry-proven data security standards and tools developers can use even without external help? 

Watch security roundtable from SwiftHeroes Digital 2020, featuring [@Anastasiia Voitova] (https://twitter.com/vixentael) & [@Julia Potapenko] (https://twitter.com/julepka) from [CossackLabs] (https://www.cossacklabs.com/), and [@Julia Aronskaya] (https://twitter.com/iaronskaya) from [MacPaw](https://macpaw.com/)—to finetune your understanding on dealing with security issues.

_Continue watching full video here:_

{% youtube M6VihvXUG88 %}

For more video and talks on data security, visit [Cossack Labs’ official YouTube channel] (https://www.youtube.com/channel/UCQbAyrwHKJ8QRDTOHs90O0g).
Protecting Against Phishing Attacks
Tags: security, phishing, attacks
Published: 2020-11-13 14:55:06

Read how to safeguard yourself and your company against Phishing Attacks on identity.
[Read more...](https://auth0.com/blog/protecting-against-phishing-attacks/?utm_source=content_synd&utm_medium=sc&utm_campaign=phishing_attacks)
Completed my first Hacktoberfest Challenge!! 
Tags: hacktoberfest
Published: 2020-11-13 14:50:40

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### About me
I'm a first year CSE student at KIIT university. I love tech, coding and ethical hacking.
### Background

I'm pretty new to open source but I've been coding since class 9th so I've a pretty good idea about how stuff work.

### Progress

I've completed hacktoberfest recently and the experience was very great. I got to know about the git commands. I only knew about the git clone command until this point to clone github repositories on my linux machine, but now I've got a broad idea about it. All thanks to Hacktoberfest.

### Contributions

I did pretty simple contributions this hacktoberfest, but it helped me a lot for my learning. 


### Reflections
My experience was great, I'm a first-timer and I learned a lot of new stuff during the process. Yes, I'll definitely take part in it again next year. I'd try hard now to get more deeper into the open source community and build relationships with more like minded people.
My experience with hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-11-13 14:47:35


# Introduction
I'm new to this dev community, I'm currently a final year B.Tech student at St.Thomas' College of Engineering & Technology. I saw many posts about the hacktoberfest 2020, and in-general about open source contribution. As a developer, open-source contributions are very important in my opinion, and I thoroughly enjoyed my first-time contributing to open-source.

### Progress & Contributions

I'm a bit late to the hacktoberfest party, but better late than never! My 4 PRs have finally passed the 14-day review period and I've finally completed the hacktoberfest challenge. I mainly contributed to repositories which contained solutions to different Data Strcutures & Algorithms related problems like [this](https://github.com/div-bargali/Data-Structures-and-Algorithms/pull/806). 

### Reflections
While this was my first open-source contribution, it'll definitely not be in my last! Cheers to that!
Already looking forward to hacktoberfest 2021!
Bash script for testing logging on
Tags: bash, linux
Published: 2020-11-13 14:44:57

HI,
I haven't done Bash scripting in a while. Got a simple problem. I want to test the logging on via ssh to 100+ servers from a single jumpbox.

#!/bin/bash
for host in $(cat servers.txt)
     do              ssh -q -o NumberOfPasswordPrompts=1 "$host" "hostname"
     done > test.log

This is my attempt its pretty simple and works as long as you're pressing the return key all the time!

Is there anything better out there?
How I misrepresented a C# 9 code feature
Tags: dotnet, csharp
Published: 2020-11-13 14:36:04

Yesterday, I complained about some of the new syntax in C# 9 and, in so doing, made the opposite point I intended. Let me explain.

First the tweet:

{% twitter 1326964779357884416 %}

The big problem here is that my pre-C# 9 example doesn't do the same thing as the C# 9 code.

To get the same behavior, I needed to write this:

```csharp
if (listOfThings is null || listOfThings.Count == 0) { ... }
```

You can see a running example with various types of checks at https://dotnetfiddle.net/VNO2Sv

## What I got wrong

I was so focused on the Count part that I forgot about the null check part. The C# 9 example makes that very clear.

And in my .NET Fiddle example, you can see that the syntax I was using doesn't work at all if you are instead checking for an enumerable with items in it when the List<T> is null:

```csharp
listOfThings = null;
if (listOfThings?.Count != 0) { ... }
```

That will give you a false positive (indeed, `.Count` on a null object is not equal to 0) but then you'll have a NullReferenceException if you try to operate on `listOfThings` in the if block.

Just a little reminder that the language designers aren't just making changes for the heck of it.
How to transfer repository from GitLab to GitHub
Tags: git, github, gitlab
Published: 2020-11-13 14:34:54

Hello!
If you're curious about migrating repository to GitHub from GitLab or another registry I've recorded a quick demo on that.
I've found 2 possible ways to do that, but only one of them supports both public and private repositories. GitHub has the `import` functionality available in UI, but unfortunately, it seems not supporting private repositories so far. Anyway, it's a very easy task to do. Take a look at the video, just 2 minutes... 

{% youtube Mqc7SajFGtI %}

Thanks for watching! And please let me know if I've missed something here...
Moving Elements and Adding New Ones with DOM Manipulation
Tags: beginners, webdev, javascript, codenewbie
Published: 2020-11-15 21:16:47

---
title: Moving Elements and Adding New Ones with DOM Manipulation
description: Learn to select and move elements in the DOM and to add brand new elements using plain old Javascript.
published: true
date: 2020-11-13 14:32:00 UTC
tags: beginners,webdev,Javascript,CodeNewbie
canonical_url: https://raddevon.com/articles/moving-elements-and-adding-new-ones-with-dom-manipulation/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/a277ifc593fa8b9mtqsg.jpg
---
If you haven’t watched [the first video in my series on basic DOM manipulation](https://raddevon.com/articles/dom-manipulation-with-plain-old-javascript/), you’ll want to catch up with that first.

In this video, we’ll dig a bit deeper into selecting elements. I’ll also show you how you can move your elements around in the DOM and how to create brand new elements in Javascript and render them onto your page.

{% youtube 4vy8TAVZ8B0 %}

If you want to learn Javascript faster, download my Javascript By Example cheatsheet. Just share your email in the form on [the original article](https://raddevon.com/articles/moving-elements-and-adding-new-ones-with-dom-manipulation/) (back on my site). It’s like a regular Javascript cheatsheet but without all that “foo” and “bar” garbage.
Where can I learn Rasa from?
Tags: watercooler, discuss, help, rasa
Published: 2020-11-13 14:30:43

---
title: Where can I learn Rasa from?
published: true
description: 
tags: watercooler, discuss, help, rasa
//cover_image: https://direct_url_to_image.jpg
---

I recently read a LinkedIn post about Rasa and looked it up. I found it interesting and want to learn it. Any rasa developers who can help me with the resources I should begin with?

Also what are the essential pre-requisites before jumping into it? 

What projects I can build using rasa? I know it is primarily used for chatbots.

And if there are any open source projects I can contribute to?

I saw they have a youtube channel with videos. RN thinking about seeing those first and then going forward from there.
Docker Tip
Tags: docker, productivity
Published: 2020-11-13 14:30:37

Quick tip, You do not need to copy paste the full name or ID of a container to use that in the command. You can just use the first unique characters of its id alone like this.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/yuo02sv6qyc69b1jt865.png)
AzureFunBytes Episode 20 - @Azure Key Vault with @wiredcanuck
Tags: azure, security, tutorial, beginners
Published: 2020-11-13 14:25:07

[Azure Key Vault](https://docs.microsoft.com/azure/key-vault/general/basic-concepts?WT.mc_id=devops-10833-jagord) is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys.

This week, [Microsoft Sr. Cloud Advocate Pierre Roman](https://twitter.com/wiredcanuck) joins me to discuss how [Azure Key Vault](https://azure.microsoft.com/services/key-vault/?WT.mc_id=devops-10833-jagord) can be used to secure the secrets passed to your apps and servers.

{% youtube saP9zVE5QGw %}

AzureFunBytes! - Byte-sized content with a live Twitch show!

Learn about Azure fundamentals with me!

Live stream is available on Twitch at 2 pm EDT Thursday. You can also find the recordings there as well.

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes

Join me, ask questions, and learn about Azure!

[Microsoft Learn: Azure Fundamentals](https://docs.microsoft.com/en-us/learn/paths/azure-fundamentals/?WT.mc_id=blog-devto-jagord)
[Microsoft Azure: $200 Free Credit](https://azure.microsoft.com/en-us/free/?WT.mc_id=devops10833-jagord)

[Azure Key Vault](https://docs.microsoft.com/en-us/azure/key-vault/?WT.mc_id=devops-10833-jagord)
[Microsoft Learn: Configure and manage secrets in Azure Key Vault](https://docs.microsoft.com/learn/modules/configure-and-manage-azure-key-vault/?WT.mc_id=devops-10833-jagord)
[Azure Key Vault Basic Concepts](https://docs.microsoft.com/azure/key-vault/general/basic-concepts?WT.mc_id=devops-10833-jagord)
[Guidelines for using Azure Key Vault](https://docs.microsoft.com/learn/modules/configure-and-manage-azure-key-vault/2-key-vault-usage?WT.mc_id=devops-10833-jagord)
[Quickstart: Set and retrieve a secret from Azure Key Vault using Azure CLI](https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-cli?WT.mc_id=devops-10833-jagord)
[Quickstart Set and retrieve a secret from Azure Key Vault using Azure CLI](https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-cli?WT.mc_id=devops-10833-jagord)
Loved it...
Tags: hacktoberfest
Published: 2020-11-13 14:20:40

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
The 5 W's of Application Logging
Tags: solidus, ruby, rails, ecommerce
Published: 2020-11-13 14:10:19

{% youtube Y0XAmRxkr3w %}

Taylor Scott from Sendoso takes us to task on our application logging.

"The 5 W's of Application Logging"
Often times when we write are logs we only include the “what” and “when”. I’d like to talk about getting the most of our application logging by discussing the importance of the “Who”, “Where”, and “why”. Having logs without context can be just as bad as no logs at all.
Remove padding from storybook
Tags: storybook
Published: 2020-11-13 14:08:07

After upgrading from Storybook 5 to Storybook 6 I experienced some annoying padding around all my stories.

The inspector told me this was due to a padding of `1rem` defined in the class name `sb-show-main` on the `body` element. I searched for how to override this class, but was totally not necessary. The solution was actually quite simple, by adding just the following snippet to `.storybook/preview.js`:

```
export const parameters = {
  layout: 'fullscreen',
};
```
Strapi Starter Gridsome Blog
Published: 2020-11-13 13:46:28

---
title: Strapi Starter Gridsome Blog
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bn44f3spdtn5dtvvzt1h.png)
The last week Remi published a Gridsome starter allowing you to create a [portfolio website with Strapi](https://github.com/strapi/strapi-starter-gridsome-portfolio). You enjoyed it a lot so I thought a second Gridsome starter wouldn't be too much!

If you didn't know, [Gridsome](https://gridsome.org) makes it easy for developers to build static generated websites & apps with Vue.js

Today we are happy to publish a [blog starter using Gridsome and Strapi](https://github.com/strapi/strapi-starter-gridsome-blog).

![Gif excited](https://media.giphy.com/media/7eAvzJ0SBBzHy/giphy.gif)

### Features in Strapi

- 1 Single type
- 4 Components
- 3 Collection types: Article, Category, User
- 6 Created articles
- 5 Created categories
- Permissions set to `true` for article, category and user
- Responsive design using UIkit
- Slug system
- Publication system (draft & published)
- Role based access control

### Getting started

Clone the repository

```
git clone https://github.com/strapi/strapi-starter-gridsome-blog.git
cd strapi-starter-gridsome-blog
```

**Backend**

Install dependencies and run your server

```bash
# Using yarn
yarn install
yarn develop

# Using npm
npm install
npm run develop
```

**Frontend**

```bash
# Using yarn
yarn install
yarn develop

# Using npm
npm install
npm run develop
```

Gridsome server is running here => [http://localhost:8080](http://localhost:8080)

If you liked this starter and want to develop a version of it with another frontend framework (Vue.js, Next.js or 11ty for example). Feel free to submit a Topic idea [here](https://github.com/strapi/community-content/issues/new?labels=Looking+for+author&template=submit-a-topic.md&title=%5BTOPIC%5D)!

Thank you for taking the time to read this blog post, I'll see you soon with a new starter ;)
Enjoy this starter!
How to generate a local SSL certificate?
Tags: ssl, node, gatsby, react
Published: 2020-11-22 20:08:06

---
title: How to generate a local SSL certificate?
published: true
date: 2020-11-13 11:00:00 UTC
tags: ssl, nodejs, gatsby, react
canonical_url: https://blog.murtajaziad.xyz/how-to-generate-a-local-ssl-certificate/
---

> These commands has been tested in linux.

In the project root folder, run

```
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
```

Then run:

```
openssl rsa -in keytmp.pem -out key.pem
```

Now, you should have `cert.pem` and `ket.pem` in the project root folder.

* * *

If you’re using Node.JS/Express, you can load the certificate and key using:

```
const express = require("express");
const https = require("https");

const app = express();

app.get("/", (req, res) => {
  res.json({
    message: "Hello",
  });
});

https
  .createServer(
    {
      key: fs.readFileSync("key.pem"),
      cert: fs.readFileSync("cert.pem"),
    },
    app
  )
  .listen(3000, () => {
    console.log("Listening..");
  });
```

* * *

or if you are using create-react-app modify the start script in package.json:

```
"start": "export HTTPS=true&&SSL_CRT_FILE=cert.pem&&SSL_KEY_FILE=key.pem react-scripts start",
```

* * *

or using [Gatsby](https://gatsbyjs.com):

```
gatsby develop --https --key-file ./key.pem --cert-file ./cert.pem
```
Happy Diwali 2020
Tags: diwali2020, happydiwali2020, diwali
Published: 2020-11-13 13:40:34

[Wish the Festival of Lights bring lots of joy, peace and prosperity to you and your family! Happy Diwali 2020!](https://www.truongbui.com/2020/11/happy-diwali-2020.html)

Truong
Vue events causing your page to reload, Here is a quick fix
Tags: vue, html
Published: 2020-11-13 13:38:34

---
title: Vue events causing your page to reload, Here is a quick fix
published: true
description: prevent the HTML default behavior that causes a page to reload after triggering a Vue event.
tags: #vue #html
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/bd7ynd3ve5st6agejoxc.jpg
---
Hello hello, I know it's a very annoying issue to find your page reloads after submitting a form or clicking a link that triggers a Vue event handler.

To be on the same page I added this dummy code to increment a number by clicking an anchor tag.

```
<div id="app">
    <a href="#" @click="handleIncrement">Click to increment</a><template> You clicked me: {{count}}</template>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
        el:'#app',
        data:{
         count:1
        },
        methods:{
           handleIncrement(){
              this.count++
           }
        }
    })
</script>
```

Notice the anchor tag reference is equals to a '#' hashtag, If you removed this hashtag you will break the flow and nothing will happen when you click the same link.

But leaving this hashtag causes the issue I'm talking about, you'll find the page reloads after every and each single click. This issue is known as the default behavior.

Because Vue is a very smart JS framework the solution is very handy. You'll add "__.prevent__" to the event handler so it will be like "__@click.prevent__" this will prevent the default behavior after clicking the link.

Check the following code updates
- ADD: __".prevent"__ to the event handler _(@click ->@click.prevent)_
- UPD: the anchor-tag and nullified the reference _(href="#" -> href='')_

```
<a href="" @click.prevent="handleIncrement">Click to increment</a><template> You clicked me: {{count}}</template>
```

Now your page will work like a champion and never reloads again.
Hecked-All-october
Tags: hacktoberfest
Published: 2020-11-13 13:28:19

Just completed Git and Github course on coursera. My friend contacted me and told me about this competition and it become perfect start point to start contributing to open source. I was afraid at start but then confidence grew PR by PR and now I also pitched new ideas and features into existing repo.

Thank you so much for such an wonderful event!
thanks Intel, Dev and Digital ocean it was an awesome experience!!
SEO optimization: cache your dynamic pages (Rails)
Tags: rails, github, react
Published: 2020-11-13 13:19:03

Here is a gem for Rails to generate and cache all your public pages for SEO optimization:
https://github.com/floXcoder/seo_cache

And an article to explain the purpose of this gem and how to improve your SEO (especially for website using JS frameworks like React or Vue):
https://www.ginkonote.com/users/flo/articles/seo-generate-and-cache-your-pages@seo
The most important Repos to enhance your development knowledge
Tags: github, githunt, webdev, javascript
Published: 2020-11-13 13:13:09

Hey Developer, 
Bringing you a blog post on some repos I found useful and will enhance your knowledge in the field of development. This post is for all the developer and aspiring-developers. You can use these repos for understanding the problems or to learn to solve the problems. 

It's not always you use use GitHub for storing the codes some fellow developer on GitHub use GitHub for storing important resources that will help all of us. There are literally over millions of free and large resources on GitHub.

Like this I found some useful repos for you to enhance you knowledge. 
<hr>
Do you want development news right on your default chrome or firefox page? Then get the amazing [daily.dev](https://api.daily.dev/get?r=rahxul) extension. There are only PROS of getting this extension no CONS. 
<hr>
### 1.  [The interview HandBook](https://github.com/yangshun/tech-interview-handbook) 

![2.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601789357481/QrNuilrZ3.png)

**Why do I want this?**
This repository has practical content that covers all phases of a technical interview, from applying for a job to passing the interviews to offer negotiation. Technically competent candidates might still find the non-technical content helpful as well.

**Who is this for?**
Anybody who wants to land a job at a tech company but is new to technical interviews, seasoned engineers who have not been on the other side of the interviewing table in a while and want to get back into the game, or anyone who wants to be better at technical interviewing.
Link => https://github.com/yangshun/tech-interview-handbook

### 2.  [YDN (YOU DON'T NEED)](https://github.com/you-dont-need/You-Dont-Need) 

![3.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601789478636/QO5uBohVw.png)
From the above pic you can understand what it has. 🤣
Link => https://github.com/you-dont-need/You-Dont-Need

### 3.  [The front-end web dev ](https://github.com/RitikPatni/Front-End-Web-Development-Resources) 


![4.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601789697122/GxbsS6ODL.png)

This has every resources you need like many many many resources. I have starred because this is the only repo i need if i face any problem. 

Link => https://github.com/RitikPatni/Front-End-Web-Development-Resources
<hr>

Pasting the links again. I know you're lazy 😂😂
-  [Interview handbook](https://github.com/yangshun/tech-interview-handbook) 
-  [YDN](https://github.com/you-dont-need/You-Dont-Need) 
-  [Front-End Web Dev Resources](https://github.com/RitikPatni/Front-End-Web-Development-Resources) 
<hr>

Thanks for reading. Hope You'll find the above 3 repos useful.