teleren/devto huggingface dataset:
How to use AWS Application Migration Service ( Onpremise to AWS Cloud Mumbai)
Tags: cloudmigration, aws
Published: 2022-08-06 01:56:55


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

**Pre-requisites** -

VPC CIDR of On Premise in which the Windows App server is running

Plan for AWS Migration Service — Tasks to do in Replication Settings template

Step -1 : Create a New VPC with two Public Subnets.

1. Subnet 1 is for Replication instance
2. Subnet 2 is for Target Machine

Step -2 : Navigate to AWS console, choose the AWS Migration Service and Launch the AWS Migration Service Dashboard
Step -3 : Click on create IAM roles and click on create Security group for AWS Application Migration Service
Step -4 : Choose the replication server instance type as M5a.large
Step -5 : Choose the EBS volume as HDD, all disks
Step -6 : Choose the option create Public IP

**AWS Replication Agent installation Steps** :

Step 1 — Select operating system as Windows
Step 2 — Select replicate all disks
Step 3 — Click on create IAM user
Step 4 — Copy the S3 url for AWS Replication installer and download it in the Ranchi App Server
Ste5 5 — AwsReplicationWindowsInstaller.exe — region ap-south -1 copy this command and paste it in the Ranchi APP Server’s Powershell

**Tasks in AWS Migration Service console**

Step:1 We can see a replication instance getting spined up and the replication from Onpremise App Server to this instance in progress
Step:2 Once the replication is over the console asks to launch the target machine, Navigate to the steps in console and
launch the target machine (Choose instance type as per requirement) in Target Machine subnet we created in cutover mode
Step:3 We can see the target machine is running in the AWS console in Mumbai region

**Post Migration tasks** -

Step:1 Create a AWS WAF and map it to the Ec2 App instance
Step:2 Create a AWS Config, Cloud trail and enable VPC Flow Logs.
Step:3 Create the desired amount of IAM users as per customer requirement, in order for them to access the APP Server present in EC2 from Onpremise.

(Since medium blog is not free, I have replicated my medium blog here)
SAFe Agile www.scaledagileframework.com
Published: 2022-08-06 01:53:48

Lets see few concepts from SAFe Agile !!

In order to acquire SAFe’s effectiveness the four core values ie alignement, built in quality, Transparency, Program excutions should be practised.

SAFe is based on Agile Development, Lean Product Development, Systems thinking and Devops.

**Alignment** :

Alignment needs to be cohesive with fast change, disruptive competitive forces and geopgraphically distributed teams. An Alignment depends on an Enterpise Objectives.

**Built in quality** :

Built in quality ensures that every element and every increment of the solution reflects quality standards thorughout the development life cycle.

The SAFe built in quality involves Flow, Architecture, Design quality, code quality, System quality and Release Quality..

**Transparency **:

In SAFe we deliver the products which is simple in design and which is transparent to the customer, thus trust is established.

The customer and other stake holders must be able to take a glimpse of Program backlog, they must have a clear understanding of PI obecjtives, Agile Release Train or Solution Train.

**Program Execution** :

SAFe Agile doesn’t matter if teams cant execute and continuously deliver value.

SAFe places an intense focus on working systems and business outcomes.

The Agile release train involves Define, Build, Validate and Release.

**Lean Agile Mindset** :


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


It is the combination of beliefs assumptions, attitudes and SAFe Leader’s actions who possess the concepts of Agile Manifesto and Lean thinking.

SAFe includes Lean, Agile, Systems thinking and Devops.

A person who possesses SAFe Agile must be with growth mindset.

A good Leader is the one who helps the team grow by providing trainings, rectifying roadblocks and who treats the team with respect.

I am someone with growth mind set .. are you too ?!

(Since medium blog is not free, I have replicated my medium blog here)
Steps involved to setup DR/Migration from Onpremise to AWS Cloud
Tags: cloudmigration
Published: 2022-08-06 01:50:37


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kevccp12zktogik6ieh.PNG)


