teleren/devto huggingface dataset:
CKS Challenge 1
Tags: cks, kubernetes
Published: 2023-03-08 20:36:31

Glad that you have reached that far (`vi restrictinbound.yaml`) from our [YouTube channel](https://youtu.be/n0QNSJobZ_I) and now set this metada:

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

to `app: alpha-xyz`
Then apply it

```
k apply -f restrict-inbound.yaml
```
k get networkpolicies.networking.k8s.io
Delete the busybox pod:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ucbv9iy71kdhtrffbhir.png)
`k delete po busybox --force`
Now you might see this while pressing the check button.

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

Now copy this part from the apparmor page.

```
annotations:
    # Tell Kubernetes to apply the AppArmor profile "k8s-apparmor-example-deny-write".
    # Note that this is ignored if the Kubernetes node is not running version 1.4 or greater.
    container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-write
```

Then go to here:
 `k edit deployments.apps alpha-xyz`

after app: alpha-xyz, paste this part.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fs3lcnp2fohorp4ntt3t.png)
Then annotate it properly and then use nginx image here.

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

Moreover, you have to right the annotations and then use custom-nginx image.

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

We are done!

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

<img src="https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif">
Principal Technologies for the Backend (according to chatGPT)
Published: 2023-03-08 20:29:15

There are several programming languages used for the development of backend 🖤 applications, some of the main ones are:

Java ☕ – It is one of the most popular and widely used programming languages for backend application development. It is known for its ability to scale and for its large number of available libraries and frameworks.

Python 🐍 – It is a high-level programming language that is widely used in building backend applications. It is known for its simple syntax and ease of use.

PHP 🤖: is a programming language used to create web applications. It is known for its ability to interact with databases and for its wide availability of frameworks.

Ruby 💎: is a programming language used in the development of web applications. It is known for its ease of use and for its Ruby on Rails framework.

JavaScript 💛: It is a programming language widely used in building frontend applications, but it can also be used in developing backend applications. It is known for its ability to work with web technologies such as HTML, CSS, and Ajax.

**## STADISTICS**

Regarding statistics, according to the TIOBE Index of March 2023, the most used programming languages for backend are:
Java
python
PHP
C#
javascript
Ruby
swift
go
Kotlin
typescript

Also, according to the 2021 Stack Overflow survey, the most used programming languages in the backend are:
javascript
Java
python
PHP
C#
typescript
Ruby
Kotlin
swift
go

I hope this information has been useful to you ❤️❤️❤️.
A Laravel Package to Protect Routes With a PIN Code
Tags: laravelvalidation, pincode, laravelpackage, laravel
Published: 2023-03-08 20:24:22

---
title: A Laravel Package to Protect Routes With a PIN Code
published: true
description: Require Pin is a Laravel package for pin confirmation and validation before processing requests to a specified route.
tags: laravelvalidation, pincode, laravelpackage, laravel
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1aaoinsya2mrvgfi6509.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-03-08 20:06 +0000
---
Have you ever needed to protect certain routes or pages of your Laravel app with a secure PIN code? Laravel's Require Pin package can help you with that.

This package provides a middleware that intercepts the routes or a group of routes requiring a PIN. When a user tries to access a protected route, they will be prompted to enter their PIN code. Once the user enters a valid PIN, they will be redirected and allowed access to the protected route.

```
Route::get('/see-my-paycheck', MyController::class)
    ->middleware('require.pin');
```

One of the great features of this package is that it also provides an API route that you can use to validate and manage a user's PIN. This makes it easy to integrate the Require Pin package with other parts of your Laravel app.


When a user tries to visit **/see-my-paycheck** in the above example, this package will prompt the user to enter their PIN code before taking them to the page. This package also provides an API route you can use to validate and manage a user's PIN.

The basic idea of how this package works within your Laravel app is as follows:

* Add the require.pin middleware to routes or a group of routes requiring a pin.
* The middleware will intercept those routes.
* The package generates a temporary URL to authenticate with their PIN.
* Once the user enters their valid PIN, it will redirect and allow them access to the PIN-protected route.

