teleren/devto huggingface dataset:
FREE AWS Cloud Project Bootcamp Week 6 Part 1
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-03-26 20:57:34

[85/100] #100DaysOfCloud Today, I started the Week 6 of the FREE AWS Cloud Project Bootcamp by Andrew Brown.

I watched Ashish's Week 6 - Security Considerations video - Amazon ECS Security Best Practices. He talks about the Types of container services in AWS. One is using Virtual machine to run container and other is using AWS managed services like ECS, Fargate and EKS.
Then about business cases of it like ofr example running an application to a container using ECS. 
He then talks about how ECS works, Types of ECS Launches like using EC2 and Fargate.
There are shared risk with ECS which the user manages and AWS manages when it comes to ECS with EC@ and ECS with Fargate.

Some of the Security challenges with Fargate are:
- No visibility of Infrastructure.
- No file/network monitoring.
- Cannot run traditional security agents.
- User can run unverified container images.

Then he does a demo of walkthrough of ECs, and ECR scanning with Inspector Snyk.

A few of the security best practices are:
- Use VPC endpoints or Security groups with known sources only.
- Enable CloudTrail to monitor alerts on malicious ECS behavior.
- Choosing the right public or private ECS for images.
- ECR Scan Images to Scan on Push using basic or enhanced (Inspector + Snyk).
- Access Control -  Roles or IAM Users for ECS CLusters/Services/Tasks.
- No secrets/passwords in ECS Task Definitions/Containers.
- Use only trusted containers from ECR with no high/critical vulnerabilities.

I still have an error with Week 5 messaging part and haven't found the solution to it so left it there and will get back to it when I find what the issue is.

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

You can watch the Bootcamp through this YouTube playlist : [FREE AWS Cloud Project Bootcamp playlist](https://youtube.com/playlist?list=PLBfufR7vyJJ7k25byhRXJldB5AiwgNnWv)
Project 2 - Week 2
Published: 2023-03-26 20:55:42

My partner and I started working on the "badge directory and search project" by working on the visual and structural side of things before diving into any API work. 

This included laying the project out, getting it set up on both Vercel and GitHub, designing the main page visually and structurally, and designing an example badge visually and structurally.

So far there haven't been any issues aside from my laptop refusing to pull my partners code after merging the branches, which I solved by manually making the few changes from the pull request and pushing it myself to the shared repository.

Many concepts translated from the prior project done, including designing a card-like element, designing a page to contain those card-like elements, and setting up functionality to work with API to dynamically load badges.

My next priority will be starting and continuing to work on the API handler for the project as that's all there is left to do aside from filtering / searching which isn't very complex compared to API work.

I had issues with integration of API handlers and getting them working on the previous project as its unlike how I had previously done them, so that will likely be harder than the new concept of filtering through badges based on certain critera.

Below is a rudimentary preview of how the page will work with myself having designed the badge and the dropdown, and my partner having designed the search bar and button.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mzeh4ec5ucs5jiwikzxg.png)
Github ssh key
Tags: ssh, github
Published: 2023-03-26 20:50:53

---
title: Github ssh key
published: true
description: 
tags: #ssh #github
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-03-26 20:49 +0000
---


git -c core.sshCommand="ssh -i /home/rhonal/.ssh/idkey" clone git@github.com:front.git


git config --add --local core.sshCommand 'ssh -i <<< PATH_TO_SSH_KEY >>>'
Project 2 Week 10 Blog
Published: 2023-03-26 20:30:46

# Homework week 10 blog post:

### Repo for code today
- https://github.com/hblaxton/business-card2 

### Properties
- Name, card, description, details label, image

### What sort of information will need to come from the backend to make this work
- Well our verbal dev did not cooperate with us. Although we did try to do the work so our information that we would need would be the name, description, and description label to make this work. Plus the new file which was called type.js

### What we will have to do in order to pull this off
- We will use the example that we did today. Plus the in class exercises and the videos and articles that were provided for us.
# What is the project, what will things be named, how will you initially conceive of attacking the problem 
- The project is named maybe landscaping tree types. Still a work in progress. Name will be named as type, card as business-card2, description as descript, details label as detailsLabel.


