teleren/devto huggingface dataset:
Configuración de su identidad en Git
Tags: git, spanish
Published: 2023-01-04 17:06:32

Esto consiste en establecer su nombre y correo electrónico, ya que cada commit que se realice usará esta información para identificarlo como autor.

Desde `Git Bash` o `terminal`, ejecute los siguientes comandos:

```
$ git config --global user.name "su_nombre"
$ git config --global user.email su_correo@example.com
```
La opción `--global` permite que esta configuración sólo sea necesaria una vez, de ahí en adelante Git la usará para todo lo que se haga en el equipo.

En caso de necesitar cambiar dicha información para un proyecto específico, ubíquese en la carpeta correspondiente y ejecute los comandos sin la opción `--global`

Compruebe la configuración realizada, ejecutando el comando:

```
$ git config --list
```
Python Programming Bootcamp #13 - solving more exercises with loops
Tags: python, programming, beginners, tutorial
Published: 2023-01-04 17:05:48

---
title: Python Programming Bootcamp #13 - solving more exercises with loops
published: true
description: 
tags: python, programming, beginners, tutorial
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-01-04 17:03 +0000
canonical_url: https://code-maven.com/programming-bootcamp-for-scientists-13
series: bootcamp
---

{% youtube KOA3rGEwb18 %}

* 00:00 Nóra solves the rest of the levels of the number guessing game in the Loops chapter.
Instalación Local de Git en Linux
Tags: git, spanish, webdev, programming
Published: 2023-01-04 17:01:38

Paso 1: Comandos
Abra la terminal del sistema operativo.

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

Ejecute el siguiente comando para que Ubuntu actualice el repositorio de paquetes disponibles.

```
$ sudo apt-get update
```
Luego, instale Git.

```
$ sudo apt-get install git
```
Si desea comprobar que la instalación de Git fue exitosa, puede escribir el siguiente comando en la terminal para consultar la versión instalada.

```
$ git -v
```
Why Did I Learn Ruby on Rails?
Tags: ruby, rails, webdev, beginners
Published: 2023-01-04 17:01:01

"Why did you learn Ruby on Rails in 2022?"

I heard this while interviewing at a shop trying to get into the industry. The interviewing engineer kind of chuckled while asking me. I suppose it was a fair question, even if the delivery was not great.

In 2022 (and maybe beyond), node.js is the hot hot along with a whole slew of frontend Javascript frameworks all competing for installs. React and Next.js, Svelte and SvelteKit, vue and Nuxt.js and Angular... all of these are in the news right now, but they're all moving towards how Rails wants you to do things anyway (hydration and server-side rendering are what Rails is particularly good at, especially with the addition of Turbo and Stimulus).

So, why did I choose to learn Ruby on Rails?

1. Rails is very focused on what it does well. It's opinionated and expects you to do things a certain way. When you're learning an entirely new skill, this kind of structured approach gives you something to grab on to to build your knowledge behind the *why* of things. At first, you'll be confused (I know I was), but once you get a level of comfort it's easy to dig into the why.
1. Node packages have documentation that is very hit or miss. Some packages have excellent documentation, while others are tearse or missing. For someone new to the domain, it can be a challenge. In my experience with Ruby and Rails, documentation was typically much stronger. It makes navigating the new a little less painful.
1. A lot of educational content out there for JS/Node tends to focus on the how and less the why. This is fine and dandy for building applications via assigned Jira tickets, but I found that the resources I consumed while learning Ruby on Rails really focused on both the how and the why. With the foundational knowledge of why Rails does something the way it does, you can gain insights into how other frameworks want you to do something. This provides a lot of value because it is directly building your problem solving skills. Even if I don't end up getting a job as a Rails developer, I have the fundamentals down that enable me to pick up the core "how and why" of a framework, regardless of the language: Go, TypeScript or C#.
1. Finding a job is going to be tough no matter what's in your toolbox, so you might as well learn why behind the how. There are a lot of arguments about "well there are many more JS/Node jobs than Rails jobs" and this is objectively true, but there are also that many more people learning JS/Node, so in the end, the level of compete required may be the same.
1. Ruby is an awesome language, and I love writing it. It's fun. Because it's fun, I could foresee myself writing Ruby for 20-30 years.

