teleren/devto huggingface dataset:
Converting NASA's Open Data into Insights using EONET API
Published: 2023-10-23 13:29:59

**About the Project**

In this project, I have tried to convert the NASA EONET Open Data into a bit more visualized form. This is a very small project where I have accessed the Data about Earth's Natural Events using the Open EONET API from NASA and created an interactive world map. 


**Importing the necessary Python Libraries**

Here I am importing the requests, json, pandas, folium, IPython Library of Python. If you are using Jupyter Notebook and don't have the libraries preinstalled on your desktop then just write the code in a cell below (separately for each library) : 

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


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

Here I have put the API URL and URL key in two variables named as url and key, and then I have set the parameters for making the API request ( if you want to know more about the NASA Open APIs then click on this link: https://api.nasa.gov/ )


Making the API request and printing the textual part of the response 

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

The response is returning us a JSON object (a javascript object), this format of data is almost similar to a Python dictionary.

Now we'll load the data from the json object. 


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


Converting the title, description, and link part of the response Data into a pandas Dataframe. And then I'll check the head of the Dataframe.

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


As you can see all of the are in a single column in our dataframe which means they are not in the normal form so we need to normalize the dataframe.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ai6yknkmqym5rvtoqx6z.png)
We have normalized the dataframe using json_normalize method of the pandas dataframe. 

Now we'll need to separate the event ids and category titles from the categories column.


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

Now we'll see how many of the different natural events happening on earth on that particular data.

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


Now I am using the folium library to create a world map.


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

I have saved the map on my desktop as an HTML file as world_natural_events_map2.html. Now I'll use the IPython library to display the map.

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

this is an interactive map, we can click on the markers and see further details about the events.
How does the "server.proxy" option work in Vite?
Tags: vite
Published: 2023-10-23 13:24:31

Hi everyone, I'm migrating from VueCLI to ViteCLI in a VueJs version 3.x project, I'm having serious problems with the "server.proxy" option because in VueCLI this option works correctly without problems, if I put it in ViteCLI it doesn't work... can you tell me the reason?
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-23 13:24:07

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
How to Effectively and Responsibly Use a Bark Collar?
Published: 2023-10-23 13:16:39

