teleren/devto huggingface dataset:
62 + Places To Distribute Your Software / SaaS Content
Tags: saas, startup, sideprojects
Published: 2020-04-24 13:25:53

If you have a software project that you're creating content for and your not sure where to distribute it... I put together a list of 62 places where you can promote your software / SaaS content online: 

You can download the spreadsheet here 👇👇 (click on "download distribution template layout #2" to get the exact layout that you see in this thumbnail of this post)

https://www.whalepages.com/channels-to-distribute-your-saas-blog-content/

Hope you enjoy this resource 🙏
Ubuntu 20.10 "Groovy Gorilla's" Release Draft
Published: 2020-04-24 13:00:30

Currently very very little is known about Ubuntu 20.10 "Groovy Gorilla". What we do currently have eyes on is the current release schedule. The name was already proven possible by [Phoronix](http://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-Groovy-Gorilla) and seeing the teasing by Alan Pope himself (mentioned in the article) in Telegram (Ubuntu Podcast is where I originally saw it, however cannot re-find it). 

What do we know so far? Well, basically only the name (and even that is not fully confirmed) and a [draft timeline](https://discourse.ubuntu.com/t/groovy-gorilla-release-schedule/15531), which makes sense when Focal Fossa released only yesterday as of writing. What can we confirm? Nothing, we can speculate.

# Current theories I have
Well, it is likely we will see newer kernels being used (as mainline (non-LTS) releases don't aim for 5-year support). We might also see more snap packages be included and a higher shift towards Snaps as default. Another possible thing to see is more icons supported by Yaru, the default theme on Ubuntu.

Don't take any of this as fact, just speculation and educated guessing that is fairly generic. If I am going, to be honest, like 19.04 and 18.10 I do not feel like there will be a massive shift in the release Until 21.04 at the earliest.
Build an HTTP client and juggle Async calls in Node
Tags: node, javascript, beginners, tutorial
Published: 2020-04-25 02:36:22

---
title: Build an HTTP client and juggle Async calls in Node
description: In this third part of my Node.js series, we're getting into the stuff that's extremely applicable for web developers. We'll build an HTTP client and learn how to juggle some interdependent asynchronous calls.
published: true
date: 2020-04-24 12:58:00 UTC
tags: node,Javascript,beginners,tutorial
canonical_url: https://raddevon.com/articles/build-an-http-client-and-juggle-async-calls-in-node/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/sorqjey1kvjhh9zvaa1a.jpg

---
We started learning [Node.js](https://nodejs.org) together in [a recent video](https://raddevon.com/articles/first-steps-with-node-js-part-1/) and followed that up by [building our own Node module](https://youtu.be/a35evCZbLoM). We’ll continue through the Node.js workshop in this video by building an HTTP client and learning how to manage multiple asynchronous calls that are dependent on one another. We’ll also get some practice refactoring by revisiting a solution that worked but wasn’t very maintainable.

{% youtube HnbTXHblARk %}

Video Notes
-----------

❗ If you missed the first two videos, go back and watch them before you try your hand at these exercises.  
📺 [Part 1](https://staging2.raddevon.com/articles/first-steps-with-node-js-part-1/)- We dip our toe in learning how to deal with I/O and how to use core Node modules.
📺 [Part 2](https://staging2.raddevon.com/articles/first-steps-with-node-js-part-2/)– We use an array method to filter a directory listing and try our hand at building our own module.

📝 We’re working through the excellent [Learn You Node workshop](https://github.com/workshopper/learnyounode) together.

📚 As you work through the exercises, use the [Node.js documentation](https://nodejs.org/dist/latest-v12.x/docs/api/) to help you understand how to use Node’s core modules.

👋 Thanks for watching! Look out for upcoming videos in which we’ll work through the remaining exercises together.

Hey, I’ve been making these tutorials. They’re fun for me, and they’re probably fun for you too. Just make sure you don’t fall into the trap of working through [tutorial after tutorial](https://raddevon.com/articles/stop-doing-coding-tutorials/) while never getting any closer to your ultimate goal of becoming a web developer.

One way to do that is by [**doing freelance work**](https://raddevon.com/articles/inverted-career-path/), but how do you price it? I wrote the book on the subject! 💰 [Get a free chapter](https://raddevon.com/freelance-web-development-pricing/) to get started.
How do you dive into large open source projects?
Tags: opensource
Published: 2020-04-24 12:50:50

I recently got started with Golang. It's a pretty awesome language.

I decided to contribute to [Hugo](https://github.com/gohugoio/hugo), but I eventually became afraid to start. It felt like I'll take forever to acquaint myself with a code base that large, let alone finding bugs and solving issues.

On the other hand, I've also heard people say that you do not need to know the entire code base to start contributing. I've started to think if that depends on the nature of the project perhaps.

I would appreciate if anyone has advice on what should be the preferred mindset, and/or their experience in such a situation.

Much thanks!
Change mysql root password on Centos7
Tags: mysql
Published: 2020-04-24 12:49:24

---
title: Change mysql root password on Centos7
published: true
description: 
tags: #mysql
---

## Stop Mysql
      systemctl stop mysqld

## Set Mysql environment option 
      systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"

## Start Mysql
      systemctl start mysqld

## Login to Mysql as root
      mysql -u root

## Update the root user password
      mysql> UPDATE mysql.user SET authentication_string = PASSWORD('MyPassword')
      -> WHERE User = 'root' AND Host = 'localhost';
      mysql> FLUSH PRIVILEGES;
      mysql> quit

## Stop mysql
      systemctl stop mysqld

## Unset the mySQL envitroment option so it starts normally next time
      systemctl unset-environment MYSQLD_OPTS

## Start mysql
      systemctl start mysqld

Login to mysql again using your new password:
## mysql -u root -p

NB : for 5.7.6 and later, you should use
       mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
Custom Shortcuts in VSCode
Tags: vscode, javascript, webdev
Published: 2020-04-24 12:43:27

Shortcuts make our development so easy.

I am going to tell you how do you enable shortcuts in one of our favorite editors.

When I build UI, I am a big fan of console messages for checking responses/debugging.

So I have customised cmd + shift + l = console.log(''); 

How do I achieve that?

Open VS Code and Search - Keyboard shortcuts (JSON)

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

Write your custom keybindings as below

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

Similarly, you can add n number of Objects and assign unique keystrokes.

[Example gist (https://gist.githubusercontent.com/shirshandu/f85149bd2014eaaff623ae58e7a62ee3/raw/295a8825dbfbb35a58abf63eb2501000eaee33fd/shortcuts.json)
Understanding Kubernetes: part 2 - CronJobs
Tags: kubernetes, devops, docker, beginners
Published: 2020-04-24 12:39:46

---
title: Understanding Kubernetes: part 2 - CronJobs
published: true
description: Serie of sketchnotes about Kubernetes. Explaining in a visual way Kubernetes principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Kubernetes in sketchnotes
---

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes about Kubernetes. I think it could be a good way, more visual, to explain Kubernetes (and others technologies).

We continue the serie of Sketchnotes about Kubernetes with CronJobs.

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


If you are interested, I published an entire illustrated book about Kubernetes, available in paperback on [Amazon](https://www.amazon.fr/dp/B0BB619188/ref=cm_cr_arp_d_product_top?ie=UTF8) and in digital version on GumRoad: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).
Understanding Kubernetes: part 1 – Pods
Tags: kubernetes, devops, docker, beginners
Published: 2020-04-24 12:20:01

---
title: Understanding Kubernetes: part 1 – Pods
published: true
description: Serie of sketchnotes about Kubernetes. Explaining in a visual way Kubernetes principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Kubernetes in sketchnotes
#cover_image: https://dev-to-uploads.s3.amazonaws.com/i/m7ajo4bv685j4ax2raeb.jpg
---

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes about Kubernetes. I think it could be a good way, more visual, to explain Kubernetes (and others technologies).

I start this serie of Sketchnotes about Kubernetes with one kind of resource: Pods.

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


If you are interested, I published an entire illustrated book about Kubernetes, available in paperback on [Amazon](https://www.amazon.fr/dp/B0BB619188/ref=cm_cr_arp_d_product_top?ie=UTF8) and in digital version on GumRoad: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).
MERN BOILER PLATE
Tags: node, mongodb, reactredux, mernboilerplate
Published: 2020-04-24 12:19:31

---
title: MERN BOILER PLATE
published: true
description: A well structured and commented boiler plate code for devs
tags: Nodejs, MongoDB, React(Redux), MERNBoilerPlate
---
" A well structured and commented boiler plate code for devs "

Link for the code on __*[Github](https://github.com/PrakadAlpha/mern-boiler-plate)*__

## 👷‍♂️ Contents of the backend
  - Node and Express server
  - Simple *User authentication* mechanism
  - Basic *Route protection* also enabled
  - Implemented *JWT*, token based authentication 
  - Also added *Role Based Authentication* sample code
  - Express *asyncHandler* wrapping mechanism for handling async errors 
  - Routes and Middleware details are well *commented*
  - Used dotenv for *Environment Variables*(config.env)
  - *Mongoose* for Db connection in config folder(db.js)
  - Powerpacked express middlewares(helmet etc..) for preventing basic attacks (XXS, NoSQL injection)

## 👨‍💻 Contents of the frontend
  - Built with React and Redux
  - Updated __*Redux Hooks*__ usage(useSelector and useDispatch)
  - Usage of *__redux-thunk__* for handling the async code
  - Added basic *customizable css* for easy usage 
  - *Axios* for api requests
  - Removed tests and extra files 

## 🛠 Project Setup Instructions

  - To install the Client and Server dependencies.
    
    ```
    npm run setup
    ```

### Development mode scripts
  
  - To run the both end's using concurrently.
  
    ```
    npm run dev
    ```

  - To run the backend in development mode using Nodemon.
    
    ```
    npm run server
    ```   

  - To run the frontend in development mode.  
    
    ```
    npm run client
    ```  

### Production mode script
  
  - To build the client and run the server

    ```
    npm run prod
    ```
## 💖 Download & Share  

  *Absoultely! Feel free to share the repo and the code,  
Give a ⭐ __star__ if it was helpful, please do share!*

## ➕ Contribution  

 *Anyone is welcome to contribute. Please feel free to submit a Pull Request for typo fixes, spelling corrections and improvements etc..*

Link for the code on __*[Github](https://github.com/PrakadAlpha/mern-boiler-plate)*__
April 24 — Daily CodeNewbie Check-in Thread
Tags: codenewbie, checkin, beginners, discuss
Published: 2020-04-24 12:15:23

---
title: April 24 — Daily CodeNewbie Check-in Thread
published: true
description: A daily thread to ask questions, share progress, and stay accountable!
tags: codenewbie, checkin, beginners, discuss
series: Daily Checkin
---

You are encouraged to use this daily thread to:
- Ask for help (all questions encouraged)
- Explore topics you’re curious about
- Share something you’ve written or read
- Celebrate your wins
- Stay accountable to your goals
- Support your fellow programmers

Happy Coding!

---

_Interested in joining the twice-weekly live [#CodeNewbie Twitter chats](https://twitter.com/search?q=codenewbie)?  You can find us [on Twitter](https://twitter.com/search?q=codenewbie) each Wednesday at 9pm ET (1am GMT on Thursday) and Sunday at 2pm ET (6pm GMT)!_
Smart Labeling of Suggestions
Tags: deepcode, testing
Published: 2020-04-24 12:14:00

When using DeepCode, you might see the following effect:
![Same suggestion twice?](https://dev-to-uploads.s3.amazonaws.com/i/h7qr4pefqselm1nkjafy.png)

On the first glimpse, it looks like the same suggestion. The difference is actually in the tags. One of them is *Info* and one is *InTest*. How comes?

#Suggestions in Test Code#

When you run tests, you probably want to to check for unsupported conditions and when mocking environments, you will use static elements. As an example, you can test your code by providing a wrong type to a function call, or mocking by using a hard-coded password. Obviously, DeepCode’s rule would point out this problem.
While we are providing the option to exclude certain directories from a scan using `.dcignore` (see [here](https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-) ) but what if you scan a repo for the first time. It might clutter the whole result set. So, DeepCode applies some smartness to flagging suggestions.

#Smart Flags#

DeepCode tries to understand if the code is actually part of the test suite. This is done by applying some rules including scanning the path and file name. Since DeepCode cannot finally decide if you want to skip the test code analysis results. If you see the example above, it might make sense to touch the tests, too. Therefore, we add a flag that enables you to decide to have testing code in or not.

#Summary#

![Filter Options](https://dev-to-uploads.s3.amazonaws.com/i/eekm5rqvjmfa3mtf13vp.png)

A best practice is to keep all results in but watch out for the *InTest* flag. If you see a security issue like a hardcoded password in a test, you can relax. But sometimes, you will find nuggets in your test code that you should have a look at because it might break your tests. Btw, simply clicking on a tag, makes it a search query. If you click on the filters in the top right corner, you can deselect InTest to suppress all suggestions in test files.
Started working on a library for building web sites
Tags: javascript, html, web
Published: 2020-04-24 12:13:20

---
title: Started working on a library for building web sites
published: true
description: 
tags: javascript, html, web
---
<img src="https://raw.githubusercontent.com/BrsJsk/sfy/master/assets/logo.svg" width="120px"/>



While building my personal, very simple, web site I did not really want to use frameworks such as Angular or React as it would be a bit too much for a simple site..and did not really want to set up webpack from scratch..

So, what does a developer do when he does not want to use premade solutions which make his life easier? Creates his own library, of course!

I really liked the idea of it, plus it is nice practice for me to work on a library.

What it does now is that it converts SCSS to CSS, MD to HTML and displays blog posts list in index.html file.

It's barebones but its fun to work on this, my kind-of-first library..I was really excited when I found out what npm link does!

Here is a github repo url: https://github.com/BrsJsk/sfy
Docs: https://brsjsk.github.io/sfy/#/
Live example: https://keen-swanson-66c35f.netlify.app/
Comments are welcome!

Might not be the most original idea(we already have tons of libraries and frameworks), but I personally plan to use it and continue work on it.
JavaScript Quiz Question #4: Prototypal Inheritance
Tags: javascript, challenge, webdev, programming
Published: 2020-04-24 12:03:13

---
title: JavaScript Quiz Question #4: Prototypal Inheritance
published: true
description: In this question, we have a Dog constructor function. Our dog obviously knows the speak command. What gets logged in the following example when we ask Pogo to speak?
tags: javascript, challenge, webdev, programming
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/gffod695zp2c6pr0k3ie.png
---

In this question, we have a `Dog` constructor function. Our dog obviously knows the speak command. What gets logged in the following example when we ask Pogo to speak?

```javascript
function Dog(name) {
  this.name = name;
  this.speak = function() {
    return 'woof';
  };
}

const dog = new Dog('Pogo');

Dog.prototype.speak = function() {
  return 'arf';
};

console.log(dog.speak());
```

A) woof
B) arf

Put your answer in the comments!
Daily Developer Jokes - Friday, Apr 24, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-04-24 12:00:29

---
title: "Daily Developer Jokes - Friday, Apr 24, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Friday%2C%20Apr%2024%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258c20b362.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why did the computer keep sneezing?

___A:___ It had a virus!
 -->
Question: Gatsby + Wordpress Deployment
Tags: help, gatsby, aws, wordpress
Published: 2020-04-24 11:52:44

---
title: Question: Gatsby + Wordpress Deployment
published: true
description: 
tags: help, gatsby, aws, wordpress
---
For Gatsby + Wordpress website *production* deployment, I have a question. Suppose I deployed Gatsby website on Netlify (Fastest to use) and Wordpress website on AWS EC2. 

In production, API must be from a secure source, like from HTTPS. Either it gives warning error.

So my question is: Domain is being set up at Netlify as front end. For Wordpress API, how to install valid SSL Certificate on EC2 without DNS.
Day-12 Largest number at least twice of others 
Tags: python, challenge
Published: 2020-04-24 11:40:58

This problem statement is a part of Leetcode's card Arrays and Strings under the sub-heading Introduction to Arrays.

##### Problem Statement
In a given integer array nums, there is always exactly one largest element.

Find whether the largest element in the array is at least twice as much as every other number in the array.

If it is, return the index of the largest element, otherwise, return -1.

##### Example 1
```
Input: nums = [3, 6, 1, 0]
Output: 1
Explanation: 6 is the largest integer and for every other number in the array x,
6 is more than twice as big as x.  The index of value 6 is 1, so we return 1.
```

##### Example 2
```
Input: nums = [1, 2, 3, 4]
Output: -1
Explanation: 4 isn't at least as big as twice the value of 3, so we return -1.
```

Note:
  1. nums will have a length in the range [1, 50].
  2. Every nums[i] will be an integer in the range [0, 99].

##### Solution Approach
1. Find the largest element and index of the largest element from the array.
2. Iterate over the array and check if twice the value of all other elements is less than the largest_element. If this condition is False return -1 else return the index of the largest element.

```
class Solution:
    def dominantIndex(self, nums: List[int]) -> int:
        largest_element = max(nums)
        result = nums.index(largest_element)
        for index, value in enumerate(nums):
            if (value != largest_element) and (largest_element < 2*value):
                result = -1
                            
        return result
```

##### Learnings
1. Time complexity of the solution is 0(n)
2. Space complexity is 0(1)
The Importance of  Closed Captioning Services
Published: 2020-04-24 11:34:12

What is captioning? 

Captioning is the demonstration of spoken dialogues, scenes, contexts, or music present in the video content in the form of written text. At a glance, the importance captioning gets might seem overhyped, but the statistics are clear (and we will be discussing them), captioning helps garner more viewership and thus sales. This article is aimed at explaining the importance of [online closed captioning services] (https://vanancaptioning.net/Closed-Captioning-Services.php) in the overview of video content making. 



Let’s Look at Some General Statistics: 

The Nielsen poll revealed that an average American in a day spends close to 6 hours of their internet time watching videos only. As such companies have tried to ponder towards this audience base with video advertisement. Another glaring statistic - About reported 500 million viewers to watch 100 million hours of video content on Facebook daily. Among these 500 million viewers, American Press Institute reported that 85% of the videos are being watched without sound. 

Facebook for business conducted research that showed 80% of viewers reacted negatively to video ads that played loudly, urging advertisers to caption their videos. They also found that captioning increases the average view time of ads by 12%, some advertise citing captioning increased video viewership by 25%. 

 
Now Statistics on Captioning

Necessity by law: The 2010 Twenty-First Century Communications and Video Accessibility Act (CVAA) require Video programming distributors (VPDs) to close caption their video content. This also includes those videos shown over the internet after having been shown on the TV. Also, the Americans with Disabilities Act (ADA) is a law that requiring places of public accommodation to be made accessible to those with disabilities. 

Quality of Good Caption

The FCC requires captions to have four qualities - Accuracy, Synchronicity, Completeness, and Placements. The subtitles should provide proper spelling, timing, and grammar. It also requires synchronous run between content and captions (with a little leeway provided for live captioning). FCC also demands completeness of captions from the beginning of the program to the end and placement of subtitles such that it doesn’t obstruct the on-screen content. 

1.Benefits everyone hard of hearing, especially the elderly population - considering 5% of the world has a problem with hearing 

2.Helps in improving reading level among children 

3.Helps improve access to language among deaf children 

4.Improves the understanding of language among foreign nationals and second-language speakers 

5.Benefits bilingual, sign, and spoken language speakers