teleren/devto huggingface dataset:
Mobile Login OTP Extension by Magento 2
Tags: startup, webdev, seo, digitalmarketing
Published: 2022-06-24 06:08:10

As the adoption of the internet & technology has grown, more people are switching from a typical feature phone to a smartphone. They are doing this to stay in touch with their family and friends. Statista estimates that there will be 6.68 billion smartphone users in 2022, representing a growth rate of 5.9 percent per year, making eCommerce smartphone apps popular. This is something that people love, whether it's shopping, logging in, making payments, or anything else. While shopping online, the usual registration form requires a great deal of information. However, Magento by default provides registration and login functionality through email addresses. This can be confusing for customers if they have multiple email addresses linked to their accounts. In the end, after several attempts, users will leave. In addition, mobile login allows you to provide a safe and secure login experience using OTP. This allows you to protect your Magento 2 store from security breaches and to let your customers log in and proceed safely. This is where mobile log in is required.


FME's [login with otp magento 2](https://marketplace.magento.com/fme-otp-login-and-verification.html) enables store customers to access their accounts more quickly and securely by providing them with a One Time Password (OTP). Your Magento 2 store can incorporate this mobile loginfunctionality. Thish enables customers to instantly log in or register by using their smartphone numbers. The remaining details can be filled out at a later date at their convenience. The extension includes a built-in message template that enables users and administrators to receive SMS notifications related to various store events.

**Key Features**
Register using Mobile OTP 
Login with OTP
Add OTP verification on customer checkout
Enable OTP on number update
Set OTP expiry time
Create a custom Email template
Customize OTP Button

## Frequently Asked Questions
**Q: What if I don't receive OTP within the expiry time?**
A:  You can request a new OTP. If you make a new request within the specified expiry time, the extension will send you the same OTP. 

**Q: Can I use the same number to create multiple accounts?**
A: No, you can't. Each account requires a unique mobile number. 

**Q: Can I send OTP to an international number?**
A: Yes, you can send OTP to any mobile number unless you have restricted the country. 

**Q: Can I install the extension via composer?**
A: Yes, you can. Please check the installation guide for the step by step composer installation process.
Cross Compiling Rust Code for Multiple Architectures using Docker
Tags: docker, rust, developer, programming
Published: 2022-06-24 05:46:00

Getting an idea, planning it out, implementing your Rust code, and releasing the final build is a long process full of unexpected issues. Cross-compilation of your code will allow you to reach more users, but it requires knowledge of building executables for different runtime environments. Luckily, this post will help in getting your Rust application running on multiple architectures, including x86 for Windows.

## Overview

You want to vet your idea with as many users as possible, so you need to be able to compile your code for multiple architectures. Your users have their own preferences on what machines and OS to use, so we should do our best to meet them in their preferred set-up. This is why it’s critical to pick a language or framework that lends itself to support multiple ways to export your code for multiple target environments with minimal developer effort. Also, it’d be better to have tooling in place to help automate this export process.

If we invest some time in the beginning to pick the right coding language and automation tooling, then we’ll avoid the headaches of not being able to reach a wider audience without the use of cumbersome manual steps. Basically, we need to remove as many barriers as possible between our code and our audience.

This post will cover building a custom Docker image, instantiating a container from that image, and finally using that container to cross-compile your Rust code. Your code will be compiled, and an executable will be created for your target environment within your working directory.

