teleren/devto huggingface dataset:
CoderDave - DevOps, just BETTER!
Tags: devops, github, showdev, azuredevops
Published: 2020-08-11 02:04:19

DevOps, Cloud, Azure, Coding and Microsoft. This is CoderDave.

We have a new technical video each Tuesday, and don't miss the "3 minutes Friday" where I try to introduce a concept, product, service or teach you something in just 3 minutes! 

If you don't want to miss a thing, just subscribe and turn on the notifications.

QUESTIONS?
Have a question about DevOps, Cloud, Coding, or Anything Else? Post in comments section of this video!

SUBSCRIBE to CoderDave here: https://www.youtube.com/CoderDave?sub_confirmation=1
Help: Let's Podcast Together
Tags: help, webdev, firebase, amplify
Published: 2020-08-11 01:57:45

Hey fellow dev's (or is it coders). I host a very unpopular but hopefully one day popular podcast about all things web. Including how to become a successful coder and what it is like working in development teams. 

What I need help with is creating a regular group of individuals that all love the Web, just like myself! Think https://frontendhappyhour.com/ but without as much drinking. I want to make this podcast a community effort so I am happy to take any advice and want to build this collaboratively!

I am also looking for guests to come on and talk about the amazing technology that you are working on.

So if you are interested checkout
https://purrfect.dev/

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

Feel free respond in the discussion or
📧 alex@codingcat.dev
🐦 https://twitter.com/CodingCatDev
🗣 https://discord.gg/fRJTRjR
Primalidade
Published: 2020-08-11 01:18:05

## Primalidade python  
```
n = int(input('Digite número diferente de zero: '))

primo = 0
count = 1
while count <= n:
    if n % count == 0:
        primo += 1
    count += 1
if primo == 2:
    print('primo')
else:
    print('não primo')

```
:space_invader:
Kotlin - Val ou Var, qual usar?
Tags: brazil, kotlin, beginners, android
Published: 2020-08-11 01:17:46

Olá mundo! 

Esse fim de semana saiu o 3° vídeo do curso de Kotlin, heim!? 

Tá interessad@ ou tem um(a) amigx que tá afim de aprender a linguagem de programação adotada pela Google para criar apps para #android.

➡️ https://youtu.be/QuPftWm74LM ⬅️

Manda esse vídeo pra el@
React v17.0 announced
Tags: news, react, javascript
Published: 2020-08-11 00:26:39

The React team has announced that they have released the first Release Candidate[^1] for React 17.0.

{% twitter 1292927001825808385 %}

