teleren/devto huggingface dataset:
Don't Panic! Recover Your Windows Crash with System Restore Points
Tags: tricks, windows, hacks, techtalks
Published: 2024-07-01 02:44:28

Has your once-reliable Windows PC become sluggish, unstable, or even crashed entirely? Don't despair! Before you consider drastic measures like a full system reinstall, there's a handy built-in tool called System Restore Point that can be your digital guardian angel.

## What is System Restore Point?

Think of a System Restore Point as a time machine for your computer. It takes a snapshot of your system's settings, files, and drivers at a specific point in time. This allows you to revert your PC back to that state if something goes wrong in the future, like a bad software installation or a buggy update.


Here is a video tutorial of my YouTube channel to assist you:

https://www.youtube.com/watch?v=CDHg_P5ZJKM

## Why Use System Restore Point?

Recover from Software Issues: Installed a new program that messed things up? System Restore can take you back to a point before the installation, effectively undoing the damage.
Rollback Faulty Updates: Sometimes, Windows updates can introduce problems. System Restore lets you revert to a point before the update, giving you time to wait for a fix.
Rescue from System Instability: Experiencing random crashes, freezes, or strange behavior? Restoring to a stable point can get your PC back on track.

## Here's How to Use System Restore Point:

1. **Enable System Protection (if not already on):**

- Search for "System Protection" in the Windows search bar.
- Click "Create a restore point" under the relevant drive (usually C:).
- Enable "Turn on system protection" and allocate some disk space for restore points (e.g., 5-10%).
- Click "Apply" and "OK" to activate System Protection.

2. **Performing a System Restore:
**

- Search for "Control Panel" and open it.
- Search for "Recovery" and select "Open System Restore."
- Click "Next" to proceed with system restore.
- Choose a desired restore point (ideally one created before the issue started).
- Confirm your selection and click "Finish" to initiate the restore process.

Important Notes:

- System Restore won't affect your personal files like documents, photos, or music.
- However, it will remove applications, drivers, and updates installed after the chosen restore point.
- Make sure you have a recent backup of important data before performing a System Restore.

By having System Restore Points enabled, you gain a valuable safety net against software mishaps. So, create restore points regularly, especially before installing new programs or applying major updates. Remember, prevention is always better than cure, and System Restore Point can be your knight in shining armor when your Windows PC needs a reset!

Follow for more!

Instagram: https://instagram.com/@tahirdotdev
Facebook:  https://facebook.com/@tahirdotdev
YouTube:   https://youtube.com/@tahirdotdev
DreamPetsAI
Tags: social, photo, pet
Published: 2024-07-01 02:18:53

DreamPets: AI Pet Portrait is the ultimate solution for transforming your pet photos into exquisite works of art. Powered by state-of-the-art artificial intelligence, this innovative tool goes beyond mere filters to artistically interpret each image, ensuring that every portrait is a masterpiece that captures the essence and spirit of your furry companion.Whether you're seeking a vibrant digital artwork or a classic canvas print, DreamPets: AI Pet Portrait delivers unparalleled quality and attention to detail. Simply upload your favorite pet photo, and within moments, experience the transformation as your pet's unique features are enhanced and immortalized in a stunning portrait. Ideal for decorating your home, commemorating milestones, or surprising loved ones with a heartfelt gift, this tool merges technology with creativity to celebrate the love and joy pets bring to our lives.


https://dreampets.ai/
https://x.com/DreamPetsAI
https://www.instagram.com/dreampetsapp
Struggling with Brand Icons in Web Development? Try Simple Icons!
Tags: react, icon, library, webdev
Published: 2024-07-01 02:01:49

