teleren/devto huggingface dataset:
Little drops on C# Interview questions- .NET Framework, Core and Standard!
Tags: beginners, csharp, career, dotnet
Published: 2020-07-13 20:09:52

# Little drops on C# Interview Questions series

The intentions behind this series are to answer with a little bit of context or examples some of most commons C# interview questions.

## .NET Core x Framework

Both are implementations of .NET runtime, the framework is the older one and core is the new cross-platform one, both share many components but not all.
This is a quick drop so I'll try to write about one or two more questions

## .NET Framework

This is the older implementation that is supported only on Windows machines, you should use it on apps that already use .NET Framework, some .NET technologies that aren't available in .NET Core like Reporting services or platforms that currently aren't supporting .NET Core like some parts of Azure (This is a transitional situation).
Currently .NET Framework is at the version 4.8.

## .NET Core

The core is the new implementation of the runtime, cross-platform(And in 2020 you'll mainly use this).
The choice of the core can focus when your app needs to be cross-platform, you target microservices, using Docker, needs high-performance and scalable systems and you need side-by-side .NET versions per application.

Currently .NET Core is at the version 3.1.

## .NET Standard

Currently, in this transitional situation, there's no way of using a shared code library written in .NET Framework on a .NET Core application. To resolve issues like this .NET Standard arrived, which is a specification of set APIs compatible with both .NET runtimes.

Currently .NET Standard is at the version 2.1.

## Wrapping up

The framework is the grandpa, Core is the new cool guy and Standard helps them to communicate.
Like this:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lpiuqbvup6l980t4env5.png)

