teleren/devto huggingface dataset:
What am I currently reading 📚 📚
Tags: todayilearned, learning, unittesting, testyourcodebetter
Published: 2022-02-24 08:15:52

https://noidea.dog/glue - A coworker shared this article and it is amazing to understand how much important glue work is for a project and what it means for a Senior Engineer to be that glue.

https://livebook.manning.com/book/the-art-of-unit-testing-third-edition/welcome/v-6/1

Powerful insights from Chapter 1 : 
So, what’s a “good” unit test?

Unit tests should run quickly and be consistent in its results (it always returns the same result if you don’t change anything between runs).
- should have full control of the code under test.
- should be fully isolated (runs independently of other tests).
- should run in memory without requiring system files, networks, databases.
- should be as synchronous and linear as possible when it makes sense. (no parallel threads if we can help it)

Wait... Synchronous??? What about asyncs/awaits..

From a unit testing point of view, we should find a way to make the processes happening through a single path in a unit of work, from entry point to exit point, as synchronous as possible. That might mean triggering callbacks directly from the test, or it might mean faking the time in the test to the point **where the test does not need to wait for any async code to finish executing**, unless there’s no other choice (at that point it might not be a unit test, but the situations can vary quite a bit).
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2022-02-24 08:00:26

---
title: "A Quick 10-Second Programming Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258922d1b9.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
I’ve been hearing news about this big boolean.

Huge if true.
 -->
My prep towards AWS Solutions Architect certification
Tags: productivity, tutorial, aws, todayilearned
Published: 2022-02-24 07:58:03

First things first : 1. I finally made up my mind to take this certification. have been putting it off since last October..phew 

2. Purchased course material from Udemy - costed about $40( got a good deal) Here's the link to purchase - https://www.udemy.com/course/aws-certified-solutions-architect-associate-saa-c02/

3. There are a total of 30 Sections with each section divided into little pieces for easy digestion ( love that!) 

Course starts off with AWS Cloud Overview - Regions, Tour of the Console & Services in AWS 

4. Major topics 

- IAM & AWS CLI 

- EC2 Fundamentals 

- EC2 Solutions Architect Associate Level 

- EC2 Instance Storage 

- High Availability & Scalability - ELB & ASG 

- RDS + Aurora + ElastiCache

- Route 53

- Amazon S3 & Athena

- AWS SDK, IAM Roles & Policies 

- CloudFront & AWS Global Accelerator 

- AWS Storage Extras

- SQS, SNS, Kinesis, Active MQ

- Containers on AWS : ECS, Fargate, ECR &EKS 
 and many more...
Attach physical hard disk to Xen/XCP-ng Server
Tags: xenserver, xcpng, disk
Published: 2022-02-24 07:52:34

Login to Server via SSH.

Install `lshw`
```
yum install lshw
```

Check disks:
```
lshw -class disk -short
```

This command will show the `device name` of disks.

Get host uuid:
```
xe host-list
```

Create/Attach disk:

```
xe sr-create content-type=user device-config:device=<device-name> host-uuid=<host-uuid> name-label="Disk-Label"  shared=false type=ext
```

This will return new disk uuid and now you will be able to see the disk with the `label` in `Storage` section of your `Xen Center` or `XCP-ng Center`
A Clone Project 2
Tags: javascript, react, github, career
Published: 2022-02-24 07:50:23

We've started this project with four members. One of us has great knowledge and naturally she became a leader. 

Here's our plan:
    Week 0 - Decide what webpage we clone
    Week 1 - Decide libraries and frameworks to use 
             Assign each member sections to work on
    Week 2 - Finish coding and merging on GitHub
    Week 3 - Complete our project

We've had three meetings so far. We discussed details, we practiced fetching, pulling, pushing, and merging as well as resolving a merge conflict, and we tried to familiarize ourselves with _issues_.

I never get overconfident on anything, but I found that I knew  much much much much less about GitHub than I thought. I was especially misunderstanding branches and Gitflow, so I list all that I've learned.

**GitHub / repository**


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

**main** = _default branch_
     When we create a repo, we get one base branch.

_head branch_ (We name the branch)
     We create a new branch to work. 

FLOW
**main**  ->  create a new branch  ->  add/code 
->  "put it back to main" = merge/pull request
->  delete the head branch


**Command Line / Terminal**

`$ git branch`              --List all branches
  `main`                    --Green means the current branch
  `example1`

