teleren/devto huggingface dataset:
Does DevOps include Database management and administration?
Tags: devops, database, dba
Published: 2023-04-09 23:52:26

DevOps can include database management and administration as well. In fact, managing databases is an important aspect of the DevOps process since databases play a critical role in modern applications.

Database management in DevOps involves automating tasks such as database provisioning, configuration management, and deployment, as well as ensuring the security, availability, and performance of databases. This requires collaboration between development, operations, and database teams to ensure that databases are properly integrated into the DevOps workflow and that changes to database schemas and configurations are managed effectively.

There are various tools and technologies available for database management in DevOps, such as database automation tools, containerization technologies like Docker and Kubernetes, and cloud-based database services such as Amazon RDS, Microsoft Azure SQL Database, and Google Cloud SQL.
Felix Aryeequaye Adjavon Portfolio CS
Published: 2023-04-09 23:26:36


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

Sex: Male
Qualification: B.CS, GradCert in Business Leadership
Languages Spoken: English, Thai, Chinese, Portuguese
Strengths: Sociable, Tolerant, Self-Motivated.

Thanks to my study background in international business and marketing psychology, I connect UX/UI design with real business goals, while providing delightful client experiences.

Currently, I’m applying to study for my Master's in Computer Science with a more focus on Software Development and Cybersecurity.

Outside of my full-time commitments, I work with a select freelance client base to create amazing products and solutions.

I’m passionate about building & designing thoughtful experiences to make sure  customers and users are satisfied when they’re using customers' products and services online.

I also love documenting my journey and sharing it with the community to help others succeed and grow.

Contact @facebook.com/hisimperial ,
Crea tu primer app con Angular
Tags: angular, javascript, frontend, typescript
Published: 2023-04-09 23:22:47

Hola amigos, en este post os enseñare como crear su primer aplicacion con el framework de Angular.
Haz de tener en cuenta que debes tener un conocimiento basico de Typescript o en su defecto de Javascript.
En mi caso estoy usando Windows 10, asi que el Post se basara en este sistema operativo, mas adelante les traere material para otros SO.

Las herramientas que usaremos son las siguientes

- Git Bash
- NodeJS