In then end, Ruby and Rails provided me with a strong foundation to go and pick up topics in computer science, whether it's in another language or another framework.
Finding accomplishments to put on your resume if you don’t have a tech job.
Tags: devjournal, career, beginners, codenewbie
Published: 2023-01-04 16:53:50

I want to share advice I shared today to the tech community Code Connector. We are talking about getting accomplishments to put on your resume if you don’t have a tech job. This is relevant to me because not too long ago I was in this position. My advice is:

- Attend a Hackathon. These are great opportunities to show teamwork and a project with a business case.
- Sign up for open source. You can get development experience and practice in a relaxed team environment.
- Ask everyone and anyone for freelance opportunities. I know this may sound bad but it's the experience you want. “ A closed mouth doesn't get fed”.
- Focus on blogging and giving tech talks. It’s not development experience, but it shows progress.
- Give back by teaching. I remember taking the opportunity to teach and it was invaluable to me getting a job later.
- The last thing is to have at least 1-2 really deep personal projects that are public facing (deployed), have impact (no matter how small), and are professional styled (non-tech people will appreciate this).
Instalación Local de Git en Windows
Tags: git, spanish, windows, instalación
Published: 2023-01-04 16:51:28

Git es uno de los sistemas de control de versiones más usados en la actualidad, dada su naturaleza distribuida y la posibilidad que brinda a desarrolladores geográficamente dispersos para contribuir a un mismo proyecto de software.

En este tutorial podrá entender cómo realizar la instalación y configuración de Git en diferentes sistemas operativos.

Descargue los instaladores haciendo clic a continuación: [Ir a Instalador](https://git-scm.com/downloads)
Temas a tratar
Instalación de Git en Windows.
Paso 1: Descarga
Haga clic sobre la opción Windows y seleccione el instalador de acuerdo a las características de su sistema operativo.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oid3vylrwjybsim1vtrk.gif)
Paso 2: Asistente de instalación
Haga doble clic en el instalador y autorice al sistema operativo para ejecutarlo.

La primera ventana del asistente de configuración contiene la licencia de Git para fines informativos. Léala u omítala y haga clic en Next.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yk6tr8x3bqs6ywmg2ilm.png)
Indique la ubicación donde desea guardar los archivos de configuración de Git y haga clic en Next.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tgi87irr2f72yqd0gznt.png)
La siguiente ventana muestra algunas configuraciones que se pueden personalizar, como crear un acceso directo en el escritorio o habilitar Git LFS para archivos de gran tamaño. Es su decisión dejarlas como aparecen predefinidas o modificarlas.

Haga clic en Next.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kq4ax3a5m3vzaabw345f.png)
Digite el nombre de la carpeta donde desea almacenar los proyectos localmente o déjela como está y haga clic en Next.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/otj2mqfvj4awngy3cfgu.png)
Seleccione el tipo de editor de su preferencia para modificar archivos por consola y haga clic en Next.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozob2px6k3bibvyt1mid.png)
La siguiente ventana tiene seleccionado por defecto: usar Git como línea de comandos y poder usar git bash para lanzar comandos del propio Git.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oh2v2ebur8ygeo9o6ou4.png)
Deje esta configuración así y haga clic en Next hasta finalizar el proceso.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5fz15ekz9safcgzcderb.png)
Paso 3: Git Bash
Para terminar seleccione la opción Launch Git Bash.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8soksp3dgrpee2d11nr0.png)
Git Bash permite escribir comandos como si fuera una terminal en Linux o Mac OS X.
Paso 4: Verificar instalación
`$ git --version`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o8enmewvr5lvfwbbk3y6.png)
Ruby/Rails Console Commands
Tags: ruby, rails, beginners
Published: 2023-01-04 16:39:32


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



