teleren/devto huggingface dataset:
My Flatiron Journey
Published: 2022-10-26 18:43:16

My name is Leela Khadka and I am currently a Phase-4 student in Flatiron coding Bootcamp.

**How did I end here?**
I was a pharmacy student. After four semester I took a break and after some time I was thinking of going back to school, but again I wasn't hundred percent sure about continuing as a pharmacy student so I started looking into other options. At that moment I started a job as a sales associate where they didn’t have IT in person so to set up my account they were were giving me instructions via phone where I got into talking with her about computer science and that helped me realized maybe computer science is something I might be interested so I did little coding in UDemy to see if I was interested and I liked it and I was ready to go to school when I was searching for options I got to know about Boot camps where I was interested in two bootcamps: flatiron and general Assembly. I found out my husband's friend attended flatiron and also he recommended to me and thats how I ended up here.

**My feelings in flatiron.**
**Phase-1**
First day itself I was overwhelmed by all the information and I was constantly questing myself if I made a mistake attending Bootcamp especially during first and second week of the phase-1, but seeing other fellow students were feeling the same did made be feel better because I wasn't alone. second week was much easier than first week also it got better end of the second week because I didn't had to worry about passing the code Challenge.
**Phase-2**
First day of phase-2 I remember thinking oh **React** is easy, but after that day it was extremely hard for me at the end of week 1 I was ready to switch to Flex because three weeks wasn't enough for me to learn and I was all set to switch but because of some things I didn't and I am so glad. I realized it was impostor syndrome kicking in and as we got into third week definitely everything got better.
**Phase-3**
I was little prepared for phase-3 but even tho it wasn't clicking easily, but after tons of labs, lectures, and discussion questions it got easier to understand.
**Phase-4:**
First two days it felt like we were just reviewing what we learned in Ruby but once we got into validation especially custom validation it felt like first week of every phase but obviously the more practice I got then it clicked.

**Things I regret not doing it**
I wish I had spend some time in every languages we would be learning before starting bootcamp so I would't been panicking especially in week 1.

Also I would study whole day of one day of weekend rather than few hours so I wouldn’t have to take so much load in weekdays.

**Things I learned**
Not only I learned JavaScript, React, Ruby, and Rails but with that I also learn to believe in my-self, to push myself harder, dedication, also to work harder then what I consider working hard.
Generate Cryptographically-secured password using 12 words mnemonic phrase without storing your password anywhere
Tags: javascript, blockchain, react, webdev
Published: 2022-10-26 18:42:26

Hey guys I have developed an algorithm which will generate cryptographically-secured password using 12 words mnemonic words.
You just need to remember/Write down this 12 words to recover and to get your password for all your needs.
Your passwords are not stored anywhere,It is generated cryptographically using random entropy.

I made a website to generate your 12 words and to generate passwords with it.
At first you need a 12 words mnemonic phrase that will be your master key. DON'T LOSE IT!!!
And after that you need to create a password(Not the one we are generating) which you can remember to create an account, So only with this password and that 12 words you can only get your words. You can have different passwords to create multiple accounts.
For example,
Imagine you have created a 12 words mneomnic phrase, Let us call that as X.
So you need to create a extra password your own and call that 'abc'
So basically X+'abc' can generate different types of password
At the same time you can create another password call it as 'cdf' 
X+'cdf' will lead to another different account of your own seed phrase
So you can create any number of accounts
You can use it for several purpose.

So After entering your own password we get into generating the cryptographically secured password which can be used for your credentials
So if you want password for google you can type google in the input box and you will get your password.
If you want another password for google account you can type 'google1' and get that.
You can type anything in the input box and get the password
But you need to remember what you have typed to recover it.
For convenience we type facebook for generating passwords for facebook.

Here is the website I hosted(Please open it in PC,since I didn't add media queries)
Link : https://63597b2a9c97c814225eed2c--quiet-croquembouche-dd4b57.netlify.app/

Here is my github code link 
Link : https://github.com/Athulr32/password-gen

if there is any problem with the code like any security issues let me know, And I am planning to make an extension also which will help you to automatically get passwords in the input box when you visit a website and also a mobile app.

So if you guys found any security flows in my code or anything to add more let me know in the comment section.

Thank You :) 
Lets meet in comment section!
Entry Level Full Stack Software Engineer
Tags: react, angular, vue
Published: 2022-10-26 18:23:13

**Title: Entry Level Full Stack Software Engineer 
Location: 100% Remote 
Direct Hire 
Salary on experience: **

0 - 1 year experience: $80,000 - $100,000/year + Benefits 
2+ year experience: $120,000/year + Benefits 
3+ year experience: $140,000/year + Benefits 

**
- You must be located in the USA
- No sponsorship
- No vendors
**