### These are the images from our code after watching the video and trying to do the api

<img width="1108" alt="Screen Shot 2023-03-19 at 4 39 56 PM" src="https://user-images.githubusercontent.com/122068882/226207781-85bca17d-37ee-4584-ad45-f319a629fdb2.png">
<img width="712" alt="Screen Shot 2023-03-19 at 4 40 27 PM" src="https://user-images.githubusercontent.com/122068882/226207790-a494dd48-15b9-4cdd-acc6-4939f7238480.png">
<img width="1440" alt="Screen Shot 2023-03-19 at 4 39 45 PM" src="https://user-images.githubusercontent.com/122068882/226207795-a7a5c1d0-527b-4c86-b825-7e315b064a75.png">
<img width="1440" alt="Screen Shot 2023-03-19 at 4 39 33 PM" src="https://user-images.githubusercontent.com/122068882/226207798-53ce3052-18d4-4c5b-b32e-99fd46ddd116.png">
<img width="1392" alt="Screen Shot 2023-03-19 at 4 38 50 PM" src="https://user-images.githubusercontent.com/122068882/226207804-7ea0b874-2906-427b-91e8-3ba5f89f97f6.png">
What is shadow DOM?
Tags: webdev, javascript, beginners, programming
Published: 2023-03-26 19:23:47

The Shadow DOM (Document Object Model) is a web standard that allows developers to create encapsulated and isolated DOM trees within an HTML document. Shadow DOM allows you to create components with their own DOM tree, styles, and behavior, which are completely separate from the rest of the document. It is a way to create components that are more robust, reusable, and maintainable.

The Shadow DOM is composed of two main parts: **the Shadow DOM tree **and **the Shadow host**. 

The Shadow host is the element that contains the Shadow DOM tree, and the Shadow DOM tree is the DOM tree that is encapsulated within the Shadow host. The Shadow DOM tree can have its own styles, JavaScript, and other properties that are separate from the rest of the document.

One of the main benefits of using the Shadow DOM is that it allows you to create custom HTML elements with their own encapsulated styles and functionality. This means that you can create reusable components that are more robust and easier to maintain, without worrying about conflicting styles or behavior with other elements on the page.

Another benefit of using the Shadow DOM is that it allows you to create custom CSS properties and apply them to your Shadow DOM components. This means that you can create custom CSS properties that are specific to your components, which can help simplify your code and improve performance.

In summary, Shadow DOM is a web standard that allows developers to create encapsulated and isolated DOM trees within an HTML document. It provides a way to create reusable components with their own styles, behavior, and functionality, which are completely separate from the rest of the document.
Python 🐍 challenge_24⚔️
Tags: python, challenge, beginners, tutorial
Published: 2023-03-26 19:07:06

## Create Phone Number

- Write a function that accepts an array of 10 integers (between 0 and 9).
- That returns a string of those numbers in the form of a phone number.

#### Examples:

```
create_phone_number([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) 
    # => returns "(123) 456-7890"
```

#### Notes:

- The returned format must be correct in order to complete this challenge.
- Don't forget the space after the closing parentheses!

###### Task URL: [Link](https://www.codewars.com/kata/525f50e3b73515a6db000b83/python)


## My Solution:

```
def create_phone_number(phone_number) -> str:

    if isinstance(phone_number, list) and len(phone_number) == 10:

        phone: str = str([number for number in phone_number])
        pn: str = phone.replace(',', "").replace(' ', '')

        return f"({pn[1:4]}) {pn[4:7]}-{pn[7:11]}"
    else:
        return "Something went wrong"

```

### Learn Python

######  Python top free courses from Coursera🐍💯🚀

🎥 {% youtube 2VRXU2H4q0c%}


### Connect with Me 😊

#### 🔗 Links

[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/mahmoud-el-kariouny-822719149/)

[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/Mahmoud42275)
IST 256 Week 11 Homework
Tags: webdev, javascript
Published: 2023-03-26 18:38:39

https://i.imgur.com/E4wkq3e.png

