teleren/devto huggingface dataset:
Laravel Run Artisan Command with Ui
Tags: laravel, webdev, artisan
Published: 2021-06-15 12:49:24

In section we will see how to run artisan command without terminal using GUI Package . 

[visit my website](https://larainfo.com/)

### Artisan GUI package

Simple but yet powerful library for running some artisan commands.

Requirements

Laravel 8.*

php ^7.3

Installation the package
```php 
composer require infureal/artisan-gui
```
After installation we need to publish vendor file 
```php
php artisan vendor:publish --provider="Infureal\Providers\GuiServiceProvider"
```
publish Vendor File

 After installation you can check url http://you-domain.com/~artisan if you in local you can check 

```php
http://localhost:8000/~artisan
```
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwiklfo2i6y058tik17y.png)

Next, you can see all artisan command available you can simply run or create tables,model,seeder,many thing let 

### Create Model 

in this example we will create Post model with all post model .controller, and factory ,seeder

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8l0n028p3tygzpa6awkd.png)
Next, you need to give model name and select the value in my case i will give all
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m1uj6d1se7qrvse30655.png)
As you can see it successfully create all thing .

[visit my website](https://larainfo.com/)
### Read also 
[Laravel each() Collection Method Example](https://larainfo.com/blogs/laravel-each-collection-method-example)
[3 way to install bootstrap 5 in laravel 8](https://larainfo.com/blogs/3-way-to-install-bootstrap-5-in-laravel-8)
[Laravel php artisan inspire command](https://larainfo.com/blogs/laravel-php-artisan-inspire-command-that-can-inspire-you)
[Laravel clear cache without using artisan command](https://larainfo.com/blogs/laravel-clear-cache-without-artisan)
Monthly Digest - May 2021
Tags: writing, productivity, top7, digest
Published: 2021-06-15 12:32:21

A little bit later than usual, but here it is! My hand-picked monthly digest for May. Four articles I read in May that I found to be funny, packed with information, or just inspirational. Let's go!

## Mental Health

Mental health in the tech world is something that is getting more attention lately. A great article that takes a look at [a personal story on burnout](https://dev.to/technoglot/you-re-on-fire-in-the-wrong-way-a-story-about-burnout-51dm). Amelia takes you along in her own burnout as well as tips to recognize a burnout earlier. A great bonus of the article is how you can help a friend in need.

> Say I enjoyed coding and learning new things. POOF! 💥 Gone. When burnout knocked on my door, all of that went to sh!t. I no longer cared about anything.
> 
> Amelia Vieira Rosado - You're on FIRE! 🔥...in the WRONG way

## Build your own X

There are people that learn by watching and there are people that learn by doing. If you learn by doing, you will like this list by Dani Stefanovic. [Build your own X](https://github.com/danistefanovic/build-your-own-x) has an extensive list of all kinds of tutorials on building your own version of something. From BitTorrent client to Docker to your own OS. it is all in there.


![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w5cfsmeha9a8n3enbgxm.jpg)
If you learn by doing this is a great resource!

## Targetted ads

An older article from 2014 that caught my attention is from Brian Swichkow. He explains how [he uses targeted ads to prank his roommate](https://ghostinfluence.com/the-ultimate-retaliation-pranking-my-roommate-with-targeted-facebook-ads/). While the read is funny, there is also a deeper message to think about. While this article is innocent at heart, it opens the window to mess with someone's life.

## Promotions

With review season coming up in most places, a well googled subject is how to get the promotion you want. In this article, Samantha Davies Gives you [8 reasons you control why you are not getting that promotion](https://sambambo.medium.com/8-reasons-within-your-control-youre-not-being-promoted-into-leadership-77f1a8863aac)! A great read with helpful insights from the manager's perspective.

> Behave like a leader and be consistent with it: provide vision, listen to concerns and resolve doubts. Be present.
> 
> Samantha Davies - 8 reasons (within your control) you’re not being promoted into leadership
Git: how to salir de esta
Tags: git, howto
Published: 2021-06-15 12:29:23

Cuando se introdujo Git en la primera empresa en lo que lo use fue más o menos así

> Git es un muy sencillo.
"git clone" para descargarte el proyecto, "git commit -a" para hacer un commit, "git branch" para crear una rama, "git checkout" para cambiarte de rama, "git pull" para actualizar la rama y "git push" para subir los cambios al repositorio.
Si tienes dudas mira el [cheat sheet](https://github.github.com/training-kit/downloads/es_ES/github-git-cheat-sheet.pdf)

Evidentemente no fue tan sencillo, y pronto empezaron a surgir los problemas ¿por qué no se ha añadido este archivo al commit? ¿qué es esto de los conflictos al actualizar la rama? ¿porque no puedo hacer push?
Y es normal, Git es una herramienta muy potente, con muchísimas funcionalidades. Cuesta cogerle el truco, y más cuando nos lanzamos a usarlo con una introducción superficial.

A lo largo de varios posts voy a contar situaciones que me he encontrado usando Git y como he aprendido a salir de ellas, ya que creo que hay multitud de artículos sobre cómo empezar con Git o sobre como hacer un flujo de trabajo, pero pocos sobre como salir del paso; y sí, está Stack Overflow, pero creo que puede ser útil agrupar algunas de las preguntas más comunes y explayarse un poco en la respuestas.
No, kubernetes no es matar moscas a cañonazos
Tags: kubernetes, microservicios
Published: 2021-06-15 12:21:58

No es la primera vez que encuentro por las redes sociales publicaciones que se mofan de desplegar pequeñas aplicaciones en kubernetes. Como broma, incluso a mí me parece graciosa. El problema es cuando un CTO, que tiene que aprobar la inversión, no entiende la broma y asocia kubernetes a algo costoso que sólo se pueden permitir grandes empresas. 

Incluso instalar un blog personal en kubernetes puede tener utilidad divulgativa y puede ser tan caro como pagar un droplet Docker básico e instalar kubernetes con un único nodo utilizando k0s. Entiendo que de esta forma no tenemos las principales ventajas que puede aportar un orquestador pero nos sirve para instruir.

Desarrollar una aplicación para kubernetes va más allá del postureo de usar lo último. Si lo único que quieres es añadir una pegatina en tu portátil quizá kubernetes no es para ti.

En base a mi experiencia diseñar una aplicación para kubernetes implica coger un problema y trocearlo en pequeños servicios simples, sencillos de implementar, mantener y actualizar. 

Pequeños trozos de código que trabajan de forma independiente, de forma que cada uno puede estar implementado en el lenguaje que más se adapte a los requerimientos del problema, o simplemente, el lenguaje que le resulte más cómodo a cada programador.

Pequeños servicios empaquetados, sin referencias externas ni requerimientos de software, reutilizables, que son sencillos de testear y distribuir.

Pequeños servicios aislados que incluso puedes implementar en tu sistema con versiones diferentes, algo muy útil para desplegar actualizaciones de forma progresiva para evitar dejar a todos tus clientes sin servicio.

Pequeños servicios escalables, incluso bajo demanda, de forma que puedes optimizar el uso de recursos en función de lo que necesites y el ahorro que esto supone.

Pequeños servicios instalados en un sistema que por defecto ya tiene resueltos aspectos muy comunes del ciclo de desarrollo de software, tanto de forma nativa como por contribuciones de terceros, como son:

* Escalabilidad.
* Seguridad.
* Almacenamiento.
* Tolerancia a fallos.
* Recopilación y centralización de logs.
* Monitorización.

Un clúster de tres nodos en Azure ronda los 200€ mensuales. Puede parecer una inversión importante pero si puedes permitírtelos para tu proyecto no lo veo una mala inversión. Para llegar a ser una gran empresa tienes que empezar a pensar como una empresa grande.
Day 27/30 : CSS Image Hover Effect | Show Button on Hover
Tags: html, css, webdev, tutorial
Published: 2021-06-15 12:06:46

Welcome to Day 27 of this [Challenge](https://dev.to/somanathgoudar/30dayschallenge-30-days-extreme-html-css-challenge-50k1). This is what I created today. 

**➜ Here is the Demo :**
![CSS Image Hover Effect](https://1.bp.blogspot.com/-r2F-7F5zFHs/YKokcwhU60I/AAAAAAAAAIk/H4gcDw0JV-k5ZE89mT91fzWZOAedcop0QCLcBGAsYHQ/s600/p27.gif)

**➜ Video Tutorial :**

{% youtube ZuFVxZdHKkE %}
**➜ Source Code :**
https://www.futurecodersweb.com/2021/06/image-hover-effects-using-html-and-css.html


**➜ Instagram Post and Reel for Day 27 :**
[See Post and Reel](https://www.instagram.com/future_coderss/)

------------------------------------------------------------------

Hey, If You don't know what is happening here. Don't Worry, I am doing a crazy challenge 😅. Read More about it from the post below.

{% link https://dev.to/somanathgoudar/30dayschallenge-30-days-extreme-html-css-challenge-50k1 %}

**Support Me :**
👉 Buy me a Coffee: https://www.buymeacoffee.com/somanathgoudar
👉 [Follow Me on Instagram](https://www.instagram.com/somanath_goudar/)
👉 [Follow Future Coders on Instagram](https://www.instagram.com/future_coderss/)
👉 [Subscribe to My Main Channel](https://www.youtube.com/channel/UC_nTrhTr5fnBGjOxnkPUmmA)
👉 [Subscribe to Channel Created for this Challenge](https://www.youtube.com/channel/UCzGSyMOf2jPt1MkNBB3SJ3g)

------------------------------------------------------------------
☑️ SOC 2 Compliance and Certification: What SaaS Businesses Need to Know
Tags: security, compliance, saas
Published: 2021-06-15 12:00:01

#### 📓 SOC 2 is a technical security audit report from the AICPA that evaluates a tech service business’s cloud security controls.

In the last two years alone, cloud-based cyberattacks[ more than doubled](https://www.trustwave.com/en-us/resources/library/documents/2020-trustwave-global-security-report/) — even though SaaS spending[ grew just 18%](https://www.statista.com/study/31317/software-as-a-service-statista-dossier/). 

While these numbers are merely a correlation from a statistical standpoint, it does indicate that if your business stores customer data in the cloud, it’s more important than ever for your business to take measures to secure that data. Especially given SaaS spending is[ expected to increase an additional 36%](https://www.statista.com/study/31317/software-as-a-service-statista-dossier/) between 2020 and 2022. 

A SOC 2 certification from the AICPA is a foundational step that will help every service provider reduce security risks. Below is a guide to SOC 2 compliance requirements and certification.

## What Is SOC 2?

SOC 2 is an independent audit report that evaluates the security controls a tech service business uses to protect the data they process in the cloud. Possession of a SOC 2 report is considered table stakes in the SaaS industry, as the answers to most security questions a customer may have about their business’s security posture can usually be pulled from this report.

### SOC 1 vs. SOC 2 vs. SOC 3

“SOC” stands for “System and Organization Controls” and was created by the American Institute of Certified Public Accountants (AICPA). SOC 2 is one of three SOC reports, each with different purposes and/or levels of transparency:

1. **SOC 1.** Used to audit internal controls relevant to a customer’s financial systems. Report usage is “restricted,” meaning its use is limited to auditors, the service organization, and authorized users.
2. **SOC 2.** Used to audit the overall management of customer data. Report usage is also “restricted” the same way SOC 1 is.
3. **SOC 3.** The same as SOC 2, but the report is simplified and publicly available to increase transparency.

![What Is SOC 2](https://images.ctfassets.net/23aumh6u8s0i/5LsphelbdnIZtLBd7NOrZQ/3e05f625deb2ff6588f9bffbf2dc3449/sep_compliance_02.jpg)

[Read more...](https://auth0.com/blog/soc-2-compliance-and-certification-what-saas-businesses-need-to-know/?utm_source=facebookgroup&utm_medium=sc&utm_campaign=compliance)
React Project: Newsletter Signup form (using Formik, Netlify Functions & MailChimp)
Tags: react, netlify, mailchimp
Published: 2021-06-15 11:53:34

---
title: React Project: Newsletter Signup form (using Formik, Netlify Functions & MailChimp)
published: true
description: In this tutorial we'll be building a Newsletter signup form component in React using the React Formik library and a backend service based on a Netlify function and the MailChimp API.
tags: react, netlify, mailchimp
cover_image: https://img.youtube.com/vi/mAfR27lUKNQ/maxresdefault.jpg
---

[Watch the full tutorial here -->](https://www.youtube.com/watch?v=mAfR27lUKNQ)

So in this React tutorial we'll be taking a look at the Formik forms library for React and seeing how you can use it to create and manage forms quickly and easily within your React projects.

{% youtube mAfR27lUKNQ %}


We'll start off by getting the Formik library setup and then creating some simple inputs that the user can enter data into and we'll see how Formik handles all of the state management and form submission for us automatically.

Once we've got a basic form setup with Formik, we'll add a custom React label component and then wire up some validation to the form.  We'll do this using the Yup library with our React form and you'll see it's really simple to create a Yup schema and then apply this to the Formik form. In fact, Yup and Formik work really well together.

With our validation in place we'll finish up the tutorial by creating a Netlify function to handle our form submission which will essentially pass this data to the email service provider MailChimp.  We'll use the MailChimp API with React to submit the user's details they enter into the form to the MailChimp service.  I'll take you through how to find your own MailChimp list ID and also MailChimp API token and successfully add contacts.

So I hope you enjoy this React Project tutorial from Junior Developer Central!
THE CAT COMMAND IN LINUX
Tags: linux, devops
Published: 2021-06-15 11:48:41

Cat(concatenate) command reads data from the file and gives their content as output.

####It helps us to create, view, concatenate files.####

Here are some of the use cases of the command :

#### 1. Creating a new file:

```
$ cat >newfile

```
Creates a new file called newfile

#### 2. Reading a file:
You may have run into this while checking your os type.

```
$ cat /etc/os-release
```
On my Os this outputs:

```
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

```

#### 3. Copy the contents of one file to another file. 

```
$cat [filename-whose-contents-is-to-be-copied] > [destination-filename]

```
#### 4.  View multiple files

```
$ cat file1 file2

```
Outputs contents in file1 and file2 .

#### 5. Append the contents of one file to the end of another file

```
$cat file1 >> file2

```
Will append contents of file1 to file 2

#### 6. Cat command to open dashed files. 

```
$cat -- "-dashfile"

```
Will display the content of -dashfile

#### 7. Cat command if the file has a lot of content and can’t fit in the terminal. 

```
$cat "filename" | more
```

#### 8. Merge the contents of multiple files
```
$cat "filename1" "filename2" "filename3" > "merged_filename"

```
Will merge the contents of file in respective order and will insert that content in "merged_filename".

#### 9.  Display the content of all html files in the folder.

```
$cat *.html
```
Will show the content of all html files present in the folder.

#### 10. Write in an already existing file
```
$cat >> geeks.txt
The newly added text.
```
Will append the text "The newly added text." to the end of the file.
Daily Coding Problem: Problem #1 [Easy]
Tags: python, programming, algorithms, productivity
Published: 2021-06-15 11:38:27

For quite some time I found my time procrastinating . Until a few days ago I stumbled upon the Daily Coding Problem (DCP) and decided to give it a shot.
The code is in python.

__Problem #1__
Given a list of numbers and a number k, return whether any two numbers from the list add up to k.

For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.

Bonus: Can you do this in one pass?


__My solution__

```
def two_numbers_sums_to_k(A:list,k:int) -> bool:
    prev=A[0]
    found=False
    for i in range(1,len(A)):
        if prev+A[i]>k:
            prev=min(prev,A[i])
        elif prev+A[i]<k:
            prev=max(prev,A[i])
        else:
            found=True
            break
            
    return found
array=[10, 15, 3, 7]
k=17
print(two_numbers_sums_to_k(array,k))      
```
Help! Custom Email Validation - Using Wordpress and Elementor🤺🤺🤺
Tags: wordpress, javascript, php
Published: 2021-06-15 11:31:20

Hello! 

Im looking to validate business emails by filtering common email ids such as @yahoo.com @gmail.com etc.. Im looking to do this with JS as shown in the image. ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1fayjmpokliech9z9zxc.jpg)

Been breaking my head over this for over 2 months because there are no plugins that support this functionality(dynamicoo, contact 7 etc)

I have tried with contact 7, but it still doesnt filter outlook and yahoo. Here is the code i have used:

function blocked_email_domain($email) {
$blocked = array("@gmail.com", "@hotmail.com", "@yahoo.com", "@yahoo.in","@msn.com", "@live.com", "@outlook.com", "@microsoft.com", "@zoho.com", "@rediff.com");
$email = strstr($email, '@');
if(in_array($email, $blocked))
    return false;
else
    return true;
}

    function custom_email_validation_filter($result, $tag) {
    $type = $tag['type'];
    $name = $tag['name'];
    if($name == 'your-email') { // Only apply to fields with the form field name of "your-email"
    $the_value = $_POST[$name];
    if(!blocked_email_domain($the_value)){
    $result['valid'] = false;
    $result->invalidate( $tag, 'You need to provide an email address that isn\'t hosted by a free provider.<br />Please contact us directly if this isn\'t possible.');

    };
    };
    return $result;
    }
    add_filter('wpcf7_validate_email','custom_email_validation_filter', 10, 2); // Email field
    add_filter('wpcf7_validate_email*', 'custom_email_validation_filter', 10, 2); // Required Email field

Now as a last solution im trying to insert JQuery into elementor! Need help!

TIA
MBOX에서 EML 파일 형식으로 이메일을 마이그레이션하고 내보내는 방법은 무엇입니까?
Published: 2021-06-15 11:28:26

MBOX에서 EML 로의 변환 소프트웨어는 연결이있는 EML 봉투에 MBOX 문자 방울을 변경합니다. 또한 MBOX에서 EML (그룹 이동 또는 홈 재배치) 로의 변환을위한 이중 모드 옵션을 제공합니다. 이 장치는 전체 MBOX 문서를 EML Letter Drop으로 동시에 보내는 데 거의 노력하지 않습니다. 또한 앱은 변경 후 보드에서 랩 어라운드 명령 체인을 유지합니다. 이 제품은 오류없이 간단하고 MBOX 정보 기록을 빠르게 이동하는 장치를 사용하기 쉽습니다.<b><a href="https://www.gaintools.com/mbox/eml/">MBOX에서 EML로 변환 도구</a></b>

<b>MBOX에서 EML 로의 변환 도구를 선택해야하는 이유는 무엇입니까?</b>

MBOX에서 EML 로의 변환기는 EML 레코드 디자인으로의 MBOX 메시지 교환 경로를 더욱 발전시키는 많은 인상적인 하이라이트를 수반합니다. 여기에 이러한 하이라이트의 일부를 기록합니다.

<b>고급 필터를 사용한 이중 검색 제공</b>

이 응용 프로그램은 MBOX 문서를 EML 레이아웃으로 변경합니다. 빠른 검색 작업을 통해 MBOX 문서에서 미묘한 부분을 쉽게 찾을 수 있습니다. 또한 별도의 메시지를 검색하는 최첨단 채널의 대안입니다. 제품은 시간, 날짜 및 이메일 헤더 등과 같은 일부 채널을 수반합니다.

<b>MBOX 데이터의 전체 미리보기보기</b>

제품에는 메시지 감시자가 통합되어 있습니다. MBOX 로그를 여는 순간 장치는 메시지, 연락처, 일정, 메모의 전체보기를 제공하며 이는 시작에 불과합니다.

<b>컴팩트 뷰 옵션 제공</b>

제품 인터페이스에서 프레임 구성을 숨기려면 컴팩트보기 대안을 사용하십시오. 이 도구는 고객 주최자 (예 : MBOX 문서가 포함 된 주최자) 만 표시합니다. 모든 초보자가 MBOX 메시지를 완벽한 장소에 저장하기 위해 이해할 수있는 정당한 구성 요소가 있습니다. MBOX to EML 변환기는 빠르고 간단하며 유리한 유틸리티입니다.

<b>첨부 파일이있는 MBOX를 EML로 변환</b>

이 MBOX 로그 EML 변환 유틸리티의 도움으로 이상적인 영역에 이메일 연결을 저장할 수 있습니다. 이 항목은 연결 만 공유 할 수 있다는 점에서 일부 사람들에게 유용합니다.

<b>사용하기 쉬운 기본 인터페이스</b>

MBOX를 EML 레코드로 교환하는 응용 프로그램은 매우 간단한 인터페이스를 제공합니다. 사실 전문적인 정보가없는 사람도 쉽게 사용할 수 있습니다.

<b>MBOX에서 EML로 변환의 초점은?</b>

1. EML의 디자인은 완전히 실질적인 기록 확장입니다.

2. .eml 레지스트리의 디자인은 Linux와 마찬가지로 Outlook, Thunderbird 등과 같은 주요 Windows 이메일 응용 프로그램을 활용합니다.

3. EML 문서는 개인 및 전문가 모두 사용할 수있는 일반화 된 구성입니다.

.eml 구성은 메시지를 포함하여 다양한 품질 또는 구성 요소를 저장할 수 있습니다.

<b>마무리 노트</b>

MBOX에서 EML로 변환 도구를 사용하면 각 MBOX 봉투의 10 개 메시지를 EML 문서 레이아웃으로 교환 할 수 있습니다. 이는 전문가 버전으로 전환하기 전에 완전한 규정 준수에 유용합니다. 고객은 라이선스 키를 구매하기 전에 제품 하이라이트를 손쉽게 테스트하여 MBOX에서 EML로 전환 할 수 있습니다.
How to make coding a habit in 5 actionable steps
Tags: beginners, programming, webdev, codenewbie
Published: 2021-06-15 11:05:41

_If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on [Twitter](https://twitter.com/VladPasca5)  for more information about web development and how to improve as a developer. This article was first published on my [Blog](https://vladpasca.hashnode.dev/)_

### 1. Be consistent

This is self-explanatory because you can't create a habit without being consistent

What I recommend doing is trying your best to code for 30 minutes/day at least

No more, for a few months (1-2)

Just do something you enjoy (build a project for example)

### 2. Document your journey online

This is the thing that helped me the most of form the coding habit

This will keep you accountable to share something every day and that means that you need to code for a bit every day

Don't overthink this, just start

### 3. Do something you enjoy

To be fair this is a shortcut

Once I started working on my coding projects (which is something I enjoy) I started to form this habit

It become something normal to code every day because I loved doing that

### 4. Join a community of beginner developers

If you don't want to document your journey online, you can try this

Just join a private community of developers on Reddit, Facebook, or anywhere else and share your journey

Talk with others about what you're learning and all that

### 5. Force yourself to do it

You might need to code first thing in the morning

Or after you get back from school/work

That's ok, I was there too

Just find sometime during the day when you can code for a bit so you can finally form that habit and make everything easier

### TL;DR

1. Be consistent
2. Document your journey online
3. Do something you enjoy
4. Join a community of beginner developers
5. Force yourself to do it

If you liked this thread, make sure that you follow me on Twitter @VladPasca5 for more threads like this one

### The end

_I hope found this useful and if you did please let me know. If you have any question feel free to DM me on  [Twitter](https://twitter.com/VladPasca5) ._