Customer wants to setup a Disaster site on AWS Cloud.
**Tools used** : Aws Cloud and Cloud Endure.
**Tasks to be done on AWS Cloud** :
1. Create a AWS account for the customer
2. Create an IAM user named “ Cloudendure user”
3. Attach desired policy as recommended by Cloudendure to the IAM user.
4. Create a site to site VPN for the customer’s Data centre to AWS Cloud.
5.Create a VPC
6.Create a Private Subnet
7.Create a security group
**Tasks to be done at Cloudendure** :
1.Create a Cloudendure account and navigate to the dashboard. Choose new project, in the available options choose Disaster recovery.
2. Choose setup and info.
3. Input the IAM user’s access key and secret key and copy the Cloudendure OS agent link in a notepad, When it prompts copy the Cloudendure generated token in the notepad.
4. Mail the contents of the notepad to the customer ( on-prem server admin )
5.Ask the onpremise server admin to run the contents you mailed in the server( to be set up as DR site in Aws)
6. Navigate to replication settings. Choose the desired instance type ( to be replicated in Aws console ),Choose the staging VPC you created in Aws console, Choose the private subnet( as application and database to be present in private subnet)
Input the private Ip for the staging server that falls within the subnet range.
7.Choose the communication type as through site to site VPN and choose the VPN you created.
8.Click on done
**Getting back to AWS console** :
1.When you check here you could see a replication instance getting spinned up.
Getting back to Cloudendure console:
1.When you check here you could see a instance showing the data flow phases from onprem to Cloudendure.
Once this is completed, in Cloudendure you can see Launch target machine. Click it. Give the instance type, instance name ,Subnet,IP, choose cutover option and click on Done.
You could see a new machine with the instance name you gave earlier getting spinned up.
Wait for a while, you can see now the replication instance that was running earlier getting terminated automatically.
You can see now the target machine is running. If you login and check you will find the onpremise server’s data here.
The difference between migration and DR setup is when you choose migration as Cloudendure project it will move the Data from your source machine ( can be onpremise or Aws or Azure or any Cloud Account’s machine) to the target machine.
When you choose Disaster recovery as Cloudendure project it will copy the data from source machine to target machine.
These are the steps involved in DR/ migration using Cloudendure.

(Since medium blog is not free, I have replicated my medium blog here)
AWS Client VPN - Explained with steps to create!
Published: 2022-08-06 01:45:00


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61rft5a0926yuoddnqat.PNG)

How to configure AWS client VPN using windows instance?

AWS Client VPN config steps — Authentication — https://lnkd.in/gnHKFkr

Rather doing the Server and client certificate generation using Linux instance its a bit easy if we go with Windows instance. If you scroll through the link you will find two tabs. Choose windows and follow the steps given to import certificates into Client Manager.

While creating AWS Client VPN in the console you have to give a CIDR and also choose a VPC for this Client VPN. You have to choose the server certificate and then click on mutual authentication and then choose client certificate. Download the client config file open it and then go to your windows instance navigate to C:\Program Files\OpenVPN\easy-rsa\pki\issued and choose the client certificate open in notepad, copy the contents to the client config file which you downloaded. Similarly navigate to the C:\Program Files\OpenVPN\easy-rsa\pki\private and open the Cert key and choose open with notepad, copy the contents and paste it to the bottom of the certificate you copied earlier. Ensure before pasting the certificate in the downloaded config file you have to add <cert> and at the end of the certificate add </cert>. To the beginning of the cert key add <key> and at the end </Key>. You can download the client VPN for your desktop from https://lnkd.in/g_hKZJh . Upload the config file you prepared by creating a profile. Click on connect then your VPN should connect.

(Since medium blog is not free, I have replicated my medium blog here)

#awscloud #awsclientvpn #cloudcomputing #openvpn #aws
Django Custom user model
Tags: python, django, webdev
Published: 2022-08-06 01:37:00

