always free cloudresources

 https://www.learncloudnative.com/blog/2022-01-30-blog-on-oci

Here’s a quick comparison of always-free resources that each cloud vendor offers. It should be obvious this is not a detailed nor an apple-to-apple comparison. The offerings and service names differ between vendors, and so do terms provided by different providers. I only picked the compute, database, and storage options for a quick comparison.

Vendor Compute Databases Storage
AWS 750 hours (1yr only) 25 GB DynamoDB 100 GB storage gateway
Azure 750 hours (1yr only) Azure Cosmos DB (25 GB) 5 GB blob storage (1yr only)
Google 1 e2-micro instance per month Firestore (1 GB per project) 5 GB-months of regional storage
Oracle 4 ARM-based A1 cores and 24 GB memory NoSQL DB (3 tables with 25 GB per table) 10 GB object storage

solution:evenlySpaced

 Given three ints, a b c, one of them is small, one is medium and one is large. Return true if the three values are evenly spaced, so the difference between small and medium is the same as the difference between medium and large.

 

 

public boolean evenlySpaced(int a, int b, int c) {
  return (a – b == b – c) || (a – c == c – b) || (a – b == c – a);
}
 

tmux is allowed in CKAD

 Therefore I needed to learn tmux. main commands below

  • Ctrl+b " — split pane horizontally.
  • Ctrl+b % — split pane vertically.
  • Ctrl+b arrow key — switch pane.
  • Ctrl+b : - enter command mode, "setw -g mouse" <-to enable mouse scroll in tab 

looks nice

 

check https://cloudacademy.com/blog/micro-blog-1-of-3-what-i-wish-i-knew-before-i-took-the-ckad-multi-what/

linux vscode dotnet6

how to create webservice with dotnet

dotnet new webapi -o MyMicroservice –no-https -f net6.0

I was getting error below in linux mint 

“The SDK ‘Microsoft.NET.SDK.WorkloadAutoImportPropsLocator  specified could not be found.  /snap/dotnet-sdk/current/sdk/6 Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props”

and solution is https://stackoverflow.com/a/70871704/175554

how it looks 

vscode in linux mint