teleren/devto huggingface dataset:
Interview for frontend notes - behavioral questions
Tags: career
Published: 2021-03-07 08:26:20

This is it. You earn too little, project is too boring, technologies used in the company are old and there are no space left to grow. Its time to consider changing a job.
Every now and then there is a time in software engineer career when such feelings occur.

If you've had enough and you feel its time to change, be prepared to answer few behavioral questions I listed below. Your answers will give the interviewer some idea of what kind of person You are, whats Your motivations and will You be a good fit for their company.

## Motivation

- Whats Your employment situation?
- Why do You want to change job?
- What did You like about previous job?
- What are You looking for in the next job?
- What should the next company do better, that will be satisfying for You as their employee?
- What sort of companies do You see yourself in? Small software house ? Startup? A product company, or a body-lending company ?
- Why do you want to work for us?

## Background

- What are Your responsibilities in current role?
- What tech stack were You working in?
- What technologies are You most comfortable with?
- What technologies, programming languages would You want to work with in the future?

- What types of projects did You participate in?
- Did You work in Agile methodologies? Are You familiar with Scrum?
- How big were the teams You were working in?
- Are You more comfortable working in small or big teams?

## Learning attitude

- What are You learning in free time? What do You do to expand Your knowledge ?
- Do You have a side project?
- Do You contribute to OSS?
- What was the last good course You watched/took ?

## Soft skills

- What do You do when you are facing a problem, You had never faced before ?
- What is your greatest professional accomplishment?
- What is your biggest professional failure?
- Did You work with difficult people? How was it? Are You able to work with such people?

## Formalities

- When are You available?
- What are Your salary expectations?
- What type of contract are You interested in? Employment or B2B?

## Your questions

- How many stages of the recruitment process You have?
- How big are the development teams?
- Are You working in Agile methodologies? Scrum? Kanban?
- To which team i am being recruited to?
- What kind of projects am I going to work in?
- Whats the coulture of the company?
- Is there a clear career path, development opportunities ?
- Is there a clear process of pay raise in the company ?

These are some example questions You may face during early recruitment process. Of course, its unlikely that You will have to answer to all of them, but preparing for most will be benefitial and give You confidence.
Looking to integrate a booking calendar into your website?
Tags: showdev, saas, startup, webdev
Published: 2021-03-07 12:25:09

We've got the right solution for you. 

I'm proud to announce that we've launched our new product. 
It's called https://datelist.io 

Stop struggling with HTML, CSS, JS, and a complex backend to add a booking system for your website. We've built Datelist.io for you. 

Feel free to let me know what you think about it.
Filter an array of objects with multiple conditions
Tags: javascript, arrays, basics
Published: 2021-03-07 17:04:30

---
title: Filter an array of objects with multiple conditions
published: true
description: Simple solution for multiple filtering conditions
tags: 
- javascript
- arrays
- basics
canonical_url: "https://geodev.me/blog/multiple-filters-conditions/"
---
In one of my projects, I ran into the following problem. There was an array of objects and I had many filter conditions, stored in another array. These filters were generated by the user in the web app, using multiple checkboxes.
In this short post, I'd like to show you how to use `Array.prototype.filter` method in case you need to use multiple filter conditions.

Let's start with this simplified set of data:

```javascript
const users = [
  {
    id: 1,
    status: "normal",
    country: "japan",
  },
  {
    id: 2,
    status: "premium",
    country: "italy",
  },
  {
    id: 3,
    status: "premium",
    country: "japan"
  },
  {
    id: 4,
    status: "normal",
    country: "sweden"
  },
  {
    id: 5,
    status: "normal",
    country: "germany"
  },
  {
    id: 6,
    status: "normal",
    country: "italy"
  },
  {
    id: 7,
    status: "gold",
    country: "sweden"
  },
  {
    id: 8,
    status: "gold",
    country: "germany"
  }
];
```

If we want to filter this collection in a dynamic way, the good option might be to store our filters in another array:
```javascript
const filters = [{ type: "status", name: "gold" }, { type: "country", name: "sweden" }];
```

Here I'm creating an array of objects, and each object represents a separate filter. There might be dozens of properties for each `user` so the `filters` array is created dynamically.

To filter such collection we need to merge the `filter` and `some` Array methods. Here we want to find all elements that have `status` equal to 'gold' or `country` equal 'sweden'.