In django we can create Custom user Model using AbstractBas


eUser. If, however, we wan't to use an email address instead of a username as the user identifier, you have to extend AbstractBaseUser.

Requirements:-

we know Python and Django frameworks.

we used Django 3.9 and python 3

Getting started:-

First, we create a folder called User and then install virtual environments using pip3 install virtualenv


we create a virtual environment using virtualenv venv and then install Django in virtual environment


Now we create a Django project using django-admin startproject Pro and then we create a app inside Project called Pro using python3 manage.py stratapp app


We install our app inside project folder in settings.py in INSTALLED_APPS


Now we create models inside app in models.py file first we import AbstractBaseUser and BaseUserManger from django.contrib.auth.models, from django.contrib.auth.models import AbstractBaseUser, BaseUserManger

then we create a Account class and inherit AbstractBaseUser and create fields in Account class like first_name, last_name, username, email, phone and add some required fields like date_joined, last_logging, is_admin, is_staff, is_active, is_superuser


After creating Account class now we set logging field, currently by default logging field is username, but in our application we want user can logging by using email not username so now we replace username to email USERNAME_FIELD = ‘email’ , REQUIRED_FIELD = [‘username’, ‘email’] and some permission to admin


Next step we create Account manager that manage users account so we create a MyAccountManager() class and inherit BaseUserManager and create a method for users called create_user() and create users.



Once we create class create_user now we create class for superuser create_superuser in MyAccountManager for manage users account


Next, we use the makemigration command to establish a Django database and for utilise models in our database to use migrate command.

once the database has been created, create a superuser and log in to our database.

Use the createsuperuser command to create superuser. then we enter details

of superuser and we can login using email


Source code: Github
Let's practice Insert Sort (Javascript)
Tags: algorithms, javascript, beginners, programming
Published: 2022-08-06 01:10:52

## Show me the code
```Javascript
let data = [8, 6, 10, 5, 3, 9, 2, 7, 4, 1]

function InsertSort(arr) {
    for (let i = 0; i < arr.length; i++) {
        let currentIdx = i
        for (let j = i - 1; j >= 0; j--) {
            if (arr[currentIdx] < arr[j]) {
                [arr[currentIdx], arr[j]] = [arr[j], arr[currentIdx]]
                currentIdx = j
            }
        }
    }

    return arr


}
console.log(InsertSort(data))//[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
```


## key Idea
The tricky part of this algorithm:

1. Define a `currentIdx` variable, which is the index the latter will be compared to.

2. The second nested for-loop will have the `j` index and compare to the `currentIdx`.
3. Since `currentIdx` is already assigned to the current Index, `i`, so the `j` will be `j-1`, the previous one, we want to compare. 
4. We compare two number side by side. This is part of how this algoritem works.
5. Finally, when the condition match (meaning the `arr[currentIdx] < arr[j]`), we swap and we need to dynamically rebind `currentIdx` to `j`. This is the essential part of this algorithm, which is going to find the previous index spot and swap (or "insert")  them.
6. Tip: Try to google "insert sort animation" and have a visual idea of how the algorithm goes.
Form Tutorial
Published: 2022-08-05 23:45:49

This tutorial will show you how to create a PHP form and process the data that is submitted to it. We will go through each step of creating the form and processing the data, so that you can understand how it all works.

Creating a PHP form is very easy, and it only requires a few lines of code. First, we need to create a file called "form.php" and put the following code in it:

<form action="process.php" method="post"> <!-- Put your form elements here --> </form>

This code creates a basic PHP form with no elements in it. The action attribute specifies where the form data will be sent when the form is submitted, and the method attribute specifies how the form data will be sent (either GET or POST).

Next, we need to add some elements to our form. For this tutorial, we will just add a text field and a submit button:

<form action="process.php" method="post"> <input type="text" name="username"> <input type="submit" value="Submit"> </form>

 Now that we have our form elements in place, we can process the data that is submitted to it. To do this, we need to create a file called "process.php" and put the following code in it:

<?php if (isset($_POST['username'])) { // Form was submitted echo "Welcome, ".$_POST['username']; } else { // Form was not submitted echo "Please enter your name."; } ?>

This code checks to see if the form was submitted by looking for the presence of the "username" field in the $_POST superglobal array. If the field is present, it means the form was submitted and we can welcome the user. If the field is not present, it means the form was not submitted and we need to ask the user to enter their name.

That's all there is to creating a basic PHP form! You can now add as many fields as you like to your form and process them all in the same way. 

Thanks for following me, I am [web pages designer](https://paginaswebenguadalajara.com.mx/) at the Relief Web and Design agency
Day 118: The blank page anxiety...
Published: 2022-08-05 23:02:20

Hi!
This week had been a challenging one with lack of focus and motivation and here comes the blank page anxiety where I'm faced with a black page and I can't think of anything to write and that's the case for here at the blog and the same case with coding. that feeling when you know there is things to work on but the mind is still blank.
I still have the weekend though to give it another try, in fact this one is expected to be a busy one and tomorrow I'm going to try something different. I will try to destructure task to smaller tasks that can be accomplished more easily it would be better having few smaller task accomplished than having no task at all.
We will make it different

Signing off....
<h1>Phase 1 Flatiron School experience and suggestions!<h1>
Published: 2022-08-05 22:51:42

**Introduction**
I just finished my 6th week at Flatiron School. Time flies by... Just before entering phase-3 I wanted to share my experience and progress and some suggestions to anyone who is thinking to get started!

**Week 1**
Oh week one... the best word to describe it? Overwhelming.. Not only you have a whole new environment and new people, but you have to go through an immense amount of material. I was studying day and night with very little sleep, but I got through it and learned so much. I really started to love JavaScript as it was our main focus. There are just so much you can do with it.
My favorite of all is by far event listeners. There is nothing more rewarding then to see your buttons working and actually functioning. 
Of course, there is a lot more then just event listeners to it.
My suggestion for anyone who decides to start this school? Be prepared learn some basics. Definitely learn some HTML and CSS because you are not going to have time to learn from scratch while you are learning JavaScript.

**Week 2**
Week 2 was for me deepening my knowledge about JavaScript get to know CRUD operations such as GET,POST,PATCH,DELETE.

```
let request = async () => {
 // initiate request to your choosen server
 let req = await fetch(`url`)
 let res = await req.json()
 console.log("data: ", res)
}
request()
```

Using an external API or a local host allows you to have more persistent websites and not just have everything erased after you refresh the page. The best thing about the API is the data it will provide you and you can build so much around that data.
Somehow coming up with a new website idea is a lot easier. Just lookup public APIs and you can build anything.

**Week 3**
It starts to feel like everything is coming together...
This is also the week of creating your own website as your first project.
When I first started to think about a website idea my first thought to get motivation is looking through public API-s, although it is a great way to get motivation there is just way too many options and you could feel like in candy store... Good luck making up your mind. You just want to try all of them.
So I decided to move away from creating my website based on API  and instead I focused on my previous experiences and what am I passionate about. So I did and I have created something that I could call my own, what a great feeling. 
**Suggestion **make sure whatever your idea is, before deep diving into coding first find a relevant API that provides you the necessary data.


Here is a list of API(no authorization required):
https://mixedanalytics.com/blog/list-actually-free-open-no-auth-needed-apis/

Just one more link to share:
https://developer.mozilla.org/en-US/
this website will become your best friend:)

If you are interested to get more information about the school and the program don't hesitate to DM me.
Learning Resources (JS and more)
Tags: javascript, beginners, webdev, tutorial
Published: 2022-08-05 15:18:17

Salutations <img src="https://media.giphy.com/media/C46EeKCUKxU3e/giphy.gif">

Are you feeling a bit discouraged? Have you been putting in the effort but still feel like you can't understand? 

Well worry no more because I'm here to help you. First, I want to tell you that everyone learns differently, and there's no ONE way to learn. Now, I want you to think about your training. 

- Which areas are not your strongest? 

- Where would you like to see the most improvement? 

- Do you just feel like you need something to solidify the information? 

- How do you learn? 

After you've taken the time to reflect, browse the resources below and see if there is one that will positively add to your learning journey.

Happy Learning :)


