teleren/devto huggingface dataset:
How to ask your interviewer questions that make you stand out
Tags: career, programming, beginners, computerscience
Published: 2022-05-25 20:43:13

**Takeaway:** Don’t ask lazy questions, always prepare questions for your interviews.

Asking your interviewer questions at the end of the interview is a great way to leave them with a memorable impression of who you are. Most people waste this opportunity by asking basic, uninteresting questions. When you are trying to get a job at a competitive workplace you need to stand out as much as possible.

---

I can’t tell you how many interviews I’ve conducted at Facebook where the question portion interview goes like this:

> Interviewer(Me): “We are almost out of time, do you have any questions for me?”
> 
> 
> Interviewee: “How do you like working at FB?”
> 
> Interviewer(Me): «Regurgitates the same response I’ve given during 5 other interviews that week about how the money, food, and culture are great.»
> 

## How to ask good questions

Luckily there is a simple formula for asking great questions that leave your interviewer with a positive view of who you are. It requires a little preparation before the interview, but it’s 100% worth it.

1. Humanize - Introduce some humanizing quality about yourself (Be careful not to sound braggy here!)
2. Connect - Connect your humanizing quality to the company
3. Ask - Ask a relevant question that forces the interviewer to think

Example:

1. Humanize - I love working on projects that help combat climate change.
2. Connect - I know Google has committed to be [“24-7 carbon-free” as a company](https://www.cnbc.com/2021/07/23/meeting-googles-climate-change-goals-stresses-out-ceo-sundar-pichai.html)
3. Ask - Have you been a part of, or seen any, initiatives at Google that have had a positive impact on the planet?

Follow this simple formula and your interviewer will walk away with a lasting impression of who you are. Don’t ask lazy questions.

## Join the community

Looking for that study buddy or community of people to hold you accountable? Hackpack is a hyperactive community of engineers all studying for programming interviews.

Apply Here: **[hackpack.io](https://www.hackpack.io/)**

**[Big Tech Interview Tips Newsletter](https://fangprep.substack.com/)**
CShell - A bash alternative written in 500 lines of C ⛵🐚
Tags: linux, opensource, showdev, 100daysofcode
Published: 2022-05-25 20:33:58

<div align = "center">

<h1><a href="https://github.com/2kabhishek/cshell">cshell</a></h1>

<h3>Not a seashell ⛵🐚</h3>

</div>

## What is this

cshell is an alternative to the standard sh shell written entirely in c and all in a single file within ~500 LOC.

It supports pipes, redirections, history, and more. Comes with a customized prompt.

## Inspiration

Most Operating Systems classes have a project for creating a shell. I never got to around to do that.
This is my shot at creating my own shell.

## Prerequisites

Before you begin, ensure you have met the following requirements:

- You have installed the latest version of `gcc, make`

## Getting cshell

To install cshell, follow these steps:

```bash
git clone https://github.com/2kabhishek/cshell
cd cshell
make cshell
```

## Using cshell

You can link the cshell executable to your $PATH or just run it from the command line.

```bash
./cshell
```

This will start the shell and display the a help message along with the prompt.
You can use it like any other shell.

## How it was built

cshell was built using `c`

## Challenges faced

- Struggled somewhat in the begining to handle signals, but eventually got it working.

## What I learned

- Learned a lot about `c` and it's different syscalls.
- Understood the internal workings pipes and redirections.

## What's next

Clean up the code and make it more readable, add more features, and make it more robust.

Hit the ⭐ button if you found this useful.

## More Info

<div align="center">

<a href="https://github.com/2KAbhishek/cshell">Source</a> | <a href="https://2kabhishek.github.io/cshell">Website</a>

</div>
Making a Newsletter
Tags: python, programming, html, webdev
Published: 2022-05-25 20:10:05

So I decided to make a newsletter.
I decided to use MongoDB for saving the data for the email list and verification list.
Then I went to the code for my portfolio (my portfolio is https://vulcanwm.is-a.dev) which is coded in back-end with Python and front-end with HTML, JS, CSS.

---
I decided to have 2 different MongoDB collections: one for the verification list, and one for the emailing list.
Then I made functions for sending emails, verifying emails, saving emails to verification, adding emails to the email list, unsubscribing to the newsletter, and many more functions.
Then I connected this to my Flask code on my portfolio.
I did all of this within a week.

---

If you want to know more about this and other things I do, subscribe to [my newsletter](https://vulcanwm.is-a.dev/newsletter)
Turn Angular application into Chrome extension
Tags: angular, tutorial, chrome, extension
Published: 2022-05-25 19:43:27

It's pretty easy actually, this is going to be a short one.

Step 1: create Angular application (duh), i.e.
```bash
npx @angular/cli new angular-chrome-extension
```

Step 2: add a manifest file to the source folder:
```json
{
  "manifest_version": 3,

  "name": "My App Extension",
  "description": "A basic chrome extension built with Angular",
  "version": "0.1",
  "action": {
    "default_popup": "index.html",
    "default_title": "Open the popup"
  },
  "content_security_policy": {
    "script-src": "self",
    "object-src": "self'"
  }
}
```

Step 3: add the manifest file to the build assets in `angular.json`:
```json
"architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            ...
            "assets": ["src/favicon.ico", "src/assets", "src/manifest.json"],
            ...
          },
```

Step 4: build
```bash
npm run build
```

Now you have an unpacked Chrome extension in `dist/angular-chrome-extension`, which you can load with developer mode on, enjoy :)

P.S. [repo with code](https://github.com/Bwca/demo__angular-chrome-extension)
How to create AKS using Terraform - Part 2
Tags: terraform, azure, aks, kubernetes
Published: 2022-05-25 19:33:56

In this article, We will see how to create AKS cluster using Hashicorp [Terraform](https://www.terraform.io/)

## How to create AKS using Terraform

**- [How to create AKS using Terraform - Part 1](https://dev.to/makendrang/how-to-create-aks-using-terraform-part-1-5bkf)**
**- [How to create AKS using Terraform - Part 2](https://dev.to/makendrang/creation-of-azure-kubernetes-service-using-terraform-part-2-12ce)**


## Terraform files


**[provider.tf](https://github.com/MakendranG/Azure_AKS_Terraform/blob/main/provider.tf)**

This file contains subscription details and backend details where we are going to store the `tfstate` file.

**[main.tf](https://github.com/MakendranG/Azure_AKS_Terraform/blob/main/main.tf)**

This file will create the AKS cluster with log analytics workspace.

**[variables.tf](https://github.com/MakendranG/Azure_AKS_Terraform/blob/main/variables.tf)**

This file contains all the variable details.

**[outputs.tf](https://github.com/MakendranG/Azure_AKS_Terraform/blob/main/outputs.tf)**

Once the cluster created, we need some details to access the Kubernetes, with outputs.tf files we can get those details.

Once all the files created, lets start the execution.

## Terraform initialization


```
terraform init
```

Execute the above command to initialize the Terraform deployment. This command downloads the Azure modules required to manage our Azure resources.

## Terraform plan execution

```
terraform plan
```

Execute the above command to create an execution plan. This command creates an execution plan, however doesn’t execute it. Instead, it determines what moves are critical to create the configuration targeted in our configuration files. This sample approves us to confirm whether the execution format suits our expectations before making any modifications to true resources.

## Applying the Terraform Execution Plan

```
terraform apply
```

Execute the above command to use the execution plan to our cloud infrastructure.

Gratitude for perusing my article till end.I hope you learned some thing specific today. If you loved this article then please share to your pals and if you have suggestions or thoughts to share with me then please write in the comment box.


Above blog is submitted as part of 'Devtron Blogathon 2022' - https://devtron.ai/
Check out Devtron's GitHub repo - https://github.com/devtron-labs/devtron/ and give a ⭐ to show your love & support.
Follow Devtron on LinkedIn - https://www.linkedin.com/company/devtron-labs/ and Twitter - https://twitter.com/DevtronL/, to keep yourself updated on this Open Source project.
How to get your first job in IT
Tags: opensource, career, github, beginners
Published: 2022-05-25 19:32:33

An unorthodox approach to getting your first job in IT, based on my personal opinion.
https://bit.ly/3Nxtly0

Hackerrank, I am sorry. You still rock, but nothing beats that approach :)

Klarna employees, those 10% who were laid off. My post is one of the realistic ways to get jobs in IT, as I see it.


Martina Majova - thank you for the inspiration

P.S. #recruiters - you are still needed, even more than before. We just will have to grow, together ;)
How automatic repair works in AKS
Tags: azure, kubernetes, aks, repair
Published: 2022-05-25 19:28:52


AKS continuously monitors the health of the worker and performs automatic repairs if necessary. Maintenance is performed on virtual machines that are experiencing issues.

Service disruptions for clusters can be minimized with the help of AKS and Azure VMs.


In this article, we'll learn how the automatic repair function works for both Windows and Linux nodes.

## How AKS checks for unhealthy nodes

The following rules are used by AKS to determine if there is a problem with nodes.

- The **NotReady** status is reported on consecutive checks.

- No status is reported within 10 minutes.

The health state of our nodes can be checked manually by `kubectl`.

```
kubectl get nodes
```

## How automatic repair works

AKS takes following actions if it finds an unhealthy node for 10 minutes:

1. Reboot the node.
2. If the reboot is not successful, reimage the node.
3. If the reimage is not successful, redeploy the node.


If auto-repair is unsuccessful, alternative remedies are investigated by AKS engineers.


If AKS finds a lot of unhealthy nodes during a health check, they will repair them individually.

## Node Autodrain



There are [Scheduled Events](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/scheduled-events) that can occur on the underlying virtual machines in any of our node pools. For spot node pools, scheduled events may additionally reason a preempt node match for the node.



Certain events, such as `preempt`, cause AKS to attempt a cordon and drain of the affected nodes, which allows for a graceful rescheduling of any affected workload on that node.




When this happens, we might notice the node to receive a taint with "_remediator.aks.microsoft.com/unschedulable_", because of "_kubernetes.azure.com/scalesetpriority: spot_".



The actions they cause for AKS is shown in the following table.






| Event | Description |   Action   |
| --- | --- | --- |
| Freeze | The VM is going to stop for a few seconds. There is no impact on memory or open files when the network is suspended. | No action |
| Reboot | The VM is going to be reboot. The non-persistent memory is lost.  | No action | 
| Redeploy |The VM is going to be redeployed. The ephemeral disks are lost. | Cordon and drain |
| Preempt | The spot is being deleted. The ephemeral disks are lost.  | Cordon and drain |
| Terminate | The VM is going to be deleted. | Cordon and drain |


## Limitations

In many cases, AKS can determine if a node is healthy and attempt to fix it, but in some cases, AKS can't detect an issue and can't repair it. AKS can't detect issues if a status is not reported due to an error in the network configuration, or if a node has failed to register as a healthy one.


Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.
CSI storage driver support on AKS
Tags: azure, aks, kubernetes, container
Published: 2022-05-25 19:28:41


The `Container Storage Interface` (CSI) is a widespread for exposing arbitrary block and file storage structures to containerized workloads on Kubernetes. By adopting and the use of CSI, Azure Kubernetes Service (AKS) can write, deploy, and iterate plug-ins to expose new or enhance existing storage systems in Kubernetes besides having to touch the core Kubernetes code and wait for its release cycles.

The CSI storage driver support on AKS permits us to natively use:

**Azure disks** can be used to create a Kubernetes DataDisk resource. Disks can use `Azure Premium Storage`, backed through high-performance SSDs, or `Azure Standard Storage`, backed by using regular HDDs or Standard SSDs.





For most production and development workloads, we need to use Premium Storage. Azure disks are mounted as _ReadWriteOnce_ and are solely accessible to a single pod. For storage volumes that can be accessed by multiple pods simultaneously, we want to use Azure Files.


**Azure Files** can be used to mount an `SMB 3.0/3.1 share` backed with the aid of an Azure storage account to pods. With Azure Files, we can share data across a couple of nodes and pods. Azure Files can use Azure Standard storage backed by regular HDDs or Azure Premium storage backed with the aid of high-performance SSDs.



## Azure disk CSI drivers

The Azure disk Container Storage Interface (CSI) driver is a CSI specification-compliant driver used by Azure Kubernetes Service (AKS) to manage the `lifecycle of Azure disks`.


## Azure Disk CSI driver features

Azure Disk CSI driver affords following features:

- Performance enhancement when attach or detach disks in parallel
- ZRS disk support
- Premium_ZRS, StandardSSD_ZRS disk kinds are supported, check greater details about [Zone-redundant storage for managed disks](https://docs.microsoft.com/en-us/azure/virtual-machines/disks-redundancy)
- [Snapshot](https://docs.microsoft.com/en-us/azure/aks/azure-disk-csi#volume-snapshots)
- [Volume clone](https://docs.microsoft.com/en-us/azure/aks/azure-disk-csi#clone-volumes)
- [Resize disk PV without downtime](https://docs.microsoft.com/en-us/azure/aks/azure-disk-csi#resize-a-persistent-volume-without-downtime)

## Azure Files CSI drivers

The Azure Files Container Storage Interface (CSI) driver is a CSI specification-compliant driver used with the aid of Azure Kubernetes Service (AKS) to manage the lifecycle of Azure Files shares.

## Azure File CSI driver features

Azure File CSI driver provides following features:

- NFS 4.1
- Private endpoint
- support creating large mount of file shares in parallel

Thanks for reading my article till end. I hope you discovered something different today. If you enjoyed this article then please share to your buddies and if you have suggestions or thoughts to share with me then please write in the comment box.
Azure Static Web Apps CLI is now GA 🚀
Tags: cloud, devops, javascript, azure
Published: 2022-05-25 19:28:10

![Azure Static Web Apps CLI is now GA](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/254zd16j6g1jc32fh9bq.png)
 

## What is Azure Static Web Apps?

Azure Static Web Apps is a service that's perfect for your full stack as well as static application projects. Yes, you heard that correctly. Regardless if you are dealing with:

- A static resume site with vanilla HTML, CSS and JavaScript
- SPA application with Angular, React, Vue, etc.
- Static site generators like Gatsby, Next, etc.

Azure Static Web Apps is there for you and enables you to deploy your files to Azure. In order words, Azure Static Web Apps if the perfect choice if you are looking for:

- FREE Web hosting for static content like HTML, CSS, JavaScript, and images.
- Integrated API support provided by Azure Functions with the option to link an existing Azure Functions app using a standard account.
- First-class GitHub and Azure DevOps integration where repository changes trigger builds and deployments.
- Globally distributed static content, putting content closer to your users.
- Free SSL certificates, which are automatically renewed.
- Custom domains to provide branded customizations to your app.
- Seamless security model with a reverse-proxy when calling APIs, which requires no CORS configuration.
- Authentication provider integrations with Azure Active Directory, GitHub, and Twitter.
- Customizable authorization role definition and assignments.
- Back-end routing rules enabling full control over the content and routes you serve.
- Generated staging versions powered by pull requests enabling preview versions of your site before publishing.

## What is Azure Static Web Apps CLI?

{%youtube xSrSifDQzR0 %}

It's the CLI companion for Azure Static Web Apps that you use from your local dev machine. The SWA CLI offers tons of features, such as:

- Work on your JAMstack app locally
- Built-in framework detection
- Serverless support
- Authentication & Authorization
- Login to Azure
- Deploy & Ship from the CLI

Check it the documentation [website](https://aka.ms/swa-cli-ga) 👍
Have fun!

---

Feel free to reach out on Twitter at [@manekinekko](https://twitter.com/manekinekko) if you want to get started with Azure Static Web Apps. You can also follow my work at [wassim.dev](https://wassim.dev).
NestJS Rest API boilerplate using MongoDB
Tags: api, node, mongodb, javascript
Published: 2022-05-25 19:23:53

Nestjs is one of the best available TypeScript framework that supports various databases and ORMs. You can easily develop Rest and GraphQL APIs.

I developed one boilerplate for Rest API using Nest.js and MongoDB. You can find full source code at: [https://github.com/deadwin19/nest-rest-mongo-boilerplate](https://github.com/deadwin19/nest-rest-mongo-boilerplate)
Plotting my Web Components path
Tags: webcomponents, javascript, showdev
Published: 2022-05-25 19:19:06

---
title: Plotting my Web Components path
published: true
description: The Web Component eco system
tags: webcomponents,javascript,showdev
cover_image: https://bigthink.com/wp-content/uploads/2022/05/5-Missions-beyond-50-AU-NASA.jpg
---

I fell halfway down the rabbithole, creating my own _"Make Web Components Better"_ tool. ([like 61 others have done](https://webcomponents.dev/blog/all-the-ways-to-make-a-web-component/))

Realized in time, I should first draw the realm I am venturing in.

{% jsfiddle https://jsfiddle.net/WebComponents/afw3hLs9/ result,html %}

Feel free to respond in the comments with your altered JSFiddle;  
you can include them with:

```
{% jsfiddle YOUR_URL result,html %}
```
NestJS boilerplate using GraphQL and MongoDB
Tags: javascript, node, graphql, mongodb
Published: 2022-05-25 18:56:47

[Nestjs ](https://nestjs.com/)is one of the best available TypeScript framework that supports various databases and ORMs. You can easily develop Rest and [GraphQL ](https://graphql.org/)APIs.

I developed one boilerplate for GraphQL API using Nest.js and [MongoDB](https://www.mongodb.com/). You can find full source code at: [https://github.com/deadwin19/nestjs-graphql-mongodb-boilerplate](https://github.com/deadwin19/nestjs-graphql-mongodb-boilerplate)
Understanding search engine optimization and search engine marketing.
Tags: seo, marketing, sem, writing
Published: 2022-05-25 18:55:28


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhk0bcfk8745jwlpx3t0.png)Hello have you been wondering what is referred to by SEM and SEO.? Well stick with these article and you will have a brief understanding of what it entails.

Search engine marketing often referred to as SEM is a digital marketing way or strategy to increase the visibility of your website after a search engine results pages (SERPS) where as Search engine optimization SEO – is the process of ensuring your website rank higher in organic search results. 

Search engine basis  involves showing your site to people who are actively looking for you or your services. Search engine optimization is not paid for whereas search engine marketing is paid for to show your website .

Search engine optimization success is achieved by choosing the relevant / right keywords that users will use to get to your website. There  are two types of keywords mainly :
•	Short tail 
•	Long tail
Short tail keywords are ‘general’ consisting of one or two keywords while the long tail keywords are those that contain more specific explanation than the short keywords
Search engine marketing help business get ‘in front’ of  or promote brand presence conversion. This is achieved by purchasing ADS on search engines such as Bing, Yahoo, Google and many other search engines. 

The advantages of both SEM and SEO is to draw traffic to your website and help bring people or future customers that are actively searching for your products or services. It  enables your business or website to appear to different people and aid you to focus on your market niche promoting your website. It helps you compete in the marketing of your website.

To achieve SEM and SEO success you  have to use most relevant keywords to describe  your current website content. Setting realistic goals to achieve  and improve your website or business performance. You have to think like a customer and what they might probably type on search engine to find your service or business.

In conclusion Search Engine Optimization is used as umbrella or generally shelves SEM but since SEM is for paid advertisements they are totally separate since one shows/appears in organic search that is (SEO) while the other one is about paying for ads to attract traffic to your site that is (SEM).
SEO is free and depend  on organic search strategies but SEM  relies on paid advertising but the payments for it vary depending on various factors.
And you wonder why young programmers deliver uninspired code?
Tags: programming, showdev
Published: 2022-05-25 18:52:39

---
title: And you wonder why young programmers deliver uninspired code?
published: true
description: Explaining why old geezer programmers have more imagination
tags: programming, showdev
cover_image: https://i.imgflip.com/2hjyxe.jpg
---

Us old geezers grew up, learning to program, with:

<code>SoftSide August 1981 (paper magazine)</code>
![40 year old computer magazine](https://www.trs-80.com/images/covers/magcover-Softside-v4n11-(1981)-(Softside-Publications).jpg)

My young team members grow up with:

<code>CodeMentor april 2022 ("modern" digital magazine)</code>
![2022 educational site for programmers](https://i.imgur.com/K2aAuFO.png)
Day 3 : FUNDAMENTALS 3
Published: 2022-05-25 18:47:46

After the  section I was able to have a general overview of the following topics: 
 

- eight data types in JavaScript.
- difference between single, double, and backtick quotes.
- Embeding a variable/expression in a string.
- Know  what a method is.
- logical operators. And lastly was able to understand what the comparison, conditionals and nesting
 is.
_Doing great._💪
Welcome Thread - v175
Tags: welcome
Published: 2022-05-25 18:23:51

---
title: Welcome Thread - v175
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![Welcome letters ticking in](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bd6yj1iqwook4ofxtm1y.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**