You can read more about v17.0 over on the [React blog](https://reactjs.org/blog/2020/08/10/react-v17-rc.html).

[^1]: The [release candidate](https://en.wikipedia.org/wiki/Software_release_life_cycle#Release_candidate) means that it is like a beta for v17.0, and once it's confirmed that it is bug-free, will be released as a "stable" release.
Generator function and for..of statement in JavaScript
Tags: javascript
Published: 2020-08-11 00:00:00

---
  title: Generator function and for..of statement in JavaScript
  published: true
  tags: JavaScript
  date: Tue Aug 11 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/generator-for-of-loop-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-4acd9ed6bbbddddd5fcb1a455161eac8.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/generator-for-of-loop-javascript)
  
Suppose we have a generator function which returns the even numbers from 0 to 100.

```javascript
// Even Numbers Generator Function
function* EvenNumberGen() {
  for (let i = 0; i <= 100; i++) {
    if (i % 2 === 0) {
      yield i;
    } else {
      continue;
    }
  }
}
```

Let's use this generator function with a `for...of` looping statement.

```javascript
// Even Numbers Generator Function
function* EvenNumberGen() {
  for (let i = 0; i <= 100; i++) {
    if (i % 2 === 0) {
      yield i;
    } else {
      continue;
    }
  }
}

// using generator function inside
// a for...of looping statement.
for (let evenNumber of EvenNumberGen()) {
  console.log(evenNumber);
}
```

As you can see we never have to use the `next()` method and extract the value using the `value` property.

This is because generator functions are **iterable** by default. The `next()` method in the generator function is called automatically and the `value` property is extracted in the `for...of` looping statement.

### Feel free to share if you found this useful 😃.

---
A journey from Node to GoLang
Tags: node, go, performance
Published: 2020-09-01 10:56:25

---
title: A journey from Node to GoLang
published: true
date: 2020-08-11 00:00:00 UTC
tags: NodeJs,Golang,Performance
canonical_url: https://www.loginradius.com/engineering/blog/a-journey-from-node-to-golang/
---

If your existing technology is not fulfilling all your needs and you are thinking about switching to the new one. Also, if you are concerned about the performance. Here is the blog that can help you in this direction.

   
[Read On](https://www.loginradius.com/engineering/blog/a-journey-from-node-to-golang/)
TwilioQuest 24時間チャレンジ開催のおしらせ
Tags: event, twilioquest, rpg, japanese
Published: 2020-08-18 02:06:58

---
title: TwilioQuest 24時間チャレンジ開催のおしらせ
published: true
date: '2020-08-11'
tags: Event, TwilioQuest, RPG, Japanese
canonical_url: https://www.twilio.com/blog/twilioquest-summer-challenge-japan
---

こんにちは！猛暑が続いていますが、お元気でしょうか？私は夏の暑さとCOVID-19感染者数の増加により、すっかり引きこもっている毎日です。

さて、先日7月4日にTwilioJP-UG岡山さん主催によるTwilioQuest Nightがオンラインで開催されました。

[takeshi.furusato.blog - TwilioJP-UG Okayama #4 TwilioQuest Night を開催しました。](https://takeshi.furusato.blog/2020/07/10/twiliojp-ug4.html)

今回はこのイベントをもとにTwilio Japanとして2020年8月28日（金）〜 29日（土）にかけて獲得経験値を競う「TwilioQuest 24時間チャレンジ」を開催します。

## TwilioQuestとは

TwilioQuestは、Twilioが提供する製品の利用方法やJavaScript、PHP、Python、GitHubについてゲームをプレイするように学べるチュートリアルです。最新バージョンではMac/Windows/Linuxそれぞれにインストールでき、自分自身のペースでミッションに挑戦できます。

参考記事 - [Game + Tutorial = TwilioQuest3のはじめかた](https://dev.to/twilio/game-tutorial-twilioquest3-40cb)

## 24時間チャレンジについて

今回のTwilioQuest 24時間チャレンジは制限時間内にどれだけ経験値を獲得できるかを競うイベントとなります。ご自身が興味のあるミッションを好きな時間にプレイできるため、これまで使ったことのないプロダクトや言語などに挑戦することができます。

参加者および高得点者には豪華賞品をご用意しています！例えば...

- TwilioQuest Tシャツ（参加者全員に進呈）  
 ![TQ - T-shirts](https://twilio-cms-prod.s3.amazonaws.com/images/MS0nFh6SlYK6KyCZzfx0PVnD-B485HWracoqKIg64krrFc.width-500.png)
- TwilioQuest DevBox（上位2名に進呈）  
 ![TQ - DevBox](https://twilio-cms-prod.s3.amazonaws.com/images/lGZdoKOFkMp9V9kqIYhhz8XDHDPoliF6ErCCltKz7JaX0K.width-500.png)
- さらに豪華賞品を追加予定（後日アナウンス）

## 参加条件

こちらは至ってシンプルです。[イベントに登録いただく](https://connpass.com/event/185412)こと、[TwilioQuest 3](https://www.twilio.com/quest)をダウンロードし、インストール、プレイできる環境をご用意いただくことと、賞品を受け取る場合は[弊社の登録フォーム](https://twilioquest242020.splashthat.com/)にも別途登録いただくことが条件となります。

## イベント期間中のサポートについて

イベント期間中は、次の予定（日本標準時）でTechnical Assistantによるサポートを提供します。Twilio社員やTwilio ChampionsがTwilioQuestのプレイ方法やミッションについての質問などを日本語でお答えします。

- 2020/08/28 16:30 - 18:00  
Ask the TA (オープニングイベント内)
- 2020/08/28 18:00 - 20:00  
Slackチャンネル内での非同期Q&A
- 2020/08/28 20:00 - 22:00  
[Twitch配信](https://www.twitch.tv/neri78): 途中経過発表ならびにリアルタイムQ&A
- 2020/08/28 22:00 - 08/29 05:00  
Slackチャンネル内での非同期Q&A
- 2020/08/29 05:00 - 07:00  
[Twitch配信](https://www.twitch.tv/neri78): 途中経過発表ならびにリアルタイムQ&A
- 2020/08/29 07:00 - 12:00  
Slackチャンネル内での非同期Q&A
- 2020/08/29 12:00 - 14:00  
[Twitch配信](https://www.twitch.tv/neri78): 途中経過発表ならびにリアルタイムQ&A
- 2020/08/29 14:00 - 17:00  
Slackチャンネル内での非同期Q&A

\*ストリーミングについては予定が変更になる可能性があります。

## 参加方法

下記イベントページよりご登録ください。

[TwilioQuest 24時間チャレンジイベントページ](https://connpass.com/event/185412)

## この記事についての問い合わせ

イベントについての質問がありましたらぜひお問い合わせください。みなさんの参加をお待ちしています！

- Twitter ([@Neri78](https://twitter.com/neri78))
- Email: [dikehara@twilio.com](mailto:dikehara@twilio.com)
- Github: [https://github.com/neri78](https://github.com/neri78)
- Twitch: [https://twitch.tv/neri78](https://twitch.tv/neri78)
What did you do during the COVID-19 Lock down?
Tags: computervision, opencv, machinelearning, covid19
Published: 2020-08-10 23:42:03

We lost so many great people during the COVID-19 pandemic. I want to ask you guys what you did during the time you had.

That being said during the quarantine I was dedicated to learn and not just learn but do it in a fun way. I was trying to increase my skills on computer vision and there is no better way to do than automating the computer to play the Chrome dino game by using Computer Vision. You can find the video of the game by clicking the link below.

I am not saying it's not perfect but it is sometimes good to make a good thing out of a bad situation.
![Computer Playing Chrome Dino Gif](https://dev-to-uploads.s3.amazonaws.com/i/1xglkyt7etlhh44uh151.gif)
Youtube Video : https://www.youtube.com/watch?v=lqmwLh4eYX8
Picking a programming language (for 2020)
Tags: elixir
Published: 2020-08-10 23:09:02

__spoiler alert__: It's [Elixir](https://elixir-lang.org)


Why I choose to program in Elixir
---------------------------------

First, the negatives

#### Drawbacks

Elixir isn't a perfect language by any means. Here are some drawbacks of the language:
* The static type checker (aka [dialyzer](http://erlang.org/doc/apps/dialyzer/dialyzer_chapter.html)) error messages are difficult to understand
* The actor model and OTP don't have the best APIs, and they can be difficult to grasp at first
* The tooling around the language (such as third-party libraries) is not as complete as say, Ruby, Python, or Java.
(This is improving, however)

# Positives

### It's familiar
I have been programming in Elixir as a hobbyist since 2016, and professionally for a year and a half.
I know it better than I know any other language.
This means that I will more likely be most productive with Elixir compared to other languages.

### It's simple
The Elixir language is simple and straight-forward. The build tools __just work__ (I have spent entirely too much time trying to get IntelliJ to use the right JVM for Java projects)
Mix is really cool, testing (including DocTests) are built-in as a language feature.
Phoenix itself is readily familiar to anyone who has built MVC applications.

### It's feature rich
Phoenix [LiveView](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html) is a serious game changer for writing real-time apps with minimal JavaScript.
Seriously, if you haven't check out the [15 minute Twitter clone demo](https://www.phoenixframework.org/blog/build-a-real-time-twitter-clone-in-15-minutes-with-live-view-and-phoenix-1-5) that Chris McCord does.
Phoenix gives you a lot of features out of the box.

### It's powerful
Elixir has been used by several organizations to increase traffic. (See Discord, BleacherReport, and others)
Are my app going to have that much traffic? Well, not yet (and probably never), but a lot of this you get for free with the way Elixir concurrency and the [Phoenix Framework](https://phoenixframework.org) work.

For all these reasons, Elixir is my language of choice for side projects and random hacking.
Using Cypress to test DoltHub
Tags: cypress, testing, react, webdev
Published: 2020-08-10 23:01:04

[Dolt](https://www.doltdb.com) is Git for data and [DoltHub](https://www.dolthub.com/) is our Next.js web app that houses Dolt repositories. We blogged about why we use [Cypress](https://www.cypress.io/) for our end-to-end testing, how to set it up and get started writing tests, and some limitations we found.

Check it out here: https://www.dolthub.com/blog/2020-08-10-testing-dolthub-cypress/
#048 Kubernetes - namespaces 1
Tags: kubernetes, devops, tutorial
Published: 2020-08-10 22:55:50

# Introduction
![intro](https://media1.tenor.com/images/f15057a41413c960db1f328ca5a732e3/tenor.gif?itemid=6203225)

this is part 48 from the journey it's a long journey(360 day) so go please check previous parts , and if you need to walk in the journey with me please make sure to follow because I may post more than once in 1 Day but surely I will post daily at least one 😍.

And I will cover lot of tools as we move on.
***

# Namespaces

![ns](https://hover.blog/wp-content/uploads/2016/09/domain-web-host-separated.jpg)

namespace in general is logical separator used to make sure that process or in case of programming variables with same name are isolated by a logical name.
In Kubernetes it is the same we use namespaces in large projects to divide a cluster into small isolated clusters using namespaces. 
***
# Lab

![mad](https://media1.tenor.com/images/4800838e793768298c7d6132734abca4/tenor.gif?itemid=11957205)

the default Kubernetes is guess what? default.
to get namespaces we type
![ns](https://dev-to-uploads.s3.amazonaws.com/i/24mikezeu357aush5a8d.jpg)
```bash
kubectl get ns
```
ns is shortcut of namespaces.
let's get the pods list
![po](https://dev-to-uploads.s3.amazonaws.com/i/5wzbfs9v8t0ukltbvwmn.jpg)
```bash
kubectl get po
```
po is shortcut of pods
to get the pods under default namespace
![nsd](https://dev-to-uploads.s3.amazonaws.com/i/2lhqlpn5y6vetoxmrsbl.png)
```bash
kubectl get po -n default
```
-n is shortcut of --namespace.

it get all the pods because all my pods are in namespace.
![ns](https://dev-to-uploads.s3.amazonaws.com/i/0ll8lgqcu59p7ssnwk3s.png)
```bash
kubectl create ns test-k
```
test-k is the namespace if i get the pods under this namespace
![tk](https://dev-to-uploads.s3.amazonaws.com/i/tvthjuq0c0iy03h2sm5w.png)
```bash
kubectl get po -n test-k
```
it's empty. That's is the use of it , now I can have sub clusters inside a cluster.
also same as old way we can separate pods created using a yml file 
```bash
kubectl create -f ex.yml -n tesk-k
```
or we can specify namespace inside the yml file himself.
VSCode Snippet your ES6 template literals! 
Tags: javascript, es6, vscode, productivity
Published: 2019-06-22 08:46:30

---
title: VSCode Snippet your ES6 template literals! 
published: true
description: Creating your own snippets
tags: #JavaScript #ES6 #VSCode #productivity
---

![code](https://thepracticaldev.s3.amazonaws.com/i/waip3rz6vb58s7ajsetm.png)
The more you use ES6 [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) into your `console.log()` - like I do -, the more you need your VSCode snippet! Do not repeat yourself writing the same template!

```javascript
const greetings = "Hello"
console.log(`${greetings} the DEV community!`) // Hello the DEV community!
```
Creating your own snippet with VSCode is easy:

`VSCode > File > Preferences > User Snippets > New Global Snippets file` 

then, select the language you want the snippet to be available for, `JavaScript `in our case, copy and past your [snippet syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax) as `.json` format:

`{}javascript.json VSCode file`
```json
//...
"Template literals to console": {
    "prefix": "clgt",
    "body": [
        "console.log(` ${$0}`)"
    ],
    "description": "Template literals to console"
}
//...
```
This is it !

Now, in any `.js` file you are working on, simply type the snippet prefix `clgt` an press `Tab` to insert a new snippet into your code. Don't forget to enable the tab completion of your editor first `"editor.tabCompletion": "on"`.

Tip => [snippet generator
](https://snippet-generator.app/)


Next step?

Have fun & Be creative!

Thanks for reading!

See you next time!

Drozerah
10 Free Tables With 58 Most Useful JavaScript Functions part 1/10
Tags: javascript
Published: 2020-08-10 22:54:17

Download 10 Free Tables With 58 Most Useful JavaScript Functions: https://bit.ly/free-js-tables

If you want to have more fun buy Summon The JSON: JavaScript. 10% DISCOUNT until Sunday: https://bit.ly/shopify-stj

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0apbzcs4fcuu0ck72s3p.jpg)
C# Object Initialization and Constructor
Tags: csharp, dotnet, oop, codenewbie
Published: 2020-08-10 22:51:47

When we have few fields in a class and want to initialize every field in a constructor it should become a little bit messy and maybe we need a few constructors.
```csharp
public class User
    {
        public string Name;
        public List<string> Roles;
        
        public User(string name)
        {
            Name = name;
        }

        public User(string name, List<string> roles)
        {
            Name = name;
            Roles = roles;
        }
    }

```
We can use object initializer syntax, to initialize our properties and reserve the constructor, for the cases when we really need them, removing the constructor our class looks cleaner.
```csharp
public class User { 
   public string Name; 
   public List<string> Roles; 
}
var test = new User
{
   Name = "Dany",
   Roles = new List<string>() {"Admin", "Normal"},
   Id = 12
};

```
Read more in https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers
Happy C#

Photo by <a href="https://unsplash.com/@chris_j_scott?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Chris Scott</a> on <a href="https://unsplash.com/s/photos/initial?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
My Journey to Software Engineering
Published: 2020-08-10 22:47:00

My interest in Software Development came from me being able to communicate with my mum who lives on the other side of the world from me. It brings me joy to be able to talk to her and see her through such technology. This being the reason, I decided to start my journey in Software Engineering, seeing how innovative we are nowadays with technology. It excites me and encourages me to keep learning and keep improving myself on a daily basis. My agenda is to keep learning never stop learning and I want to help others and make a change in someone's life through creating something innovative.
Microsoft's Chief Medical Officer, Dr. David Rhew, on how Covid-19 is accelerating digital transformation in healthcare.
Tags: covid, microsoft, podcast, iot
Published: 2020-08-10 22:36:38

Dr. David Rhew, Chief Medical Officer & VP of Healthcare, Worldwide Commercial Business at Microsoft, shares his experience navigating the pandemic and discusses ways healthcare has evolved through digital transformation. Tune in (https://bit.ly/359C9Fh) to explore examples of how digital transformation in healthcare is shifting into a higher gear in response to COVID-19 on the latest episode of The IoT Unicorn Podcast. #MSIoT
Use Ansible to add users
Tags: devops
Published: 2020-08-10 22:30:43

This will be a short but sweet dive into setting up users in your EC2 container with only their GitHub handles and ansible. I am expecting you have some ansible knowledge, so I won't dive deep into a beginner's tutorial. For that, I would suggest [Ansible's own docs](https://docs.ansible.com/ansible/latest/network/getting_started/first_playbook.html) to get started.

## Github

Every single GitHub user out there has access to their public key via curl. Don't believe me? Go to `https://github.com/[your_handle].keys` and _*voila*_ your pub key is there for the taking. [`Here is mine`](https://github.com/ematta.keys). So, now that you have that bit of knowledge in your head, let's move on.

### Ansible Playbook

#### vars

Step 1 is to create a `vars` file for the users. I've chosen the following structure for `vars/users.yaml`:

```yaml
---
create_users: true

account_names:
  - { user: 'enriquem', key: 'https://github.com/ematta.keys' }
```

Add as many users you need to manage your EC2 instance. In this example, it's just me.

### Users Role

#### Defaults

In your `defaults` folder you should add a `main.yml` file loaded with:

```yaml
---
create_users: true
```

#### Files (sudoers)

Add the following under `files/sudoers`:

```shell
%sudo ALL=(ALL) NOPASSWD:ALL
```

#### Main Task `main.yaml`

Finally, you add this as your tasks for the users role. 

```yaml
---
- name: Verify you have wheel
  group:
    name: wheel
    state: present
  become: yes
  tags:
    - users

- name: Set wheel to passwordless sudo
  lineinfile:
    dest: /etc/sudoers
    state: present
    regexp: '^%wheel'
    line: '%wheel ALL=(ALL) NOPASSWD: ALL'
  become: yes
  tags:
    - users

- name: Create all users accounts
  user:
    name: "{{ item.user }}"
    shell: "/bin/bash"
    groups: 
      - users
      - wheel
    system: yes
    state: present
    append: yes
  with_items:
    - "{{ account_names }}"
  become: yes
  tags:
    - users

- name: Add ssh key for creted 
  authorized_key:
    user: "{{ item.user }}"
    key: "{{ item.key }}"
    state: present
  with_items:
    - "{{ account_names }}"
  become: yes
  tags:
    - users
```

Now, with all that in, just add `users` to your `site.yaml` file and **poof** you now have an easy way of adding users to an existing EC2 container.
Day 192: Better
Tags: hiphop, code, coding, lifelongdev
Published: 2020-08-10 22:22:23

_liner notes_:
- Saturday : So, I figured out a bug I was running into when trying to put an image in my canvas. Looks like if you are trying to import an image from an external server, you run into cross origin error. That made my media stream stop working and that caused an error with the video feed. Pretty happy to get it working. Made me feel better. haha. I also ordered a bunch of stuff for my van. Then it was time to do the radio show. My co-host couldn't make it, but still had a really good time. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![James Clyburn standing behind a blurry image of Joe Biden in the foreground with the words August 8, 2020 and Same Struggle? ](https://dev-to-uploads.s3.amazonaws.com/i/mnqeycq80tid37advdao.jpg)

- Sunday : Did the post radio show promo work. Since my co-host wasn't there, I had to do a few more things. I actually played some video games. Stadia was having a free trial of a game for the weekend. I'm really bad a shooting games. haha. Worked a little on my side project. Now that I got that canvas blocker worked out, I need to figure out the best way to incorporate it into the code. Also watched an episode of "N0S4A2". The show is getting real. haha

- Professional : Had a couple of meetings today. I helped answer a question in the Community and made an application to try and understand an error another person was getting. I think I need to get more info because I wasn't able to recreate the error consistently. I did work out a possible issue with an event listener being added multiple times. Pretty good day.

- Personal : I'm pretty tired. The fabric I ordered and some magnetic hooks came in. I put them up in the van and it really blocked out the light. I was pretty dark in the van during the day. I have some more things being delivered. It's really coming together!

![View of the Grand Canyon](https://dev-to-uploads.s3.amazonaws.com/i/sd9k1bfgr942e64ryb1z.png)

I think I have a pretty good idea of how I want to get the text and images on the canvas and how to change them depending on the scene. I'll be working on that and playing around with the packages when they come in. Also, I need to pack up more stuff in my room.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube k5iYDmD-AX0 %}