teleren/devto huggingface dataset:
Manage multiple Git accounts
Tags: git, github, ssh, devops
Published: 2023-01-20 17:05:49

Open your terminal / CMD PROMPT and type the following command:

```
ssh-keygen -t rsa -C "your_email@example.com"
```
---
For example, 2 keys created at:

```
~/.ssh/id_rsa_work
~/.ssh/id_rsa_personal
```
---
Then, add these two keys as following:

```
$ ssh-add ~/.ssh/id_rsa_work
$ ssh-add ~/.ssh/id_rsa_personal
```
---
You can check your saved keys:

```
$ ssh-add -l
```
---
Add or modify the ssh config

```
$ cd ~/.ssh/
$ touch config
$ nano config
```
---
Add the following lines to the file

```
# Personal account
Host github.com-personal
	HostName github.com
	User git
	IdentityFile ~/.ssh/id_rsa_personal

# Work account
Host github.com-work
	HostName github.com
	User git
	IdentityFile ~/.ssh/id_rsa_work
```
---
Clone you repo using

```
git clone git@github.com-personal:<username>/<repo name>.git
git clone git@github.com-work:<username>/<repo name>.git
```
How to Get Started with the Basics of Front-End Development
Tags: javascript, beginners, learn, juniorwebdevs
Published: 2023-01-20 17:02:27

First and foremost, it is important to understand that web development is a constantly evolving field and there are always new technologies and tools being developed. However, the basics of web development will always remain the same, and it is important to have a solid understanding of the basics before moving on to more advanced topics.

