teleren/devto huggingface dataset:
Usando padding e margin e aplicando no Css
Tags: html, css
Published: 2020-03-13 19:28:01

## PADDING

É usado na parte de dentro de um elemento. (Parte interna)
Nós usamos na seguinte ordem: top , right, bottom e left.

Exemplos:
Forma resumida quando os 4 lados tem valores diferentes:
```scss
padding: 55px 60px 95px 60px;
```

Forma resumida quando o top/bottom e right/left tem valores diferentes:
```scss
padding: 55px 60px;
```

Forma resumida quando o top tem um valor o right/left tem outro valor diferente e o bottom também tem outro valor diferente:
```scss
padding: 55px 60px 95px;
```

## MARGIN

É usado na parte de fora de um elemento. (Parte externa)
Forma resumida quando os 4 lados tem valores diferentes:
```scss
margin: 55px 60px 95px 60px;
```

Forma resumida quando o top/bottom e right/left tem valores diferentes:
```scss
margin: 55px 60px;
```

Forma resumida quando o top tem um valor o right/left tem outro valor diferente e o bottom também tem outro valor diferente:
```scss
margin: 55px 60px 95px;
```
Tipos de display e aplicando o display
Tags: html, css
Published: 2020-03-13 19:24:10

## Display Inline:
Deixa os elemento na mesma linha mas não conseguimos definir nem "width" largura e "height" altura.
```scss
display: inline;
```
## Display Block:
Não deixa os elementos na mesma linha mas conseguimos definir "width" largura e "height" altura.
```scss
display: block;
```
## Display Inline-Block:
Tanto deixa os elementos na mesma linha e também conseguimos definir uma "width" largura e uma "height" altura.

```scss
display: inline-block;
```
Switch Off Hyper-V on Boot in Windows
Tags: windows, virtualization, productivity, hyperv
Published: 2020-03-13 19:05:09

---
title: Switch Off Hyper-V on Boot in Windows
published: true
description: Switch Off Hyper-V on Boot in Windows
tags: windows,virtualization,productivity,hyper-v
---

As you may or may not know Hyper-V on Windows hijacks the Hypervisor and you can't have two Hypervisors running at the same.

We could use Window's **Add/Remove features** to turn the **Hyper-V** support off and back on, but that's a lot of hassle.

Luckily we can update the boot entry, which can be configured to switch off the hypervisor (at launch). But instead of updating the existing boot entry, we can go one better and create another boot entry. This will then trigger a prompt for the boot option at startup.

```bash
bcdedit /copy {current} /d "No Hyper V"
```
<figcaption>cmd syntax</figcaption>

<blockquote>Make sure you run the commands as Administrator, otherwise you'll get the "Access is denied" error.</blockquote>

Or run the following if using PowerShell.

```powershell
bcdedit --% /copy {current} /d "No Hyper V"
```
<figcaption>PowerShell syntax</figcaption>

Once the boot entry has been successfully copied the `GUID` will be displayed in the output. You'll need to copy this ID and use it in the next command. E.g.

```powershell
C:\>bcdedit --% /copy {current} /d "No Hyper V"
The entry was successfully copied to {a10f071b-5711-4d5d-b7a9-9b0a4957d6fb}.
```

Next step is to set the `hypervisorlaunchtype` to the value `off`.

```bash
bcdedit /set {a10f071b-5711-4d5d-b7a9-9b0a4957d6fb} hypervisorlaunchtype off
```
<figcaption>cmd syntax</figcaption>
<blockquote>Remember to replace the GUID with the id returned from the copy command.</blockquote>

Or run the following if using PowerShell.

```powershell
bcdedit --% /set {a10f071b-5711-4d5d-b7a9-9b0a4957d6fb} hypervisorlaunchtype off
```
<figcaption>PowerShell syntax</figcaption>

Restart your machine and you should now be prompted to select your operating system. Either:

* Windows 10
* No Hyper V

Select `No Hyper V` and you can now be sure that the Hypervisor is no longer hijacked by **Hyper-V**.
I'm Michael, and I support self-identifying women & non-binary devs.
Tags: wecoded
Published: 2020-03-13 18:31:03

---
title: I'm Michael, and I support self-identifying women & non-binary devs.
published: true
tags: shecodedally
---

