teleren/devto huggingface dataset:
JavaScript == vs ===, Which one you should use?
Tags: javascript, node, beginners, tutorial
Published: 2020-01-10 04:12:39

This tutorial is only for beginners in JavaScript. If you have a little bit of experience with JavaScript then you might be familiar with this. Otherwise, bear with me I will help you to make this clear.

If you know any other programming language then it would probably sound confused with these two operators. As most of the other programming languages have only one *==* comparison operator. But JavaScript gives us great control over conditions by these two keywords. It would be clear as we go through an example.

**Example:**
![== vs === example](https://thepracticaldev.s3.amazonaws.com/i/331bs2m2er1riokot8ps.jpg)

Output:
![output](https://thepracticaldev.s3.amazonaws.com/i/5tcvmx7rcp31r7cojynm.jpg)

I think the above example would be enough to clear this difference.

As you can see, I have defined two variables *num1* and *num2* but note that *num1* is assigned with "1" (String) and *num2* is assigned with 1 (Number). 

Then, I have put log statements with those operators. And you can see in the output that *==* operator gives *true* and *===* operator gives *false* as output.

Let me explain why this output produced because, *==* operator always compares values of given operands. It will not check the types of the given operands. Whereas, *===* operator always compares values plus type of the given operands. Here in our example *"1"* and *1*, both are equals in terms of values but they are of different types.

Which one should you use?
- The answer can be varied from different perspectives. In my opinion, if you can you should use *===* operator. Because it will give you more control then *==* operator.

I hope you liked it and let me know your thought on this topic by commenting down below.

Follow me on twitter: https://twitter.com/ykhokhaneshiya
Boost Note Goodie Campaign
Tags: showedev, boostnote
Published: 2020-01-10 04:05:37

---
title: Boost Note Goodie Campaign
published: true
description: Let's receive the Boost Note stickers and webcam cover!
tags: showedev, BoostNote
---

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/uxrwwg2mzaxzbluvxo6y.png)

At same time as the Mobile App launch we will start a campaign in which you can get your hands on some Boost Note goodies. You will receive these rewards for free if you write an article about Boost Note and share it on your SNS!

We’ll send you two stickers(old and new logos) and a webcam cover
*This offer is limited to the first 100 applicants!

We’re waiting for you to apply! 
[Application form](https://forms.gle/n9i12QiPhQijadUB7)
Team Work
Published: 2020-01-10 03:45:13

# Eliminate Knowledge Silos

Knowledge silos happen when you (the developer) have written a piece of code, stood up a random server, or solely worked on something without the help or knowledge of your team. These tend to happen on teams that do not operate in a truly agile method. **No** knowledge silos do not help your job security. They generally hurt your team when you leave the company because information was not shared. Make sure that you work in such a way that encourages knowledge sharing and don’t be afraid to work in pairs on things. Care more about the team’s success than your own job security.

# There is only one priority

Teams often get the mindset that they can work on multiple things at once. This comes from an honest belief that with numbers you can accomplish more work. However, this helps encourage knowledge silos. Instead, work on things together as a team where everyone is aligned on the purpose and mission. Make sure that you have fully attacked the top priority with as many resources as possible before starting new work. If the team is not able to identify the top priority, then they will fail to work as efficiently as possible. 

# Maybe it’s not about getting credit

Gene Kim recently wrote a book called [The Unicorn Project](https://itrevolution.com/the-unicorn-project/). He profoundly stated: 
> You can get a lot more done if you don’t care that much about who gets the credit. 

Work on developing the team and thinking from a team mindset more. We all tend to get selfish in our work and end up responding and working in ways that make us look more intelligent than those arounds us. Work to care more about the team’s reputation than your own.
🚀TOP Beginner ReactJS Resources 🎊2020🎊🚀
Tags: beginners, react, webdev, javascript
Published: 2020-01-10 03:36:47

React is a JavaScript User Interface library for creating interactive web applications.

These are the resources I used to learn to write clean efficient code!

### create-react-app

Create React App works on macOS, Windows, and Linux. Create React apps with no build configuration.

![https://github.com/facebook/create-react-app/blob/master/README.md](https://github.com/facebook/create-react-app/blob/master/README.md)

### The Beginner's Guide to React by Kent C. Dodds

This course is for React newbies and anyone looking to build a solid foundation. It’s designed to teach you everything you need to start building web applications in React right away.

https://egghead.io/courses/the-beginner-s-guide-to-reactjs

### React Bits

A free book that talks about design patterns/techniques used while developing with React. 

https://vasanthk.gitbooks.io/react-bits/

### 🚀Absolutely Awesome React Components & Libraries 🚀

Curated List of React Components & Libraries.

https://github.com/brillout/awesome-react-components

---

These resources are ones I go back to regularly to and were instrumental in getting me from zero to writing fully functional and responsible web applications.

What stuff did I miss?

---
Enjoyed the post? Let me know! 💛🦄🔖
What's a great talk you watched or listened to recently?
Tags: watercooler
Published: 2020-01-10 03:22:20

I came across a great talk by [James Long](https://twitter.com/jlongster) tonight that he gave at [dotJS](https://www.dotjs.io/) 2019. I really enjoyed it and definitely recommend that you give it a watch.

{%youtube DEcwa68f-jY %}

This one happens to be software related, but what is a great talk (any topic) that you watched or listened to recently?
11 Essential Skills Software Developers should Learn in 2020
Tags: programmers, development, clojure, zettelkasten
Published: 2020-01-10 03:01:04


1. Be a Cloudnative - allocate about 6months to a year to be good in this area -- it is not just about dockerizing your apps, https://thenewstack.io/10-key-attributes-of-cloud-native-applications/
2. Be Functional - start writing FP, pick one: Clojure, Elixir, ReasonML, F#
3. Strive for Progressive Delivery - this is not new but makes more sense than ever in 2020, https://thenewstack.io/the-rise-of-progressive-delivery-for-systems-resilience/
4. Figure out Blockchain and Web Monetization - the progress in this area is crazy, start here https://webmonetization.org/
5. Decentralized application dev -- it getting bigger, check out this easy tutorial, https://hackernoon.com/tutorial-build-a-versioning-system-on-ipfs-77lvx2geh
6. Master VSCode -- Vim plugin!
7. SQL Trees - will make you smarter https://www.codeproject.com/Articles/8355/Trees-in-SQL-databases
8. AWS -- you just couldn't avoid this, start small -- deploy something to ECS.
9. Machine Learning -- don't delay, allocate around 6 months for this,  https://course.fast.ai
10. Get good at Shell (Bash) programming -- shell scripting is very powerful and easy, see [this web server in shell](https://github.com/benrady/shinatra)
11. Zettelkasten method, be good at learning- https://www.seanlawson.net/2018/02/use-zettelkasten-method-scientific-note-taking/
I'm a professional React developer, and here's how I create Microservices Using React/Node.js on AWS with Terraform. #5
Tags: react, node, webdev, javascript
Published: 2020-01-10 02:55:45

**About Me:** I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at [Better Coding Academy](https://codebetter.com.au), and as part of what I do, I post videos on our YouTube channel at [https://www.youtube.com/c/BetterCodingAcademy](https://www.youtube.com/c/BetterCodingAcademy).

_(Subscribe for awesome web development content!)_

In a previous video series, I built a classifieds app with a microservices architecture using React, Node.js, GraphQL and Docker; you can find the dev.to article on that [here](https://dev.to/bettercodingacademy/i-m-a-professional-react-developer-and-here-s-how-i-set-up-react-node-js-microservices-using-docker-and-graphql-20gk).

Now, I'm deploying that application onto [AWS](https://aws.amazon.com/) using [Terraform](https://www.terraform.io/), and this is part 5 of that tutorial.

I hope you enjoy!

{% youtube iBPtyr4KIco %}

Happy coding!

Full source code: [https://github.com/lucaschen/microservices-demo](https://github.com/lucaschen/microservices-demo)
Day 67 : Amazing
Tags: hiphop, code, coding, lifelongdev
Published: 2020-01-10 02:19:28

_liner notes_:
- Professional : Got up early to head to the convention center so we could set up. Got to my rental car and it was covered in ICE!!! I have never had to scrape ice of my windshield before. Made it to the venue. The size is tremendous! There is an indoor water park. I heard CodeMash had over 2000 attendees this year. In addition to talks, there were Maker rooms that we (Nexmo/Vonage) sponsored with 3D printers, lasers,and electronics. A KidzMash where children had their own free conference where they got to learn about 3D printers and other technologies. There was a board game room. Booths from a large amount of vendors.There was a huge ballroom where everyone got food. There were balloon animals! CodeMash in one word, Amazing! What a way to start off my JavaScript Developer Advocate role.

- Personal : Not too much personal stuff done. Just got back to the hotel and super tired. Starting to nod off writing this. haha.

![sunset over the countryside of Paptsdorf, Germany](https://thepracticaldev.s3.amazonaws.com/i/r29n2y60l3l9n8zyjgve.png)

Going to watch some YouTube and go to sleep. haha So tired.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube sy8uXXreMi4 %}
PowerShell ImportExcel Module - Part 1 Introduction
Tags: powershell
Published: 2020-01-10 02:11:47

A common task in PowerShell is to generate CSV files that are later imported into Microsoft Excel for analysis, graphics, etc.  An example:
```PowerShell
Get-Process | Export-Csv -Path C:\TEMP\Processes.csv -NoTypeInformation
```
Imagine being able to export data with PowerShell directly into Excel without having Excel installed with the following capabilities:
- Conditional Formatting
- PivotTables
- Charts
- Sparklines
- SQL data to Excel

Interested?  
If so, before you continue reading, go grab the ImportExcel module.
- https://github.com/dfinke/ImportExcel
- https://www.powershellgallery.com/packages/ImportExcel/7.0.1
- Find-Module -Name ImportExcel | Import-Module

Once installed, use Get-Command to explore the various cmdlets that are available.
```PowerShell
Get-Command -Module ImportExcel -Verb Get,Export
```

Next, I recommend you look at the help for Export-Excel.
```PowerShell
Get-Help Export-Excel -ShowWindow #AND
Get-Help Export-Excel -Examples
```
And finally, let's go ahead and generate an Excel file with some basic formatting.
```PowerShell
# remove our example file
$path = 'C:\TEMP\Example1.xlsx'
Remove-Item -Path $path -ErrorAction SilentlyContinue

# Create some data
$data = @"
Name,ID,Quarter1,Quarter2,Quarter3,Quarter4
Greef Karga,0001,1100,1200,1300,1400
Kuiil,0002,1000,1000,1000,0
IG-11,0003,1200,1200,1400,1500
Cara Dune,0004,800,700,700,300
Mayfeld,0005,400,500,600,200
Din Djarin,0006,2000,2200,2100,500
"@ | ConvertFrom-Csv

# Create our various Excel parameters
$params = @{
    # Spreadsheet Properties
    Path                 = $path
    AutoSize             = $true
    AutoFilter           = $true
    BoldTopRow           = $true
    FreezeTopRow         = $true
    WorksheetName        = 'Data'
    PassThru             = $true
}        

# Create the Excel file
$ExcelPackage = $data | Export-Excel @params
$WorkSheet = $ExcelPackage.Data

# Apply some basic formatting
Set-ExcelRange -Worksheet $WorkSheet -Range "A1:F1" -BackgroundColor Black -FontColor White
Set-ExcelRange -Worksheet $WorkSheet -Range "B1:B7" -HorizontalAlignment Center
Set-ExcelRange -Worksheet $WorkSheet -Range "C2:F7" -NumberFormat 'Currency'

Close-ExcelPackage -ExcelPackage $ExcelPackage -Show
```
The result should look similar to this:
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/dqq4dmu99z6zmgow4aq1.png)

Encourage you to watch Doug Finke's (ImportExcel creator) blog and videos:
https://dfinke.github.io/
https://www.youtube.com/playlist?list=PL5uoqS92stXioZw-u-ze_NtvSo0k0K0kq

Hope this helps and stay tuned for more articles in this series.
HTML App builder
Tags: help
Published: 2020-01-10 02:06:27

Hi, 
I want to create a mobile app builder (UI)
Using HTML (& DB of course) for shopify store, or I can say its like a CMS for Mobile App. 
Good example is like what wix is doing for websites, I want to do that for my shopify store. I have no idea or need some leads that how should I save my designed screens in html(style/theme) to the database. So, that I can edit it again or make changes in theme dynamically. Thanking in advance.😊
New year, new goals
Tags: writing, webdev
Published: 2020-01-10 01:45:10

---
title: New year, new goals
published: true
description: What I want to do and make myself accountable for
tags: #writing, #webdev 
cover_image: https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80
---

Hey guys!

So with the new year started and I'm getting back to my routines, I want to make a goal this year of taking all of what I've learned and info I accumulated over the past few years and share the practical things and insights to a broader public, at a greater scale. I've already started doing it personally last year but there's a cap of how many people I can talk to on a daily/weekly basis.

I've seen how being in the tech world has changed the lives of many people as it has been the case for me too, so with that in mind I thought it would be valuable to share what I've learned from so many others in hopes that I can shorten the path for others that are just getting it started. 

I'm no expert at anything in particular. The whole idea of specializing in one particular thing never resonated with me. I'm more of a "knowledge broker", a vehicle to further expand what's available to some people but still haven't reached the majority. 

Funny enough when I was in college, there was this whole profile of an engineer they expected graduates to be and I never fit into that image, further enhancing my outcast look. So I ended up searching and learning by myself a lot of different topics not directly related to tech but they were more like "complementary" skills which have become like second nature to me but now I realize they are not that easy to come for the majority of my colleagues and other people working in the tech industry.

I realize this is going to be quite the challenge since I'm not used to writing blog posts and there's like a ton of things I rather do than to sit down and write. But like I said this is not for me, or to create my brand or create content to drive traffic or whatever other things that one could think of. This is in a way to bring closer different worlds and areas of knowledge that are normally separated and don't communicate with each other.

Think of this experiment as a way to say "we put a lot of effort into honing our skills and getting better at our craft of developing great software, but how much better will our work be if we put a little more effort into developing ourselves first?". That's the overall idea that of the goal I'm trying to accomplish here.

I'll write a post or two talking about technical topics and challenges I had to deal with at work since most of what I'm doing is quite new to me, also with the intention that it can help others who may have come across the same issue (or as many others say that person would be me in the future).

So that's pretty much it, this post was a way to set my intention and holding me accountable to the challenge that this will represent for my 2020 self but as some have said before... "No good things have come out of comfort zones".

Thank you all for reading and make the most of your day, Today.
NBA API
Tags: javascript, html, css, api
Published: 2020-01-10 01:18:33

Looking for a free NBA API, most Sport APIs are not free you have to pay couple hundreds to use them.

I want to create a small dynamic web page for the play-offs but can't seem to find an API that shows the Western & Eastern Conference standings for free.

Let me know if you come across anything.

Thanks! :)
How to Check if Something in Azure Marketplace is Available in Azure Stack
Tags: azure, java, weblogic, javaee
Published: 2020-01-10 01:02:04

I was recently asked if the [WebLogic on Azure Virtual Machines](https://devblogs.microsoft.com/java/java-ee-on-azure-with-weblogic-and-linux-virtual-machines/) in Azure Marketplace Offers were available on [Azure Stack](https://azure.microsoft.com/en-us/overview/azure-stack/).  I was told the best way to discover this was to look at [Azure Marketplace items available for Azure Stack](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-marketplace-azure-items?view=azs-1910).  Apparently this page is updated via syndication from Azure Marketplace, but I don't know exactly how.

To answer the question: as of this writing, no, the offers are not available in Azure Stack.
Using PowerShell Core on macOS
Tags: azure, powershell, automation, macos
Published: 2020-01-10 00:51:29

---
title: Using PowerShell Core on macOS
published: true
description: Have you ever dreamed of using PowerShell on macOS? Then, this post is for you! :)
tags: Azure, PowerShell, Automation, macOS
cover_image: https://thepracticaldev.s3.amazonaws.com/i/7tzxtnggmaasrn0rts40.png 
---


I love my MacBook Pro and I like to work on macOS (although Microsoft is bringing more and more of the features I love to Windows 10).
I'm also a big fan of Automation and Infrastructure as Code, especially when working with Cloud platforms such as Azure.

For that matter, I need to have PowerShell on macOS (Yes, Azure CLI is great and I use it frequently).
Fortunately, with PowerShell Core, Microsoft has brought the goodness of PowerShell to macOS and Linux.

In this post, I'll show you how easy it is to get going with PowerShell Core on your macOS box.


# Installing PowerShell Core
You simply need to type this in a terminal:
``` bash
dotnet tool install --global PowerShell
```


# Installing the prerequisites
The prerequisites come down to .NET Core. In order to install it, simply download the installer from https://dotnet.microsoft.com/download. Then, it's only a matter of Continue, Continue, Install and Close. You would need at least version 2.2 of .NET Core.


# Using PowerShell Core
You're now all set to use PowerShell Core. Simply fire up a terminal or Visual Studio Code and type the following:
``` bash
pwsh
```
This will launch a PowerShell Core session.

When you want to end that session, simply type:
``` bash
exit
```


# Using Azure modules in PowerShell Core
Let's try to connect to Azure from my terminal on my macOS box. 

For that matter, I'll need to install the `Az.Accounts` module. So, here we go:
``` bash
pwsh
install-module Az.Accounts
``` 
Now, let's login in to Azure:
``` bash
Connect-AzAccount
```
And here we are: you can now manage your Azure resources using PowerShell Core right from within your macOS box!

Don't forget to import the modules required for what you're trying to do.


# Conclusion
Today, PowerShell is available on a wide range of platforms and this is a good thing. PowerShell has, in my humble opinion, reconciled Windows IT Pros with scripting by offering them a way more powerful tool than they ever had.

By supporting macOS and Linux as well, they can also leverage those skills to these platforms.

See ya!
ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
Tags: aspnetcore, dotnetcore, tip
Published: 2020-01-25 22:43:29

---
title: ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
published: true
date: 2020-01-10 00:00:00 UTC
tags: aspnetcore,dotnetcore,tip
canonical_url: 
---

The other day I was going to test and debug some code on a Windows Server 2012RC machine when I encountered the exception `ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY` when running my asp.net core 3.1 razor pages website.

This site worked fine elsewhere so to try and narrow down the problem I created a brand new asp.net core website to see if it was something in my code that was the issue but I had the same error showing up in google chrome.

After some googling, I tried to reset the servers self-signed SSL certificate by using the following closing the browser in between but that had no effect:

```powershell
dotnet dev-certs https --clean
dotnet dev-certs https --trust
```

I created a [github issue](https://github.com/aspnet/AspNetCore.Docs/issues/16434) and the ever-helpful [@guardrex](https://github.com/guardrex) came to my rescue again and pointed me in the right direction.

It is a [known bug](https://github.com/dotnet/aspnetcore/issues/16811) and there is an open Github issue for it.

**Workaround**

So here for others and me if this happens again is my workaround:

A specific down-level machine (Windows Server 2012R2) was causing the exception and because I knew which machine, I had access to its `Environment.MachineName` which I use later to programmatically decide which `ListenOptions.Protocols` Kestrel should load.

HTTP/1 on the down-level machine but HTTP/2 elsewhere.

So, I created an `appsettings.{the-environment.machinename-value-here}.json` file alongside `appsettings.Development.json` with the following HTTP/1 settings rather than the default HTTP/2 settings that are loaded by default elsewhere.

**appsettings.machinename.json**

```json
{
  "Kestrel": {
    "EndpointDefaults": {
      "Protocols": "Http1"
    }
  }
}

```

Then in Program.cs I modified `CreateHostBuilder` to read the above custom appsettings.json file.

Note the line containing: ` config.AddJsonFile($”appsettings.{Environment.MachineName}.json”, optional: true);`

**Program.cs**

```cs
namespace mynamespace
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
            .ConfigureAppConfiguration((hostingContext, config) =>
            {
                config.AddJsonFile($"appsettings.{Environment.MachineName}.json", optional: true);
                config.AddCommandLine(args);
            })
            .ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
    }
}
```

Success 🎉