teleren/devto huggingface dataset:
Flutter Slander
Tags: android, flutter, discuss
Published: 2022-05-25 03:55:32

First of all, Flutter is very good when it works, but it breaks so fast.

Whenever Team Flutter at google decides that oh whichever common feature is no longer supported, it makes every other GitHub repo nearly impossible to get to work. (FlatButton) for example, breaking every widget into a slew of errors, due to THE default button not being supported anymore (as of 3.0.~)

Getting an external flutter project to run from version to version, accommodating to pub package's compatibilities is a nightmare. Not even your own repos are safe from being deprecated into oblivion with the current embedding 2.0 changes.

It's kind of sad that one of the best frameworks for cross-platform development routinely turns everything built on it obsolete. So as to signal you to never use it for anything past of an experiment.

Like at what point are you sure to build a project upon a foundation that might not even exist in the very VERY near future.
Get Database name || or PHP info in Laravel
Tags: laravel, database
Published: 2022-05-25 03:35:22

```
Route::get('/dbinfo', function(){
    $databaseName = \DB::connection()->getDatabaseName();
    dd($databaseName);
});
```

```
Route::get('/info', function(){
 return response()->json([
    'stuff' => phpinfo()
   ]);
});
```

_If it still giving previous database name then clear config and restart the Laravel app again_
Method-Method Array Pada Javascript
Tags: javascript, webdev, tutorial, programming
Published: 2022-05-25 03:26:03

Balik lagi buat ngeblog, kali ini gua bakal menjelaskan method-method untuk memanipulasi array di JavaScript.

Oke, jadi misalkan disini kita mempunyai sebuah array yang berisi data negara-negara.
```javascript
const countries = [
  {
    name: 'Indonesia',
    population: 250_000_000
  },
  {
    name: 'India',
    population: 150_000_000
  },
  {
    name: 'China',
    population: 500_000_000
  },
  {
    name: 'Argentina',
    population: 25_000_000,
  }
]
```
Dan berikut method-method yang bisa kita terapkan untuk memanipulasi array diatas.

- Shift

Method ini digunakan untuk menghapus elemen pertama dari sebuah array.
```javascript
countries.shift()
```

- Unshift

Method ini berfungsi untuk menambahkan elemen baru ke sebuah array.
```javascript
let newCountry = [
  { 
    name: 'Brazil',
    population: 35_000_000
  }
]
countries.unshift(...newCountry)
```

- Pop

Method ini berfungsi untuk menghapus elemen terakhir dari sebuah array.
```javascript
countries.pop()
```

- Push

Method ini berfungsi untuk menambahkan elemen ke bagian akhir array.
```javascript
let newCountry = [
  { 
    name: 'Uruguay',
    population: 45_000_000
  }
]
countries.push(...newCountry)
```

- Reverse

Method ini berfungsi untuk mengurutkan elemen array secara terbalik.
```javascript
countries.reverse()
```

- Splice

Method ini berfungsi untuk menghapus elemen dan dapat menambahkan elemen berdasarkan parameter posisi dan jumlah elemen pada array.
```javascript
// Menghapus
countries.splice(1, 2)
```
**Note:**
Parameter 1: Posisi
Parameter 2: Jumlah array

- Sort

Method ini berfungsi untuk mengurutkan elemen berdasarkan kondisi yang diberi.

```javascript
countries.sort((a, b) => a.population - b.population)
```

- Slice

Method ini berfungsi untuk memilah elemen array berdasarkan posisi dan batas dan mereturn array baru, namun slice tidak merubah array sebelumnya.
```javascript
const slicedCountries = countries.slice(0, 2)
console.log(slicedCountries)
```

