teleren/devto huggingface dataset:
ultimate guide for git revert, getting your changes back
Tags: git, github, development
Published: 2022-03-14 16:43:27


in Project repository, when you face " oh Shit! " moments 😉 .In this article i will tell you how to manage those.

lets start with
1] you added something in staging area ( git add . ), now you want it in working area
-> git rm --cached file_name

2] you committed something which you are not supposed to!
-> git reset HEAD~1
( this will take 1 commit back )

3] you committed something & pushed to (GitHub/Bitbucket) also which you are not supposed to!

-> git pull origin master
-> git log ( check for stable commit )
-> git revert #STABLE_HASH
-> git push origin master
( this will pull latest things from Remote and check for stable commit then revert and push )


4] you want to reset to particular commit but also want to keep current changes
-> git reset --soft #_HASH
( this will reset the head but also will keep the changes 1 - you can cross check with the -> git status)


5] don't do this, but still if you need then ..
-> git reset --hard #_HASH
( this will remove all changes above this hash ( latest too ) now you can check with -> git log )


lets say you did it accidentally, and now you want your changes back !!

6]
-> git reflog
-> git checkout #_REQUIRED_HASH
-> git log ( check for your changes )
-> git branch new_branch ( you need to create branch )
-> git checkout new_branch
-> git log ( check again if it is reflected )

YES!

this last point [ 6 ] if you are trying to do after 90 days ( after git reset hard ) my friend i can't save you now😂, because git reflogs are saved only for 90 days i guess, then garbage collected. do comment if you know ways to go further this !