At first it was a pretty daunting to try and think of how we were going to divide this project up and trying to fit it into all one tag seemed, it seemed a little too complicated. So we decided to split up the badge-list, the badge itself and potentially the search box all into a webcomponent to keep things clean and neat as well as to help with the understanding the overall scope of the project. We had trouble trying to figure out what to attack first so we just started with creating the badge and ripping the css from the website itself and iterating until we have something that we feel looks similar enough to the example website. CSS Styling has been a little frustrating as well as using the 'display' property in order to achieve a look as similar as possible to the example website. From project one we brought over the ideas of creating custom web components to make the project more reusable, understandable, and just better looking overall. General knowledge of the interactivity of CSS, HTML and JS in order to produce a working website. Once we get the badge done, out priority is to get the search APIs done and this is due to a multitude of reasons. Mainly we want to be able to iterate and debug search early on and get that out of the way as quick as possible. This is structured this way because we want to style when have search finished so that we can account for how the website is supposed to look when a search request is fulfilled (I.e there is only one badge on the page as opposed to five). For some reason our border-left property isn't working, it doesn't even show in the debugger in chrome but all other properties do (including border).
Getting Started with Sentiment Analysis
Tags: beginners, python, machinelearning
Published: 2023-03-26 18:30:21


##INTRODUCTION

Machine learning is a powerful technology that simplifies data-related systems. This technology is not just limited to numeric data, it can be employed in text-based datasets that may even be subjective.  Natural Language Processing (NLP) is a branch of artificial intelligence that involves the development of algorithms and techniques that enables computers to understand, interpret and generate human language. Sentiment analysis is one of the applications of this branch.




##WHAT IS SENTIMENT ANALYSIS


Sentiment according to Oxford learners dictionaries is a feeling or an opinion, especially one based on emotions. Likewise, sentimental analysis deals with analyzing an opinion or view that is expressed by someone. Formally, sentimental analysis is a technique that is used to analyze text data, to determine the overall sentiment expressed in it.

The goal of the sentimental analysis is to distinguish whether the feeling or opinion expressed in the text is positive, negative or neutral. Trivial as it may sound, this analysis is important for several reasons including:

- 	Marketing, where companies use it to identify topics and language that resonate with their prospective customers thus informing their text/print marketing campaigns.
- 	Reputation management: companies leverage sentiment analysis to monitor their online reputation and address negative sentiments promptly.
- 	Rating customer experience: by analyzing customer feedback and sentiment, organizations get to understand how clients perceive their products, services or brand. They can then identify ways to provide better customer experiences.
- 	Product development: as a developer, you would want to know how people perceive your product. You can use sentiment analysis to get insights into customer preferences and pain points, which you in turn use to inform your product development and innovation.
- 	Competitive analysis: you can use sentiment analysis to monitor your competitors by getting how customers perceive them. You can then identify opportunities for differentiation and competitive advantages.

Enough of what and why sentiment analysis, we’ll now answer the how. The next part outlines simple and basic steps to carry out sentiment analysis. Sentiment analysis algorithms typically use machine learning and statistical techniques to automatically categorize people’s views as positive, negative or neutral based on the choice of words they use, context and other factors. We will use a sample dataset containing tweets and classify them as either positive or negative.

1. 	Define the problem
2. 	Collect and preprocess
3. 	Label data
4. 	Choose a model
5. 	Train and evaluate your model
6. 	Deploy your model


####  Define the problem






{

STEPS TO DO SENTIMENT ANALYSIS
	TOOLS NEEDED
	PROCEDURE
SUMMARY/CONCLUSION
}
Como realizar o deploy de uma aplicação ASP.NET no Heroku [PT-BR]
Tags: braziliandevs, ptbr, csharp, dotnet
Published: 2023-03-26 18:23:52

O Heroku é uma plataforma de hospedagem em nuvem que permite que os desenvolvedores implantem e gerenciem suas aplicações web de maneira fácil e escalável. Se você está procurando uma maneira simples de implantar sua aplicação ASP.NET no Heroku, siga estes passos:

Crie uma conta no Heroku e crie um novo aplicativo. É recomendado usar o plano Eco para testar suas ideias. Esse plano custa US $ 5 por mês, cerca de R$ 26. Você pode mudar para outro plano mais tarde, se necessário.