Choosing a useful library can be tricky during web development because each library has its pros and cons. Today, I want to share the icon libraries I frequently use. For standard icons like mail and phone, I prefer [Lucide Icons](https://lucide.dev/icons/). Lucide Icons offers a wide range of high-quality, customizable icons that are perfect for everyday use in web applications. They are lightweight and easy to implement, making them a great choice for developers who need a reliable set of standard icons.

However, when it comes to brand icons, Lucide Icons doesn’t always have what I need. After some research, I discovered Simple Icons. You can check out this library at Simple Icons. Since I use React, I integrated their package library. Simple Icons offers “3150 Free SVG icons for popular brands,” which is amazing. After incorporating it into my projects, it perfectly addressed my need for standard brand icons.

Here’s a quick example of how to use Simple Icons in a React project:

First, install the necessary package:

```
npm install react-icons simple-icons
```

Then, you can use the icons in your React components like this:
```
import React from 'react';
import { SiReact, SiNextDotJs, SiJavascript, SiTypescript } from 'react-icons/si';

const IconExample = () => (
  <div>
    <h1>Using Simple Icons in React</h1>
    <div>
      <SiReact size={40} color="#61DBFB" />
      <SiNextDotJs size={40} color="#000000" />
      <SiJavascript size={40} color="#F7DF1E" />
      <SiTypescript size={40} color="#3178C6" />
    </div>
  </div>
);

export default IconExample;
```

In this example, we import icons for React, Next.js, JavaScript, and TypeScript from the react-icons package, which includes icons from Simple Icons. We then use these icons in a simple React component.

#react #simpleicons #Nextjs #WebDevelopment #javascript #typescript
Multiplayer game implementation
Tags: webdev, beginners, learning, design
Published: 2024-07-01 01:49:15

Our team is working on a player implementation [In the direction 'Fall Guys' and a blunder humor As in 'Worms3D' ]

Our team consists of:

- Two level designer

- A programmer

-Two marketing experts

- an atmosphere, designer

And me?, Animation is my direction.

It is never wrong to ask people who have the desire and time to take on a greater challenge.

Then your whole house can be pulled, which is attached to ropes and pulled by a whole crew. Consequently, the bigger the house, the better it is to take part in the house, because it will be less difficult for those who are already enthusiastic about it :)

It is a long-term project. What is expected to get the first maiden flight in two years.

If you are interested, just write. A phone call is also very much appreciated, whether with or without a camera.

Ask questions and further information will then be provided in case of serious interest.

And again quite marginally said The work is a lot and the pay is bad And to bring that again in a good context, I simply quote Gimli From Lord of the Rings "a high probability of death, a narrow prospect of success. What are we waiting for!'" .

Greetings from Bavaria To you out there 🙋‍♂️🙂
Is JS obfuscation the same as JS encryption?
Tags: obfuscator, javascript
Published: 2024-07-01 00:57:05

Is JS obfuscation the same as JS encryption?

In most cases, JS obfuscation and JS encryption refer to the same thing.

Conventionally, non-English-speaking countries refer to it as JS encryption, while English-speaking countries call it obfuscation. They are actually the same. Both refer to protecting JS code, such as making variable names meaningless, encrypting strings, scrambling execution flows, and so on. The purpose is to make JS code unreadable and difficult to understand, thus preventing the code written by oneself from being used or analyzed by others.

JS obfuscation and JS encryption have become a mature industry, with many popular tools, often in the form of SaaS online websites. For example, js-obfuscator, jshaman, jsjiami.online, are all professional JS obfuscation and encryption tools.

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

However, in JS programming, there is another type of encryption, referring to encryption algorithms, such as MD5 encryption and Base64 encoding. But they are generally referred to directly as encryption algorithms, rather than JS obfuscation or JS encryption.
Advanced Networking Concepts with Cisco Packet Tracer
Tags: javascript, beginners, programming, tutorial
Published: 2024-07-01 00:38:12

## Introduction

In today’s digital era, networking plays a crucial role in connecting different devices and enabling communication between them. Cisco Packet Tracer is a powerful simulation tool used to design, configure, and troubleshoot networks. It provides a practical learning experience for advanced networking concepts. In this article, we will discuss the advantages, disadvantages, and features of Cisco Packet Tracer.

## Advantages of Cisco Packet Tracer

One of the significant advantages of using Cisco Packet Tracer is its user-friendly interface. It allows users to simulate networks with ease, making it suitable for beginners and experts alike. It also provides a cost-effective solution for network experimentation without the need for physical network equipment. Cisco Packet Tracer offers a vast range of predefined network devices, allowing for the creation of complex network topologies. Additionally, it offers real-time network simulation, enabling students to apply theoretical knowledge in a practical setting.

## Disadvantages of Cisco Packet Tracer