Untuk melihat method lainnya, yang bertipe higher order function, anda bisa kunjungi artikel saya tentang [5 Higher Order Function untuk Memanipulasi Array](https://dev.to/mohamadadithya/5-higher-order-functions-untuk-memanipulasi-array-3of0).
How to launch multiple Teams and use multiple organizational accounts at the same time.
Tags: teams, microsoft365
Published: 2022-05-25 03:14:45

## Introduction
One of the problems that occurs when you start using Teams is that you cannot easily switch between organizational accounts. You can do this in the mobile app, but not in the PC app.

You have to log out and log back in. This is very inefficient and frustrating.

Research into this issue shows that there are ways to install it as an app in Edge, or to use tools such as Rambox to switch. However, the reality is that all of these methods only switch the web version of Teams. Therefore, they cannot be used by organizations that restrict the use of the web version.

The solution is to launch multiple Teams app versions. However, it is usually not possible to launch multiple Teams. I would like to introduce a tool that allows you to launch multiple Teams: Multi Microsoft Teams is OSS which solves the problem by allowing you to launch multiple Teams. Currently, it is only available for Windows.{% embed https://github.com/TonCunha/multi-microsoft-teams %}

##Multi Microsoft Teams
Simply download the file from GitHub, unzip it, and run it.

The startup screen is quite simple.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idv9z978zwlhtmzkppew.png)
In NEW PROFILE, name the second profile to be activated and SAVE.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/km7gsmlv6zn190qu0s6c.png)
You can register multiple Teams in the same way.

Select the Teams profile you wish to launch and click LAUNCH TEAMS.

When launching, you will be prompted to log in using your organization’s account.

The following is a case where three profiles have been registered and each profile has been activated.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/18wa8514nd4bjzpo7wld.png)
Each Teams launched is also displayed in the taskbar. They are also resident in the tray.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dh7uy9i6merfw7dg4dru.png)
If you want to delete it, use the Delete key. Double-click to Disable.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19orj77i79wwnl1varf8.png)
If Teams cannot be started successfully, restarting Teams, re-logging in, etc., fixed the problem.

##Conclusion
Multi Microsoft Teams is a very useful tool and you should use it.

(I was going to donate, but they wouldn’t accept it from Japan)

...
References

https://level69.net/archives/30570
Book Camp Newbie
Published: 2022-05-25 02:23:54

Hi, my name's Jennifer and I'm a total coding newbie. I am starting up my pre-work for a UCF coding boot camp I will be attending this fall. So far I am learning how to connect with the developer community. It's not as hard as I thought it would be as most people are pretty open with sharing their knowledge with others. I've already begun to research about how to find mentors and work as a novice web developer. I'm hoping I'll find someone to take me under their wing to help me make the most out of my career. I've been learning about how to find the next NFT project to support since the NFT industry has seen unfathomable growth in recent years. It's something I personally am interested in and could use a few pointers on. I am not really into social media and I can't remember the last time I used any of those accounts. But if i want to stay connected and on top of thing's like I want to, I'll need to get the hang of it again. If you're interested in NFT too, here's the link :)
https://www.hongkiat.com/blog/finding-the-next-nft/
Steps to run any laravel project.
Tags: laravel, projectsetup, seeders, migrations
Published: 2022-05-25 01:38:57

1) Clone repository
2) composer install
3) copy .env.example to .env `cp .env.example .env` (if needed) 
3) php artisan key:generate
4) php artisan migrate
5) php artisan db:seed  (seeders if any)
6) php artisan serve
Interviews - New Years Resolution - Dev Log 33
Tags: startup, webdev, beginners, programming
Published: 2022-05-25 00:39:00

Since my last update, I have been doing a lot of interviews with companies I have been applying to. Out of respect, I will not name any of the companies. The interviews have been going really well. An interview I had yesterday went really well and I am really excited to potentially land that position. I am already scheduled for what I believe is the last round interview, the technical, with them. So hopefully next week I knock it out of the park and get a nice job where I can grow as a developer and contribute to a team.

Even if I am able to complete my new year's resolution of making enough money from my own software to pay my bills, I would still like to get industry experience and work with other developers. Because having a secure job with a company I like is never a bad thing, I have definitely been putting off this challenge. Instead of working on a new piece of software, I have been grinding AlgoExpert questions and studying theory for the last couple of weeks. Like I said the company I am currently interviewing with seems really cool, so I am trying to do great on the upcoming technical.