Para realizar o deploy da aplicação ASP.NET no Heroku, vamos utilizar o Docker e o Heroku CLI. O método escolhido para o deploy é o "Container Registry" por meio do Heroku CLI.

Acesse a página inicial do Heroku e clique no botão "New". Em seguida, selecione a opção "Create new app" e guarde o nome do aplicativo, pois vamos utilizá-lo mais adiante.

Adicione um arquivo Dockerfile na raiz do projeto ASP.NET:
```dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build-env /app/out .

# ENTRYPOINT ["dotnet", "aspnetapp.dll"]
CMD ASPNETCORE_URLS="http://*:$PORT" dotnet community.dll
```
Este Dockerfile foi adaptado para funcionar no Heroku, a seção do ENTRYPOINT foi comentada e adicionamos uma nova linha abaixo com a variável $PORT do próprio Heroku.

Com o Heroku CLI instalado execute o comando para realizar login direto de seu terminal:
`heroku login`

Agora faça login nos containers:
`heroku container:login`

Com o Docker instalado na máquina e em execução, insira o seguinte comando no terminal (lembre-se de substituir <nomedoseuapp> pelo nome do seu aplicativo):
`heroku container:push web --app <nomedoseuapp>`

Finalmente, para realizar o deploy da aplicação, utilize o comando:
`heroku container:release web --app <nomedoseuapp>`

Se algo der errado, você pode verificar os logs em tempo real com o comando:
`heroku logs --tail --app <nomedoseuapp>`

Com esses passos, você poderá implantar sua aplicação ASP.NET no Heroku de forma fácil e escalável. Lembre-se de que, se precisar mudar de plano ou personalizar sua configuração, o Heroku oferece muitas opções e recursos para atender às suas necessidades.
09 berufliches Vorwärtskommen: Wohin „läufst“ du gerade „gut“ ?
Tags: deutsch, career, motivation
Published: 2023-03-26 18:12:00

Moin Moin,

hoffentlich ist dir durch [Teil 07↗](https://dev.to/amustafa16421/berufliches-vorwatrskommen-was-bei-dir-besonders-gut-lauft-4a6f) und [Teil 08↗](https://dev.to/amustafa16421/08-berufliches-vorwartskommen-warum-es-bei-dir-besonders-gut-lauft-11a1) dieses Austauschs bewusst geworden was bei dir gut läuft oder es war dir bereits bewusst.

- Was sind nun deine nächsten Schritte ?
- Wie gedenkst du dafür zu sorgen, dass es möglichst weiterhin gut läuft ?
- Kannst du möglicherweise durch einen bestimmten Vorteil den du hast anderen besonders nützlich sein ?  Oder für dich selbst ein bestimmtes Ziel erreichen ?

Beste Grüße,
Mustafa
ChatGPT - Complex Coding Challenges: The End
Tags: chatgpt, ai, machinelearning
Published: 2023-03-26 18:09:17

Sadly, after spending some time trying to get ChatGPT to solve **Making a spiral** today, a 3 KYU rank kata on Codewars.

I decided to call it a day because I was not able to achieve the desired outcome.

Initially I thought starting with JavaScript would be the smart option as it has seemed to do better historically with this language. However, that was not the case!

If you would like to see a similar type of challenge to the examples given in this series, leave a comment and let me know what!
My .gitignore doesn't work, git not ignoring my files/folders. How to fix it ? How to ignore committed files/folders ?
Tags: git, gitignore
Published: 2023-03-26 17:49:36

One thing you have to know is that Git only ignores the files/folders that have not been committed to the repository yet and are listed in .gitignore. So before your first commit, remember to set the files/folders you want to ignore to .gitignore and with their right path.

**_Cause_** : 
  - When you don’t put the right path of your files in .gitignore list
  - When you don’t set your .gitignore list before your first commit. Git don’t ignore the files that are already committed. 


**_Solution_** : 

The solution is quite simple. You have to push again without the file or folder you wanted to exclude existing in your workspace.

_A_. **Remove or Backup Files/Folders**

  You have to remove all the files/folders that are supposed to be ignored by git and make a commit. But to make things easy, you can back them up to replace them in their right path when the fixing is done. 

It will make the files/folders untracked by git. After that, make sure they are properly listed in .gitignore with the right path, and they should no longer be tracked by git.

_B_. **Fixing**

  1. **Method 01 :** More suitable when don’t have many important commits in your repository.

    You have to reset to the previous commit.

- Run in your project `git log`.
      
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5fe4a8904x2em0k3uqen.png)
- Run `git reset 59c46944f9bef24453a9d9a4cba18eba8c2ed6ba`.