![Cat developer](https://media4.giphy.com/media/3oKIPnAiaMCws8nOsE/giphy.gif?cid=ecf05e47atdl32lcn6ayn6r5jyt0lmjh6f4trj5snje8cjtg&rid=giphy.gif&ct=g)


The first thing that beginner front-end developers should learn is HTML. HTML (Hypertext Markup Language) is the foundation of all websites and is used to structure and organize content on a webpage. Without a proper understanding of HTML, it will be difficult to create a functional website.

Once you have a solid understanding of HTML, the next step is to learn CSS. CSS (Cascading Style Sheets) is used to control the layout and design of a website. It allows developers to separate the presentation of a website from the content, making it easier to maintain and update the design of a website.


Finally, after having a good foundation in HTML and CSS, it's time to learn JavaScript. JavaScript is a programming language that allows developers to create interactive and dynamic web pages. It's a powerful tool that can be used to create things like image sliders, form validation, and interactive maps. For beginners, JavaScript can be a little challenging, but with practice and persistence, it will get better.

In addition to learning JavaScript, I recommend that beginners also choose a JavaScript framework such as ReactJS, VueJS or AngularJS to help them build web applications more efficiently. These frameworks provide a set of pre-built components and functions that can be easily integrated into a website, making it easier to create complex functionality.

![Cat developer](https://media4.giphy.com/media/heIX5HfWgEYlW/giphy.gif?cid=ecf05e47y5s2wiskf6xjs5ry6rrojz9srgoc06fuay3mvj4k&rid=giphy.gif&ct=g)

Before learning any frameworks, you don't have to a master in HTML, CSS or JavaScript. Do not get stuck in one thing way too long and try to move on to the next one when you feel more confident and do not have to google every single thing all the time. You will always be able to get back to HTMl or CSS and you actually will have to. 

However do not move to frameworks way too early and make sure you are confident in JavaScript, a bit higher than just the basics. However you still don't have to be a master of JavaScript to move to the framework.

In conclusion, HTML, CSS, and JavaScript are the foundation of web development and it's important for beginner front-end developers to have a solid understanding of these technologies before moving on to more advanced topics. With persistence and practice, you will be able to master these technologies and create beautiful and functional web pages.



📌 Enjoyed the post? Please let me know in the comment down below!
Procura-se um mestre jedi pra nossa empresa
Tags: javascript, beginners, career, productivity
Published: 2023-01-20 16:59:41

Você já se deparou com uma vaga de tecnologia que parece ter sido escrita por um 'mestre jedi' da criatividade? Com descrições tão extravagantes, é difícil não sentir vergonha alheia em ler esse tipo de anúncio. 
"Procuramos um 'ninja' em programação!" "Precisamos de um 'mestre jedi' fullstack!" Essas são apenas algumas das frases que vemos cada vez mais comuns em descrições de vagas de tecnologia.

Mas será que essas descrições realmente ajudam a encontrar o candidato certo para o trabalho? Provavelmente não. Elas só servem para atrair a atenção de candidatos que podem não ter as habilidades 
técnicas necessárias para o trabalho, mas se sentem atraídos pelo jargão colorido.

Em vez de se preocupar em encontrar o próximo 'mestre jedi' ou 'ninja', as empresas deveriam se concentrar em descrever as habilidades técnicas realmente necessárias para o trabalho e os desafios que o candidato estará enfrentando. Isso ajudaria a atrair candidatos qualificados e garantiria que o processo de contratação fosse mais eficaz.

Então, antes de publicar sua próxima vaga de tecnologia, pense duas vezes sobre as palavras que você está usando e se elas realmente ajudam a descrever o trabalho de maneira precisa e eficaz. Lembre-se, é sempre melhor ser específico do que ser vago
Day 15: Recording Audio without PyAudio
Tags: 100daysofcode, tutorial, python, beginners
Published: 2023-01-20 16:54:05

Existing third-party libraries (e.g. PyAudio) are not cross-platform and have external dependencies. We created PvRecorder, a cross-platform library that supports Linux, macOS, Windows, Raspberry Pi, NVIDIA Jetson, and BeagleBone. PvRecorder has SDKs for Python, Node.js, .NET, Go, and Rust.

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

**Install**
Install `PvRecorder` using PIP:
```
pip3 install pvrecorder
```
**Find Available Microphones**
A computer can have multiple microphones. For example, a laptop has a built-in microphone and might have a headset attached to it. The first step is to find the microphone we want to record.
```
from pvrecorder import PvRecorder
for index, device in enumerate(PvRecorder.get_audio_devices()):
    print(f"[{index}] {device}")
```
Running above on a Dell XPS laptop gives:
```
[0] Monitor of sof-hda-dsp HDMI3/DP3 Output
[1] Monitor of sof-hda-dsp HDMI2/DP2 Output
[2] Monitor of sof-hda-dsp HDMI1/DP1 Output
[3] Monitor of sof-hda-dsp Speaker + Headphones
[4] sof-hda-dsp Headset Mono Microphone + Headphones Stereo Microphone
[5] sof-hda-dsp Digital Microphone
```
Take note of the index of your target microphone. We pass this to the constructor of `PvRecorder`. When unsure, pass `-1` to the constructor to use the default microphone.

**Record Audio**
First, create an instance of `PvRecoder`. You need to provide a `device_index` (see above) and a `frame_length`. `frame_length` is the number of audio samples you wish to receive at each read. We set it to 512 (32 milliseconds of 16 kHz audio). Then call `.start()` to start the recording. Once recording, keep calling `.read()` in a loop to receive audio. Invoke `.stop()` to stop recording and then `.delete()` to release resources when done.

```
recorder = PvRecorder(device_index=-1, frame_length=512)
try:
    recorder.start()
    while True:
        frame = recorder.read()
        # Do something ...
except KeyboardInterrupt:
    recorder.stop()
finally:
    recorder.delete()
```
Save Audio to File
You can do whatever you wish using the code snippet above. Whether you want to detect [wake words](https://picovoice.ai/platform/porcupine/), recognize [voice commands](https://picovoice.ai/platform/rhino/), transcribe [speech to text](https://picovoice.ai/platform/cat/), index audio for [search](https://picovoice.ai/platform/octopus/), or save it to a file. The code snippet below shows how to save audio into a WAVE file format.

```
recorder = PvRecorder(device_index=-1, frame_length=512)
audio = []
try:
    recorder.start()
    while True:
        frame = recorder.read()
        audio.extend(frame)
except KeyboardInterrupt:
    recorder.stop()
    with wave.open(path, 'w') as f:
        f.setparams((1, 2, 16000, 512, "NONE", "NONE"))
        f.writeframes(struct.pack("h" * len(audio), *audio))
finally:
    recorder.delete()
```
Python vs C++ : What should You take up in 2023 !
Tags: productivity, discuss, beginners
Published: 2023-01-20 16:50:03

In the realm of programming languages, the age-old debate between Python and C++ rages on. Both languages have their own unique advantages and disadvantages, and the choice between them is ultimately a matter of one's specific needs and goals.

Python, a high-level, interpreted language, is widely renowned for its simplicity and ease of use. Its large and active community, along with a plethora of libraries and frameworks, make it a popular choice for data science, machine learning, and web development. Its simple syntax and readability make it an excellent choice for beginners, who are just beginning to explore the world of programming.

On the other hand, C++, a powerful, low-level language, is widely used in a plethora of applications, including game development, virtual reality, and high-performance computing. Its ability to provide fine-grained control over memory allocation and other low-level operations make it a choice of many experts and professionals.

In 2023, both Python and C++ will continue to evolve and adapt to the ever-changing landscape of technology. If you are a beginner looking to explore the world of programming, Python may be the better choice for you. But, if you are a professional or an expert looking for a language that can provide you with fine-grained control over low-level operations, C++ may be the way to go. Ultimately, the choice between the two is a matter of one's specific needs and goals, and both languages have their own unique advantages and disadvantages.

**What would you choose?**
Trabalhar em pé vs trabalhar sentado: o que é melhor para programadores?
Tags: productivity, tutorial, discuss, career
Published: 2023-01-20 16:49:01

A vida sedentária é um grande problema para muitos trabalhadores que passam muitas horas sentados em frente a um computador. Isso pode levar a problemas de saúde graves, como obesidade, diabetes e doenças cardíacas. Como programadores, passamos a maior parte do nosso tempo sentados, digitando códigos e testando software. No entanto, existe uma tendência crescente de trabalhar em pé, e muitos estão se perguntando se isso é uma alternativa mais saudável. Neste artigo, vamos discutir os prós e os contras de trabalhar em pé e sentado e ajudá-lo a decidir qual é a melhor opção para você.
Trabalhar em pé tem muitos benefícios para a saúde. Por exemplo, ajuda a queimar calorias, melhora a postura e ajuda a prevenir doenças relacionadas à vida sedentária. Além disso, trabalhar em pé pode melhorar a concentração e aumentar a produtividade. No entanto, existem alguns problemas que podem surgir ao trabalhar em pé por longos períodos. Por exemplo, pode causar fadiga muscular, dores nas pernas e pés, e até mesmo varizes.
Trabalhar sentado também tem suas vantagens e desvantagens. Por exemplo, sentar-se pode ser mais confortável e menos cansativo do que ficar em pé por longos períodos. Além disso, sentar-se permite que você se concentre melhor em tarefas específicas, como digitar códigos. No entanto, sentar-se por longos períodos pode causar problemas de saúde graves, como obesidade, diabetes e doenças cardíacas.
É importante destacar que trabalhar sentado pode ser uma opção saudável, desde que você levante periodicamente e faça pausas regulares para se alongar e se mover. Sentar-se por longos períodos pode causar problemas de saúde, mas esses problemas podem ser minimizados se você se levantar e se mover regularmente.

É recomendado fazer pequenas pausas de movimento a cada hora, levantando-se e andando um pouco. Isso pode ajudar a melhorar a circulação, aliviar a tensão 
muscular e aumentar a energia. Além disso, é importante fazer exercícios físicos regularmente, como caminhar, correr ou fazer musculação para manter a saúde física e mental.

Outra opção é investir em um dispositivo de levantamento de mesa que permite ajustar a altura da mesa, permitindo que você trabalhe sentado ou em pé. Isso pode ser uma boa opção para aqueles que desejam alternar entre as duas posições durante o dia.

Em resumo, trabalhar sentado pode ser uma opção saudável se você levantar periodicamente e fazer pausas regulares para se alongar e se mover. É importante encontrar um equilíbrio e fazer escolhas saudáveis ​​para manter a saúde física e mental.
React Native CI/CD build speed improved by 22% with one line of code
Tags: reactnative, cicd, android, ios
Published: 2023-01-20 16:43:06

Every release build of React Native uses [terser](https://github.com/terser/terser) to reduce the size of your JavaScript. And it operation can be omitted for Staging/Beta builds.


Add an if statement using the env variable in the `android/app/build.gradle` file:

```gradle
project.ext.react = [
  enableHermes: true,
  extraPackagerArgs: System.getenv("NO_MINIFY_JS") ? ["--minify", "false", "--reset-cache", "false"]: []
]
```

Open Xcode for `iOS`, choose "`Build Phases`" => "`Bundle React Native code and images`" and add the following code at the beginning:

```sh
export EXTRA_PACKAGER_ARGS="" 
# ^^^ Can be added you default args (for example '--sourcemap-output')

if [ "$NO_MINIFY_JS" == "1" ]; then
    export EXTRA_PACKAGER_ARGS="$EXTRA_PACKAGER_ARGS --minify false --reset-cache false"
fi
# ...
```

Add `NO_MINIFY_JS=1` environment variable, to CI for Non-Prod builds after that.

The results is depicted in the screenshot up top (minus 4min).

---

Please don't hesitate to ask questions in the comments section if you have any.

MurAmur ©
CodePen Designs - 23 : Services Section | Learn CSS Garden
Tags: codepen, css, design, webdev
Published: 2023-01-20 16:35:24

### We are excited to introduce our new series that will explore the best design ideas from the Codepen community. 

We will be publishing these each day and hope you find them insightful and inspiring as we showcase some of the most talented designers in this space.

---


#### Codepen Design - 23

---
{% codepen https://codepen.io/ahmadnasr/pen/KKpvNGY %}


---
## For more information

1. Check my GitHub profile
[https://github.com/amitSharma7741](https://github.com/amitSharma7741)

2. Check out my Fiver profile if you need any freelancing work
[https://www.fiverr.com/amit_sharma77](https://www.fiverr.com/amit_sharma77)

3. Check out my Instagram
[https://www.instagram.com/fromgoodthings/](https://www.instagram.com/fromgoodthings/)

4. Linktree
[https://linktr.ee/jonSnow77](https://linktr.ee/jonSnow77)

5. Check my project

- EVSTART: Electric Vehicle is the Future
[https://evstart.netlify.app/](https://evstart.netlify.app/)
-  News Website in react
 [https://newsmon.netlify.app/](https://newsmon.netlify.app/)
-  Hindi jokes API
 [https://hindi-jokes-api.onrender.com/](https://hindi-jokes-api.onrender.com/)


---
---
Cap IX: El éxito siempre viene de la unión entre Talento, Tecnología y Metodología, El libro negro del programador. 💻
Tags: programming, productivity, books, spanish
Published: 2023-01-20 16:33:46

## **El éxito siempre viene de la unión entre Talento, Tecnología y Metodología**

El capítulo comienza con una anécdota:
Se le pidió al autor del libro revisar el código de un proyecto que no avanzaba, el cliente no veía nada del avance y los programadores no decían o daban fechas de entregas.

La mayoría de los proyectos que fracasan se deben a tres factores, una falta de equilibrio entre **Talento, Tecnología y Metodología**.

En los equipos de desarrollo hay roles bien marcados pero a grandes rasgos se puede identificar a 2 tipos de programadores:

* Los gurús del código, que siempre estan al dia con las tecnologías actuales e intentaban incorporar estos avances a las páginas sin pensarlo dos veces, los que no documentan por que piensan que son los mejores, etc.

* Los programadores que buscamos en Stackoverflow, que googleamos y buscamos código de otras personas que nos ayude a solucionar un problema, los que copiamos y pegamos el error de nuestro editor para ver que paso, los que tienen que hacer lo que se les diga y no tienen nada de proactividad.

Los primeros son tan buenos en lo que hacen que eso los convierte irónicamente en malos trabajadores, no tienen la capacidad de trabajar en equipo, creen que ellos pueden con todo solos y por ende el proyecto no prospera.

Muchas veces la falta de talento no significa que no sean lo suficientemente listos o inteligentes, sino que no hay motivación ni actitud para sacar a flote un buen proyecto.

Por otro lado, de nada nos sirve ser talentosos sino dominamos la tecnología con la que trabajamos y si no respetamos la metodología de software elegida para el trabajo.

Cuando tenemos la presión de llegar a las fechas de entrega muchas veces lo primero que se abandona o descuida para intentar avanzar más rápido es la metodología.

Si **Talento, Tecnología y Metodología** están bien equilibrados, es prácticamente un hecho que el proyecto será un éxito.

No sirve de mucho dominar la tecnología y ser fieles a la metodología sino tenemos el talento necesario para seguir mejorando como programadores.

De nada sirve ser talentosos y dominar las tecnologías sino somos capaces de avanzar como equipo en el proyecto.

Tampoco sirve ser muy talentosos y ser fieles a la metodología si no tenemos la capacidad de aprender las tecnologías del proyecto.

**Talento, Tecnología y Metodología** deben estar equilibradas y no puede faltar ninguna.


---

Te dejo el link gratuito de [*El libro negro de programador*](https://underpost.net/ir/pdf/cy3/el-libro-negro-del-programador.pdf) por si te intesa leerlo, o dale click a la imagen:


[![libro](https://www.digitalskillsinstitute.com/assets/media/books/5541eba31b4b42b5bb021dc77c70d658-480.jpg)](https://underpost.net/ir/pdf/cy3/el-libro-negro-del-programador.pdf)
Luos messages
Tags: opensource, startup, news, luos
Published: 2023-01-20 16:30:00

💬As a developer, you will have to create and use **Luos messages** to exchange information between **services**. In order to do that, you have to understand how messages work. 

▶️Let’s [take a look](https://www.luos.io/docs/luos-technology/messages) at how you can use messages in Luos engine!
Unity 2 bone IK constraint attached target in VR
Tags: unity3d
Published: 2023-01-20 16:29:41

Hi All. 

I have a model and want to be able to position that model in VR space by grabbing the rig target using VR hands but the target must be connected to the model's hand bone. In other words if you grab the models hand then you can move the characters hand to a desired position. The problem is that the default rig target in Unity is Kinematic and even if you have it under the hierarchy of the hand in the rig then when you grab the hand in VR space the target object will disconnect from the hand and you can place it anywhere in the scene. This is problematic because the target is an empty object and you cannot see it in the scene so if you want to grab the hand again the target object is somewhere floating in space at the last position. 

Is there any way to join the target to the hand bone so that it cannot disconnect from the rig when moving it?

In simpler terms, think about a clothing designer in VR that want to position a mannequin by grabbing the joints of the model.
Booleans in Solidity
Tags: web3, blockchain, solidity, ethereum
Published: 2023-01-20 16:27:51

bool: The possible values are constants - true and false.

## Boolean Operators:

- ! (Logical negation)

- && (logical conjunction, “and”)

- || (logical disjunction, “or”)

- == (equality)

- != (inequality)

The operators || and && apply the common short-circuiting rules. This means that in the expression f(x) || g(y), if f(x) evaluates to true, g(y) will not be evaluated even if it may have side effects.

Examples:

```
bool isPaid = true;
```

Boolean values can be modified within contracts and can be used in both incoming and outgoing parameters and the return value, as shown in the following example:

```
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.1;

contract BooleanExample {
    bool public myBool;

    function setMyBool(bool myBool) public {
        myBool = myBool;
    }

}
```

For more content, follow me on - https://linktr.ee/shlokkumar2303
Interesting facts about javascript
Tags: javascript, typescript, webdev, programming
Published: 2023-01-20 16:24:11

JavaScript, also known as ECMAScript, is a programming language that is widely used for web development and is supported by all modern web browsers.

One interesting thing about JavaScript is that it was developed in just 10 days by Brendan Eich in May 1995, when he was working at Netscape Communications. It was originally intended to be used as a scripting language for web browsers, but it has since grown in popularity and is now used for a wide variety of purposes, including server-side programming, mobile app development, and even robot control.

Another interesting thing is that JavaScript is a multi-paradigm language, it supports object-oriented, imperative, and functional programming styles. This makes it a versatile language and adaptable to a wide variety of programming tasks.

Furthermore, JavaScript has a massive developer community and is supported by a wide range of frameworks, libraries and platforms. This has led to the creation of a huge amount of open-source resources, which makes it easier for developers to build and maintain large-scale applications.

Lastly, JavaScript is one of the most popular programming languages in the world, it's a language that's in high demand by employers, and a skill that can open up many job opportunities.

Overall, JavaScript is a powerful, versatile and interesting language that has evolved from a simple scripting language for web browsers to a powerful tool that is used in a wide variety of fields.
How to convert character to ASCII code using JavaScript ?
Published: 2023-01-20 15:42:09

```
let text = "HELLO WORLD";
let code = text.charCodeAt(0);
```

```
let text = "A";
let keyCode = text.charCodeAt(0);
console.log(keyCode)
```

Output
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hpsk82kxnxwb4eafrejw.png)