teleren/devto huggingface dataset:
Secure your Azure apps with EazyAuth and Azure AD
Published: 2020-09-16 00:11:38

This week on the 425 Show we hosted a Microsoft MVP, [Jan Hajek](https://twitter.com/hajekj) to talk about Microsoft Identity and EazyAuth for Azure services. You can catch the stream on YouTube right now!

{% youtube YEPBMge-RzQ %}

If you're not familiar with EazyAuth, it is an Azure Feature for PaaS services like Azure Web Apps and Azure Function Apps that allows you to quickly add authentication to your applications without the need to write any code! You can quickly configure EazyAuth in the Azure portal in a few steps to use your preferred Identity Provider and off you go. You can read more about EazyAuth in our docs [here](https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization)

# EazyAuth advanced/new features
One of the coolest bits of today's stream was learning how to run EazyAuth locally using the App Service middleware container. That's right, you can set up your local development environment to use EazyAuth for authentication so that you, as a developer, can get a continuously consistent experience and a better inner-loop for testing your applications. 

In addition, there is now a way to configure EazyAuth to use any OIDC provider and not just the predefined ones, in effect allowing you to extend the authentication experience and tailor it better to your users. 

You can watch the stream to see how to work with these cutting edge features or read Jan's blog...We'll leave this to you to decide 

- [Jan's blog on all things identity and more](https://hajekj.net)
- [Run EazyAuth locally](https://hajekj.net/2020/05/01/running-easyauth-locally/)
- [Use Azure Logic Apps to build simple APIs](https://hajekj.net/2020/06/01/using-logic-apps-to-build-simple-APIs/)
- [App Service Authentication on Linux](https://hajekj.net/2019/01/21/exploring-app-service-authentication-on-linux/)

# Coming up
This Thursday, for our Community Hours, we are exciting to be joined by the Microsoft Docs team responsible for the Identity related content. This is your chance to be part of the conversation and let us know what you think about the docs, things that you like and areas that we could improve. We're here to listen. So make sure you tune in at 7am PT/2pm UTC

Next week, it's Ignite week. We have special programming and we will be broadcasting with live commentary. Join the party and let's learn together :)

# Come code with us
Finally, I'm sure that by now you know that we love streaming on Twitch! But what we love more is to collaborate with developers and tackle real world scenarios - like today. As such, if you're interested to code with us, if have questions/challenges that you want us to help you with or simply a suggestion on what to stream, then we would love for you to reach out. Join us live on the 425Show :

- Tue 10am ET/2pm UTC
- Thu 10am ET/2pm UTC

Be sure to send your questions to us here, on Twitter ([Christos](https://twitter.com/christosmatskas), [JP](https://twitter.com/AzureAndChill)) or email: iddevsoc@service.microsoft.com!
How to write to a Writable Stream using the pipe() method in Node.js?
Tags: node
Published: 2020-09-16 00:00:00

---
  title: How to write to a Writable Stream using the pipe() method in Node.js?
  published: true
  tags: Nodejs
  date: Wed Sep 16 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/write-to-writablestream-using-pipe-method-nodejs
  cover_image: https://melvingeorge.me/_next/static/images/main-9d29d011d373dca346c07d7c519cb1aa.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/write-to-writablestream-using-pipe-method-nodejs)
  
To write to a `WritableStream`, we can use the `write()` method available in the `WritableStream` object as the data comes in from the `ReadableStream` as we discussed in the [last blog post](https://melvingeorge.me/blog/create-write-stream-node).

This is so common that the Node.js provides a simple way of doing this using the `pipe()` method in the `ReadableStream` object.

Let's look at it now.

Suppose we have a Read stream where we want to read some data from and a write stream to write the read data like this,

```javascript
// require the filesystem module
const fs = require("fs");

// create a read stream to read data
// from hello.txt file
const rs = fs.createReadStream("./hello.txt");

// create a write stream to write the
// read data to toWrite.txt file
const ws = fs.createWriteStream("./toWrite.txt");
```

Now instead of listening on the `data` event and then using the `write()` method to write the data, we can use the `pipe()` method in `ReadableStream` object `rs` like this,

```javascript
// require the filesystem module
const fs = require("fs");

// create a read stream to read data
// from hello.txt file
const rs = fs.createReadStream("./hello.txt");

// create a write stream to write the
// read data to toWrite.txt file
const ws = fs.createWriteStream("./toWrite.txt");

// write to the ws WritableStream
// using the pipe() method
rs.pipe(ws);
```

- The `pipe()` method is only available in a `ReadableStream` and not in `WritableStream`.
- The method accepts a valid `WritableStream` object as its parameter.

Now, You can see that the data of the `hello.txt` file is written to the `toWrite.txt` file.

See this snippet live in [repl.it](https://repl.it/@melvin2016/pipe-method#index.js).

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

---
Login With Facebook
Tags: loginwithfacebook, facebook, facebooklogin, login
Published: 2020-09-19 12:06:38

---
title: Login With Facebook
published: true
date: 2020-09-16 00:00:00 UTC
tags: LoginWithFacebook,Facebook,FacebookLogin,Login
canonical_url: https://www.loginradius.com/engineering/blog/login-with-facebook/
---

There are more than 1 million websites or apps are using "Sign with Facebook" or "Login with Facebook". Do you know why they are using Facebook login? According to multiple surveys, there are more than 3 billion users worldwide are using social media and it is around 50% of the…

   
[Read On](https://www.loginradius.com/engineering/blog/login-with-facebook/)
Durable Functions API - Writing Safe Orchestrations
Tags: azure, serverless, dotnet, tutorial
Published: 2020-09-16 12:57:43

---
title: Durable Functions API - Writing Safe Orchestrations
published: true
series: Durable Functions API
date: 2020-09-16 00:00:00 UTC
tags: azure, serverless, dotnet, tutorial
canonical_url: https://blog.marcduiker.nl/2020/09/16/writing-safe-orchestrations.html
---

![Slide showing Writing Safe Orchestrations](https://blog.marcduiker.nl/assets/2020/09/16/safe-orchestrations-cover.png)

This article is part of [#ServerlessSeptember](https://aka.ms/ServerlessSeptember2020). You’ll find other helpful articles, detailed tutorials, and videos in this all-things-Serverless content collection. New articles from community members and cloud advocates are published every week from Monday to Thursday through September.

Find out more about how Microsoft Azure enables your Serverless functions at [https://docs.microsoft.com/azure/azure-functions/](https://docs.microsoft.com/azure/azure-functions/?WT.mc_id=servsept20-devto-cxaall).

<!--more-->
## Writing Safe Orchestrations

This post is the fifth part of a series of blogs/vlogs to discover the Durable Functions API.

In the video linked below, I’m diving into the [Durable Task Analyzer](https://github.com/Azure/azure-functions-durable-extension/releases/tag/Analyzer-v0.3.0), which is bundled with the Durable Functions extension. This C# Roslyn analyzer helps you to write deterministic code for your orchestrators, so it’s safe to be replayed. The analyzer detects code violations which are described on [this docs page](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-code-constraints).

### Video

Here’s the video, please give it a thumbs up if you like it and please subscribe to my channel if you haven’t done so already:

{% youtube ZtIQgR25_Y0 %}

### Resources

- GitHub repo with demo solution containing the code violations & workarounds: [github.com/marcduiker/demos-durable-task-analyzer](https://github.com/marcduiker/demos-durable-task-analyzer).
- GitHub repo with Durable Functions code snippets: [github.com/marcduiker/durable-functions-snippets](https://github.com/marcduiker/durable-functions-snippets).
My programming language is the best!
Tags: community, csharp, javascript
Published: 2020-09-16 12:14:49

---
title: My programming language is the best!
published: true
date: 2020-09-16 00:00:00 UTC
tags: community, csharp, javascript
canonical_url: https://www.hardkoded.com/blog/my-programming-language-is-the-best
---

I've been porting [Puppeteer](https://github.com/puppeteer/puppeteer) code (to [puppeteer-sharp](https://github.com/hardkoded/puppeteer-sharp)) from javascript to C# since late 2017 and [Playwright](https://github.com/microsoft/playwright) code (to [playwright-sharp](https://github.com/hardkoded/playwright-sharp)) since early 2020.  

One of the things I learned is that programming languages are not about computer instructions, but human interaction.  

Migrating code from Javascript/Typescript to C# is not about translating statements. It's about figuring out how C# developers express what a Javascript developer tried to communicate.  

Each programming language has a community, a background, influencers, and frameworks that shape how programs are written.  
We can't deny that javascript was born to solve simple HTML interactions. And we can't deny that C# was born as a new language to the Visual Basic community.  

In the same way that spoken languages follow a community, their habits, and their way of living. Programming languages follow a programming community.  

What makes a language good or bad is also biased. We consider French romantic because of French music. We might also consider other languages aggressive because that's the language of bad guys in Hollywood movies.  

In the same way, we might consider some languages cooler than others because of influencers and Twitter hype.  

My programming language is the best because it represents my community and how we communicate with each other.  

The next time you get in touch with a language you are not familiar with, instead of thinking if it's bad or good, try to understand from that community and embrace this diversity we have in the industry.

Don't stop coding!
Did you relocate ? Tell me your rellocation experiences
Tags: webdev, discuss, career
Published: 2020-09-15 23:55:57

I'm getting offers for relocation outside my country,  I'm wondering if it's common for developers to relocate to country ? If yes what are your experiences ? I'm willing to move just about anywhere for a dev position, but I don't know how commonly this happens.How should I go about this? Should I watch out for some red flags and what are they ?
await Sleep(x);
Tags: javascript
Published: 2020-09-15 22:39:37

If you're looking for a quick way to pause runtime while you:
* Wait for a response
* Making sure a variable updated successfully
* etc...

## async/await sleep

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

The `len` param is measured in *milliseconds*.

## example

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

`Sauce.sleep(15000);` *Resolves after 15 seconds*

The transaction would resolve before the balance updated so I paused the script for 15 seconds while the transaction was being mined.

Hope this helps!
React and Reactotron
Tags: react, reactnative
Published: 2020-09-15 22:12:17

Reactotron is a useful app for inspecting React and React Native apps. It is especially useful for viewing application states, API requests & responses, and performing performance benchmarks. It does require Node version 4+. There is also Redux plugin for Reactotron for apps that use the former.

**Some other features**:

- subscribe to parts of your application state
- display messages similar to console.log
- track global errors with source-mapped stack traces including 
  saga stack traces
- dispatch actions
- hot swap your app's state using Redux or mobx-state-tree
- track your sagas
- show image overlay in React Native
- track your Async Storage in React Native

**Installation**

Install as a dev dependancy
```
npm i --save-dev reactotron-react-js
```

For initializing, create a config file in src/ReactotronConfig.js and put:
```
import Reactotron from 'reactotron-react-js'

Reactotron
  .configure() // we can use plugins here -- more on this later
  .connect() // let's connect!
```
Import the config file in src/index.js
```
import './ReactotronConfig'
```
Refresh your web page or start it with npm start and you should see something like this:

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

Now for a Hello World example: 

In src/App.js, import Reactotoron at the top and log message in the render function's first line:
```
import Reactotron from 'reactotron-react-js'

Reactotron.log('hello rendering world')
```

Now on Reactotron you should see:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/p6yzqcqo2s0c3h6qu5u5.jpg)

Now you have a basic setup of Reactotron. There are many more things you can do like monitoring state with Redux and watching network requests which I will potentially make a future blog about.

**References**
- https://github.com/infinitered/reactotron
- https://www.npmjs.com/package/reactotron
- https://stackshare.io/stackups/linqpad-vs-reactotron
Check who generated a repository from your GitHub template
Tags: github
Published: 2020-09-15 22:05:54

Eureka! After reading this - [Search based on the contents of a repository](https://docs.github.com/en/github/searching-for-information-on-github/searching-for-repositories#search-based-on-the-contents-of-a-repository), the answer was clear! Search by README.md file content!

I always use the name of the repository as the title (\# terraform-multienv) which is very common, so if you also do that keep on reading.

Use GitHub's search engine and provide a unique combination of words that appear in your README.md file. This is how I do it for my template - [unfor19/terraform-multienv](https://github.com/unfor19/terraform-multienv)

- `in:readme terraform-multienv`<br>[github.com/search?q=in%3Areadme+terraform-multienv](https://github.com/search?q=in%3Areadme+terraform-multienv)

- `in:readme sort:updated -user:@me terraform-multienv`<br>[github.com/search?q=in%3Areadme+sort%3Aupdated+-user%3A%40me+terraform-multienv&type=repositories](https://github.com/search?q=in%3Areadme+sort%3Aupdated+-user%3A%40me+terraform-multienv&type=repositories)

I use the latter query to get meaningful search results, by sorting with `sort:updated` and filtering **out** my user name `-user:USERNAME` with [-QUALIFIER](https://docs.github.com/en/github/searching-for-information-on-github/understanding-the-search-syntax#exclude-certain-results). The keyword `@me` is a saved keyword given by GitHub.

Originally asked in
- [reddit](https://www.reddit.com/r/github/comments/ita9s5/how_do_i_see_repositories_that_were_generated_by/)
- [GitHub Community](https://github.community/t/is-there-a-way-to-find-repositories-generated-from-my-template-repository/122838)
- [StackOverflow](https://stackoverflow.com/questions/62943177/how-to-see-how-many-repos-created-from-my-repo-template-github)

Originally answered in 

https://stackoverflow.com/questions/62943177/how-to-see-how-many-repos-created-from-my-repo-template-github/63910250#63910250
Day 217: I Am
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-15 22:05:28

_liner notes_:

- Professional : Got up early to cover CityJS conference. This was the second day. Had some more great talks and got to talk to people doing really cool things. The best part is helping see if what we offer can help them with what they are building. A lot of things could use the ability to communicate with others. Really good day. Still would have been better if I could have been there in person.

- Personal : Finally ordered the parts to attach the solar panels to the roof of my van. Hopefully I can get it soon. I was so tired after the conference that I basically went to sleep. I did do a little research on structured data and schema for the events page of my side project. They are supposed to help search engines categorize the web page. Since I'm using Sapper, each event can have an actual page that a user can directly navigate to. As it is now, the user can only navigate to details of an event by going to the home page first.

![Mountain tops of Chrachenhorn, Switzerland at sunset](https://dev-to-uploads.s3.amazonaws.com/i/o7se1fn8neysln1bsip6.png)

I am pretty wiped from the conference today. Going to see if I can get a valid structured data generated based on the data from the API for the event's page. Want to try and get the radio show edited to submit it the station .

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube Y1n8nZ_XTBk %}
AWS Workshops - Ongoing list
Published: 2020-09-15 21:47:23

This is list to keep up with AWS published Workshops during different events. It is handy tool to practice in unknown field, when solution is not present in your company.
We will periodically review it, and update. Any suggestions or broken links reports are welcome.

[AWS CDK](https://cdkworkshop.com/)

[AWS EKS](https://www.eksworkshop.com/)

####AWS Management, Governance, Monitoring####
- there are about 20 workshops. Please note URL
[https://reinvent2019.aws-management.tools/mgt401/en/](https://reinvent2019.aws-management.tools/mgt401/en/)
Replace mgt401 with numbers from 401 to 420
you will get to different workshops

[AWS Control Tower](https://controltower.aws-management.tools/)

[AWS Redshift](https://redshift-immersion.workshop.aws/)

[AWS Migration and Modernization GameDay](https://migration-gameday.workshop.aws/en/)

[AWS QuickSight - COVID-19 DATA ANALYSIS](https://quicksight-covid19-labs.workshop.aws/en/intro_0.html)

[AWS OpenShift](https://openshift4-on-aws.awsworkshop.io/)

[AWS Networking](https://networking.aworkshop.io/)

[AWS WAF](https://introduction-to-waf.workshop.aws/)

[AWS Athena](https://athena-in-action.workshop.aws/)

[AWS MQ](https://amazon-mq-intro.workshop.aws/)

[AWS Database Migration](https://dms-immersionday.workshop.aws/en/)

[AWS Learn To Code](https://learn-to-code.workshop.aws/) - Python

[AWS CloudFromation](http://workshop.quickstart.awspartner.com/)

[AWS Dynatrace](https://dynatrace.awsworkshop.io/)

[AWS Modernization Workshops](https://awsworkshop.io/categories/devops/) - about 10 Workshops

[AWS Management Tools](https://workshop.aws-management.tools/) - 8 Workshops

[AWS Security Workshops](https://awssecworkshops.com/) - 15 Workshops

[AWS Data Engineering Workshops](https://aws-dataengineering-day.workshop.aws/)

[AWS Observability Workshop](https://observability.workshop.aws/en)


To be updated...
🧐 Which Terminal Emulator are you using?
Tags: bash, terminal, shell, productivity
Published: 2020-09-15 21:47:06

## 📌 Introduction
First of all, I hope your day was good.
This post is made for everyone who is using a Terminal Emulator and want to share his experience with it. Feel free to comment down below!

## 🔎 The question
Since I’m working on my own [Terminal Emulator](https://github.com/QuiiBz/squid), I was wondering, **which one are you using on your daily routine?**

There are plenty of alternatives, from iTerm to Hyper and Cmder. So **why do you use your Terminal Emulator and not another one?** Does it have every features that you needs? Does you can’t find a good one that fit your expectations?

Do not hesitate to debate and share you experience, I’m very interested to know your preferences.
Twitchio.js: A better way to interact with twitch services
Tags: javascript, typescript, npm, contributorswanted
Published: 2020-09-15 21:30:25

## 🤔 What's this all about?
Twitchio.js provides functions that make it easy to interact with Twitch API and other twitch related services including but not limited to the helix API, the Kraken API, the BTTV API, and the FFZ API.
at its most basic Twitchio wraps twitch API credentials with the fetch function so you don't have to pass them in every time, but it also has functions that get data from different API endpoints for you with basic inputs.

## ⚡ Quick and easy implementation  
   **step 1**: 
```JavaScript
//Install:
npm i twitchio-js

//Then, paste this at the top of your JavaScript file:
const TwitchIO = require("twitchio-js");
// or
import TwitchIO from "twitchio-js")
```
   **Step 2**: Use any of the commands explained the [Documentation](https://github.com/GypsyDangerous/twitchio-js/blob/master/DOCUMENTATION.md) to interact with twitch services however you like.

## For the Future 
If you want to **contribute** and make this much better for developers, please have a look at [Contributing Manual](https://github.com/GypsyDangerous/twitchio-js/blob/master/CONTRIBUTING.md) to understand the contribution steps.

If you can help us with these. Please don't hesitate to open a [pull request](https://github.com/gypsydangerous/twitchio-js/pulls).

- Adding More functions
  - functions for kraken endpoints
  - more functions for helix endpoints 
- Improving the documentation
 

If you created something awesome and want to contribute then feel free to open Please don't hesitate to open an [pull request](https://github.com/gypsydangerous/twitchio-js/pulls).

{% github gypsydangerous/twitchio-js no-readme%}
Day 61:  Downtime 
Tags: 100daysofcode
Published: 2020-09-15 21:42:16

I've been messing with the Date object. I came a cross `setDate()` that lets me print out the date from today that i am interested in. My goal was to update the next 7 days of the week. I haven't managed to meet that goal  but i will do so on a day thats not today. 

Today's productivity was at almost zero. #downtime 😅
_Day 61_
Building out the Go Playground Liquid Tag for DEV with Chuck Smith
Tags: devstream, pairprogramming, ruby
Published: 2020-09-15 21:40:01

At then end of July, I had a chance to pair with awesome [community member Chuck Smith](https://dev.to/eclecticcoding).

They implemented a liquid tag for the [Go Playground](https://play.golang.org/). For those interested, here is the PR.

{%github https://github.com/forem/forem/pull/9577 %}

I really enjoyed talking with Chuck, especially in this clip.

{%youtube 4mDY2uyakuM %}

Give them a follow on DEV as well as Twitter and just a reminder... they're looking for their first role!

{%twitter 1274682855042560002 %}

Now that summer is over and I'm back from vacation, we're getting back into the swing of things for pairing on Forem issues.

{%twitter 1305924794865659906 %}

I'll be joined by [TJ](https://dev.to/taniyahljackson) this week on Thursday.

Looking forward to the next pairing session!

P.S.: Feel free to subscribe to [my Twitch](https://livecoding.ca) channel and [my YouTube channel](https://m.youtube.com/channel/UCBLlEq0co24VFJIMEHNcPOQ). 😉
My #100DOC - Day 20
Tags: challenge, 100daysofcode, log
Published: 2020-09-15 21:26:45

### Day 20: September 15, 2020

#### **Today's Progress**: 
1. **Terminal/Shell Day** (1h 30min):<br>Today was a different day. I've been setting up my terminal (Windows Terminal) and testing a few shells (Git Bash, PowerShell, WSL + Bash), I even tried other terminals like Cmder, Cygwin, and Hyper. Finally my shell will continue to be Git Bash, although I have left Ubuntu and PowerShell ready in Windows Terminal.
    
#### **What I learned**: 
* Difference between terminal, console and shell,
* How to set up WSL.
* How to set up Windows Terminal, Cmder, Cygwin and Hyper.

#### **Total time**:
1h 30min.