teleren/devto huggingface dataset:
Dealing with “We are used to working like that, so don`t touch it”-kind of projects
Tags: testing, qa, beginners, productivity
Published: 2022-09-27 11:05:47

Hi! My name is Artemiy. I am from international testing agency KVCH (https://kvchk.com). Want to share with you some of my stories, maybe it will be useful for someone. So lets start

**Here is the situation: I came to the project as a QA lead, trying to optimize processes.**
 
**What I saw:**
 
- Some of the tasks submitted by developers for testing don`t have any description: they just do something, change the status to “development completed” and send it to testers. Testers, in turn, see no documentation, no links to user history, no description of the task either. Of course, they blow up, mess with the developers, who start messing back and so on.
 
 
**What I did:**
 
- In the requests for submitting a task into the devbranch (requests pull), I added a template that automatically inserted the following text into the description:
 
For the convenience of the reviewers: “Summarize the changes in the code so that the reviewers would know what to check.”
 
What`s the purpose? Here`s a simplest example. The backender doesn`t want to look at the front code: he has plenty of his own problems. Therefore, we write what`s been changed in the backend, and the reviewer immediately looks at this part, without wading through the jungle of changes.
 
For the convenience of QA: “If there is no documentation or requirements, summarize what needs to be tested and where the tester should look.”
 
It seems that everything is simple - you create a request for submitting, the reminder pops up automatically, you remember that you forgot to describe the changes and write them.
 