I ran a bit short on time during [SheCoded](https://dev.to/shecoded) and never actually posted this article I was working on. 

That being said, March 6th - 9th is a short window, and I think it's totally cool if we continue to share these stories even after the celebration is over. 💜

## What I _think_ equality in tech looks like…

- Equal pay and equal respect for self-identifying women & non-binary folks working in this industry.
- Acceptance and celebration of self-identifying women & non-binary folks as they are. This means allowing these devs to be themselves and not trying to conform them to any particular mold or expectation of how a developer is _supposed_ to act. 
- Acknowledgement of the difficult struggles that self-identifying women & non-binary folks face — dismissal, silencing, misogyny, to name just a few... and additional acknowledgement that this negativity comes disproportionately from men. Not to mention, supporting self-identifying women & non-binary devs when they face these issues, and speaking out against those who perpetuate this toxic environment.
- Actively seeking to use inclusive language and not being defensive when folks call you out for getting it wrong. 

## I will advocate for equality by…

- Listening more intently to self-identifying women & non-binary folks while trying to avoid steering the conversation toward my own experience.
- Acknowledging that my background as a white cisgender male puts me in a very privileged position and using that privilege to elevate self-identifying women & non-binary folks. 
- Related to the above, recruiting more self-identifying women & non-binary folks to be moderators on DEV! Please [check out this page](https://dev.to/community-moderation) and hit us up if you want to join! 💜
- Celebrating and promoting self-identifying women & non-binary folks who share their stories and tutorials on DEV!
- Trying my best to be aware of using inclusive language and graciously accepting criticism when I get it wrong.

## My advice for fellow allies to support self-identifying women and non-binary folks who code is...

- Elevate the self-identifying women & non-binary folks around you by advocating for them to have higher wages & trusted positions. Plus take the time to get to know them and be their friends.
- Listen when they speak! Be empathetic to self-identifying women & non-binary folks whose experience is different than yours.
- Check out the tags: [#SheCoded](https://dev.to/t/shecoded) & [#TheyCoded](https://dev.to/t/theycoded) and listen to the many awesome posts by self-identifying women & non-binary folks. Afterward, check out [#SheCodedAlly](https://dev.to/t/shecodedally) where you'll find more awesome stories.

Thanks for reading! 💜
Why I always use CQRS pattern when I work with juniors? 🤔
Tags: cqrs, architecture
Published: 2020-03-13 18:28:43

Hi!

This is my second post on dev site. I hope you will enjoy my article about pure CQRS pattern. 😊


A year ago I heard about buzzword called "CQRS". I started my research  and after some weeks I catch myself on using it everywhere. I thought it was good idea, but after some time I seen cons and my bad decisions. 

So, the time has passed and now I'm ready to talk about it with some advices for newbies in CQRS.

At first, many peoples talks about not using it everywhere and I partially agree with them, but the point is that you can always use only CQRS without DDD, layers and others. 
They are ofter goes in pair and I think this is the main purpose of problem. 

##Why CQRS is good for project with juniors?

![Alt Text](https://thumbs.gfycat.com/ShimmeringWhisperedBilby-size_restricted.gif)



As I mid, I have some experience with juniors. They often try to make something work, but not maintainable in long time.
For example, if you give junior task "create CRUD" then it probably would be a mess. 

A god controller for everything with many private functions (Of course you should inform juniors why it's bad and teach them to do it in proper way!), but if you introduce CQRS and say "Hey, can you create use case with command and handler in the way I did before?" it will be more easier for junior and you. 
It will not ruin the entire system and you can test it without magic, cuz logic will remain in handler.

##So, then I should explain idea of CQRS to juniors?
![Alt Text](https://djnw5a0wszky0.cloudfront.net/inkfactorywp/wp-content/uploads/2019/06/HomepageIntroAnimation2019.gif)

Of course! These juniors deserve it. They are not some zombie coders, and it's good opportunity to teach them about good architecture.

##Ok ok, so how do you usually do it?

![Alt Text](https://media1.tenor.com/images/aa68352126d8f6152f05f82656fdd70f/tenor.gif)


I try to start with minimal environment. Just actions (single method from controller per file), commands, queries and handlers. I try not to make models in "domain" too smart if it's not required. They can remain anemic for now. And that's all. 

You are not supposed to do more about it, but of course I recommend to use full of DDD/Hexanogal/buzzwords if you can see profits from it.

Thanks for read!


In my opinion good sources for CQRS, DDD and hexagonal architecture.

https://martinfowler.com/bliki/CQRS.html

https://herbertograca.com/2017/11/16/explicit-architecture-01-ddd-hexagonal-onion-clean-cqrs-how-i-put-it-all-together/
What does success look like to you?
Tags: discuss, healthydebate, devlive, challenge
Published: 2020-03-13 18:13:18

I would love to know what you consider success?
What does Successful look for you?

Here is a brief version of mine:

{% twitter 1236426062042710016 %}

> Success, for me, is (1) the acquisition of time, not money (though it obviously helps), and (2) reduce my "desire inbox" to zero - what you desire owns you, one who wants nothing cannot be bought. 

> Saying "yes" here is a "no" there. Improve and reduce your "yes's".
Setting Docker proxy in Ubuntu
Published: 2020-03-13 18:12:21

---
title: Setting Docker proxy in Ubuntu
description: Docker proxy
published: true
---

sudo gedit /etc/systemd/system/docker.service.d/proxy.conf


[Service]
Environment="HTTP_PROXY=http://user:pass@address:port/"
Environment="HTTPS_PROXY=http://user:pass@address:port/"


sudo gedit /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTP_PROXY=http://user:pass@address:port/"

sudo gedit /etc/systemd/system/docker.service.d/https-proxy.conf 

[Service]
Environment="HTTPS_PROXY=http://user:pass@address:port/"


sudo systemctl daemon-reload
sudo systemctl restart docker.service
How we developed software to solve the problem of counting growing plants
Tags: ruby
Published: 2020-03-13 18:06:50

High accuracy

Information on how the plants are growing on the field is significant for further work on field processing, fertilization, crop forecasting. Previously, agrarian companies used traditional calculation methods. The number of plants was counted manually in several areas of the field and, according to specific formulas, the number of plants in the whole field was calculated. Such a method is imperfect and highly dependent on the quality of the agronomist's work.

Evrone has developed a software to solve the problem of counting the growing plants. All you need is a regular quadcopter with a set of equipment for video broadcasts, a computer and our software package.

Full story: https://evrone.com/plantscounter
Knex.js is crazy convenient, just like jQuery
Tags: node, javascript
Published: 2020-03-13 18:04:17

But do I need these dependencies?

```json
{
  "dependencies": {
    "colorette": "1.1.0",
    "commander": "^4.1.1",
    "debug": "4.1.1",
    "esm": "^3.2.25",
    "getopts": "2.2.5",
    "inherits": "~2.0.4",
    "interpret": "^2.0.0",
    "liftoff": "3.1.0",
    "lodash": "^4.17.15",
    "mkdirp": "^0.5.1",
    "pg-connection-string": "2.1.0",
    "tarn": "^2.0.0",
    "tildify": "2.0.0",
    "uuid": "^7.0.1",
    "v8flags": "^3.1.3"
  }
}
```

For jQuery, I would use [cash-dom](https://www.npmjs.com/package/cash-dom) instead; but is there something instead of Knex.js?

Indeed, I did use Knex in [a project](https://github.com/patarapolw/ankisync.js/blob/master/src/index.ts), and was quite satisfied. But if I don't have Knex, I would create [one](https://github.com/patarapolw/sql-easyquery) myself, anyway.
The Developer Relations Path - From College Student to Developer Advocate - Ask Me Anything!
Tags: ama, devrel
Published: 2020-03-13 18:00:36

---
title: The Developer Relations Path - From College Student to Developer Advocate - Ask Me Anything!
published: true
description: Often I will get questions about how I got into this field, what I needed to learn, and what steps to take. You can ask me anything in this blog!
tags: #ama #devrel
cover_image: https://res.cloudinary.com/tessamero/image/upload/v1584121585/devto/plane.jpg
---

Developer Relations is a fast-growing field with more tech companies adopting this concept as they are coming to a realization of how important having Developer Relations is for the success of their product. What better time than now to start?

Often I am asked how I got into my field and what steps they need to take to get there. As this is quite a broad area to define, it would make more sense to ask directly what your questions are. Tell me about your situation and where you are at with college/career and any involvement you have in the developer community.

I started back in 2011 taking courses on Web Application Development with my first required course being Visual Basic which was in the Comp Science area. Being one of the 2 only women in my class, and seeing half the class drop out by the end of the quarter was quite challenging but yet motivating to work harder to keep up with the others who are making it. A year later into college classes, I made it a goal to stay after every class, finish my code projects before most, and spend time helping others debug their projects which made it so not only did they learn a lot, I was able to absorb and learn from helping them debug. 

Following a series of thousands of situations of contributing to help make other developers more successful, which eventually led to a position as a Developer, then instructor teaching code, contributing to open source projects and developer communities, and now developer advocacy, I'd love to mentor/guide you through this blog post. I was inspired by someone who recommended I should look into Developer advocacy as a job [Mike Stowe](https://twitter.com/mikegstowe) and then having a mentor guide me on what steps to take to get there [Anthony Ferrera](https://twitter.com/ircmaxell) when he was at Google. Later down the road, [Jessica Rose](https://twitter.com/jesslynnrose) helped me through a lot of questions/situations and mentored me a lot. These people are amazing and simple things they've said to me have changed my life.

Who knows, maybe a simple reply from me could change your life?

Ask Me Anything.
Changelog: updated API docs!
Tags: changelog
Published: 2020-03-13 17:57:32

We recently updated the [documentation](https://docs.dev.to/api/) of the [DEV API (beta)](https://docs.dev.to/api/) to add detailed information on the following resources: comments, followers, listings, podcast episodes, tags, users and video articles.

The API documentation portal is generated from an [OpenAPI 3 specification](https://spec.openapis.org/oas/v3.0.3) file, built with [Redoc](https://github.com/Redocly/redoc) and deployed on [Netlify](https://www.netlify.com/). ❤️
Helping the Entertainment Technology Industry
Published: 2020-03-24 04:11:04

---
title: Helping the Entertainment Technology Industry
published: true
date: 2020-03-13 17:38:00 UTC
tags: 
canonical_url: https://www.maeganwilson.com/2020/03/13/helping-the-entertainment.html
---

One of the industries hit by COVID-19 is the entertainment industry. Festivals, gigs, performances, and conferences are being canceled, which is hurting the people who work those events. To help the people being affected by the cancellations, I am going to donate all of March’s proceeds I receive from my apps, [Buy Me a Coffee](https://www.buymeacoffee.com/appsbymw), or [Patreon](https://www.patreon.com/appsbymw) to Behind the Scenes.

If you are considering purchasing an app of mine or supporting me another way, [go here](https://www.maeganwilson.com/support/) to do one of those and know that your support this month will be given to Behind the Scenes.

If you feel inspired to donate directly, then please do!!! Here’s the link to [the Behind the Scenes donation page](https://wp.behindthescenescharity.org/product/donate/).

---

If you enjoy my posts, streams, and apps, consider encouraging by efforts.

<a href="https://www.buymeacoffee.com/appsbymw" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/arial-blue.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

[![](https://github.com/maeganjwilson/appsbymwblog/blob/master/static/images/patron.png?raw=true)](https://www.patreon.com/appsbymw)
How do you go back to legacy code?
Tags: discuss
Published: 2020-03-13 17:30:39

It's so fun working on a greenfield project, you can choose whatever stack you desire, you always learn new things. But then comes a time when you have to go back to your legacy code and you just miss this new stack you used before. I always want to refactor everything 🤣 How do you overcome this feeling when going back to legacy project?
Why Bootstrap?
Tags: anotherone, bootstrap
Published: 2020-03-13 17:29:52

Bootstrap is important, not just to myself but to developers worldwide because of the vast library it contains. No longer do you have to define and create your own classes. Classes are now imported as long as Bootstrap is linked and called on any element to style it. 

CSS is not required in order to use Bootstrap styles. The styles come from the imported library. I wonder if you can combine the two though, it would only make sense. What if you like the style Bootstrap has, but have some CSS code of your own that you can implement?

With Bootstrap, scaffolding is much simpler, although I enjoy the CSS process of scaffolding. Buttons are a breeze with Bootstrap, alliteration anyone? 
Bootstrap also facilitates the use of tables, typography, colors, pagination, drop-downs, forms, navigation bars and even carousel of images!
Como fazer redirecionamento de portas no Windows 10
Tags: windows10, dockertoolbox, docker
Published: 2020-03-13 17:01:59

---
title: "Como fazer redirecionamento de portas no Windows 10"
published: true
description: 
tags: windows10, dockertoolbox, docker
---

Já precisou fazer um redirecionamento de portas no Windows? Por acaso você já usou Docker Toolbox, e queria saber como evitar o uso do `192.168.99.100`? Hoje eu aprendi que dá pra usar o comando `netsh` pra isso. 

Acesse o Powershell como administrador, e digite

```powershell
netsh interface portproxy add v4tov4 listenport=80 listenaddress=127.0.0.1 connectport=80 connectaddress=192.168.99.100
```

Para saber se a regra foi aplicada, execute 

```powershell
netsh interface portproxy show all
```
Q: Authorization vs Authentication? Which is which?
Published: 2020-03-13 16:58:05

I'm not a native English/American speaker. Sometimes this strikes me more than expected. One of these occasions is definitely with the words Authorization and Authentication.

Maybe I'm missing something obvious, but when I hear either of the terms I can't help but to always google the definitions. I'm constantly mixing them in my head and can never make an educated guess on which is which.

From my perspective, this is nothing common. I see almost noone online expressing the same problem. However everyone at my office (of the same non-English native tongue as me) experiences the same issue. So my questions goes:

1. Are you a native English/American speaker but also struggle with the two words, the same way I am? Or do you also have English as second language, but have never struggled with these two words?

2. Have you (no matter native tongue) also struggled with it, but overcome with **some sort of memory rule to keep the two apart?** And if so, what?

That last bit is the most important question. I need a memory rule so I can keep them apart, and so I can tell my colleagues so we won't pick the wrong name suffix for our classes for the 9th time.

(Cover photo by [Andrea Piacquadio](https://www.pexels.com/@olly?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels) from [Pexels](https://www.pexels.com/photo/man-wearing-brown-jacket-and-using-grey-laptop-874242/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels))
Developer personas and psychographics segmentation
Tags: devrel, webinar
Published: 2020-03-13 16:58:02


#Developer psychographics webinar
##How developers perceive themselves

Developers come in all shapes and sizes. Whether you try to group them by the technologies they use, their coding background, their professional status, their demographics or their motivations, the conclusion is the same. The developer population is not a single homogeneous mass that may be expected to behave in a coherent way.

##Understand your developer audience##

Understanding the psychographics of your developer audiences is key in building effective communication channels with them. We’ll show you how psychographic profiles differ across development sectors (such as web, augmented reality, and machine learning), age groups, roles, and more. One size does not fit all, and to maximize the return on your dev marketing budget you need to align your messaging with what appeals to your specific audience. 

The webinar is presented by Christina Voskoglou, SlashData Director of Research.

Want to be notified for future webinars? [Fill-in this form.] (http://eepurl.com/gUo0D9) 

[weknowdevelopers.co] (https://weknowdevelopers.co)


{% youtube r7wH5Z6ePIE %}

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bfejd5vku8ouay0swbn1.png)
Servidores de colas
Tags: rabbitmq, emq, kafka, gearman
Published: 2020-03-13 16:56:42

{% spotify spotify:episode:1ERznQG0fBDrDNVl9x2gkc %}

Los servidores de colas son muy útiles cuando queremos dividir nuestros desarrollos, simplificando, creando microservicios y buscando dar más capacidad a la plataforma que estemos desarrollando.

Los servidores de colas permiten repartir el trabajo, establecen un mecanismo de comunicación entre procesos donde la información es generada por un productor del mensaje y consumida por uno o varios procesos que leen de una cola de mensajes.

Son en definitiva una forma rápida de clusterizar y permitir optimizar el consumo de recursos de nuestros sistemas sin generar un impacto directo en el usuario, que no tiene que estar esperando la carga de una página para lanzar una acción en segundo plano como generar un informe, o enviar un correo a una lista.