`$ git checkout example1`   --Switch branch

`$ git checkout -b example2` --Create + switch to a new branch

( code -> git add . -> git commit -m "add some message" )

`$ git checkout main`       --Move to a main branch to pull

`$ git merge example2`    --Better to check the current branch

`$ git branch -d example2`  --Delete example2 branch

`$ git push`             --Might get an instruction. Follow it


**GitHub / repository**


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


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

_When merging with admin, make sure to choose develop, not main_


We completed this project without any merge conflicts. We were happy with our project. Throughout this group project, I learned a lot about how to use GitHub, how to work as a team, and how to write clean, readable code
VisiClear Reviews Customer - Scam Or Legit Is It Worthly Buy
Tags: health
Published: 2022-02-24 07:40:16


You'll discover [VisiClear](https://ipsnews.net/business/2022/02/18/visiclear-eye-care-formula-hoax-or-really-work-price-ingredients-precautions-and-warnings/) soon enough on your own but also I had the quintessential American dream. I have recently begain a significant alliance. Presumably, I often do that. That is historical material. That's how to become a pro. I imagine doing this was giving more light than heat. This is really a luscious option to take into account. What type of VisiClear do you have? I've been working grueling hours. Where can regular folks salvage invaluable VisiClear Reviews conclusions? Doing this with that example now and worrying about it later is an eminently defensible strategy. This is the lowest price I've ever seen. Through what medium do big babies encounter peerless VisiClear Reviews coupons? Moving forward, we should chew over starting a little hands-on experience to try working with this VisiClear Reviews. We're head over heels. This may seem to be a burdensome homework assignment. How could I have seen this would happen? You can learn that from the competent people you know. This is silly. It is rated high by experts. If your VisiClear Reviews is solid, you're 67% of the way there. Plainly, "Early to bed and early to rise, makes a man healthy, wealthy and wise." Leave me a comment if you're confused with reference to it. A topic is very praiseworthy. 

[https://ipsnews.net/business/2022/02/18/visiclear-eye-care-formula-hoax-or-really-work-price-ingredients-precautions-and-warnings/](https://ipsnews.net/business/2022/02/18/visiclear-eye-care-formula-hoax-or-really-work-price-ingredients-precautions-and-warnings/)
Task Vs Thread ( C#) 
Tags: taskvsthread, csharp, parallelprogramming, async
Published: 2022-02-24 07:39:20

Notes gathered from different sources: 

**System threads are nothing but resources for tasks**

Key differences between Task and Thread

Usually you hear Task is a higher level concept than thread... and that's what this phrase means:

1. You can't use Abort/ThreadAbortedException, you should support cancel event in your "business code" periodically testing **token.IsCancellationRequested** flag (also avoid long or timeoutless connections e.g. to db, otherwise you will never get a chance to test this flag). By the similar reason **Thread.Sleep(delay) call should be replaced with Task.Delay(delay, token) call** (passing token inside to have possibility to interrupt delay)

Code sample for Cancellation Tokens in my github repo : https://github.com/aburra12/TaskCancellation

2. There are no **thread's** Suspend and Resume methods functionality with tasks. Instance of task can't be reused either.

But you get two new tools:

**a) continuations**

// continuation with ContinueWhenAll - execute the delegate, when ALL
// tasks[] had been finished; other option is ContinueWhenAny

```
Task.Factory.ContinueWhenAll( 
   tasks,
   () => {
       int answer = tasks[0].Result + tasks[1].Result;
       Console.WriteLine("The answer is {0}", answer);
   }
);
```

b) nested/child tasks
//StartNew - starts task immediately, parent ends whith child
```
var parent = Task.Factory.StartNew
(() => {
          var child = Task.Factory.StartNew(() =>
         {
         //...
         });
      },  
      TaskCreationOptions.AttachedToParent
);
```
 
3. The task can return a result. There is no direct mechanism to return the result from a thread.

4. A task can have multiple processes happening at the same time. Threads can only have one task running at a time.

5. A new Thread()is not dealing with Thread pool thread, whereas Task does use thread pool thread.

**How to create a Task**
```
static void Main(string[] args) {  
    Task < string > obTask = Task.Run(() => (  
        return“ Hello”));  
    Console.WriteLine(obTask.result);  
} 
```