You can go deeper on the subject @:
[https://docs.microsoft.com/pt-br/dotnet/standard/choosing-core-framework-server](https://docs.microsoft.com/pt-br/dotnet/standard/choosing-core-framework-server)[http://www.mukeshkumar.net/articles/dotnetcore/dotnet-framework-vs-dotnet-core-vs-dotnet-standard](http://www.mukeshkumar.net/articles/dotnetcore/dotnet-framework-vs-dotnet-core-vs-dotnet-standard)
Vemto - Laravel Code Generator and Studio
Tags: laravel, php, code, generator
Published: 2020-07-13 20:08:54

---
title: Vemto - Laravel Code Generator and Studio
published: true
description: Vemto is an upcoming Desktop Application that is being created to make starting new Laravel Projects easy
tags: laravel, PHP, code, generator
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/odv0mcgb8bo0qltk1a98.png
---

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

# Vemto

Vemto is an upcoming Desktop Application that is being created to make starting new **Laravel Projects** easy. It brings plenty of awesome features to help you start your next project, and **generates the code** for:

- Models, Migrations, Policies, Factories, and Seeders
- Controllers, Tests and Form Requests
- CRUD applications views (Under Development)
- Authentication and Permissions modules (Under Development)

The **projects are modular**, allowing you to choose what sections of code to generate. 

You can subscribe to the app launch here: https://vemto.app
#JulyOT - Building the Intelligent Edge with Jetson and Azure ft. the NVIDIA Embedded team
Tags: ai, computervision, nvidia, iot
Published: 2020-07-13 20:06:41

---
title: #JulyOT - Building the Intelligent Edge with Jetson and Azure ft. the NVIDIA Embedded team
published: true
description: Erik St. Martin and Paul DeCarlo from the Microsoft Cloud Advocacy team meet with team members from NVIDA to discuss “Building the Intelligent Edge with Jetson and Azure”.  We will be discussing a number of topics related to this theme and will supplement with questions from attendees on the stream.
tags: artificialintelligence, computervision, nvidia, iot
---

Erik St. Martin and Paul DeCarlo from the Microsoft Cloud Advocacy team meet with team members from NVIDA to discuss “Building the Intelligent Edge with Jetson and Azure”.  We will be discussing a number of topics related to this theme and will supplement with questions from attendees on the stream.

**NVIDIA team members include:**
 Chintan Shah, Product Manager
 Tenika Versey, Marketing Lead for AI
 Ryan Huff, Business Development for AI | Edge | IoT
 Jaime Flores, AI Developer Relations Manager

**Resources**:
* Intelligent Video Analytics Github Repository:  https://github.com/toolboc/Intelligent-Video-Analytics-with-NVIDIA-Jetson-and-Microsoft-Azure
* DeepStream Developer Guide:
 http://aka.ms/deepstreamdevguide
* Jetson Community Projects: https://developer.nvidia.com/embedded/community/jetson-projects
* Jetson Community Resources: https://developer.nvidia.com/embedded/community/resources
* Jetson on Azure: 
http://aka.ms/jetson-on-azure
Using FreeBSD As A Linux User
Tags: linux, ubuntu
Published: 2020-07-13 20:03:22

For the uninitiated, FreeBSD is not just another Linux distro. I [learnt](https://rubenerd.com/tutorial-sites-treating-freebsd-like-a-linux-distro/) that today only. So I decided to give it a try. The installation was a breeze but my normal Linux workflow did not work out of the box.

So, this is a quick post for the impatient developers like me who want to get up and running with FreeBSD as fast as possible.

### Switching to Root
Turns out FreeBSD does not come pre-installed with `sudo` program, so your best bet is to spawn a new login shell and log in as `root`.

```sh
$ login
```

### What is my IP
There is no `curl` or `wget` either. There is `fetch` though. Following is how you get your system's public IP.

```sh
$ fetch -q http://wtfismyip.com/text; cat text
```

_This post is a work in progress. I will publish more things as I discover them. Keep watching this space._
How to Develop a Portfolio using Gatsby
Tags: gatsby, javascript, netlify, seo
Published: 2020-07-13 20:03:01

### Making it more performance, using: Styled Components, Netlify, GraphQL, …

> Gatsby is a React-based static website generator. It offers advantages such as performance and SEO components!

## 2018

In 2018, I wanted to apply some knowledge, and thus learn more about components, in addition to wanting to have my own website. So I elaborated using these technologies:

* [Bootstrap v4](https://getbootstrap.com/)

* [Font Awesome](https://fontawesome.com/)

* Javascript

* CSS

So, over time there was a need to apply new development stacks, which made me think about refactoring.

## New website

With the rise of javascript frameworks, in 2020, I refactored using Gatsby. Along with some specific tools to increase performance, the main ones are listed below:

* [Gatsby](https://www.gatsbyjs.org/)

* [GraphQL](https://graphql.org/)

* [Styled Components](https://www.styled-components.com/)

* [Netlify](https://www.netlify.com/)

![Screenshot of the website](https://cdn-images-1.medium.com/max/2708/1*O92ylDjH7BUebikE9xk83g.png)*Screenshot of the website*

## Gatsby

An SSG (Static Site Generator), based on React that uses GraphQL for content consumption.

As already mentioned, one of its main advantages is to generate static files in the build, becoming a great ally to use SEO resources, having integrations through plugins with [Analytics](https://www.gatsbyjs.org/docs/adding-analytics/) and [Helmet](https://www.gatsbyjs.org/packages/gatsby-plugin-react-helmet/). And it has multiple plugins.

![How Gatsby works on Docs Gatsby](https://cdn-images-1.medium.com/max/2000/1*lTP8mYYrDTVQ0qkxa8aRGQ.png)*How Gatsby works on Docs Gatsby*

## GraphQL

Created with the aim of facilitating data manipulation, where you make queries describing what type of data you need and it returns exactly the respective values.

Together with Gatsby, we inform what data a specific component will need. Then, the Gatsby receive this data when that component is rendered.

## Styled Components

CSS-in-JS solution, which takes advantage of current componentization methods to create components in a way that reduces style conflicts, for example:

    // Static object
    const Box = styled.div({
      background: 'palevioletred',
      height: '50px',
      width: '50px'
    });

    // Adapting based on props
    const PropsBox = styled.div(props => ({
      background: props.background,
      height: '50px',
      width: '50px'
    }));

    render(
      <div>
        <Box />
        <PropsBox background="blue" />
      </div>
    );

## Netlify

It’s a complete and automated platform for hosting projects “free for personal projects”, where it already has continuous deployment and several advanced features.

In the continuous deployment process, each build performed can be accessed separately through a generated URL.

If you want to know more about the source code, just access [github](https://github.com/jonathanccardoso/jonathanccardoso).

<hr />

I hope you enjoyed the content! If you have suggestions and/or criticisms comment below. Bye! 🖐🏽
AWS CLI with Okta
Tags: aws, cli, okta, productivity
Published: 2020-07-13 20:02:59

We will be using this solution: https://github.com/jmhale/okta-awscli

### *Prerequisites:*

- Python3
  Windows: https://www.python.org/downloads/

- AWS CLI V1
Windows: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html
Mac: https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html
Linux: `pip3 install awscli --upgrade --user`

### *Install okta-awscli:*
`pip3 install okta-awscli`

### *Initial setup:*

1. Create aws profiles for dev and test.
Run the following:
`aws configure set region us-east-1 --profile dev`
`aws configure set output text --profile dev`
`aws configure set region us-east-1 --profile test`
`aws configure set output text --profile test`

2. Create the following file:
Linux: ~/.okta-aws
Windows: %USERPROFILE%\.okta-aws
With the following contents:
>[dev]
>username = <your-username>
>factor = OKTA
>app-link = &lt;copy link from app icon in okta&gt;
>base-url = &gt;your-company&gt;.okta.com
>duration = 3600
>
>[test]
>username = <your-username>
>factor = OKTA
>app-link = &lt;copy link from app icon in okta&gt;
>base-url = &lt;your-company&gt;.okta.com
>duration = 3600


### *Login and run aws commands:*
`okta-awscli --okta-profile dev --profile dev`

After logging in with okta-awscli, your login is valid for an hour and you can use aws commands (using the --profile <name>)

### *Login to ECR:*
`aws --profile dev ecr get-login --registry-ids <your-ecr-id> --no-include-email`

This will generate a token that you can use to login with docker to the ECR to pull images.
It will actually output the full command you need to run, so just copy it and run.
It will look like this:
docker login -u AWS -p <very-long-token-base64> https://&lt;your-ecr-id&gt;.dkr.ecr.us-east-1.amazonaws.com
This is my JAMstack  
Tags: javascript, react, html, devops
Published: 2020-07-13 19:55:15

##**What is JAMstack?**

Let’s talk about an approach to building applications that may be more frontend developer-friendly. JAMstack is a concept or approach for building out applications if you want to create a website that does not require creating a server or database. 

###**What is the JAMstack approach?**

JAMstack stands for JavaScript, API, Markup. Typically when building out an application most developers are used to a Mololithinc structure. In a monolithic structure, the front end is tightly coupled with the backend. When the client makes a request, it hits a server, which pulls data from a database, that then produces HTML to render and then sends that back to the client. There is no need to build out the HTML page for every page request the client makes in the JAMstack structure. 

The main concept behind JAMstack is to decouple the frontend from the backend and free the frontend from servers sp that it can be deployed directly to a CDN
With a JAMstack approach, the frontend pages are built before it is sent to the client through a build process before being deployed. 
The JavaScript is the request/response cycle on the client’s side. 
The M in JAMstack stands for Markup. The markup are the static pages that are prebuilt and they are put in a CDN. So, if the client requests a page, there is no need to hit a server to build out the HTML, it instead will fetch the HTML from a CDN which has been pre-built. 
The A in JAMstack is for the use of third party APIs which provide the dynamic content to the page. As well as querying requests to an API from the frontend before the pages are built to then deploy. 

###**So, what are the benefits of using the JAMstack approach?** 

There are lots of benefits to this approach to building an application.
The first is that your website will be faster since it does not have to hit a server and the pages are prebuilt. Typically when you host your applications on servers with databases, users are making requests to the same servers in limited locations, which can cause traffic jams (pun intended). Instead, in JAMstack, you are deploying an application globally through the use of CDNs. A [CDN (Content Delivery Network)](https://developer.mozilla.org/en-US/docs/Glossary/CDN) distributes the static content, like the static content built in a JAMstack approach and then serves them to the users in a location closer to them. This also means higher security since there are no servers or databases in your application that are at risk. Because your pages are pre-built the performance of your application skyrockets as well.  
Lastly, this makes the process of developing a site much easier, since there is no need to manage and build servers or databases. You can manage the content of your page through version control such as GIT. This approach to building an application makes sense if you have an application that does not require a full database and has content that can be built beforehand using markup.



*Cover by [Markus Spiske](https://unsplash.com/@markusspiske) on Unsplash.*
Review: Kotlin koans [2020] Kotlinlang
Tags: review, kotlin, course, tutorial
Published: 2020-07-13 19:47:44

Today I'm reviewing the course: "Kotlin Koans" published on kotlinlang, it's free and you can find it in the official [Kotlin](https://kotlinlang.org/) website.

- Check the course [here](https://play.kotlinlang.org/koans/overview) and watch my full review on the video.

- Or check this [PLAYLIST](https://www.youtube.com/playlist?list=PLxktx98zP3aAylA3it3TYyF7x6lDhc0qi) with REVIEWS of tech courses. 


************************************

👋Hello, I' m Eleftheria, an app developer, master student, public speaker, and chocolate lover.

🍩Would you care about buying me a coffee? You can do it here: [paypal.me/eleftheriabatsou](paypal.me/eleftheriabatsou) but If you can't that's ok too!

**************************************

🙏It would be nice to subscribe to my [Youtube](https://www.youtube.com/c/EleftheriaBatsou) channel. It’s free and it helps to create more content.

🌈[Youtube](https://www.youtube.com/c/EleftheriaBatsou) | [Codepen](https://codepen.io/EleftheriaBatsou) | [GitHub](https://github.com/EleftheriaBatsou) | [Twitter](https://twitter.com/BatsouElef) | [Site](http://eleftheriabatsou.com/) | [Instagram](https://www.instagram.com/elefintech)
Apps Script + REST APIs + Google Sheets + Glide Apps
Tags: nocode, appsscript, glide, googlesheets
Published: 2020-07-13 19:24:29

[View Demo](https://themoviezapp.glideapp.io/)

{% youtube PBluaJwqd9E %}

#####We will do 2 steps:

* Create an Apps Script to fetch Top Movies and Popular Movies using the TMDb API.
* Use Glide Apps and convert the Google Sheet into an app. 

#####Things you need:

* Register for an API Key here: [https://developers.themoviedb.org/3] (https://developers.themoviedb.org/3)
* An account on Glide. Register here: [https://www.glideapps.com/] (https://www.glideapps.com/)

###Google Sheets

Create a blank Google sheet and navigate to Tools -> Script Editor.

We have two functions i.e., getTopMovies(), getPopularMovies() and onOpen().

**getTopMovies()** – Fetch top movies from the API
**getPopularMovies()** – Fetch popular movies from the API
**onOpen()** – Create a custom menu to run REST API calls only when needed.

Paste the following code into the Script Editor and Save. Make sure you update API_KEY parameter with the actual key from TMDb API. 

```
function getPopularMovies() {
  
  var response = UrlFetchApp.fetch("https://api.themoviedb.org/3/movie/popular?api_key=API_KEY&amp;language=en-US&amp;page=1");
  var values = [];
  var json = response.getContentText();
  var data = JSON.parse(json);
  var results = data["results"];

  results.forEach(function(item) {
    values.push([item["title"], item["overview"], "https://image.tmdb.org/t/p/w500/" + item["poster_path"], item["vote_average"], item["release_date"]]);
  });
  var spreadsheet = SpreadsheetApp.getActive();
  var sheet = spreadsheet.getSheetByName('Popular Movies');
  sheet.getRange(sheet.getLastRow()+1, 1, values.length, values[0].length).setValues(values);
}

function getTopMovies() {
  
  var response = UrlFetchApp.fetch("https://api.themoviedb.org/3/movie/top_rated?api_key=API_KEY&amp;language=en-US&amp;page=1");
  var values = [];
  var json = response.getContentText();
  var data = JSON.parse(json);
  var results = data["results"];

  results.forEach(function(item) {
    values.push([item["title"], item["overview"], "https://image.tmdb.org/t/p/w500/" + item["poster_path"], item["vote_average"], item["release_date"]]);
  });
  var spreadsheet = SpreadsheetApp.getActive();
  var sheet = spreadsheet.getSheetByName('Top Movies');
  sheet.getRange(sheet.getLastRow()+1, 1, values.length, values[0].length).setValues(values);
}

//menu items
function onOpen() {
  var ui = SpreadsheetApp.getUi();
  ui.createMenu('Movies DB Functions')
      .addItem('Get Top Movies','getTopMovies')
      .addItem('Get Popular Movies','getPopularMovies')
      .addToUi();
}

```
Ask Octopus - How do I add my Azure credentials?
Tags: octopus, devops, azure, tutorial
Published: 2020-07-13 18:58:59

---
title: Ask Octopus - How do I add my Azure credentials?
published: true
description: Learn how to add your Azure credentials to Octopus Deploy so you can deploy Azure resources.
tags: octopus,devops,azure,tutorial
series: Ask Octopus
---

Are you planning to deploy Azure resources with Octopus? The first step you'll need to take is setting up your credentials. I show you how in this Ask Octopus video.

{% youtube QjrpJEQ8Gao %}

Do you have a question about how to use Octopus? Email advice@octopus.com and someone from our team will get you an answer. You might even see it in a future episode.

Join our community slack at https://octopus.com/slack
Util files are Important
Tags: java, backend, webdev, productivity
Published: 2020-07-13 18:56:21

---
title: Util files are Important
published: true
description: I forgot the basic checking of Objects in Java. I use so many util files
tags: java, backend , webdev, productivity
//cover_image: https://direct_url_to_image.jpg
---

Most of the developers know the importance of Util files. I would like to share my story about the Util files I have developed for my work or personal projects during last 5 years.

During development I found out I will be needing two types of Util files. 

- First is common to Language I use (can be useful for cross product)
- Second is for the project specific Util files


## Common Util Files

I started writing this util file mainly to reduce (or to maintain) the common checks we do during development.

For example in Java think of checking the String is valid of not.  Valid string can be mentioned as String which has atleast one Character in it. 

### To Check this we will be following the below steps in Java

#### Approach 1

- Check whether the String is null or not, if it is null then it cannot be valid
- Check the String not equals to "", if its equal to "" then its not valid
- If both cases are satisfied, i.e., not null and is not equal to "" then it is valid case.


#### Approach 2

- Check whether the String is null or not, if it is null then it cannot be valid
- Check the String is not empty using isEmpty() in built Java method
- If both cases are satisfied, i.e., not null and is not empty then it is valid case.

Even when a single developer is able to write two approaches think of a team with 10 backend developers. It is simple to find more than 5 approaches for simple checks like this.

### Benefits of Common Util files

- We can use it with other projects. Think of writing a small part as Library and giving it to customers.
- Standard code can be maintained across the project. We need not have different standards inside same project
- Testing can be done easily.


## Project Util Files

Like Common Util file, it is very important to have project based util file also. This is generally specific to the project and is not exported. Usually it is bundled and used only in that project.

Consider an HashMap (or Dictionary) which will have the relationship between the ID and the Search Engine names.

Example :

- 1 -> Google
- 2 -> Bing
- 3 -> DuckduckGo

It is very easy if we can have this details in single file. Generally over the period of time, some people tend to write their own implementation and write the code; instead its good to make developers refer a single method which can give the ID of search engine if name is given and vice versa.

Similarly, there are lot of learning I would like to share about maintaining the constants, Loggers, Exception handler as we go on.

Thanks
Your Angular app probably doesn't need SASS
Tags: angular
Published: 2020-07-13 18:52:09

As it turns out, [using SASS can slow your Angular build a lot](https://github.com/angular/angular-cli/issues/17879). This may come as a suprise, since SASS, when run from command line (either dart-sass or the C++ based node-sass) can churn through tons of files in few seconds. When used in Angular components, however, you could be looking at one minute of just parsing SASS in medium-large application with hundreds of components. 

At this point you will be asking "so why are we using SASS in the first place" - and it probably boils down to:

- $variables
- Nesting
- Mixins
- No harming in doing that right?

Variables are the trivial part - you can replace them with [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) (or "CSS custom properties" if you are a cop). This can be done with a well-placed script run, but you need to be careful about calling calc() when SASS was just computing a value directly.

Nesting is something you thought you wanted but actually you possibly don't. Since component styles are already scoped per-component, you can usually refer to single css class .foo without requiring it to be child of `:host`, which is child of `.my-section` etc. In fact, lot of nesting creates a lot of unnecessary bloat in the output .css files. Moreover, the whole `:host` thing is only needed to style the topmost, "host" element. `::ng-deep` (which we pretend to be deprecated) will work just fine in .css files.

Mixins - odds are you are overusing them. If you have a base style called `.btn` and you `include .btn` in several places, consider just saying `<button class="btn my-buttonish-thing">` in your .html files. The "macro" capability of SASS could be considered competing and inferior to using the native browser feature of, well, supporting CSS classes that add styling to your elements.

## Eject!

At this point, you will be looking for exits. So here's one path:

- Write a script to extract your $variables to `my-arr-variables.css`
- Write a script to run node_modules/.bin/sass.cmd to all your `*.component.scss` files. Keep the ones that didn't explode in size due to overzealous use of SASS features and leave the rest as SASS.
- Keep your global top level styles as .scss files, but do consider compiling them outside `ng build` and referring them as plain .css files (i.e. not referring to them from angular.json, just add a `<link rel="stylesheet" href="my-global-styles.css">`