teleren/devto huggingface dataset:
How to save data for a HTML element in JavaScript
Tags: javascript, dom, webdev
Published: 2020-09-04 07:02:06

If you've worked with vanilla DOM manipulation, you've probably found yourself in a situation when you have to save data associated with an element. Let's see how we can do this. 

For the first time, you probably came up with the idea to save the data on the element object itself, like this
```js
const setElementData = (el, data) => {
  el.$dataKey = data;
}

const getElementData = (el) => {
  return el.$dataKey;
}

// Usage
setElementData(document.querySelector('#some-el'), {
  prop1: 'val',
  prop2: someComplexValue
});

// Somewhere
const elData = getElementData(document.querySelector('#some-el'));
```
Even if this method works, it's not good. Adding custom props to an element object is not recommended and it can cause memory leaks if not done correctly.

So, what's the correct way to do it?

The correct way is to use a `WeakMap` to store data for an element. The code will look like this
```js
const elementDataMap = new WeakMap();

const setElementData = (el, data) => {
  elementDataMap.set(el, data);
}

const getElementData = (el) => {
  return elementDataMap.get(el);
}

// Usage
setElementData(document.querySelector('#some-el'), {
  prop1: 'val',
  prop2: someComplexValue
});

// Somewhere
const elData = getElementData(document.querySelector('#some-el'));
```
This way we are able to save data for an element without causing memory leaks. If you don't know what `WeakMap` is, [check out the MDN docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap).

See ya!
How to Use Excel MAX Function in Office 365? – [with Examples]
Tags: excelfunctions, excelmaxfunctioninof
Published: 2020-09-04 12:23:48

---
title: How to Use Excel MAX Function in Office 365? – [with Examples]
published: true
date: 2020-09-04 06:46:28 UTC
tags: ExcelFunctions,ExcelMAXFunctioninOf
canonical_url: https://geekexcel.com/how-to-use-excel-max-function-in-office-365-with-examples/
---

## Excel MAX Function:

![MAX Function](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/09/MAX-Function.png)<figcaption id="caption-attachment-13317">MAX Function</figcaption>

This article describes the usage of **Excel MAX Function in Office 365** with its syntax, explanation, and examples. Let’s step into this article!! Get an official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)


## **MAX Function – Explanation:**

- MAX Function **returns the largest numeric value from the range of input values**.
- This function ignores **empty cells** , **text values** , and the **logical values TRUE & FALSE**.

## **Syntax:**

**=MAX(number1, [number2],.)**

### Parameters Description:

**number1 ** – The first input number, or reference, or a range.

**number2 ** – It is an optional one. It could be a number, or reference, or a range that contains numeric values.

### Note:

- This function accept up to **255 arguments only**.
- If the arguments contain **no numbers** and then it returns **0**.
- This function **ignores logical values such as TRUE & FALSE** , **text values** , and **empty cells**.

## **Examples:**

Let’s see some examples below.

### Example 1:

- Refer to the below example image.
- You can see the range of input values in **Column B** and the **MAX value** is found in the **cell D2**.

![Example 1](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/09/1-15.png)<figcaption id="caption-attachment-13314">Example 1</figcaption>

### Example 2:

- This function ignores logical values such as TRUE & FALSE, text values, and empty cells.

![Example 2](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/09/2-12.png)<figcaption id="caption-attachment-13315">Example 2</figcaption>

## **Verdict:**

