teleren/devto huggingface dataset:
6-part series on configuring a CI/CD pipeline using Customized Docker image on an Apache Web Server & Application Load Balancer
Published: 2023-02-19 00:15:55

For **better understanding and reading purposes**, I am linking all my previous 6 articles together with step-by-step instructions in this 6-part series, on how to configure a CI/CD pipeline using Customized Docker image on an Apache Web Server, Application Load Balancer, ECS, ECR, CodeCommit, CodeBuild, CodeDeply services

1st article - **[6-part series - (1) Deploy a Custom Docker Image with Centos on an Apache web server and Save it to AWS ECR Repository](https://dev.to/aws-builders/6-part-series-1-deploy-a-custom-docker-image-with-centos-on-an-apache-web-server-and-save-it-to-aws-ecr-repository-186)**

2nd article - **[6-part series - (2) Create Task Definition in ECS and Application Load balancer for the Task to be run on Fargate Cluster](https://dev.to/aws-builders/6-part-series-2-create-task-definition-in-ecs-and-application-load-balancer-for-the-task-to-be-run-on-fargate-cluster-1ohm)**

3rd article - **[6-part series - (3) Create Fargate Cluster, and a Service which can access customized Docker image](https://dev.to/aws-builders/6-part-series-3-create-fargate-cluster-and-a-service-which-can-access-customized-docker-image-1dl7)**

4th article - **[6-part series - (4) Create, clone a CodeCommit Repo, move-push the Dockerfile and index.html to remote repository master branch](https://dev.to/aws-builders/6-part-series-4-create-clone-a-codecommit-repo-move-push-the-dockerfile-and-indexhtml-to-remote-repository-master-branch-37ng)**

5th article - **[6-part series - (5) Create a CodeBuild Project, upload the code and push it to the master repository](https://dev.to/aws-builders/6-part-series-5-create-a-codebuild-project-upload-the-code-and-push-it-to-the-master-repository-p7i)**

6th article - **[6-part series - (6) Create a CodePipeline to see the changes that you made to the index.html file autopopulated](https://dev.to/aws-builders/6-part-series-6-create-a-codepipeline-to-see-the-changes-that-you-made-to-the-indexhtml-file-auto-populated-16jg)**



Please visit my **[GitHub Repository for CI-CD/Docker/ECS/ECR articles](https://github.com/awsmine/Docker_projects)** on various topics being updated on constant basis.
Introduction to Python for Data Science
Tags: python, datascience
Published: 2023-02-18 22:09:51

Python is a widely used and versatile programming language that has become increasingly popular in the field of data science. Its simple syntax, powerful libraries, and broad range of applications have made it the language of choice for many data scientists, researchers, and analysts.

In this article, we will explore an overview of some of the core libraries of Python for data science, such as NumPy, Pandas, Matplotlib, and Scikit-learn, and demonstrate their usage through practical examples. These libraries help you to analyze, manipulate, and visualize data.


### NumPy

NumPy is a fundamental library for scientific computing in Python, and is used for working with arrays and matrices, linear algebra, and random number generation. We can create NumPy arrays using the numpy.array() function.

```
# Creating a NumPy array
import numpy as np

arr = np.array([1, 2, 3, 4, 5])
print(arr)
```


### Pandas

Pandas is used for data manipulation, preparation, and cleaning. We can create a Pandas DataFrame using the pandas.DataFrame() function.

```
# Creating a Pandas DataFrame
import pandas as pd

data = {'name': ['John', 'Mary', 'David', 'Sarah'], 'age': [35, 28, 42, 31]}
df = pd.DataFrame(data)

print(df)

```


### Matplotlib

Matplotlib is used for data visualization, plotting, and graphing. We can create various types of plots, such as line plots, scatter plots, bar plots, and more, using the matplotlib.pyplot module.

```
# Creating a line plot using Matplotlib
import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]

plt.plot(x, y)
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Line plot')
plt.show()
```

### Scikit-learn

Scikit-learn is used for machine learning, including regression, classification, and clustering. We can train machine learning models on data and use them for prediction and evaluation.

```
# Example of training a machine learning model using Scikit-learn
from sklearn.linear_model import LinearRegression

X = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
y = np.array([3, 6, 9])

model = LinearRegression()
model.fit(X, y)

print(model.predict([[10, 11, 12]])) # outputs [12.]

```


## Conclusion

Whether you are new to programming or an experienced data scientist, Python is a powerful language that can help you take your data analysis skills to the next level.

In this article, we provided an overview of the most commonly used Python libraries for data science and walked through their usage through practical examples. With these tools and techniques, you can begin exploring and analyzing your own data using Python and take advantage of the vast potential that data science has to offer.
Unhappy salesforce dev how to switch into a better role
Tags: salesforce, javascript, java, apex
Published: 2023-02-18 22:06:35

I am a unhappy salesforce dev. Here's a little back story. I graduated May 2022 with an associates in software development. I was eager to start working and was possibly thinking about getting my bachelor's after I landed my first job. Unfortunately every where I interviewed with told me no. I either needed so many years experience or a bachelor's. I eventually landed a job with a company that said they would train me in what I didnt learn while doing my associates to become a dev. I jumped on the on it. They left out mostly being a Maas company and I would be a niche salesforce dev. Now a days I try to avoid the admin tasks my boss want me to do on the salesforce orgs and stick to development. I am not trying to sound ungrateful I am thankful for the job and it pays well but it's not what I want to do. The only industry wide technology I use is vanilla javascript. If it wasn't for the js i wouldn't feel like a dev. The other tech I use is apex which is a Java like language and SOQL not SQL. Both of these were built by salesforce and yea the have some things in common with the language they copied but there are paradigms and things you have to do that can't be applied to other languages. A lot is abstrated away like for example inserting or updating entries to a database consists of this command 'insert myObject'. I feel unsatisfied with my job bc I'm not doing the type of development I want.Also I feel like all of the things abstracted away and paradigms that taken away are important things for a new developer to learn and I'm missing out on it and learning things that are completely useless in other languages or not best practice. So now I am working on my bachelor's while I work here in hopes that after I get my degree I will be able to get as a full stack dev working with Java, aws node react those type of languages and technologies or land a job as a database dev where I write crud and application code. I wish I could get out before I get my degree bc honestly I probably wouldn't continue school I just feel like it's something I have to do to get what I want.Is anyone in a similar boat or the same boat and have any idea of how I can switch companies to get my dream role?
CodeSmash No Code Platform
Tags: webdev, nocode
Published: 2023-02-18 21:55:45


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

It shouldn't be about "No Code vs Code". The future is "No Code + Code". Your non-tech folks should work together with developers to benefit from synergy in order to increase the productivity.

https://codesmashapp.com
Como intalar o Java JDK 17 no Ubuntu 22.04
Tags: tutorial, java, jdk, ubuntu
Published: 2023-02-18 21:55:05

[Java 17 LTS](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) é a versão mais recente de suporte de longo prazo para a plataforma Java SE. O JDK 17 é gratuito(1) para uso em produção e distribuição, e irá receber atualizações pelo menos até setembro de 2024.

Esta versão mais recente inclui o JDK 17, que fornece um ambiente para a criação de aplicativos usando a linguagem de programação Java, testando e executando os programas Java.

Aqui, veremos como instalar [Java JDK 17](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) em [Ubuntu 22.04](https://releases.ubuntu.com/22.04/).


## Instalando o OpenJDK 17

O OpenJDK possui pacotes separados para o JDK (Java Development Kit) para o desenvolvimento de aplicativos Java e o JRE (Java Runtime Environment) para a execução de aplicativos Java.

Para atualizar o índice do repositório, execute o seguinte comando no terminal:
```shell
sudo apt update
```

Em seguida, instale o pacote OpenJDK ou JRE conforme o requisito:

- Para instalar o OpenJDK 17 JDK, execute o seguinte comando:
```shell
sudo apt install -y openjdk-17-jdk
```

- Para instalar o OpenJDK 17 JRE, execute o seguinte comando:
```shell
sudo apt install -y openjdk-17-jre
```


## Instalando o Oracle JDK 17

Primeiro, instale dependências para a instalação do Oracle JDK 17 usando os seguinte comandos:
```shell
sudo apt update;
sudo apt install -y libc6-x32 libc6-i386
```

Em seguida, faça o download do Oracle Java JDK 17 usando o comando `wget`:
```shell
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
```

Por fim, instale o Oracle Java JDK 17 usando o comando `dpkg`:
```shell
sudo dpkg -i jdk-17_linux-x64_bin.deb
```

Em alguns casos, pode ser necessário instalar o Oracle JDK 17 no PATH localização.
```shell
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-17/bin/java 0;
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-17/bin/javac 0;
sudo update-alternatives --set java /usr/lib/jvm/jdk-17/bin/java;
sudo update-alternatives --set javac /usr/lib/jvm/jdk-17/bin/javac
```

## Verificando a instalação do Java JDK
```shell
java -version && javac -version
```

Saída:
```shell
java version "17.0.6" 2023-01-17 LTS
Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
javac 17.0.6
```


Espero que tenham aprendido a instalar [Java JDK 17](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) em [Ubuntu 22.04](https://releases.ubuntu.com/22.04/),  qualquer dúvida/sugestão/crítica só deixar aquele comentário! 🙂

Abraços []’s

[1](https://www.oracle.com/downloads/licenses/no-fee-license.html): Licença de Termos e Condições Oracle No-Fee (sem taxa)
FREE AWS Cloud Project Bootcamp Week 0
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-02-18 21:21:23

[49/100] #100DaysOfCloud Today, I completed the Week 0 of the FREE AWS Cloud Project Bootcamp by Andrew Brown.

Checkout what I did for Week 0 : [GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/049/Readme.md)

You can watch the Bootcamp through this YouTube playlist : [FREE AWS Cloud Project Bootcamp playlist](https://youtube.com/playlist?list=PLBfufR7vyJJ7k25byhRXJldB5AiwgNnWv)
Building an app to search the APOD archive by color 🪐
Tags: webdev, showdev, javascript, rust
Published: 2023-02-18 21:04:49

<center>_tl;dr, I built [apod-color-search](https://bryce.io/apod-color-search)!_</center><br>

The news of the James Webb Space Telescope (JWST) being successfully deployed in orbit reminded me how fascinating outer space is. Hubble has already showed us how spectacular and unfathomably large the visible universe is, and now with JWST it's like Earth just received a much better glasses prescription! 

If you haven't been following, here's a compelling side-by-side comparison of the same nebula as seen by both telescopes posted to NASA's Instagram:

{% instagram Cf6pxtbOkPH %}

Long before these pictures started being shared via social media however, [Astronomy Picture of the Day](https://apod.nasa.gov/apod/astropix.html) (APOD) established itself as one of the first websites for this purpose. Every day since July 16 1995, a new picture (or video) with some accompanying information has been posted and it has cemented itself as the OG source of space-related content.

The archive is a trove of absolutely stunning images with otherworldly color palettes. The sheer amount of them and their easy accessibility, combined with my personal desire for a new side-project led to the thought: why not make the APOD image database searchable by color? 🎨

## The finished product 👨‍🚀

With more images from JWST continuing to be transmitted back to us, I've been wanting to build something to do just that. Feeling inspired, I set out to build [apod-color-search](https://bryce.io/apod-color-search)!

Do give it a try and let me know what you think. I've been putting time into it on & off over the past couple months but finally feel ready to release it to the public. 

Part of this was to maximize the various free tiers of cloud services that it utilizes - only given so many hours for GitHub Actions to run to process almost two decades of images! Happy to say that I didn't spend a single cent on any cloud infrastructure, though that came at the cost of some additional complexity which I'll go into detail about later.

Here's the source if you want to poke around in the meantime:

{% github brycedorn/apod-color-search %}

---

This will be the beginning of a series of posts about how I built it consisting of multiple parts, including:
 - Building a request handler and image processor in Rust
 - Using GitHub Actions as a free cloud utility to batch process images
 - Building an API to retrieve and cache search results
 - Building a web application to display color-indexed images in a searchable interface

Stay tuned! 🔭
Week 6: Time to load some data
Tags: opensource
Published: 2023-02-18 20:51:06

## Overview
This week I was working on two tasks + reviewing some PRs. 

## First PR 
This one was nice an easy. It just added a create button on domains screen that redirected to create domain screen. 

https://github.com/DevelopingSpace/starchart/pull/207

It was approved and merged with no problem

## Second PR
This one was way more complicated. It basically adds fetching of domains (aka records) from server instead of showing them from the local mock file. I faced some problems and find some solutions which you can read about in PR description 

https://github.com/DevelopingSpace/starchart/pull/242

I feel like it gonna take some time to merge this PR since it has a lot of controversial things to discuss about. 

## Code reviews
Also did some code reviews on some Front-end and Back-end pull requests. Tried to get involved in them more this week and review not only front-end code.
Need a Developer
Published: 2023-02-18 20:43:55

Hello,

My name is Daniel Otu and looking for a developer who can help me with an idea I have to start an app service-based company which will provide reminders for its customer. This will be a startup and I can see it been used nationwide. I would love to setup a meeting to discuss detailed and here is my contact information in case you have any questions. I can be reach through my email and phone number at 404-446-7750.

Daniel
Generate Custom Properties (CSS Variables) using SASS
Tags: saas, scss, css
Published: 2023-02-18 20:28:14

We've all encountered situations where we need to create variables with different units for various purposes, such as `margin`, `padding`, or `border-radius`. In CSS, this typically involves hard-coding each unit individually. However, there's a more efficient way to handle this and save time using SCSS.

To create a range of pixel units using a `@for` loop in SCSS, you can do the following:

```scss
:root {
  @for $i from 1 through 8 {
    --unit-#{$i}: #{$i}px;
  }
}
```

This will generate the following CSS output:

```css
:root {
  --unit-1: 1px;
  --unit-2: 2px;
  --unit-3: 3px;
  --unit-4: 4px;
  /* ... up to --unit-8 */
}
```

If you want to convert these pixel units to `rem`, you can use a helper function:

```scss
@use 'sass:math';

@function rem($value) {
  @return math.div($value, 16) * 1rem;
}
```

Remember to include `@use 'sass:math';` as the first line in your SCSS file.

Then, apply the function like this:

```scss
:root {
  @for $i from 1 through 4 {
    --unit-#{$i}: #{rem($i)};
  }
}
```

This will result in the following CSS output:

```css
:root {
  --unit-1: 0.0625rem;
  --unit-2: 0.125rem;
  --unit-3: 0.1875rem;
  --unit-4: 0.25rem;
}
```

To take it further and use CSS variables within variables, you can do the following:

```scss
:root {
  @for $i from 0 through 4 {
    @if $i == 0 {
      --base: rem(1);
    } @else {
      --unit-#{$i * 2}: calc(var(--base) * #{$i * 2});
    }
  }
}
```

This will result in the following CSS output:

```css
:root {
  --base: 0.0625rem;
  --unit-2: calc(var(--base) * 2);
  --unit-4: calc(var(--base) * 4);
  --unit-6: calc(var(--base) * 6);
  --unit-8: calc(var(--base) * 8);
}
```

You can customize the base value and utilize the helper function as needed for more flexibility.


![Thats all From Me](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffm05m5svevnu4tv5h6v.gif)
What does rubyinstaller install?
Tags: ruby, rails
Published: 2023-02-18 19:31:49

The rubyinstaller (downloaded from https://rubyinstaller.org) installs basically 4 things on your PC:-
1. ruby (use `ruby -v` to check)
2. gem (use `gem -v` to check)
3. bundler (use `bundler -v` to check)
4. rails (use `rails -v` to check)

This is as of 19-Feb-2023 and do not confuse rubyinstaller with railsinstaller.
Goodbye Pulp, Hello SDK
Tags: gamedev, beginners, playdate, pulp
Published: 2023-02-18 19:25:17

## Why the switch?
Pulp is very specifically designed for simple, story-based, room-traversing games.

I have no interest in making games like that...for me or my son.

Due to the tile-centric model of Pulp, it seems silly to try using it to make any other type of game.

Thus, if I want to make even simple games, it looks like I'll need to dive into the SDK and learn Lua.

### Get the SDK: check
- I downloaded it earlier in this series in order to get the Playdate Simulator
- However, it looks like I don't have the latest version
- Now, I do!

### What now?
- The most popular, prolific publisher of Playdate educational material on Youtube is the user, SquidGod
- In early February, he published the video below

{% embed https://youtu.be/ZPcfC98JogQ %}

Halfway through the video, he covers how to get started using the SDK in the popular code editor, Visual Studio Code.

I watched it to see if I could follow along.

I think I can do all of that, too.

### Before that, `Inside Playdate`
The official SDK documentation is a large...document.

It's called [Inside Playdate](https://sdk.play.date/1.13.0/Inside%20Playdate.html)

Section 3 jumps straight into `Writing a game`.

I wonder how far I would get before feeling stuck or confused?

## Two paths forward
1. Attempt to follow along with SquidGod
2. Attempt to follow along with Inside Playdate

I'll probably go in that order.

All that and more...in future parts of this series!
Introduction to SQL for data analysis
Tags: beginners
Published: 2023-02-18 19:23:04

**What is SQL?**
SQL (Structured Query Language) is a programming language used for managing and analyzing relational databases .SQL stores data in a table format .First ,we need to know what databases are, and define relational databases .A database is an organized collection of raw data files stored in a hard drive .A relational database is a type of database that organizes data into one or more tables, with each table consisting of a set of rows and columns. These tables can be related to each other through the use of common columns or fields, which allows for efficient storage and retrieval of data.

SQL is  widely used in data analysis as it allows users to extract and manipulate data from databases with ease. It is used in accessing, cleaning, and analyzing data that's stored in databases.
 
      **Advantages of SQL**
>It does not need one to code. 
>It is flexible - can be used with other programming languages and on any device. 
> It uses simple commands in English for complex procedures.
>It processes queries at a high speed.

    **Disadvantages of SQL**
>It has a complicated interface.
>It is cost insufficient.
>It is not very secure.

**Commands used in SQL**
Here are some key commands that you'll need to know to get started with SQL for data analysis:
1.Create command - used to create databases. 
2.Select -used to extract data from the existing databases.
3.Insert- used to add tables or values into existing databases. 
4.Update - used to change tables or values that are already existing in the database. 
5.Drop - used to remove table definition and all the data from database tables.
6.Delete - used to delete existing records from a table.

There are many commands in SQL and it's sometimes difficult to memorize all of them but having an SQL cheat sheet is enough in most cases to get by and thrive when using the language for SQL data analysis.

**Conclusion**
The article gives an overview of SQL and the way it facilitates the analysis of data.
I created a box-shadow css generator using React.js
Tags: webdev, react, javascript, programming
Published: 2023-02-18 19:22:45

Hi Guys 👋
I hope you are doing well, Today I'm going to share a side small project for all you guys. I mean all developer. I have developed a box-shadow css generator using React.js and as I love to share my knowledge with others. I have put all the source code to github repo if you want the source code you can have it from this link [Github repo](https://github.com/ShahirHossaini/css-shadow-generator)

I request from all you guys that share your comments with me and you know comments and feedbacks inform us about our mistakes and feel free to have your comments it's much appreciated.

You can check the box-shadow css generator throught this link [box-shadow-generator](https://box-shadow-css-generator.netlify.app/)

If you guys want to be connected with me most of time I share some short codes and tips about web development in [Instagram](https://www.instagram.com/shahirdev/), so connect with me I love to be connected with other developers 👨🏽‍💻

In the last I want to say:

> Code with ❤️, Share your knowledge 🌏, Have fun with Coding ✌️