**How to create a Thread**
```
static void Main(string[] args) {  
    Thread thread = new Thread(new ThreadStart(getMyName));  
    thread.Start();  
}  
public void getMyName() {} 
```
Flutter Recipe Maker for My Online Grocery Shopping in Chennai App Challenge
Tags: flutter, flutterapp, appchalleng
Published: 2022-02-24 07:37:40


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5ly4k2u23ai4e6sif6v.jpg)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ui4bex5pzw3tycplgaje.png)I have created online grocery shopping app for chennai peoples.

We want to deliver rich user experience in **[online grocery shopping in chennai ](https://www.skholla.in/)**

If anyone build clone app with recipe maker module in your app

Slider : Using our Designer we develop slider image wich has CTA 
CTA : "Make Now"
Tip : It is like a TodoList
Suggested Server SIde Script : Codeigniter or Laravel 

Task Description : If any user click make now button it should show drop down list of text box.They can add multiple items. Finally They have to save with file name and Place the Order.

Our Efforts : We already tried in our local host in web script only

Rewards : 
Full Time Job near HCL Technologies Company in Chennai
Starts with 20K to 50K

Reach out or Refer your Friends wants to onboard fluttyer developer job in chennai
Laravel 9 Multiple Image Upload Tutorial
Tags: laravel
Published: 2022-02-24 07:34:27

Hello all! In this article, we will talk about laravel 9 multiple image upload example. this example will help you laravel 9 multiple images upload. it's a simple example of multiple image upload laravel 9. Here you will learn laravel 9 multiple image upload with preview.

Here, we will install laravel 9 and create a simple form with a file input field that you can use to select multiple images. after submitting the form we will store those images in a folder and database.

So, let's follow the below step to create multiple images upload in the laravel 9 application example.

[Laravel 9 Multiple Image Upload Tutorial](https://www.codecheef.org/article/laravel-9-multiple-image-upload-example-tutorial)
Laravel Pivot Table | Eloquent Many To Many Relationship | Laravel 9 Tutorial
Tags: laravel, beginners, tutorial, programming
Published: 2022-02-24 07:24:35

{% embed https://www.youtube.com/watch?v=GJG3W6CdNRo %}

This video will dive into Eloquent’s Many to Many Relationship in Laravel.
Laravel many to many with pivot table going deeper. This is a deep dive into belongsToMany Relationships in Laravel.

Follow me:
Twitter: https://twitter.com/Laravellercom
Facebook Page: https://www.facebook.com/1laravellercom
Instagram: https://www.instagram.com/laravellercom/
Github: https://github.com/laraveller
Website: https://laraveller.com/

Playlists:
Laravel Testing For Beginners: https://bit.ly/3t1gNq4
Laravel Roles and Permissions: https://bit.ly/3gOhM7d
LARAVEL INERTIA MOVIE APP: https://bit.ly/3FVMp4Q
Laravel Livewire Movie App: https://bit.ly/3s8D6v1
Laravel Classified Website - https://bit.ly/3nsFRnb
Livewire Employees - https://bit.ly/2ZtIpZY
Laravel Employees Management - https://bit.ly/3Gglt14
Laravel admin panel - https://bit.ly/3CcX75M
The Future Is Here - Healenium - A self-healing Selenium test automation library
Tags: selenium, testing, testautomation, future
Published: 2022-02-24 07:15:46

---
title: The Future Is Here - Healenium - A self-healing Selenium test automation library
published: true
date: 2022-02-24 06:50:56 UTC
tags: selenium, testing, testautomation, future
canonical_url: https://mszeles.com/the-future-is-here-healenium-a-self-healing-selenium-test-automation-library
---

Have you ever found yourself in a situation where you realized a small change of the UI broke your E2E test again? Well, it happens to me very often.

Recently I read [an article](https://medium.com/geekculture/healenium-self-healing-library-for-selenium-test-automation-26c2358629c5) from [Anna Chernyshova](https://medium.com/@anna.chernyshova?source=post_page-----26c2358629c5-----------------------------------) on [medium.com](https://medium.com/@mszeles) about an interesting library called Healineum which can come to the rescue.

Healenium is an AI-powered open-source library that improves the stability of Selenium-based tests, handles changes of updated web elements automatically and helps to overcome the problem of UI autotests instability using a self-healing mechanism.

Read the full article

[https://medium.com/geekculture/healenium-self-healing-library-for-selenium-test-automation-26c2358629c5](https://medium.com/geekculture/healenium-self-healing-library-for-selenium-test-automation-26c2358629c5)

**What do you think about Healenium? Will you give it a try?**

📚 **Join the Selenide community** on [LinkedIn](https://www.linkedin.com/groups/9154550/)! ✌

[Buy me a coffee!](https://buymeacoffee.com/mikiszeles) 😊
The Easiest Way To Install Node.js on Linux/MacOS
Tags: javascript, node, nvm, webdev
Published: 2022-02-24 06:22:20

I've been riding the learn (build) in public wave for the past month. 

Here's what I've been doing:
- I code or learn for an hour
- Report my progress on [Twitter](https://twitter.com/maupanelo/status/1496684030556704772)
- Push my code to GitHub for others to see

I started learning Typescript a week ago. When I started setting up my laptop for Typescript, I needed to find a way to install Node.

I found that Node Version Manager ([nvm](https://github.com/nvm-sh/nvm)) was one of the easiest way to install Node.

## Installing nvm is super easy
You find the [instructions](https://github.com/nvm-sh/nvm#installing-and-updating) on the official repository. Run the following:
```
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
```
Then paste the following in your profile file:
```
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
```
If you face any issues, refer to the [README](https://github.com/nvm-sh/nvm/blob/master/README.md).

## Install Node using nvm
Installing a specific version of Node:
```
nvm install <SPECIFIC_NODE_VERSION>
```
Installing the latest LTS version: 
```
nvm install --lts
```
## Using the installed Node version
Switching between Node versions is simple when using `nvm`. This is helpful when your different Node projects use different versions.

You can choose which Node version you want to use:
```
nvm use <SPECIFIC_NODE_VERSION>
```
## Conclusion
I recommend installing `nvm`. It simplifies the process of installing NodeJS. The bonus is having different versions of NodeJS installed.

Let me know what you think. Are there better alternatives? Suggestions?

Thank you for reading!
Speedup your Jest tests in GitHub Actions
Tags: github, githubactions, jest
Published: 2022-02-24 06:40:21

---
title: Speedup your Jest tests in GitHub Actions
published: true
date: 2022-02-24 03:43:57 UTC
tags: #github #githubactions #jest
canonical_url: https://bharathvaj.me/blog/speedup-jest-github-actions
---

Recently at work, was working on optimizing the jest unit test case CI execution time for our front-end application. We are using [GitHub Action](https://github.com/features/actions) that runs on every PR raised against `master` branch.

### Backstory

At our current scale, it roughly takes about `~14mins` to complete. We have this branch protection rule where the automated test cases should pass in order to be eligible for merging to `master`.

We have many developers working on this repository and on average 15+ PRs are raised per day. Also, this CI action will run every commit that is pushed to the branch after the PR is raised.

This reduces the velocity of the developers at the same increases billing costs unnecessarily.

 ![Raw time](https://i.imgur.com/NPeTwup.png)

In the above image, you can see we also have Jest Cache enabled. Though this reduces the time considerably still it is not enough.

### Mainstory

Asked my buddy Google and tried a couple of solutions suggested. Nothing worked!!!😔. At first glance, this appeared like this is expected as the codebase has grown large, but wanted to confirm before arriving at a conclusion as usual 😜.

Started verifying whether the optimization configurations provided by jest out of the box are working as expected one by one. Surprisingly one setting [**maxWorkers**](https://jestjs.io/docs/cli#--maxworkersnumstring) was not working as mentioned in the CI environment. As per the docs, jest will utilize all the available cores in CI env. GH Action provides 2 cores Linux machines and Jest was consuming only one!!!.

 ![Gotcha](https://media1.giphy.com/media/jOyc4EahGNPb3FoNuk/giphy.gif)

When we explicitly passed the value as 2 `--maxWorkers=2`, the time got reduced by **~6mins**.

 ![Optimized time](https://i.imgur.com/IxNK8TR.png)

Yeah! I know it is time-consuming to verify, but is really worth it since it is now 6 mins less wait for every developer working on this project for every PR push. Just do the Math!!!

 ![Wow](https://media2.giphy.com/media/QXPmPdudTz4So2P4OQ/giphy.gif)

Happy Hacking!
we have a website
Tags: blog, beginners, womenintech, writing
Published: 2022-02-24 05:55:45

In case you missed it, we finally figured out domain issues with the website and now have a simple easy to read website hosted on GitHub Pages.
 
 [https://www.womxnbuild.xyz/](https://www.womxnbuild.xyz/)

Wait, that's not it!

We are launching a new weekly-ish digest of cool tech content for the community and a space to work on ideas soon!

Watch the [Twitter page](https://twitter.com/womxnbuild) for more updates ;)
How Do I Choose The Best Magento Development Company For My Ecommerce Store?
Tags: ecommerce, magento
Published: 2022-02-24 05:50:58

Magento was launched in 2007 as an open-source platform for e-commerce development and has since gained a majority stake in the e-commerce industry. It has become a very popular platform in the e-commerce sector and is preferred by thousands of entrepreneurs. In 2019, Adobe acquired a major opus in the IT sector, Magento, and is now a business version known as Adobe Commerce (formerly known as Magento Commerce). With the growth, Magento development companies have also grown worldwide. **[Read More](https://citymagazine.org/how-do-i-choose-the-best-magento-development-company-for-my-ecommerce-store/)**.
Usabilidade 
Published: 2022-02-23 22:49:09

RESUMO
Curso de usabilidade

Contexto de usuário

é algo em que a pessoa prefere, por exemplo o vaso sanitário do Japão, aqui não usamos muito, mas lá no Japão eles usam muito mais, aqui (no Brasil) usamos privada normais para nós, cada país tem o seu jeito de usar as coisas e seus jeitos.


Negócios 

Conhecer o marketing que está muito alto nos tempos de hoje em dia, pesquisar o que o concorrente tem a mais que você, e atualizar as sua lojas com coisas novas.


Tecnologia 

Algo novo por exemplo os VR que são coisas novas na humanidade, tem seus pros e contra enjoou etc. São coisas novas nos nossos tempos.


 Processo

Um ciclo
Pesquisa
Conceito 
protótipo 
validação 
desenvolvimento 
Mercado 





Heurísticas de usabilidade

10 Heurísticas de Usabilidade 

Jakob Nielsen, 1994
Heurística = regra geral, não especificada 
•	Princípios de design de interação
•	Análise de 249 problemas

Visibilidade do status do sistema 

•	Manter o usuário informado sobre o que está acontecendo 
•	Retorno apropriado 
•	Dentro de um período razoável 


Correlação com o mundo real

•	Linguagem do usuário: palavras, chaves e conceitos familiares 
•	Convenções do mundo real 
•	Ordem lógica e natural


Controle de usuário 

•	Saída de emergência 
•	Menor esforço
•	Suporte “undo” (desfazer) e “redo” (refazer)


Consistências e padrões 

•	Termos, situacionais ou ações consistentes 
•	Convenções da plataforma


Prevenção ao erro 

•	Elimine propensão ao erro
•	Apresenta uma confirmação para prevenir erros críticos


Reconhecimento ao invés de memória
 
•	Ajuda contextual
•	Informações para orientar o usuário
•	“Diálogo” com o usuário


Flexibilidade e eficiência de uso

•	Fácil para usuários leigos
•	Flexíveis para se tornar ágil para usuários avançados 


Facilite reconhecimento, diagnostico e recuperação de erros 

•	Linguagem corrente 
•	Indicação clara do problema 
•	Sugestão da solução


Ajuda e documentação

•	Visíveis
•	Facilmente acessada
•	Ferramenta de buscas


Avaliação de UX (IVEX)

Métodos

Inspecionais: análise de um especialista 

Interpretativo: análise qualitativa de IHC

Estáticos: análise quantitativa de IHC


Paradigma de avaliação

Guerrilha 
Testes de usabilidade 
Pesquisa de campo Avaliação 
Preditiva


Protótipo em papel

Baixa fidelidade 
Alta fidelidade






Prototipagem rápida: Software
Marvel: design 

Prototipagem plataforma
Adobe XD e Sketch são pagas
Figma gratuita 


Framework Decide
Determine os objetos
Explore as questões 
Escolha um método e abordagem de avaliação 
Identifique questões práticas
Decida como lidar com questões éticas/legais
Avalie, análise, intérprete e apresente os dados


UX (IVEX)
UI (IUAI)
BI (BIAI)
Python Django for Beginners
Tags: python, django, webdev
Published: 2022-02-24 05:44:44

In this series of videos, I introduce the fundamentals of the Django web framework. I make easy explanations to allow beginners to get started build web applications using the Django web framework.
[This is the link to the playlist](https://youtube.com/playlist?list=PLEt8Tae2spYnEeJM9ZDgSrA5_7Cl3nLaI)