## HTML/CSS

- [Shay Howe](https://learn.shayhowe.com/html-css/)
- [Flexbox Froggy](https://flexboxfroggy.com)
- [Flexbox Zombies](https://mastery.games/flexboxzombies/)
- [CSS Tricks](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
- [Frontend Mentor](https://www.frontendmentor.io)




## Projects

- [App Ideas](https://github.com/florinpop17/app-ideas)  



## Problem Solving

- [Hacker Earth](https://www.hackerearth.com/practice/)
- [Codewars](https://www.codewars.com/dashboard)
- [Leetcode Explore](https://leetcode.com/explore/)


## Programming
- [JavaScript 30](https://javascript30.com)
- [Coding Game](https://www.codingame.com/home)
- [Frontend Mentor](https://www.frontendmentor.io)
- [Learn JavaScript Online](https://learnjavascript.online)



## Git and Open Source

- [Gitlab]( https://lab.github.com )

- [First-timers Only](https://www.firsttimersonly.com)

- [Open Source Guide](https://opensource.guide/how-to-contribute/)

- [Syknapse](https://syknapse.github.io/Contribute-To-This-Project/)

- [First Contributions](https://firstcontributions.github.io)

- [Good First Issues](https://goodfirstissues.com/index.html)

- [Git Command Explorer](https://gitexplorer.com)
What if the Website Address Becomes the Place in the Real World or What do You do if You Don't Write a Code?
Tags: discuss, programming, productivity
Published: 2022-08-05 22:28:00

Some week ago I showed you some wonderful designed french [sites](https://dev.to/deotyma/wonderful-designed-french-sites-1d05). 
One of my favorites is this one of [Galerie Dior](https://www.galeriedior.com/)

Last weekend I would like to see how it is in real life, and believe me in reality is really wonderful. 

![robe](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k9p9bhi79i9xorbk6qpo.jpg)


![robes 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4iitrxkh5b2jrx2m4y0.jpg)


![robes 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqlury3hdb5xwlekeg58.jpg)

This is only an aperçu of all those merveilles. 

I would like to invite you to a discuss what do you do to relax after hours and hours before your computer?
Interview Warmup
Tags: productivity, career, tooling, discuss
Published: 2022-08-05 22:22:38

> Google Launches New Interview Warmup to Assist Job Candidates Enhance Their Interview Approach.

#### [Interview Warmup](https://grow.google/certificates/interview-warmup/)

A quick way to prepare for your next interview in many fields, Practice key questions, get insights about your answers, and get more comfortable interviewing.
On the Hunt!
Tags: beginners, discuss, career
Published: 2022-08-05 22:05:58

Hello Everyone,

I know it has been very long since my last post. Much has happened in my life since completing phase 2 at Flatiron. I worked my way through the remaining phases and graduated. I learned all about Ruby, Rails, and backend development. At first, I disliked Ruby since the language was very different from the specific style that Javascript has. However, as I learned more I started to love the language as you don't need to spell everything out and it is capable of so much. I have worked a few collaborative projects including an informative news platform, a website to sort and store employee data, and more during my time at Flatiron. Learning about full-stack development was better than I could've imagined. 

I am currently on the search for a job and what a rocky experience that has been. I thought getting a job was just applying to place and doing a bit of networking but man, was I wrong. It is such a complex and difficult area of life to learn. I will admit, I have had a rough time adjusting in my career search. However, with the help of my amazing career coach and support from my fiancé, I have been able to start maturing into the professional world. I am still in the process and learning so much but I hope to come back soon with great news for you all. 

Thank you so much for reading and have a great day