teleren/devto huggingface dataset:
NodeMCU Projects
Published: 2022-06-20 07:51:07

Engineering student projects for B.Tech and M.Tech final year students. Takeoff Edu Group offers a wide range of projects best for [nodemcu projects](https://takeoffprojects.com/nodemcu-projects)  looking for magnificent final projects at low cost. 

We have successfully delivered nodemcu projects to our engineering students. Our programs are specially designed by experts for best results of nodemcu projects for engineering students. max of the B.Tech, M.Tech, PhD and Diploma scholars.
 
Takeoff Edu Group provides the most creative conceptions and ideas that can make very effective final year projects for scholars, experimenters, and engineers. So browse through our list of [nodemcu projects](https://www.youtube.com/watch?v=U6DslbnN39s) and choose the smart final year projects for your requirements.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxlqqvcmo3sgswzzdwsk.png)
 
NodeMCU Development Kit/Board consists of an ESP8266 wifi chip. ESP8266 chip has GPIO pins, serial communication protocol, etc. features on it.ESP8266 is a low-cost Wi-Fi chip developed by Espressif Systems with TCP/IP protocol. For more information about ESP8266, you can refer to ESP8266 WiFi Module.
The features of ESP8266 are uprooted on the NodeMCU Development board. NodeMCU( LUA grounded firmware) with Development board/ tackle that consists of ESP8266( wifi enabled chip) chip combines NodeMCU Development board which make it a stand-alone device in IoT operations.
 
NodeMCU is an LUA grounded firmware which we need to download on the ESP8266 chip.
To Download NodeMCU firmware,

- Enter your mail.
- Select branch to Build
- Elect the modules that you want to install.
- We can elect the miscellaneous option for TLS/ SSL support, remedy as well as FatFS support as shown below
- Click on Start your Build.
- After the figure is completed you'll enter an mail with a link to download your custom firmware. Click on the link to download it.
- Note that you'll get two links of Custom firmware, one is NodeMCU with floating support and the second is NodeMCU without floating support i.e. integer.
- Download the integer support firmware bin file if floating support isn't demanded, differently, download the floating support firmware bin file.
- We need to flash the over- downloaded custom firmware on the ESP8266 chip. There's a tool called ESP8266Flasher which is used to flash the ESP8266 chip.
- DownloadESP8266Flasher.exe from
- Click on the Setting icon and also elect the firmware which was downloaded in the first step
- elect the COM port( In my case it's COM 7)
- Connect the USB string to the NodeMCU module and also click on Flash
- A green tick will appear after the firmware is installed
- HOLA! Your setup of ESP8266 with Node- MCU firmware is completed!

After setting up ESP with Node- MCU firmware, let’s see the IDE( Integrated Development Environment) needed for the development of NodeMCU.
Ng-News: Episode 22/24
Tags: webdev, javascript, angular, frontend
Published: 2022-06-20 07:26:38

{% embed https://youtu.be/8aFZQZTSICg %}

## Angular 14.1 next.1

Two weeks have passed since the release of Angular 14, and we already have a pre-release for the next minor 14.1.

It adds a new router guard called CanMatch. That guard can be used instead of the combination between canActivate and canLoad, but its main novelty is the ability to assign multiple components or even modules to the same path.

And we can programmatically decide which version of that path Angular should use. That could depend on a feature flag, the domain, or something else.

[CanMatch Guard explained by Netanel Basal](https://netbasal.medium.com/introducing-the-canmatch-router-guard-in-angular-84e398046c9a)

## Cypress 10.1

Cypress released version 10.1. Cypress is the most used E2E testing framework. Version 10.0 was released in the same week as Angular 14, so it didn't get so much coverage here.

Beginning with version 10, Cypress offers the possibility for component testing in a beta version. Component testing in an alpha stadium was already available possible before, but you had to use the component test runner which came as a separate executable. Now, the main Cypress UI can do both.

Currently, it only works with React or Vue, but according to Jordan Powell, a member of the Cypress team, they are also working on support for Angular. Once it becomes stable, it has the potential to change the way we write tests completely. We will not have to deal with asynchronity and change detection anymore. Cypress takes care of that automatically.

Actually, there exists an unofficial version for Angular as well, which is provided by jscutlery/devkit.

{% embed https://www.cypress.io/blog/2022/06/01/cypress-10-release/ %}

{% embed https://github.com/jscutlery/devkit %}
How to setting libre fffice mailmerge that doesn't work
Tags: office, mailmerge, blog, libreoffice
Published: 2022-06-20 07:22:58

## Libre Office Mailmerge

When I first created a mailmerge with libreoffice, it didn't work right away. Here's how to fix the libreoffice mailmerge settings: Here' the [Link](https://https://askubuntu.com/questions/1122170/for-mail-merge-to-work-properly-libreoffice-must-be-restarted)

enter the following code in the terminal
```
apt-get install default-jre libreoffice-java-common \
  libreoffice-base libreoffice-base-drivers
```


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jmork6omhjdj6dx2g30u.png)

[Link](https://https://wapindo.my.id/membuat-mail-merge-di-libreoffice-writer/)

Good luck.
Need help for shopify payment app
Tags: webdev, beginners, programming, css
Published: 2022-06-20 07:14:01

Hey guys !
I want to develop an app for shopify app store which adds a payment method during checkout. Shopify tells me that you have to be a payment gateway in order to do that?

Is it anyway possible that we add a payment method and not be a payment provider? And if its mandatory to be a provider, does shopify accept Stripe's PayFac solution?

I want to redirect users to my external app and process payments through stripe.
Join with us to progress #Rust-Lang 💐.
Tags: rust
Published: 2022-06-20 06:52:16

𝗖𝗼𝗻𝗻𝗲𝗰𝘁 🤝

Meet local developers and technologists. All are welcome, including those with diverse backgrounds and from various companies and industries. 

𝗟𝗲𝗮𝗿𝗻 📚 🖥️

Learn about a range of technical topics and gain new skills through hands-on workshops, training, events, talks, and meet ups - both online and in-person.

𝗚𝗿𝗼𝘄  ↗️

Apply your knowledge and connections to build great products and advance your skills, career, and network. Give back to your community by helping others learn, too.

the whatsapp group link is  given below. 

#JoinNow

https://chat.whatsapp.com/GHz9kk4ews9K46WYWCuYDz
Roadmap to learn MERN stack.
Tags: react, webdev, javascript, beginners
Published: 2022-06-20 06:28:38

## Things to remember
1. you don't need to learn 100% everything.
2. practice makes you perfect
3. don't run away from syntax, or do not fear from new syntax.

## Things to Learn
1. HTML
2. CSS
3. Javascript
4. Node.js
5. Node Packages like - mongoose, joi.
6. Express
7. MongoDB
8. React

That's it for this article.
Features of Booking and Reservation System Extension with Webkul
Tags: webdev, devops, discuss
Published: 2022-06-20 06:03:34


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nsc8ct1ov6jpe5al4ru5.jpg)
Booking and Reservation System Extension will complete a dynamic booking and reservation system for products. Modules will convert your Magento store into a vibrant event-driven site.
The admin can build/edit/delete bookings and reservations and can add booking slots. Booking and Reservation System module provides two types of bookings for the products: Many Bookings in One Day & One Booking for Many Days.
The admin can build a new booking by adding in all the mandatory data and can choose one of the two types of bookings and time slots. Once the booking product is created, buyers can see it on the front-end and can book the product from there by selecting the date and time for the booking.
<a href="https://store.webkul.com/magento2-booking-reservation.html">Magento 2 reservation extension</a> are super helpful when you want to convert your Magento store into an event-driven site (e.g. doctor's appointment, movie booking system, etc.) It provides an easy and user-friendly booking and reservation system. The client can book products smoothly according to their need.
### Highlighted Features
### Add Booking and Break Time
The admin comprises the time for booking and time slots for breaks.
### MVC And ORM System
The Booking & Reservation System for Magento 2 is assembled on MVC and ORM systems.
### Booking Real-Time
The Booking & Reservation System for Magento 2 helps real-time booking for no-hassle bookings.
### Time Slots Disable
The admin may vandalize the time slots; the admin may also vandalize time slots for a specified period if required.
### Support
For any query or issue please create a support ticket here http://webkul.uvdesk.com/.
You may also check our quality <a href="https://store.webkul.com/Magento-2.html">Magento 2 Extensions</a>.
How to Loop in React JSX
Tags: react, javascript, webdev, beginners
Published: 2022-06-20 05:56:36

React allows you to easily write JavaScript code inside your components. This makes it easy for any developer to comfortably handle common programming techniques in React, such as looping through a set of items, creating and invoking functions, storing data in local variables, and so on.

Javascript Syntax Extension (JSX), is a JavaScript extension developed and popularized by the React framework that allows you to structure the rendering of elements. It essentially makes it easier to write HTML code in React (describe the UI), and due to its flexibility, JSX has been adopted by other popular frameworks such as Vue.js throughout the years.

In this short tutorial, we will take a look at how to loop inside react JSX elements, working with the following todos array:
```
const todos = [
  { id: 1, text: "Learn React", status: "completed" },
  { id: 2, text: "Do something", status: "incomplete" },
  { id: 3, text: "Do something else", status: "incomplete" },
];
```

## Loop in React JSX
The map() function introduced in ES6 is the only preferred method for looping in JSX:
```
{
  todos.map((todo) => (
    <p key={todo.id}>
      {todo.text} - {todo.status}
    </p>
  ));
}
```
For each element in the array, we map its text and status fields to content within a <p> element, whose key is mapped to the id field. This will generate the following markup result:
```
<p>Learn React - completed</p>
<p>Do something - incomplete</p>
<p>Do something else - incomplete</p>
```
### Understanding the key Attribute
Depending on the framework/linting tool you are using, if you don't use a unique key value for each <p> element, you're likely to encounter a warning:
```
Warning: Each child in a list should have a unique "key" prop
```
Keys in the React loop help identify which items have been changed, added, or removed, and it is important to give the parent elements inside a loop unique keys to help give a stable identity to the element or component.

Like in our todos array example, we can specify each todo id as the key:
```
{
  todos.map((todo) => (
    <div key={todo.id}>
      <p key={todo.text}>
        {todo.text} - {todo.status}
      </p>
    </div>
  ));
}
```
If the item you’re trying to loop through does not have a unique element, such as a unique id - it is a common convention to use the index returned by the map() function for each iterated element instead, ensuring unique element identification without changing your domain model:
```
{
  todos.map((todo, index) => (
    <div key={index}>
      <p key={todo.text}>
        {todo.text} - {todo.status}
      </p>
    </div>
  ));
}
```
### Conclusion
Using component loops to output and manipulate data is a common development method in React. It allows you to group HTML elements with dynamic data together, as shown in this guide. This would generally be impossible to do in a pure JavaScript app without DOM queries. You should use component loops to output sets of items in a clean, efficient, and readable manner.
Questions to ask in an interview as an interviewee
Tags: career, beginners, todayilearned
Published: 2022-06-20 05:51:38

Hey folks, If you are actively interviewing, here are a bunch of questions you can ask as an interviewee.

1. What’s the biggest priority for the team right now?
2. Why is this role open?
3. What’s the biggest challenge for someone stepping into this role?
4. How does the org structure on the team work?
5. What a typical day is like?
6. Is the product live in production? If not, what's the schedule for developing it? (Particularly valid for early stage & stealth startups)
7. How often are releases done?
8. Do you have a favorite part of the job? Least favorite?
9. Budget for conferences?
10. Management style/structure? Frequent catch-ups aka one-on-ones? Something else?
11. Learning opportunities?
12. Ask about last employee who left, what was the reason?
13. How managers/senior folks help coach employees through a weakness.
14. How often feedback is given to you and collected from you.


## Resources
- [Interview Questions to Ask Your Interviewer](https://daveceddia.com/interview-questions-to-ask-company/?utm_content=197408362&utm_medium=social&utm_source=twitter&hss_channel=tw-4083531)

Feel free to share more questions below
Convert any type into boolean — JS
Tags: javascript, typescript, webdev
Published: 2022-06-20 05:45:52

!!
it’s used to convert something to boolean

Converts Object to boolean. If it was falsy (e.g. 0, null, undefined, etc.), it will be false, otherwise, true.

So !! is not an operator, it's just the ! operator twice.

It may be simpler to do:

```Boolean(object) // boolean```
Real-World Example “Test IE version”:

```
const isIE8 = !! navigator.userAgent.match(/MSIE 8.0/);  
console.log(isIE8); // returns true or false
```
If you ⇒

```
console.log(navigator.userAgent.match(/MSIE 8.0/));  
// returns either an Array or null
```
But if you ⇒

```
console.log(!!navigator.userAgent.match(/MSIE 8.0/));  
// returns either true or false
```
Install Docker and docker-compose on AWS EC2 (AMI)
Published: 2022-06-20 05:29:05

---
title: Install Docker and docker-compose on AWS EC2 (AMI) 
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

Amazon Linux 2

Install Docker
```
# Update AMI yum packages
$ sudo yum update
# Install Docker by yum
$ sudo yum install docker
# add docker group to ec2-user
$ sudo usermod -a -G docker ec2-user
$ id ec2-user
```

Install docker-compose

```
$ wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) 
$ sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
$ sudo chmod -v +x /usr/local/bin/docker-compose
```

Configure docker service
```
# start service at boot
$ sudo systemctl enable docker.service
# start service now
$ sudo systemctl start docker.service
```

check service
'
Install Docker and docker-compose on AWS EC2 (AMI)
Published: 2022-06-20 05:28:45

---
title: Install Docker and docker-compose on AWS EC2 (AMI) 
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

Amazon Linux 2

Install Docker
```
# Update AMI yum packages
$ sudo yum update
# Install Docker by yum
$ sudo yum install docker
# add docker group to ec2-user
$ sudo usermod -a -G docker ec2-user
$ id ec2-user
```

Install docker-compose

```
$ wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) 
$ sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
$ sudo chmod -v +x /usr/local/bin/docker-compose
```

Configure docker service
```
# start service at boot
$ sudo systemctl enable docker.service
# start service now
$ sudo systemctl start docker.service
```
npm install care-package
Tags: npm, node, javascript
Published: 2022-06-20 04:53:47

Node.js is a repository of open-source software. npm manages the packages in node.js. So if I wanted to use somebody else’s code library, like underscore.js, then I would need to install it into my own project through npm.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zv2itv17qro9gfo2qrt0.png) This saves me time and headache from having to write my project from scratch. But first, I would need to install npm in my computer globally to use it.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4s78q44x2dlkh4askc9e.png)
 What’s the difference between installing globally and installing in my project (locally)? Well, let’s get into that.

Installing something globally makes it accessible from anywhere in my computer’s terminal. Whereas installing something locally, like in a new project’s directory, will make it accessible only in that directory. So if I create another project, let’s call it ‘callOfDuty’, then the underscore’s package won’t be accessible here. Why not just install everything globally so I won’t have to keep installing packages on each project every time I make a new project? Well because some packages can take up a lot of memory if it is also using some other package to run its own. This brings up a package’s dependencies.

When installing a package, npm will read the package’s project.json file. This file will have a dependencies property that will list any other packages it uses. So npm will also install those other packages as well with their dependencies also and so on. I mean look at all these dependencies.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mphqm6hm72x2aw6xsfcf.png)
 Therefore it’s probably best to just install all this into a project’s directory. 

What is nvm? Nvm manages the version of node.js. So if I had multiple versions of node.js installed on my computer, nvm would be in charge of each node.js version. Now, why would I want to have multiple versions of node.js on my computer? Well, some packages installed on a certain project may not be up to date, so they may still be using an older version of node.js. Therefore, having an older version could be useful.

How are packages made? To create a package, simply type `npm init` in the terminal inside of the directory for the project. Then just answer a few questions npm has about the package.  Another option is to type `npm init -y`, and npm will create the package with default values. And those default names can be changed later.

_Resources:_

- https://github.com/sindresorhus/awesome-npm#packages

- https://www.youtube.com/watch?v=P3aKRdUyr0s&t=359s

- https://www.npmjs.com/

- https://en.wikipedia.org/wiki/Npm_(software)
__
Data Structures 101: Introduction to Data Structures and Algorithms.
Tags: beginners, dsa, algorithms, computerscience
Published: 2022-06-20 04:43:49


## 
Difference between Data Structures and Algorithms?
An **algorithm** is "a finite sequence of instructions, each of which has a clear meaning and can be completed with a finite amount of effort in a finite amount of time_" for a specific activity. Simply put, an algorithm defines a collection of instructions that must be followed in a certain order to get the intended result. Algorithms are often written without regard to the underlying programming languages; that is, an algorithm can be written in more than one computer language.
The capacity of computer scientists to create an effective algorithm is dependent on their ability to arrange data properly. As a result, **data structures** are systemic methods of structuring data for certain operations. To note, no single data structure works well for all purposes, therefore, it is important to learn the strengths and limitations of several of them.

Data structures can be categorized into;

- Linear Data Structure 
- Non-linear Data Structure


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g3vkul0kh6mf35rss4n.png)
 
##Linear Data Structure 
If the elements of a data structure combine to generate a certain order, it is said to be linear. A linear relationship between all the pieces represented by a linear memory location is one technique of describing such linear structure inside memory. A good example of such are Arrays.
The second method uses the idea of pointers or links to create a linear relationship between all of the objects displayed, e.g, Linked lists.
**_Arrays, Queues, Stacks, and Linked Lists_** are all instances of linear data structures.

##Non-Linear Data Structure 
This structure is mostly used to describe data that has a hierarchical relationship between the various parts.

The following are some examples of non-linear data structures;
 - Graphs
 - Trees

## Characteristics of an Algorithm

- **Unambiguous** − Each of its steps and their inputs/outputs should be clear and must lead to only one meaning.

-  **Input**− Have 0 or more well-defined inputs.
-   **Output** − Have 1 or more well-defined outputs, and should match the desired output.
-  **Finite**− Must terminate after a finite number of steps.
-   **Feasibility**− Should be feasible with the available resources.
-   **Independent**− An algorithm should have step-by-step directions, which should be independent of any programming code.

## Efficiency of an algorithm
The efficiency of an algorithm can be determined by two main factors; time and space 
##### Time complexity 
Entails calculating the amount of time it takes to run an algorithm. the rule of thumb is that an effective algorithm should take the shortest time possible given a set of inputs.
##### Space Complexity 
Calculates the amount of memory an algorithm requires to run given a certain set of inputs. the rule of thumb here is that an algorithm should use the minimum amount of memory space possible.
Install Docker and docker-compose on AWS EC2 (AMI)
Published: 2022-06-20 04:28:01

---
title: Install Docker and docker-compose on AWS EC2 (AMI) 
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

Amazon Linux 2

Install Docker
```
# Update AMI yum packages
$ sudo yum update
# Install Docker by yum
$ sudo yum install docker
# add docker group to ec2-user
$ sudo usermod -a -G docker ec2-user
$ id ec2-user
```

Install docker-compose

```
$ wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) 
$ sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
$ sudo chmod -v +x /usr/local/bin/docker-compose
```

Configure docker service
```
# start service at boot
$ sudo systemctl enable docker.service
# start service now
$ sudo systemctl start docker.service
```

check service
```
$ sudo systemctl status docker.service
```
HTML inside a MultiFieldPanel
Tags: wagtail, django
Published: 2022-06-20 04:26:39

How to add a custom html just next to a FieldPanel, or inside a MultiFieldPanel?

the goal is to show a link next to a field in the wagtail admin.

example code

```
MultiFieldPanel(
            [
                
         FieldPanel('related_category',widget=Select2Widget),
         HTMLPanel('<a href="...">...</a>')
            ],
            heading="CATEGORY/SUB-CATEGORY",
            classname="collapsible collapsed"
        ),
```