teleren/devto huggingface dataset:
Setting up Telescope
Published: 2023-01-13 06:10:23

This week, I decided to setup [Telescope](https://github.com/Seneca-CDOT/telescope) locally. I had previously contributed to telescope and had set it up already. However, I faced some problems starting it up locally after a shutdown and startup sequence. This was hard to debug since there was no error message, just containers on docker would not start up even after waiting for several minutes. These problems would fix after a restart or just randomly after a few tries. So, I decided to go through the setup again.

Following the instructions [here](https://telescope.cdot.systems/docs/getting-started/environment-setup#prerequisites), I made sure pnpm was installed, and updated WSL2 packages by running the following commands:
```
sudo apt update
sudo apt upgrade
```
I already had docker setup and installed. I tried following the instructions to start docker with the following command in wsl2:
```
sudo systemctl start docker
```
However, I got the following error message:
```
System has not been booted with systemd as init system (PID 1)
Failed to connect to bus: Host is down
```
Usually, I would try to figure out why this message was showing up. However, since I did not use this command the last time I used telescope locally, I simply started docker using the desktop client and decided to ignore this command.
This worked, and after running `pnpm services:start`, I was able to start telescope normally.

Next, I followed the instructions to seed the database. Though, for the `db:init` script to work, I had to copy over the value for the `DATABASE_URL` form the `db/env.example` file. Finally, I wanted to get local login and sign-up process working. This is done by a test SAML SSO provider, and the [instructions](https://telescope.cdot.systems/docs/tools-and-technologies/login) are separate from the environment setup. I ran the `docker-compose up -build` command.
However, I got the following error message:
`unknown shorthand flag: 'b' in -build`

I remembered something similar the last time I worked with Telescope. The solution to this was to run the following command instead:
`docker-compose up --build`
Thus, using `--build` instead of `-build`. This solved the issue, and I was able to get the login component working locally.
Though, I later found that all of this can be avoided by running `pnpm services:start`, and then running `docker-compose up login`.
How To Get Duplicate Object From Array in JavaScript?
Tags: html, css, javascript, webdev
Published: 2023-01-13 05:53:16

In this article, we are going to see how to get duplicate object from array in JavaScript? Okay, this is the JavaScript problem statement which we are going to discuss, and also we will solve it in very simple and straight-forward way.
[Read More](https://rocoderes.com/how-to-get-duplicate-object-from-array-in-javascript/)
Computing Fibonacci Sequence in JavaScript
Tags: html, css, javascript, webdev
Published: 2023-01-13 05:52:18

In this article, we are going to learn and see to computing Fibonacci sequence in JavaScript. It is a basic problem, or you can say a program in JavaScript, computing Fibonacci sequence becomes more problematic when you don’t know its main logic. So we are just going to make a Fibonacci sequence with some easier and good way to help out beginners.
[Read More](https://rocoderes.com/computing-fibonacci-sequence-in-javascript/)
Following the Blind
Tags: beginners, programming
Published: 2023-01-13 05:34:43

When blind people read brail, they trace their right index finger over a line of text and closely follow it with their left index finger.

I imagine that the right finger is priming the reader's brain; narrowing the range of possible interpretations. Then the left finger proceeds over the same characters with context that it inherits from the right finger. 

I'm starting to run into terms and ideas that are completely new to me (method overriding, upcasting, downcasting, etc). Progress feels sluggish at the moment. 

**The Brail Approach**

_First pass_
I'm going to briskly traverse a tutorial while making flashcards for unfamiliar terms. If I reach the end not knowing how to apply any of the concepts I won't panic or feel bad. 

_Second pass_
I'll restart the training module having made the terms and concepts at least slightly familiar.  

97
6 Ways I Get Things Done Fast As A Bootstrapped Founder
Published: 2023-01-13 05:16:41

Here is the productivity stack I use to get many things done first in my startup Proxies API

1. One of the ways to lose momentum is to forget your original strategy. So you need to load this up into your brain the moment you wake up, so you are not swayed by every blog post, podcast episode, and new growth hack and lose the moment that you have accumulated so painfully.

**Remind yourself of the original strategy every day** 

2. I need to make myself smile every day. And I count them. I need to make sure I have these moments where I am happy with my work in total to about 300 till I can say that I have done an excellent job.

**What’s your north star metric?** 

3. If something takes less than 2 minutes, do it.

**The two productivity tip that changed my life **

4. If you find yourself exhausted and find yourself cribbing, sulking, you need a break. You are taking access to work for granted. Make it scarce. Just stop working cold turkey. Go away from your computer and enjoy yourself till you feel the guilt. I love guilt. I need the pull of sin to come back to work. Sin is productivity if you do it right.

5. If you are overwhelmed, it probably because you are keeping too many things in your mind. Your brain cannot slow down because it is always going round and round all the things you need to do. It’s time for the brain dump.

**The magic of the brain dump** 

6. If you have lost momentum, let us say after a long break, illness, or a holiday, it is normal for us to fail to pick up the energy we used to have. The more we push ourselves, the more we feel we are rooted to the floor with concrete. So we freeze and do nothing at all. In that case, stop and reduce the expectation to more or less zero. Now tell yourself that you will do the smallest action you can take to get going. This action almost as a rule has to be dumb and make you feel silly. But try it, it works for me. If you have to write a blog post like this one, the action could be to **_write the headline_**. Wait even that is too intelligent. The move could be, open the editor and create a new page. That’s it. Now build from there.

The author is the founder of Proxies API, a proxy rotation API service.
Matplotlib: Plotting in Matplotlib
Published: 2023-01-13 05:04:14

Matplotlib is the "grandfather" library of data visualization with Python. It is an excellent 2D and 3D graphics library for generating scientific figures.

Basics of matplotlib basically means-

- How to plot
- How to edit the plot

Our main focus in this will be the plotting part. Some editing will be along the way.

**We will discuss-**
**- Plotting in two ways**
**- Subplot in two ways**

First we need to-

```
import matplotlib.pyplot as plt
%matplotlib inline
```
`%matplotlib inline` is used in jupyter. It allows us to plot the graph without extra command. Otherwise on other editors to see the plot we will need to use plt.show()
 
#<u>Plotting in two ways</u>:
##Functional method:
![01](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cefr0762b09i27giw5fc.png)
![02](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/116mskbp5s8t66j21u5n.png)

##Object Oriented Method:
![03](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ngljp25guktjexa087d3.png)
This method actually gives us control over the figure's axes...It is really helpful. Play with it to know it!

#<u>Subplots in two ways</u>:
##Functional method:
![04](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9nunukmito8hh7jm43od.png)
![05](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjfzbbck1rlq8fr103o9.png)

##OO method:
![06](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rw3m3kruvk23swxqbp1w.png)
![07](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ojcqbq0uys9mc0s5ev82.png)
We can actually see the power of this method in this example.
![08](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhmi1c1u4kbbb60dobbq.png)
![09](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozf2in57ffotpie860u7.png)
![10](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7wjkwwwtr7msau2mxbac.png)
Here `.set_xlabel()` `.set_ylabel()` `.set_title()` are used for editing. There's a lot that we can edit in matplotlib....go ahead and find out them. I am mentioning some-

- You can use the label="label text" keyword argument when plots or other objects are added to the figure, and then using the legend method without arguments to add the legend to the figure:
![11](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/768zhkfod16omy901z5u.png)

- To change the line width, we can use the linewidth or lw keyword argument. The line style can be selected using the linestyle or ls keyword arguments:

![12](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a9ym0dewc9td1slsqbq9.png)
![13](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uxvhuavysxzofimg1w1m.png)
There is more to matplotlib. Let's keep exploring....
With US Recession, How Staff Augmentation could be the way to go for IT business.
Tags: staff, it, business, us
Published: 2023-01-13 05:01:13

During a recession, many businesses look for ways to cut costs and become more efficient. One way to do this is through staff augmentation, which involves hiring external contractors or consultants to fill specific skill gaps within a company. This can be a cost-effective way for businesses to access the specialized expertise they need, without having to pay for the additional benefits and overhead costs associated with hiring full-time employees. Additionally, Staff augmentation can also help organizations to quickly scale up or down their workforce as the business conditions change. It is a flexible way of meeting the changing needs of the business in short-term or long-term periods.

IT businesses can especially benefit from staff augmentation during a recession because it allows them to access specialized skills and technologies that may be too expensive to develop in-house. Additionally, staff augmentation can help IT businesses to be more responsive to changing market conditions, by allowing them to quickly scale up or down their workforce as needed.

It should be also mentioned, that while staff augmentation is a great way to cut costs in a recession, it is also important to make sure that the contractors or consultants hired are properly vetted and have the necessary skills and experience to meet the needs of the business.

**Process of IT staff augmentation**

IT staff augmentation is the process of bringing in additional IT personnel to supplement an organization's existing staff. The process typically involves identifying specific skills and expertise that are needed, and then recruiting or hiring individuals with those skills.

There are generally two main approaches to IT staff augmentation: hiring employees directly or working with a staffing agency. When hiring employees directly, the organization is responsible for recruiting, hiring, and managing the new staff members. On the other hand, working with a staffing agency can provide the organization with additional resources and expertise in recruiting and hiring, and the agency may also handle aspects of payroll, benefits, and other HR-related tasks.

The organization can decide on a short-term or long-term augmentation based on their needs. Short-term staff augmentation is used to bring in additional staff for a specific project or period of time, while long-term staff augmentation is used to bring in staff for an ongoing or open-ended period.

Overall, the process of IT staff augmentation involves identifying the specific skills and expertise that are needed, developing a plan for recruiting and hiring new staff members, and then implementing that plan to bring in the additional personnel.

If you are in the IT business and face the US recession, [IT staff augmentation services](https://www.bacancytechnology.com/it-staff-augmentation-services) is the best way to cut the business cost and it allows you to focus on the core functionality of your business.
Component Testing with Cypress
Tags: discuss, testing
Published: 2023-01-13 04:28:10

Hey friends! I'm going to be hanging with @marktnoonan, Senior Engineer at [cypress.io](https://cypress.io), next week on my Twitch stream. We'll be discussing Cypress Component testing and doing some live coding.

Do you have any questions for us about component testing? If so, feel free to drop them here or during the live stream at [iamdeveloper.live](https://iamdeveloper.live).

{% embed https://twitter.com/nickytonline/status/1613746736442519553?s=20 %}

Hope to see you there and we look forward to your questions!

Reminder 👉🏻 [https://www.twitch.tv/nickytonline/schedule?segmentID=699f1eb7-1c0a-440a-bde9-f82427820a43](https://www.twitch.tv/nickytonline/schedule?segmentID=699f1eb7-1c0a-440a-bde9-f82427820a43)

Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Kelly Sikkema</a> on <a href="https://unsplash.com/photos/gcHFXsdcmJE?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Day 8 #100DaysofCode
Tags: webdev, beginners, 100daysofcode
Published: 2023-01-13 03:48:53

After a difficult day yesterday, I am feeling much better. I weathered the winter of my mind and came out the other side. I reviewed some CSS concepts and felt better about where I am currently at.

## Update on the Sign Up Page

![Sign up update screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gvha4thxoz42oml29vqk.png)

What I've done so far:
* Switched up the image to a smaller one for scalability.
* Sign up page is 90% completed
Comandos básicos para aprender Git
Tags: git
Published: 2023-01-13 14:03:29

---
title: Comandos básicos para aprender Git
published: true
date: 2023-01-13 03:46:14 UTC
tags: git
canonical_url: https://positionsticky.com/blogs/comandos-basicos-para-aprender-git/
---

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


## Introducción:

Personalmente a la hora de aprender Git, muchas me vi abrumado por tantos comandos que veía en su [web](https://git-scm.com/docs) y aún más cuando cada uno de estos comandos podemos observar que tienen mil parámetros diferentes! (ver ejemplo de [merge](https://git-scm.com/docs/git-merge))

Y es por esa razón que traigo esta mini lista de comandos básicos para aprender Git que nos van a ayudar a movernos tranquilamente

## Listado:

### Crear un repositorio

```
git init
```

### Agregar archivos modificados a staging

```
git add <nombre-del-archivo>
```

### Ver archivos modificados

```
git status
```

### Crear una nueva rama en Git

```
git checkout -b <nueva-rama>
```

### Cambiarme a una rama en Git

```
git checkout <otra-rama>
```

otra forma en la que podemos hacerlo es:

```
git switch <otra-rama>
```

### Crear un commit con los archivos de staging

```
git commit -m "Esto es un mensaje"
```

### Deshacer commits (dejando los archivos en dirty)

```
git reset <commit-id>
```

### Deshacer commits (borrando todo)

```
git reset --HARD <commit-id>
```

### Pushear una nueva rama

```
git push origin <rama-actual>
```

### Actualizar rama actual con origin:

```
git pull origin <rama>

```

### Actualizar una rama con lo ultimo de main (si aun no subiste esa rama):

```
git pull origin main
git checkout <rama>
git rebase main
```

### Actualizar rama con lo ultimo de main (si ya subiste los cambios)

```
git pull origin main
git checkout <branch-name>
git merge main
```

Con esta lista de comandos básicos vas a poder aprender git y realizar la gran mayoría de las cosas que quieras hacer!

![](https://media.giphy.com/media/XreQmk7ETCak0/giphy.gif)

La entrada [Comandos básicos para aprender Git](https://positionsticky.com/blogs/comandos-basicos-para-aprender-git/) se publicó primero en [Position Sticky](https://positionsticky.com).
How To Link HTML CSS And JavaScript?
Tags: javascript, beginners, html, css
Published: 2023-01-13 03:45:33

**HTML** is the framework of a website, which is then enhanced with CSS and JavaScript.

**CSS** styles HTML with color, formatting, and layout design.

**JavaScript** adds interactivity to a website. 

HTML, CSS, and JavaScript must be linked together in order to work together.

## To link an HTML file to a CSS file and a JavaScript file use the following code:

![Image of HTML Boilerplate with CSS and JavaScript links.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ysqfhabhyx3ohuowjtfg.png)

In this code, assuming you have a file called 'style.css', the link element with a rel attribute of "stylesheet" tells the browser that the linked document is a stylesheet and provides the means to apply the styles defined in the stylesheet to a web page. The script element with a src attribute specifies the location of a script file that should be loaded and executed by the browser.

You can also include the CSS and JavaScript code directly in the HTML file using style and script elements, respectively, instead of linking to external files.

![Image of HTML Boilerplate with Comments of where to insert HTML, CSS and JavaScript content.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkfexucrxbjdwa58dx9y.png)
Revolutionizing Development and Operations: The Many Benefits of Implementing DevOps
Tags: devops, devopsengineer, devjournal, beginners
Published: 2023-01-13 03:31:00

DevOps brings a lot of business and technical benefits to the table. Some of the most important ones are listed as follows:

![DevOps Benefits](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2j3nsvh7qip7jjadkauc.png)


Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more in DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
O que é e para o que serve a normalização de bancos de dados?
Published: 2023-01-13 03:28:00

A normalização de bancos de dados é um processo que busca organizar e estruturar os dados de uma base de dados para minimizar a redundância e aumentar a integridade dos dados. Ela é uma das técnicas mais importantes para garantir a qualidade e a eficiência de um banco de dados.

Existem vários níveis de normalização, cada um com suas próprias regras e objetivos. Os níveis mais comuns são a primeira, segunda e terceira normalização.

A **primeira normalização** (**1NF**) é a base da normalização e se preocupa em dividir os dados em tabelas. A **1NF** exige que cada tabela tenha uma chave primária única e que todos os campos contenham somente dados atômicos, ou seja, dados indivisíveis.

A **segunda normalização** (**2NF**) busca remover a redundância de dados em uma tabela, garantindo que cada fato esteja representado em somente um lugar. Isso significa que todos os campos não dependentes da chave primária devem ser movidos para outra tabela.

A **terceira normalização** (**3NF**) busca remover todos os dados não necessários de uma tabela, garantindo que todos os campos só contenham informações relacionadas à chave primária.

A **quarta normalização** (**4NF**) se concentra na identificação e eliminação de relações "multivaloradas", ou seja, quando uma tabela tem múltiplos valores para um determinado campo. Isso é feito criando tabelas separadas para armazenar esses valores.

A **quinta normalização** (**5NF**) se concentra na eliminação de subespecificação, ou seja, quando uma tabela contém informações que podem ser inferidas a partir de outras informações na tabela. Isso é feito criando tabelas separadas para armazenar essas informações.

A **sexta normalização** (**6NF**) é uma extensão da 5NF e se concentra em eliminar a redundância de dados em todas as tabelas. Isso é feito usando uma técnica chamada "desnormalização controlada", que envolve a criação de tabelas temporárias para armazenar informações redundantes.

A normalização de bancos de dados é fundamental para garantir a integridade, qualidade e eficiência dos dados. Ela ajuda a evitar redundância e a tornar os dados mais fáceis de gerenciar e manter. Além disso, a normalização também ajuda a garantir a segurança dos dados, tornando mais difícil para os erros ou fraudes afetarem todo o banco de dados.
Git - How to edit or remove a "pushed" commit using Visual Studio
Tags: git, visualstudio
Published: 2023-01-13 03:03:15

This is how you edit or remove a "pushed" commit using Visual Studio. (Just for reference, I am using Visual Studio 2022)

1. Removing your previous commit from your local repo using **Reset**
    - On the menu bar in Visual Studio, click on Git -> View Branch History.
    - Right click the commit that you would like to keep
    - Choose Reset -> **Keep Changes (--mixed)**. This option retains all changes from the previous commit
    - Note: If you would like to remove all changes from previous commit, choose **Delete Changes (--hard)** instead

    ![Git Reset](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asq75ae3ow0e1depzkqn.png)
   

2. If you need to edit your changes, make them as your desire & commit the changes before moving on.

3. **Force Push** into the remote repo
   - Open up "Package Manager Console", via Tools -> NuGet Package Manager -> Package Manager Console
   ![Package Manager Console menu](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xww0wtq7rn83qnni2lps.png)
   - Type "git push -f". The "-f" is important, as this means **forced push**. A _normal push_ will prompt Visual Studio to Pull then Push as your local branch is now "behind" the the remote branch
   ![Git push](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3psgit33rvax3ttvautq.PNG)
4. Double check your remote repository's branch history to ensure the old commit is removed.