- Add the files/folders you remove or backup.

- Now you can re-add / re-stage your files with `git add -A` or `git add *`  and you can check if your files/folders are now ignored by git with `git status`.

- After that, you can make a commit with your issue fixed and git ignoring your files/folders. Run `git commit -m “commit with the files/folders ignored properly”`.


  2. **Method 02 :** 

- Remove the files from the index (not the actual files in your project) `git rm -r –cached .`.
			
- Add the files/folders you remove or backup.

- Now you can re-add / re-stage your files with `git add -A` or `git add *`  and you can check if your files/folders are now ignored by git with `git status`.

- After that, you can make a commit with your issue fixed and git ignoring your files/folders. Run `git commit -m “commit with the files/folders ignored properly”`.

Here is your humble servant Vincent TOSSOU (Vic-rider). I hope this article will help you solve your problem. And if you have any contributions to the content of this article, let me know in the comments.

Thanks.
IST 256 Week 7 Homework
Tags: webdev, javascript
Published: 2023-03-26 17:18:51

## What is confusing about platforms?
With each kind of language you get into this different mindset that you know what to expect in terms of syntax, inheritance, declaration, statically/dynamically typed. With JS its the same idea except each of these platforms are like completely separate language all just through the use of importing packages. It's really confusing for a beginner.

## How could web components and VanillaJS standards be taught in a way that is more approachable?
With IST specifically I think a more approachable methodology would try to correlate both to Java as a language in general. Java is the language that students literally have to be semi competent in. Learning three new languages can be daunting but showing the similarities between the two can help the process along. 

## What did you find easiest to work with on 1st stab? (You don't have to say web components, this is an honest take, if it was Vue cool, but justify it)
VanillaJS absolutely. I am most comfortable with Java as a language in general so working with Vanilla I can see the immediate similarities and use my knowledge of Java to help myself code. 

## Think back on the tooling. What parts were confusing? What clicked with you immediately?
Haha, nothing. The trace of how everything works is extremely confusing. It's hard to follow and doesn't really make any sense. So I more or less just asked what Bryan said to do and called it a day.

## What additional readings did you have to do in order to make sense of things.
Lots of Fireship videos, youtube videos in general, stack overflow, mozilla docs, chatGPT
Delitos informáticos.
Published: 2023-03-26 17:08:07

Los delitos informáticos son aquellos actos ilícitos que se llevan a cabo mediante el uso de tecnologías de la información y la comunicación. Estos delitos se han vuelto cada vez más comunes en la era digital, debido a la creciente dependencia de la sociedad de la tecnología y la facilidad de acceso a Internet. En este ensayo, se discutirán los delitos informáticos contemplados en las leyes nacionales.

En muchos países, las leyes nacionales incluyen disposiciones específicas para abordar los delitos informáticos. En España, por ejemplo, la Ley Orgánica 10/1995 del Código Penal incluye secciones que se refieren específicamente a los delitos informáticos. La ley define los delitos informáticos como aquellos que se cometen a través de sistemas informáticos, como la computadora, la red, la base de datos, el software o cualquier otro medio electrónico.

Entre los delitos informáticos contemplados en la ley española se incluyen la interceptación ilegal de comunicaciones electrónicas, la obtención de información personal mediante el uso de sistemas informáticos, el sabotaje de sistemas informáticos, la difusión de virus y malware, el acceso no autorizado a sistemas informáticos y la falsificación de documentos electrónicos. Estos delitos pueden ser castigados con penas de prisión y multas, dependiendo de la gravedad del delito.

En México, la Ley Federal de Delitos Informáticos también contempla una variedad de delitos informáticos. La ley establece que la falsificación de documentos electrónicos, la interceptación de comunicaciones electrónicas, la alteración de sistemas informáticos y el acceso no autorizado a sistemas informáticos son delitos penales.