teleren/devto huggingface dataset:
Understanding Postman
Tags: webdev, beginners
Published: 2022-02-22 17:15:45

At first, it can be challenging to understand how postman features work because the interface may appear something fascinating or complicated at first sight. However, it is a simple API tester, builder, and documentation tool. The sidebar is the ultimate controller of the tool.

**Collection**

This section acts as storage for folders and files. For example, creating a word document file and saving it in a folder in either downloads or document section. Similar to Collection a house for GET, POST, and other request files.

**What Happens in Collections** 

It is where almost the significant work in postman takes place. You can run different collections in selected environments. This means you can get responses to the files.

**What Next**

Postman gets easy as you interact with it regularly. Regular testing of APIs will ensure familiarization with all the functionalities. There is nothing fancy or complex about it. View it as your first time interacting with visual studio, and the following week you're splitting the screen like a pro.

_How did you learn to use postman?_
AWS Bad decisions: impossible to migrate
Tags: aws, devops, programming, discuss
Published: 2022-02-22 17:08:58

**TLTR: Due to so many restrictions AWS is generating a downtime of 3-4+ hours in my production site due to needed maintenance/migration.**

I'm in a situation where as a founder I need to transition my AWS infrastructure from my personal account to a company domain one. You may say this is only my problem, but let say you need to migrate a bucket or a site from one account to other, now that sounds more casual, right?

Well, the thing is my infrastructure is a static web site hosted in AWS in a bucket. On top of that I have CloudFront & Cloudflare so my guess for a production site was that last two were going to be the problematic ones.

Unfortunately Amazon made the amazing decision to tight buckets to the creator account and don't provide any way to migrate or provide others ownership. On top of that they have the terrible restriction that bucket names are unique worldwide, so on top of I need to create buckets with the domain name to work properly now I'm completely blocked.

The only solution Amazon support provides me is to create a new bucket with a silly name in the new account, erase the old one and wait an unknown amount of hours for replicas to see the bucket was erased. So that means I will be working 3+ hours on a super simple migration and the production site will be down with all the implications that have for a content delivery company.

Thoughts? My thinking is that AWS is making so many wrong decisions and they are taking the wrong track about how to provide service to tech companies.

They need to provide flexibility just as they claim internally
IDENTITY AND ACCESS MANAGEMENT
Tags: iam, cloud, security, cloudsecurity
Published: 2022-02-22 17:05:58

Identity and Access Management & Privileged Access Management

Do You Know The Difference?

Privileged Access Management (PAM)
• A system used to safeguard, manage, monitor, and control privileged access.

Identity and Access Management (IAM)
• A system which enables admins to limit or restrict access to resources by
granting specific privileges to an organization's users.
5 HTML tags that you might don't know.
Tags: html, webdev, coding
Published: 2022-02-22 16:43:57

## Welcome to my first ever blog page 😀 hope you will enjoy and get knowledge📙

## Talking of html we all know html more or less.

Ever heard about these 5 awesome html tags which could be helpfull for you in your next project!

1. **DETAILS TAG.**
The details tag helps you to hide or show some information/sentence behind your heading or subheading,which helps you to make a small web page having  long information just on button's click.It's like having a hide and show button without using **JS**.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aag2gcs0mn0vkn15dh74.png)
by writing the above syntax you will se something like this.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c136fyxel7qfhvkzilcq.png)
and by clicking on the arrow like button,the hidden details will show up.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16niqhku9dhshlt9gd3t.png)

2.**BDO TAGS.** 
The bdo tag can change the direction of a sentence or word sometimes helps to make some fun web pages and can add some funky effects. 
the syntax would be like:-

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9spxcaxf3b1jo4x1sraz.png)
whatever you'll write inside "<bdo dir = rtl></bdo" will go right to left.

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

3.**ABBR TAG.** The abbr tag is something which can highlight any word,It's like **underlying** something on a web page without using **css**.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ccjzyotwcmgdx84crw2a.png) 
you can see above there inside abbr there is **title** and it has the full form of **WWW**(world wide web).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p7wzv2f404x44j388oro.png)
but on the web page you can se only **www** is underlined or highlighted.

