-
Azure Key Vault in .NET Core
Intro
Title URL Key Vault
Safeguard cryptographic keys and other secrets used by cloud apps and serviceshttps://azure.microsoft.com/en-us/services/key-vault/ About Azure Key Vault https://docs.microsoft.com/en-us/azure/key-vault/general/overview Microsoft identity platform and OAuth 2.0 On-Behalf-Of flow https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow How to fix “The policy requires the caller ‘…’ to use on-behalf-of (OBO) flow” when accessing Key Vault from App Service? https://docs.microsoft.com/en-us/answers/questions/117610/how-to-fix-34the-policy-requires-the-caller-3939-t.html Azure Key Vault helps solve the following problems:
- Secrets Management – Azure Key Vault can be used to Securely store and tightly control access to tokens, passwords, certificates, API keys, and other secrets
- Key Management – Azure Key Vault can be used as a Key Management solution. Azure Key Vault makes it easy to create and control the encryption keys used to encrypt your data.
- Certificate Management – Azure Key Vault lets you easily provision, manage, and deploy public and private Transport Layer Security/Secure Sockets Layer (TLS/SSL) certificates for use with Azure and your internal connected resources.
How to securely store and load secrets using Azure Key Vault in .NET Core (using a certificate) How to – Read Secret from Azure Key Vault using SecretClient class – Console App C#
https://nishantrana.me/2020/11/27/read-secret-from-azure-key-vault-using-secretclient-class-console-app-c/ https://www.c-sharpcorner.com/blogs/fetching-secrets-from-key-vault-in-net-console-app
public class Program { static async Task Main() { string tenantId = "..."; string clientId = "..."; string clientSecret = "..."; ClientSecretCredential clientSecretCredential = new ClientSecretCredential(tenantId, clientId, clientSecret); string vaultUrl = "https://app-name.vault.azure.net/"; var client = new SecretClient(vaultUri: new Uri(vaultUrl), credential: clientSecretCredential); Response<KeyVaultSecret> response = await client.GetSecretAsync("AppSettings-CoinbaseProClient-ApiKey"); Console.WriteLine(response); } }
How can we get tenant id, client id and client secret for Azure Function App?
App registrations Related videos
References
-
.NET MAUI Premiere
Intro
.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML.
Using .NET MAUI, you can develop apps that can run on Android, iOS, macOS, and Windows from a single shared code-base.
https://docs.microsoft.com/en-us/dotnet/maui/what-is-mauiLearn .NET MAUI – Full Course for Beginners | Build cross-platform apps in C# Related videos
References
-
React Premiere
Intro
React Course – Beginner’s Tutorial for React JavaScript Library [2022] https://scrimba.com/learn/learnreact
Imperative vs Declarative (How vs What)
Imperative vs Declarative Programming imperative
(how)const h1 = document.createElement("h1") h1.textContent = "Hello world" h1.className = "header" console.log(h1)
declarative
(what)// JSX ReactDOM.render(<h1>This is JSX</h1>, document.getElementById("root"))
Generally, “declarative” programming is preferred, and they cause fewer bugs.
Imperative vs Declarative Programming Functional Components
Hooks
React Router
Context API
Tools
Related videos
References
-
The Lambda Architecture
Intro
Book: Big Data: Principles and best practices of scalable realtime data systems
The main idea of the Lambda Architecture is to build Big Data systems as a series of layers. Each layer satisfies a subset of the properties and builds upon the functionality provided by the layers beneath it. The high-level ideas of how the whole system fits together are fairly easy to understand.
Related videos
References
-
ASP.NET Core – Minimal APIs overview
Intro
Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps that want to include only the minimum files, features, and dependencies in ASP.NET Core.
https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-apiMinimal APIs in .NET 6 Part 1 – Understanding and working with ASP.NET Core 6.0 Minimal API – Building Microservices The simplest way to create an API is with .NET | Minimal APIs Dependency Injection
https://youtu.be/eRJFNGIsJEo?t=591 Tools to use
Related videos
References
-
WordPress Premiere
Code Snippets
How to Create a Custom WordPress Theme – Full Course
-
Google Tag Manager (GTM) & Google Analytics 4 (GA4) Premiere
Intro
Google Tag Manager: https://tagmanager.google.com
Tag Assistant: https://tagassistant.google.com/
Google Analytics: https://analytics.google.com
Google Tag Manager is a tag management system (TMS) that allows you to quickly and easily update measurement codes and related code fragments collectively known as tags on your website or mobile app. Once the small segment of Tag Manager code has been added to your project, you can safely and easily deploy analytics and measurement tag configurations from a web-based user interface.
https://support.google.com/tagmanager/answer/6102821?hl=enTag Manager container
A collection of tags, triggers, variables, and related configurations installed on a given website or mobile app is called a container. A Tag Manager container can replace all other manually-coded tags on a site or app, including tags from Google Ads, Google Analytics, Floodlight, and 3rd party tags.
https://tagmanager.google.com/#/homeGoogle Analytics Properties
Data Streams
Each Google Analytics 4 property can have up to 50 data streams (any combination of app and web data streams, including a limit of 30 app data streams).
A data stream is a flow of data from a customer touchpoint (e.g., app, website) to Analytics.
https://support.google.com/analytics/answer/9303323Enhanced measurement Subdomains
Setup and install Tag Manager
https://support.google.com/tagmanager/answer/6103696?hl=en
Install Google Tag Manager to configure and deploy tags, including tags from Google Ads, Google Analytics, Floodlight, and 3rd parties.
Click on the container ID to get code snippet. Install and Setup Google Tag Manager in WordPress
https://www.wpbeginner.com/beginners-guide/how-to-install-and-setup-google-tag-manager-in-wordpress/
Another tutorial can be seen here:
Related Videos
-
Best vegan breakfast in Austin
Sometimes it can be difficult to find vegan restaurants in some regions. Fortunately, Austin, TX has plenty of options for vegans/vegetarians. Without further ado, we would like to list the places that we have compiled for you, offering vegan breakfast options. Please let us know if there are places you would like to add!
This list will be updated over time. So when you’re looking for places for a vegan breakfast in Austin, you can use this as a guide!
-
TypeScript: Creating .d.ts Files from .js files
TypeScript tutorial: Declaration files Let’s say you have a simple JavaScript project as follows:
If you want to create
.d.ts
files from.js
files, you can follow the steps below.index.js
class DemoClass { constructor() {} printSomething() { console.log('this is printing'); } sum(val1, val2) { return val1 + val2; } }
package.json
{ "name": "typescript-dts-from", "version": "1.0.0", "description": "- https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "devDependencies": { "typescript": "^4.7.4" } }
tsconfig.json
{ // Change this to match your project "include": ["src/**/*"], "compilerOptions": { // Tells TypeScript to read JS files, as // normally they are ignored as source files "allowJs": true, // Generate d.ts files "declaration": true, // This compiler run should // only output d.ts files "emitDeclarationOnly": true, // Types should go into this directory. // Removing this would place the .d.ts files // next to the .js files "outDir": "dist", // go to js file when using IDE functions like // "Go to Definition" in VSCode "declarationMap": true } }
We just need to run
tsc
command in the root of the project. This creates theindex.d.ts
file under thedist
folder.index.d.ts
declare class DemoClass { printSomething(): void; sum(val1: any, val2: any): any; }
If you see missing and/or incorrect information in the page, please let us know and we will try to fix it as soon as possible. Thanks!
Related Videos
References
-
The best budget 10-Inch tablets 2022
We have listed the most affordable tablets that can be bought in 2022 for you and have good performance according to the price. If there are products that you want to add to the list or that you think will be removed, please write them in the comments! All tablets here have the Android operating system. We did not include tablets from Amazon with Fire OS in our list. In addition, our expectation from the budget tablet is that it has at least 4 GB of RAM in 2022 conditions.
Product Price Operating System Screen Size and Resolution Memory (RAM) Processor (CPU) Hard Drive SAMSUNG Galaxy Tab S6 Lite 10.4-inch Android Tablet 128GB Wi-Fi S Pen AKG Dual Speakers, Angora Blue $249.99 Android 12 10.4 Inches
2000 x 1200 pixels64 GB Qualcomm Snapdragon 720G 64 GB 2 in 1 Tablet 10 inch Android 11 Octa-Core Processor Dual Sim Cellular 4G LTE Tablet PC 4GB RAM 64GB ROM 256GB Expand, Google Certified Tablet with Keyboard 13 MP Camera Bluetooth WiFi GPS $135.99 Android 11 10.1 Inches
1280×8004 GB 2.4 GHz 64 GB Product Price Operating System Screen Size and Resolution Memory (RAM) Processor (CPU) Hard Drive Related Videos