We are looking to add a Full-Stack Software Engineer to the team. You will be working with top notch-talent that includes both our internal team as well as some of the brightest contractors. 

You will be a part of a team with deep knowledge of all areas of software development. 

You can expect your contributions to be accepted and appreciated. 
And you can expect your skills to become even sharper. Iron sharpens iron. 

We are looking for someone who understands software architecture, data modeling, and object-oriented programming concepts. 

What You’ll Do 

- Efficiently roll out technical features from concept to product 
- Collaborate with a team to develop our next-generation travel platform 
- Develop tooling and processes to benefit and grow our team 

What You’ll Need 

- Bachelor's degree in Computer Science, Computer Engineering, from a top-ranked institution 
- Understanding of Back-end Java Spring Boot or Hibernate a plus 
- Understanding Front-end development in Vue, React, or Angular is a plus 
- Potential to quickly develop expertise in any part of our tech stack where you have limited experience
Setup a user in Dockerfile
Tags: docker, laravel
Published: 2022-10-26 18:20:22

_Hi everyone!_

_Welcome to the first blog post of my life:) The main reason I decided to create a blog is to improve my writing skills in English. I decided to start just describing my everyday programming problems, so if anyone will find something interesting in the future, that would be great!_



---
## Introduction
I'm developing an application in Laravel and Vue using dockered php-fpm and nginx services.

I have used out of the box sail solution previously, but I wanted to have simultaneus requests handling.

I decided to use great boilerplate Dockerfile from this repo:

https://github.com/Cyber-Duck/php-fpm-laravel/blob/8.1/Dockerfile

But there was a little caveat.

---
## The problem

I was logged in as root when I launched Docker terminal. The main pitfall of this approach is that php artisan generated files have a root owner even on the host machine.

When I checked the Dockerfile, I found this line

```
RUN usermod -u 1000 www-data
```

We can't log in as this user because of the no-login directive in /etc/passwd file. Second thing, files in docker have group gid 1000 which doesn't exist...

Probably if we exec artisan commands as the www-data user from the host machine everything would be ok, but I prefer to login into docker and operate from there.

Group www-data had gid 33.

---
## Solution

Solution is to change the www-data group gid, create a new user who has a login possibility, and assign it to the www-data group.

```
RUN groupmod -g 1000 www-data
RUN useradd -u 1000 -ms /bin/bash -g www-data dockeruser
RUN chown -R dockeruser:www-data /var/www

USER dockeruser
```

And voila, everything works :)
Lead Software Engineer / SaaS
Tags: react, angular
Published: 2022-10-26 18:17:32

**Title: Sr. Software Engineer
Location: 100% Remote
Direct Hire / Full Time
Salary: $170,000 - $200,000/year + Benefits
**

**- You must be located in the USA 
- No sponsorship
- No vendors**

You will be working with our CTO and our top-notch team of developers, taking the lead on creating elegant solutions to solve some of the biggest pain points in our complex industry.

We believe in exceptional user experience and in showing up to code. Our industry provides plenty of challenges, and your contributions will be recognized and appreciated, while your skills will be sharpened. 

What You'll Need

- You are a coder that loves to be hands-on, leading the charge on complex projects
- You have a deep understanding of software architecture, data modeling, and object-oriented programming concepts
- You've earned a Bachelor's degree in Computer Science, Computer Engineering, or similar STEM degree from a top-ranked institution
- You have 5+ years of experience as a full-stack developer
- You are experienced in Java Spring Boot and Hibernate on the backend, and Vue, React, or Angular on the frontend
- You have the ability to quickly develop expertise in any part of our tech stack where you have limited experience

What You’ll Do

- Efficiently roll out technical features from concept to product
- Build REST APIs
- Collaborate with a team to develop our next generation travel platform
- Develop tooling and processes to benefit and grow our team
- Mentor junior engineers

Let me know if this sounds like something you would like to know more about and I can send the full description for review.

Thanks!

Ruben / rrabines@segrera.com
https://www.linkedin.com/in/rubenrabines/
Script to checkout files from specified branch to current branch
Tags: bash
Published: 2022-10-26 18:07:54

Recently, I wrote a script to checkout files from branch because why not. At first I thought of using golang or C#, but bash scripting is the way to go.

In all honestly, this script was made with github copilot, its getting pretty powerful, but this script is also fairly simple.

```sh
#!/bin/sh

# this scripts reads files.txt and checks out the files from the repository from the inputted branch

# argument 1: branch name
# argument 2: file.txt

# check if the branch exists
if ! git show-ref --verify --quiet refs/heads/$1
then
    echo "Branch does not exist"
    exit 1
fi

# check if file exists
if [ ! -f $2 ]
then
    echo "File does not exist"
    exit 1
fi

# read the file and check out the files
while read line
do
  # convert line from windows path to unix path
  line=$(echo $line | sed 's/\\/\//g')
    echo "git checkout $1 -- $line"
    git checkout "$1" -- "$line"
done < $2
```