> View the [Source Code](https://github.com/ikechukwukalu/requirepin) on GitHub
FREE AWS Cloud Project Bootcamp Week 3 Part 1
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-03-08 20:19:03

[67/100] #100DaysOfCloud Today, I completed a part of the Week 3 of the FREE AWS Cloud Project Bootcamp by Andrew Brown.

Here's what I completed:
- Watched the Week 3 Live-Stream Video.
- Setup a Cognito User Pool.
- Implement Custom Signin Page.
- Implemented the error message part when incorrect login details are provided.

By doing this, I was able to create a custom sign in page and a cognito user pool. One can only login with the credentials of a user created in Cognito and anything else will show an error message.

[GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/067/Readme.md)

You can watch the Bootcamp through this YouTube playlist : [FREE AWS Cloud Project Bootcamp playlist](https://youtube.com/playlist?list=PLBfufR7vyJJ7k25byhRXJldB5AiwgNnWv)
Security Guards In Los Angeles
Published: 2023-03-08 20:12:40

[Security guards in Los Angeles](https://ausguards.com/) play a vital role in maintaining safety and security across the city. These trained professionals are responsible for protecting property, deterring criminal activity, and responding to emergencies. With their expertise in security protocols and procedures, security guards can provide a sense of comfort and assurance to individuals, businesses, and communities alike.

Los Angeles is a diverse and dynamic city, with unique security challenges that require the expertise of experienced security guards. From high-end retail stores and hotels to industrial warehouses and construction sites, security guards in Los Angeles are equipped to handle a wide range of security needs.

Whether it's providing access control, conducting patrols, or responding to incidents, security guards in Los Angeles are dedicated to keeping their clients safe and secure. By working closely with law enforcement and utilizing the latest security technology, these professionals play a crucial role in maintaining a safe and thriving community.
Texto Puro
Tags: html
Published: 2023-03-08 20:06:30

Estou cursando o AluraFlix , e este é o meu primeiro exercício em html.

Segue o print do Resultado e o codigo fonte logo abaixo.



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



#<!DOCTYPE html> 
#<meta charset="latim">
#<script>
#    alert("Bem vindo ao site Texto Puro")
#</script>
#<h1>Texto Puro </h1>
#A convenção que usaremos para criar nosso programa é adotar letras minúsculas e não usar acentos e, 
#<br>claro, usar a extensão .html.
#<br><br>

#Outro ponto importante é que toda alteração feita no arquivo #.html deve ser salva e, além disso, 
#<br>o navegador precisa recarregar a página para que a última #alteração do arquivo entre em vigor.

#<br>
#<br><h3>Mais exemplos de formatação html no site <a #href="http://www.clem.ufba.br/tuts/html/c05.htm">aqui</a> </h3>
List of Cyberattacks 2022
Tags: productivity, news, security, cybersecurity
Published: 2023-03-08 19:41:13

**2022** was a tumultuous year for the cybersecurity industry as hackers conducted multiple successful attacks on well-known companies worldwide, resulting in data breaches and significant losses. To combat the constantly shifting nature of cyber-attacks, organizations must keep up with the latest cybersecurity developments and technology.

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

In April, hackers associated with Iran launched a cyberattack on the US Treasury Department, resulting in a severe security breach and the loss of private information. This attack was notable because it was the first of its kind in the US targeting a well-known institution. As a result of this incident, organizations around the world were prompted to strengthen their cybersecurity protocols.

In May, a group of hackers known as Tick successfully breached the systems of a Japanese pharmaceutical company and demanded a ransom in exchange for the stolen data. This attack was significant because it showcased the sophistication of modern cyber-attacks and emphasized the importance of having robust security measures in place.

![CyberAttacks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68ho1amvf8vgdhp78g7a.jpg)

In July, a group of hackers known as Fancy Bear infiltrated the systems of the US Department of Health and Human Services, resulting in a significant data breach. The incident was noteworthy because it demonstrated that even the most secure organizations can be vulnerable to cyber-attacks from well-organized and determined hackers.

In October, hackers believed to be from China targeted the US Department of Justice in a cyberattack, which was the final serious attack of the year. This attack compromised vital information and jeopardized the department's security. This incident is significant because it highlighted the widespread nature of contemporary cyber-attacks and the necessity for businesses to approach cybersecurity preventatively.

These successful attacks on major organizations in 2022 demonstrate the need for them to enhance their security measures and policies. Organizations must invest in advanced technologies such as artificial intelligence and machine learning, as well as implement effective cybersecurity policies and procedures to identify and respond to any potential cyber threats. This can effectively safeguard business data and systems, thereby avoiding a lot of successful cyber-attacks.

![CyberAttacks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7qb0hm6lwjzwmj652scs.jpg)

The successful intrusions of 2022 have revolutionized the cybersecurity landscape overall, emphasizing the need for businesses to handle cybersecurity in a proactive manner. By investing in cutting-edge technologies, putting in place strong cybersecurity policies, and adopting a proactive security posture, organizations can better safeguard their data and systems and fend off successful cyber-attacks.
From VP of Digital/Social Content and Strategy to Coding Bootcamp: My Journey to Expand My Skillset
Tags: beginners, career
Published: 2023-03-08 19:40:08

As a seasoned marketing professional with years of experience in digital and social media, I have had the privilege of developing insight-backed social and digital marketing strategies that were anchored by client goals. My dedication to this mechanism called social/digital media has spanned the last 16 years of my life, during which time I never once applied my collegiate knowledge as a math and computer scientist.

Although I can look at data and "deductive reason" my way into the solution, I never once sat down and coded. However, I am determined to use that knowledge, or whatever's left of it, to expand my portfolio of skills even further. So here I am, 36 years young and signed up for a University of Washington Coding Bootcamp that will probably kick my ass, but I have never been one to avoid a beatdown.

My experience in marketing has taught me the importance of constantly adapting and evolving to stay ahead of the competition. The world of digital and social media is constantly changing, and the ability to understand and utilize the latest technologies, insights, and platforms is critical to success.

By re-learning to code,  I will be able to approach marketing challenges with a new perspective and an enhanced understanding of the underlying technologies that power digital marketing.

I understand that this journey will be challenging, and that I will face many obstacles along the way. However, I am confident that my experience in marketing, combined with my background in math and computer science, will provide me with the skills and knowledge I need to succeed.

I am excited to start this new chapter in my career and to expand my skill set in this constantly evolving field. I encourage all professionals to consider the benefits of learning to code, and to never stop pursuing new knowledge and skills. Let the games begin! 

Follow along, ask questions, use me as a resource if you need. I'm here to help, learn, and create bonds with a community I've been away from for some time.

-DJ
How to work javascript file in flutter web ?
Tags: flutter, flutterdev, javascript, flutterweb
Published: 2023-03-08 19:39:27

One of the capabilities of using flutter for development is creating pwa output. Can we change the final web output (html file) with the commands we wrote in dart? Can we add a tag (like meta or p, …) to the html file with dart commands? You can see how to do this in the following article.

To start, use the default project (counter app) in flutter!

At the top of the main file we add this line:

```
import 'dart: js' as dartJsFile;

```
In setState from the _incrementCounter method we add this line:

```
dartJsFile.context.callMethod ('insertTag');

```
Now we need to write the JavaScript file. To do this, we need to write the following command in the app terminal:

```
flutter create.

```
Add your JavaScript file to the project as shown below:


![In the build> web folder ..](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d5bpr5os6mzmlnwog9qu.png)

In my example , I have to write a method called (insertTag) in my js file that adds new tags inside a tag called (seo). In the file (app .js) I created, I write the method (insertTag):

```
function insertTag () {
var tag = document.createElement ("meta");
tag.setAttribute ("name", "custom name");
tag.setAttribute ("content", "custom content");
var element = document.getElementById ("seo");
element.appendChild (tag);
}
```
And in the head of the index .html file, I call it.

```
<head> <script src = "app.js"> </script> </head>
```
And inside the body, I define a tag called seo.

```
<body> <div id = "seo"> </div>

```
Now, after performing deploy operations on the server or localhost, you can add a new tag to your file (index.html) each time you press the (+) button.


![now worked javascript file in flutter web](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osmdliwlvbyq04w58igx.png)
The workflow with Git
Tags: webdev, git, opensource, beginners
Published: 2023-03-08 19:25:44

Git is a control version system created by the creator of the Linux Kernel (Linux Tolvard), it allows to users working within a copy of a local repository, make changes and then sync them with a remote central repository. Also it offers features as branching and merging, what give to the developers the advatanges to work in deferents versions from a project simultaneously and combine the changes ordered and controlled.

Through the time collaborating with Open Source projects I've can see that over all that to work in a well structured way, Git save a lot of headaches and allow that the collaborations from others programmers as well as the project evolution be the more efficiently possible.

Through my experience developing and collaboration in projects, I've can collect this tips.

- **Update your local copy with the current in the remote repository.**

A git pull is an operation that updated the local version of a repository including the changes that has been made in the remote source (repository) since last time it was synced.

That is to say, if somebody has make changes in the remote repository and it has been uploaded, the way you can have that changes in your local version is neccesary to use the git pull for sync your version with the remote one.

This way, every team member have the same code version and they can work in the project avoiding conflicts with others one.

- **Make small commits.**

Make small commit is a good practice in Git due to several reasons, in which the most outstanding (in my opinion) is.

Facilitate the revision and comprehension from the repository history. When doing small commits, every of them represent an specific and concrete change in the code. This way is easier understand what changes were make, when, who made it and why.

- **Make commits with well descriptive titles.**

Within the advantages from this good practice we can mention: Help to quickly understand the content into the commit, To allow to realize efficient searching in the repository historial, To help to maintain a good documentation and facilitate the collaboration in the team.

These and others reasons (that you sure know to work with Git) are part of the advantage this standard offers.

To see more of this content suscribe to my blog in this [link](https://phillipcabrera.com/)
The answer is 42
Tags: ruby, planning, rubygems, bundler
Published: 2023-03-08 19:23:36

I have been working on an internal project recently to plot the gem interdependencies of a project that has very limited version requirements. 

```ruby
gem 'somegem'
gem 'somegem-with-some-extended-feature'
gem 'someothergem'
gem 'somegem-with-something-thats-broken-no-really'
```

I can plot the interdependencies of this project, I can take a look at the Gemfile.lock and at a given point in time (at the point it was last bundled) that the project had those dependencies. This includes the sub-dependencies (which as we all know can be a laundry list). But this is a goal post that changes all the time. If I want to plot over time what a projects dependencies are it needs to be against something static. But in an ecosystem where software is being updated constantly what are those checkpoints? Gemfile.lock?

If I am constantly bundling in development the Gemfile.lock is always changing. If I commit my repo without a Gemfile.lock at all, the state of the dependencies is highly unpredictable. So for a project for sanity we lock it down and commit our Gemfile.lock so we know what we are deploying and it's predictable and can be deployed with a degree of confidence in what we are deploying in terms of bundled gems.

But suppose this was a third-party gem that we are building. There is no Gemfile.lock or not one we should be committing. We have a fluid set of dependencies, the inter-dependencies can change all the time with every release of our above gems and their own interdependencies. Sure, when our gem is embedded in a project, that project has a Gemfile.lock, etc each project should be have the same versioned gem dependencies no matter how many instances of that project are deployed. We can capture the state of the dependencies on project by graphing each Gemfile.lock over time.

But when it comes to gems that don't have a Gemfile.lock this is forever changing and there is no fixed checkpoint at all. You can't rely on a say a semantic version update because any unlocked dependencies still change over time.

This begs the question, what exactly am I trying to graph or even prove. At the very least it proves that the we're trying to graph and understand our ecosystem and we can't do that without bringing it into some kind of order first.

I did learn today that you can discretely update a single gem without updating it's dependencies. I wonder if we can limit this conservative approach to a group of gems from a single source.

```
bundle update --conservative m3ta
```

My project started as a fairly simple objective but that objective has just raised more questions than I think it can answer without further clarification or acceptance that the result will be flawed. So I can conclude the answer is 42.
Noobe Programmer - Where to Start
Published: 2023-03-08 17:54:35

As a beginner in programming, choosing the right programming language to learn can be a daunting task. With so many programming languages to choose from, it can be challenging to determine which one to start with. In this blog post, we will discuss the best programming languages for beginners.

**Python**
Python is an excellent language for beginners because of its simplicity and ease of use. It has a clear syntax that is easy to read and understand, making it an ideal language for those who are just starting. Python is also widely used in industries such as data science, machine learning, and artificial intelligence, making it a versatile language to learn.

Additionally, Python has an extensive library of modules that make it easy to accomplish complex tasks with minimal coding. It also has a large online community, making it easy to find resources and help when you need it.

**JavaScript
**JavaScript is a programming language used for creating interactive web pages. It is an excellent language for beginners because it is easy to learn and has a lot of resources available. JavaScript is also a versatile language, as it can be used both on the front-end and back-end of web development.

JavaScript is essential for web development, so learning it is a great way to enter the field. Many web development frameworks, such as React and Angular, are built using JavaScript.

**Java
**Java is another popular programming language for beginners. It is an object-oriented language that is used to build a wide range of applications, from desktop applications to mobile apps. Java is easy to read and has a vast community of developers, making it easy to find help and resources.

Java is also a popular language in the business world, making it a valuable skill to have in the job market.

**Ruby
**Ruby is a scripting language that is used to build web applications. It is a relatively easy language to learn, and it has a straightforward syntax. Ruby on Rails is a popular web development framework built using Ruby, making it a great language for web developers.

Ruby has a vast community of developers, making it easy to find help and resources. It is also used by many startups, making it an excellent language to learn if you're interested in entrepreneurship.

There are many programming languages to choose from, but these four are great choices for beginners. Python, JavaScript, Java, and Ruby are all easy to learn and have extensive communities of developers to provide support and resources. Ultimately, the best programming language for you to learn will depend on your interests and career goals.