I will have to admit though, that I am not great at data structure/algorithm questions. I am not about to go off on a rant about how ridiculous it is to have to solve them in order to land a FAANG job. Maybe I just see the practice as dumb because I am not great at it. On the other hand, if I wanted an electrician to handle the conduit in my house, I do not think that asking him to calculate the reverse charge running through a conductor that is inside a spinning electrical magnetic field would prove his ability to do so; just saying.

I am gonna head back to the theory grind, I apologize for not keeping my nose to the grindstone for the new year's resolution. I will get back to it as soon as I responsibly can.
Terraform Conditional Expressions
Tags: terraform, devops, cloud, aws
Published: 2022-05-25 01:28:57

Hello!

[Terraform Conditional](https://www.bitslovers.com/terraform-conditional/?utm_id=Devto&utm_source=devto&utm_medium=Social&utm_campaign=devto)

In this article, we will learn:

- Create "IF" Statement Block and build Complex Expression.
- How to use Ternary Expression with Examples.
- How to create Resources only if a specific condition is valid.
- How use conditional on Output block.
- How to use conditional to create Modules.

Have a great read! Access [Terraform Conditional](https://www.bitslovers.com/terraform-conditional/?utm_id=Devto&utm_source=devto&utm_medium=Social&utm_campaign=devto)
Pitch me React (or any frontend framework)
Published: 2022-05-25 01:26:02

What I do now.

- Set Firebase.
- Write HTML, CSS and JS in text file.
- Put them on Vercel.

That's it.

My friend said "You should use React" and I asked "Why?" many times. He kindly explained about scalability, but my project has less than 1k articles for 1k users. At the end of the day, I couldn't understand the benefit.

Can you help me to understand the benefit?
Help Creating Chapter Navigation
Published: 2022-05-25 00:56:03


Hi All,

  We want to create our chapter navigation as below..

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

I couldn't find any react component for the same. Any solution for the same ?.

rgds
Thenmozhi
I created gui english dictionary 📖
Tags: webdev, showdev, productivity, python
Published: 2022-05-25 00:53:57

Hello people I created rattlefoundation's own dictionary you can search any words from English and get meanings from our dictionary

Here is the web-https://rattleofficial.github.io/dictionary
Github-https://github.com/rattleofficial/dictionary

Thank you 😊
Day 46: The Journey
Published: 2022-05-25 00:13:06

Hi!
so today was the day I had to move and get ready for the presentations so as expected no coding for today and that should be the same for tomorrow. three day are a lot but there is no other choice. I have to admit that there is refreshment that comes with not sitting on the computer 8 hours a day but it kinda feel boring. we will see how things turn around on Thursday.

signing off...
Listening to Spotify fully open-source way
Published: 2022-05-25 00:03:00

# Listening to Spotify fully open-source way
Hi, in this article I am going to show you how to listen to Spotify using only open-source software.

## First of all you need to install those two packages:
 - spotifyd
 - spotify-qt

## Second of all you need to configure `spotifyd`. 
 1. Create if not present, and edit the `~/.config/spotifyd/spotifyd.conf` file.
 2. Assign your Spotify nickname to the `username` variable.
	 1. To get your nickname open `open.spotify.com`.
	 2. Click on your profile icon and select `Profile`.
	 3. Click on three dots and select `Copy link to profile`
	 4. `https://open.spotify.com/user/themcmaciej?si=496a60d5280d4360` - in place of `themcmaciej` there will be your nickname
 3. Provide your password. There are three ways to do this.
	 1. `password` - just put your password in the config
	 2. `password_cmd` - provide a command that would output on STDOUT your password
		 1. You can use the `cat` command to print your password from the file - `cat /.config/spotifyd/.env`
	 3. `use_keyring` - your password is being taken from the system's keyring
 4. Set bitrate using the `bitrate` variable
	 1. E.g. `bitrate = 320`
 5. Enable cache by setting `no_audio_cache = false`
 6. Set `initial_volume` to a value between 0 and 100 for your initial volume
	 1. If `spotifyd -V` shows you version lower than 0.4 use string as a value - `initial_volume = "45"`
	 2. If it displays a version equal to or higher than 0.4 use an integer as a value - `initial_volume = 45`

For example of `spotifyd.conf` you may want to check out [my dotfiles repository](https://github.com/mbledkowski/dotfiles/tree/main/global/home/mble/.config/spotifyd). 
## Last but not least, you need to set up `spotify-qt`.
 1. Go to https://developer.spotify.com/dashboard/
 2. Create a new app
 3. Copy `Client ID` and `Client Secret` and enter them in the spotify-qt login screen
 4. In the terminal enter the `which spotifyd` and copy the value
 5. Go to `Settings` > `Spotify` and enter the copied value in `Client Path` 
 6. Check `Start with app`, go to `Configuration` and check `Use global config`
 7. In `General` click the `Start client` or restart an app.

## And that's it, enjoy your fully libre Spotify experience :D
## License
Creative Commons Attribution Share Alike 4.0 International ([CC-BY-SA-4.0](https://spdx.org/licenses/CC-BY-SA-4.0))
[ASK] How to monetize Chrome extension?
Published: 2022-05-25 00:00:23

---
title: [ASK] How to monetize Chrome extension?
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---

I can monetize Android app with Admob. I can monetize blog with Adsense. But, how to monetize Chrome extension? Thanks
Laravel
Published: 2022-05-24 23:37:17

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eu tortor molestie, venenatis erat vel, porta diam. Praesent consequat, dolor at scelerisque placerat, ante tortor vehicula ante, sit amet vehicula urna ex sed lectus. Ut in nibh quis sem molestie tristique ac ac quam. Morbi ac condimentum nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec at cursus leo. Mauris placerat eu massa id mollis. Mauris nec mi pretium, bibendum nisi mollis, faucibus felis. Aenean id aliquam ipsum.

Proin sem mi, elementum eu velit ut, commodo congue tortor. Vivamus finibus mattis magna. Fusce nibh mi, tempus at ex et, finibus tempor massa. Integer et placerat nulla, vitae dictum lorem. Suspendisse potenti. Sed dapibus ligula ipsum, in ultrices ex mattis quis. Nunc faucibus mauris risus, vel finibus nibh consectetur a. Sed aliquam mi odio, a rutrum odio gravida ut. Aliquam ornare leo finibus placerat commodo. Cras id felis neque. Curabitur in arcu vel massa laoreet malesuada.
Flutter
Published: 2022-05-24 23:32:05

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut interdum justo, a rhoncus quam. Cras sollicitudin sed est id placerat. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer eget luctus leo. Nunc neque dolor, venenatis eu consectetur ut, tincidunt in orci. Cras auctor erat a urna blandit cursus. Praesent in augue tristique leo tempus ullamcorper. Aenean sit amet ipsum id ex maximus hendrerit. In nec leo vitae velit congue laoreet nec vitae lacus. Maecenas commodo lorem quis posuere euismod. Morbi commodo sem eu massa efficitur pulvinar. Proin vel purus condimentum, feugiat nisi quis, condimentum odio.
Practica React.JS
Published: 2022-05-24 23:30:46

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut interdum justo, a rhoncus quam. Cras sollicitudin sed est id placerat. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer eget luctus leo. Nunc neque dolor, venenatis eu consectetur ut, tincidunt in orci. Cras auctor erat a urna blandit cursus. Praesent in augue tristique leo tempus ullamcorper. Aenean sit amet ipsum id ex maximus hendrerit. In nec leo vitae velit congue laoreet nec vitae lacus. Maecenas commodo lorem quis posuere euismod. Morbi commodo sem eu massa efficitur pulvinar. Proin vel purus condimentum, feugiat nisi quis, condimentum odio.
[Conceito] - Evite Lidar com Complexidade de Multithreading
Published: 2022-05-24 23:23:12

> Conteúdo original [nessa thread do Twitter](https://twitter.com/zanfranceschi/status/1529240795026321408)

---

Ei dev,

Vou dar um conselho sobre multithreading: a menos que você tenha certeza do que esteja fazendo, evite trabalhar com multithreading nas questões de controlar ciclo de vida de threads, locks de objetos, etc. Segue o fio para algumas alternativas.

cc @sseraphini

↓

![img](https://pbs.twimg.com/media/FTj0ZcQVsAAeJwE?format=png&name=small)

---

A primeira dica é analisar se você realmente precisa se preocupar com ciclo de vida de threads, locks, etc. Se a resposta for sim, procure por implementações nativas que têm o propósito de trabalhar com multithread de maneira segura e consistente.

---

Por exemplo, no Python, existe o módulo queue que possui classes específicas que lidam com toda semântica de locks pra você.

---

No dotnet, existe a ConcurrentQueue<T> que também já foi feita para ser compartilhada entre threads. Ou seja, é uma fila thread-safe.

(Um objeto thread-safe significa que pode ser compartilhado entre threads diferentes.)

---

Aposto que na sua linguagem de programação favorita já há implementações de objetos thread-safe. A não ser que sua linguagem seja algo muito exótico :)

---

Bom, às vezes, as implementações nativas não atendem as nossas necessidades e precisamos de alguma coisa um pouco mais sofisticada como, por exemplp, fazer um pub/sub ou um request/reply.

Pra esses casos, existe uma biblioteca alternativa chamada ZeroMQ que funciona muito bem!

![img](https://pbs.twimg.com/media/FTj0aVRVsAAEiMs?format=png&name=small)

---

O ZeroMQ é uma biblioteca que abstrai o uso de sockets e dá opções interessantes de protocolos de comunicação (in-process, inter-process, TCP, etc.). Ou seja, você pode começar a desacoplar partes dentro do mesmo processo e, se achar necessário, criar processos dedicados depois.

---

Claro, o ZeroMQ não vai te oferecer o que um broker de mensagens oferece como persistência de mensagens, boa resiliência à falhas, etc. Tudo isso fica a seu cargo.

---

Se se interessou pelo 0MQ, procura o site e segue alguns tutoriais lá. Não é uma biblioteca muito convencional e talvez você ache um pouco esquisita, mas depois de pegar o jeito, vai que vai! Ah, preste atenção na combinação dos sockets – há restrições nas combinações.

---

Comenta aí se você conhece alguma alternativa para trabalhar de forma consistente e segura com threads.

E muito obrigado, se leu até aqui! ♥️
WHY LEARN JAVASCRIPT?
Tags: javascript, programming, beginners, tutorial
Published: 2022-05-24 22:56:15

## **JAVASCRIPT**
JavaScript is one of the powerful and flexible programming languages. It is one of the core technologies of World Wide Web.Do you know that 94.5% of all websites currently use JavaScript. 

<u>**Reasons why you learn JavaScript?**</u>

1. **JavaScript is Easy to Learn**
Just as much as you set your timetable well and also follow your tutorials step by step you will find JavaScript easy. 
It only gets confusing or hard when you jump off ur lane and also JavaScript has more of a natural language feel to it.

2. **JavaScript is versatile**
JavaScript being versatile is also part of the reason why you have to study it step by step. Hence, it is used for both frontend and backend development.

3. ** JavaScript experts are in-demand**
JavaScript is the most popular programming language in the world,so it’s no wonder that it’s one of the most sought-after skills in the web development industry today. 

4. **Game development**
Games are a big business today, and developers who know JavaScript have that extra advantage. The language’s versatility, power, and ability to easily create visual effects make it a perfect fit for game developers.

5. **For an interactive website** 
You don't need JavaScript to create websites but without JavaScript, you're limited to the "animation" and "transition" that CSS offers and lots of page reloading to fetch new information. 

6. **JavaScript is not only for the internet**
JavaScript has many uses that go beyond its traditional internet roles. It powers smart televisions, works with the internet of things (IoT).

7. **Apps Development**
 creates native apps for iOS and Android, and builds cross-platform desktop apps, to name a few. 

There are lots of reasons for you to learn JavaScript you can add yours too. _Thanks_
Live Event: Advice from an Engineer who just got a job at Google
Tags: beginners, programming, codenewbie, career
Published: 2022-05-24 22:25:56

Join the Hackpack community this Thursday 5/26/22 @ 2pm EST as we talk with one of our recent alumni who just got a job at Google! He will be discussing how he did it and answering any questions you may have about his journey.

Link to event: https://discord.gg/NKFGEzav5M?event=978743742490112140