```javascript
const filteredResults = users.filter(el => filters.some(filterEl => el[filterEl.type] === filterEl.name));
/*
Result: 
[
  {
      "id": 4,
      "status": "normal",
      "country": "sweden"
  },
  {
      "id": 7,
      "status": "gold",
      "country": "sweden"
  },
  {
      "id": 8,
      "status": "gold",
      "country": "germany"
  }
]
*/
```

This is a simple example but most of our solutions will start from this point. Using `filter`, `some`, `every`, and other Array methods together will solve most of your problems.
Few npm packages for using in your project
Tags: npm, beginners, javascript, react
Published: 2021-03-07 21:39:18

Since I am working in React I want to share some npm packages which I have used in my projects which I got to know during my journey of learning.
HOW TO USE-For using it in your project you need to install it,import it and then use it accordingly.I have also linked a project of mine where I have used the package so that it is easy for you to understand.

So,let us take a look at the below list:

1.uuid:
[LINK](https://www.npmjs.com/package/uuid)
USE-You can use this package for generating unique id in your project.For example,if you want to edit or delete any data in your project then React needs to know exactly which data you want to modify.
EXAMPLE PROJECT- Bookmark App.
[Github Repository Link](https://github.com/kritika27/bookmark-reactjs),
[DEMO LINK](https://nervous-fermi-c86968.netlify.app/)

2.currency-symbol-map:
[LINK](https://www.npmjs.com/package/currency-symbol-map)
USE-You can  use it to generate currency symbols in your App for various currencies.For example,in Expense tracker you can choose to have symbols for Euros or Dollar based on in which unit you are recording your expenses.
EXAMPLE PROJECT- Expense Tracker.
[Github Repository Link](https://github.com/kritika27/expense-tracker-reactjs),
[DEMO LINK](https://angry-raman-08502b.netlify.app/)

3.react-markdown:
[LINK](https://www.npmjs.com/package/react-markdown)
USE-You can use this package to generate Markdown preview of your markdown text.
EXAMPLE PROJECT- Markdown Previewer.Just try to paste any one of your Github Project's README file to see the preview.
[Github Repository Link](https://github.com/kritika27/markdown-react),
[DEMO LINK](https://romantic-shirley-5b3e68.netlify.app/)

4.react-dark-mode-toggle:
This one is really handy.
[LINK](https://www.npmjs.com/package/react-dark-mode-toggle)
USE-You can use this as a toggle button in your App for switching to light theme or dark theme.
EXAMPLE PROJECT- Menu Card
[Github Repository Link](https://github.com/kritika27/menu-react-dark-theme),
[DEMO LINK](https://ecstatic-bartik-31bbf0.netlify.app/)

5.validator.js:
[LINK](https://www.npmjs.com/package/validator)
USE-It is a string validator.For example,you can use it to validate the url.
EXAMPLE PROJECT- Bookmark App.
[Github Repository Link](https://github.com/kritika27/bookmark-reactjs),
[DEMO LINK](https://nervous-fermi-c86968.netlify.app/)

6.react-icons:
[LINK](https://www.npmjs.com/package/react-icons)
USE-As the name suggests you can use it for displaying icons in your project.

Ofcourse there are many npm packages but I wanted to mention only few for now which we use in general.Let me know which npm packages you are using apart from these.

Happy Learning :)
You can follow me on [Twitter](https://twitter.com/kritikasri27) and [Github](https://github.com/kritika27).
Start week in code collab
Published: 2021-03-08 13:29:54

The Code Collab Programm started. We got the first meeting to get know each other before our first Sprint Retro & Planning for CodeCollab.
In the first week we had the Sprint Team meeting, the first Talk about our App, the our first discussion about the App and its business requirements.  
We got our first tasks before: creating a PR on Git and setup the environment for developing which I faced (still facing) issues installing Postgres and Ruby.
Here are my thoughts about things I think it's important for me to do:
* using __communication__ tools for remote working;
* __being aware__ by doing tasks, specially learning something totally new;
* __writing__ steps and sources from internet which I have taken to solve a problem or by learning a new stack;
* learning more __Git__ as a project/__collaborative__ tool;
* __looking around__ (team, project and information on the internet).
Instrumentul Lotus Notes pentru Outlook pentru a converti NSF în PST cu e-mail, contacte, calendar
Published: 2021-03-08 11:34:15

Convertorul Lotus Notes către Outlook este o aplicație fiabilă și sigură de relocare a e-mailului pentru trimiterea plicurilor cutiei poștale Lotus Notes către Outlook. Selectați <b>GainTools <a href="https://www.gaintools.com/nsf/pst/">software-ul convertor NSF-PST</a></b> pentru a înțelege funcționarea aplicației și elementele esențiale înainte de a cumpăra lansarea licenței de utilitate.

Lotus Notes pentru Outlook a devenit astăzi o sarcină de schimbare tipică. Ambele sunt aplicații de e-mail bine cunoscute și utilizate pe scară largă pentru schimbul de informații, începând de la o locație și apoi la următoarea.

În plus, Lotus Notes poate fi utilizat cu diferite baze de informații și aplicații Domino. Salvează toate mesajele, contactele și alte date într-o înregistrare .nsf.

Punctul de vedere al celeilalte părți a vorbit și ca Manager de informații personale. Este un aspect al suitei Microsoft Office. Majoritatea 1.000.000 din populație folosește aplicația Outlook pentru a trimite / prelua informații începând de la un punct și apoi la următorul. Ajută la supravegherea mesajelor, agendei, calendarelor, sarcinilor, înregistrărilor, fișierelor, calendarelor și a altor lucruri de pe hard disk. La fel, face un organizator PST singuratic pentru a stoca baza de informații conectată, de exemplu, contacte, mesaje, ore și așa mai departe

Sfârșit:

Două tehnici pentru trimiterea organizatorilor Lotus Notes în Outlook cu mesaje, contacte și calendare. Strategia manuală este acceptabilă pentru executare, cu toate acestea, multe dezavantaje sunt legate de aceasta. Aranjamentul extern este o metodologie imediată și sigură în comparație cu strategia manuală de transformare a Lotus Notes în Outlook. Experimentați cum funcționează produsul descărcând demo-ul gratuit al instrumentului care vă permite să tranzacționați 10 NSF inițiale pentru PST fără costuri.
Nevertheless, she podcasted
Tags: salesforce, podcast, wecoded
Published: 2021-03-09 04:05:24

---
title: Nevertheless, she podcasted
description: Data Development and Integrations (Salesforce Developers podcast)
published: true
date: 2021-03-08 15:00:00 UTC
tags: salesforce, podcasts, shecoded
cover_image: https://katiekodes.com/images/header-sfdev-podcast.jpg
canonical_url: https://katiekodes.com/salesforce-developer-podcast/
---

Official Salesforce Developers podcast host [Josh Birk](https://dev.to/joshbirk) is so much fun to geek out with!

Following up from [Cactusforce](https://katiekodes.com/cactusforce21/), our working title was "APIs are for everybody," but we threw in the _**whole kitchen sink**_ of admineloper-ey goodness about Salesforce Flow, data modeling, testing, Apex for beginners, user-oriented automation design, Python -- and yes, APIs! -- that the final show, hot off the presses, is called [Data Development and Integrations](https://developer.salesforce.com/podcast/2021/03/episode-072-data-development-and-integrations-with-katie-kodes.html).

{% podcast https://dev.to/salesforce_developers_podcast/072-data-development-and-integrations-with-katie-kodes %}

Listen in your favorite podcast app _([RSS](https://developer.salesforce.com/podcast/feed), [YouTube](https://www.youtube.com/watch?v=58DdmLPGRXc), & [other sources](https://developer.salesforce.com/podcast) available)_.

I can't believe my episode dropped on International Women's Day _(hence my title)_.  What a fun surprise _(I got the news from a listener)_.  I've been working hard on my public speaking, and this is my first time being a guest on a radio-style podcast!

Here's [the episode link](https://developer.salesforce.com/podcast/2021/03/episode-072-data-development-and-integrations-with-katie-kodes.html), which includes show notes and a full transcript.

Here are some quick links for mentioning it on [LinkedIn](https://linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdeveloper.salesforce.com%2Fpodcast%2F2021%2F03%2Fepisode-072-data-development-and-integrations-with-katie-kodes.html%2F&text=I+listened+to+Data Development+and+Integrations+with+Katie+Kodes) and on [Twitter](https://twitter.com/intent/tweet?url=https%3A%2F%2Fdeveloper.salesforce.com%2Fpodcast%2F2021%2F03%2Fepisode-072-data-development-and-integrations-with-katie-kodes.html&text=I+listened+to+Data Development+and+Integrations+with+%40KatieKodes+and+%40JoshBirk%0D%0A%0D%0A%23SFDCDevs+%23Admineloper%0D%0A&via=SalesforceDevs).

If you learn something new, please leave a comment here, or [Tweet](https://twitter.com/katiekodes) / [LinkedIn](https://linkedin.com/in/katiekodes) your thoughts & questions.  I'm excited to hear them.

{% youtube 58DdmLPGRXc %}
Distinguish Machine Learning and Data Mining Like I'm 5
Tags: machinelearning, datascience, ai, eli5
Published: 2023-03-23 16:18:27

Machine learning and data mining are both ways that computers learn from data. It's like how you learn from things that happen around you. Let's say you're learning to ride a bike. You try it out, and if you fall off, you adjust what you did wrong and try again. Machine learning and data mining work in a similar way. They look at a lot of data and try to find patterns and connections between things. The computer then uses what it learned to make predictions or decisions about new data.

The difference between machine learning and data mining is like the difference between riding a bike and exploring a new place. Machine learning is when the computer is trying to learn from data and make predictions or decisions based on what it learned. It's like you riding a bike and trying to get better at it. Data mining, on the other hand, is when the computer is trying to find patterns and connections in data, but it's not necessarily trying to make any predictions or decisions based on what it finds. It's like exploring a new place and trying to understand how things are connected.
Add 1 to the Number(Wrapped in linked List)
Tags: algorithms, programming, discuss, javascript
Published: 2021-03-09 09:02:40

### Add one to the Number wrapped in LinkedList
`(Benefits of LinkedList: no limits for a number)`
Given a linked list denoting a number (each key will have numbers from 0-9), implement a function for adding 1 to it.
Example - For number 7899, Linked List would be [7, 8, 9, 9]
If you add 1 to 7899, you get 7900 which is [7, 9, 0, 0]
```
Input1:  [7, 8, 9, 9]
Output1: [7, 9, 0, 0]
```

#### My Approach:
* The idea is to solve the problem by the backtracking technique.
* As when we add the multi-digit number, we start from the end. Thus, carrying a borrow from last to first digit we get our answer. I will follow the same approach in my code.

#### CODE:
```javascript
//function converting nums in linkedList
function getLinkedList ( ...arr ) {
    let nodesArray = [];
    for( var index=0; index<arr.length; index++ ) {
        nodesArray.push({
            digit: arr[index],
            next:null
        })
    }
    for( var index = 0; index < nodesArray.length-1; index++ ) {
        nodesArray[index].next = nodesArray[index+1];
    }
    if(nodesArray.length){
        return nodesArray[0];
    }
}
//prints the linkedList's digits in an Array.
function printList(list) {
    let arr = [], node = list;
    while(node != null) {
        arr.push(node.digit);
        node = node.next;
    }
    console.log(arr);
}
let list = getLinkedList(7, 8, 9, 9);

printList(list); // [7, 8, 9, 9]

let num =1;//number to be added

//function which will add one to the number
function addOne(_list) {
    //to achieve backtracking calling function before implementation till end
    if(_list.next != undefined){
        addOne(_list.next);
    }
    _list.digit += num;
    //borrow will be in case of sum 10 or greater than ten
    if(_list.digit>10){
        _list.digit = 10-_list.digit;
        num = 1;
    } else if(_list.digit=== 10){
        _list.digit = 0;
        num = 1;
    } else {////borrow will be zero when sum is less than 10
        num =0;
    }
    //to handle all nine case, 
    //example in case of 9999, answer will be 10000
    if(list === _list && num!= 0 ){
        //creating new node for the last borrow (1), in case of all nine
        list = {
            digit : num,
            next: list
        }
    }
}
addOne(list);
printList(list); // [7, 9, 0, 0]
//in case of[9, 9, 9, 9], the output is [1,0,0,0,0] 
```
    

Let's discuss your approach in the discussion box or you can hit me up at aastha.talwaria29@gmail.com.

Thanks for reading.
Cryptography for dummies
Tags: dotnet, cryptography
Published: 2021-03-09 11:55:22

Cryptography is a vast topic, and often developer needs to use it in some part of their project. By the way, not all the developers have time or need to learn all the details in deep because their job does not require it. Anyway, there will be a time when we will have to face this discipline, and we will need the right tools for completing the project.

In this article, I will explain the basics of cryptography and give you some smart solutions to quickly achieve your goals without wasting time.

What we will learn in this tutorial:

- The basics of cryptography
- Using a hashing algorithm
- Using symmetric encryption
- Using asymmetric encryption

[Read the full article](https://medium.com/geekculture/cryptography-examples-dotnet-7ec8182433ae?sk=b5fff98ce99c7ec370482113eb9164fd)
7 Software Engineering Roles Explained (For Beginners)
Tags: webdev, 100daysofcode, beginners, python
Published: 2021-03-23 20:42:28

In this video, I will explain 7 different software engineering roles so that you can make a better decision when it comes to choosing a career in Tech.

{% youtube 3V4reS-SKCM %}

Please subscribe on YouTube if you like this sort of content:
[7 Software Engineering Roles Explained (For Beginners)](https://youtu.be/3V4reS-SKCM?sub_confirmation=1)
Javascript: Adjusting time-zone differences
Tags: javascript
Published: 2021-03-24 02:06:15

Using DateTime in JS is sometimes very annoying. When we're trying to manipulate Date objects, many times, we end up with time-zone differences, maximum days differences in months, wrong format, etc. This post will be mainly talking about a handy function I keep for adjusting timezone differences.

_____________________

Unless we're using other JS packages such as moment.js, we are stuck with the basic JS Datetime object. Here is the [documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date). The documentation is very well-written with great examples to understand. What I would like to use from the documentation today is Date.prototype.getTimezoneOffset(). This built-in Datetime function returns the time-zone offset in minutes for the current location to UTC. For example, if you're in MST, the time-zone offset would be -7, since it is 7 hours behind UCT.

So, now let's get into the function.

```javascript
adjustForTimezone(date) {
      let timeOffsetInMS = date.getTimezoneOffset() * 60000;
      date.setTime(date.getTime() - timeOffsetInMS);
      return date
}
```
This function takes in a date parameter and changes the offset to Milliseconds. Date.setTime() gathers a millisecond value and outputs a Datetime value into the given parameter in the format (Day Mon dd yyyy hh:mm:ss Timezone).

_______________

Once we get the correct date, now we're up to changing the format to match the requirements package we're using needs or to simply make it more visually appealing. 

For a sample page using this function, please check this simple [Github](https://github.com/mimanjh/adjustForTimeZone) repository using Vue.js.

If there are things I could improve on, please don't hesitate to let me know! I'm all ears :)

-JH
[LinkedIn](https://www.linkedin.com/in/jacobjhunsaker/) | [Github](https://github.com/mimanjh)
Cherry pick commits in Github
Tags: beginners, github, productivity, angular
Published: 2021-03-26 00:42:29

---
title: Cherry pick commits in Github
published: true
description: 
tags: #beginners #github #productivity #angular
cover_image: ![cherry-pick](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lxkykjod76g7wesl6zm5.png)
---

> What does cherry picking mean? 

Cherry picking in Git means to choose a commit from one branch and apply it onto another.

> Ok, what should I do?

Switch to the branch you want to apply the commit.

`git checkout <target-branch>`

> Then...?

Copy the commit SHA of the commit you would like to apply, you can use `git log` to view your commits. 

`git cherry-pick <commit-hash>`

> Am I done?

Yes, commit and push to target branch.

> Cheers!
About authorization...
Tags: help
Published: 2021-03-30 03:15:42

Hello fellow forum members! I just signed up for this forum to ask this question, so please excuse me if this is not the place to ask this, or my question is not suitable in any way.
So here goes; I have been learning about Spring Boot for a course I am taking in distributed systems. As an assignment for the course I have to design a microservice architecture web app. As part of the middle layer I should implement an authentication microservice which is responsible for user authentication (against a mysql db) and returning a JWT to be used accross services. The assignment specifies that this is a one time process and characterizes it as SSO (single sign-on). To my understanding, this means no further accesses to the mysql db, whether it is asking the user for his credentials or validating information packed into the JWT. Also this, at least for me, makes sence since it avoids tight coupling between microservices.
Now, here is my problem. In every tutorial I've seen the JWT is either authorized by checking credentials (sql access) or some other larger and more elaborate authorization mechanism is in place.
My question is, would a simple validation of the JWT be enough to authorize the user? What risks would this solution have? Is there any other way around this? Maybe something Spring Boot specific that I;m missing? Also, what would be the "industry standard", so to say, solution to user authorization? Obviously this is a proof of concept task, but I would like it to be based on real world principals.
Thank you for reading this huge wall of text! xD