teleren/devto huggingface dataset:
¿Cuál es la diferencia entre un líder y un jefe?
Tags: webdev, beginners, tutorial, programming
Published: 2022-02-11 06:31:41

Esta es una de las clásicas preguntas que siempre se suelen hacer en las empresas y en la sociedad en general. La respuesta, a simple vista, puede parecer evidente: un líder suele ser esa figura o rol que sabe dirigir y motivar a todo el equipo sin imponer sus ideas como si se tratase de una autoridad inmutable, mientras que el jefe es todo lo contrario, se trata de alguien que utiliza el poder que tiene dada su jerarquía para mandar a otros e imponer, aquí sí, sus ideas, sin tener en consideración la de los demás. Pero, actualmente, podemos decir que existe una diferencia tan clara entre ambos roles? 🧐

En el contexto actual, las empresas están tendiendo a organizarse en nuevas formas de trabajo enfocadas a un liderazgo mucho más sistemático y participativo. Los “jefes” están desapareciendo, y ahora ya no hay un único líder, sino un equipo guiado por una persona del mismo nivel, pero con mayor contexto de la situación. Poniendo un ejemplo, hay empresas tecnológicas en las que el propio CEO es también, miembro del equipo de desarrollo de software, y a pesar de que el resto del equipo pueda tener un nivel igual o mayor de conocimiento, la diferencia radica en que el CEO conoce más el contexto y camino en el que va todo el proyecto. 🚀

Ahora bien, quizás este ejemplo se adapte a pequeñas empresas o startups recién creadas. Pero y que ocurre en las grandes industrias, esas que llevan años de historia en funcionamiento, donde sus metodologías se basan en la experiencia y tradición? Ahí sí que podemos ver realmente la figura del jefe destacada por encima de los demás. Esa figura de omnipresencia que ningún empleado ha visto jamás, pero que todos ellos conocen de su existencia, y a su vez, le temen. Y a pesar de ser una figura tan dominante y en declive, ahí sigue, gestionando cientos de personas y equipos, facturando millones cada año. Cómo es eso posible?

Quizás es que, estos jefes, han sabido reinventarse y absorber ciertos aspectos de las nuevas metodologías sin que por ello, pierdan ni un ápice de lo que les hace ser como son. Para que otros nos guíen, deben haber figuras a las que queramos seguir. Al final, se mire por donde se mire, tanto al líder como al jefe, la clave principal que les da ese “poder”, radica en el equipo, y sobre todo en la voluntad de estos de ser guiados por esa persona. Con todo esto, que es lo que quiero hacerte entender? Pues que a pesar del título de este post, da igual jefe o líder, mesías o guía espiritual, rey o rebelde. Al final, todo dependerá de nosotros mismos, y por tanto, somos nosotros quienes tenemos el poder de hacer que un jefe sea líder y viceversa, y del mismo modo, tenemos el poder de crearlos o reemplazarlos. 💪
Day 12 of 100DaysOfCode
Tags: 100daysofcode, backend, todayilearned
Published: 2022-02-11 06:14:45

---
title: Day 12 of 100DaysOfCode
published: true
description: Day 12 of 100DaysOfCode
tags: '100daysofcode, backend, todayilearned'
cover_image: 'https://raw.githubusercontent.com/InvalidLenni/dev.to-posts/main/posts/assets/100-days-of-code.jpg'
canonical_url: null
id: 985653
---

## Day 12 of 100 Days Of Code

_I was too tired for writing a post yesterday._

Here can you find what I learned (& published) yesterday.

### What I published / coded (/ updated) yesterday?

* Day 12 of 100DaysOfCode started with...

