teleren/devto huggingface dataset:
How to create a new folder in visual studio - keyboard shortcuts
Tags: visualstudio, csharp, dotnet
Published: 2021-06-15 17:31:22

---
title: How to create a new folder in visual studio - keyboard shortcuts
published: true
description: Creating a new folder in Visual Studio manually (by using mouse) is bit annoying process. I like to use shortcuts for such kind of routines. And this note show several options how to create new folder in Visual Studio by using shortcuts.
tags: visualstudio, csharp, dotnet
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbc68uhn2qjuc32lho5a.png
---

Hello everyone!

Creating a new folder in Visual Studio manually (by using the mouse) is a bit annoying process. I like to use shortcuts for such kinds of routines. And this note shows several options for how to create a new folder in Visual Studio by using shortcuts.

### Option 1

1. `Ctrl`+`Alt`+`L` - switch focus to Solution Explorer
2. Press one at a time `Alt`, `p`, `d`

### Option 2

If you use Resharper for Visual Studio

1. `Alt`+`Shift`+`L` to focus on Solution Explorer
2. `Alt`+`Ins` to create a folder

### Option 3

Set your own shortcuts

1. Go to `Tools -> Options -> Environment -> Keybord`
2. Select `Project.NewFolder` and set hot keys

### Option 4 (my choice)

Use VS extension [Add New File](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.AddNewFile)

Press `Shift`+`F2` to open a dialog and type a file name. The most exciting thing here is by using `/` you can also create a folder structure where the file will be placed. 

![Add new file extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i6tb8698hnrfuxbdjsll.png)
Cheers!
What all goes into the landscape of AWS Machine Learning ?
Tags: machinelearning, aws
Published: 2021-06-15 17:22:50

---
title: What all goes into the landscape of AWS Machine Learning ?
published: true
description: 
tags: machineLearning, aws
//cover_image: https://direct_url_to_image.jpg
---

( This is a placeholder for my learnings in the context of 'AWS Machine Learning' , updated almost daily, until I complete the course)

What are the different toolsets available in Amazon WebServices, which cater to machine learning based applications ?

Currently, what I know is Amazon Sagemaker , using which you can create a model.



Learning continues....
Best Practices for building containers
Tags: todayisearched, devops, docker, kubernetes
Published: 2021-06-15 17:14:54

Hi there,

This is Ankit, your friendly DevOps content curator. I read a lot of articles about DevOps, distributed systems, performance monitoring, etc. I will be sharing some key takeaways from these articles with you so that you can stay updated and learn a few things quickly.🙂

This was a fantastic read from google's cloud architecture center.

