teleren/devto huggingface dataset:
Usando Ansible localmente
Tags: ansible, aws, iac, devops
Published: 2022-03-03 15:33:05

Usar o Ansible como gerenciador de configuração no início de um projeto pode ser um pouco custoso, mas podemos fazer isso localmente.
Neste post, veremos como executar o playbook localmente em nosso Localhost como uma máquina de controle.
Na verdade, existem muitas maneiras de executar playbooks ansible localmente. Vamos ver cada um e como eles funcionam.

## Especifique Localhost na diretiva de hosts do seu playbook.

É um método bem simples na qual você insere "hosts: localhost" diretamente no playbook. Não é muito elegante, mas eu uso bastante. 

```bash
- name: "Provisionando ambiente"
  hosts: localhost
  connection: local
  tasks:
    - name: "Provisionando ambiente"
      shell: ./shell/aws-provisioning.sh
      ignore_errors: True
- name: "Instalando o Istio"
  hosts: localhost
  connection: local
  tasks:
    - name: "Instalando o Istio"
      shell: ./shell/install-istio.sh
      ignore_errors: True
```

Você pode ir quebrando as tarefas, mas cada uma terá que ter essa entrada repetidamente. 

## Usando local_action flag no ansible playbook

Este método é mais recomendado do que os outros 3, mas é sempre subjetivo usá-lo para suas necessidades.

Aqui está o playbook de exemplo que é executado localmente para criar uma instância do EC2 conectando-se à AWS.

Fiz um exemplo simples para criar uma instância do EC2 na AWS com a flag local_action. 

```bash
- name: create an ec2 instance
  local_action:
    module: ec2
    image: ami-8caa1ce4
    instance_type: m3.medium
    key_name: mykey
    group:
        - web
        - ssh
    instance_tags:
        type: web
        env: production
```

## Adicione uma entrada em seu inventário

Você também pode definir explicitamente seu localhost em seu arquivo de inventário. 
Para isso, edite o arquivo /etc/ansible/hosts e inclua seu host

```bash
$ hostname >> /etc/ansible/hosts
```

## Especificar na linha de comando do Ansible

Por padrão o Ansbile executa as diretivas, mas você pode ignorá-las passando os parâmetros na linha de comando quando for executar o playbook.

```bash
ansible-playbook --connection=local -- inventory=127.0.0.1 -- limit=127.0.0.1 Ansible-Local.yml -i ansible_hosts
```

É isso, espero ter ajudado.
Vlw flw
Day 10/100, 100 Days of Code
Tags: javascript, beginners, codenewbie, devjournal
Published: 2022-03-03 18:05:34

Day 10! Officially 10% of the way into this challenge. Today I learned more about objects. Mind-blowing. Looks like I've been using them all along, they just didn't have cool names that I made up.

Specifically I learned how to create objects, store keys and value into objects, and object methods. 

As for a small project for me to create, I've been considering a discord music bot. I've seen some tutorials on this. Definitely a little complex for my current understanding, but it's fun to start something and figure it out as I go.
I'm Craig and I pledge to help #BreakTheBias in 2022!
Tags: wecoded
Published: 2022-03-03 17:31:49

We need to challenge bias wherever we go, and in championing women, I am not interested in anything that excludes black women, lesbians, trans women, women with physical or mental health challenges, women suffering from poverty, victims of abuse, women who have children,  women with criminal records, women who are carers, refugees, and any other variations eithing the rich diversity on this planet.

As a tech practioner, I make decisions every day that can help or hinder due to any of the challenges that society has created for any and all women.

As an ally, it our duty to understand those challenges, and understand the decisions we make.

When you want to stop end-to-end encryption to protect children, do you consider the impact on women who want to escape their country, who no longer have a safe channel of communitication with those who can help. 

When you force someone to use their "real name", are you exclusing those women whose name connects them to an abuser, are you excluding those who need a clean break from the past?

When you recruit, do you only look at universities, and exclude coding camps, the self-taught, and all the routes to a dev career that are the only options to those who are poor, those who did not have the time or the space to attend university, but have passion to learn, and an understanding of how tech really works out in the world? 

Do your job adverts use gendered or otherwise biased language? Are they only posted in places whose visitors are mainly pale and male?

Do you care about keeping people once they've been recruited, or does your pipeline end at the job offer, and that tick in the box?

Do you know what people say about your company in provate channels that's keeping people from applying? Is that superstar really more important than your reputation? Than your employees and your clients?

When you have a meeting, are you encouring the quiet ones to contribute, in whatever way they feel comfortable? Are you making those spaces safer for them to do so?

What are you doing tomorrow to make things better than the were today?