[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tb7o85lsg0cw5ts9uf8r.png)](https://www.buymeacoffee.com/pawandeore)
Day-43 Training At Ryaz
Tags: webdev, beginners, node, github
Published: 2022-03-14 16:38:54

- Date:14/03/2022
- Day:Monday

Today, I started about 10:30 am as I was done till approximately 12 modules so, I was to start with remaining subparts of 12th module so, I started with it so, basically the instructor started with the unit testing part so, he discussed different methods of testing but after some time I had an call with my mentor so, my main aim was to complete the crud app with the working functionality of creating source,deleting the source,displaying all the cources so, all this was needed as this course includes far more than my motive so, my mentor advised to focus on task so, other half of my day was spent in creating the functionalities that have been necessary in the CRUD app. so, basically till now date I was creating the app but have not committed to git as the instructor was explaining step by step and he created and deleted many files to give better understanding so, due to this I was not committing it but now, I have been done with basic Crud operation working so, I have pushed my code to git i.e https://github.com/mahin651/node-task. and now, I got a new deadline and I have to complete all its. functionalities. so, this way my day ended up today and get to learn many new things.
Get Started: Build, flash, run and control your very first Luos project
Tags: embeddedsystems, devtools, opensource, tutorial
Published: 2022-03-14 16:31:11

## Connect different microcontroller units as a single unit and manage them on a single interface.
[Discover now](https://docs.luos.io/get-started/get-started)

Understand how Luos can help you develop your Edge and  Embedded Systems faster by running different commands without spending hours coding.

Our Get Started guide will show you how to connect, configure and use multiple boards in the same network. We will use Arduino and ST_World Nucleo as demo boards, our friends of PlatformIO and Python.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ss7uq4nfc8j4w4dkz56a.gif)
Personal technical debt
Published: 2022-03-14 16:29:05



It's already the middle of March, and we just released the new 2.8 version of Telescope last week. 
In this blog, I would like to speak about my technical debt for Telescope. 

What's on my top 10 list? What have I missed? 
Currently, I have 15 open issues assigned to me.

I divided them into the following categories:
- Eslint, monorepo tooling: 5 open, 1PR
- Nginx, server: 4 open, 1 in the research progress. 
- Cloudflare: 1 open, one kind of done.
- Supabase: 1 open, one almost done.
- Find a way to store secrets in production: 1 open.
- Add UI to deal with GitHub rate-limiting in Dashboard: 1 open.
- Write tests and enable Parser service: 1 open.
- Apply Dockerfile best practices from Snyk recommendations: 1 open, 1 in progress.

I plan to finish all of Eslint, monorepo tooling this week and work with nginx/supabase until 2.9. I hope it will go smoothly.

#Conclusion
⚠️ New blog: here

#Links

🖇 Follow me on [GitHub](https://github.com/aserputov) 

🖇 Follow me on [Twitter](https://twitter.com/aserputov) 

p.s This post was made for Telescope
Programar não e fácil
Tags: begginers, iniciantes, newbie
Published: 2022-03-14 15:17:10

![A confusing girl in front of a notebook](https://miro.medium.com/max/1400/0*-naAlHA1jlZd97Zy.jpeg)

Muita gente começa a estudar programação e se frustra, porquê?

Antes de te responder eu quero que você se responda, porque estudar programação?

Reflita profundamente na resposta e em quanto você reflete eu vou falar algo que talvez você já saiba ou ainda não, programar não é fácil!

Dito isso, como qualquer coisa difícil na vida, nosso corpo tende a rejeitar qualquer experiência que seja algo menos que prazeroso _(que diga a musculação, ou aquelas dm’s eternas)._

Então, a menos que você tenha um talento nato que torna a programação algo tao natural como tomar um copo de água, estudar programação vai doer!

![Angry girl in front of a notebook](https://miro.medium.com/max/1400/0*PtNvCk0ASrBb60ZU.jpg)

Mas eu não estou aqui para te desanimar, mais que isso, **estou aqui para te desafiar!**

Você já deve ter refletido naquela pergunta que fiz no início desse texto certo? Não precisa me contar! Só quero que você me responda: **O seu motivo e forte o suficiente para aguentar a dor?**

Se o seu motivo for grana, existem muitas formas de ganhar dinheiro sem lidar com códigos, se for carreira, existem várias empresas contratando em diferentes áreas sem experiência e se você se destacar vai ganhar tanto quanto ou mais que um programador.

Agora qual é o seu motivo? Não estou aqui para te julgar, eu não preciso saber se seus motivos são fortes e fundamentados… Mas você precisa acreditar que são!

Você precisa ter o brio necessário para dizer: “estou cansado, mas vou conseguir, tô com sono, mas vou despertar, não tô entendendo, mas vou aprender!”

“Tô com medo, mas vai passar…”

Você é capaz? Até mais!

![A girl reading codes on a computer screen](https://miro.medium.com/max/1400/0*qtG_vbkL5_ZqCBB8)
Get started creating beautiful designs with daisyUI
Tags: tailwindcss, daisyui, design
Published: 2022-03-14 16:19:46

Hello Devs.

If you're looking for an efficient and modern way to use [Tailwind CSS](https://tailwindcss.com/), look no further than [daisyUI](https://daisyui.com/). [daisyUI](https://daisyui.com/) is a [Tailwind CSS](https://tailwindcss.com/) component library that helps you to quickly create efficient and consistent designs. It includes everything you need to get started with [Tailwind](https://tailwindcss.com/), including buttons, modals, themes, a color palette, and typography.

To get started with daisyUI, simply install the plugin using npm:
`npm i daisyui`
Or if you are using Yarn:
`yarn add daisyui`

Then add daisyUI to your tailwind.config.js files:
`module.exports = {
  //...
  plugins: [require("daisyui")],
}`

Now to start using daisyUI in your project, open a component and start using the [CSS Classes](https://daisyui.com/docs/use/).

For example: 
`<button class="btn btn-active btn-primary">Button</button>`

![Example Button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgsqj1qfz4by43stn0h9.png)



> [Documentation](https://daisyui.com/)

I hope this was helpful.
Thanks for reading!
Hello Clang | 00
Published: 2022-03-14 16:18:04


![Hello C-lang pic.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlpqzd20c97v34gb5nai.png)
## Syntax in C

The rules that dictate the correct format of code for a specific programming language are known as syntax.

Examples of syntax in C are:

- All statements must end with a semicolon,`;`
- Keywords and other code elements are case-sensitive

When compiling C code, an error will occur when the syntax of the code is incorrect.

```c
// Statements must end in a semicolon (;)
// correct
printf("Hello World!");

// error
printf("Hello World!")

// Code elements are case sensitive
// correct
printf("Hello World!");

// error
PRINTF("Hello World!");
```

## Escape Sequences

In C, an escape sequence is a non-visual character used within a string.

`\n` is an escape sequence that adds a newline to a string. `\t` is an escape sequence that adds a tab of spaces to a string.

```c
// \n acts as a newline in a string
printf("Hello\nWorld!"); // Outputs: Hello
                         //          World!

// \t acts as a tab in a string
printf("Hello\tWorld!"); // Outputs: Hello    World!
```
## Comments in C

In C, comments are text within code that will be ignored by the compiler. They are used to document code.

Line comments begin with a double forward slash, `//`. All text after `//` will be part of the comment until a new line is reached.

Block comments begin with a forward slash and asterisk, `/*` and end with an asterisk and forward slash, `*/`. Block comments can span multiple lines as new lines are part of the comment.

```c
// Comments

/* This review content is
about comments and how they
can be used to document code */

// This is a line comment

/* This is a
block comment */
```

## Compiling C Code with gcc

`gcc` is an application used to compile C programs into an executable that can run on the target computer. `gcc` stands for GNU Compiler Collection.

`gcc` compiles C code using the code file as an unflagged command-line argument. The output executable file will be called `a.out`. The `-o` flag followed by some text can be used to designate the name of the output executable file.

```c
gcc script.c
gcc script.c -o myProgram
```

> freeCodeCamp data was used
New start - Καλή αρχή
Tags: beginners, html
Published: 2022-03-14 16:17:16

Γεια σας,
έχω αρχίσει και σταματήσει πολλές φορές μέχρι τώρα τα τελευταία τρία χρόνια. Το πιάνω με όρεξη και το αφήνω απογοητευμένος. Δεν προχωράω και πολύ αλλά επανέρχομαι συνεχώς. Δεν θέλω με τίποτα να το αφήσω! 
Πρώτη επαφή ήταν στα τέλη του 2014 όταν ετοιμάζαμε το πρώτο μεγάλο ανασχεδιασμό της ιστοσελίδας και eshop των εκδόσεών μας, των Εκδόσεων Κόκκινο. Τότε, παρακολούθησα από κοντά, πώς γίνεται μια τέτοια απαιτητική δουλειά με σωστό τρόπο. Ήταν μεγάλη τύχη και ευκαιρία να το δω όλο αυτό να γίνεται από ιδέα πράξη και εφαρμογή.
Περάσαμε τότε στο WordPress που ήταν στην έκδοση 3.9 τότε, αν θυμάμαι καλά. Έκτοτε, συντηρώ το eshop μας, ανεβάζω τα νέα βιβλία, και εκτελώ κάποιες εργασίες αναβάθμισης.
Θέλω πολύ να κάνω πολύ περισσότερα απ' όσα κάνω σήμερα. Τόσα χρόνια θα έπρεπε να νιώθω άνετα με πολλά. Δεν νιώθω, όμως.
Πριν από αρκετά χρόνια, παρακολουθούσα ένα podcast με συνεντεύξεις Ελλήνων startuppers. Μία από αυτές μου είχε κάνει ιδιαίτερη εντύπωση. Η βαθιά εντύπωση που μου είχε κάνει οφειλόταν στον τόνο της φωνής του, της φωνής του δημιουργού των θεμάτων για WP https://www.cssigniter.com/, του Γρηγόρη Τσιάμαλου https://theportraitofageek.com/. Μιλούσε για την πορεία του, για όλα τα στάδια από τα οποία πέρασε, για τις αποτυχίες του (κυρίως για αυτές) και για όσα έμαθε μέσα από αυτές. Ήρεμος και εργατικός, πολύ εργατικός. Έκτοτε ξανάπεσα επάνω του https://www.youtube.com/user/tsiger και από τότε τον παρακολουθώ ανελλιπώς. 
Κάποια στιγμή, σε ένα από τα videos του, έβαλε ένα πρόχειρο διαγώνισμα, ένα "challenge". Θα ήθελε να δει πού μπορούσε να φτάσει κάποιος ή κάποια στον σχεδιασμό μιας ιστοσελίδας, ξεκινώντας από μηδενικές γνώσεις ή έστω γνώσεις αρχαρίου. Εδώ και το βίντεο της πρόκλησης: https://www.youtube.com/watch?v=D3_9-uJTcN4&list=PLzalI2oT2nA42m-KiaDFuQ6PCc4ZtwYcg&index=35 
Έβαλε μόνο έναν χρονικό περιορισμό, ένα μήνα. Ο ίδιος δεν θα έδινε καμία κατεύθυνση, μπορούσαμε να συμβουλευτούμε οτιδήποτε. Ο στόχος ήταν να φτάσουμε όσο πιο κοντά γινόταν σε αυτή την ιστοσελίδα του: https://www.cssigniter.com/demos/technico/
Τέσσερις φορές ξεκίνησα και τα παράτησα. 
Το ξαναπιάνω από την αρχή, με όσα έχω μάθει εν τω μεταξύ!
Automate API Testing using Postman & Newman
Tags: testingapi, postman, newman, intro
Published: 2022-03-14 16:12:17

## Introduction:
Postman is one of the most used tools for a developer. Most of the time, we develop APIs and test those individually. But in some scenarios, we have to test APIs in batch if they are dependent on each other. By utilizing the knowledge, we can do our tasks easier as well as minimize the repeating tasks. Through this, our dev testing time can be reduced.

## Prerequisites:
- [Postman](https://learning.postman.com/docs/getting-started/installation-and-updates/)
- [Newman](https://www.npmjs.com/package/newman) and some of it’s required library

## Playground:
In this task, we are using Json placeholder APIs. Postman has the feature to create assertion in the `Tests` tab. Also, it has the `Pre-request script` tab to run the script before API request. To minimize the complexity, we are checking only the returned status code of the Tests tab and set variables accordingly. 
A snippet to set variables in the POST request body is given below.
```javascript
{
   "userId": {{userId}},
   "title": "{{title}}",
   "body": "{{body}}"
}
```
Some most used snippets are already attached beside the Tests tab in Postman to make it easy. A snippet of assertion to check status code is shared below.
```javascript
pm.test("Successful POST request", function () {
   pm.expect(pm.response.code).to.be.oneOf([201, 202]);
});
```
Afterward, we are adding the below code to set variables in Postman to use it later. This is like just another Javascript code.
```javascript
const response = pm.response.json();
if (response && response.id) {
   let pid = response.id;
   pm.environment.set("postId", pid);
}
```
Now we can use this `postId` variable in another API request inside the _header, body, URL or query parameter_. 
Now the most interesting part comes, that is, how can we set the variables automatically? We can use Postman runner to do the job. But for this task, we will use the Newman tool. To do so, we will create a CSV file with the header of the variable names (e.g _userId, title, body_). Now, we can run the below command to request with the CSV file data.
```javascript
newman run ./jsonplaceholder.postman_collection.json \
   -d ./sample_posts.csv \
   --timeout 300000 \
   --global-var json_placeholder=https://jsonplaceholder.typicode.com \
   --reporters=cli,htmlextra,csv
```
Also, we can request a specific folder of the collection with the _--folder_ flag. Try to search for the _--reporters_ flag and its usage.
A Github repo [automate-api-testing-using-postman](https://github.com/abidkhan484/automate-api-testing-using-postman) is made to review with the document.
## Conclusion:
Last but not the least, with Newman, we can get a html-like report view where we can easily get the request/ response information or CSV report if the request volume is high. Finally, we can focus on test cases that are more necessary for developer speed.
Introducing Neno - Part 1
Published: 2022-04-12 16:11:38

---
title: Introducing Neno - Part 1
published: true
date: 2022-03-14 15:51:10 UTC
tags: 
canonical_url: https://eman.hashnode.dev/introducing-neno-part-1
---

# Neno

I'll be sharing my progress in building Neno, an online word guessing game. This is going to be my entry for the Hasura x Hashnode Hackathon and my first ever Hackathon entry.

## A little story 📖

I was reminiscing with my little sister about our childhood and all the fun we had. Life was fun and we had little to no worries.

We talked about all the games we played as kids and she showed me modern versions of Snake Xenia and Bounce which we used to play on my Nokia 3310.

Playing those games evoked so much nostalgia it made me feel I should revisit all of our childhood games.

That's why I decided to bring one of my favourite childhood games into life. We didn't really have a name for it that's why I struggled finding a name for this project 😂

I ended up naming it "Neno" which translates to "Word" in the Swahili language.

Neno is a modernised online version of this game. It's played in groups, minimum of 2 and maximum of 8.

Players are assigned a letter and each member is required to come up with 3 words that start with the letter.

There's a timer and the fastest player to guess all the words correctly wins the round.

### Game Modes

### Solo 🙌🏿

- Good for practice 
- Test your guessing skills against a timer and see how many words you can guess in 3 minutes

### Tournament 🏆

- The player with the lowest score is eliminated in each round.
- The last remaining player wins the game.

## Initial steps

### Tech setup 👨🏿‍💻

- I created a new [Hasura](https://hasura.io) project and connected to a [Heroku](https://www.heroku.com) hosted [PostgreSQL](https://www.postgresql.org/) instance.
- I then created a public [Github Repository](https://github.com/Emmanuel-Melon/frodle) for the project.
- Pick a tech stack for the project (GraphQL Apollo, Next.js, Chakra UI and xState).

### Brain storming 🧠

I had a brain storming session where I decided

- The game will be online and will have public/private rooms (max 8 players).
- The game will have a grade school/early 2000s with a modernised touch kind of aesthetic.
- The game will have a chat room where players could chat before and after a game has ended.
- Search for game assets that'll match the desired aesthetic.

### Next Steps 💡

- Highlight different game components.
- Project setup process on Hasura and Github.
- Code structure an organisation.
- Tech plan for the project.

## Let's connect 🤙🏿

I'm active on [Twitter](https://twitter.com/junubiman), [Github](https://github.com/Emmanuel-Melon) and also [Hashnode](https://eman.hashnode.dev/)!
I made a new Telegram bot!
Tags: python, bot, programming, showdev
Published: 2022-03-14 15:43:55

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

My friend currently has a poster designing business, for him I made a Client management bot that replies to clients' frequently asked questions and directly chatting through bot!

This bot will answer all the queries that I have programmed and if it finds something that is not programmed it sends:
"Kindly send message to @kejcontact_bot to chat with KEJ's GDC TEAM.🙂 "

After coding, I had errors on deployment in Heroku, and after about 13 hours, I finally deployed it on 13-03-2022 at 11:45 pm😊
Now the bot is working 24*7 I request all viewers to check out my friend's bot developed by me! The link for the telegram bot is: https://t.me/Vvkej_bot

I also linked another bot made with Livegram bot for chatting with my friend's KEJ's GDC TEAM! Checkout!
NLP Project Guideline Needed
Tags: nlp, qa, covid19questionanswering, nlpproject
Published: 2022-03-14 15:15:35

We are in need of some guidelines regarding our NLP project. 
We are trying to make A "Covid-19" question answering system usng GPT-3
why gpt-3??
Because our supervisor wanted us to explore gpt-3.
We have gone through some papers where they used "BERT" model. Anyway our initial problem is we are facing serious issue while dataset preparation and exploring.
We are trying to work on. "Covid-19 Open Research Challenge" dataset from kaggle. This is a huge dataset and we are unable to understand things properly. if anyone out there could help us to go forward as we just started to learn NLP few days earlier it will be great help. 
# TIA
More Tests (e2e)
Published: 2022-03-14 15:13:38

This week it was very busy week for me. All those midterm took most of my time. This blog will be short. This time I had to create a E2E(end-2-end) test for the signup function, but I ran into some problems. The test is to test if the function can throw a 409 status code if a user creates an account with an invalid or an already existing feed. [Pr to the code](https://github.com/Seneca-CDOT/telescope/pull/2901/files#diff-6c0acb684bf6dc50333f3aae0c5e578ed885ede749bd0b13505ce721b7fbe18bR130-R131) It took sometime to understand how the code is ran because what I have should done was to read the PR instead of looking at the codes first.

## Problem
First thing I did was to understand the code. I look through the [Pr](https://github.com/Seneca-CDOT/telescope/pull/2901). I follow the instruction for the steps to signing up. It was fine until I created the 2nd account. When I got to the confirm page I was expecting an error 409 in the console, but it somehow manage to create the account with the same feed.
Caso De Éxito: Cambiar de Trabajo después de los 40s
Published: 2022-03-14 15:05:46

---
title: Caso De Éxito: Cambiar de Trabajo después de los 40s
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ta92i5i4aasckqytqhnv.png
---

Muy feliz de compartir este #CasoDeExito, de uno de nuestros talentosos #SMARTMentees de 41 años. 

Luego de dos meses(Inició 08-Enero-22) de [mentoring](bit.ly/async-mentorship) en nuestras sesiones 1 a 1 pudo 💰💰 💰 💰 (⬆️4x) Cuadruplicar sus ingresos.
 
Los frutos de SU ESFUERZO NOS INSPIRA.

{% embed https://twitter.com/luismejiadev/status/1499092954635460617 %}


**SMARTMentee:**
> Tomar la decision de cambiar de trabajo parece algo facil hasta que lo haces.  De pronto te das cuenta que los reclutadores valoran cosas que antes no lo hacian, que los titulos no ayudan mucho, hay pruebas tecnicas, que necesitas un portafolio en linea ....y ahora con la llegada del trabajo remoto todo ha cambiado.

> De pronto cambiar de trabajo ya no era algo tan facil, para un persona de 41 años como yo, y me di cuenta que necesitaba ayuda. Aqui es donde entra Luis Mejia en mi historia, Mire su anuncio en linkedin y pense que no perdia nada con intentar.

> Desde la primera sesion senti que habia valido la pena, no solo me dio consejos ...si no me puso al dia de como los reclutadores trabajan y que cosas valoran mas.  Puedo decir que cada sesion con Luis no es simplemente asesoria y ejercicios, tambien es un evalucion emocional sobre tu desicion de cambiar de trabajo.

> Muchos no le prestamos atencion sobre la parte sicologica y emocional de cambiar de trabajo pero despues de trabajar con Luis creo que fue la mas importante y valiosa de su metodologia de trabajo.

> Luis evalua cada aspecto necesario para ayudarte en tu camino hacia ese nuevo objetivo que tienes de un nuevo trabajo, hace un excelente trabajo y acompañamiento, no solo tecnico si no humano y emocional.  Te da la seguridad y el valor que tanto necesitas para tomar ese gran paso.

> Si revisas el perfil linkedin de Luis te daras cuenta que es una persona tecnica y de inmediato crees que las sesiones tendran ese giro,  pero no es asi... a todas las personas que esten dispuestas a trabajar con el, les puedo decir que se llavaran una gran sorpresa de todo lo que puede ofrecer para alcazar tu meta a ese nuevo empleo.

> Si estas en busca de un nuevo empleo, trabajar con Luis Mejia te ayudara a alcanzar ese objetivo.

Muchas gracias por leer este caso de éxito.

No olvides compartir si te ha gustado el contenido y seguirme en [twitter](https://twitter.com/luismejiadev/)

Si te interesa iniciar mi programa de Mentoring Privado 1 a 1, puedes comprarlo en este enlace:
https://buy.stripe.com/fZe2c05cJbe91wc00f