Link to the full article👇
[Best Practices for building containers](https://cloud.google.com/architecture/best-practices-for-building-containers)

##Summary of best practices for building containers<br></br>


### Package a single app per container
Containers are meant to be treated as a single app, and not as a virtual machine. The best practice is to have a parent process and all its child processes as a single container. If you have multiple apps in a single container, you might end up with a running container with an unresponsive core component.

### Properly handle PID 1, signal handling, and zombie processes
Linux signals control the lifecycle of processes inside a container. And to tightly link the lifecycle of your app to its container, your app needs to handle Linux signals properly. One of the ways it can be done is by using a specialized init system like [tini](https://github.com/krallin/tini).

### Optimize for the Docker build cache
Docker build cache can be used for accelerating the building of container images by skipping potentially costly steps. To take full advantage of Docker build cache, the build steps that change often should be positioned at the bottom of the Dockerfile. Docker could use its build cache only if all previous build steps used it.

### Remove unnecessary tools
To protect your apps, try reducing the attack surface of your app by removing all unnecessary tools. For example, you can remove utilities like netcat.

### Build the smallest image possible
Small images are suited for faster upload and download times. A few ways to ensure the small size of the image includes: 
- using the smallest base image possible
- reducing the amount of clutter by installing only what is needed, and
- creating images with common layers.

### Scan images for vulnerabilities
In case of vulnerabilities, the best practice is to rebuild the image and its patches and redeploy it. You can choose a service to constantly scan your images for security vulnerabilities. Docker has partnered with [Snyk](https://snyk.io/) to provide the vulnerability scanning service.

### Properly tag your images
It is advised to properly link the tagging system on container images to the release policy of your software. A coherent and consistent tagging policy must be set in place and documented so that users can easily understand it.

___

I hope you enjoyed this TL;DR summary and learned something new. I will be coming up with more such notes soon. So, stay tuned! 🙂
___

Currently building [SigNoz](https://bit.ly/3xJ4CPx) - an open-source APM & observability tool 💙

{% github signoz/signoz %}
Great SVG map tool
Published: 2021-06-15 17:10:12

In some projects, we want to use some svg maps, but never know where we can find good one. So here is this post!

With **amCharts**, you can find a svg file for the World and each country! *(and for some countries, you can find some maps with regions)*

https://www.amcharts.com/svg-maps/?map=world
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c2slfw3qrspm3rcmsu0q.PNG)

---

And maybe you want a World map but with some customization. So here, you can use the **Pixel Map Generator** from **amCharts** where you can :
- Change colors
- Change world projection
- Draw some elements
- Generate a world map with geometrical forms (circle, hexagon...)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2l7vu7i1pxa5wqppfgh.PNG)

This tool is really cool and can help you to have your custom map without coding!

---

I hope it will help you!
What is Power BI?
Published: 2021-06-15 17:07:40

Since the data generation is happening exponentially, the necessity of business intelligence tools has become more and more in today's world. In the previous article of this blog, we people have discussed regarding Cognos, but there are some other bi tools like power bi in the market. So today in this article, let us have a look  at power bi

Before going to move into the actual subject, let us have a quick look at

What is Business Intelligence?

The term business intelligence refers to the technologies, applications, and practices for the collection, integration, and presentation of the business information. This BI technology provides the historical, current, and predictive views of the business operations.  Today many tools work on business intelligence. Power BI is one of them, let us have quick of this microsoft BI tool

What is a Power BI?
It  is a Microsoft business intelligence platform. This BI tool provides non-technical users with tools for aggregating, analyzing, visualizing, and sharing the data. Its interface simple to use for the users who were familiar with Excel. Moreover, Microsoft has developed the product very versatile which requires a little training. Today these tools are available for the users under the license. Besides Microsoft team has also made this product available for the user from small to mid-size business owners free of cost.

Moreover, users can also get this tool as an application platform for windows 10 called power bi desktop and also native mobile apps for Windows, Android as well as IOS. Besides, there is also a Power BI Server for the companies that must maintain their data and reports on-premises.  For that, this BI platform requires a special version of the application called Power BI Desktop for Power BI Report Server

Additionally, this platform gives you a productive platform and creative reports as well as the analytics. This microsoft BI suite provides multiple software connectors and services like Power BI Desktop, Power BI Service based on SaaS, and Power BI mobile apps for different mobile platforms. Among this Power BI, the desktop app is responsible to create reports, and Power BI Services are meant for publishing the reports, and finally, Power BI mobile app is used to view the reports as well as dashboards. Moreover, the desktop version of this platform is available on both 32-bit as well as the 64-bit operating system. Hence the users can get the latest version of this application at

https://powerbi.microsoft.com/en-us/downloads/

These sets of services are used by business users to consume and build UI reports.

Why should you use this tool?
People prefer to utilize this powerful business intelligence tool  due to the following reasons:

To utilize pre-built dashboards and reports for the SaaS Solutions
To get the updates of a real-time dashboard
Due to high security as well as a reliable connection to your data sources.
To work with the Quick deployment, hybrid configuration, and the secure environment
To explore the data using Natural Query language
What does a Computer Engineer do?
Tags: webdev
Published: 2021-06-15 16:48:38

*There are so many misconceptions about what a Computer Engineer does in his/her day to day job*

______

###Misconceptions
The most common misconception is that computer engineers can fix any computer problem *Which is not true*.This field is growing more and more every day and with comes many different roles people can choose.

See, Computer Engineer do solve problems related to Computers(Obviously) but there are specific fields in Computer Engineering that any Computer Engineer has to choose.

Because there are different branches in the world of Computers for which there are specific job titles.

###Different Fields
Web developer makes Websites. App developer makes Mobile Applications. Cyber Security Experts secures Internet usage. Data visualization is Graphical Representation of large data i.e cricket data you see on TV. And so many different branches have different job titles people doing different things.

A Web Developer cannot do A Network Administrator's work if you just ask him to do it. 

An Application Developer cannot do a Cyber Security Expert's job if you just go to him and ask him to do it.

Like every other field, world of computer engineering is a big ocean that is growing more everyday because of situations made by pandemic and i would love everyone to know how much more we impact theirs lives then they think
5 Amazing API For Your Project
Tags: javascript, webdev, beginners, productivity
Published: 2021-06-15 16:43:15

Hello,

Today I have written this post about the 5 amazing API every developer know there are in this many APIs are free & easy to use also you will behave fun when you are using this APIs. I hope you like this also comments about your thoughts.
For more content follow me on Instagram  [@developer_nikhil27](https://www.instagram.com/developer_nikhil27/).

#####Checkout recent post :
{% post https://dev.to/nikhil27b/amazing-button-animation-using-html-js-2ga1 %}

1.Nasa Api

[https://api.nasa.gov/](https://api.nasa.gov/).

![Nasa Api](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ze56v6kunruapeawhan1.png)

2.The MovieDB Api

[https://www.themoviedb.org/documentation/api](https://www.themoviedb.org/documentation/api).

![MovieDb](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc25lisqsdxmdqp5bjd0.png)

3.Food Api

[https://www.thecocktaildb.com/api.php](https://www.thecocktaildb.com/api.php).

![Food Api](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0nozl5f8bdbo8wxk68ak.png)

4.Cat Facts Api
[https://alexwohlbruck.github.io/cat-facts/](https://alexwohlbruck.github.io/cat-facts/).

![Cat Facts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sp8ps3ywjqtm6uqgno1n.png)

5.Foreign Currency Api

[https://www.frankfurter.app/](
https://www.frankfurter.app/).

![Currency](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ur7w4ms5dxrwiljifjbo.png)

Thank you!
Javascript Closures the easy way
Published: 2021-06-15 16:18:28

Closures in javascript seems a hard topic as it is portrayed by the majority of people, in this simple explanation i will break it down and show you that in reality it is not.  
  
Let's start with a simple well known example:

```javascript
function createCounter(){
    var i = 0;
    return function(){
        console.log(i++);
    }
}

var x = createCounter();
```

In this example i firstly have defined a function createCounter that contains a var definition i initialized to 0 then i return an anonymous function.  
  
Inside this function i simply increment the value of i.  
  
At the end i have defined the variable x that once executed it will contain the returned anonymous function, to clarify it will contain something like this:  


```javascript
function(){
    console.log(i++);
}
```

I said "something like this" because it will not only contain the function seen before but **it will enclose the i variable**, what i mean is that this function will have a reference to the outer scope's previously defined i variable.  
  
Now... What happens when we execute the x variable? It prints out the value 0, 1, 2, 3.... but the strange thing is that it remembers the state of the i variable and it increments it, well, this feature it's the so called closure.  
  
**You have access from your function to the outer scope to a reference of i**, if you see the definition given in the [Javascript MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) you will see that fits in perfectly:  



## Another example

Let's do another example, this time i will add a new little little difference:  


```javascript
function createCounter(){
    var i = 0;
    var m = 5;
    return function(){
        console.log(i++);
    }
}
var x = createCounter();
```

If we execute this example you will see that inside the x variable enclosed in you have only the i variable and you can't see the m variable; That means that you have only enclosed the used variables.  
  
To try this type **console.dir(x)**  
  
I hope that in this breaf explanation i have clarified a lot of misconceptions about closures.

{% youtube 6-Ayw5PHgck%}
Upcoming Events 2021
Tags: nifi, kafka, flink, events
Published: 2021-06-15 17:37:19

---
title: Upcoming Events 2021
published: true
date: 2021-06-15 16:08:00 UTC
tags: nifi, kafka, flink, events
canonical_url: 
---

##  Upcoming Events 2021

  

**ApacheCon Asia -**  06-August-2021. 

  

[https://apachecon.com/acasia2021/sessions/1025.html](https://apachecon.com/acasia2021/sessions/1025.html)

  

  

[

 ![](https://media-exp3.licdn.com/dms/image/sync/C4E27AQEHkJgmVbkwaA/articleshare-shrink_800/0/1623687070883?e=1623859200&v=beta&t=ACL5MQyMSrnJvab2Zr-dBxFK0Ep5dx0-J79PtPeyQhg)

](https://emamo.com/event/worldfestival-2021/s/pro-talk-continuous-sql-with-kafka-and-flink-WR115a)

[

## PRO TALK: Continuous SQL with Kafka and Flink

### emamo.com • 1 min read

](https://emamo.com/event/worldfestival-2021/s/pro-talk-continuous-sql-with-kafka-and-flink-WR115a)

###   

### **Scenic City Summit - ** 24-September-2021

[https://sceniccitysummit.com/](https://sceniccitysummit.com/)

  

### **ApacheCon 2021 - 21-September-2021 to 23-September-2021**

- [https://www.apachecon.com/acah2021/tracks/bigdatastream.html](https://www.apachecon.com/acah2021/tracks/bigdatastream.html)
- [https://www.apachecon.com/acah2021/tracks/bigdata.html](https://www.apachecon.com/acah2021/tracks/bigdata.html)
- [https://www.apachecon.com/acah2021/tracks/iot.html](https://www.apachecon.com/acah2021/tracks/iot.html)

Tuesday 17:10 UTC - Apache NIFi Deep Dive 300 

Tuesday 18:00 UTC - Apache Deep Learning 302 

Wednesday 15:00 UTC - Smart Transit: Real-Time Transit Information with FLaNK 

Wednesday 17:10 UTC - Cracking the Nut, Solving Edge AI with Apache Tools and Frameworks 

Thursday 14:10 UTC - Apache NiFi 101: Introduction and Best Practices 

Big Data Conference EU - 28-September-2021 to 29-September-2021

[https://bigdataconference.eu/Timothy-J-Spann/](https://bigdataconference.eu/Timothy-J-Spann/)

API World - 26-October-2021 to 28-October-2021

[https://apiworld.co/conference/](https://apiworld.co/conference/)
What's your best PR etiquette tip?
Tags: discuss, git
Published: 2021-06-15 16:01:23

---
title: What's your best PR etiquette tip?
published: true
description: 
tags: discuss, git
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yv1cpianbclzlnlan9p6.gif
---

What's your best PR etiquette tip?  From the standpoint of reviewee or reviewer, your choice.

Discuss 👇
Start Your GitHub Journey From Contributing To Any GitHub Project
Tags: github, opensource, database
Published: 2021-06-15 15:59:49

No matter what purposes are, for reputation, interests, social, or other reasons, GitHub is just getting more and more popular these years. If this is your day 0 or day 1 on GitHub and you want to join in a project of someone else, you must watch this video in 6 mins.
[Watch On YouTube >](https://youtu.be/WA75K2u4YsQ)
[![](https://img.alicdn.com/imgextra/i3/O1CN01Em60iJ1H0Lx0xkyyj_!!6000000000695-2-tps-2870-1606.png)](https://youtu.be/WA75K2u4YsQ" type="video/mp4)


【GitHub - PolarDB for PostgreSQL】
[Check Now >](https://github.com/alibaba/PolarDB-for-PostgreSQL)

【Reference - Documentation】
https://github.com/alibaba/PolarDB-for-PostgreSQL#contributing

【Open Source: Alibaba Cloud How To】
https://github.com/alibabacloud-howto
How to check trusted events
Tags: javascript, webdev
Published: 2021-06-15 15:43:39

How would one check if an event was triggered by an actual user action and not from a script or dispatched event? Well, there's an `isTrusted` property on `Event` objects:

```js
btn.addEventListener('click', event => {
  if (!event.isTrusted) {
    return console.log('Not trusted!');
  }

  console.log('Proceed');
});
```

Here we are checking if `event.isTrusted` is false and if so, return out. `isTrusted` will only be true when the click event is done via a real mouse click and not with a proxy click via:

```js
btn.click();
```

or

```js
btn.dispatchEvent(new MouseEvent('click'));
```

If you want to make sure certain interactions can only be accomplished by user behavior and not via scripts (i.e. browser extensions) `Event.isTrusted` can help add an extra layer of security! 🔒

### Here's a video on using the `isTrusted` property:

<a href="https://www.tiktok.com/@js_bits/video/6974043858397072646?is_copy_url=1&is_from_webapp=v1" target="_blank">
  <img src="https://res.cloudinary.com/dzynqn10l/image/upload/v1623771596/JS%20Bits/isTrusted_-_TikTok_1_15_qtk0q8.png" alt="isTrusted TikTok" width ="190" />
</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) and [TikTok](https://www.tiktok.com/@js_bits?)!
Metamask: when does actually `accountChanged` event emits?
Tags: blockchain, metamask, ethereum, javascript
Published: 2021-06-15 15:35:17

If you are an Ethereum application developer and are looking for information about `accountChanged` event, you will find that there is no much useful information available out there. I will also share some useful tips about building a dApp intergrating with Metamask. 

> accountsChanged will be emitted whenever the user's exposed account address changes.

☝️ This is how Metamask define the behavior of accountsChanged event. Let's start exploring when actually user's exposed account address changes. 

First thing to know is either `eth_accounts` or `eth_requestAccounts` will always return an array with utmost one element. Yes, even though if you have linked two or more accounts, Metamask will only return the currently selected account in Metamask. Metamask may return multiple accounts in future and they have mentioned this in their docs. 

![Metamask connect multiple accounts](https://s1.im.ge/2021/06/15/QefvW.png)
☝️ If you have more than one Ethereum accounts linked in your Metamask wallet, you will prompt to select accounts which you need to connect with the dApp. 

Still `eth_accounts` or `eth_requestAccounts` will provide you only one account. I will share two scenarios where this event will emit. 

##### 1) Switch between accounts which are connected with the dApp.
Let's assume that you have three accounts A,B,C in Metamask. Only A and B is connected with your dApp. If you switch from A to B, `accountsChanged` event will be emitted with account B in the array. The reason is Metamask has to change the exposed account to the dApp in this case. Important thing to note here is if you switch from B to C in Metamask, `accountsChanged` event will not be emitted as C is not exposed to your dApp. 

##### 2) Disconnect the currently selected account.
When you disconnect the currently selected account, obviously Metamask has to change the account address that it can expose to the dApp. So the `accountsChanged` event will be called with the next Ethereum account linked with the dApp or will be called with an empty array. 


###### Sample code which you can inspired from
You can try this React code snippet and modify it according to your requirements. 

```
useEffect(() => {
    if (window.ethereum) {
      window.ethereum.on("accountsChanged", (accounts) => {
        if (accounts.length > 0) {
          setAdress(accounts[0]);
        } else {
          // setWallet("");
          // setStatus("🦊 Connect to Metamask using the top right button.");
        }
      });
    }
  }, []);
```
⭐ Feel free to have a look into this repo. I have implemented most frequently used Metamask events and methods here. 
{% github sashrika/nft-metamask-marketplace no-readme %}
Netfilx clone with reactjs
Tags: netflix, react, clone
Published: 2021-06-15 15:22:12

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

Today I completed a simple project Netflix cloning where I used react JS. You can visit my git repo and there have a demo link.

check on my git [repo](https://tinyurl.com/ea2rjezy)