I ask questions. And the ones with the most impact may be the most uncomfortable ones to answer. You can't break the bias without asking difficult questions of yourself and of others.
We analyze the JHipster Community Survey on YouTube
Tags: jhipste, opensource, javascript, java
Published: 2022-03-03 17:12:06

Hi there,
You probably did not miss our Community Survey and the results shared by Alina on [this blog post](https://dev.to/jhipster/jhipster-community-survey-results-1gp9).

During my weekly "Compose with Anthony" Live stream session with the [ModSquad](https://discover.entando.com/lets-build-a-modular-world?utm_medium=email&_hsmi=204175740&_hsenc=p2ANqtz-8fEoPhANqnIU9Mx-pAOPtrSoLDSMOzlH3xMviVwPYvBIaGVGVy5gVxSfNxkANZgTWU9ZDCU7ezGX3tS50HlI9yf_9_UQ&utm_content=204175740&utm_source=hs_email) on YouTube, I tried to understand and analyze the results of the survey and how we can imagine the future of the project.

Thanks to all participants! Please find the replay below and share your thoughts with us ;)

{% youtube H3nmGgiPwNc %}
What I've Learned as A Full-Time Full-Stack Application Developer.
Tags: life, fullstack, software, developers
Published: 2022-03-03 17:11:50

---
title: What I've Learned as A Full-Time Full-Stack Application Developer.
published: true
description: 
tags: life, fullstack, software, developers
cover_image: https://ids.ac.id/wp-content/uploads/2021/03/9.-Kenali-Karir-Software-Engineer-yang-Sebenarnya.jpg
---

**Have you ever imagined** to become **a full time full stack application developer** (or software developer in terms)? For some reason, it is cool and challenging job I've ever done. Why it is cool and challenging? Some people may don't like it, but here's the thing:

These are several reasons from mine that could be inspire you become the next Full-Stack Application Developer.

*As this article published, it's 1+ year I've been working at this related field. All information about this article is based on my perspective and my POV's.*

### Software Engineer is More Complex than What I've Thinking

Despite of doing well in technically (code, etc.), it doesn't mean that you are good enough as a software engineer. You must know well also at the core of the business from beginning to end. It would be frustrating at the first time, but with a little help from seniors (or mentors), makes it relieved.

### Overthinking and Perfection Kill Me Slowly

If you are able to assign in project, what do you think? Perfection of "0 bugs" or deliver the fully-feature developed to the team? It may depends, but here's in my perspective. Doing perfect is great. But sometimes, you must know the time don't compromise for others. I believe that it can't be perfect at any time, so learn, admit it and take it for the experience.

### Learned to be Organized As A Team

This part is the most challenging for me. One thing for sure, there will be a moment when you are in project with some developers. Communication is the important thing to deliver what feature do you build in the application.

### It's All About Time and Experience

In the end, it is all about the experience. Time by time, I learn something more and more. Do such things like this need a time, more explorations and more experiences. Mistakes, mistakes and mistakes are coming for the first time, but slowly, it's one of the way to learn and to keep the track.

> *Take chances, make mistakes. That's how you grow. - Mary Tyler Moore.*
Why you should never trust your users - Laravel
Tags: php, laravel, beginners, programming
Published: 2022-03-03 17:09:24

I found this most wonderful article about how to protect our private project and not trust users in entering data and dealing with your project, I wanted to share with you this wonderful article link and I did not want to summarize it for you until you visit the link and delve deeper into it and it contains these basic points
- Validating Inputs
- Parameterised Queries
- Escaping Outputs

https://laravel-news.com/never-trust-your-users

I hope you enjoy the article and the code as much as I did and give it to us if you find some mobiles that help us in protecting our project in the comments.
Chat Application using reactjs and google-firebase
Tags: javascript, webdev, react, firebase
Published: 2022-03-03 16:37:54

please do check out.
https://github.com/nisabmohd/chat-app

features:
- Login using Google
- Realtime chat update
- File uplaod and send

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yiixnxu7206c8o7sh2sn.png)
BookShelf - Library Management App
Tags: azuretrialhack, azure, microsoft
Published: 2022-03-03 16:36:18

[Instructions]: # (To submit to the Microsoft Azure Trial Hackathon on DEV, please fill out all sections.)


### Overview of My Submission
[Note]: # (Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)
BookShelf is a library management app which performs all the CRUD operations. It is created using Microsoft Power Apps and Dataverse. Microsoft Power Apps is a Low Code platform used to create apps which can be used by the people in an organization. Power Apps Canvas provides easy to use drag and drop interface to create the app quickly as you can see below.


![Power Apps Canvas Interface](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ae9j74dtmqrmbvidozrq.png)

Logic of the app is built using Excel like functions. We can connect the app with any database. BookShelf uses Microsoft Dataverse and all the data is stored inside a table.

BookShelf is a library management app used by the people working in a library. It has following features

