teleren/devto huggingface dataset:
Como evitar problemas de "Zabbix poller processes more than 75% busy"
Tags: devops, sre
Published: 2024-06-29 13:52:58


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

Quando você utiliza o Zabbix para monitoramento, é essencial manter seus pollers eficientes para evitar problemas como alertas indicando que os processos estão mais de 75% ocupados. Isso pode afetar a performance e a confiabilidade do seu sistema de monitoramento. Aqui estão algumas práticas recomendadas para evitar esses problemas:

## Otimização de Configuração

1. **Ajuste do Intervalo de Polling:** Verifique se os intervalos de polling estão configurados de acordo com a necessidade real de monitoramento. Intervalos muito curtos podem sobrecarregar os pollers.

2. **Distribuição de Carga:** Distribua a carga de monitoramento entre múltiplos pollers, se possível, para reduzir a carga em cada um.

3. **Configuração de Thresholds:** Configure thresholds adequados para evitar alertas falsos ou desnecessários, ajustando-os conforme necessário para o ambiente monitorado.

## Monitoramento e Ajustes

1. **Monitoramento de Performance:** Utilize o próprio Zabbix para monitorar a performance dos seus pollers. Crie triggers e gráficos que alertem quando a utilização estiver alta.

2. **Análise de Logs:** Regularmente revise os logs do Zabbix em busca de mensagens relacionadas à carga dos pollers para identificar padrões e ajustar a configuração conforme necessário.

## Solução Definitiva