[Dog barking collars in Australia](https://hiddenfence.com.au/product/the-bark-collar/) can tremendously help you train your dog not to bark too much. However, while they can be convenient, you must understand how to use them responsibly.

Misusing [anti-bark collars](https://hiddenfence.com.au/product/the-bark-collar/) can result in excessive stress in your dog. These accessories have devices that stimulate whenever the dog exceeds the barking limit. These stimulations can be agitating, so knowing how to use them is paramount.

To avoid unwanted stress in your dog while ensuring an effective training regimen, here are some tips on how to leverage the bark collar properly:

## Understand Your Dog’s Behaviour

Dogs do not bark simply because they want to. 

Understanding the reasons behind your dog’s excessive barking is beneficial in planning an appropriate training procedure, including whether or not a bark collar is suitable. Nuisance barking can be caused by anxiety, boredom, fear, or communication.

Anxious dogs might be further aggravated if you use bark collars, so consult a professional dog trainer for advice.

## Choose the Right Bark Collar

Not all bark collars are made the same. Bark collars may vary depending on the type of stimulation. To ensure you get maximum efficiency, it is vital to choose the right kind of bark collar.

If you are unsure which to get, we recommend the DogWatch BT-7 Bark Collar. This innovative collar uses a combination of mild static shock, vibration, and audible warning to train your dog’s barking behaviour effortlessly. 

The collar’s static shock, or e-stimulation, is harmless and programmable. Paired with the vibration and audible warning feature, your dog can learn to control its barking patterns without being subject to physical or mental distress.

## Proper Fit and Comfort

Training should not be uncomfortable. When looking for a new bark collar, always ensure comfort regarding correct sizing and material.

Check the bark collar material and gauge how soft and flexible it is. Additionally, ensure that it is lightweight and is the ideal size for your dog. 

## Gradual Training

Beginners may be tempted to use the bark collar at its maximum function to gain quick results. However, this can cause severe distress in your dog, leading to anxiety instead of corrected behaviour.

When using a bark collar for the first time, gradually introduce your pet to the accessory step-by-step. Start with light stimulations and longer bark forgiveness durations before increasing slowly.

You can consult a professional for more advice on introducing the bark collar to your dog.

## Quality Bark Collars

The quality of a bark collar plays a role in its efficiency. When buying bark collars, get them from well-known, trusted brands like [Hidden Fence](https://hiddenfence.com.au/contact/). Visit their website for enquiries.
Botnets are equal opportunity attackers
Published: 2023-10-23 13:12:20

🤖 It’s an easy mistake to dismiss bots as “dumb” because they’re probing for some technology you don’t use and would never be on your site.

🛡 But they’re equal-opportunity attackers; here’s a bot we identified with Wafris that was probing for:

- YII PHP Web Framework admin
- VS Code FTP Credentials
- Microsoft Exchange Backups
- Git Credentials
- Python Drupal Configs
- Mac .DS_Store files
- Laravel Telescope requests viewer

🕵‍♂️ Botnets are often rented out or repurposed for other attacks. Blocking their IPs or networks is a way to cut them off at the knees.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m0vi6n6fb2rksptdgeyt.png)
The cloud just got brighter -Innovate faster with AWS
Published: 2023-10-23 13:03:34

Abigail Adams once emphasized, "Learning is not a random event, it requires passionate pursuit and unwavering diligence." Similarly, at **Gautam Buddha University in Greater Noida**, 300 enthusiastic students, eager to explore the realm of cloud computing, eagerly awaited the event **'Innovate Faster with Amazon Web Services (AWS)'**, organized by the **AWS User Group Delhi-NCR**. The atmosphere was charged with anticipation and excitement.

![Innovate faster](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f6h45zf6a8w4441hb9gz.jpg)

The event featured presentations by our dynamic speakers **Rajat Arora sir and Dipali Kulshrestha ma'am**, concluding with an engaging quiz session.

![Innovate faster](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ntepxkodm43adxh3kj7b.jpg)

The meet-up started with a buzz of excitement, as students and enthusiasts gathered to explore AWS services potential. The speakers set the tone for an engaging session, highlighting the transformative power of cloud technology. 

![Speakers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jtgzt1nb6fj24f29mpe2.jpg)

The speakers radiated enthusiasm and with their expertise, made complex concepts accessible. Their real-world examples and interactive approach resonated with the audience. The session covered vital AWS services such as S3, EC2 instances, and Glacier. It also featured a live demonstration of these technologies, offering a thorough insight into the platform's capabilities. Following this, the speakers delved into the advantages of AWS certifications, outlining their pathways and their significant value in the industry.

![S3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6mffv604rarh2wcd4n3.jpg)

One of the highlights was the quiz session, where participants competed to test their newfound knowledge. The top 5 winners walked away with esteemed AWS swag, further igniting the spirit of learning and exploration.

![Quiz Winners](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9bhe7du64o9ifcv0f7z.jpg)

The key takeaway from this event was the profound impact AWS can have on businesses and individuals alike. The ability to innovate faster, scale efficiently, and leverage cutting-edge technologies. Attendees left with a renewed sense of excitement and a deeper appreciation for the limitless possibilities offered by AWS.

Here are a couple of comments from attendees:

"The insights shared by the mentors were truly beneficial!" - Bhavika Sharma
"It was truly illuminating! I gained a wealth of knowledge about AWS." - Siddharth Kumar

![AWS UG Team](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qctt6k7cmrvbwfvefsqs.png)


Heartfelt gratitude to the organizers for sparking our community's enthusiasm and aiding learners in their dedicated quest for new skills, fueled by their unwavering determination. **This event strengthened my belief in using AWS to turn bright ideas into bright realities. The cloud is calling - who will answer with the next big thing? **
Exploring The Power Of React Hooks
Published: 2023-10-23 12:40:27

Introduction:
Welcome, fellow developers, to an exciting journey into the world of React Hooks! Today, we'll dive into this revolutionary feature of React that has transformed how we write functional components and brought a new level of simplicity and reusability to our code. So, grab your coding gear as we explore the power of React Hooks!

Understanding Hooks:
To put it simply, Hooks are functions that allow us to use state and other React features in functional components. Before Hooks, we were limited to using class components to access React's state and lifecycle methods. However, with Hooks, we can now achieve the same functionality in functional components, bringing us closer to a fully functional paradigm.

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



The Magic of useState Hook:
One of the most widely used Hooks is useState, which enables us to add state to our functional components. By calling this Hook, we create a state variable and a function to update it. This means we can now easily manage component-level state without the need for a class. Whether it's a checkbox, input field, or a complex form, useState empowers us to handle state changes effortlessly.

Effect Hook for Side Effects:
Another powerful Hook is useEffect, which allows us to perform side effects in our components. Side effects include data fetching, subscriptions, or manually changing the DOM. By using this Hook, we can avoid cluttering our code with lifecycle methods and achieve a cleaner and more intuitive approach to handling asynchronous tasks.

Custom Hooks for Reusability:
React Hooks also introduced the concept of custom Hooks, enabling us to create reusable logic across multiple components. By extracting common stateful logic into a custom Hook, we can share functionality between components without duplicating code. This promotes code maintainability, reduces redundancy, and enhances our overall development efficiency.

Breaking Down Barriers:
React Hooks have proven to be a game-changer, breaking down barriers between functional and class components. With Hooks, we can now enjoy the benefits of functional components, such as improved performance and easier testing, without sacrificing the use of state and other React features.

Conclusion:
React Hooks have revolutionized front-end development by providing us with a simpler, more elegant way to write code. They have brought the power of state management and other React features to functional components, making our code more modular, reusable, and maintainable. Whether you're a seasoned React developer or just starting your journey, exploring Hooks will undoubtedly enhance your development experience and enable you to create better, more efficient applications.

So, dear developers, embrace React Hooks, and let your creativity flourish as you build amazing web applications with ease and joy!

Happy coding!
focussync v1.1.0 Release Notes
Tags: webdev, nextjs, react, productivity
Published: 2023-10-23 12:39:46

# focussync v1.1.0 Release Notes

We are excited to announce the v1.1.0 release of [focussync](https://focus-sync.vercel.app)! This update includes several major improvements and new features based on user feedback.   

## Updates in this release:

### Improved landing page design
We have revamped the landing page design to make it more visually appealing and clearly showcase the benefits of focussync.

### New user stats page     
A new user stats page has been added which gives users insight into their progress and performance.   

#### Interactive productivity calendar
The user stats page contains an interactive productivity calendar which shows a user's daily productivity score over time along with how many tasks they completed each day. This provides an at-a-glance view of progress and performance.

### Houses page  
The houses page shows the values and qualities that define each house. This helps users choose a house that matches their personality.   

### User badges   
Users can now earn badges for achievements like logging their tasks daily for a week, hitting a streak of productive days, etc. Badges provide motivation and a sense of progress.

### Delete update button  
A button has been added to allow users to delete updates they have logged. This gives users more control over managing their data on focussync.

---

We hope you enjoy these new features and improvements! As always, please continue sharing your feedback and suggestions. Our aim is to build the most useful productivity tool for our amazing community of users.

Let us know if you have any questions. We look forward to releasing v1.2.0 of focussync with even more features based on your feedback.

Thanks for using [focussync](https://focus-sync.vercel.app) and helping us build something people love!

---

Also, we've submitted focussync for TheFullStack Hackathon, and would really appreciate it if you could vote for us [here](https://thefullstack.network/Medea/project/focus-sync).
3D Book Animation. Jai Shree Ram. Happy Dussehra ✨
Tags: freecodez, react, html, blog
Published: 2023-10-23 12:39:26

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

**3D Book Animation. Jai Shree Ram. Happy Dussehra ✨**

![3D Book Animation. Jai Shree Ram. Happy Dussehra ✨](https://res.cloudinary.com/freecodez/image/upload/v1698064711/images/hyjpzlurgr36u4ax862z.webp)

For full source code visit : [https://freecodez.com/post/hao8uep](https://freecodez.com/post/hao8uep)


```
<!-- https://freecodez.com -->
<div class="container">
    <div class="book">
        <div class="img-container">
            <img src="https://res.cloudinary.com/freecodez/image/upload/v1698064612/images/hu1nblgtmlg36c1kqnjx.webp" alt="image" />
        </div>
        <div class="details">
            <h2>जय श्री राम</h2>
            <p>
                Jai Shri Ram is a Hindu devotional phrase that means "Victory to
                Lord Rama." It is a popular greeting and expression of faith among
                Hindus. Ram is a major deity in Hinduism, and he is revered for his
                righteousness, courage, and compassion. The Jai Shri Ram chant is
                often used during Hindu religious festivals and ceremonies <br />
                <br />
            --freecodez
            </p>
        </div>
    </div>
</div>
```

Source Code : [https://freecodez.com/post/hao8uep](https://freecodez.com/post/hao8uep)

For more such articles visit : [https://freecodez.com](https://freecodez.com/all)
Being Contributor for Hacktoberfest '23
Tags: hack23contributor
Published: 2023-10-23 12:34:40

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
Hello <dev.to>, My name is Shamith and I have successfully completed my hacktoberfest challenge. Even though I am familiar with open-source contributions, my skills were not up to the mark to contribute to some big projects. But that didn't stop me from completing the hacktoberfest challenge.

{% embed https://github.com/iamwatchdogs %}


### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->
I have faced many issues being a beginner and I want to help people understand open source contribution. So, that is why I have created a few repos that are very beginner-friendly yet good-quality projects for newbies that were like me at the beginning. And while creating those Repo, I made a few pull requests, thus completing my hacktoberfest challenge.

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
During this year's hacktoberfest, I was able to learn and understand how the Jekyll frameworks and how to build simple projects using them. Including to that, I got well at writing automation scripts using Python and creating a bit complex and reusable workflow for GitHub actions.
Determining Tests in Test-Driven Development (TDD)
Tags: testing
Published: 2023-10-23 12:27:37

## Determining Tests in Test-Driven Development (TDD)

In the world of Test-Driven Development (TDD), guidance is provided on how to decide what tests to write. The chapter emphasizes the following key points:

## Determining the Next Most Important Thing

When deciding which tests to write next, developers should zero in on the **next most important thing** that the system does not yet do. This entails identifying the functionality or behavior that is pivotal for the system but has not been implemented. Prioritizing these essential tasks ensures that developers make progress toward the overarching goals of the system.

## Thinking from the User's Perspective

Another crucial aspect mentioned in the chapter is to **think from the user's perspective** when determining what tests to write. This involves considering how users will interact with the system and identifying the functionality that is indispensable to their needs. By empathizing with the user's experience, developers can prioritize tests that address core requirements and provide genuine value to end-users.

## Incremental Development

The chapter underscores the importance of **incremental development** within TDD. Rather than attempting to implement all the desired functionality at once, developers should focus on one small piece at a time. This approach enables a more manageable and iterative development process, where each test builds upon the previous ones. The system gradually evolves, making it more adaptable and aligned with the desired requirements.

By heeding these principles—determining the next most important thing, thinking from the user's perspective, and embracing incremental development—developers can effectively prioritize their testing efforts. This ensures that they address the most critical aspects of the system, delivering value to end-users and maintaining a focused, efficient development process.
Direct and Indirect Effects of Test-Driven Development (TDD)
Tags: testing, development
Published: 2023-10-23 12:22:56

## Direct and Indirect Effects of Test-Driven Development (TDD)

Test-Driven Development (TDD) has both direct and indirect effects on the software development process. This approach offers valuable insights and brings numerous benefits to developers and teams. Here's an in-depth explanation of these effects:

## Design Feedback Mechanism

TDD serves as a **design feedback mechanism** by providing continuous feedback on the design of the codebase. When developers write tests first, they are compelled to think about the desired behavior and interface of the code before writing the implementation. This practice fosters the creation of code that is modular, loosely coupled, and adheres to good software design principles.

## Embracing Challenges and Pain

Embracing the challenges and initial discomfort associated with TDD is crucial. TDD may seem difficult or time-consuming at first, but it is through this process that developers uncover design flaws, identify edge cases, and improve the overall code quality. By embracing these challenges and the initial learning curve, developers can reap long-term benefits from TDD.

## Direct Effects of TDD

The **direct effects of TDD** are numerous and significant. They include:

- **Improved Code Quality**: Writing tests first allows developers to catch bugs early in the development process, resulting in more reliable and robust code.

- **Increased Test Coverage**: TDD encourages comprehensive test coverage, ensuring that code is thoroughly examined.

- **Reduced Debugging Time**: Bugs are detected early, making debugging more efficient and less time-consuming.

- **Modular and Testable Code**: TDD fosters the creation of modular, testable code, leading to easier maintenance and future enhancements.

## Indirect Effects of TDD

TDD's **indirect effects** are equally valuable and include:

- **Improved Collaboration and Communication**: TDD promotes a shared understanding of the codebase and encourages frequent code reviews and discussions among team members.

- **A Culture of Continuous Improvement**: TDD cultivates a culture of continuous improvement and learning within the development team, leading to ongoing enhancements in development processes and practices.

By understanding both the direct and indirect effects of TDD, developers can better appreciate the value it brings to the software development process. TDD not only results in improved code quality and efficiency but also fosters better collaboration, communication, and an overall culture of continuous learning and improvement within the development team.