teleren/devto huggingface dataset:
How to turn daily habits into epic achievements in 2024!
Tags: buildinpublic, lifestyle, app
Published: 2023-12-22 17:47:18

In a fast-paced world, the search for personal improvement is constant. Establishing solid habits is key to achieving our goals and transforming our lives. In this article, we will explore effective strategies for building positive habits and later introduce an innovative tool, HabitMaster, to take your self-development journey to new heights.

1. Identify Your Goals:
Before beginning any change journey, it is crucial to clearly identify your goals. Whether it's losing weight, learning a new skill, or practicing mindfulness, set specific, measurable goals to guide your efforts.

2. Start Small:
The overload of abrupt changes can be overwhelming. Start small and establish achievable habits. For example, if your goal is to exercise daily, start with 10 minutes a day and gradually increase it.

3. Create an Action Plan:
Develop a detailed plan to achieve your goals. Specify the necessary steps, the resources you will need, and a realistic timeline. A solid plan provides direction and keeps you on track.

4. Track Your Progress:
Keeping a record of your progress is essential to evaluate the success of your habits. Use journals, apps, or online tools to track your daily activities and adjust your plan as needed.

5. Engage with a Community:
Sharing your journey with others can provide valuable support and motivation. Join online communities, interest groups, or find an accountability partner to keep your spirits high.

From Theory to Practice: Introducing Habits and Goals:
Now that we've discussed effective strategies for cultivating powerful habits, it's time to introduce a tool that can make this process even easier and more engaging: Habits and Goals.

How Habits and Goals Can Help:

Custom Goals: Set specific goals for each habit.
XP and Rankings: Earn rewards by completing habits and climb the rankings.
Achievement Sharing: Connect with other users and share your achievements.

Habits and Metas is not just an app; is a self-development partner. Download now and see how transforming your habits can be the key to achieving your personal goals in a sustainable way. The journey to your best self starts here!

Google Play: https://play.google.com/store/apps/details?id=com.landino.habits
About Author "Sardar Mudassar Ali Khan"
Tags: webdev, programming, javascript, tutorial
Published: 2023-12-22 17:36:49


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

## Introduction
Sardar Mudassar Ali Khan is a Pakistani software engineer, a Microsoft certified cloud software architect, and Microsoft Certifed trainer for cloud technologies in Pakistan, and a technical author with a Master of Science in Software Engineering from the National University Computer and Emerging Sciences FAST University Islamabad. He has studied Advance Software Architecture, Quality Assurance, Project Management, Requirement Engineering, Model-Based Testing, and Empirical Software Engineering. He has also held a Bachelor of Science in Software Engineering from COMSATS University, Abbottabad. Sardar has published 200+ articles related to cloud technologies and cloud-native application development. Sardar Received 3 MVPs (Most Valued Professional Awards from India). Sardar has done 9 Certifications from Microsoft and holds 9 Licenses from Microsoft Related to Microsoft Azure Cloud and DevOps Engineering. Sardar has 7 years of working experience in the Pakistani software industry. 

He has authored seven books and has a Research Gate profile.

## Research Gate Profile 

- 100k Plus Read.

- Top Citation Items

- 7-Books Item Available here 

