teleren/devto huggingface dataset:
Fortify: How to disable password confirmation field (Jetstream)
Tags: laravel, fortify, jetstream
Published: 2021-02-16 11:51:55

---
title: Fortify: How to disable password confirmation field (Jetstream)
published: true
description: This article shows solution with explanation on "How to disable password confirmation field" in Fortify and Jetstream.
tags: laravel, fortify, jetstream
//cover_image: https://direct_url_to_image.jpg
---

![Jetstream "register" page screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2odwdmaoxxr6eg03ccjw.png) 

## Solution

Add this method to `app/Actions/Fortify/CreateNewUser.php` file.
```php
use Laravel\Fortify\Rules\Password;

// ...

protected function passwordRules()
{
    return ['required', 'string', new Password];
}
```

If you are using `Jetstream`, you should also remove these line in `resources/views/auth/register.blade.php`
```html
<div class="mt-4">
    <x-jet-label for="password_confirmation" value="{{ __('Confirm Password') }}" />
    <x-jet-input id="password_confirmation" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
</div>
```

## Explanation

Fortify has an action class which is responsible for user creation.
You can find it at `app/Actions/Fortify/CreateNewUser.php`.

You can see the line:
```php
'password' => $this->passwordRules(),
```

Under hood it uses `passwordRules` method from `PasswordValidationRules` trait. That method returns array with `confirmed` element:

```php
return ['required', 'string', new Password, 'confirmed'];
```

`confirmed` is a rule responsible for email confirmation, so we made our own `passwordRules` method which doesn't has `confirmed` rule.
How To Trigger a Scroll Event in Vue.js
Tags: vue, javascript, webdev
Published: 2021-02-16 11:45:26

### Animate your pages when an element is visible in the viewport with pure JavaScript

In my experience as a frontend developer, one of the things that I often develop are animations on the scrolling of the pages.
My approach to this type of development has changed over the years.

**At first**, I used the scroll event in JavaScript, but on the performance side, I realized that it was not a great way to trigger an event every time the user scrolled the page.

**Later** I decided to use external libraries like ScrollMagic, wow.js, AOS etc.
I was always happy with the result (even if they were limited to animate), but nowadays the performances of a website are very important, so I asked myself, do I really need external libraries to create simple effects on the scroll? They add weight to the bundle size.

What I use **today** when I have to run animations or trigger events on the scroll of the pages is the [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API).

Today we are going to develop a component in Vue.js, which will take care to trigger an event when it is visible in the viewport.

I have prepared a **demo** and you can have a look here 👇

{% codesandbox rywdj %}

Check out the full article on Medium 👇