Since I use windows + git bash we will need a convert windows file paths to unix, for now I use a simple approach of just parsing backslash.


For example a sample file.txt can be

```
package.json
app/src/file.goeshere.txt
```
Almost Hacktover
Tags: opensource, javascript, css, hacktoberfest
Published: 2022-10-26 17:46:51

## They say third time is the charm

A few days ago I finished my third PR on a new issue for [a map of wild fires](https://github.com/IndigoWizard/wildfire-burn-severity).

This map is cool, it is an amalgamation of folium, geemap, python and pure JS and CSS and that is where your friendly neighborhood hacktoberfester comes in.

In the issue the maintainer specified very clearly "...the legend is pure HTML/CSS/JS that can be injected in the main python source using Branca library." And I thought to myself, alright this is my ballpark, I got this.

I extracted the relevant HTML and CSS and used those 2 files alone to do what I had to.

The task at hand was to make the legend collapsible. At first I had made a button that would hide or display the legend if it was clicked to show the maintainer I was interested and sent him an MP4 of what I had done.

Looked like this:
<video width="320" height="240" controls>
  <source src="https://user-images.githubusercontent.com/77400826/197453093-91616569-c4e4-464b-be51-1a04c61e6b8b.mp4" type="video/mp4">
</video>



 He took a look at it and said he wanted it to fold in like an accordion, he just had trouble figuring it out for himself at the time. He also showed me that my button overlayed another UI element that would be there and that I should refer to the live site for the position of everything else. I told him I would like to work on it and he assigned me to it.  

## CSS components always answer my jQueries

It wasn't too long before I found an example online that showed me that accordion is actually a built in function of the jQuery that was already being used in the project. I inserted a new div to wrap the elements I wanted to collapse and selected them using jQuery and said that the element should behave as an accordion. Great... except for one thing, it didn't.

I sat there scratching my head for a moment and remembered one of our WEB lectures from last semester, the jQuery didn't just have to be within the script tag but it had to be underneath the greater `$(function() {});` Document Ready Event. It was right there, all I had to do was copy and paste my code in the right place.

It looked ugly for a while cause my div was wrapping the wrong thing but with some trial and error I got it and created a PR.

So to this day I have gone from Markdown to CSS to now a bit of HTML, JS and jQuery in the latest. Certainly I am not making the great large contributions I had thought I would be but finding issues in the first place has proven a difficult task for me. I hope that I can continue to progress and make even more meaningful contributions in the future. For now I am glad I helped IndigoWizard out a bit here with his cool :fire: map.

Final Product:
<video width="320" height="240" controls>
  <source src="https://user-images.githubusercontent.com/77400826/197615445-50a3f49d-020e-4721-ac23-88ce7fddb2dd.mp4" type="video/mp4">
</video>

Issue:https://github.com/IndigoWizard/wildfire-burn-severity/issues/2
PR:https://github.com/IndigoWizard/wildfire-burn-severity/pull/3
Setting Up An ownCloud server on linode.
Published: 2022-10-26 17:33:38

**Step 1** 
**Create a ubuntu server in linode.**

**Step 2**

**Install Docker Engine and Docker Compose**

1) Update the package index and install packages

   $ `sudo apt-get update`

   $ `sudo apt-get install \
      ca-certificates \
      curl \
      gnupg \
      lsb-release`

2) Add Docker's official GPG key

   $ `sudo mkdir -p /etc/apt/keyrings`

   $ `curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg`

3) Set up the repository
 
   $ `echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`

4) Install Docker Engine and Docker Compose

   $ `sudo apt-get update`
   
   $ `sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin`

**Step 3**

**Pull The Official Docker Image and run it**

1) $ `docker pull owncloud`

2) $ `docker run -d -p 80:80 owncloud`

Now you can access owncloud by entering your server ip in browser.
Vid Power Appsumo Lifetime Discount
Published: 2022-10-26 17:13:18