* Deploy the [AntiScamBot backend](https://github.com/AntiScamBot/backend)

* Learning the Medium & dev.to API.

* the day ended with a post about day 12.
⭐ Getting Started with CSS
Tags: beginners, tutorial, css, html
Published: 2022-02-11 05:57:56

I took the "Getting Started with CSS" tutorial by Jen Kramer on Frontend Masters and I must say she did a wonderful job of explaining on how to create a light weight web page. Personally to any one interested in learning and to sharpen up on your HTML & CSS, I would highly recommend her courses.
Removing old version of .NET
Tags: dotnet, cli
Published: 2022-02-11 05:47:58

.NET Runtime updates are compatible with the latest major version of the .NET SDKs.
This means that you can remove safely the older versions.

You can see the current SDKs and runtimes are installed on you machine with the following commands:

```console
dotnet --list-sdks
dotnet --list-runtimes
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9njcm1aov1ax6pgov4c2.png)
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wx4e2dn5s1vvozvy94fh.png)
 

To remove the unuseful version of the SDKs and runtimes, you can use the **dotnet-core-uninstall tool**.
It's not installed by default but you can download the installer from this link: https://github.com/dotnet/cli-lab/releases

Once you've installed it, you can use the following command to see the list with the .NET SDKs and runtimes that can be removed.

```console
dotnet-core-uninstall list
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5jjqzncgzkpmf7hugwg4.png)

You can also perform a what-if analysis of an uninstall. This command displays the output of an uninstall task, without performing that.

dotnet-core-uninstall whatif --all

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

At the end, if you are convinced of the result, you can perform the real uninstall command:

```console
dotnet-core-uninstall remove --all-previews-but-latest
```

For instance, this command removes .NET SDKs and runtimes marked as previews except the one highest preview.

I use this command every month. I have a task on my calendar to remind me this important task.
A clean machine is a quick machine.

You can find all the commands and all the options in the official documentation at this link: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=windows

Happy cleaning!
Tran - 🖥 Securely transfer and send anything between computers with TUI.
Tags: go, bash, showdev, git
Published: 2022-02-11 05:22:43

<p align="center">
  <img src="https://raw.githubusercontent.com/abdfnx/tran/main/.github/assets/logo.svg" height="120px" />
</p>