4.**SAMP TAG.** The samp tag is used to display some information in **monospace font** as a system output of any program like a **warning** or **alert**.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/odfjujv1877fmz2gtmpx.png)
After applying the above syntax you will see something like this in the browser.

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

5.**KBD TAG** . The kbd tag is used to diplay some keyboard inputs in the webpage like showing **WIN+E** can open my pc. 
the syntax would be like:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba9yzq31e0r1x3x8nfgp.png)
any keyboard key or keyboard shortcut could be written like in a monospace font format by using kbd tag.

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


Finally! that's enogh for the topic wish you understood the use of these mentioned html tags and I hope you'll use them in your next projects.
Thank you so much, if you enjoyed reading the post you can give me a heart💓.
Maximum Subarray - Leetcode Solution
Tags: cpp, leetcode
Published: 2022-02-22 16:43:11

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

A subarray is a contiguous part of an array.

We need to use Kadane's Algorithm here

```
//Kadane's Algorithm

class Solution {
public:
    int maxSubArray(vector<int>& nums) {
        int ans =INT_MIN,sum =0;
        int n=nums.size();
        for(int i=0;i<n;++i){
           sum+=nums[i];
           ans = max(ans,sum);
        if(sum<0)
            sum=0;
           
        }
        return ans;
            
        }      
    
};
```
Day 01/100
Tags: 100daysofcode, node, java
Published: 2022-02-22 16:41:50

Hello everyone !!!! 
So, **Day - 01 out of 100....** The inertia of focus is at it's peak while starting something new, well this inertia dies out completely and instantaneously due to and early burnout. 


**1. DSA**
- Started with Recursion, solved a few basic problems and attempted a couple of problems on leetcode as well. 

**2. Backend**
- Web Fundamentals

- JavaScript Basics

- Introduction to Node.js 
[Basics like what is Node.js, Creating a simple server, Learning about response and request, manipulating response and request, working with data via. response and request]

**Day - 01** looks good, will push harder every day !

Alright everybody signing off will see you tomorrow, wish me luck !

:)
Lists Comprehension (Compreensão de Listas)
Tags: functionalpropgramming, erlangcode, pythoncode
Published: 2022-02-22 16:28:30

No desenvolvimento de soluções é indispensável o uso de coleções para organizar os dados. Mas sabemos  que o uso de coleções torna-se mais complexo na medida que a solução cresce. Uma das formas para simplificar a manipulação de coleções é usando Lists Comprehension.  

As lists comprehension são expressões que permitem criar listas baseadas em listas existentes. As Lists comprehension seguem a notação dos conjuntos (da Matemática) em alternativa ao uso de maps e filters. 
 
<br>

## Como escrever uma List Comprehension?
Para escrever uma list comprehension existem 2 operações comuns: 
- Selecionar os elementos que verifica uma condição;
- Calcular a expressão para cada elemento da lista.

<br>

## Benefícios das Lists Comprehensions

- Os algoritmos ficam mais curtos e fáceis de entender;
- Tornam a solução mais declarativa;
- Reduzem o uso de maps, lambdas ou filters;
- Tornam o a solução mais precisa.


Embora este conceito tenha as suas origens nas linguagens funcionais, actualmente estão presentes em muitas das linguagens. 

<br>

## Exemplos de linguagens que permitem o uso de lists comprehension
- Linguagens Orientadas a Objectos: C#, Python, Java e Ruby;
- Linguagens Multiparadigma: Scala, Kotlin, Rust e Swift;
- Linguagens Funcionais: Erlang, Elixir, Haskell, F# e Lisp.

<br>

**Sugestão**: É aconselhavel criar uma expressão quando queremos descrever operações simples, para não torná-la ilegível. O melhor é entender como as linguagens funcionais resolvem este problema.

<br>

**Exemplo**: Neste exemplo vamos:  Filtrar as idades dos adultos, obter o factorial e quadrado de cada elemento numa lista.
**Linguagens**: Python e Erlang.

<br>

**Código em Erlang**: _list_comp.erl_

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


**Código em Python**: _list_comp.py_

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

**Executando o código Erlang**

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

**Executando o código Python**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cp18yorww419a3uzf9t3.jpg)
How to pick the Best Application Monitoring Tool for your organization
Tags: aws, cloud, opensource, beginners
Published: 2022-02-22 16:25:56