One of the fundamentals of Ruby / Ruby on Rails is the console. Now, the naming scheme for both of these is slightly different with the Ruby console being the Rake and the Rails console being Rails. This comes into play when actually using the console itself as well. To use the rake console you need to go to the console and type in: 
```
rake console
```
In the rake console you're able to do a lot of things such as test your code with a pry by just writing bending.pry in a method so that when you hit it by running the method you can test what's in the method. To install pry just write
```
gem install pry
```
in the console. This is a very useful tool for actually testing any of the code that you have in your method. This is especially useful for when someone doesn't want to have to fully run their application to see if it throws any errors, it's able to single out what an issue is.

Now, when it comes to Rails it's essentially the same thing as the rake console just with a different name. On that note, the equivalent of pry in rails is called byebug. You install it by putting:
```
gem install byebug
```
in the console. It's pretty much the same as pry where you just throw it somewhere and run the method you're trying to test to hit the byebug. To actually use the rails console you simply type in:
```
rails console
```
Along with these methods of testing the console can be used for so much more. In rails specifically you generate most of you files through the console. Say for example you want to make a new model, you would have to put:
```
rails g resource [Name of model] (any rows in their tables)
```
This would generate the model along with any of its needed keys or relations to other tables in your backend. There's a plethora of other things that the rails command can do such as seeding and migrating which is done with:
```
rails db:migrate
OR
rails db:seed
OR
rails db:migrate db:seed
```
As you can see there's different ways to make things more efficient when using the console but that's really something you learn and gain skills to over time.
Stealth startups and Proxycurl
Tags: startup, api
Published: 2023-01-04 16:39:05


