teleren/devto huggingface dataset:
Identity Community Hour - 07/24/2020
Tags: azure, identity, devrel
Published: 2020-07-24 20:35:28

Today was our (ir)regular Community Hour on [Twitch](https://twitch.com/425Show) - on a Friday instead of Thursday because we like to break rules! If you didn't get a chance to watch us live, then you can catch the recording [here](https://www.twitch.tv/videos/689343334).

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

## Community Shoutout
At the beginning of our stream we had our community segment where we give a shout out to community-generated content such as blogs, videos, tutorials, streams etc. The links to this week's mentions are:

- [Azure AD – External Identities (IV) Advanced Flows](https://blog.azureinfra.com/2020/07/22/azure-ad-external-identities-iv-advanced-flows/)
- [Abusing Azure AD SSO with Primary Refresh Token](https://dirkjanm.io/abusing-azure-ad-sso-with-the-primary-refresh-token/)
- **!ANNOUNCEMENT!** [MSAL.js 2.0 is now generally available with support for authorization code flow](https://developer.microsoft.com/en-us/identity/blogs/msal-js-2-0-supports-authorization-code-flow-is-now-generally-available/)
- Azure AD App Registration and Authentication Flows [Part 1](https://www.twitch.tv/videos/688476538), [Part 2](https://www.twitch.tv/videos/688550799)
- Creating Azure AD App Registrations with Terraform [Github](https://github.com/aztfmod/terraform-azuread-caf-aad-apps)
- [Securing Blazor WASM Applications with Azure AD](https://medium.com/@waelkdouh/securing-a-blazor-webassembly-application-with-azure-active-directory-7822148f332b)
- [Authenticate an Azure Function with Azure Active Directory - EazyAuth](https://cuteprogramming.wordpress.com/2019/01/02/authenticate-an-azure-function-with-azure-active-directory/)

## Special Guest
For our Community Hour we were fortunate to have [Kunal Babre](https://twitter.com/kunalbabre), a Microsoft Cloud Solutions Architect from sunny(??) Edinburgh, UK to talk to us about Azure Lighthouse and a customer case around building secure solutions on Azure with Azure Managed Identities, Azure Functions and Azure Storage.

Check out Kunal’s [blog post](https://www.kunalbabre.com/azure-lighthouse/) on Azure Lighthouse including scripts on how to set it up!

## Be part of our community
Our Community Hour is dedicated to YOU. Therefore, we invite you to share with us and the wider developer community your blogs, code or any apps that involve identity. 

We love streaming so you can usually watch us live on our [Twitch channel](https://twitch.tv/425show) every Tuesday at 7am and Thursday at 8am PT respectively. If you would like to come and hang out/code with us live on stream, then we would love to have you! 

You can reach out to the Identity Dev Advocate team on Twitter [Christos](https://twitter.com/christosmatskas) and [JP](https://twitter.com/AzureAndChill)
When Mario meets Programming
Tags: career, productivity, codenewbie, discuss
Published: 2020-07-24 20:31:35

I had an interesting conversation over twitter the other day regarding learning. The conversation revolved around using the game of Mario Kart to compare learning. I took it a step further, and tried to apply that same theme towards the state of learning how to program. I think it is an interesting exercise when drawing comparisons between the real and fictitious worlds we live in.

I've expanded on that in a [blog post](https://www.halpincodes.com/blog/the-learning-game/) that I wrote.

I think that learning how to code is not for everyone, but for those who enjoy solving problems. If you are a problem solver, like puzzles, and enjoy the satisfaction of figuring out things on your own, then you can definitely learn how to code.

You don't need to be a math wiz, have a CS (computer science) background, or spend every waking minute thinking about code to be a good programming. Programming really revolves around taking an abstract idea and implementing it via syntax to make something appear on a screen.

I think that programming is all about perseverance. Picking a goal, and sticking with it. If you want to learn how to program, you just have to  _do_ it.

What are some things that get you stuck when learning how to program? How did you overcome them?
Discovering OpenCV with Python: Gamma correction
Tags: python, opencv, imageprocessing, gamma
Published: 2020-07-24 20:06:06

Another practical exercise that I had quite some fun with was gamma correction. This concept is mainly used when we want to adjust the brightness of an image. We could also use it to restore the faded pictures to their previous depth of colour. Since I am just a Python Padawan, we will be demonstrating this on grayscale pictures but I promise, the concept works on coloured images as well.

In this short article, I will focus on the restoration of faded pictures. 

## A bit of (mathematical) background

The logic behind is based on a concept called [linear stretching](http://spatial-analyst.net/ILWIS/htm/ilwisapp/stretch_algorithm.htm). The faded picture simply means that the values of pixels are compressed to a smaller range and therefore not using the full range of values (in grayscale that would be from 0 to 255). For example, in the faded picture below, the values of the pixels range from 101 to 160. What linear stretching does, is that it re-scales the values to their full range from 0 to 255.

Here is the mathematical formula on how this can be achieved with each value:

![Linear stretching](https://dev-to-uploads.s3.amazonaws.com/i/zxptif95gyvuxz2y50ps.png)

## Python implementation

Just like in convolution, the necessary step is to cycle through every pixel and apply this mathematical formula to each of them. Be sure to check out my [GitHub](https://github.com/tinazhouhui/computer_vision/blob/master/image_processing/gamma.py) to see how it can be done.

And voila, below is the result, look closely at how the histogram of pixel values stretched out from the original narrow range:
![Gamma correction](https://dev-to-uploads.s3.amazonaws.com/i/xoo8ju6nzmcor2jmokwj.jpg)
[Tool used to create histogram](https://pinetools.com/image-histogram)

Hope you enjoyed the post, I recommend having a go at this and playing around with different images. Again, would appreciate if you let me know your thoughts. May the Python be with you.
How do you cloud?
Tags: aws, googlecloud, azure, discuss
Published: 2020-07-24 20:18:23

![Clouds](https://dev-to-uploads.s3.amazonaws.com/i/vsebypkjijzdjqysq22w.jpg)

As an independent cloud architect, I find myself working in my customer's cloud of choice (could be AWS, Azure or GCP).  Wondering about you.

1. Which cloud did you use most in 2020?
2. More serverless or containers?
3. Data lake, NoSQL or good old relational database?
4. Are you doing any cloud ML? how?
5. What is your favorite cloud service(s)?

Here are my answers:
1. GCP
2. Containers, sigh...
3. Data Lakes FTW
4. TensorFlow
5. Three-way TIE: GCP BigQuery, AWS S3, Azure CosmosDB
Why we're finally beta
Tags: watercooler, privacy, webdev, security
Published: 2020-07-24 20:02:29

We develop a fair and open web analytics software that treats operators and users as equal parties. Our app is called [Offen](https://www.offen.dev/) and in the works since the end of 2019. In the last six weeks we have been working on milestone 5 and have stripped the alpha label. That's what we've accomplished.

**A11y and security upgrade**
[Stichting Accessibility](https://www.accessibility.nl/) has kindly carried out an accessibility audit of our app. We have received a lot of helpful feedback to make Offen a truly accessible and inclusive analytics tool. Furthermore, [Radically Open Security](https://radicallyopensecurity.com/) carried out an in-depth security audit for us. No major flaws were found, and together we developed some very good ideas on how to make Offen even safer.
All updates are included in the latest version, so make sure to [update.](https://github.com/offen/offen/releases)

**Better licensing**
We have adopted [REUSE,](https://reuse.software/) a standard to make licensing easy for humans and machines alike. A NOTICE file is now automatically generated from our dependency tree to make sure that each dependency is assigned correctly.

**Even better testing**
More integration tests using the setup from Milestone 4 have been added. Now both users and operators are covered. We hope to deliver less and less regressions with every test added.

**Documentation improved**
Our move to a beta version is aided by making our application even more accessible to developers and operators. [The Offen documentation](https://docs.offen.dev/) is now added to our existing open/docs repository. This makes it easier for us to map new features and changes even as they are being developed.

**Up next**
*Episode Six — Packaging and testing* will be the last milestone in our current funding round through [NGI Zero PET.](https://ngi.eu/ngi-projects/ngi-zero/) It will feature more deployment targets and tests as well as setting new targets for the whole Offen project. We'll be right back.

Read the [detailed milestone 5 report](https://www.offen.dev/blog/resilience-documentation/) on our blog.
Learning common keyboard shortcuts for screen readers
Tags: a11y, screenreaders
Published: 2020-07-24 19:33:27

When studying for my WAS exam I had a tough time learning keyboard shortcuts of screen readers. I experimented and created a mind map to help learn through a more visual format. It helped! Then I found videos of other people using assistive technologies in ways that weren't documented, which blew my mind. It sunk in! Finally I quizzed myself.


Here's my first article on The A11y Project on Learning common keyboard shortcuts for screen readers: https://www.a11yproject.com/posts/2020-07-24-learning-common-keyboard-shortcuts-for-screen-readers/
Rest properties with object destructuring
Tags: javascript
Published: 2020-07-24 19:18:05

<p>If we want clone an object but remove certain properties we can use this fancy trick:</p>

```js
const user = {
  firstName: 'Homer',
  lastName: 'Simpson',
  age: 40,
  city: 'Springfield',
};

const { age, ...userWithoutAge } = user;
```

<p>Let's see what's inside <code>userWithoutAge</code>:</p>
```js
// userWithoutAge
{ 
  firstName: "Homer",
  lastName: "Simpson",
  city: "Springfield"
}
```

<p>So we have a clone of the original object, but without the <code>age</code> property. Umm, what? 🤔</p>
<p>This is how it works!</p>
<p>First, let's look at a simpler example without the use of the "rest spreading":</p>

```js
const { age, city } = user;

console.log(age); // 40
console.log(city); // Springfield
```

<p>
  Here, we're simply destructuring the object to retrieve the <code>age</code> and <code>city</code> properties as new variables. Cool, so let's see what happens when we look at the original example:
</p>

```js
const { age, ...userWithoutAge } = user;
```

<p>
  First, we destructure the <code>age</code> property as we just saw, but also we utilize <b>object rest spreading</b> to collect the leftover properties into a variable we can name anything; in this case we call it <code>userWithoutAge</code>. This object we just created on the fly now contains all the original <code>user</code> properties except the age!
</p>

<p>
Using rest properties for object destructuring assignment is a newer feature added in ECMAScript 2018 and is available in modern browsers.
</p>


<h3>Links</h3>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax" target="_blank">MDN Article on spread syntax</a>

----------
Check out more #JSBits at my blog, [jsbits-yo.com](http://jsbits-yo.com/). Or follow me on [Twitter](https://twitter.com/JS_Bits_Bill)!
A rap song about demo days
Tags: showdev, culture, programming
Published: 2020-07-24 18:45:31

---
title: A rap song about demo days
published: true
description: https://www.youtube.com/watch?v=fyZLvXmMhYc
tags: #showdev, #culture, #programming
---

Song url: https://www.youtube.com/watch?v=fyZLvXmMhYc

Quick background on the project: I'm a full time programmer and I love making rap music. I see a lot of humor in the profession/industry, and thought it would be fun to combine the two.
God Mode in browsers
Tags: devtools, chrome, design, dev
Published: 2020-07-24 18:41:37

##Just write on chrome browser **devtools** 
```javascript
document.designMode = "on"
```
And you can edit the page
![godmode](https://media.giphy.com/media/5PSPV1ucLX31u/giphy.gif)

> by default god mode is disabled
CLUSTER MULTI THREADED NODEJS -- Run threads in parallel to speed up long processes
Tags: javascript, node
Published: 2020-07-24 18:40:38

---
title: CLUSTER MULTI THREADED NODEJS -- Run threads in parallel to speed up long processes
published: true
description: 
tags: javascript, node
---

My JavaScript that creates thumbnails for hundreds of files is taking too long. So I have decided to speed things up with cluster.fork() that is built into Node.js. This will allow the workload to be spread out across my multi-core processor system.

⚠ 8:53 should read: `index % forks === cluster.worker.id - 1`

To follow along, you can fork this repository. I have added a tag you can check out that will bring you right to the point this video was created.

```
git checkout https://github.com/joelnet/mojo-gallery.git
cd mojo-gallery
git checkout youtube-video-cluster
```

More Minute JavaScript Videos: 

[![Screenshot of YouTube Channel](https://dev-to-uploads.s3.amazonaws.com/i/ql8225baay311dte4eib.png)](https://www.youtube.com/playlist?list=PL59tadyXaIqVBUhq1PlZQvUSSzQzM62AF
)
What has been your worst experience as a developer?
Tags: watercooler, discuss, productivity, webdev
Published: 2020-07-24 18:38:59

Describe your worst experience rather it is personal or professional as a developer/engineer. Maybe you were fixing a bug and something else crashes with no answers from Stacked Overflow to how to solve it.

I will start. I was fresh out of coding boot camp with my school project I have spent two weeks making that was ready to show employers. After I graduated, I forked my project to my GitHub and worked a minor bug on my server. After I deployed the site, the whole site crashed. I probably have spent a week trying to find out what went wrong before I gave up and decided to make a new web application to showcase other employers.

Have you been into a similar situation before? Maybe this will help others that might feel stressed out and alone or simply a good laugh while screaming, "Yep....been there before!".
A template for building a mind garden in 11ty
Tags: showdev, javascript, eleventy, jamstack
Published: 2020-07-24 18:37:54


There's a trend growing called mind-gardening. Some refer to it as evergreen note-taking, while others use the term "building a second brain".

{% twitter 1286034321275596801 %}

As mind gardens have grown, people have built tools to help
grow. I've noticed starter templates for Gatbsy and Jekyll, but none for Eleventy (my favorite SSG).

I've been coding my own digital garden with Eleventy, and I realized that it was pretty simple. So, I created a minimal template for building a mind garden in Eleventy.

{% github b3u/eleventy-garden no-readme %}

It's on [GitHub](https://github.com/b3u/eleventy-garden), and there's a [live demo](https://eleventy-garden.netlify.app). Oh, and don't forget to star the repo!
Need Advice: What OS should I use with the new laptop I am planning to purchase?
Tags: linux, osx, windows, laptop
Published: 2020-07-24 18:26:15

Hi,
I have been a developer for the past 1.25 years. During this time, my development machine was on OS X majorly.
Before that, I was a Windows user who used Windows Subsystem for Linux as development environment. I haven't much tried Ubuntu or other Linux destros, except using their shell in Windows. 

I am considering purchasing a new laptop tomorrow, but before I purchase it, I would like to seek advice of developers here.

What OS should I prefer in the new laptop?
How is WSL2 evolved as from development point of view? Should I consider OS X or Linux for development purpose?
Thanks.
Responsive svg marker icons in google maps api

Tags: javascript
Published: 2020-07-24 18:23:51


I need to make the size of the marker change depending on the map scale. For example, if the map is removed, then the marker is small, but if you zoom in, then the marker should increase. How to implement this in my code?

   



        function initMap()
    {
        var element = document.getElementById('map');
        var options = {
            zoom: 8,
            center: {lat: 41.311081, lng: 69.240562}
        };
        var myMap = new google.maps.Map(element, options);

        var marker = new google.maps.Marker({
            position: {lat: 41.290977, lng: 69.264393},
            map: myMap,   
            icon:('pin.svg')    
        });
    };
Git README Feature!🔥
Tags: github, opensource, linux, devops
Published: 2020-07-24 18:22:45

## Hola People!
### GitHub recently launched a cool feature "Profile Overview",In this feature a user can create a README file and can give overview of the profile.
### If you are looking to get started here are the simple steps:
1. Login to your GitHub account.
2. Create new [repo](https://repo.new) of same name as your username.
3. Goto the repository open the README.md file.

### Boom!🎉 now you can modify the file and show your creativity!!

## Need some cool idea to customize check out mine 😎😎
### Follow Me For More..
*[Twitter](twitter.com/Harshmangal1108)
[GitHub](github.com/harshmangal1108)
[Linkedin](linkedin.com/in/harsh-mangal)
[Instagram](instagram.com/_harsh_mangal_)*
{% github harshmangal1108/harshmangal1108 %}
simple html dom parse data from site 
Tags: php, html, webdev
Published: 2020-07-24 18:20:28

this code work for all sites else "http://www.tsetmc.com/Loader.aspx?ParTree=15"

what can i to do ?
```
include_once('./phphtmlparse/simple_html_dom.php');
// Create DOM from URL or file
$html = file_get_html('http://www.tsetmc.com/Loader.aspx?ParTree=15');
echo $html->find('title',0)->innertext; //line5
```

error:
```
Notice: Trying to get property 'innertext' of non-object in /opt/lampp/htdocs/newstest/parsetse.php on line 5
```
So richtest du einen Website Live Chat ein
Tags: onlinemarketing, chat, sendinblue
Published: 2020-08-19 13:50:42

---
title: So richtest du einen Website Live Chat ein
published: true
date: 2020-07-24 18:12:24 UTC
tags: OnlineMarketing,chat,sendinblue
canonical_url: https://j0e.org/sendinblue-chat/
---

![Sendinblue Website Live Chat](https://j0e.org/wp-content/uploads/2020/07/sendinblue-chat.png)

Das Sendinblue Website Live Chat Tool hilft dir direkt mit deinen Kunden in Kontakt zu …



Der Beitrag [So richtest du einen Website Live Chat ein](https://j0e.org/sendinblue-chat/) erschien zuerst auf [WordPress und Marketing](https://j0e.org).
My To-do list app
Tags: javascript, app, newbie
Published: 2020-07-24 17:37:45

Hi everyone, I'm new to the developers community, I just started learning web development, and hope to build mobile apps someday. 
This is my first project after reading several posts and watching tutorial videos.

https://oguchiw.github.io/to-do-list/

I had to piece together knowledge from several videos and addition to Posts from stack overflow to achieve this, I did congratulate myself for this. 
However I need help to figure out a few more things I'll love to add on this project because I'm really excited about what I have done. 
Firstly how to output the users entry as an alert statement, so I can notify them when they want to delete or mark an entry off the list.
Secondly maybe how to undo a deleted entry. 
I tried to hold the entries in an array but didn't know what else to do. 
Please share your thoughts on the project, as well as how I can achieve what I envision. Mind you I'm still a learner so please an easy explanation would be really helpful.
Day 1 : Portfolio Challenge
Tags: html, css, challenge, webdev
Published: 2020-07-24 17:13:46

I decided to create a simple personal/portfolio website using HTML and CSS in next 7 days that is by next Friday. I have started learning HTML and CSS from Free Code Camp Responsive web design track. 
## Day 1 
I finished with Basic HTML and CSS section from the responsive web design track.In this section I learnt about Heading tags,links,adding images,working with forms,lists. 

You can comment some portfolio websites that are built using basic HTML and CSS.
Why programmers should play games as a hobby
Tags: watercooler, discuss, webdev
Published: 2020-07-24 16:54:18

Playing games is one of the most engrossing and entertaining activities out there and because of its huge social factor you can share your passion with other people too. Other than being a great hobby that you can sometimes find yourself devoting hours too (which may be good or bad depending on the way you look at it). It is also one of the best forms of education and stimulation. When you are doing something that you really enjoy you are more inclined to do it more because of the way it makes you feel. This is the exact same feeling that I like many other developers get from programming which is more apparent on those good days when we are not stuck trying to debug some code for a few hours 😅 .

The similarities between the two are unparalleled and the fact that games are created using programming languages just reinforces that truth. When you are playing games you are usually forced to solve problems which is very similar to when you are programming. You are forced to do a lot of thinking to overcome solutions which is one of the many good traits that a programmer should have. For example if you are playing a first person shooter like Call of Duty Warzone for example. In one situation there could be a sniper on a building somewhere laying down some fire and you are unable to pinpoint where he is. One solution could be to work with your team and go inside of a building to get out of the firing range. There are infinite decisions that you could make in that instance. It is just like when you are building an app you have to think about the technical stack and how you are going to write the code.

Another example can be found if you are playing a real time strategy game like Starcraft II. You need to think where you are going to build your base and what type of troops you are going to train. Because you have no idea what the enemy teams strategy is going to be you need to plan ahead and try to figure out a way to counter whatever strategy they are going to use. Like having a strong defence and building up your army. Or going for a rush attack to weaken their economy so that it takes them longer to gain resources allowing you to build your army faster.

Programming makes you think a lot which is good for memory. It has even been said that diseases that cause mental deterioration such as Dementia and Alzheimer's can potentially be slowed down. So like the term "killing two birds with one stone" if you do programming and have some form of gaming in life then you are putting yourself in a good position. It is not only rewarding but it also makes you a better problem solver and makes you more creative at finding ways to overcome obstacles.

And the best part is that it does not even have to be a hardcore game like those played on consoles and computers. There are plenty of casual and mobile games that can offer the same experiences. From something as simple as Sudoku to a game as complex as a Battle Royale there is something for everyone.