eG Innovations offers a comprehensive AWS monitoring solution that is tailored to your specific cloud platform. Our tool provides deep visibility into all aspects of your AWS environment, giving you the information you need to keep your cloud running smoothly.

Get Your **[30-Day Free Trial ](https://www.eginnovations.com/it-monitoring/aws-free-trial?utm_source=organic&utm_medium=blog&utm_campaign=aws-free+trial&utm_id=001)**
Does the Docker image you have built correspond to your expectations?
Tags: docker, testing
Published: 2022-02-22 16:19:13

This article deals with compliance testing for Docker images. It is not often used, but it can be interesting to deals with this topic.

Have a good reading ;)

[https://medium.com/linkbynet/compliance-testing-for-containers-863628386fd4](https://medium.com/linkbynet/compliance-testing-for-containers-863628386fd4)
Building an AWS Auto Scaling Group (ASG) using Terraform Enterprise (contd)
Tags: devops, cloud, aws, beginners
Published: 2022-02-22 16:19:07

In the last article, we looked at how to push Terraform code through GithHub to Terraform enterprise, setting up our infrastructure. 

The first part of this article can be viewed [here](https://dev.to/mbaoma/building-an-aws-auto-scaling-group-asg-using-terraform-enterprise-3l9m).

This article highlights how to use CLI to push Terraform codes to Terraform enterprise to set up needed infrastructure.

### Triggering the Run
- Create a new workspace and select the run type as **CLI-driven runs**
<img width="1087" alt="pic1" src="https://user-images.githubusercontent.com/49791498/155095321-057045c7-f9cc-4997-af8e-165740e4ed15.png">

Then set up variables such as your access key and secrets. 

![image](https://user-images.githubusercontent.com/49791498/152161158-5e9e862a-c62c-49e1-966b-ff5968fe7da1.png)

- Login to your enterprise

```bash
terraform login
```
Copy the API token and paste it in your terminal when prompted

<img width="1087" alt="image" src="https://user-images.githubusercontent.com/49791498/155093886-36d5cb39-905a-4f4b-a90d-b51f4fa32d28.png">

- Copy and add the given code block to your **provider.tf** file.
<img width="893" alt="image" src="https://user-images.githubusercontent.com/49791498/155095626-38233470-a72e-4762-a285-f6921722107c.png">

- Run the following Terraform commands:
```bash
terraform init
terraform plan
terraform apply
```
<img width="1123" alt="image" src="https://user-images.githubusercontent.com/49791498/155103455-7508c59a-93de-4905-8991-ed24ec06cfdf.png">

<img width="1171" alt="image" src="https://user-images.githubusercontent.com/49791498/155105108-85136e30-1feb-4859-bbeb-4d84f7d98dc8.png">

- Head over to your AWS account, to view the created resources
<img width="960" alt="image" src="https://user-images.githubusercontent.com/49791498/155105644-ba165508-58c7-429e-9991-e0b7eefa0b75.png">

- It is good practice to delete all provisioned services, to avoid incurring costs when using cloud providers.
```bash
terraform destroy
```
### Useful Resources
- [GitHUb Repo](https://github.com/Mbaoma/terraform-enterprise/)
- [Terraform Modules and how to use them](https://spacelift.io/blog/what-are-terraform-modules-and-how-do-they-work)

Thanks for your time.

Feel free to connect with me via: [LinkedIn](https://linkedin.com/in/mbaoma-chioma-mary), [Twitter](https://twitter.com/mba_oma)

Yoroshko!
Day-29 Training at Ryaz
Tags: javascript, beginners, webdev
Published: 2022-02-22 16:15:34

Today, I started at about 10:30 am and started with trouble shooting my task as explained by my mentor so, as there was problem that data that I post or create or delete from data base it was in form of object id so my mentor suggested to use different middleware which pass data actually I was using json so it was passing only object id. so, this was troubleshooted and data was passing actually in data base and at latter stage I started working upon rest of task and found that there was need of guidance so I had a meet with mentor and asked some course to clear my doubts so he suggested one so, as there was need of authorisation in latter part of task so it would be fruit-full to carry forward with course first and then jumping back to task because keen understanding is very important and for this I have to assure about basic necessities with node so, there would be reduction in the problemems.
My First Post
Tags: rust, serverless, aws
Published: 2022-03-20 14:34:48

---
title: My First Post
published: true
date: 2022-02-22 16:09:05 UTC
tags: rust, serverless, aws
canonical_url: http://millerjam.github.io/posts/my-first-post/
---

I started learning Serverless with [Rust](https://www.rust-lang.org/).


Here is a quick tutorial I started creating, [rust_lambda_hello_world](https://github.com/millerjam/rust_lambda_hello_world). This is a simple "hello world" lambda that uses the [AWS Lambda Rust Runtime](https://github.com/awslabs/aws-lambda-rust-runtime). 

It walks through creating the new project, adding crates, and how to cross compile for Amazon Linux 2 on x86. Finally, create a new AWS lambda function and invoke using the cli.

It was fun to get this started and there are a lot of additional things I can add around testing, logging.
Vue al rescate de AngularJS apps
Tags: javascript, vue, spanish, webdev
Published: 2022-02-22 16:06:11

Así es, aún existen muchas aplicaciones desarrolladas en **AngularJS** incluso cuando a finales del año 2021 se anunciara el fin del soporte a su última versión, de hecho se anuncio que el equipo de [XLTS.dev](https://angularjs.xlts.dev/) mantendrá un Fork de la última versión de angularJS para casos puntuales. Por defecto la única forma de migrar "oficialmente" vamos a decirlo así, es siguiendo la documentación que ha facilitado angular implementando algunas librerías.


### ¿Porqué Vue?

[Vue](https://vuejs.org/) ofrece una manera natural a mi parecer de migrar componentes de angularJS a componentes Vue, ya que poseen algunas similitudes en sus características que lo hacen compatibles de cierta manera, por ejemplo la sintaxis de templates y modelo reactivo.

Esto permite que la migración se torne menos compleja para el equipo, y además se puede continuar el desarrollo de nuevas funcionalidades sin afectar tiempos, al mismo tiempo que se lleva a cabo la migración de componentes.

Ahora quiero mostrarles un ejemplo básico de como sería...

### Configurando AngularJS y Vue


![fusion](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/owx1wh6wos0yetyq7xyb.gif)

**Snippet de Vue**

se debe incluir Vue desde tu carpeta de librerías o un CDN

```html
<script url=".../vue.js"></script>
```

**Crear una instancia de Vue**

Crearemos una instancia de vue en un controller de angularJS, asociado a una vista o al controller principal.
```javascript
((module) => {
  const vm = this;

  vm.$onInit = () => {
    vm.ngText = 'Hello World!';
    vm.vueInstance();
  }
  vm.vueInstance = () => {
    new Vue({
      el: document.getElementById('vue-app'),
      data:{
        someText: vm.ngText
      }
    });
  };
})(angular.module('app'))
```

**Creamos un componente de Vue**

Este componente lo declaramos en una constante solo para efectos de pruebas unitarias.

```javascript
const MyVueComponent = Vue.component('MyVueComponent', {
  props: {
    text: {
      type: String
    }
  },
  template:`<div>{{ text }}</div>`
});
```
Finalmente, en el template de HTML **ng-non-bindable** hará que todo ocurra!, esta directiva le dice a angularJS no compilar o vincular en el elemento actual del DOM, en nuestro caso la instancia de Vue.

```javascript
<main ng-controller="MainCtrl as vm">
  <div id="vue-app" ng-non-bindable>
    <MyVueComponent :text="someText" />
  </div>
</main>
```

![finish fusion](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w9qbr3q82na8yq6h1rm1.gif)

Ahora puedes comenzar a migrar y continuar tu desarrollo sin afectar la entrega de nuevas funcionalidades.

Puedes revisar un ejemplo completo en este repositorio, en el cual se incluye un store con Vuex.

[Post original](https://dev.to/rholo/vue-to-angularjs-rescue-51mn)

{% embed https://github.com/rholo/ng-vue-migration %}
Mapa Mental (Mind Map)
Tags: modelagem, engsoft, analisedesistemas
Published: 2022-02-22 16:02:16

Durante a resolução de problemas, uma das maiores dificuldades é a organização das ideias e a ligação existente entre as ideias. Sempre desejamos é resumir de conceitos importantes.  Este problema pode ser resolvido usando o Mapa Mental.


Mapa mental ou Mind Map é um diagrama que serve para ilustrar ideias ou conceitos. Permite representar visualmente as informações de um problema, partindo de uma ideia central até as suas ramificações.


O Mapa Mental pode ser feito no papel, quadro ou numa ferramenta de modelagem. Para fazer um mapa mental é necessário ter um tema central e os seus tópicos. 
Deve-se usar cores diferentes em cada tópico, usar palavras-chaves e clareza na hiearquia dos tópicos relacionados.


## Quem pode usar o Mapa Mental?

O Mapa Mental pode ser usado e aproveitado por qualquer instituição,  independente das áreas existentes. Pode ser usado para mapear conceitos que possuem vários tópicos.

Na academia, este diagrama pode auxiliar os professores e estudantes a entender os principais pontos de uma matéria.

Existem vários modelos de Mapas Mentais, tais como: TI,  RH, Marketing, estratégicos, brainstorm, gestão de projetos, para ideias, etc.


## Vantagens  do Mapa Mental

- Ajuda a unir informações que inicialmente estão separadas;
- Ajuda a memorizar os principais aspectos do problema;
- Está mais próximo do funcionamento do cérebro (ligação entre neurónios);
- Ajuda a entendimento de ideias complexas, focando nos tópicos principais;
- Fornece uma visão menos linear e mais hierárquica do problema.

### Exemplos de ferramentas para modelar um Mapa Mental: 

- Astah UML;
- Microsoft Visio;
- INTELIMAP;
- Labyrinth.

### Exemplos sites para modelar um mapa mental:

- https://www.lucidchart.com;
- https://miro.com/pt/mapa-mental;
- https://www.mindmeister.com;
- https://www.edrawmind.com;
- https://pt.venngage.com/blog/modelos-de-mapas-mentais.


**Exemplo**: As imagens abaixo exemplificam um mapa para a  Estrutura do Sistema de Recrutamento e outro para os  Departamentos de uma Empresa.
**Ferramenta usada**: Astah UML


**Estrurura de um Mapa Mental**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/au0x5zojgf8h5355mm9o.jpg)


**Mapa para um Sistema de Recrutamento**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iptllgf8qf1di1yo93j6.jpg)


**Mapa para Estrutura dos Departamentos de uma Empresa**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gbkrxkl0kzfo6qspgvl.jpg)
263 A.Beautiful Matrix | Codeforces Solution
Tags: cpp, codeforces
Published: 2022-02-22 15:54:37

A 5 x 5 matrix is given which contains 24 zeros and 1 ones.

And the matrix is beautiful if the number one is located in the middle.

We need to count the minimum number of moves to make the matrix beautiful.

```
#include<iostream>
#include<cmath>
using namespace std;

int main(){
    int c =0;
    for(int i =1;i<=5;i++)
    {
        for(int j=1;j<=5;j++)
        {
            cin>>c;
            if(c == 1){
                cout<< abs(i-3)+abs(j-3)<<endl;
            }
        }
    }
    return 0;
```
Interactive Jigglypuff with SVG & GSAP
Tags: gsap, javascript, codepen, css
Published: 2022-02-22 15:49:02

🔥 Releasing my latest CodePen with an interactive Jigglypuff

[https://codepen.io/nicofonseca/full/YzQZaxj](https://codepen.io/nicofonseca/full/YzQZaxj)

{% embed https://codepen.io/nicofonseca/pen/YzQZaxj %}

Made with SVG and animated with GreenSock 💚

My goal was to create an interactive Jigglypuff where you could dress it up and play around with it.
I had tons of fun while creating the design, illustrations and animations to make it look cute.
About the code, my idea was to only use SVG so my challenge was the performance as I have a lot of elements and animations at the same time, but GSAP made it possible 👏

Hope you enjoy playing around with Jigglypuff!
Don't You Want To Be Happy?
Tags: podcast, jokes, web3, metaverse
Published: 2022-02-22 15:45:50

In Episode 2 of season 2, it's time to GET IN TOUCH with your inner entrepreneur - with Toby B!

@patrickmcfadin is interviewed by everyone's bestie hustler!

{% spotify spotify:episode:5jjrRWr0iH35rogZw33Vt0 %}