{% medium https://medium.com/notonlycss/how-to-trigger-a-scroll-event-in-vue-js-with-the-intersectionobserver-b0a057b76bea %}

_Ps. In the comments you will find the friends link if you have finished your monthly view on Medium_  ✌️❤️
Paper digest of the week: The UNIX Operating System
Tags: computerscience, learning, linux
Published: 2021-02-16 11:40:32

---
title: Paper digest of the week: The UNIX Operating System
published: true
description: Digest of the computer science research papers I have read this week
tags: computerscience, learning, linux
cover_image: https://upload.wikimedia.org/wikipedia/commons/8/8f/Ken_Thompson_%28sitting%29_and_Dennis_Ritchie_at_PDP-11_%282876612463%29.jpg
---

Hello! This is the first digest of the research papers I've read and written a small summary about.

#### I will not be posting the digests here, this is just an announcement.

If you'd like to be notified every other week with new paper digests, you can [subscribe](https://andreybleme.substack.com/) to the substack newsletter.


### #1

The first is “The UNIX Time-Sharing System”, a paper published in 1974 by Dennis Ritchie and Ken Thompson presenting the main aspects of the UNIX Operating System with its file system, I/O operations, process synchronization, and the shell implementation.


https://andreybleme.com/2020-12-17/the-unix-time-sharing-sytem-summary

### #2

10 years later Dennis M. Ritchie publishes “The Evolution of the Unix Time-sharing System” describing the UNIX file system, the process-control mechanism, and the idea of pipelined commands. This paper also presents the social events that influenced the system’s evolution.

https://andreybleme.com/2020-12-29/the-evolution-unix-time-sharing-sytem-summary

---

An interesting fact that you might not be aware of, is that Dennis M. Ritchie is the guy who created the C programming language. In both these papers, you can see his contributions to UNIX, and the moment when the UNIX team decided to rewrite its assembler using Clang.

Don't forget to [subscribe](https://andreybleme.substack.com/) if you are interested in more digests like this one!
How to Install Plausible on Ubuntu 20.04
Tags: plausible, ubuntu, analytics, linux
Published: 2021-02-16 11:37:25

In this article, we'll explain how to install Plausible on Ubuntu 20.04.

Plausible Analytics a simple, open-source, lightweight and privacy-friendly web analytics alternative to Google Analytics. Plausible has a free as in beer self-hosted solution. No cookies and fully compliant with GDPR, CCPA and PECR. Made and hosted in the EU

This guide will explain how to install self-hosted solution on Ubuntu 20.04 server.

####Prerequisites:
A Ubuntu 20.04 installed <a href="https://www.hostnextra.com/dedicated-server.html">dedicated server</a> or <a href="https://www.hostnextra.com/vps-hosting.html">KVM VPS</a>.
A root user access or normal user with administrative privileges.
Docker installation on Ubuntu 20.04

Docker Compose installation on Ubuntu 20.04

<a href="https://www.hostnextra.com/kb/how-to-install-plausible-on-ubuntu-20-04/">Install Plausible on Ubuntu 20.04</a>
Open data storage: Share your data along with your code in a minute!
Tags: python, javascript, go, database
Published: 2021-02-16 11:28:36

This tutorial assumes that you already have an account in the Siodb DataHub. If not yet the case, you can create one [here](https://datahub.siodb.io/signup) for free.

## Step 1: Create your database

Go on the [DataHub](https://datahub.siodb.io)
![new_db](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7oz5673lni3a8dvbcrai.png)

## Step 2: Create your table

In the platform, create your table structure:

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jkolt4zxnp5gmptrf1ev.png)
 
## Step 3: Import the prepared snippet into your code

Choose your programming language and copy the prepared snippet in your code:

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ldvjdsr7vke62j1z8yh.png)
  
## Conclusion

In a few times, you will have your database ready to be spread - no more operations!

**PS 1**: Embed your database in your GitHub project along with your code:

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fzd1ce9tra43fh4gtpd5.png)

**PS 2:** Your project is open? Explain your project to crowd:

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ejkix3hg7vrb22002ft5.png)
About Us a Jexmon
Tags: jexmon, seo, webdev
Published: 2021-02-16 11:24:18

Jexmon was founded in 2019 as a Digital Marketing Agency. Its mission is to provide world-class SEO and internet marketing services to clients around the globe. We believe in "creating a synergy between technology, creativity and psychology". https://jexmon.org/about-us/ We are committed to excellence and embrace an open culture. We offer both full-service and freelance SEO, PPC, Social media optimization, pay-per-click, viral and contextual, video, and event marketing. Our SEO consultants also undertake custom web design and development.


Jexmon features an experienced team of leaders who are passionate about their product. Our company’s founders, Can Kilic, Karani Denizoglu started working on it as a startup in June 2019. In the months that followed, they received many valuable investor insights and were able to incorporate those into the product and service. They knew early on that they wanted to make a social networking platform for people and they wanted to build a community that shared a common business vision. In July, they launched their first product: Jexmon, an SEO and content network marketing platform.
Database Query Exception base table or view not faund:1146(Solution)
Published: 2021-02-16 11:15:10

Recently I was working with a project where I need to working with seed data for database dummy data. For this purpose, first I was creating a seed file by using below command:
php artisan make:seed MailboxFolderSeeder 

this command creates a php file with this specific class name. after that I modify this class as I need.
After modify everything I go to seed this file foe that I was run below command:

php artisan db:seed --class=MailboxFolderSeeder

