teleren/devto huggingface dataset:
On Concurrency
Tags: umkc, cs441
Published: 2022-05-06 22:47:50

*Photo by [Jørgen Håland](https://unsplash.com/photos/4yOgRb_b_i4?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink) on Unsplash*

---
This is a high-level overview of concurrency in programming languages. I'm writing it for my own review purposes, but maybe you'll find it useful too.

## Motivations

1. 🤔 **Logic.** Some problems are naturally concurrent so it makes sense to handle them this way. Think web servers, graphics, AI.
2. 🏎️ **Speed.** Concurrency lets us fully use multiple processors or cores to maximize computational speed.
3. 📡 **Distribution.** Machines that work across the internet are inherently concurrent. Writing concurrent software helps to address their unique needs. 

## Types of Concurrency

There are a few different types of concurrency to be aware of:

![venn diagram of concurrency types](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5lv8lyiq7nlhvuhindl7.png)

Note that **coroutines** are off to the side. Since they switch between tasks at defined points (not arbitrarily), they aren't *truly* considered concurrent.

## Levels of Concurrency

Going from most atomic (smallest divisions) to least atomic (biggest divisions):

1. 🦐 **Instruction-Level.** Multiple instructions executing at once. Mostly hardware. Focus of research for 40+ years, but physical limits have been reached.
2. 🪓 **Vector-Level.** Split up large datasets. Big usage in GPUs. Only benefits certain types of programs.
3. 🐫 **Thread-Level.** Current focus. Needed for multiple cores. Requires programs to be specially written to take advantage.
How to Disable Auto Off in Android Emulator?
Tags: android, beginners
Published: 2022-05-06 22:33:09

**There are few options you can disable Android Emulator from automatically being turned off.**

Since I have updated my Android Studio version to Bumblebee version, my Android emulator automatically turns off after few seconds. The screen is all black. I need to turn it on again from time to time. 

To avoid doing that, you have few options:

## 1. Change to AC Charger Connection

This is my prefer option and also the easiest option. Go to **Extended Control** from your Android emulator. 

![How_to_Disable_Auto_Off_in_Android_Emulator_01.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644208514251/_HcfY1hv2.png)

In **Battery->Charger Connection**, select **AC Charger**.

![How_to_Disable_Auto_Off_in_Android_Emulator_02.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1644208543821/pMQkT8Gq7.gif)


## 2. Change Sleep to 30 Minutes

In your phone **Settings -> Display**, change the **Sleep** to 30 minutes.

![How_to_Disable_Auto_Off_in_Android_Emulator_03.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644208829721/y1aFYmgARb.png)

## 3. Turn on Stay Awake Developer Option.

If you have enabled, you can try to turn on **Stay Awake** developer option. 

![How_to_Disable_Auto_Off_in_Android_Emulator_04.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644212842246/aTQy55yIg.png)

> No, it does not work! I 

I tried to change **battery status** to **charging** in the emulator extended control, and it doesn't work too. Maybe this is a bug.

![How_to_Disable_Auto_Off_in_Android_Emulator_05.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644213036138/D2gpuLglg.png)

## Summary

**Change to AC Charger connection** is the easiest way to prevent your phone goes to sleep or blank screen. I probably have this option turned on in my previous Android Studio. So it probably has nothing to do with Android Studio Bumblebee version. 

---

*Originally published at [https://vtsen.hashnode.dev](https://vtsen.hashnode.dev/how-to-disable-auto-off-in-android-emulator)*.
AlmaLinux 8.6 "Sky Tiger" Beta - Now Available
Tags: opensource, linux, cloud, almalinux
Published: 2022-05-06 22:33:09

# AlmaLinux 8.6 Beta is now available

Hello World! We proudly present to you AlmaLinux 8.6 Beta "Sky Tiger" for [x86_64](https://mirrors.almalinux.org/isos/x86_64/8.6-beta.html), [ARM](https://mirrors.almalinux.org/isos/aarch64/8.6-beta.html) and [ppc64le](https://mirrors.almalinux.org/isos/ppc64le/8.6-beta.html) architectures.

Installation ISOs are available on [mirrors](https://mirrors.almalinux.org/) now. Cloud and container images are in progress, so stay tuned for these in the next few days.

As usual, a simple reminder, this is a *BETA* release. It should not be used for production installations. The provided upgrade instructions should not be used on production machines unless you don't mind if something breaks. Now if you wanna test this somehow, somewhere to see how things will work in 8.6 stable, you're on the right track.

## Release Notes and More Information

The AlmaLinux 8.6 Beta contains web console enhancements and some brand new [System Roles](https://access.redhat.com/articles/3050101) to to make system administration simpler. Security updates include upstream versions for the SCAP Security Guide, OpenSCAP and other packages among other improvements. You can read more about this release by checking out the [Release Notes](https://wiki.almalinux.org/release-notes/8.6-beta.html).

## What you can do to help?

Test, test, test. Your feedback is what helps make great production releases.

Please report any bugs you may see on the [Bug Tracker](https://bugs.almalinux.org/). Also, pop into the [AlmaLinux Community Chat](https://chat.almalinux.org/) and join our Testing Channel, post a question on our [8.6 Beta Forum](https://almalinux.discourse.group/c/devel/8-6-beta/35), on our AlmaLinux Community on [Reddit](https://reddit.com/r/almalinux) or catch us on [Twitter](https://twitter.com/almalinux).

Please enjoy this Beta release, let us know what you think and stay tuned for more updates and announcements coming soon.

Happy Testing!
What is Scripting?
Tags: umkc, cs441
Published: 2022-05-06 22:02:21

*Photo by [Waldemar Brandt](https://unsplash.com/photos/WAchuh1Gc-0?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink) on Unsplash*

---
Scripting is making a robot do boring stuff we don't want to do. 🤖

That might be seen as an overly simple definition, and it probably is. But most definitions I've read online are overly formal and hard to grok. 

## Examples

- 👨🏻‍💻 IT guy writes a bash script to update user groups
- 📊 Manager uses a VBA script to crunch data in Excel
- 📂 Programmer uses Python to rename a bunch of folders

## Comparison

|             | Scripting             | Programming         |
|-------------|-----------------------|---------------------|
| 😤 **Difficulty**  | Easy to learn and use | Challenging         |
| 🏭 **Compilation** | Usually interpreted   | Usually compiled    |
| 🏎️ **Performance** | Slower, more memory   | Faster, less memory |
How to Become a Full Stack Web Developer | Practical Step by Step Frontend and Backend Guideline
Tags: javascript, webdev, beginners, programming
Published: 2022-05-06 21:20:13

With countless job openings and promising new technologies, web development will continue growing in popularity absolutely everything is moving to the web. Web 3.0 is connecting the web to the blockchain which is never been a more exciting time to dive into the beautiful world of web development.
Changing Netplan Renderer Backend
Tags: linux, desktop, gnome, networking
Published: 2022-05-06 21:04:05

---
title: Changing Netplan Renderer Backend
published: true
description: 
tags: linux, desktop, gnome, networking
//cover_image: https://direct_url_to_image.jpg
---

I recently changed desktop environments on Linux, and found that my choice didn't render really well through `xrdp` and rather than figure it out, I wanted to try the screensharing option in the Ubuntu 20.04 system settings. 

However, when I went to enable it, I found the following error in syslog:

```
May  6 15:49:08 boris gnome-control-c[64701]: message repeated 3 times: [ Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0']
```

This is a [known bug in this GNOME package](https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1877121) when your network interface Vino would be binding to is managed by systemd-networkd. You can see which interfaces are currently managed using the `networkctl` command:

```
jdmarhee@boris /etc/netplan $ networkctl
IDX LINK       TYPE     OPERATIONAL SETUP    
  1 lo         loopback carrier     unmanaged
  2 eno1       ether    routable    managed
  3 tailscale0 none     routable    unmanaged
  4 docker0    bridge   no-carrier  unmanaged

4 links listed.
```
where `eno1` was being managed. In Ubuntu 20.04, the network interfaces are configured using netplan. The systemd-networkd backend is the default for doing this, so I needed to update netplan to use NetworkManager instead. Your config will be in a file like this one in `/etc/netplan`:

```
jdmarhee@boris /etc/netplan $ cat 00-installer-config.yaml 
# This is the network config written by 'subiquity'
network:
  ethernets:
    eno1:
      dhcp4: true
  version: 2
```
and add the following under `network` key to specify the backend (I add it right under the `version`):

```
  renderer: NetworkManager
```

and then apply:

```bash
sudo netplan apply
```

You can then verify that that interface is no longer managed:

```
jdmarhee@boris /etc/netplan $ networkctl
IDX LINK       TYPE     OPERATIONAL SETUP    
  1 lo         loopback carrier     unmanaged
  2 eno1       ether    routable    unmanaged
  3 tailscale0 none     routable    unmanaged
  4 docker0    bridge   no-carrier  unmanaged

4 links listed.
```
and should be able to enable Vino without issue (amongst other preferences that rely on the interface not being managed by systemd).
Learning out Loud: KubeCon EU edition
Published: 2022-05-06 20:21:53


KubeCon+CloudNativeCon EU  is one of the world's largest tech conferences. Here, users, developers, and companies who have and intend to adopt the Cloud Native standard of running applications with Kubernetes in their organizations come together for 5 days. From May 16-20, 2022, tech enthusiasts will congregate both virtually and in person in Valencia, Spain to share new ideas, learn more about it, make connections, and have fun. Lots of amazing talks, events, meetups, parties, and competitions will take place over the course of 5 days. This is the perfect environment for a newbie like me to fall in love with the awesome Continuous Delivery community.

This KubeCon EU is ‌ dear to my heart because it will be my first international conference and speaking opportunity. On May 17, I will speak on a CDeventsCon panel about the SIG Interoperability committee as a Spinnaker representative. SIG Interoperability aims to enable a dialog in the interoperability area by bringing CI/CD users together with the open source projects in order to highlight and promote the needs of the users who face challenges constructing complex end-to-end CI/CD flows and pipelines by employing different tools and technologies and reduce the need for users to implement in-house solutions by promoting native interoperability between tools. 






Although I am new to the wonderful world of Spinnaker, I aim to provide a fresh perspective on the discourse about the future of the space. Outside of the panel, I am excited to see and learn about all the amazing events and projects going on in the CD arena. As a developer advocate, one of the biggest parts of my job is to learn more about the community I work for and at KubeCon EU I will have a front-row seat to discover all the latest and greatest events and organizations in the CD community. 

Come join me on this journey of exploring more about the CloudNative community. 

I have attached the link to the [schedule](https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/program/schedule/) and [registration](https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/register/) links. 


Next stop Valencia!!
É hoje! Festival da Tecnologia Microsoft – Ingressos Gratuitos!
Tags: eventos, analytics, business, carreira
Published: 2022-05-07 14:15:21

---
title: É hoje! Festival da Tecnologia Microsoft – Ingressos Gratuitos!
published: true
date: 2022-05-06 20:12:44 UTC
tags: Eventos,Analytics,Business,Carreira
canonical_url: 
---

O Festival da Tecnologia Microsoft está em sua 2º edição e convida você a participar gratuitamente com os maiores especialistas Microsoft incluindo MVPs Microsoft de todo o Brasil.

O Festival da Tecnologia Microsoft é um festival anual, com trilhas de palestrantes que são referências no mercado atual.

Esse projeto é exclusivo e sem fins lucrativos, a intenção da organização é dissipar conhecimento de forma gratuita, com qualidade e em formato bem “Brasil”(alegre).

Trilhas do evento:  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) Business  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) Analytics  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) Database  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) IA  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) Microsoft 365  
 ![👉🏻](https://s.w.org/images/core/emoji/13.1.0/72x72/1f449-1f3fb.png) Career  
E muito +

Garanta seu ingresso: [https://www.festivaldatecnologiams.com.br/](https://www.festivaldatecnologiams.com.br/)

Fonte: Guia de TI

O post [É amanhã! Festival da Tecnologia Microsoft – Ingressos Gratuitos!](https://guiadeti.com.br/e-amanha-festival-da-tecnologia-microsoft-ingressos-gratuitos/) apareceu primeiro em [Guia de TI](https://guiadeti.com.br).
Pomodoro Technique
Tags: productivityhacks, pomodoro, pomodorotechnique, rest
Published: 2022-06-20 21:22:15

---
title: Pomodoro Technique
published: true
date: 2022-05-06 19:24:00 UTC
tags: productivityhacks,pomodoro,pomodorotechnique,rest
canonical_url: https://lucas-schiavini.medium.com/pomodoro-technique-e9e9a6a35f07
---

![](https://cdn-images-1.medium.com/max/877/0*VE-Rd_nTv3icHSdc)

One of the things I started using in college and was such a game changer that I continued using was the Pomodoro Technique.

### What is it?

[Francesco Cirillo](https://francescocirillo.com/products/the-pomodoro-technique) in the late 1980s created what is called The Pomodoro Technique. He wanted to help improve with his studies by making it less of a hassle.

So he commited for 10 minutes of focused study time. He used a tomato (pomodoro, in Italian) shaped kitchen timer.

The technique is simple:

- Get a todo-list + timer
- Set timer for 25 minutes, focus on a single task until the timer hits
- When that session is over, mark “one pomodoro” and record what you completed.
- Enjoy a 5 minute break
- After 4 pomodoros, take a longer break, 10–25 minutes.

### How I use the Pomodoro Technique

My timing:

- 50 minutes of work followed by 10 minutes of rest
- Every 4 blocks of work, 25 minutes of rest

#### Size of a work block

The sizing of time may vary between every type of person, but here’s how I tweaked it to work for me.

- If I’m in a good place mentally I tend to push well over 50 minutes on my first work block of the day, sometimes I can go uninterrupted for 2 hours.
- But if I’m working on something that is really frustrating me, I tend to divide my work blocks for 40 minutes at a time, and I take my breaks religiously.

#### Breaks

I also tweaked breaks in a way that I feel refreshed by them.

- Breaks must be without any screens (computer, tv, cellphone)
- Breaks can consist of meditation, light walking, reading pages in a book

#### App

It’s important to me to use one source of truth to use pomodoro, so I have the [PomoFocus](https://skiraindustries.com/2022/05/06/daily-dispatch-25-pomodoro/pomofocus.io/) app on my desktop computer.

It’s also important that breaks I need to consciously start, while work after the break starts automatically (or else I’ll forever postpone with any reason I can think of). That is provided by the app.

So tell me what you think, do you use pomodoro or a similar method (or even better, a different one? Do tell me in the comments bellow.

### Resources

You can check out more at [Todoist](https://todoist.com/productivity-methods/pomodoro-technique.) and on [Francesco’s site](https://francescocirillo.com/products/the-pomodoro-technique).

---

## 😗 Enjoy my writing?
Forward to a friend and let them know where they can subscribe (hint: it’s [here](https://lucas-schiavini.com/#/portal)).

Anything else? Just say hello in the comments :).

Join an Exclusive Tech Friendly Community! Connect with like-minded people who are interested in tech, design, startups, and growing online — apply [here](https://yv4sdz1j7rv.typeform.com/to/lMJ2yhuJ).
Book Club: "Test Driven Development: By Example" #7
Tags: books, tdd, discuss
Published: 2022-05-06 19:18:29

---
title: Book Club: "Test Driven Development: By Example" #7
published: true
description: A chapter by chapter discussion of "Test Driven Development By Example" by Kent Beck
tags: books, tdd, discussion
series: Book club TDD By Example
---

## Chapter 7: Apples and Oranges

This is a very quick chapter that makes some very important points. We decide to expand our `.equals` method to compare `class` rather than say, _currency_.

1. We would like test criteria to make sense in the real-world domain (in this case finance), rather than only in Java-land.

2. But, we will only do as much work as is reasonable, i.e. in our test we're taking advantage of what's available to us in the existing Java, but acknowledge that's not ideal.

My assumption here is there's no point getting ahead of ourselves and over-designing upfront the currency comparison - we will come to it when it's necessary to do so and our TDD process takes us there. We've added 'Currency' to the To Do List so it won't be forgotten.

🔎 View my code-along repo at https://github.com/ruthmoog/test-driven-development-by-example 

-----

![Book cover](https://learning.oreilly.com/library/cover/0321146530/250w/ ) Kent Beck's "[Test Driven Development: By Example](https://www.oreilly.com/library/view/test-driven-development/0321146530/)" was released in 2002. The book aims to explain how to use TDD to write quality code that works.
Please vote for encoding detection in XML files.
Tags: vscode, programming, opensource, github
Published: 2022-05-06 19:04:40

VSCode doesn't support detection of encoding of XML files currently. That is a long standing bug/feature request and multiple issues have been raised and closed as duplicates from each other and other strange reasons. The result is it still doesn't support this pretty basic editor feature and in combination with a [lack of support for charset of EditorConfig](https://github.com/editorconfig/editorconfig-vscode/issues/35) and a [lack of support of file extension specific settings](https://github.com/microsoft/vscode/issues/35350), things easily become pretty difficult to handle especially in legacy projects. So please vote on this issue:

[Encoding detection from XML header](https://github.com/microsoft/vscode/issues/148238)

Thanks!
How many Vue stores do I need?
Tags: vue, webdev
Published: 2022-05-06 18:50:28

I'm making an e-commerce like app using VueJs and I'm learning state management with [Pinia](https://pinia.vuejs.org).

I`m kinda confused with how many stores do I need to integrate in my app or how many pieces of state do I need to manage. I wanna know how you determine the number of stores as an experienced developer

<img src="https://blog.logrocket.com/wp-content/uploads/2022/04/Complex-Vue-state-management-made-easy-Pinia.png" alt="Pinia" width="100"/>
Lambda exemple Comparator bDarija
Tags: darija, java, lambda, comparator
Published: 2022-05-06 18:42:18

Had l'exemple fih implementation dial comparator bLambda

hna baghin nretbo list bcomparator walakin had lmerra b lambda


la liste qbl:

```
 List<Apple> list= Arrays.asList(
                new Apple(140,Color.RED),
                new Apple(190,Color.RED),
                new Apple(150,Color.GREEN),
                new Apple(100,Color.GREEN),
                new Apple(170,Color.RED),
                new Apple(110,Color.GREEN)
                );
```

rappel code b classe anonyme:



```
list.sort(new Comparator<Apple>() {
@Override
public int compare(Apple a1, Apple a2) {
	return a1.getWeight()-a2.getWeight();

}}
);
```
code b lambda:

```
list.sort((Apple a1, Apple a2)-> a1.getWeight()-a2.getWeight());

```
 


Resultat la liste mn b3d:

```
Apple [weight=100, color=GREEN]
Apple [weight=110, color=GREEN]
Apple [weight=140, color=RED]
Apple [weight=150, color=GREEN]
Apple [weight=170, color=RED]
Apple [weight=190, color=RED]
```
Small Business at Armory
Tags: smallbusiness, projectborealis, watercooler
Published: 2022-05-06 18:36:15

Small Business Week is a week committed to recognizing the role of entrepreneurs and small business owners throughout the United States. This year, Small Business week takes place between April 30,2022 - May 7, 2022 During this week, supporters of small 
businesses are encouraged to shop small at local establishments.It is important because small businesses are critical to both local economies and the overall economy of the United States. Small businesses in the United States are responsible for an estimated two out of every three new jobs created in our country each year.

Small business is at the heart of the tech community. So many of the greatest technological innovations in the last decade have been led by start-ups. Although they are not often associated with the traditional idea of a small business, many early stage tech companies are considered small businesses. 

Armory’s new SaaS product, codenamed Project Borealis, aims to help businesses of all sizes deploy their software safely. For example, one of our design partners uses Project Borealis’s Kubernetes integration to deploy their software to production. With less than twenty engineers, the small company’s development team is too small for the weight of Spinnaker. So, Project Borealis’s lightweight integration helps companies with smaller development teams like our design partner fulfill all of their deployment needs. 

Here at Armory we are celebrating Small Business Week by empowering smaller development teams to deploy safely with Project Borealis.