The main disadvantage of using Cisco Packet Tracer is its limited support for advanced networking protocols. It lacks support for some essential protocols, such as BGP and OSPF, making it less suitable for advanced networking practices. Another drawback is that it is not a real-world simulation, and therefore, it may not accurately represent network behavior in real-time scenarios.

## Features of Cisco Packet Tracer

Cisco Packet Tracer offers various features that make it an ideal tool for advanced networking concepts. It provides a dynamic workspace that allows drag and drop of network devices and allows for real-time configuration and monitoring of networks. It also facilitates the creation of network troubleshooting scenarios, allowing students to practice and enhance their skills.

### Example of Creating a Simple Network in Cisco Packet Tracer

```plaintext
1. Open Cisco Packet Tracer.
2. Drag and drop a router and two switches from the bottom device menu.
3. Connect the devices using the automatic connection type.
4. Assign IP addresses to each device through the GUI.
5. Test connectivity using the simulation mode.
```

This example demonstrates the basic steps to create a simple network topology in Cisco Packet Tracer, highlighting the ease of use and practical application of networking concepts.

## Conclusion

In conclusion, Cisco Packet Tracer is an efficient tool for learning and practicing advanced networking concepts. Its user-friendly interface, cost-effectiveness, and practical learning experience make it a popular choice among students and networking professionals. However, its limited support for advanced protocols and lack of real-world simulation may be considered as its drawbacks. Overall, Cisco Packet Tracer is a valuable resource for anyone looking to gain practical knowledge in the field of networking.
[Help] [Telegram Bot] Can I get the user IP address with telegram bot?
Tags: help
Published: 2024-07-01 00:36:19

I am an experienced blockchain & telegram bot developer and now in progress of developing a telegram bot.
I need to implement a feature that bans the users of specific locations with IP address.
Furthermore, I want to know it is possible to get the IP address with telegram bot.
Looking forward to your advice. Thanks.
Entendendo Código Legado: Uma Abordagem Prática
Published: 2024-07-01 00:07:57

**Disclaimer**