after running this command my terminal show me an error like below screen shot.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqphzd0sec4xfbg1s1pr.PNG)
At this time, I was thinking what wrong actually I did. So, I read hole error alert and I got what was my mistake. Oh, it’s really funny I was missing database table correct spelling. The table name was mailbox_folders not mailbox_folder. So, I correct it and again run
 php artisan db:seed --class=MailboxFolderSeeder 
this command. And now it’s shows me success message like below screenshot
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oun2wzd96pj0nt2jf402.PNG)
.
Happy Coding.
osman forhad
Mobile & Web Application Developer💻
Laravel error count(): Parameter must an array or an object that implements Countable
Published: 2021-02-16 11:05:50

I am working with a project which was developed using Laravel 5.4 and xampp php 5.6 but now my development sever is xampp php 7.2
The problem is that when I am going to run this project it’s displayed me an error which is like below screen shot
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/05nyxm86x4xq3407raji.PNG)
So, in that case i am searching solution for this once finally I got the solution. Then I think it’s a php version related error.
So, I decide to place the block of code in the top of the controller file (which controller file the error is generate). the code I got place is like below:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rzpxopv0q74g8kbb21wj.PNG)
Now I am ready to reload the tab and I see the error is solved.
The block of code I can also place in the top of routes.php file. And this is another method.
So, for solve count(): Parameter must an array error in Laravel. We can put version_compare condition in routes file or controller where we want. And it will solve easily.
.
Happy Coding.
osman forhad
Mobile & Web Application Developer💻
Matthew Brannelly | Nonprofits Advertising Strategies
Tags: advertising, startegies, nonprofits
Published: 2021-02-16 10:58:44

According to Matthew Brannelly, strong advertising can do wonders for your fundraising success. Advertising allows you to get the word out about your campaigns and events, which raises more awareness of your cause and work.

Learn some excellent advertising strategies with Matthew Brannelly that are sure to help your organization gain more exposure. 

https://www.wattpad.com/1027090624-matthew-brannelly-strategies-for-nonprofits
Laravel 8 CRUD(Create, Retrieve, Update, Delete) operations app with database and pagination

Tags: crud
Published: 2021-02-16 10:51:21

Laravel 8 CRUD(Create, Retrieve, Update, Delete) operations app with database and pagination.
<a href="https://www.youtube.com/watch?v=9X5RZ9Zpg4s" target="_blank"><img src='https://i9.ytimg.com/vi/9X5RZ9Zpg4s/mqdefault.jpg?time=1613531100000&sqp=CNyPsoEG&rs=AOn4CLCRQWohlsbZN74M4majEdcLCR9hiw' /></a>
Laravel is model after the MVC (Model View Controller) architecture and revolves around CRUD (Create, Retrieve, Update, Delete) operations with database.
 Step 1: Install Laravel 8 
 Step 2: Database setup 
 Step 3: Create Migration 
 Step 4: Add Resource Route 
 Step 5: Add Controller and Model 
 Step 6: Add your views 
In this video can help you.Please click this link <a href="https://www.youtube.com/watch?v=9X5RZ9Zpg4s" target="_blank">Video</a>  .

Here is the code on my Github or My <a href="https://www.youtube.com/channel/UC80IlhuAl36zQdMSOyb3qgA" target="_blank">Youtube Channel</a>  . 
You can leave a comment, suggestion for improvement or corrections, don’t forget to follow me.
Hello Internet!
Tags: firstpost, introduction
Published: 2021-02-17 08:30:49

---
title: Hello Internet!
published: true
date: 2021-02-16 10:22:27 UTC
tags: firstpost,introduction
canonical_url: 
---