- Home screen shows Title of all the books with their Author and Genre in a scrollable list view.

- Search bar is available at the top to search a book based on Author, ISBN, Genre, etc.

- We can tap on any book to see its details like Title, Author, ISBN, Genre, Copies Available and Summary(if available).

- All these details can be edited easily by tapping on the edit icon in the top-right corner. For example, we can change the number of copies available of a particular book.

- We can also delete books by tapping on the delete icon which will show a popup for confirmation.

- We can add new books by tapping on the '+' icon on home screen which will open a new window. There we can add all the details and a barcode scanner is also available to directly add the ISBN instead of typing it.


### Submission Category: 

[Note]: # (AI Aces, Computing Captains, Low-Code Legends, Java Jackpot, or Wacky Wildcards:)
Low-Code Legends


### Link to Code on GitHub

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)
[Note]: # (Your repository must include a README)
[Note]: # (You must use and list a permissive license for your code: MIT, Apache-2)
{% github https://github.com/Nirmit2207/BookShelf %}


### Additional Resources / Info

Here is a demo video I recorded to show how this app works:

{% embed https://www.youtube.com/watch?v=-12S_7029TI&ab_channel=NirmitSinghal %}

[Note]: # (Screenshots/demo videos are encouraged!)

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. Prizes for winning projects with multiple collaborators will be sent to the person who posts this submission and they will distribute the prize evenly. DEV will not split prizes as per our rules)

[Reminder]: # (Submissions are due on March 8, 2022 @ 11:59 PM UTC)
Some New Software Error Trends Based on Airbrake's 2022 Error Data Report
Tags: programming, productivity, webdev, news
Published: 2022-03-03 16:28:01

---
title:Some New Software Error Trends Based on Airbrake's 2022 Error Data Report
published: true
description: The 2022 Airbrake Error Data Report dives into error trends based on nearly 2 billion occurrences from over 12,000 Airbrake projects. 
tags: programming, productivity, webdev, news
---

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

The 2022 Airbrake Error Data Report dives into error trends based on nearly 2 billion occurrences from over 12,000 Airbrake projects.

Some trends we have discovered based on our data:

- Around 5% of all projects produce multiple thousands of errors every month 

- One-third of all software projects fix their errors in less than 2 weeks

- 75.7% of all Java projects contain java.lang.NullPointerException

- 57% of all Golang Projects contain *errors.errorString

- 53.3% of all Ruby projects contain *NoMethodError

- 28.3% of all Python projects contain a ConnectionError

- 19.3% of all JavaScript projects contain a SecurityError

Read the full report here: [https://airbrake.io/blog/2022-airbrake-error-data-report](https://airbrake.io/blog/2022-airbrake-error-data-report?utm_medium=socials&utm_source=dev.to&utm_content=airbrake-error-report-webpage&utm_campaign=2022-error-report)
Appendix: Operational Excellence (Evolve) - AWS Well-Architected Framework Study Guide
Published: 2022-03-03 16:27:37

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)

[Appendix: Operational Excellence](https://docs.aws.amazon.com/wellarchitected/latest/framework/a-operational-excellence.html)

**How do you evolve operations?**

- Have a process for continuous improvement
- Perform post-incident analysis
- Implement feedback loops
- Perform Knowledge Management
- Define drivers for improvement
- Validate insights
- Perform operations metrics reviews
- Document and share lessons learned
- Allocate time to make improvements

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)
Appendix: Operational Excellence (Operate) - AWS Well-Architected Framework Study Guide
Published: 2022-03-03 16:24:03

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)

[Appendix: Operational Excellence](https://docs.aws.amazon.com/wellarchitected/latest/framework/a-operational-excellence.html)

**How do you understand the health of your workload?**

- Identify key performance indicators
- Define workload metrics
- Collect and analyze workload metrics
- Establish workload metrics baselines
- Learn expected patterns of activity for workload
- Alert when workload outcomes are at risk
- Alert when workload anomalies are detected
- Validate the achievement of outcomes and the effectiveness of KPIs and metrics

**How do you understand the health of your operations?**

- Identify key performance indicators
- Define operations metrics
- Collect and analyze operations metrics
- Establish operations metrics baselines
- Learn the expected patterns of activity for operations
- Alert when operations outcomes are at risk
- Alert when operations anomalies are detected
- Validate the achievement of outcomes and the effectiveness of KPIs and metrics

**How do you manage workload and operations events?**

- Use processes for event, incident, and problem management
- Have a process per alert
- Prioritize operational events based on business impact
- Define escalation paths
- Enable push notifications
- Communicate status through dashboards
- Automate responses to events

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)
Python: what it is and why you should train to use it
Tags: javascript, python, 100daysofcode
Published: 2022-03-03 16:23:57