[Vidpowr](https://reformationcoupon.com/lifetime-discount-on-vidpowr-appsumo/) is a web-based service that allows users to record, share and broadcast videos in any kind of medium. 

It’s been in development for over 8 years and took its first steps as a tool for use with social networks. 

Now it has access to a growing number of features that make it an attractive option for many businesses which need to leverage the power of [video](https://reformationcoupon.com/lifetime-discount-on-vidpowr-appsumo/).
How to Create Migrations with Rails
Tags: ruby, rails
Published: 2022-10-26 17:05:51

The purpose of creating migrations is to alter or modify the data in our database. Using migration is more easier that writing SQL commands to create, add or remove tables, columns or entries to the database schema. For this blog I am going to show you how to create migrations using rake tasks.

Let's say we want to create a table to store users information for a web application.

- First, we will run this command:

 `$ rake db:create_migration NAME=create_users_table`

By running this command a new file will be generated in db/migrations that will be called **20221026_create_users_table**. The beginning of the files name is the timestamp of when the file was created so that the migrations can run in the correct order.

- Now, lets take a look at the new migration file that we just created:


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

Here we have a class called **CreateUsersTable** and it inherits from Active Records Migration module. Inside the class there is a method called **change**, this method is used to update the database schema.

- Next, inside the method **change** we will create a new table called "users" like this:


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

Here we add the **create_table** method and we passed the name of the table we are creating as a symbol and then we write a code block with the columns names and their types for our table **"users"**.

- Lastly, all we have to do is run the migrations by running this command in the console:

`$ rake db:migrate`

After running this command the database will be generated along side a new file called schema.rb which will contain the skeleton of our database.

Lets take a look:


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


If we want to update our database schema to add a column that we forgot to add in our first migration we will need to create a new migration file like this:

We create a new migration:

`$ rake db:create_migration NAME=add_column_to_users`



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

We then add a column:


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

Then we run the migration

`$ rake db:migrate`

And now we can see our new added column called address to our schema file.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6rxab6w6qhvmft56v8dy.png)
Machine Learning
Tags: machinelearning, javascript
Published: 2022-10-26 15:21:20

We can break down ML into four parts:

• Supervised machine learning
• Unsupervised machine learning
• Semi-supervised machine learning
• Reinforcement machine learning

**Supervised Machine Learning**

In this type of learning, the model is trained on the data for which we already have the correct labels or output. In short, we try to map the relationship between input data and output data in such a way that it can generalize well on unseen data as well. Supervised machine learning is the major category of machine learning that drives a lot of applications and value for businesses.
The training of the model takes place by comparing the actual output with the predicted output and then optimizing the function to reduce the total error between the actual and predicted.
This type of learning is predominantly used in cases where historical data is available and predictions need to be made on future data. The further categorization of supervised learning is based on types of labels being used for prediction.
If the nature of the output variable is numerical, it falls under regression, whereas if it is categorical, it is in the classification category.
Classification refers to the case when the output variable is a discrete value or categorical in nature. Classification comes in two types.

• Binary classification - Exactly two categories
• Multiclassification - More than two categories

Another property of supervised learning is that the model’s
performance can be evaluated.

**Unsupervised Learning**
 Unsupervised Learning is different from supervised learning in terms of the output labels. In unsupervised learning, we build the models on similar sort of data as of supervised learning except for the fact that this dataset does
not contain any label or outcomes column. Essentially, we apply the model on the data without any right answers. In unsupervised learning, the machine tries to find hidden patterns and useful signals in the data that can be later used for other applications. The main objective is to probe the data and come up with hidden patterns and a similarity structure within the dataset.
One of the use cases is to find patterns within the customer data and group the customers into different clusters. It can also identify those attributes that distinguish between any two groups. From a validation perspective, there is no measure of accuracy for unsupervised learning. The clustering done by person A can be totally different from that of person B based on the parameters used to build the model.

There are different types of unsupervised learning.

- K-means clustering
- Mapping of nearest neighbor
13/100: We're Almost There
Tags: webdev, beginners, react, api
Published: 2022-10-26 16:57:13

After a long hiatus, I'm back to share how we are almost at the finish line. I've done some last minute edits and I'm currently pushing it to github. I'm the most excited I've ever been in my life right now 🔥🔥

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jnh1vmd9f4xcmjoapmic.png)
I've been looking up webhosting as well and as well as where is the best free hosting platform to deploy everything. I'll probably deploy to @vercel today/tomorrow🔥😆🤪

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6mn1mpojuwlcughurj3.png)
Remove multiple item from an array using array in JavaScript.
Tags: javascript, multipleitemsremove, arrayfilter, removearrayitemsusingobj
Published: 2022-10-26 16:40:51

**Suppose your task is removed multiple items from an array using an array:**

**My Working procedure:**
1. At first remove Items Array make it object
2. Then filter array with conditionally where check is it available into that object or not.
3. If not available return items 

**Example: **

```
  // array which holds all values
  const array = [2, 4, 6, 3];

  // array of values that needs to be deleted
  const itemsToDeleteArr = [4, 6];

  // make an object to hold values from itemsToDeleteArr
  const itemsToDeleteSet = new Set(itemsToDeleteArr);

  // use filter() method
  // to filter only those elements
  // that need not to be deleted from the array
  const newArr = namesArr.filter((item) => {
    // return those elements not in the namesToDeleteSet
    return !itemsToDeleteSet.has(item);
  });

  console.log(newArr); // [2, 3]
```