Este texto foi concebido pela IA Generativa em função da transcrição do episódio do nosso canal, Dev Eficiente. [O episódio completo pode ser visto no canal.](https://youtu.be/qontPwNQVLk)

## Introdução

Neste post eu quero mostrar para você um exemplo prático do processo de entendimento de um código legado. Imagine que você acabou de chegar em uma empresa nova, que tem um código legado consideravelmente complexo, e você agora precisa entender esse código para começar a fazer suas atividades no dia a dia. Como fazer?

## A Teoria por Trás da Prática

Eu fiz uma combinação do mundo acadêmico com o mundo real. Encontrei um artigo científico, que tem mais de mil citações, formando uma teoria sobre como você pode fazer uma abordagem para entender um código legado. Esse artigo, intitulado "Towards a Theory of the Comprehension of Computer Programs", é um texto antigo de 1983, mas ainda muito relevante. Ele define um processo básico e as variáveis que influenciam nesse processo.

## Aplicando a Teoria no Mundo Real

Peguei a teoria do artigo e apliquei em uma situação real. Baixei o código do framework Spring. Queria entender como funciona o processo de resolução do Spring quando chega uma rota e ele tem que invocar um método de um controlador mapeado.

## Processo de Verificação

O autor do artigo, Reuven Brooks, descreve que todo o processo de entendimento de código começa com a definição de uma hipótese primária. A partir dessa hipótese, você parte para o processo de verificação, buscando dicas dentro do código que corroborem ou refutem a hipótese. Durante esse processo, você pode derivar novas hipóteses e refiná-las.

## Estratégias de Compreensão

Existem três variáveis que influenciam na sua habilidade em entender um código legado:

- Especialização na Tecnologia: Quanto mais especializado você for na tecnologia, mais facilidade terá em navegar na base de código.
- Conhecimento sobre o Domínio: Entender o problema que o software resolve facilita a formulação de hipóteses.
- Estratégias de Compreensão: Diferentes pessoas podem ter diferentes estratégias de compreensão, e algumas podem ser mais eficazes que outras.

## Exemplo Prático

No meu exemplo, comecei olhando para os testes de unidade do Spring, especificamente buscando por algo relacionado a "handler mapping". Encontrei um teste que instanciava um "simple URL handler mapping". A partir daí, usei uma estratégia de colocar breakpoints no código para entender o fluxo de execução.

## Conclusão

Lidar com código legado é uma atividade padrão na vida de desenvolvedores. Quase nunca estamos na posição de começar algo do zero. Ter uma estratégia bem definida para avançar no entendimento pode acelerar, sua capacidade de gerar valor num ambiente novo. 

Espero que este post tenha ajudado a entender melhor como aplicar teorias acadêmicas na prática para compreender códigos legados. Até a próxima!

**PS:** Se você gostou, deixe um comentário. Se não gostou e tem um comentário construtivo, deixe também. Vou ter o maior prazer em responder.
[Game of Purpose] Day 43 - 2 cameras
Tags: gamedev
Published: 2024-06-30 23:33:24

Today I added a 1st person camera to a Drone, which you can toggle between using "c" key.

Unfortunately there are 3 problems:
1. It is attached to a Drone, so it inherits its rotation, so when it moves forward the camera also tilts backwards. It should stay still despite tilting.
2. When I move the camera to the very bottom it just glitches for a few seconds and then inverts the steering (you can see at the end of the video).
3. It should be locked to rotate only up certain degrees. There is no point in rotating and seeing Drone's belly.

{% embed https://youtu.be/9TUEN9GWw3Y %}
geo2tz - 4 years later
Tags: timezone, go, rest
Published: 2024-06-30 23:12:00

**tl;dr** after 4y, the projects have been substantially updated and it is now well-tested and mature.

In July 2020, I [wrote on this platform]( https://dev.to/noandrea/ready-self-hosted-geo-to-timezone-service-1ee0) about [geo2tz](https://github.com/noandrea/geo2tz), a rest API to retrieve the timezone from latitude and longitude coordinates.

I have sporadically updated the project from time to time, and now, four years later, something has happened that moved me to give it some love and make sure it is up to date, this led to a complete rewrite of the engine that powers it, and this post is about what are the reasons and what are the results of this rewrite.

When I published the project in 2020, I was working on another project, and I needed something like geo2tz, but I could not find anything that fit my requirements, so I decided to create it by putting together a web framework, the timezone data and a library that was providing the logic to process and query the timezones GeoJson, and that was it.

Fast forward to the beginning of 2023, I get an [issue open](LINK https://github.com/noandrea/geo2tz/issues/22) of a person complaining about a set of coordinates missing, but it looked like it was a dataset issue, so there was nothing much to do. But at the beginning of 2024, someone pointed out that the service was not working properly for other coordinates. 

Clearly, something was afoul, and since there were people who took the time to comment, I took it more seriously to check what was going on. What I found out is that the issues were coming from the library that I was using to manage the timezone data, the library stopped being updated and was actually returning incorrect results. 

I took my sweet time to do it, not gonna lie, but eventually, I rewrote the GeoJSON parser, re-engineered the index and algorithm to match the timezone from coordinates, and added a lot of tests to make sure that geo2tz behaves correctly and here we have, a new shiny version ([2.4.0](https://github.com/noandrea/geo2tz/releases/tag/v2.4.0)) that is ready to put to use!
Linux User Creation Bash Script
Tags: backenddevelopment, bash, devops
Published: 2024-06-30 22:59:25


Hello everyone, I am Kahuna, and I’m excited to share my latest technical article. As a DevOps engineer, I was asked to manage user accounts and groups. Today, I’ll walk you through a script I wrote to automate this process. This script reads a text file containing usernames and their respective groups, creates users and groups as specified.

##Prerequisites
I ensured I have the necessary permissions to create users and groups, and write to the /var/log/ and /var/secure/ directories.

##The Script
Here’s a breakdown of the create_users.sh script:

###Log and Password Files: 
The script uses /var/log/user_management.log for logging actions and /var/secure/user_passwords.csv to securely store generated passwords. The /var/secure/ directory is set with restrictive permissions to ensure password security.

###Input Validation: 
The script checks if an input file is provided and exits with usage instructions if not.

###Logging Function: 
A simple function logs messages with timestamps to the log file.

###Password Generation: 
A function generates random 12-character passwords using /dev/urandom.

###Processing the Input File: 
The script reads each line of the input file, extracts the username and groups, and processes them:

- User Existence Check: If the user already exists, it logs the information and skips to the next line.
- User Creation: It creates the user with the specified personal group and a home directory.
- Additional Groups: If additional groups are specified, the script creates them if they don’t exist and adds the user to these groups.
- Password Setting: It generates and sets a random password for the user and logs this action.


##Running the Script
To run the script, I have saved it as create_users.sh, and I have provided the input file as an argument:


```
chmod +x create_users.sh
sudo ./create_users.sh employee_file
```

####Input File
Here’s the input file (employee_file) looks like:

```
Kahuna; Backend,DevOps,HR
Dami; DevOps,HR
Sola; Backend
```

###Conclusion
This script automates the process of creating and managing users and groups, ensuring consistency and security. I am currently on a DevOps journey with HNG Internship. To learn more, check [HNG Internship](https://hng.tech/internship) and [HNG Premium](https://hng.tech/premium).
IAC - Azure WebApp creation
Tags: azure, iac, terraform
Published: 2024-06-30 22:20:04

**Step1:** Terraform provider section

```
    terraform {
        required_providers {
            azurerm ={
                source = "hashicorp/azurerm"
                version="3.17.0"
            }
        }  
    }

```

**Step2:** Provider section of azurerm

Refer to article to get mentioned details required to be provided in azurerm provider - https://dev.to/srinivasuluparanduru/azure-service-principal-creation-step-by-step-approach-2a46

```
provider "azurerm" {
        subscription_id = ""
        tenant_id = ""
        client_id = ""
        client_secret = ""    

        features {
            
        }
    }

```


**Step3:** Azure resource group creation

```
resource "azurerm_resource_group" "example" {
        name     = "template-grp"
        location = "North Europe"
    }
```

**Step4:** Azure service plan

```
resource "azurerm_service_plan" "plan202407" {
        name                = "plan202407"
        resource_group_name = azurerm_resource_group.example.name
        location            = "North Europe"
        os_type             = "Windows"
        sku_name            = "F1"
    }
```
**Step5:** Creation of Azure web app

```
resource "azurerm_windows_web_app" "example" {
        name                = "examplewebapp"
        resource_group_name = azurerm_resource_group.example.name
        location            = azurerm_service_plan.example.location
        service_plan_id     = azurerm_service_plan.example.id

        site_config {
            always_on = false
            application_stack {
                current_stack = "dotnet"
                dotnet_Version = "v6.0"
            }
        }
        depends_on= [
                azurerm_service_plan.plan202407
        ]
    }

```

References:
1.[Service Plan](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/service_plan) 

2.[Azure webapp](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/windows_web_app)

Conclusion : Creation of Azure webapp using IAC - Terraform
💬 If you enjoyed reading this blog post and found it informative, please take a moment to share your thoughts by leaving a review and liking it 😀 and follow me in [dev.to](https://dev.to/srinivasuluparanduru) , [linkedin ](https://www.linkedin.com/in/srinivasuluparanduru)
Hello, DEV Community! I'm Makda Nebyu
Tags: devops, webdev, javascript, beginners
Published: 2024-06-30 22:16:34

# Introduction
Hello everyone! My name is **Makda Nebyu**. I’m a 3rd-year software engineering student at Wachamo University and a photo model. I’m excited to join the DEV Community and share my journey, projects, and knowledge with all of you.

# My Skills and Certificates
I have certificates in:
- JavaScript
- Web Design
- Python
- Computer Basic Skills
- Work Skills

# Projects
Here are some of the projects I've worked on:
1. **Student Result Management System**
   - Description: A web application to manage and track student results.
   - Technologies used: C++

2. **Clinic Management System**
   - Description: A system to streamline clinic operations and manage patient data.
   - Technologies used: JavaScript, HTML, CSS, MySQL.

3. **Library Inventory System**
   - Description: A system to manage library inventory and automate book tracking.
   - Technologies used: Java, MySQL.

# Looking Forward
I'm looking forward to connecting with other developers, learning new things, and contributing to open-source projects. Feel free to reach out to me if you have any questions or if you'd like to collaborate on a project.

# Connect with Me
- [GitHub](https://github.com/maki-nebu)
- [Twitter](https://x.com/MakdaNebyu)

Thank you for reading!