Para uma solução definitiva e mais detalhada, recomendamos consultar a página da [DevOps Mind](https://www.devopsmind.com.br), onde você encontrará orientações específicas e todas as ações necessárias para corrigir os problemas de pollers sobrecarregados no Zabbix:
[https://devopsmind.com.br/observabilidade/zabbix-poller-processes-tuning/](https://devopsmind.com.br/observabilidade/zabbix-poller-processes-tuning/)

Lembre-se sempre de adaptar essas recomendações ao seu ambiente específico e de testar qualquer mudança em um ambiente de teste antes de aplicá-la em produção.
Driving Success: A Deep Dive into Retail Sales Trends of Classic and Vintage Vehicles
Published: 2024-06-29 13:43:10

As part of our task for the HNG internship on Data Analysis, we were tasked with exploring a dataset detailing the retail sales of a company specializing in various vehicle models. The dataset covers sales data from January 2003 to May 2005, providing insights into the company’s operations during this period.

The company diverse product portfolio, features Classic Cars, Motorcycles, Planes, Ships, Trains, Trucks and Buses, and Vintage Cars. This extensive range underscores their ability to cater to a wide spectrum of customer preferences, enhancing their market appeal.

Another notable observation is the company’s robust global presence. The dataset reveals substantial sales not only domestically but also across numerous countries worldwide. Notably, the United States emerges as a key market leader, contributing significantly to the company's total sales figure of approximately $8.99 million. This international footprint highlights the company's effective market expansion strategies and potential for further growth.

Detailed transaction records provide a comprehensive view of order numbers, dates, quantities, prices, and customer details. With data from 92 unique customers, we gain valuable insights into consumer behavior and preferences, crucial for refining marketing strategies and improving customer satisfaction.

Further analysis of 109 unique product codes alongside manufacturer’s suggested retail prices (MSRPs) sheds light on product performance and market dynamics. This data-driven approach not only identifies top-selling products but also informs strategic decisions related to inventory management and pricing strategies.

The visualization below offers a clear overview of each product category's sales volume, providing insights into consumer preferences and market trends.

![Sales Data Analysis on Power BI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rfu3sfuwo12lrjdkij1a.png)


![Sales Data Analysis on Power BI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/24moa0deliiw8xd7e4u4.png)


In conclusion, our preliminary analysis of this retail sales dataset provides valuable insights into the company’s diverse product offerings, strong global presence, and detailed customer and sales data. These insights lay a solid foundation for deeper analysis, focusing on long-term sales trends, customer demographics, and strategic business decisions.

For those interested in exploring the dataset further, you can access [it here](https://www.kaggle.com/datasets/kyanyoga/sample-sales-data).

To know more about the internship program, visit:
- [HNG Internship](https://hng.tech/internship)
- [HNG Hire](https://hng.tech/hire)
in product details page, go to the top position on the details page
Tags: angular
Published: 2024-06-29 13:40:56

`_base.scss`
```css
html {
  scroll-behavior: smooth;
}
```

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

`app-routing.module.ts`
```ts
@NgModule({
  imports: [RouterModule.forRoot(routes, {
    scrollPositionRestoration: 'enabled',
    anchorScrolling: 'enabled',
    preloadingStrategy: CustomPreloadingStrategy
  })],
  exports: [RouterModule],
  providers: [UserAuthGuard, UserAuthStateGuard]
})
export class AppRoutingModule {
}
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgfxqzpkmwf11kedvrnt.png)
Debugging My Demons : Console.log(Story Untold)
Tags: webdev, programming, javascript
Published: 2024-06-29 13:33:41

Hey everyone, Devdee here! As a software engineer, my days are filled with griming exciting challenges and the constant thrill of the unknown. Recently, I encountered a particularly nasty backend bug that had me pulling my hair out (figuratively, of course). Today, I want to share my battle with data inconsistency and the steps I took to slay that gremlin.

**

## Missing User Data
**
It all started with the front-end dev team reports of missing data. Login credentials were correct, yet the system displayed empty profiles. Panic started to set in –  a wrong code setup? System crash? My initial investigation revealed no errors in the database itself. The data was there, but somehow wasn't being retrieved for specific users.

**

## The Log Analysis
**

My first line of defense was analyzing server logs. Hours of combing through lines of code yielded a clue: Errors here and there, it wasn't really making sense, but at least I was able to identify where it was coming from. CONSOLE.LOG to the rescue!

**

## Isolating the Problem - Code Review
**

Armed with this knowledge, I dove into the specific code responsible for user data retrieval. After scrutinizing the logic, I found the culprit – a missing synchronization mechanism. Without proper locking, the user data was not retrieved before the front-end application received the response.

**

## Fortifying the Code
**

The solution? Implementing the function as an async identity and using the await instance. This ensures that during the database fetch the code waits for response to the Promise enabled line. The fix was relatively simple to implement, but the debugging process was a real head-scratcher.


#Embarking on the HNG Internship

Speaking of challenges, I'm thrilled to announce that I'll be starting my journey with the HNG Internship program! This opportunity is incredibly exciting for several reasons. Firstly, the program's focus on innovation and building impactful projects perfectly aligns with my passion for creating solutions that make a difference. Secondly, the chance to collaborate with a talented community of developers is invaluable for learning and growth.
You also have a chance to be part of this enriching development check out https://hng.tech/internship or https://hng.tech/premium. Hopefully i get to see you there as well!

As I head into this new adventure, I'm confident that the problem-solving skills honed through battles like the data inconsistency demon will serve me well. Here's to continuous learning, building amazing things, and (hopefully) encountering fewer gremlins along the way! Stay tuned for future updates on my HNG Internship experience!
Styling React.js UIs
Published: 2024-06-29 13:25:19

Asides HTML and Javascript, CSS is one of the main building blocks of Frontend web development. CSS (Cascading Style Sheets) allows you to present websites in different styles even if the websites might share the same markup structure.

In the world of React, there are different ways to use CSS to improve the UI of your website. Two popular ways involves using React UI Component Libraries and CSS Utility Classes.

## React UI Component Library

This is a collection of reusable, pre-built UI components designed for use in React applications. UI elements such as buttons, inputs, selects e.t.c are styled according to a Design System and encapsulated with its functionality to be reused. Some popular libraries in the React ecosystem include: Chakra UI, Material UI (MUI), AntD, Mantime, NextUI e.t.c.

### Pros

- Simple and ready to use components, hence saves time.
- Comes prestyled and less focus on CSS design.

### Cons

- Difficult to adapt to any design.
- Increases bundle size of the app.

## CSS Utility Class

CSS Utility Classes are predefined CSS classes scoped to a particular CSS property which help you to style UI elements quickly without writing additional CSS styles. The classes can be composed together to build a specific design for your UI elements. Popular utility-first frameworks include Tailwind CSS e.t.c.

### Pros

- Flexible, easy to customize and adapt to any design. 
- Build size of the project is tiny as only used classes are included in the bundled react app.

### Cons

- Classes are static making it difficult for dynamic styling.
- Having too many classes clutter up the HTML markup structure.

## Conclusion

Both methods of styling React UIs offer their own benefits and both can be used together in the same React app. When I started my frontend journey, I used React UI Component Libraries for styling as it came with its own design system and I was not good in CSS. Over time, I use TailwindCSS now as it is easy to adapt to any design system.

## Bonus: Shadcn UI

[Shadcn UI](https://ui.shadcn.com/) is a game changer as it offers the world of both styling options. It combines the use of unstyled React UI components with the flexibility of Tailwind CSS to build you own reusable component library. 

If you are a newbie looking to build React.js projects or need mentorship in your frontend developer journey, join the [HNG Internship](https://hng.tech/internship) or you can hire from the [HNG Talent Pool](https://hng.tech/hire) for your startup or collaborative projects.
I will review the Titanic Passenger List dataset from Kaggle
Published: 2024-06-29 13:23:42

I will review the Titanic Passenger List dataset from Kaggle. Here’s a step-by-step approach:
Dataset Familiarization
Step 1: Understand the structure and contents of the dataset
Dataset Description: The Titanic Passenger List dataset contains information about the passengers on the Titanic. The key variables include:
•	Passenger Id: Unique ID for each passenger
•	Survived: Survival status (0 = No, 1 = Yes)
•	Pclass: Ticket class (1 = 1st, 2 = 2nd, 3 = 3rd)
•	Name: Passenger name
•	Sex: Gender of the passenger
•	Age: Age of the passenger
•	SibSp: Number of siblings/spouses aboard the Titanic
•	Parch: Number of parents/children aboard the Titanic
•	Ticket: Ticket number
•	Fare: Ticket fare
•	Cabin: Cabin number
•	Embarked: Port of embarkation (C = Cherbourg, Q = Queenstown, S = Southampton)
Step 2: Identify key variables and data types
•	Numerical variables: Passenger Id, Survived, Pclass, Age, SibSp, Parch, Fare
•	Categorical variables: Name, Sex, Ticket, Cabin, Embarked
Initial Data Exploration
Step 1: Quick review of the dataset
We will look at the first few rows of the dataset to understand its structure and contents.
Step 2: Look for obvious patterns, trends, or anomalies
We will perform the following initial checks:
•	Summary statistics for numerical variables (mean, median, standard deviation, etc.)
•	Frequency counts for categorical variables
•	Check for missing values
Insight Identification
Step 1: Note initial insights
We will note any immediate observations from the dataset, such as:
•	Distribution of survival rates
•	Age distribution of passengers
•	Relationship between ticket class and survival rate
•	Gender distribution and its impact on survival
•	Fare distribution and its correlation with ticket class
Technical Report Writing
Introduction
The Titanic Passenger List dataset provides information about the passengers aboard the Titanic, including demographic details, ticket information, and survival status. The purpose of this review is to conduct an initial exploration of the dataset to identify key insights and potential areas for further analysis.
Observations
Based on the initial exploration, we will present our findings, supported by basic visualizations (e.g., histograms, bar charts) and summary statistics. 
Conclusion
We will summarize our observations and suggest potential areas for further analysis, such as exploring the impact of socio-economic status on survival rates or examining family relationships among passengers.
https://hng.tech/hire
Top 10 JavaScript Best Practices
Tags: javascript, bestpractice, cleancode, beginners
Published: 2024-06-29 13:14:08

Writing a clean code is a mere important thing to do in order to make debugging and documentation easy. Along with clean code, some basic mistakes should be avoided for better result. In JavaScript, there are some of the best practices, which if followed, give better code functionality and accurate results.

![Javascript Clean Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzmpsgwk5eusmkltxvam.png)

So here are some of the best practice that needs to be followed while learning to code in JavaScript. It could be benificial in many ways.

1. **Minimize the use of global variables:** Global variables should not be prioritized while coding in JavaScript. Instead, local variables can be used in order for scope reduction and free-ing of memory. Global variables can be turned local using Closures.

2. **Declare JS objects with `const`:** JavaScript objects should be declared by using `const` keyword rather than `let` in order to minimize data type errors.

3. **Declare arrays with `const`:** In JavaScript, arrays should be declared by using `const` keyword rather than `let` in order to minimize data type errors.

4. **Give declarations at top of the code:** Declaring all the variables and functions at the top of the code gives the code a cleaner look and also makes the developer easy to debug.

5. **Minimize the use of `new` keyword:** 
Use "" instead of new String()
Use 0 instead of new Number()
Use false instead of new Boolean()
Use {} instead of new Object()
Use [] instead of new Array()
Use function (){} instead of new Function()

6. **Use `===` instead of `==` as comparison operator:** `===` should be used to compare value as well as data type. Using `==` compares only value and may change the data type.

7. **Always end switch cases with a default case:** Always end your switch statements with a default case, even if you think there is no need for it.

8. **Check for automatic datatype conversions:** A variable may change it's data type as JavaScript is a loosely-typed language. So, type of variables should be checked.

9. **Clear the confusion between Addition & Concatenation:** Confusion may arise between addition and concatenation as both use the `+` operator. So, special care should be taken in order to reduce errors.

10. **Misplacing Semicolons:** JavaScript, being a loosely-typed language doesn't necessary requires semicolon at EOL(end of line) but the misplacement of semicolon may arise numerous error in the code.

![best practices to code in JS javascript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1lep4p48ygc11kcbrkc.png)
Theme Builder now supports Angular 15, 16 & 17
Tags: angular, angularmaterial, materialdesign, webdev
Published: 2024-06-29 13:15:09

---
title: Theme Builder now supports Angular 15, 16 & 17
published: true
description: 
tags: angular,angularmaterial,materialdesign,webdevelopment
cover_image: https://media.dev.to/cdn-cgi/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F69ssqo81hgxmlm6zzcwg.png
---

## 🚀 New major feature dropped on https://themes.angular-material.dev

Now you can preview and export theme palettes for Material 2!

This means that if your project is still using old version of #Angular Material (15, 16 or 17), you can use the theme-builder!

{% embed https://dev.to/ngmaterialdev/theme-builder-demo-for-material-2-1c6 %}

If you or your team is using #Angular Material 15, 16 or 17, do try out the theme builder at https://themes.angular-material.dev

You can create, preview and export theme palettes!

As those versions only supported modifications through SCSS, a live stackblitz is embedded for previews!
React vs. Angular: A Comparative Analysis for Modern Web Development
Published: 2024-06-29 13:07:22

In the ever changing world of web development, choosing the right technology for the development of a project significantly impacts the project success and productivity. In this article I’ll be talking about two of the most popular and powerful frameworks in the industry of web development which is REACT and ANGULAR. Each has its strengths and weaknesses, and understanding these can help developers make informed decisions. Additionally In this article I’ll be talking about how I would approach this new role and share my thoughts about REACT JavaScript.

React: A JavaScript Library for Building User Interfaces.

React which is developed and maintained by Facebook is a JavaScript framework that focuses on creating stunning reusable UI for the users.It ensures high performance by minimizing direct manipulation of the actual DOM, leading to faster updates and rendering.

**Advantages of React**
1. Component based Architecture: React component based architecture promotes code reusability which makes code easier to manage and maintain.

2. Strong Community Support: React has a vast community of users which brings the latest changes or updates and help users navigate through their platform.

**Angular: A Full-Fledged Framework

AngularJS is a structural framework for dynamic web apps. It is developed and maintained by google. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. AngularJS's data binding and dependency injection eliminate much of the code you would otherwise have to write.

Advantages of Angular
1. Data Binding: AngularJS excels in providing powerful data binding capabilities, a key characteristic that makes it unique in Web Development.

1. Strong Typing with TypeScript: Angular is built with TypeScript, which provides static typing, improved tooling, and early error detection.


**My Role in the Company and My Thoughts on React.

In the new role in the company I will be leveraging React to develop and maintain user-friendly, high-performance web applications. My responsibility would include creating reusable components and integrating API’S in collaboration with the backend team.

As a developer I appreciate react component based architecture which allows me to create reusable components which can be easily managed and maintained by other developers. The vast community support ensures that I always have access to the latest tools and best practices. I am excited to contribute to the company's projects using React and look forward to exploring new possibilities with this powerful library.
A Beginner's introduction to back-end development
Published: 2024-06-29 12:48:39

Back-end development, unlike front-end development that deals with the interactive part of the web application, deals with building and maintaining the mechanism of data storage and security of the web application. Back-end technologies like node, Django and Laravel are used to design the back-end aspect in addition to data storage programmes like MongoDB and postgresql.

Attempting a beginner's challenge in the back-end development could be a bit challenging since there is no interaction with the browser.

Below is a challenge that I engaged in as a beginner in nodejs.

**Challenge**
Attempting to design a real time chat application using nodejs and sockets.io. sockets.io is a framework that uses a bidirectional architecture to communicate between server and client.

**Step 1**
The first step was to create an .html file that contains the input type form of the messenger's name and the message. While inside the script tag a socket instance is created to send message to the Express server, and also listen for incoming events.

**Step 2**
In the .JS file, we have created the express app and served the HTML to the server. A socket instance was created to listen to any incoming event and transmits such events to the .html. 

In order to continue to practice and improve my back-end skill, I have enrolled in the HNG internship programme. It offers practical exercises and mentorship to beginners in the tech industry. To get the benefit that the internship has to offer sign up via this link https://hng.tech/internship. To get exclusive content that the programme has to offer you can also sign up to the premium version via https://hng.tech/premium.
modularcleanroomindia
Tags: manufacturing, cleanroom, airshower, india
Published: 2024-06-29 12:55:36


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