In this article, you can clearly understand the usage of **Excel MAX Function in Office 365** with its syntax, explanation, and examples. Share your **feedback** in the below comment section. Thanks for visiting **[Geek Excel.](https://geekexcel.com/)** Keep Learning!!

### Similar Functions:

- **MAXA Function**
- **MIN Function**
- **MINA Function**

### Read Also:

- [How to Use “Excel COUNT Function” in Office 365? – {with Examples}](https://geekexcel.com/how-to-use-excel-count-function-in-office-365-with-examples/)
- [How to Use Excel AVEDEV Function in Office 365? – {with Examples}](https://geekexcel.com/how-to-use-excel-avedev-function-in-office-365-with-examples/)
HOW SLAM Could Be Transformative With AR, VR, Robotics, And Others
Tags: slam, ar, vr, robotics
Published: 2020-09-04 06:36:02

SLAM, Simultaneous Localization, and mapping can make it possible for further innovation with augmented reality and virtual reality. Some other areas include graphics, connectivity, haptic, audio, display, and artificial intelligence, where SLAM could introduce a significant innovation. Let’s see What SLAM is and how it would be transformative. Learn More from our Blog: https://www.queppelin.com/how-slam-could-be-transformative-with-ar-vr-robotics-and-others/
what are the things to consider while building a banking application?
Tags: discuss, bankingapplication
Published: 2020-09-04 06:32:00

---
title: what are the things to consider while building a banking application?
published: true
description: Share your advices that you think will really help in securing the application from the frontend, backend and infrastructure sides. Apart from best practices you can also share features that will help with the security like two step authentication, sms/mail notifications for unidentified login, etc.

tags: #discuss #bankingapplication
//cover_image: https://direct_url_to_image.jpg
---
Desktop CHALLENGE :)
Tags: challenge, discuss
Published: 2020-09-04 06:18:39

Hey, I'm gonna invite you to Desktop Challenge :)

Close all the windows and Take a screenshot from your Desktop then share in the comment section below...


__Rules:__

* _Mention Your OS_

* _If you are using Linux, Mention Your Distro and Desktop_


__My Desktop:__


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

* __OS: Linux__

* __Distro: Pop!_OS__

* __Desktop: Gnome__

* __Theme: McMojave__
Google Kubernetes Engine  - Kubernetes Dashboard set up - Part 7
Tags: kubernetes, googlecloud, docker, devops
Published: 2020-09-04 05:42:06

{% youtube cyyjLvI9Dr0%}

Here is complete guide from the lab session - https://jhooq.com/setting-up-kubernetes-dashboard/

We are going to perform following steps

1. Create a project on google cloud platform
2. Create Kuberentes cluster inside the Project
3. Connect to Google cloud console 
4. Install the kubernetes dashboard 
- kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml
5. Setup service account and cluster role binding
6. Start kubernetess API server using kubectl proxy
7. Generate kubernetes token
8. Provide token to Kubernetes dashboard authentication page
q-google-map - Quasar app extension to integrate Google maps
Published: 2020-09-04 05:10:44

I've just released the q-google-map quasar app extension to integrate Google Maps in the Quasar project. Any feedback will greatly be appreciated.

Few features to list:

- Map
- Marker
- Polyline
- Polygon
- Circle
- Rectangle
- Kml layer

Website - https://q-google-map.netlify.app/
GitHub - https://github.com/mayur091193/q-google-map
NPM - https://www.npmjs.com/package/quasar-app-extension-q-google-map
Bash ~ never forget to git commit again 💥
Tags: bash, git, codenewbie
Published: 2020-09-04 05:06:37

Are you:

- ✅ Tired of failing to git commit
- ✅ Sick of having staged changes
- ✅ Colleagues complaining they're missing code
- ✅ Angry because your laptop fried, and you didn't commit?

Then this article is for you!

Today we will be making a `bash` script that we can run at the end of our day.
It will loop through our project directory and tell us the following statistics per project:

- Is it a git repo
- Did you forget to commit something
- Do we have unstated changes

> Have a look at [hacking your morning routine](https://daily-dev-tips.com/posts/ive-automated-my-morning-routine-%F0%9F%A4%96/)!

It will look like this:

![Bash to show git status](https://cdn.hashnode.com/res/hashnode/image/upload/v1599058837827/Z41bZ2q1x.gif)


## Bash git commit prompt script

Today we'll be looking at a single `bash` script.
I'm going through this section by section. At the end I'll link it on GitHub for you to download.

We will start by defining our variables

> Change the `DIR` to your project folder.

```bash
DIR=~/www/
GITBASED=.git
```

Then we need to loop over each subdirectory in our projects folder.

```bash
for dir in $DIR*
do
	// Loop here
done
```

Then inside the loop, we need first to check if it's a directory we are checking:

```bash
if [[ -d $dir ]]; then
    // Yes I'm a directory
fi
```

You can see we check the dir based on the `-d` (directory)

If it's a directory, we can work with it:

We'll `cd` into the directory and define an empty message.

```bash
cd $dir
MSG="";
```

Then we check if it's a git project.
If it's not a git project we change our message.

```bash
if [ -d "$GITBASED" ]; then
		// Git based!
else 
    // Not a valid git project
    MSG=": Not a valid git project 👀"
fi
```

If it is a git project, we will first define a test variable that will execute `git status`.

```bash
TEST=$(git status $dir);
```

Our variable TEST now contains the return value of `git status` now we will use some `if...else` statements to check if it contains certain substrings:

```bash
if [[ $TEST == *"nothing to commit"* ]]; then
    MSG=": No changes ✅"
// Check if git status has unstaged changes
elif [[ $TEST == *"Changes not staged for commit"* ]]; then
    MSG=": Unstaged changes 🤷‍♂️"
// Check if git status has uncommitted changes
elif [[ $TEST == *"Untracked files"* ]]; then
    MSG=": You forgot to commit some files 😡"
fi 
```

And lastly, we will echo the message prefixed with he project name and change back a directory.

```bash
echo ${dir##*/}$MSG
cd ..
```

That's it!

If we run our `bash.sh` script, we will get all lines per project folder with the status.

> Run it with: `sh bash.sh`

No more reasons to forget your commits!

Find the project on my [GitHub afterwork](https://github.com/rebelchris/afterwork).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Why MLM Software Are Great For Businesses
Tags: mlmsoftware, mlmcompany
Published: 2020-09-04 05:06:12

Multi-level Marketing or Network Marketing is a brilliant business opportunity that you can wander into for a productive income stream. In the present ever-evolving environment, Multi-level marketing software is essential for businesses as it offers you a chance to make money and develop yourself exponentially.

**What is a Multi-level Marketing Software?**

Multi-level marketing (MLM) is a controversial marketing strategy that businesses use for the sale of products or services. This software helps them in the revenue that is derived from a non-salaried workforce selling the company’s products/services, while the earnings of the participants are derived from a pyramid-shaped or binary compensation commission system.

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

Here we will talk about 5 key benefits why **[MLM software](https://www.zedologic.com/mlm-software-development.html)** are best for businesses-

**1. A small amount of risk-**

Unlike traditional businesses imposing huge chances of risks and even huge start-up costs, Multi-level marketing is a low-risk business, so anyone can start their business without concerning about failure. There are low chances of losing money and wasting time.

**2. Huge Income**

Using reliable MLM software, you can generate huge profits in your business. However, it depends on your potential and your decision “how much you want to earn” as the MLM based company doesn’t hold you back in the same way the corporate environment does, just do what want to generate.

**3. Low Operating Cost-**

No infrastructure, no investment, no staff, and low operating cost is minimal. The network-marketing model helps businesses to run business operations at low costs compared to any other business model. Multi-level marketing eases various business operations and reduces the time and money that businesses spend on them.

**4. Portability-**

Technology makes the best way to run a business profitably with ease. Thanks to technology advancement and globalization, marketing businesses now can achieve the desired goals using this MLM Software.

**5. Attainable Freedom**

Opportunity or adaptability is additionally perhaps the best bit of leeway that MLM brings. Imagine having a profitable business in arranging promoting giving you a way of life that only rich and acclaimed individuals can appreciate. At the point when all the pieces are on target and produce cash on its way, the life of an advertiser can be very satisfying undoubtedly and it’s an ideal opportunity to appreciate that wonderful life.

**Conclusion-**

If you are running a marketing business and want to leverage all the business benefits then you should integrate multi-level marketing software to automate business operations and earn huge profit. You can also buy multi-level marketing software from the renowned **[multi-level marketing software development company](https://www.zedologic.com/mlm-software-development.html)**.
Installing Fedora Server onto Raspberry Pi 4
Tags: operatingsystems, guide, raspberrypi4, fedora
Published: 2021-02-08 05:08:58

---
title: Installing Fedora Server onto Raspberry Pi 4
published: true
date: 2020-09-04 05:00:00 UTC
tags: operatingsystems,guide,raspberrypi4,fedora
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/66zey9q7q5inkobzz4ik.png
canonical_url: https://fwmotion.com/blog/operating-systems/2020-09-04-installing-fedora-server-onto-pi4/
---

This guide aims to install Fedora Server onto a USB drive without any modification to packages, custom builds of kernels, or other changes to the default install of Fedora. In order to accomplish this, a build of UEFI that is specific to the Raspberry Pi 4 is used.

Continue reading [Installing Fedora Server onto Raspberry Pi 4](https://fwmotion.com/blog/operating-systems/2020-09-04-installing-fedora-server-onto-pi4/) on my blog.
Not 100 days of code
Tags: devlog, log
Published: 2020-09-04 04:58:36

If you're reading this, only god knows how did you land on my blog here but this is supposed to be my dev log of sort. Before you say anything, ... nope I'm not in "100 days of code" thing, I'm quite burned out already in just 15 years into IT and software engineering so I just don't have enough energy right now to code outside of my work for 100 days.

This weblog is just attempt to document what I'm learning as I progress through some of the new courses that I'm taking on Udemy to learn new stuff.

This way I would be able to just come back to this and find out important stuff like hacks / commands (if at all) that I can continue to use while I work in future!

Thanks for stopping by and off you go to reading something actually meaningful ...
When Plans don't Last
Tags: planning, scalability, productivity, sustainability
Published: 2020-09-04 03:52:57

![feeling](https://img.shields.io/badge/feeling-tired-yellowgreen)
I'm pretty new to things. I'm a college student who, unfortunately, is *still* lacking in real-world experience. From personal branding to creating web applications, I find myself trying to plan far into the future. I want what I do now to be **sustainable** as things change, and **scalable** as things get bigger.

However, I keep finding that the plans I invested in not too long ago need change. The work I did before seems to be for naught.

## My mess-ups

![Would've been nice to have one username for all this jazz](https://dev-to-uploads.s3.amazonaws.com/i/cttp6ti6ae0zm83hm8ql.png)

Working on my own personal branding has unearthed problems. Small things, they add up. I wish I used my full name on this media platform, or I wish I had published that project under this link. I've missed the opportunity to streamline how people get to know me by staying under one familiar name.

When I started all those accounts, I thought I was thinking about the future. My planning wasn't thorough.

## Productivity
~~import marshmallow~~
~~import pydantic~~
~~import graphene~~

The biggest personal project I've worked on is [CourseCake](https://github.com/nananananate/CourseCake). 

I thought I had read up enough about Flask, knew enough about python to go ahead with the project and not expect major rewrites. In each rewrite I made, I tried to plan better. But I still found myself making huge changes -- whether it be for better user interaction or scalability, I believed in my head that this was the last change.

This led me to a question: Is excessive planning bad for productivity? The time I've spent rewriting could have gone towards building cool, useful, *new* features. 

## I'm learning that I'm learning

I find myself asking the wrong question. It's not `Planning` vs `Productivity`, it's `me` vs `The Problem`. 

The big thing about me is that my mind is small -- I don't know enough. I make mistakes that are costly, but that's learning. These mistakes I made aren't so much about planning, but **not knowing enough**. They could have been avoided had I taken the time to explore new things and networked with the right people.

So yeah, I hope that as I gain experience, my plans will become more sturdy.

## Peace with Uncertainty

As a programmer, I want to be able to anticipate all the problems. I want to write all the test cases I can with 100% coverage. This COVID-19 season has taught me there are just things you can't anticipate -- you need to be willing to change. 

This is the part that is beyond development. I don't like the fact that the plans I made of where I'd be today were so far off the reality. And I don't like the possibility that my plans can fall through again. But this is the reality, and in the scope of things, I'm doing ok.

Not sure how this is for a first blog post, but I want to push my thought processes out there, even if it's only for my own processing.

Peace be with you~
I informed my boss that three different companies were pursuing me
Published: 2020-09-04 03:23:55

> Earlier this week, I informed my boss that three different companies were pursuing me, and I needed a raise to stay at my current job.

> "Do you mind me asking which companies?", she said.

> "Sure," I said.

> "Gas, Electric, and Cable". 😅😂😂

## **Share Your funny incidents** 

`camefromLinkedin`
Learning Vue JS for animations and transitions
Tags: vue, javascript, github
Published: 2020-09-04 03:20:48

I started learning Vue JS just last week. It's been such an exciting experience so far. Whilst I don't have a lot of coding knowledge, the little bit I know about HTML, CSS, and JavaScript has really helped me.

Last week I learned the basics of Vue JS and how to get started. You can read about it in [my short article](https://dev.to/mishmanners/learning-vue-js-and-building-a-website-in-less-than-3-hours-4kb4).

{% link https://dev.to/mishmanners/learning-vue-js-and-building-a-website-in-less-than-3-hours-4kb4 %}

Now I'm onto transitions already! I love the fact online courses move along so quickly. Especially this one. As mentioned last week, I'm working with the [Vue Mastery Course](https://www.vuemastery.com/). It's really well explained and the concepts presented are taught in a nice structured format.

Even with my little experience, I already got up to intermediate. This is where it gets super fun, since this is where we dove into animations.

## Animations for prettier formatting

Animations are fantastic because you can really see things happen. When it comes to coding, I learn by doing. And I learn by seeing. When I can easily see my changes in affect, it's easy to understand what's going on. Animations are perfect for this.

They are really simply little things which adds loads of finer detail to your website. Yes you need to think about it, and put a little bit of effort in, but they are worth it. And they are really easy to code up. Just watch my [Twitch stream](https://www.twitch.tv/videos/730692778) to know what I'm talking about. Only on my 9th hour of Vue JS, I'm able to easily program some simple transitions that make things look really pretty!

## Learning to code

What are you learning at the moment? Do you have cool things you want to learn? Or maybe you have awesome use cases for Vue JS? I'd love to hear it. If you want to follow along with my learning, you can do so through the [Vue Mastery Course](https://www.vuemastery.com/courses/animating-vue/). Remember, I was doing the animations on the intermediate level. You can always tune into one of [my live streams](https://twitch.tv/MishManners) to learn with me, or just heckle!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7u0f27lhmv3mlndnf5jj.jpg)

Oh, and my final code output is living over on GitHub, so [go check it out](https://github.com/MishManners/VUE-JS-Course).
September 3rd, 2020: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2020-09-04 03:17:31

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![Neo in the matrix having just learnt kungfu](https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif)
</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{% link https://dev.to/devteam/what-was-your-win-this-week-183i %}

<center>

![Obama drops the mic](https://media.giphy.com/media/3o7qDEq2bMbcbPRQ2c/giphy.gif)