![Hello :)](https://cdn-images-1.medium.com/max/1024/0*sMooMDxoIM-Fhcyf)<figcaption>Photo by <a href="https://unsplash.com/@lemonvlad?utm_source=medium&amp;utm_medium=referral">Vladislav Klapin</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption>

This is me, first time writing a blog post. I’ve been reading blogs all my life but never really thought about doing it myself; until now.

### Intro:

Hi, I am [Arslan Ali][profile] and I welcome you to my Medium blog. I am a **software engineering student** at the Virtual University of Pakistan, which is a Federal Government University. This is currently the end of my fifth semester. I also have the **Cisco Networking Essentials** certification. Besides that, I am a fellow member of [**Jadu Fellowship Program**][jadu] for learning **Full Stack Web Development** using **MERN** tool-stack. I am also **teaching** computer science at a local academy, for the last 2 years.

Other than that, I am a tech enthusiast and really like learning about new technologies and how they impact the global community, overall. I always like and promote **open-source software**, and use them for my personal & professional work. I am **Linux** user myself, for the last 2–3 years and I really enjoy learning new stuff.

### About this blog:

This blog is all about technology. If you’re a tech enthusiast, like me, you would love reading posts and articles about exciting new technologies. I will also share my thoughts on different tech products and maybe some how-to guides on setting up different tech-related tools for your overall workflows.

**Bonus:** There will also be a weekly post/article sharing all my activities throughout the week.

[profile]: https://github.com/techyArsal/
[jadu]: https://jadujobs.com/
The ultimate guide to Yubikey on WSL2 [Part 3]
Tags: git, github, wsl, yubikey
Published: 2021-02-16 10:11:03

If you haven’t setup GPG on Yubikey or you cannot access YubiKey from within WSL. Please check previous parts ([1](https://dev.to/dzerycz/the-ultimate-guide-to-yubikey-on-wsl2-part-1-5aed), [2](https://dev.to/dzerycz/the-ultimate-guide-to-yubikey-on-wsl2-part-2-kli)) of this series.

**Disclaimer I:** This tutorial is written for WSL2 with Ubuntu. It may differ distro from distro.

**Disclaimer II:** I’m going to use Github in this tutorial, but process of setup for other major GIT servers (GitLab, Bitbucket, …) are pretty much the same.

Let’s continue where we left off in [part 2](https://dev.to/dzerycz/the-ultimate-guide-to-yubikey-on-wsl2-part-2-kli).

---

# Authenticate against Git server via GPG

In order to authenticate against GIT server we need a public ssh key. We connected WSL’s ssh agent in [the 2nd part of this tutorial](https://dev.to/dzerycz/the-ultimate-guide-to-yubikey-on-wsl2-part-2-kli) to GPG key over socket. So now we can use the public key from there.

Get SSH public key:

```bash
# WSL2
$ ssh-add -L
```

Take the output and paste it to *[GitHub settings -> SSH and GPG Keys](https://github.com/settings/keys)* -> **New SSH Key**.

When you now try to pull or push from remote GIT repository, there will show up a modal requesting your GPG PIN on your screen.

---

# Signing git commits with GPG

#### 1 - Configure Git by

```bash
# WSL2
git config --global user.signingkey YOUR_KEY_ID # In my case 1E9...
git config --global gpg.program gpg
git config --global commit.gpgsign true
```

#### 2 - Export Public Key

```bash
# WSL2
gpg --armor --export YOUR_KEY_ID # In my case 1E9...
```

#### 3 - Put this public GPG key to *[GitHub Setting -> SSH and GPG keys](https://github.com/settings/keys)* -> **New GPG Key**. In case you’re using GitLab, Bitbucket or other Git servers, there is a similar way to configure GPG Key.

Now when you create a new commit, there will show up a dialog requesting your PIN on your screen.

![Dialog requesting your GPG PIN](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3qvtn88l5za2whpjjntb.PNG)

In case you’re using verified Email address (in Github) for the GPG key and you configured the same address in Git `git config --global user.email`. You should be able to see Verified badge next to your commit.

![A Commit with Verified badge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c99fr83j21j39iqqdjsu.png)
Want to learn a new language and be rewarded?
Tags: apl, competition
Published: 2021-02-16 10:05:39

---
title: Want to learn a new language and be rewarded?
published: true
description: Enter the APL Problem Solving Competition!
tags: APL,Competition
//cover_image: https://direct_url_to_image.jpg
---

[Dyalog Ltd](https://dyalog.com/) invites you to use the APL programming language and your problem solving skills to compete for a total of [USD 6,500 in cash prizes](https://www.dyalogaplcompetition.com/?goto=welcome#prizes) and a paid trip to the [next Dyalog user meeting](https://www.dyalog.com/user-meetings/index.htm).

Would you like to be able to translate know-how into computer-based solutions quickly and efficiently? APL is an array-oriented programming language that will change the way you think about problems and data. It doesn't take long to learn enough to participate in the competition. Many [previous winners](https://www.dyalog.com/student-competition.htm#PreviousYears) of the competition learned APL after they heard about the competition – [APL is easy to learn](https://www.dyalogaplcompetition.com/?goto=welcome#learn) and fun to use, and this is your opportunity to profit from the experience!

*(Disclaimer: I work for Dyalog and worked on the implementation with a few colleagues)*
React: useEffect vs useLayoutEffect
Tags: react
Published: 2021-02-16 09:57:53

If you have just started working on React or have ever written a functional component, I am pretty sure that you may have come across useEffect hook and you may know that it is used to perform some side effects like data fetching, sending HTTP requests, etc. But in this post we will talk about another react hook called useLayoutEffect and see how it is different from useEffect hook.

##useLayoutEffect

To be honest there is not much difference between useEffect and useLayoutEffect the only noticable difference is that useLayoutEffect runs before browser paints DOM elements on the screen as you can see in the image below.  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46aktwgrx0gcti8lcev6.png)

_Credits- Donavon [Github](https://github.com/donavon/hook-flow)_

As you can see in the image useEffect runs after the UI is painted. The only case where useLayoutEffect is useful and should be preferred over useEffect is when you are directly making DOM changes. As DOM changes would be done before it is painted on the screen and thus making the experience smooth.

##Conclusion

One should prefer useEffect most of the time until and unless you are mutating DOM or want to do some performance measurements.

##Wrap Up!

Thank you for your time!! Let's connect to learn and grow together. [LinkedIn](https://www.linkedin.com/in/nikhil-tatpati-097184194/)
<a href="https://www.buymeacoffee.com/nikhiltatpati" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="300"></a>
We are taking the #100DaysOfCode Challenge!
Tags: 100daysofcode, motivation, challenge
Published: 2021-02-16 09:26:24

Hey everyone, this is just a quick announcement that **Me** & my brother [**Suraj**](https://dev.to/surajondev) have decided to take the **#100DaysofCode Challenge** where we will be coding and learning new things for next 100 Days.

**We will be posting about out journey & learnings on our Twitter handles: [@mindninjaX](https://twitter.com/mindninjaX) & [@surajondev](https://twitter.com/surajondev)**

So be sure to follow us there!

{% twitter 1360968860434722821%}

## What are we going to learn?

Well, this decision was quite hard for us since we both belong to different domains and have different interests but finally, we decided to learn the **Web Development** as there were several things in there we were unfamiliar with & also since it's one of the most in-demand skill. We will be starting from mere basics and then we will learn more advanced topics. In short, we are going to explore the entire development domain as much as we can within 100 Days.

## What plans do we have for you?

As previously mentioned we will be posting about our journey & learnings every day on Twitter.

But along with that we will also be journaling & tracking our journey in detail every day and at the end of every week, we will publish it here on Dev Community. This weekly blog post will consist of our personal experiences, snapshots of what we created, sources we are learning from & so much more. So be sure to follow both of us here on Dev Community as well to stay in the loop.

## Do we have any GitHub Repo for our #100DaysOfCode Challenge?

**Yes we do!** Both of us have created GitHub Repos where we will be sharing the projects, we create on daily basis. Also, feel free to follow us on GitHub as we keep working on big small side projects a lot! So you probably don't wanna miss them.

{% github mindninjaX/100DaysOfCode no-readme %}
{% github surajondev/100DaysOfCode no-readme %}

## Would you like to join us?

We are always ready to make new friends and learn with them. If you believe in yourself, or even if you don't (coz we believe in you), please join us on this journey. 

**TAKE THE #100DAYSOFCODE CHALLENGE!**

We always encourage you to join us and learn to code with us. 

If you have no plans for 100 Days, it's OK! You can plan as you go or if you would like to learn web development just like us then we already have plan ready for you! Simply DM us on Twitter!

## Follow us on Twitter

**Follow [Me](https://twitter.com/mindninjaX) & [Suraj](https://twitter.com/surajondev) on twitter to stay updated on your journey!**