The word "startup" doesn't strike as something new in the 21st century. People are coming up with ideas that have led to several growing businesses, some of which have succeeded.
When stealth is added to these words it seems a bit more complex than any other normal startup you might find. 
Stealth startups are like normal startups but they keep most of their goals and business is hidden from the public, they stay low for a while until their businesses come with a huge promise or so they can start huge.
There are pros and cons of a tech startup which are listed here in this article : [Stealth Startups - The Good, The Bad & Where To Find Them](https://nubela.co/blog/stealth-startups-the-good-the-bad-where-to-find-them/?utm_campaign=writers%20domain&utm_source=social&utm_medium=review&utm_content=stealth%20startups%20good%20bad%20find)

###**What proxycurl offers**
[Proxycurl](https://nubela.co/proxycurl/) offers opportunities for both founders of startups and investors searching for startups to invest in. 
In Proxycurl there is a lot of data that can allow you to discover and connect with a stealth startup. You would be able to track the movements of the entrepreneurial talents and if they're setting up a company.
You can learn more about [proxycurls investment signals](https://nubela.co/proxycurl/solutions/alternative-data-for-investment-firms?utm_campaign=writers%20domain&utm_source=website&utm_medium=review&utm_content=stealth%20startups%20good%20bad%20find%22%E2%80%8C%22)
C++ is still widely used and popular, but why?
Tags: cpp, programming, computerscience, career
Published: 2023-01-04 16:01:27

C++ is a programming language that has been around for over four decades, and it is still widely used by developers today. In this post, we will explore why C++ remains relevant in the world of software development.

C++ is "doing very well", Tiobe CEO Paul Jansen, says in [the company's September 2020 index](https://www.tiobe.com/tiobe-index/) for the world's most popular programming languages. C++ currently ranks fourth, behind C, Java, and Python

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

We can summarize the reasons in 4 points:

- Performance

One of the main reasons C++ is still relevant is its performance. C++ is a compiled language, which means that it is generally faster than interpreted languages like Python and JavaScript. This makes it a good choice for performance-critical applications, such as games, operating systems, and scientific simulations.


> "C++ is the most powerful programming language in the world. It can do absolutely anything you want it to do. And when it doesn't, you can use assembler." - John Carmack


- Control

Another reason C++ is still relevant is the control it gives developers over their code. C++ allows developers to fine-tune the performance of their programs by manually managing memory and choosing when to use specific optimization techniques. This level of control is not possible with languages like Python and Java, which rely on garbage collection to manage memory.

- Legacy code

There is a large amount of legacy C++ code in use today, and many organizations still rely on it to run their critical systems. This means that there is a demand for C++ developers who can maintain and update this code. If an organization has a large codebase written in C++, it may not be feasible to rewrite it in a different language, so they need C++ developers to continue supporting it.


> "C++ is the work of the Devil. However, it is fast." - Linus Torvalds


- Popularity

Despite the rise of other programming languages, C++ remains popular and is consistently ranked as one of the top languages by the TIOBE index and the PYPL index. This means that there are many job opportunities and resources available for C++ developers.


In conclusion, C++ is still relevant for a number of reasons, including its performance, the control it gives developers over their code, the large amount of legacy C++ code in use, and its continued popularity. It is likely to continue to be an important part of the software development landscape for the foreseeable future.
Calculator
Tags: react, javascript, html, css
Published: 2023-01-04 16:33:22

Hey guys, you can try my new calculator app. I built it using react.
you can find it here 👉🏽 [calculator](https://katongole-isaac.github.io/calculator/)

The source code is available here 👉🏽 [source code](https://github.com/katongole-isaac/calculator/tree/master)

I will be glad to hear from you guys. Nice time.
Take a look: Ball catcher series
Tags: opensource, tutorial, microservices, luos
Published: 2023-01-04 16:32:00

We have been looking at the content we’ve shared with you over the past year and since the community has grown so much, we have brought back a favorite of yours! 

The Ball Catcher serie made by Viktoria

⏩ [Take a look](https://www.youtube.com/watch?v=BtMSTrTEqqs)
R3 meets Fluent Finance
Tags: webdev, blockchain, fintech
Published: 2023-01-04 16:18:24

[Divya Taori](https://www.linkedin.com/in/divya-taori/ ) developer evangelist at R3 will be interviewing [Bradley Allgood](https://www.linkedin.com/in/allgoodfuturist/), CEO and co-founder of Fluent Finance, a company building a high-trust stablecoin US+.

Bradley will be sharing use cases they are trying to solve and how has their journey been. [Register](https://us06web.zoom.us/webinar/register/WN_2wPGh1DyQT6pzZc8pBmYGA) to join the session.
Attack Vectors in Solidity #7: Right-To-Left-Override control character (U+202E)
Tags: smartcontract, blockchain, web3, security
Published: 2023-01-04 16:15:29

The Right-To-Left-Override (RLO) control character, represented by the Unicode symbol U+202E, is a potential attack vector in the Solidity programming language. This character is used to reverse the direction of text rendering, meaning that characters that would normally be read from left to right will instead be read from right to left. While this may seem like a minor issue, it can have serious consequences if not properly addressed in the Solidity code.

One potential use of the RLO control character as an attack vector is in the manipulation of contract addresses. In Solidity, contract addresses are typically represented as a series of hexadecimal characters. If an attacker were to insert the RLO control character into the middle of a contract address, it could potentially reverse the direction of the address and cause it to be interpreted as a different address. This could potentially lead to the transfer of funds or assets to the wrong address, leading to significant losses for the contract owner. To mitigate this risk, it is important to properly validate contract addresses before they are used in any transactions.

**Here is an example of how to validate a contract address using a regex check in Solidity:**

```solidity
function isValidAddress(address _address) public pure returns (bool) {
    return bytes(_address).length == 20;
}
```

Another potential use of the RLO control character as an attack vector is in the manipulation of function names. In Solidity, function names are typically represented as strings of characters. If an attacker were to insert the RLO control character into the middle of a function name, it could potentially reverse the direction of the name and cause it to be interpreted as a different function. This could potentially lead to the execution of unintended functions, leading to potential vulnerabilities in the contract. To mitigate this risk, it is important to properly validate function names before they are called.

**Here is an example of how to validate a function name using a regex check in Solidity:**

```solidity
function isValidFunctionName(string _functionName) public pure returns (bool) {
    return bytes(_functionName).length <= 24;
}
```

In conclusion, the RLO control character is a potential attack vector in Solidity that should be carefully considered when developing smart contracts. By properly validating contract addresses and function names, developers can ensure that their contracts are secure against this type of attack.
useDeferredValue() Hook - web dev simplified
Tags: webdev, javascript, beginners, react
Published: 2023-01-04 16:14:05

**Folder Structure**

![Folder Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5bj1h7bk7g51am716zy5.png)

**App.js Code**

``` react
import { useState } from 'react'
import List from './List';

export default function App() {

    const [input, setInput] = useState("");

    function handleChange(e) {
        setInput(e.target.value);
    };

    // console.log('app.js component');
    return (
        <>
            <input type="text" value={input} onChange={handleChange} />
            <List input={input} />
        </>
    )
}
```

**List.js Code**

``` react
import { useMemo, useDeferredValue, useEffect } from 'react'


export default function List({ input }) {
    const LIST_SIZE = 20000;

    const defferedInput = useDeferredValue(input);

    const list = useMemo(() => {
        // console.log('children usememo hook');
        const l = [];
        for (let i = 0; i < LIST_SIZE; i++) {
            l.push(<span key={i}> {defferedInput} </span>)
        }
        return l;
    }, [defferedInput])

    useEffect(() => {
        console.log('input', input);
        console.log('defferedInput', defferedInput);
    }, [input, defferedInput])

    // console.log('children component');

    return list;
}
```

**Output**

![Output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mt5izzkhc9avh9ekp6jz.png)
Modern Landing Page UI Design In Figma + Responsive + AutoLayout | Step By Step In 30 Minutes
Tags: figma, beginners, tutorial, productivity
Published: 2023-01-04 16:13:32

{% youtube Yrf2bwFGyqc %}
Hi guys, today we want to show How To create a Modern Landing Page UI Design In Figma + Responsive + AutoLayout | Step By Step
Please, if you love it, support us with Like & Subscribe.🙏🙏❤️❤️

Figma File : 
https://www.figma.com/community/file/...

Let's be friends and connect
📩 Subscribe:https://shorturl.at/BCTV8
📷 Instagram: https://www.instagram.com/soudemy/
📱 Behance: https://www.behance.net/soudemy
🐦 Twitter: https://twitter.com/SoudemyAcademy

In the comments, you can say what design you want so that we can prepare the video for you.
Multiple git profiles without manually switching the config
Published: 2023-01-04 16:05:41

We often need to maintain multiple git client. For myself I use Github for my personal work and bitbucket for job. In a single device it's a bit painful to maintain if you don't create separate user account for personal and job works.

I used to override the local `.git/config` for my personal projects while leaving the `--global` config for bitbucket. 

But today I'll share a trick that will help you to handle this situation automatically! In order to do this your git version must be above `2.13`. Let's check that first.

```
git -v
```
My git version is `2.38.1`. So this trick will work for me. You can continue following this guide if your git version is larger than `2.13`.

---

Let's say you follow this file structure for your projects

```
~/
-- Personal/
---- Project A
---- Project B
-- Work/
---- Project A
---- Project B
```

If you separately store you personal and work repositories then you are already a step ahead! If not then start by doing this first.

Once you have separated you repositories, let's look at the git config file:

```
cat ~/.gitconfig
```

It may look like this if don't have anything but `name` and `email`

```
[user]
	name = user_name
	email = user@gmail.com
```
Let's create two new files for personal and work profiles:

```
touch ~/.gitconfig_personal
```
```
touch ~/.gitconfig_work
```

and open them in your favorite text editor. In my case VS Code. 

```
code ~/.gitconfig_personal
```
Now copy the content of `~/.gitconfig` and modify as needed. After that save the file. Do same for the other config file.

Once done, let's open the `~/.gitconfig` file in VS Code and add necessary changes to the files.

```
[includeIf "gitdir:~/Personal/"]
  path = .gitconfig_personal
[includeIf "gitdir:~/Work/"]
  path = .gitconfig_work
```
Above code will allow you to conditionally include configs based on the directory. 

You still will be able to override this using `git config` for specific repository.