Did you know that there are more than 700 programming dialects? In fact, some sources indicate that there may still be… close to 9,000 programming lexicons! Learning them all would be unattainable, however, by chance, the most used today are only 50, and among them is Python. Do you want to know what Python is, what it is for and why it is one of the most pronounced dialects in the universe of program increment? keep reading!

**What is it and what is Python for?**

Python is a high-grade programming style that is used to build applications of all kinds. Unlike other argots such as Java or .Net, a glossed language is negotiated, in other words, it is not automatically compiled to carry out persistences written in Python, but rather they are executed abruptly by the reformer using a plan named interpreter, for what is not machine language "translate" it into machine language.

Python is an easy dictionary to guess and write due to its inscription uniformity with the fraternal dialect. In addition, a multiplatform language of open edict is negotiated and, therefore, free, which allows the projection of widgets without limits. With the farce of the moment, Python has gained popularity due to its confidence and its extensive arts, especially in recent years, since it makes it easier to strive with industrial capacity, big time, machine learning and science time, among many other booming gyms. 

So that you can appreciate how simple Python is, fob has a simple schema written in this vocabulary, which you will naturally know even if you know nothing about programming. A small application to estimate an emolument per hour, not very simple although it could be rightly effective, would be pimped:

hours = float(input("Enter your working hours: "))
cost = float(input("Enter what you charge per hour: "))
salary = hours * cost
print("Your salary is", salary)

In between the first lines, the winner is asked to enter how many hours he has worked and what he charges per hour. In the third, the import is made to determine the total salary and it is observed in a variable. In the last line of the precept, it is printed by antipara el refluido. If, for example, we say that we have worked 8 hours at €15, the blind will print “your salary is 120”.




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b4zjflhfkt7jyaecun6a.jpg)
A Custom date-picker in Svelte
Tags: svelte, showdev
Published: 2022-03-03 16:21:39

---
title: A Custom date-picker in Svelte
published: true
description: 
tags: svelte, showdev
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzjuzrlyv0m8qi9sqety.png

---
 
I have this fairly small, but fully functional, custom date-picker UI control, which I've been porting between UI frameworks for quite a few years.

I ported this example to Svelte about 3 years ago, and today I decided to update it to Svelte 3.

### [Try it out 🚀](https://svelte.dev/repl/f391b3186f804fb0bb0931e73388553a?version=3.46.4)

<br>I always try this first with any new framework to see how they stack up. Perhaps the most important thing demonstrated by this use case, is the ability to validate and conditionally accept a value into the control's internal date state - and the ability to modify the control's view state by navigating through months without changing the value.

(it was quite a departure from [the old version](https://gist.github.com/mindplay-dk/d85fbf5427d5e4436fadc70ce46d9ac2/545c62a647e23a5ffcc5147d8e6af0696169fcf8), in case you'd like to compare.)

There's not a lot more to say about this. Enjoy. 🙂
JavaScript is growing, web platforms and web standards are constantly changing. What are the biggest challenges?
Tags: webdev, javascript, survey
Published: 2022-03-03 16:12:44

---
title: JavaScript is growing, web platforms and web standards are constantly changing. What are the biggest challenges?
published: true
description: Notably, the JavaScript community has been growing in size consistently for the past several years
tags: #webdev #javascript #survey
//cover_image: https://direct_url_to_image.jpg
---

JavaScript is the most popular programming language by a wide margin, with nearly **16.5M developers** using it globally. Notably, the JavaScript community has been growing in size consistently for the past several years. 

**4M developers** joined the community in the last year - by far the highest growth in absolute terms across all languages - and upwards of 2.5M developers joined in the past six months alone. 

Even in software sectors where JavaScript is not among developers’ top choices, like data science or embedded development, about a fourth of developers use it in their projects. Τhe same stands for developers involved in web development, with 54% preferring JavaScript.

![JavaScript is growing](https://i.ibb.co/jffvcWW/Screenshot-2022-03-02-113452.png)

Source: [State of the Developer Nation 21st Edition](https://developernation.net)

We are looking to further understand web developers, their preferences in other topics apart languages and go deeper into their pain points. Web platforms and web standards are constantly changing. It looks like web devs find it challenging to keep up with a large number of tools and frameworks at work. The lack of support and the speed with which web standards change seem to be some of the reasons behind that, but we want to hear from more professional web developers about this.

What are the biggest challenges you face when building a website or web app? 
Which types of features are giving you a hard time across browsers?

We have a new **poll** out **on web development** to understand your pain points and challenges.

It will take less than **4 minutes** and as a thank you we are including several prize draws!
**[Are you interested to check this out?](https://survey.developernation.net/name/gpwds1?utm_medium=post&utm_source=dev_to&utm_campaign=dev_to_post2)**