[Read the Complete Blog](https://dockr.ly/39mWVI1)
A set of modern Grafana dashboards for Kubernetes
Tags: kubernetes, monitoring, devops, opensource
Published: 2022-06-24 05:32:10

Sharing my first article on Medium! It's about a set of modern Grafana dashboards I made for Kubernetes.

{% embed https://medium.com/@dotdc/a-set-of-modern-grafana-dashboards-for-kubernetes-4b989c72a4b2 %}
1354. leetcode solution in CPP
Tags: cpp
Published: 2022-06-24 05:23:12

```
// Time: O(NlogN)
// Space: O(N)
class Solution {
public:
    bool isPossible(vector<int>& A) {
        if (A.size() == 1) return A[0] == 1;
        long sum = accumulate(begin(A), end(A), 0L), N = A.size();
        priority_queue<int> pq(begin(A), end(A));
        while (sum > N) {
            long n = pq.top();
            pq.pop();
            if (sum - n == 1) return true; 
            if (n < sum - n) return false;
            long next = n % (sum - n);
            if (next == 0) return false;
            sum -= n - next;
            pq.push(next);
        }
        return true;
    }
};


```
Best Practices for Containerizing Your Spring Boot Application
Tags: docker, spring, developer, programming
Published: 2022-06-24 05:17:45

Running your Spring Boot application in a Docker container has numerous benefits. First, Docker’s friendly, CLI-based workflow lets developers build, share, and run containerized Spring applications for other developers of all skill levels. Second, developers can install their app from a single package and get it up and running in minutes. Third, Spring developers can code and test locally while ensuring consistency between development and production.

Containerizing a Spring Boot application is easy. You can do this by copying the .jar or .war file right into a JDK base image and then packaging it as a Docker image. There are numerous articles online that can help you effectively package your apps. However, many important concerns like Docker image vulnerabilities, image bloat, missing image tags, and poor build performance aren’t addressed. We’ll tackle those common concerns while sharing nine tips for containerizing your Spring Boot code.

[Click here to access the complete blog](https://dockr.ly/3nberm3)


![cheatsheet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hldi2b6chc470zwymc3x.png)
Say Goodbye to console.log from Production environment
Tags: nextjs, webdev, javascript, programming
Published: 2022-06-24 04:57:42

I have been working on a project with Next.js since last month and used the console.log statement in lots of components & files even though I don't remember. Usually, we use it to check API responses and some other areas of the application.

Making console statements public is not a good idea at all, it may bring your app at a security risk. **Checking every file, and deleting the statement is very time-consuming** & boring too. As a developer, we all hate boring tasks so, in the article here we discuss how you can say goodbye to console.log in your Next.js app from the Production environment in just **less than 1 minute**.


![sounds good](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ou0hdqpts9muxvzc05qf.gif)

**Sounds good! let's goooo...**😎

👉 **Follow the steps mentioned below -**

**1.** Install the `babel-plugin-transform-remove-console` package as a development dependency.

**2.** Create a **.babelrc** file at the root of your project, copy the below content & that's all.

```
{
    "presets": [
        "next/babel"
    ],
    "env": {
        "production": {
            "plugins": [
                "transform-remove-console"
            ]
        }
    }
}
```

🏁 This is just a short trick that I used to enhance my productivity, even you should use it next time.
I will keep sharing more tips & tricks related to web dev,stay tuned!.

Thanks for reading.


![goodbye](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/baj9asrqqi1yelrdqdy6.png)
Outsource Vue js Developer at Your Ease!
Tags: vue, developer, outsource, programming
Published: 2022-06-24 04:15:47

Vue.js development is one of the profound frontend frameworks that not only gives you a smooth user experience but also brings lots of users to your web application without putting much effort.

However, in order to build a robust Vue.js Application one needs to find and hire trustful talented Vue js Developers that understand your vision and can transform your idea into reality with their unique Vue js skillset.

There are multiple ways through which you can get an excellent team of Vue.js Developers however, there are very few that can give you the optimum advantage of the resources and the energy you have been investing in the entire process.

Considering the current scenario, there are numerous formats through which one can Hire Vue.js Develoeprs and one of the popular ones is Outsourcing Vue.js Developers for your project.

In this blog, we are going to analyze how many benefits one can uncover by outsourcing Vue js Developer for their project regardless of any industry or niche.

The advantages are numerous but we are going to explore the top few ones. And of the top ones includes the following ones,

## Advantages of outsourcing Vue js Developer

### Low load and easy integration

When you outsource you don't have to train them and mold them which can be assigned to the core goals of the project. This could be a time consuming project that we all do not have necessarily. Outsourcing Vue.js developers could be a huge benefit to the organization as it could save time and effort both simultaneously.

### Huge basket of Vue.js Development services

By outsourcing Vue js Developers you can get benefitted from multiple technical expertise and skillset. Some of the leading Vue.js Development services include Vue.js E-Commerce and Marketplaces, building Vue.js Interactive Dashboards, impeccable Vue.js Third-Party Integration, and many more.

### No long term liability

One of the biggest advantage of outsourcing or getting a offshore Vue.js Developer you dont have to commit for long term and have low rate of risk as they dont have to take risk and hire mediocre talent and feel stuck once the project gets stuck at some point.

Outsourcing vue.js developer gives you an independence to pick the vue.js developer team that meets your objectives and goals without getting the responsibility of hiring and maintaining your employee for long term.

## Conclusion

These and many more reasons are there which prove it right with utmost accuracy why outsourcing is becoming more and more popular these days in the web development world.

Outsource [Vue js Developer](https://www.bacancytechnology.com/hire-vuejs-developer) from the right vuejs development company that can turn your idea into an amazing reality. Augment a Vue developer team that not only performed well but gives you long-term returns beyond your expectations!
Let's Start with "C"
Published: 2022-06-24 04:07:31

`#include<stdio.h>
int main()
{
    int year;
    printf("Enter the year:- ");
    scanf("%d",&year);
    if(year%100 !=0)
  {
    if(year%4 ==0)
    {
			printf("This is a leap Year");
    }
    else
    {
      printf("This is not a leap Year");
    }
  }
  else
  {
    if(year%400 == 0)
    {
      printf("This is a leap year");
    }
    else
    {
      printf("This is not a leap year");
    }
	}
	return 0;
}
`
The post-bootcamp bootcamp
Published: 2022-06-24 04:03:23

---
title: The post-bootcamp bootcamp
published: true
description: Giving back to junior engineers by helping them to break into tech
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

Breaking into tech sucks. It's time to change that.

In the last years I've had the chance to mentor dozens of junior engineers. They all share more or less the same challenges and questions:

Is it normal to feel inadequate....
I've sent dozens of resume with no answers...
How much leetcode to (not) do ?
Do you wish there was a user manual for passsionated people like your that want to break into tech ?

I've decided to share everything I know in free monthly webinars, called the Post-Bootcamp Bootcamp. If there is enough interest I'll create sidekick courses that will be donation based. I want to make sure that any person in need can access it.

The first module incoming in july 22' will cover:
- know yourself to market yourself effectively
- build an attractive resume and linkedin profile
- grow your network and build a job seeking pipeline
- cold reach tech leaders with success
- navigate initial screening
- manage expectations in the process


Feel free to register here:
https://forms.gle/dn6KGKcHguybY2Xr5

Hope to see you there.
EFS with other AWS services
Published: 2022-06-24 04:03:09

Let's see how EFS works with different AWS services. this is how an example EFS workflow would look like:

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

We can create Amazon EFS using EC2 wizard, EFS console CLI(Command line interface) or the API. We can select the various parameters like performance and throughput modes. We can then mount the file system on EC2 instance, containers, lambda functions and on premises based on our requirement. After the system is mounted we will test and optimize performance for workloads we can leverage tools like Data Sync(Data Synchronization) or SFTP(SSH File Transfer Protocol) using AWS transfer family and move the data to Amazon EFS. After the movement of data is complete, we can share the data then optimize cost with EFS lifecycle management and protect the same using backup and EFS replication.

There are some of the example services where you can integrate EFS with. These are:

- Elastic computing cloud (EC2)

- Elastic container service (ECS)

- Elastic kubernetes services (EKS)

- AWS Fargate

- Amazon SageMaker and 

- AWS Lambda
For loop in Python with Examples
Tags: beginners, programming, python, loop
Published: 2022-06-24 03:58:51

**Introduction**
For loops are very helpful in Python as they resist the repetition of the same codes again and again until the specified condition is satisfied. There are basically 3 types of loop in Python :
1.For loop
2.While loop
3.Nested loop
**For loop**
With the for loop, we can execute a set of statements in the given range.
**Syntax**
In Python, the syntax of the for loop is - for i in range(0,10).
**Remember** (i) denotes a variable. for is the keyword in the loop. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7womwe0cguco1p6zwe4x.png) 
**While loop**
While loop is used to execute a certain block of code one after another until the give condition is specified.
**syntax**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/93eh2jyohfrjpk2kvhcq.png) 
**Nested loops**
The nested loop is the loop inside the loop. This means that we want to execute the inner loop code multiple times.
**syntax**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb2cwu4ubzh4ijehv5by.png) 
**Break**
break keyword stops the loop when condition is satisfied.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/io454o3fu34mddxpqyvn.png)
 