At the beginning, it worked perfectly… to certain point. Soon enough, people just dropped it or even tried to sabotage (“What do I write here, everything`s clear: just read the user story”). The template text was being deleted, distorted to one letter and so on.
 
**What I changed:**
 
I decided to take another approach. I gathered the main saboteurs, who were too lazy to write a lot of text, listened to their indignation and came up with a solution that was brilliant in its simplicity.
 
I added just one phrase for the tester to the text of the template message: “Test according to the user history of the task, unless otherwise specified.”
 
Thus, if the developer has attached a user story to his task, then they don`t need to write anything, as the robot has already written everything for them. The developer clicks of the “Publish” button and keeps on coding. The tester, in turn, sees what to test in the attached user history, clicks there, and there is a description. Everyone is happy and satisfied.
 
That`s all.
 
Short and to the point, as they say. You got similar stories out there? Submit them in the comment section!
How To Install Gatsby on Ubuntu 22.04
Tags: javascript, gatsby, ubuntu, hostnextra
Published: 2022-09-27 10:56:36

In this article, we’ll explain how to install Gatsby on Ubuntu 22.04.

[Gatsby](https://www.gatsbyjs.com/) is a React-based open-source framework for creating websites and apps. It’s great whether you’re building a portfolio site or blog, or a high-traffic e-commerce store or company homepage. Create blazing fast websites and apps AND harness the power of 2000+ plugins. Build sites with the services you want, like Shopify, Stripe, and WordPress, quickly and easily with Gatsby’s 2000+ plugins. Integrate data from anywhere: APIs, databases, CMSs, static files — or multiple sources at once

This article will guide you with the installation process and deploying default starter Gatsby site.

**Prerequisites**
A Ubuntu 22.04 installed dedicated server or KVM VPS.
A root user or normal user with sudo administrator privileges.

**_Learn more:_** [Install Gatsby on Ubuntu 22.04](https://www.hostnextra.com/kb/how-to-install-gatsby-on-ubuntu-22-04/)
Why Are There So Few Women Programmers?
Published: 2022-09-27 10:48:29


Only **5%** of developers are women (source: [StackOverflow Developer Survey 2022](https://survey.stackoverflow.co/2022/#section-demographics-gender)). Someone recently asked me why there's so few women in tech. "It’s not a physically demanding job so why not?" he said.

I didn't really have a good answer to explain it, so I had a look around on the internet and made a summary of the top reasons I could find.

I tried keeping the article succinct and easy to read so excuse the surface-level analysis.

## Stereotypes

How your parents, teachers, media etc. treat you while you’re growing up influences your career choice. Some examples:

- If a friend has a broken computer, a parent might tell their daughter to 'stay away and let the man do it'
- A parent might buy toy cars, guns, legos etc. for a boy which are much more related to programming/engineering than barbies, cooking toys, etc.

## Women Don’t Want to Join a Male-Dominated Career

> There are so few women programmers because there are so few women programmers to begin with.

Being in a career dominated by the opposite sex can have it’s problems, such as:

- Greater chance of facing sexist comments, harassment etc.
- Being singled out or getting special treatment
- Masculine terms being used by default

## Lack of Role Models

Having role models are important. If a girl has an interest in programming but doesn’t see any other girl programmers, she might see that as a red flag and pursue another interest.

## Controversial Reason: Biological Differences

This is a very controversial reason made popular by [James Damore](https://twitter.com/jamesadamore) who got fired from Google for writing a memo suggesting this. 

I’m just mentioning it for the sake of completeness but note that none of his theories have been scientifically proven. The gist is:

> The brains of men and women are wired up differently which could explain some of the stereotypical differences in male and female behavior.

---
I've turned this post into a TikTok video which you can view on [my account](https://www.tiktok.com/@thatmichaelseymour) here if you'd like:
[Why are there so few women software developers?](https://www.tiktok.com/@thatmichaelseymour/video/7148008782050692357)
Vue $emit 傳遞參數的各種情況
Tags: vue
Published: 2022-09-27 10:40:42

1. 子組件不傳任何參數

```jsx
// child
this.$emit('push')

// parent
@push='handlePush'

handlePush(){

}
```

2. 子組件傳一個參數

```jsx
// child
this.$emit('push', 1000)

// parent
@push='handlePush'

handlePush(param){
	console.log(param) // 1000
}
```

3. 子組件傳多個參數，父組件接收需要使用`arguments`

```jsx
// child
this.$emit('push', 1000, 500)

// parent
@push='handlePush(arguments)'

handlePush(params){
	console.log(params[0]) // 1000
	console.log(params[1]) // 500
}
```

4. 子組件傳一個參數，父組件接收參數時還加上自己的一個參數，那麼父組件需要使用`$event`

```jsx
// child
this.$emit('push', 1000)

// parent
@push='handlePush($event, '小美')'

handlePush(param, name){
	console.log(param) // 1000
	console.log(name) // 小美
}
```

5. 子組件傳多個參數，父組件接收參數時還加上自己的一個參數，那麼父組件需要使用`arguments`

```jsx
// child
this.$emit('push', 1000, 500)

// parent
@push='handlePush(arguments, '小美')'

handlePush(params, name){
	console.log(params[0]) // 1000
	console.log(params[1]) // 500
	console.log(name) // 小美
}
```

### 結論

- 
如果子組件傳遞**單**個參數且父組件自己帶一個參數，則父組件需要使用名為`$event`的參數

- 
如果子組件傳遞**多**個參數，則父組件需要使用名為`arguments`的參數
Manfaat Dari Bermain Game
Published: 2022-09-27 10:35:16

Memainkan game online merupakan salah satu kegiatan yang banyak dijalankan banyak orang untuk menghibur diri di tengah kegiatan sehari-hari.
Namun, ada beberapa stigma negatif yang ada di tengah masyarakat, layaknya menghabiskan waktu, menghabiskan uang, menyebabkan orang kecanduan, dan tidak baik untuk mata.
Padahal, ada sejumlah kegunaan yang bisa didapatkan berasal dari bermain game online. Apa saja? Simak penjelasan selanjutnya ini.
## Meningkatkan kemampuan otak
Game online biasanya memiliki tantangan yang tidak serupa tiap tiap tingkatannya. Anda perlu memiliki trik untuk selesaikan tugas demi tugas yang berbeda. Hal ini menyebabkan otak bekerja lebih ekstra, terutama di dalam jelas hal-hal baru.
Dengan bekerja lebih ekstra, kinerja dan kapabilitas otak bakal meningkat. Anda pun bisa selesaikan berbagai kasus yang lebih kompleks, baik di dunia maya maupun nyata.
### Meningkatkan kerja sama tim
Seperti diketahui, berbagai game online populer, layaknya Mobile Legend, [ETS2 Mod Indonesia](https://www.ets2indo.com/), Playerunknown Battleground (PUBG), dan Free Fire, perlu kerja sama tim untuk memenangkan pertandingan.
Bermain game online tersebut secara tidak langsung bisa melatih kemampuan teamwork seseorang. Bahkan, kapabilitas kepemimpinan dasar pun bisa dilatih melalui game online.
### Meningkatkan selesaikan masalah
Seseorang yang bahagia main game online dinilai memiliki kapabilitas selesaikan kasus yang lebih luas. Sebab, saat mengalami kekalahan, pemain game akan mencari cara dan menyusun trik baru untuk memenangkan permainan.
Selain itu, pemain game online dikenal bersama kreativitasnya. Sebab, tidak jarang mereka perlu trik unik yang belum pernah dijalankan untuk bisa menggapai kemenangan.
### Melatih kesabaran
Nyatanya, melatih kesabaran termasuk menjadi bagian berasal dari kegunaan main game online. Pasalnya, saat main game online, Anda bakal diuji oleh musuh dan level permainan yang kerap menyulitkan.
Oleh gara-gara itu, bila sudah penat bermain game, sebaiknya beristirahat dan jangan dipaksakan untuk bermain. Jika dipaksakan, Anda bakal menjadi lebih sensitif dan enteng marah. Bermain game online pun menjadi tidak menyenangkan.
### Bisa membuahkan uang
Terakhir, game online juga bisa membuahkan uang, lho. Anda berkesempatan untuk memperoleh duwit bersama mengikuti kompetisi game online yang diadakan. Biasanya, suatu kompetisi game akan memberikan sejumlah duwit tunai bersama nominal yang mengundang selera untuk para pemenangnya.
Selain itu, kalau sudah terasa terlampau mahir di dalam bermain game online, Anda bisa mengunggah rekaman video permainan Anda ke YouTube [map pku ets2](https://www.ets2indo.com/2022/08/map-pku-update-spesial-hut-ri-ke-77.html). Cara ini sebenarnya lumayan merepotkan gara-gara Anda perlu saat untuk editing video.
Meski begitu, konten bermain game online di YouTube tengah populer dan digandrungi banyak orang sehingga bisa menjadi peluang Anda untuk meraup keuntungan.
Boost Docker Performance on Mac M1
Tags: webdev, docker, howto
Published: 2022-09-27 10:29:46

If you are a docker user or using docker container for MySQL or MailHog on your Mac M1 then you might have faced the performance issue especially when import SQL dump with enormous size (like more than 500MB or 1GB).

Now, docker desktop 4.6 and above versions does provide an option to boost the docker performance.

To enable this option, you need to have macOS 12.2 and above with docker desktop 4.6 and above.
* Open docker desktop
* Navigate to `Preferences` (the gear icon) > `Experimental Features`
* Select the `Use the new Virtualization framework` (this should be selected by default) and `Enable VirtioFS accelerated directory sharing` toggles
* Click `Apply & Restart`

![Enable VirtioFS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jb0eiupigt4nn4syptxz.png)
Customizing Your Own ZSH Prompt (without using OhMyZSH)
Tags: zsh, terminal, tutorial, beginners
Published: 2022-09-27 10:28:09

If you are using MacBook with macOS Catalina or newer, the terminal will use ZSH as default instead of Bash. So that it will look like this (more or less)

![Default ZSH Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4cf3su1nrvctrhndarb4.png)

Imagine working all day on terminal with single color only -- personally I would prefer to make my terminal more beautiful with adding colors on it plus having information about my current git branch.

During my journey of learning about dbt, I found an interesting forum's [post](https://discourse.getdbt.com/t/how-we-set-up-our-computers-for-working-on-dbt-projects/243). 

As a new user in MacOS env, I was introduced to [Iterm2](http://iterm2.com) and we are able to custom our zsh prompt. Hence I would like to share setup of mine and how to do the setup.

---

## How ?

To change the UI prompt, you just need to update your `~/.zshrc` with updating `PS1` value and set option for `PROMPT_SUBST`. Here's mine:

```bash
COLOR_DEFAULT=$'\e[0m'
COLOR_TIME=$'\e[38;5;43m'
COLOR_USER=$'\e[38;5;105m'
COLOR_HOST=$'\e[38;5;105m'
COLOR_DIR=$'\e[38;5;38m'
COLOR_GIT=$'\e[38;5;151m'

setopt PROMPT_SUBST
PS1='%{${COLOR_TIME}%}%* %{${COLOR_USER}%}%n@%{${COLOR_HOST}%}%m %{${COLOR_DIR}%}%~ %{${COLOR_GIT}%}$(__git_ps1 "(%s)") %{${COLOR_DEFAULT}%}\$ '
```

The final look will be like:

![Customized ZSH Prompt if the dir is not git repo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjzwjoowfcuar3v79dus.png)

![Customized ZSH Prompt if the dir is a git repo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjeu5uqjqwa5v3ttte1z.png)

## References

* To understand what `%*`, `%~` and other zsh prompt expression denotes. I suggest you to refer [this](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html#SEC59).
* For list of colors refer to [ANSI escape code colors](https://en.wikipedia.org/wiki/ANSI_escape_code). Use the 8-bit one.

## Possible Issues
If you are having issue with unusual behavior on tab autocompletion, make sure you have escape by `%{` `%}` between expression that changes color or boldness of the text. I highly suggest you to refer to:
* [ZSH Add More Tab when Autocompleting](https://unix.stackexchange.com/questions/85058/zsh-adds-tab-character-when-autocompleting?_gl=1*w0m5xs*_ga*NzY0NDk3MDEzLjE2NjQxNjIwNjM.*_ga_WCZ03SZFCQ*MTY2NDE5MzIyNS43LjEuMTY2NDE5Mzk3MS4wLjAuMA..)
* [ZSH Duplicating Command Name when Autocompleting](https://stackoverflow.com/questions/11916064/zsh-tab-completion-duplicating-command-name)
* [ZSH Add Extra Spaces when Autocompleting](https://stackoverflow.com/questions/28799198/zsh-inserts-extra-spaces-when-performing-searches-and-completion) (similar to first link)
Should I use database index or not?
Tags: database, architecture, performance
Published: 2022-09-27 10:25:09

Indexes are a database structure to efficiently optimize your queries. A pointer is created to quickly find data instead of scanning your entire collection/table.

However, you need to know when to use or which type of index to optimize your queries.

Just as this can speed up your queries, it can slow down your entire database and increase the maintenance cost. Poorly chosen indexes decrease your performance by having to restructure all your [B-tree](https://en.wikipedia.org/wiki/B-tree)

## When to use an Index?
Analyzing your application is essential when choosing an index, which queries are being hit mostly? Does this one need to be faster? Will you give up inserting/updating speed to save time on readings?

Selecting Indexes that will be used in many queries will help your index be more accurate and performant.

Indexes should be used where you need to do a lot of reading operations on larger collections/tables or in searches that need to be fast.

## When to not use an Index?
When your database has a lot of writes and read operations in indexed fields might be a lot expensive since your database will have to rewrite all your indexes.

For each writing operation, you are writing 2 times in your database, once the data and another for the index, taking up disk space and consuming more hardware to maintain the same, in large amounts slowing down your database.

Modeling your database by thinking about the number of writes operations that it will have, whether `INSERT`, `DELETE`, or `UPDATE` will save you a lot of headaches if you need fast `READ` operations.

Analyzing when you need fast insertions also will help you optimize your perfomance.

## Conclusion
Choosing an index is not as easy as it seems, knowing how to analyze your indexes is an essential step to doing something performant, but when well chosen this will certainly optimize your queries.

Feedbacks on [Twitter](https://twitter.com/manelferreira_)
Cooking a better developer
Published: 2022-09-27 10:17:05

This article is decide for developer who can cooking.

Do you know any recipe that you can make anytime without going to Google? I watch a lot of movies about vegan Iranian food (my favorite food) and try to make many different variations, but always I must watch to tutorial.

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

But today I realized that it's the same with programming. I know a lot of programmers who can only with Google, this is a bad way for developers in my opinion.

Are you even trying to do something yourself? If you worked on the chat app, did you use google? If so, get yourself a new booster and try to do even the smallest thing like slicing an onion.

The moment when you stop (need to Google) defines you as a programmer. In my opinion, this is one of the best ways to improve skills.
What got you here? Where are you going?
Tags: beginners, elixir, life, programming
Published: 2022-09-27 10:13:38

As I mentioned on a previous post, I had not written a line of code in 23 years, and now I am in the eye of an Elixir hurricane.

Emotions abound. I feel a giddy excitement everytime my brain starts to grasp something fully, that light at the end of the mental tunnel of knowing one is about to get it. Progress can be addictive. It seems we are hard-wired to figure things out, master things. We get rewarded from inside.

Other feelings are not as friendly, and I have made it a zen-lixir practice to notice them but not be informed by them. Those would be frustration, self-doubt, boredom, and laziness.

I am parenting my inner rebel to just sit, study, and go through the entire marathon, both intellectual as well as emotional, and come to my conclusions once I have a good grasp of the languange and the industry.

Other good emotions are the promises of the future. As someone with a bit of a creative, entrepreneurial, and adventurous mind, the thought of becoming nailed to a chair and spend a good portion of the gift of life interacting with a screen makes my stomach cringe. Simultaneously, there are many things in life that are not easily accessible unless they are supported by a firm foundation in the form of a job and/or career.

Some of those things are also adventures, creations, opportunities, expansions which tickle the soul and dreams. Many things in life are possible when you become really good at something, contribute abundantly, and get fairly compensated for it.

For me, some of those are taking my musical production to the next level, building a decent studio on the way. Moving to a less urban environment and be closer to nature, hopefully the ocean. Take care of my parents as they grow old. Travel to see my friends (who have a habit of settling far, far away)... There are things I would love to study, projects I would love to build. I leave the door open to finding a woman crazy and brave enough to create a dinasty with me, old-fashion style. I will need a small bus as well as a reasonable-size abode for that little army.

Those dreams fuel my motivation to becoming an asset to this industry, and serve as pacifiers whenever the inner rebel struggles with understanding maps, structs, and other (still) difficult concepts.

How about you? What do you dream about as you code? How did you end up here? What juices you about all the hours you spend on the screen? What is that you like the most about this industry and makes you feel alive? What is that frustrates you or wish was not part of the deal?


```
git add .
git committ -m "there is a dream behind every line of code"
```


BigSpaces
Sequelize query * with count by field
Tags: sequelize
Published: 2022-09-27 10:11:56

Hi everyone

Can you help to rewrite this raw query by sequelize? Thanks

`select * ,
(select COUNT(*)
	from outreachcontacts 
	where primaryContact  = table_alisa.primaryContact 
) as count

from outreachcontacts  as table_alisa `
Idrotherapy Reviews | What Are The Customers Saying? About This Know Before Buy!
Published: 2022-09-27 10:10:54

I know this Idrotherapy concept is easy and easy to implement. It's the moment to put up or shut up. There are many ways to do this. The area of interest is my cup of tea. I love hearing from circles like you. With it this is unlikely to happen. I feel that if you look at the future of Idrotherapy, something can be replacing it soon. Been there, done this. This is up for grabs. We don't know our own strength. Using that can be incompatible with the phenomenon. Let's bring in this discussion. Should a man or woman could be discovered anywhere which enjoyed this I couldn't be amazed. This is no gimmick. It should make good sense. I realized this hardest part bordering on using it is getting useful info. Sweet! 


https://www.outlookindia.com/outlook-spotlight/idrotherapy-australia-wrinkle-reducer-cream-critical-customer-report-you-need-to-see-news-225925/

https://www.scoop.it/topic/idrotherapy-by-idrotherapy
https://telescope.ac/idrotherapy/idrotherapy
https://promosimple.com/ps/227f4/idrotherapy
https://colab.research.google.com/drive/1DETGmgk7r6MA9KIXMJS9oFMQ5iXXxsDY
https://managementmania.com/en/blog/uoivbdrg-lee/idrotherapy-anti-aging-cream-is-it-worth-for-you-or-scam-you-need-to-know-before-take-it
https://playpass.com/idrotherapy-OFQzDEU/idrotherapy-user-complaints-first-know-about-this-skin-care-product-TB5uAZ3
https://www.podcasts.com/idrotherapy/episode/idrotherapy-reviews-reduce-wrinkle-best-skin-care-products-see-latest-news
https://forum.techtudo.globo.com/perguntas/471867/idrotherapy-user-complaints-first-know-about-this-skin-care-product
http://idrotherapy.wikidot.com/
https://idrotherapyreviews.simplesite.com/
https://caramellaapp.com/ristrxdmn/PPmuWGnyQ/idrotherapy
https://jobs.blognone.com/company/uoivbdrg-lee/job/idrotherapy-reviews-aQ3w
https://techplanet.today/post/idrotherapy-anti-aging-cream-is-it-worth-for-you-or-scam-you-need-to-know-before-take-it
https://medium.com/@idrotherapy/idrotherapy-reviews-reduce-wrinkle-best-skin-care-products-see-latest-news-eab37689a1ac
https://evvnt.com/events/?_ev_id=1352212_idrotherapy_anti_aging_cream_is_it_worth_for_you_or_scam_you_need_to_know_before_take_it&touch=1664269727
https://gotartwork.com/Blog/idrotherapy-reviews-reduce-wrinkle-best-skin-care-products-see-latest-news-/59724/
https://idrotherapy.storychief.io/idrotherapy-reviews-australia-2022-must-read-before-buying-latest-update
https://melaninterest.com/pin/idrotherapy-reviews-australia-2022-must-read-before-buying-latest-update/
https://idrotherapy.substack.com/p/idrotherapy-reviews-australia-2022
https://hackmd.io/@uoivbdrg/Idrotherapy
https://twitter.com/idrotherapy
https://www.facebook.com/profile.php?id=100086477431973
https://www.instagram.com/idrotherapyprice/
https://www.pinterest.com/pin/890938738759250527/