![computer 1](https://user-images.githubusercontent.com/64256993/152999023-fbbe04aa-a4b5-449c-b589-27e1169cf851.gif)
![computer 2](https://user-images.githubusercontent.com/64256993/153002664-9c3db89e-5c71-4555-afa0-3866e37f5339.gif)

> 🖥️ Securely transfer and send anything between computers with TUI.

{% github abdfnx/tran no-readme %}

## Installation

### Using script

* Shell

```
curl -fsSL https://cutt.ly/tran-cli | bash
```

* PowerShell

```
iwr -useb https://cutt.ly/tran-win | iex
```

**then restart your powershell**

### Homebrew

```bash
brew install abdfnx/tap/tran
```

### Go package manager

```bash
go install github.com/abdfnx/tran@latest
```

### GitHub CLI

```bash
gh extension install abdfnx/gh-tran
```

## Usage

* Open Tran UI

```bash
tran
```

* Open with specific path

```
tran --start-dir $PATH
```

* Send files to a remote computer

```
tran send <FILE || DIRECTORY>
```

* Receive files from a remote computer

```
tran receive <PASSWORD>
```

### Tran Config file

> tran config file is located at `~/.config/tran/tran.yml` | `$HOME/tran.yml`

```yml
config:
  borderless: false
  editor: vim
  enable_mousewheel: true
  show_updates: true
  start_dir: .
```

### Flags

```
--start-dir string   Starting directory for Tran
```

### Shortkeys

* <kbd>tab</kbd>: Switch between boxes
* <kbd>up</kbd>: Move up
* <kbd>down</kbd>: Move down
* <kbd>left</kbd>: Go back a directory
* <kbd>right</kbd>: Read file or enter directory
* <kbd>V</kbd>: View directory
* <kbd>T</kbd>: Go to top
* <kbd>G</kbd>: Go to bottom
* <kbd>~</kbd>: Go to your home directory
* <kbd>/</kbd>: Go to root directory
* <kbd>.</kbd>: Toggle hidden files and directories
* <kbd>D</kbd>: Only show directories
* <kbd>F</kbd>: Only show files
* <kbd>E</kbd>: Edit file
* <kbd>ctrl+s</kbd>: Send files/directories to remote
* <kbd>ctrl+r</kbd>: Receive files/directories from remote
* <kbd>ctrl+f</kbd>: Find files and directories by name
* <kbd>q</kbd>/<kbd>ctrl+q</kbd>: Quit

### Technologies Used in Tran

- [**Charm**](https://charm.sh)
- [**Chroma**](https://github.com/alecthomas/chroma)
- [**Imaging**](https://github.com/disintegration/imaging)
- [**Gorilla Websocket**](https://github.com/gorilla/websocket)
- [**PAKE**](https://github.com/schollz/pake)
- [**Cobra**](https://github.com/spf13/cobra)
- [**Viper**](https://github.com/spf13/viper)
- [**GJson**](https://github.com/tidwall/gjson)
- [**Termenv**](https://github.com/muesli/termenv)

### License

tran is licensed under the terms of [MIT](https://github.com/abdfnx/tran/blob/main/LICENSE) license.
JWT secret with .env file but error occur in NESTJS
Published: 2022-02-11 05:21:50


### Error Occured
최근 사이드 프로젝트를 시작하면서 `NestJS` 를 다루게 되었다.
`JWT` 모듈을 `.env` 파일을 이용하여 다루던 도중 다음과 같은 에러를 만나게 되었다.


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

### Problem Solving Method

아무리 코드를 뒤져봐도 어떤 문제가 보이지 않아 구글링을 시작했을 때
다음과 같은 해결책을 찾을 수 있었다.

#### Before Code
기존의 내 코드는 다음과 같았다.
```typescript
// in auth.module.ts
JwtModule.register({
      secret : process.env.JWT_SECRET,
      signOptions: {
        expiresIn: 60 * 60
      }      
    }),
```

이 코드는 .env 에 있는 JWT Secret 을 불러와 사용하는 코드였는데,
env variable 를 불러오는 것과 애플리케이션이 실행되는 것은 비동기 처리라는 것을 알게되었다.

따라서 `JwtModule` 에서는 다음과 같은 method 를 지원했다.
`JwtModule.registerAsync({})`

해당 메소드는 환경변수를 읽을 때 까지 모듈 설정을 유보할 수 있도록 도와준다.

따라서 다음과 같이 작성하여 해결하였다.

#### After Code
```typescript
JwtModule.registerAsync({
      // .env 에 등록되어 있는 것을 가져오는것이 비동기 작업이므로, 초기화 시에 env 요소를 못불러온 상태일 수 있음.
      // 따라서 registerAsync, ConfigService 를 사용해 동기적으로 작업함
      inject: [ConfigService],
      useFactory: (config: ConfigService) => ({
        secret: config.get<string>('JWT_SECRET'),
        signOptions : {
          expiresIn: 60 * 60
        }
      })  
    }),
```

나와 같은 뉴비 개발자들에게 도움이 되었길 바란다.




- 이 글의 구글링 결과 원문을 찾지 못하였습니다. 찾는대로 레퍼런스를 기록합니다.
How to Install Slack Communication Tool on Ubuntu Linux [2022]
Tags: opensource, howto, linux, slack
Published: 2022-02-23 05:04:41

---
title: How to Install Slack Communication Tool on Ubuntu Linux [2022]
published: true
date: 2022-02-11 05:10:00 UTC
tags: FOSS,HowTo,Linux,slack
canonical_url: https://fossnaija.com/slack-installation-on-linux/?utm_source=rss&utm_medium=rss&utm_campaign=slack-installation-on-linux
---

I will show you how to install the popular workplace communication tool, Slack on Linux step-by-step. Slack is the collaboration hub that brings the right people, information, and tools together to get work done. From very large companies (like Fortune 100) to corner markets, millions of people around the world use Slack to connect their teams, unify their systems, and drive their business forward.

Now ENJOY!!!



{% youtube Cs4VYPwNaWU %}

PLEASE LIKE, SHARE AND SUBSCRIBE.

**Happy Linux’NG!**

The post [How to Install Slack Communication Tool on Ubuntu Linux [2022]](https://fossnaija.com/slack-installation-on-linux/) appeared first on [Foss Naija](https://fossnaija.com).
New Years Resolution - Dev Log 16
Tags: computerscience, webdev, programming, beginners
Published: 2022-02-11 04:54:53

I have good news and great news. Good news first. The search functionality for the job board is essentially finished. It was a little more complicated than I thought it would be because I needed to find a way to handle the user inputting any number of filters. The user could just type in a title and hit search, or they can fill out every filter and hit search. So my solution had to account for all situations. I was able to manage this by querying for each filter separately if the backend received not null for that value. Then right after I get the jobs that match that filter, I remove from the running list of jobs I am making any jobs that do not match that current filter.

So if that is the good news, what's the GREAT news? I have been trying to figure out how I am going to use Redis in order to do geospatial searching. As it turns out, Redis OM does not have specific geo support yet. But here is the twist, while I was talking on the Redis discord with Guy Royse (A developer working on Redis OM), he said that geo support is just around the corner! The great news keeps coming, while I was also talking to the people from Redis support, the person who was giving me some A+ support knows about my blog! He said

> "I am interested in learning more about your use case. I saw your daily code blogs and I am impressed by your determination to have a productive year"

When I read it, I ran around my tiny house like 3 times. I will leave you nameless for the sake of privacy, but if you read this, you made my week.
February 11th, 2022: What did you learn this week?
Tags: discuss, weeklylearn, weeklyretro
Published: 2022-02-11 04:41:13

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![Yoda wooping someone's butt](https://media.giphy.com/media/yDYAHbqe5DfyM/giphy.gif)
</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{%link https://dev.to/devteam/what-was-your-win-this-week-5c2m %}

<center>

![Little kid making a fist as if to say "Yes!"](https://media.giphy.com/media/6brH8dM3zeMyA/giphy.gif)
</center>
ResizeObserver & UseState
Tags: javascript, react
Published: 2022-02-11 03:43:37

#Just a Short Post
I ran into a problem while using ResizeObserver and UseState which led to a reload loop. The problem I found out is that when a ResizeObserver is called on an element even though its not being resized it decides to call the attached function. So, since this is the case the solution is pretty simple, if you change a useState inside the function have a variable outside the function that changes after the first call,

```
const e = true;
observer.current = new ResizeObserver(entries =>{
            for(let entry of entries){
                if(e !== 1)
                {
                    //Very Useful Code
                }
                e = false;
            }
        }); 
```
Pretty simple stuff, but really annoying to find out that ResizeObserver calls on every single assignment.
4 Ways Technology Has Changed Our Lives for the Better
Tags: technology, life
Published: 2022-02-11 03:45:00

Ah, technology. It’s taken over many aspects of our lives, and it seems like it’s here to stay. While modern technology may have some cons to it, it helps us even more.

---

## Technology has changed communication

Technology has improved communication, especially in recent years. We’ll always have so much information readily available at our fingertips.

Writing letters to relatives living hundreds of miles away is so old-school! Instead, you can talk to them through a video call or instant messaging. This change in communication has completely changed relationships all over the world.

Services like Facebook and Twitter have also become a big part of our everyday lives. These sites allow people to see a lot of information and photos at once and are enjoyable by design.

When you upload a photo to the Internet, it doesn’t simply go away. It stays for a long time. This means you can use technology to store memories that are important to you, like family photos.

---

## Being a kid is different now

Children growing up in modern times can have a much better education. Technology can make the classroom environment much more interactive and exciting for students. For example, instead of reviewing vocabulary with normal flashcards, students could use sites such as Quizlet.

Kids can also do their part around the house much easier with technology. Instead of hand-washing every single dish, many families have the option to use a dishwasher. Instead of sweeping or vacuuming the whole house, you can just turn on a Roomba!

---

## We’re much healthier with technology

With modern technology, we can live much healthier lives. Those who have fitness trackers can see how active they are. Seeing that can encourage us to be even more active. Some fitness trackers like the Apple Watch even gamify health with competitions and points!

New technology can help create cures and medicines. Someone who is sick in modern times is much more likely to be cured than someone in past times.

---

## Technology has changed the meaning of ‘productivity’

Modern technology can automate just about anything, from turning on a light to ordering a pizza. With automation, we can do so much more in such a small amount of time. For example, you can use your voice to start the coffee maker while you’re still getting dressed.

Transportation is also much quicker. Instead of taking a horse-drawn carriage, you can rush down the highway at 60 miles an hour in a car.

---

Our lives are so different when we have modern technology on our side. We can communicate better, do more, be healthier, and live better lives overall.
What is panicking in programming?
Tags: rust, go, watercooler, help
Published: 2022-02-11 03:27:17

What are `panic`s in programming?
I've only seen them within the context of Go and Rust ([looking up the results](https://duckduckgo.com/?q=what+is+a+panic+in+programming) of a similar query on DuckDuckGo, which gave a dissatisfying yield).

Are they just a thing Go made up, and Rust got inspired by?
Are they just a synonym for "Runtime Error"?
Are they a new kind of R.E.?

Please, tell me, what differs a panic from a R.E., when were `panic`s first introduced to the programming scene, and why does it seem so few languages have them?


<center><h1><b>Thanks!<br/>Cheers!</b></h1></center>
Grandes recursos para empezar como blockchain developer
Tags: solidity, web3, blockchain
Published: 2022-02-11 03:16:55

Hace 3 meses empecé a aprender acerca de la web3 y como empezar a desarrollar para la blockchain y en mi camino me encontré con buenos y malos recursos.

Lo primero que me encontré  es que existen blockchain basadas en la Ethereum virtual machine y para los amigos EVM.en estas blockchains puedes desarrollar smart contracts con solidity como lenguaje principal estas son algunas blockchains basadas en la EVM

- [Ethereum](https://ethereum.org/en/)
- [Binance smart chain](https://www.binance.org/en/smartChain)
- [Avalanche](https://www.avax.network/)
- [Polygon](https://polygon.technology/)

Pero también existen otras blockchains las cuales para desarrollar sus smart contracts tienen otros lenguajes, el más popular como alternativa es [rust](https://www.rust-lang.org/) y estos son algunos ejemplos de blockchains

- [Luna](https://www.terra.money/)
- [Solana](https://solana.com/)

Pero estas blockchain aún no tienen tantos tutoriales tan cool como los que están basados en la EVM así que los recursos que les pasaré hoy serán para blockchain basados en la EVM

### [Questbook](https://openquest.xyz/)

Esta es una plataforma en la cual no solo puedes aprender a desarrollar específicamente en la blockchain de Ethereum, sino también podrás aprender a desarrollar para polygon, near y solana. Lo genial de esta web es que te va enseñando por pequeños retos como crear tu moneda o hacer una calculadora.

### [Ethernaut](https://ethernaut.openzeppelin.com/)

Esta plataforma te plantea una serie de retos, en los cuales tendrás que robar todos los fondos de un smart contract ficticio. Entonces en esta plataforma aprenderás buenas prácticas, para que cuando tú desarrolles un contrato no te pasen estos errores de novato.

### [Cryptozombies](https://cryptozombies.io/)
Para mí, la mejor página para aprender solidity desde lo básico hasta generar tu propio juego NFT.

En cada una de las secciones te enseñarán pequeños conceptos de solidity hasta el punto de tener tu juego de zombies armado

### [Useweb3](https://www.useweb3.xyz/courses)
Este último recurso es una web donde la comunidad pone recursos que para ellos están geniales para aprender pueden ser tantos cursos en video, libros, post interesantes etc. . Denle una oportunidad a esta página y explórenla seguro encuentran buenas cosas
How to Create Multi Language Website in Laravel
Tags: laravel, javascript, localization, multilanguage
Published: 2022-02-11 02:57:40

In this tutorial, we will see how to create multi language website in laravel 6/7/8. In this example, you can understand the concept of laravel multilingual website example demo. Also, gain knowledge or learn about how to add multiple languages in laravel. it's a very simple example of laravel multi language with a different list of language dropdowns.

We will change website language dynamically in laravel using jquery and laravel localization support multiple languages. So, as per requirements, you can add multiple languages and it's a string. Also, you can implement multiple languages website examples in laravel 6, laravel 7, and laravel 8.

```
Step 1 : Install Laravel
 
Step 2 : Create Localization File

Step 3 : Add Route in web.php

Step 4 : Create Controller

Step 5 : Create Blade File
```

---

Get output like below screenshot.


![How to Create Multi Language Website in Laravel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b10h76ddbn6d959vmddt.png)

---

> **_[Read More : How to Create Multi Language Website in Laravel](https://techsolutionstuff.com/post/how-to-create-multi-language-website-in-laravel)_**
⚙️ ❮ ZBrowse ❯
Tags: zsh, tooling, testing
Published: 2022-02-11 02:40:43

<div align="center">
  <a href="https://github.com/z-shell/zi">
  <img src="https://raw.githubusercontent.com/z-shell/zi/main/docs/images/logo.png" alt="Logo" width="60" height="60"><img/></a>

[https://z.digitalclouds.dev](https://z.digitalclouds.dev) | [GitHub](https://github.com/z-shell) | [Twitter](https://twitter.com/zshell_zi)

</div>

---

When doing shell work, it is often the case that `echo $variable` is invoked multiple times, to check result of a loop, etc. With ZBrowse, you just need to press <kbd>Ctrl-B</kbd>, which invokes the `ZBrowse` – `Zshell` variable browser:


![ZBrowse](https://github.com/z-shell/zbrowse/blob/main/docs/images/zbrowse.png)


(you can resize the video like any web page)


[![asciicast](https://asciinema.org/a/122018.png)](https://asciinema.org/a/122018)


## Install zbrowse


First install the [ZUI](https://github.com/z-shell/zui) plugin (it's an UI library).


**The plugin is "standalone"**, which means that only sourcing it is needed. So to install, unpack `zbrowse` somewhere and add


```zsh
source {where-zbrowse-is}/zbrowse.plugin.zsh
```


to `zshrc`.



If using a plugin manager, then `ZI` is recommended, but you can use any other too, and also install with `Oh My Zsh` (by copying directory to `~/.oh-my-zsh/custom/plugins`).



### [ZI](https://github.com/z-shell/zi)



Add `zi load z-shell/zbrowse` to your `.zshrc` file. ZI will handle cloning the plugin for you automatically the next time you start zsh. To update run `zi update z-shell/zbrowse` (`update-all` can also be used).



### Antigen



Add `antigen bundle z-shell/zbrowse` to your `.zshrc` file. Antigen will handle cloning the plugin for you automatically the next time you start zsh.



### Oh-My-Zsh



1. `cd ~/.oh-my-zsh/custom/plugins`
2. `git clone git@github.com:z-shell/zbrowse.git`
3. Add `zbrowse` to your plugin list



### Zgen



Add `zgen load z-shell/zbrowse` to your .zshrc file in the same place you're doing your other `zgen load` calls.