**Continue**
with the help of the continue keyword, we can stop the current iteration of the loop, and continue with the next. The else keyword in for loop specifies a block of code to be executed after the loop is ended.
SHORT: What is the difference between PURE and VIEW modifiers in Solidity?
Published: 2022-06-24 03:56:44

## Function modifiers

You want to create a function without actually changing the state in Solidity — e.g. it doesn’t change any values or write anything.

---

`VIEW` indicates that the function will not alter the storage state in any way but view only

`PURE` indicate that it will not read the storage state.

```

---

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

contract ViewAndPure {
    uint public x = 1;

    // Promise not to modify the state.
    function addToX(uint y) public view returns (uint) {
        return x + y;
    }

    // Promise not to modify or read from the state.
    function add(uint i, uint j) public pure returns (uint) {
        return i + j;
    }
}
```


---

## SUMMARY


**VIEW** A read-only function, which ensures that state variables cannot be modified after calling them. If the statements which modify state variables, emitting events, creating other contracts, using selfdestruct method, transferring ethers via calls, Calling a function which is not ‘view or pure’, using low-level calls, etc are present in view functions then the compiler throw a warning in such cases. By default, a get method is view function.

**PURE** The pure functions do not read or modify the state variables, which returns the values only using the parameters passed to the function or local variables present in it. If the statements which read the state variables, access the address or balance, accessing any global variable block or msg, calling a function which is not pure, etc are present in pure functions then the compiler throws a warning in such cases.