#### Profile Link
[Follow Author on Research Gate Having 200+ Publication Items](https://www.researchgate.net/profile/Sardar-Mudassar-Khan-2)

## C# Corner Profile 

- 300 Plus Articles Related to Microsoft Asp.net Core 

- 50 articles Related to DevOps Engineering 

- 2-Books Published Here 

- 2 Million Plus Read 

- 3 Times MVP Award Holder from C# Corner India

#### Profile Link
[Follow Author on C# Corner Platform Having 300+ Articles and 2 Books Published Here](https://www.c-sharpcorner.com/members/mudassar-ali4)

## Developer Community Profile

- 100 Articles related to DevOps Engineering and Microsoft Asp.net Core 

- Top Member of Developer Community Having 10k+ Developer Follow me on this platform 

#### Profile Link
[Follow Auther on Developer Community](https://dev.to/sardarmudassaralikhan)

## Medium Profile

- 150 Stories Published Here Related to Microsoft Azure Cloud Technologies like DevOps Engineering, and Microsoft Asp.Net Core 

- Verified Book Author on Medium Platform 

#### Profile Link
[Follow Auther on Medium](https://sardarmudassaralikhan.medium.com/)

## DZone (Developer Zone) 

- Published 6 Articles 

- 25K Read 

#### Profile Link
[Follow Auther on Developer Zone Platform](https://dzone.com/users/4963792/sardarmudassaralikhansse.html)

## Microsoft Profile 

- 9 Certifications 

- 9 Licences 

#### Profile Link
[Follow Auther on Microsoft Credly Profile](https://www.credly.com/users/sardar-mudassar-ali-khan/badges)

## Awards and Internationl Recognitions 

- MVPS Awards From C# Corner India 

[Link Of MVP Awards and Recognation](https://www.c-sharpcorner.com/members/mudassar-ali4/awards)

- Software Engineering Journalist Award
What to look forward to Next Semester
Published: 2023-12-22 17:36:34

# Code4Health

Emeka, our BUCC President, is back with another event after blowing our minds at Tech Xplore! So, get ready to unleash your inner tech wizard and health hero with **Code4Health**! Join forces with the **Public Health Students Association (PUHSA)** and the **Babcock University Computer Club (BUCC)** for an epic collaboration that's all about giving back to the community and bridging the gap between "Techies" and "Healthies."

What's the deal? We're cooking up a hackathon that's more than just coding—it's a chance for teams of five (2 public health students and 3 BUCC students) to tackle real health challenges using the magic of technology. No need for a complete working system; just bring your A-game and innovative spirit! A prototype at least will be enough; don’t come here only with your innovative spirit.

**How to get in on the action?** Simple! Complete the form [here](https://forms.gle/894MQRXQ6FTJ7myv8) and hop into the group chat for all the behind-the-scenes buzz.

Let's turn ideas into action—see you at **Code4Health!**


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

# Valentines Day

Get ready for a night of good vibes at **"El Día Del Amor"** dinner! We're turning up the flavor and turning on the charm for an evening that's all about enjoying good food and even better company. Feel free to come with a +1. So, guys, get your Valentine's outfits ready.

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

Besides, there’s more so come prepared to have your mind blown.
Integration with GitHub GraphQL API
Tags: github, api, graphql, node
Published: 2023-12-22 17:26:41

---
title: Integration with GitHub GraphQL API
published: true
tags: ['github', 'api', 'graphql', 'node']
canonical_url: https://sevic.dev/notes/github-graphql-api-nodejs/
---

GitHub provides [GraphQL API](https://docs.github.com/en/graphql) to create integrations, retrieve data, and automate workflows.

### Prerequisites

- GitHub token (Settings &rarr; Developer Settings &rarr; Personal access tokens)

### Integration

Below is an example of retrieving sponsorable users by location.

```js
export async function getUsersBy(location) {
  return fetch('https://api.github.com/graphql', {
    method: 'POST',
    body: JSON.stringify({
      query: `query {
        search(type: USER, query: "location:${location} is:sponsorable", first: 100) {
          edges {
            node {
              ... on User {
                bio
                login
                viewerCanSponsor
              }
            }
          }
          userCount
        }
      }`,
    }),
    headers: {
      ContentType: 'application/json',
      Authorization: `Bearer ${process.env.GITHUB_TOKEN}`
    }
  })
    .then((response) => response.json())
    .then((response) => response.data?.search?.edges || []);
}
```

### Demo

The demo with the mentioned example is available [here](https://github.com/zsevic/sponsorables).
Código limpo
Tags: cleancode, softwaredevelopment, bestpractices, codequality
Published: 2023-12-22 17:26:08

Nós como desenvolvedores, entregamos soluções para problemas da vida real através dos nossos códigos. Sendo assim, precisamos ter muito carinho e dedicação para entregar códigos que transcendem a funcionalidade pura, proporcionando uma base sólida para a evolução e sustentabilidade dos nossos projetos. Nesse sentido a utilização do código limpo é uma obrigação para quem quer apresentar um projeto diferenciado!

Vou listar algumas vantagens de usar código limpo e passar algumas dicas para a sua aplicação. 

*Vantagens:*

1. **Legibilidade e Compreensão:**
Quando outros desenvolvedores, ou mesmo você no futuro, revisam o código, a clareza é a chave.
2. **Manutenção Facilitada:**
Um código bem organizado facilita a manutenção, a correção de bugs e a implementação de novos recursos.
3. **Colaboração Eficiente:**
Facilita a colaboração entre desenvolvedores, permitindo uma transição suave entre equipes e promovendo um ambiente de trabalho mais coeso.

*Dicas:*

1. **Nomes Significativos:**
Escolha nomes que transmitam o propósito da variável, função ou classe. Opte por clareza mesmo que isso signifique nomes mais longos.
2. **Funções Concisas e Específicas:**
Escreva funções curtas e focadas em uma tarefa específica. Além de facilitar a compreensão, isso também permite a reutilização de código.
3. **Comentários Relevantes:**
Os comentários devem ser utilizados pra fornecer algum contexto adicional ou para destacar alguma área mais complexa do código e não para justificar um código bagunçado.
4. **Refatoração Contínua:**
Não hesite em refatorar seu código. À medida que o projeto evolui, temos que adaptar o código para refletir as novas necessidades e conhecimentos adquiridos.

Quando aplicamos a metodologia do código limpo, estamos entregando a garantia de um projeto bom, escalável, legível e de fácil manutenção. Devemos assumir esse compromisso com a qualidade e com a excelência para conseguirmos nos tornar programadores melhores.
Ibuprofeno.py💊| #01: Explica este código Python
Tags: python, programming, webdev, spanish
Published: 2023-12-22 17:16:13

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```py
x,y,z = 1,2,3
print(x,y,z)
```

- A. `123`
- B. `1 2 3`
- C. `ValueError`
- D. `SyntaxError`

---

Respuesta en el primer comentario.
Get Paid To Complete Online Jobs and Easy Tasks No Experience!
Tags: webdev, javascript, makemoneyonline, workfromhome
Published: 2023-12-22 17:15:23

**Making money by doing simple online tasks is now possible with the increase of people seeking assistance through the internet. The tasks that need to be completed are quite varied and include testing websites, data entry and taking online surveys among others.

CLICK NOW (https://rb.gy/bxskw5)
Ibuprofeno.py, aprende Python con ejercicios prácticos en Español 😎
Tags: python, programming, beginners, spanish
Published: 2023-12-22 17:08:26

Desde el día de hoy empezaré este pequeño segmento del blog donde compartiré ejercicios prácticos en 3 diferentes niveles: Básico, Intermedio y Avanzado sobre Python, esto con la finalidad de poder aprender las bases del lenguaje de una manera sencilla y lúdica. 

Los ejercicios propuestos son fragmentos de código propuestos para que el lector los resuelva **sin ejecutar el código** en ningún interprete de Python, las respuestas son de opción múltiple con su la explicación de cada problema en el primer comentario de cada post. 

Como devs de este lenguaje existe un mínimo de conocimientos que deberíamos saber expresar y responder sin muchas complicaciones. 

Trataré de explicar de la forma más sencilla y concisa términos como:

* Tipos de variables
* POO
* Ficheros
* Tipos de datos
* Bucles
* Módulos
* Scope
* Paquetes
* Funciones, etc.

Las entregas serán de 1 a 2 por semana en formato de pequeñas capsulas practicas de código donde primero se propone el reto para después pasar con la respuesta y sus respectiva explicación, espero que sea de su agrado y les sirva para mejorar como devs.

Saludos.
Solution for 'await is only valid in async functions'
Tags: javascript
Published: 2023-12-22 17:07:40

We can only execute `await` inside an async function. If you try to use await without an async function, it will result in an error. 


![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7xtakzo82gjhrof0x1xj.png)

**Solution:** One good option to address this issue is by using IIFE (Immediately Invoked Function Expression).

```
(async function(){
    let a = await testSleep();
    console.log(a);
   let b = await testSleep();
    console.log(b);
})();
```
CRYPTO RECOVERY EXPERTS \ADWAER RECOVERY SPECIALIST
Published: 2023-12-22 16:55:33

Picture this: you're scrolling through your old emails, reminiscing about the time when you thought "bitcoin" was just a funny word. Suddenly, it hits you like a wave of FOMO – you remember that you had some bitcoins back in the day! But wait, where did they go? Panic sets in as you realize they might be lost forever. Adware Recovery Specialist is a miraculous fix that can transform your defeat into victory. We examine how Adware Recovery Specialist assisted a user in getting their lost bitcoins back in our first case study. Visit their website: adwarerecoveryspecialist.expert  By availing the services of Adware Recovery Specialist, individuals can benefit from their specialized knowledge and advanced tools tailored for bitcoin recovery. They offer a streamlined and efficient process that minimizes the hassle and stress associated with recovering lost funds.  Adware Recovery Specialist  acts as a guiding light in the dark tunnels of lost bitcoins, bringing hope and possibility to those in need. Adware Recovery Specialist is equipped with an impressive array of technological tools and resources. They locate and retrieve misplaced bitcoins using the most recent algorithms and innovative methods. To make sure the best recovery techniques are used, their staff continuously keeps up with the most recent developments in the cryptocurrency world. Regarding cryptocurrency transactions, security and privacy are crucial. Adware Recovery Specialist is aware of this and has strong security procedures in place to safeguard their clients' private data while it is being recovered. They take extreme precautions to preserve the integrity and confidentiality of their clients' data, including secure communication routes and encryption technologies.  Adware Recovery Specialist  strives to deliver a quick and effective recovery process and is aware of the urgency. Their staff makes a concerted effort to promptly recover misplaced money, minimizing any hindrance to their clients' financial operations. With Adware Recovery Specialist on your side, you won't have to wait long to get your bitcoins back. So, if you're feeling defeated by the loss of your bitcoins, don't lose hope! Adware Recovery Specialist is here to lend a helping hand and bring back the magic to your cryptocurrency journey. 
email: Adwarerecoveryspecialist(@)auctioneer.net 


Thank you.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jewb0hax1u5phpnutk1n.jpg)
How to recieve back text after session close in PuTTY?
Published: 2023-12-22 16:48:36

When using PuTTY, a popular Windows SSH and telnet client for secure remote connections to Linux servers and other network devices, it's critical to think about how to recover text or command output from a prior session, especially after leaving the PuTTY window. When reopened, PuTTY does not retain the whole session history by default. However, there are tactics and features that users can use to ensure that relevant information is retrieved.


To recover text from a previous PuTTY session, the output must have been saved or logged during the session. By default, PuTTY does not save the whole session history. Here are some measures to take:


**PuTTY log files:**

To save your session data before closing PuTTY, go to the "Session" tab in the PuTTY configuration window and change the "Logging" settings. You can save the session output to a file if you want.

By following this procedures, you may effectively ensure that important information from your PuTTY sessions remains available and retrievable even when the PuTTY window is closed. This is a useful technique for reviewing and referencing previous sessions.

You can also [download the file by using PuTTY form remtoe server.](https://dev.to/putty2/how-to-move-download-file-to-remote-server-by-using-putty-1h13)
Pikiran Rakyat
Published: 2023-12-22 16:44:48

Portal berita yang mengedepankan keberagaman pandangan dan suara masyarakat. Sebagai media online yang berkomitmen pada keberimbangan berita dan informasi yang akurat, [Pikiran-Publik.com](https://www.pikiran-publik.com/) hadir sebagai sumber inspirasi, pemahaman, dan refleksi kehidupan sehari-hari.
How to move download file to remote server by using PuTTY?
Published: 2023-12-22 16:41:34

To move the download file on remote servers, use PuTTY's strong command-line interface to relocate the "Downloads" folder to another location. 

You can also [connect to Bitnami Stack installed AWS instance through PuTTY.](https://www.bloglovin.com/@puttykeyinfo/how-to-deploy-a-bitnami-stack-on-aws-connect)

**Connect to the server by doing the following:**

Launch PuTTY and use SSH to connect to your server.


Navigate to Home Directory: After logging in, use the pwd command to navigate to your home directory. Execute the following command:

**pwd**


List Contents: Use the ls command to list the contents of the current directory and ensure that the "Downloads" file is present.

**ls**

**Move the Download file:**

Now, use the mv command to move the Downloads file to the desired location.
mv Download file /path/to/new/location

Replace **"/path/to/new/location"** with the exact path where you want to move the folder.

Following these instructions allows you to use PuTTY to effectively transfer the Download file, improving the organization of your server file structure.
How to connect securely to an RDS instance running in a private Subnet
Published: 2023-12-22 16:30:23

In this article we will connect to an RDS instance locally using an SSH tunnel. [This](https://youtu.be/ypWzL3PdKx0?si=piXeesMo-KeYPhcu) video was useful.

## Goal
Need to connect to an RDS instance present within a private subnet, which lacks public accessibility. 

## Problem
A public subnet has a route to an internet gateway configured in its route table. This helps making a connection between the VPC and the internet.
A private subnet does not have any route to an internet gateway. We cannot access resources within the private subnet from outside the VPC.
We should not put our RDS instances in public subnets only for the purpose of accessing them because this leads to direct public access of our data which is a security concern.
However, at times, we may want to access our data locally for debugging purposes. Therefore, we need a mechanism to connect to our database in a private subnet.

## Resolution
Get along, till end, you will find out.

### Create an EC2 instance
We need to create an EC2 instance keeping the following features:
1. Locate the EC2 instance in a public subnet
2. Make sure it is the same VPC in which we have put the RDS instance
3. Don't forget to download the .pem file to access the EC2 instance
4. Associate the EC2 with a security group which has inbound access from anywhere (or at least your own IP)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/euigi3nmm622iei0uib6.jpeg)

Once you follow above steps, you have a pem file, and an EC2 host, with you, which we are going to utilize later using the universal ec2 user, which is ec2-user. 
 
### Testing local EC2 connection
To test the local connection to EC2, we are using jetbrains Intellij, and will be following below steps:
1. Go to data sources and drivers, then the SSH tunnel tab. 
2. Set an SSH configuration, mentioning the 
- EC2 host
- EC2 user (default user: ec2-user)
- Select the authentication method as key pair, then locate the pem file we downloaded earlier for EC2 connection.
- Now, check if correct, by testing connection.  
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xp4d4envscphranplykd.png)

Now, we have EC2 securely connected on our local, which we are going to use for connecting with database now. 

### Configuring local Database connection
To connect with DB, again we will use intelliJ IDE. For making connection with the DB, you need following details:

- RDS instance host
- DB username
- DB password
- DB Port 
- DB name

Go to the general tab, enter above details. 
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4qlc6xn2vzgiroyih73v.png)

Once filled, test the connection, if you have followed above steps along with me, we will surely see below prompt.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ank1fnydaxm2lc81r3s.png)
 
### Note
There is also a super easy way to connect to private RDS with [7777 and RDS](https://dev.to/slootjes/aws-rds-elasticache-remote-access-with-port7777-2hpn)