Entonces, primero que nada, hay que instalar nodejs, acceden a la web oficial de NodeJS (https://nodejs.org/en) y le dan a descargar, recomiendo la version LTS, que es una version mas estable para NodeJS, una vez descargado siguen los pasos de instalacion en windows y le dan a finalizar. Pueden chequear la instalacion de node con el comando "node --version"

Luego deben moverse a un directorio en el cual tendran su proyecto, en mi caso es C:/dev y alli levantan la consola de Git Bash




Una vez alli deben ejecutar el comando "ng new mi-app", donde 'mi-app' sera el nombre de tu aplicacion que aparecera mas tarde en el package.json.


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

Entonces, una vez echo esto, tendremos la aplicacion y las carpetas basicas de un proyecto de angular.

Ahora para poder visualizar tu aplicacion debes moverte a tu directorio, puedes ejecutar el comando "cd mi-app" para pararte en tu directorio y ejecutar "ng serve -o" , esto levantara un servidor y abrira un browser en el puerto 4200 donde puedes visualizar tu primer aplicacion Angular llamada "mi-app"
How to check the memory usage of a pod in Kubernetes?
Tags: kubernetes, memory, devops
Published: 2023-04-09 23:22:36



To check the memory usage of a pod in Kubernetes, you can use the kubectl top command. 

`Step 1:` Open a terminal window and ensure that you are logged in to the Kubernetes cluster where the pod is running.

`Step 2:` Run the following command to get the name of the pod:

`kubectl get pods`

This command will show you a list of all the pods running in the cluster. Find the name of the pod that you want to check the memory usage for.

`Step 3:` Run the following command to check the memory usage of the pod:

`kubectl top pod <pod-name> --containers`

Replace <pod-name> with the name of the pod that you want to check the memory usage for.

This command will show you the memory usage of each container running in the pod, in bytes.

Alternatively, you can use the kubectl describe command to get more detailed information about the pod, including its memory usage. 

Here are the steps:

`Step 1:` Run the following command to get detailed information about the pod:

`kubectl describe pod <pod-name>`

Replace <pod-name> with the name of the pod that you want to check the memory usage for.

This command will show you a detailed description of the pod, including its memory usage.

`Step 2:` Look for the Containers section in the output. Under each container, you will see a Limits section that shows the memory limit for that container, and a Usage section that shows the current memory usage for that container.

```
Containers:
  my-container:
    ...
    Limits:
      memory: 1Gi
    Usage:
      memory: 500Mi
```

In this example, the memory limit for the my-container container is 1GB, and the current memory usage is 500MB.
RDS MySQL Load Testing with Sysbench
Tags: tutorial, mysql, devops, aws
Published: 2023-04-09 22:35:23

Sometimes you need to do a load test on MySQL Database to test Auto-Scaling for example. I found a very useful tool called [Sysbench](https://github.com/akopytov/sysbench) that I will present in this article.

## Install Sysbench

Open your terminal and run :

```shell
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash

sudo apt -y install sysbench
```

## Prepare for Load Testing

Create a “test” database and run sysbench prepare command :

```shell
mysql -h YOUR_MYSQL_HOST -u YOUR_MYSQL_USER -pYOUR_MYSQL_PASSWORD -e 'CREATE DATABASE test;'

sudo sysbench /usr/share/sysbench/oltp_read_only.lua --db-driver=mysql --mysql-db=test --mysql-user=YOUR_MYSQL_USER --mysql-password=YOUR_MYSQL_PASSWORD  --mysql-host=YOUR_MYSQL_HOST --threads=80 prepare
```

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

## Run MySQL Load Testing

Let’s load test a fresh created database with only 1 instance (Aurora Auto-Scaling is configured on the test-load-database cluster) :

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

Here is the CPU of the instance :

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

Create a bash script `load_test_mysql.sh` and paste inside :

```shell
#!/bin/bash

for ((n=0;n<100;n++))
do
 echo $(date)
 sysbench /usr/share/sysbench/oltp_read_only.lua --db-driver=mysql --mysql-db=test --mysql-user=YOUR_MYSQL_USER --mysql-password=YOUR_MYSQL_PASSWORD  --mysql-host=YOUR_MYSQL_HOST --threads=80 run
 echo $n
done
```

And run the test :

```shell
chmod +x load_test_mysql.sh
./load_test_mysql.sh
```

Here come the magic :

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

And you can see your CPU increase :

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

Finally I see that my autoscaling works well as I have two new instances :

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

Thanks to https://github.com/akopytov/sysbench 😁

_If you liked this post, you can find more on my blog https://adrien-mornet.tech/ 🚀_
Invoking multiple functions on a single element
Tags: javascript, callback, foreach, map
Published: 2023-04-09 22:02:22

In this post, I'll be going over a relatively simple way of invoking multiple functions upon a single element. Both the elements and the functions will be relegated to their own respective arrays. We'll also be populating an empty object with the elements as the keys and the values as an array of the invoked functions on each element. Let's gooooo!

---

So here's what we'll be working with:

```
const uppercaser = str => str.toUpperCase();

const capitalize = str => str[0].toUpperCase() + str.slice(1);

const repeater = str => str + str;

const items = ['catfood', 'glue', 'beer'];

const functions = [uppercaser, capitalize, repeater];
```
---
We have three functions, assigned to the `functions` array and three string elements assigned to the `items` array. Our goal is to populate an empty object with the elements in `items` as the keys and we want to invoke every function from `functions` upon each one of the elements in `items`. So basically, apply those three functions on each element from `items`.

Let's declare our function that takes in both of the arrays and sets up an empty object:

```
const multiMap = (items, functions) => {
  const obj = {};
}

const uppercaser = str => str.toUpperCase();

const capitalize = str => str[0].toUpperCase() + str.slice(1);

const repeater = str => str + str;

const items = ['catfood', 'glue', 'beer'];

const functions = [uppercaser, capitalize, repeater];
```

We're going to use the `.forEach()` method on the `items` parameter/argument to loop through each element within that array, but here's where it gets interesting:

---
Once we call the `.forEach()` method on that array, we're going to simultaneously populate our empty object `obj` with each element from `items` as the **key** while also assigning the **value** for `obj` with every single function that's inside of the `functions` array:

```
const multiMap = (items, functions) => {
  const obj = {};
  items.forEach(item => {
    obj[item] = functions.map(callback => callback(item))
  }); return obj;
}

const uppercaser = str => str.toUpperCase();

const capitalize = str => str[0].toUpperCase() + str.slice(1);

const repeater = str => str + str;

const items = ['catfood', 'glue', 'beer'];

const functions = [uppercaser, capitalize, repeater];
```

We end the function by returning `obj` at the end of the `.forEach()` method. Our output will look something like this:

```
{ 
catfood: ['CATFOOD', 'Catfood', 'catfoodcatfood'], 
glue: ['GLUE', 'Glue', 'glueglue'], 
beer: ['BEER', 'Beer', 'beerbeer'] 
}
```

---

The way this works is that `.forEach()` will loop through every element in the `items` array and then we're populating `obj` with each one of those elements in `items` as the key. The `.map()` method will then apply every function in `functions` to each element in `items` and return every value from those three functions in an array, since `.map()` returns a new array.

---

I hope this was helpful for you! Keep fighting the good fight!

<3<3<3
Why AI Needs a Mental Model of the Physical World
Tags: programming, tech, artificialintelligen, ai
Published: 2023-05-16 11:01:29

---
title: Why AI Needs a Mental Model of the Physical World
published: true
date: 2023-04-09 22:01:47 UTC
tags: programming,tech,artificialintelligen,ai
canonical_url: https://fagnerbrack.com/why-ai-needs-a-mental-model-of-the-physical-world-8d7640a23187
---

Artificial intelligence has come a long way in recent years, with many breakthroughs in natural language processing, image recognition, and decision-making. However, practical differences between AI and humans still affect their ability to reason and make accurate conclusions. In this post, we will explore the importance of a mental model of the physical world for AI and how it can impact the accuracy of their answers.

![](https://cdn-images-1.medium.com/max/1024/1*ICfPBAY1bXpU4g0uJqMsOg.jpeg)

**The Limitations of AI**

Unlike humans, AI models do not have a physical simulation of the world to compare against. This lack of a mental model of the physical world can limit the ability of AI to verify the accuracy of their responses. Even advanced AI models like ChatGPT can provide erroneous answers or assumptions, and nobody knows how the AI arrives at these conclusions. This is because the reasoning behind an answer cannot be debugged like regular software.

**The Importance of a Mental Model of Physics**

If the AI had the ability to test things in an internal simulation of the physical world, it could provide more accurate answers. With a mental model of the physical world, AI could verify assumptions like humans do when we verify an incorrect assumption made by AI to improve its accuracy in generating responses. This is because it would be able to simulate physical scenarios closer to how the human world works and test its conclusions against the results of those simulations.

**The Next Big Jump**

Inducing a mental model of the physical world in an AI’s artificial brain could be the next big jump in artificial intelligence. This would allow AI to simulate physical scenarios and test their assumptions, leading to more accurate conclusions. AI could even exceed human reasoning capabilities in some areas if they test against a mental model of the physical world.

**Does it make sense?**

The lack of a mental model of the physical world is a limitation of AI that affects its ability to verify assumptions and make accurate conclusions, which we humans do ourselves after interacting with AI. If AI can induce a mental model of the physical world in its artificial brain, it could significantly improve its accuracy and capability to reason and make predictions.

Has anyone thought about this before?

Thanks for reading. If you have feedback, contact me on [Twitter](https://twitter.com/FagnerBrack), [LinkedIn](https://www.linkedin.com/in/fagnerbrack/) or [Github](http://github.com/FagnerMartinsBrack).
As a Software Engineer, learn this one fundamental skill
Tags: mindset, coreskill, beginners
Published: 2023-04-09 21:54:19


Let me start with a confession. Despite being a high achiever in school, I was miserable for most of my career as a Software Engineer. I had bad work-ethics, low self-esteem and struggled to get along with co-workers. I wondered if my life would ever get any better.

But things are different now. I have a healthy relationship with my manager and some of my co-workers are great friends. I enjoy reading and participate in a tech discussions. I've worked on several interesting projects and have learnt a lot along the way.

What caused this shift? Well, the COVID lockdown. With all the noise out of the way, I read several books and reflected on my life. The one that stood out was [Mindset: The New Psychology of Success](https://a.co/d/amfr5tB) by Carol Dweck. I realized that I wasn't looking at things the right way. For me, getting stuck was a question of self-worth. I was overcome with fear whenever anything got challenging. I hesitated to ask for help and procrastinated often. My biggest fear was being judged by others.

To shift my perspective, these are some of the questions I'd ask myself:

1. Is it even reasonable to not get stuck?
2. Am I not growing by sticking through this challenge?
3. Is my fear of judgement rational?
4. Even if I am critiqued, how can I learn and grow from it?

Developing a growth mindset did not happen overnight. It took months of practice and is still a work-in-progress. I'd often revert to my old ways and course-correct. One of the practices I found helpful was sitting in silence for a few minutes at the end of each day, reflecting on how my day went.

What is great about this mindset is that it applies to life in general. I've been using it to lift heavier at the gym, get better at social interactions and learn new hobbies. But above all else, I've become more compassionate with myself and with others.
OSDC Assigment #4
Tags: osdc, github, python
Published: 2023-04-09 21:53:18

IN LESSON #4 in course [OSDC](https://github.com/OSDC-Code-Maven) We looked at the [PyDigger](https://pydigger.com/) web site and the [Stats](https://pydigger.com/stats) page from where we had links to
There are [projects have link to VCS but no license field](https://pydigger.com/search/has-vcs-no-license)

, [projects have link to VCS but no author field](https://pydigger.com/search/has-vcs-no-author)

, [projects have link to VCS but no summary](https://pydigger.com/search/has-vcs-no-summary)

and projects where PyDigger [did not find VCS](https://pydigger.com/search/no-vcs)

I get focus on [projects have link to VCS but no author field](https://pydigger.com/search/has-vcs-no-author)
These are projects that I try add authors:
[textfsmplus](https://github.com/jinjamator/textfsmplus)
[ipoly](https://github.com/Danguilhen/ipoly)
[wi1-bot](https://github.com/wthueb/wi1-bot)
[mlxu](https://github.com/zoharasulin/mlxu)
[KappaData](https://github.com/BenediktAlkin/KappaData)

I hope your interest my H.W. because I think that is very important to us world!

HAPPY HOLIDAY MY FRIEND!
Hi there!
Tags: beginners, programming, intro, webdev
Published: 2023-04-09 21:31:23

I think introductions are in order. 

My name is Kelli and I'm a current student with Flatiron School's software engineering bootcamp. 

I was born in Mountain View, CA (cue my jokes about being born ready to be in the tech industry), but was raised in the Chicagoland area where I currently still live with my husband, Ryan, and our dog, Wally, and cat, Julep. 


![My Pets](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zayqfbz35xz1ujnbxoo4.jpg)

I can't say that I always enjoyed the tech industry... in fact, while in college I absolutely _hated_ my programming classes. _What are nodes? Why do I have to learn this? This is **so** hard!_ These were all the thoughts that I had, while cramming for Actuarial exams that ended up having no meaning in the end. 

{% embed https://giphy.com/embed/huUM43lG32NfUkDYXk/video %}

So, why the change? Something I never put together was how _involved_ the tech industry is... What do I mean by that? 

The tech industry, and "techies", are here to help with every aspect of life. Love animals? Great! Help animal rescues build responsive websites that can aid them in making sure animals get the help they need. Gamer? Join the vast gaming development industry to build immersive worlds that can enthrall kids and adults alike. Not sure where you quite fit in? That's okay too! Build projects that help make everyday for _you_ better... because, why not? 

{% embed https://giphy.com/gifs/you-got-this-i-believe-in-yourself-6VriQO3GFRwwBVPbi4 %}

There's something for everyone and it really is inspiring to see what people do with their skills. So... that's why I decided to stay in the tech field after getting my first job (as a Junior Software Tester) right out of school. 

While it wasn't my initial first choice, it ended up opening my eyes to the world of technology and what it could do for me... and I'm so happy that you're here to watch me grow with it!
How to Choose the Right B2B SSO Provider
Tags: sso, security, cybersecurity, authenticatio
Published: 2023-04-09 21:24:31

Single Sign-On (SSO) has become an essential tool for businesses in the B2B (Business-to-Business) space, providing a secure and efficient way to manage user access across multiple applications. However, choosing the right B2B SSO provider can be a challenging task. Here are some factors to consider when choosing a B2B SSO provider

**1. Compatibility with Existing Applications**: The first step in choosing a B2B SSO provider is to ensure that the provider is compatible with the applications you are currently using. Compatibility issues can cause downtime, loss of data, and security breaches. Make sure to check the provider’s compatibility with all the applications that your organization uses.

**2. Security Features**: Security is a top priority for any business, especially in the B2B space. When evaluating a B2B SSO provider, it’s important to look for features such as multi-factor authentication, identity verification, and encryption. These features can help prevent unauthorized access to your company’s sensitive data.

**3. Integration with Active Directory**: Active Directory is a popular tool used by many businesses to manage user identities and access rights. A good B2B SSO provider should integrate with Active Directory, making it easy to manage user access across multiple applications.

**4. Customization and Branding**: Customization and branding options allow businesses to tailor the SSO solution to their unique needs and make it more user-friendly. Customization options should include the ability to customize the login page, change the color scheme, and add company logos.

**5. Cost**: As with any business decision, cost is an important factor to consider when choosing a B2B SSO provider. Be sure to evaluate the cost of the provider and any ongoing fees, such as licensing fees and maintenance costs, before making a decision.

**6. Support and Training**: Finally, it’s important to consider the level of support and training offered by the B2B SSO provider. Look for a provider that offers comprehensive training and support resources, including user guides, tutorials, and customer support.

**7. Reputation and Experience**: Before choosing a B2B SSO provider, it’s important to research the provider’s reputation and experience. Look for a provider that has a proven track record of success and has worked with businesses similar to yours.

In summary, when choosing a B2B SSO provider, it’s important to consider factors such as compatibility with existing applications, security features, integration with Active Directory, customization and branding options, cost, support and training, and reputation and experience. By carefully considering these factors, you can choose a B2B SSO provider that meets your organization’s needs and helps ensure the security and efficiency of your operations.
32 berufliches Vorwärtskommen: Der eigentliche Weg – Wohin sollte ich gehen?
Tags: deutsch, career, motivation, 1min
Published: 2023-04-09 19:41:32

Moin Moin,

du gehst den eigentlichen Weg. Du weißt von Leuten die erfolgreich ihren Weg gegangen sind und von solchen die es gerade tun.
Eine wichtige Frage, um stets auf Kurs zu navigieren:
> Wohin sollte ich gehen?

Siehe auch: [Warum _sollte_ und nicht _möchte_→](https://dev.to/amustafa16421/berufliches-vorwartskommen-wohin-sollte-ich-gehen-wohin-mochte-ich-gehen-2df5). Stichwort: _ursprüngliche Neugierde_ für diejenigen, die diesen Begriff bereits kennen.

Helfen tun einen dabei auch die Lehren aus Wegen derer, [die man als erfolgreich einstuft→](https://dev.to/amustafa16421/31-berufliches-vorwartskommen-der-eigentliche-weg-erfolgreiche-leute-4m48). Man kann diese Einschätzung als einen Spiegel dessen verwenden, was man, in gewisser Weise, von sich selbst erwartet. 

Also, wohin solltest du gehen?

Beste Grüße,
Mustafa