> If you call view or pure functions externally, you do not pay a gas fee.
gioithieuchotcoc
Published: 2022-06-24 03:41:47

Chotcoc là website thương mại điện tử về bất động sản, chuyên tư vấn kinh doanh mua bán bất động sản tại Việt Nam, bạn sẽ dễ dàng tìm thấy thông tin về đất nền, nhà phố và biệt thự.
Website: [https://chotcoc.com/gioi-thieu/](https://chotcoc.com/gioi-thieu/)
Address: 341 Nguyễn Xí - quận bình thạnh - Hồ Chí Minh
Phone: 0973916425
Email: gioithieuchotcoc@gmail.com
#chotcoc #muabannhadat #datnengiare #nhapholienke #batdongsan #phanlobannen`

```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88ogtzdax5hp8of0arwn.jpg)
```
`
Amazon EFS Security Practices.
Published: 2022-06-24 03:38:24

We have already seen all the EFS performance parameters now let's understand few security best practices working with EFS. 
-**Data encryption in Amazon EFS:** Amazon EFS supports two forms of encryption for file systems 
 1. Encryption of Data in Transit and
 2. Encryption at rest.
You can enable encryption of data at rest while creating the Amazon EFS file system and you can enable encryption of data
in transit when you mount a file system.

-**Identity access management for Amazon EFS:** Access to Amazon EFS requires credentials that AWS can use to authenticate your requests. Those credentials must have permissions to access AWS resources such as Amazon EFS file system or an Amazon EC2 instance. IAM helps to secure your EFS resources by
controlling who can access them.

-**Controlling network access to Amazon EFS file systems for NFS(Network File System) clients:** You can control access by NFS clients to Amazon EFS file systems using network level security and EFS file system policies. You can use the network layer security mechanisms available with Amazon EC2 such as VPC security group rules and network ACLs(Access Control List). You can also use AWS IAM to control your NFS access with an EFS file system policy and identity based policies.

-**Logging and Monitoring in Amazon EFS:** Monitoring is an important part of maintaining the reliability, availability and performance of the Amazon EFS and your AWS solutions you should select monitoring data from all parts of the AWS solution. So that, you can easily debug a multi-point failure if one occurs. Amazon provides several tools for monitoring your Amazon EFS resources and responding to potential incidents.

-**AWS managed policies for Amazon EFS:** To add permissions to users groups and roles it is easier to use AWS managed policies than to write policies yourselves. It takes time and expertise to create IAM customer managed policies. That provide your team with only the permissions they needed. These policies cover common use
cases and are available in your AWS account.

-**Compliance Validation for Amazon Elastic File System:** Third party auditors assess the security and compliance of Amazon Elastic File System as a part of multiple AWS compliance programs. 

-**Resilience in Amazon Elastic File System:** The AWS global infrastructure is built around AWS regions and availability zones.
AWS region provide multiple physically separated and isolated availability zones. Which are connected with low latency high throughput and highly redundant networking with availability zones. You can design and operate applications and databases that
automatically fail over between zones without interruption. Availability zones are more highly available, fault tolerant and scalable than traditional single or multi-data center infrastructures.

-**Amazon Elastic File System Network Isolation:** Network level isolation can be provided to Amazon Elastic File System using resource-based access policies, which can include restriction based on the source IP address or specific VPCs or specific
VPC endpoints.
June 23rd, 2022: What did you learn this week?
Tags: weeklyretro, weeklylearn, discuss
Published: 2022-06-24 03:22:22

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.

![Stephen Colbert saying Welcome to the Nerd Zone my friend](https://media.giphy.com/media/l0HlHFRbmaZtBRhXG/giphy.gif)

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

{%tag todayilearned %}

The cover photo is ASCII art that appears in the browser DevTools when using @sarah_edo's Productive Twitter browser extension.

{% embed https://github.com/sdras/productive-twitter %}
Idempotent matrices in Julia
Published: 2022-06-24 02:30:54

Let {% katex inline %}A{% endkatex %} be a square matrix of order {% katex inline %}n{% endkatex %}. Then {% katex inline %}A{% endkatex %} is called an **idempotent** matrix if {% katex inline %}AA = A{% endkatex %}.


If a matrix {% katex inline %}A{% endkatex %} is idempotent, it follows that {% katex inline %}A^n = A, \forall n \in \mathbb{N}{% endkatex %}. Idempotent matrices behave like identity matrices when raised to a power {% katex inline %}n{% endkatex %}. All Idempotent matrices except identity matrices are singular matrices. 

One way to make idempotent matrices is {% katex inline %}A = I - u u^T{% endkatex %}, where {% katex inline %}u{% endkatex %} is a vector satisfying {% katex inline %}u^T u = 1{% endkatex %}. In this case {% katex inline %}A{% endkatex %} is symmetric too.

```julia
#Idempotent matrices in Julia
using LinearAlgebra
u = rand(5)
u = u/norm(u) #Force u^T * u = 1
A = I - u*u'
isapprox(A^100,A) # true
isequal(A,A') # true (test for symmetricity)
```
Remove Dual Boot from windows https://youtu.be/UxQeKsPqNi8
Published: 2022-06-24 02:04:15

[](https://youtu.be/UxQeKsPqNi8
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkwcv88lfqd6f4pl0he8.png))
Abstração e Polimorfismo
Tags: polimorfismo, java, conceitos
Published: 2022-06-24 01:55:41

**Conceitos prévios:**

Interface -> Uma classe 100% abstrata

Classe abstrata -> Uma classe que não pode ser instanciada ( No java, é definido nesta forma [ Objeto obj = new Objeto() ]
A classe abstrata, fica incoerente "sem utilidade, valor, razão de existir" se não for estendida.

continua...
Pitch to me: why should I use Svelte?
Tags: discuss, svelte, beginners, webdev
Published: 2022-06-24 01:13:28

I've been using Vue (Vue2 and Vue3) for several years, and now I keep hearing how great Svelte is. I looked at their quickstart guide, and it seems cool. I'd like to hear from people already using Svelte, probably on commercial/production environment. Much better if you can share the link, so I can take a look at your product. 
Looking forward to your input. 
Thanks!