teleren/devto huggingface dataset:
My NextJs Learning
Tags: react, nextjs, javascript, mern
Published: 2023-08-24 09:02:07

Last week, I started learning Next.js for a project I had to do. It's been a week full of new things and exciting discoveries.

First, I was amazed by how organized Next.js is. It has a clear structure for building websites, so I didn't have to spend time figuring out where to put my stuff. This made it much easier to focus on actually building the website.

Next.js does something cool called "server-side rendering" (SSR), which makes websites load faster and show up better on search engines. I didn't know much about SSR before, but Next.js made it easy to use.

Making different pages in Next.js is also super simple. You just create new files, and Next.js knows how to turn them into web pages. No more confusing setup for making links work!

In addition to its frontend magic, Next.js also offers impressive full-stack capabilities that make it a versatile choice for web development. Let's dive into what makes Next.js a compelling option for building both the frontend and backend of web applications.

1. API Routes: One of the standout features of Next.js is its ability to create API routes easily. You can define serverless functions within your Next.js project that act as endpoints for handling data and logic on the server. These API routes can be used to fetch or update data, making it an excellent choice for building robust backend functionality.

2. Database Integration: Next.js can seamlessly integrate with various databases, allowing you to store and retrieve data for your application. Whether you prefer SQL databases like PostgreSQL or NoSQL databases like MongoDB, Next.js provides the flexibility to connect to your database of choice.

3. Authentication: Building secure user authentication systems is a breeze with Next.js. You can implement authentication strategies like JWT (JSON Web Tokens) or OAuth to ensure user data remains protected. Many authentication libraries and packages are readily available to streamline this process.

4. Middleware Support: Next.js supports middleware, allowing you to add custom logic before or after API route handlers. This is handy for tasks like authorization, validation, or logging.


5. Deployment Options: Next.js can be deployed as a full-stack application using various hosting platforms and serverless architectures. You can choose from options like Vercel, AWS Lambda, or even containerized solutions for deploying both frontend and backend components.

In summary, Next.js empowers developers to create full-stack web applications with ease. Its ability to handle both frontend and backend tasks, combined with a rich ecosystem of libraries and plugins, makes it a compelling choice for building modern, efficient, and feature-rich web applications from start to finish. Whether you're developing a simple website or a complex web application, Next.js has the tools and flexibility to meet your needs.
Cyber Security Course in Pune: Your Pathway at WebAsha Technologies
Tags: cybersecurity, pune, training, course
Published: 2023-08-24 09:01:33

Undertake on a transformative cyber security journey with WebAsha Technologies' extended [cyber security course in Pune](https://www.webasha.com/courses/cyber-security). Our specialized program is designed to equip you with the knowledge and skills needed to navigate the intricate realm of digital security confidently.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e4vxnrodztyzwmm6hie1.jpg)
Five Things To Know About Waste Management.
Tags: wastemanagement
Published: 2023-08-24 09:00:25

## Five Things To Know About Waste Management


**1.Reduce, Reuse, Recycle: **This mantra highlights the three main strategies in waste management. Reducing waste at the source, reusing items when possible, and recycling materials are essential practices to minimize the amount of waste that ends up in landfills or incinerators.
**2.Waste Hierarchy:** The waste hierarchy is a prioritization framework for **[waste management](https://www.kelvinindia.in/waste-management-system)**. It starts with prevention (reducing waste generation), followed by minimization (reducing the volume and toxicity of waste), reuse, recycling, energy recovery (using waste as a source of energy), and finally disposal (landfilling or incineration). The goal is to move away from disposal and prioritize more sustainable options higher up the hierarchy.
**3.Landfills and Incineration:** Landfills and incineration are the two most common methods of waste disposal. Landfills involve burying waste in designated areas, while incineration burns waste to generate energy. Both methods have environmental concerns, such as the release of greenhouse gases and leachate from landfills, as well as air pollution from incineration.
**4.E-Waste and Hazardous Waste:** Electronic waste (e-waste) and hazardous waste require special attention due to their potential environmental and health risks. E-waste includes discarded electronic devices and can contain hazardous materials like lead, mercury, and cadmium. Proper disposal and recycling of e-waste are crucial to prevent these toxins from entering the environment. Hazardous waste includes materials that are flammable, toxic, corrosive, or reactive. They must be handled and disposed of according to strict regulations to prevent harm.
**5.Circular Economy Approach:** The circular economy is an approach that aims to minimize waste by designing products, materials, and systems in a way that promotes reuse and recycling. This approach focuses on keeping products and materials in use for as long as possible, then recovering and regenerating materials at the end of their life cycle. It contrasts with the traditional linear economy, where products are made, used, and discarded.
Find Cyber Security Classes Near Me | WebAsha Technologies
Tags: cybersecurity, pune, training, course
Published: 2023-08-24 08:58:12

Analyze the [cyber security classes near me](https://www.webasha.com/courses/cyber-security) with WebAsha Technologies, designed to empower individuals with the knowledge and skills necessary to navigate today's digital landscape securely. Join WebAsha Technologies to elevate your cyber security prowess and safeguard your digital presence effectively.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc6qx8mopicpkgi93p78.jpg)
Cyber Security Training In Pune | WebAsha Technologies
Tags: cybersecurity, career, pune, training
Published: 2023-08-24 08:54:24

Upgrade your cyber security skills with WebAsha Technologies' specialised [Cyber Security Training in Pune](https://www.webasha.com/courses/cyber-security). Our institute-crafted courses provide hands-on experience and expert guidance in essential areas of cybersecurity, including ethical hacking, network protection, and more.
Tickets are for solutions, not problems
Published: 2023-08-24 08:50:00

---
title: Tickets are for solutions, not problems
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2023-08-24 08:50 +0000
---

I just realised that I may have been thinking about JIRA tickets (or whatever other tool you use) wrong.
The natural instinct of a developer is to seek to fix problems. See a problem - create a ticket and solve. But what to do when the problem is so large and systemic that it cannot reasonably be solved, no small steps exist to make things better? Then you get this ticket that festers. Frankly, at this point the ticket needs to be closed.

Focus on solutions you can implement, not problems that loom over you.
Best Cyber Security Training Institute In Pune
Tags: cybersecurity, cybersecuritycourse, cybersecuritytraining, pune
Published: 2023-08-24 08:48:47

[Cyber Security Training](https://www.webasha.com/courses/cyber-security) program is designed to equip you with the skills and knowledge needed to safeguard digital landscapes from evolving threats. WebAsha Technologies is the best Cyber Security Training Institute in Pune. Join us and take a proactive step towards a secure digital future.

[](https://www.webasha.com/courses/cyber-security)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yzrbx8c7ruswz78dhedj.jpg)
Src express Packers and movers
Tags: srcexpress, packers, movers, relocations
Published: 2023-08-24 08:46:41

We have all the types of transportations that will make a easy for your materials to move up into a certain place. We have a delicate members where can ensure you the best results and the safe landing of your products.
[Packers And Movers Ahmedabad](https://www.srcexpresspackers.com/
)
Packers And Movers Kalol
Packers And Movers Kadi 
Packers And Movers Mehsana
Packers And Movers Gandhinagar 
Packers And Movers Prantij 
Packers And Movers Vapi 
Packers And Movers Daman 
Packers And Movers Dahegam 
Packers And Movers Valsad 
Packers And Movers Navsari 
Packers And Movers Vadodara 
Packers And Movers Anand 
Packers And Movers Halol
 Office no.5 Balaji Shopping Center near Mahakali Weigh 2nd Phase Gidc Vapi 396195

 +91 7698077770
info@srcexpresspackers.com
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0va434xkhsxwrkdsk53m.png)
How does a webpage get to a user?
Tags: learning, webdev, tutorial, beginners
Published: 2023-08-24 08:40:20



Many things happen between the time a web page is requested and the time it loads completely in your browse.



•	Client Request:



This process begins when the user enters a URL in the browser. This sends a request from the users device to the server that hosts the page that has been requested. This request is sent through the Hypertext Transfer Protocol.		

•	Domain Name System:



For the user to efficiently communicate with the server the domain name of the user is translated into an IP address and this process is known as the DNS Resolution. The IP address is the address or location of where the webpage can be found.  Once the IP address has been created, the user is able to establish a connection with the web server.

•	Server Processing:



The server receives the request and begins processing it. This processing involves making queries, running scripts or accessing resources needed to generate the requested page.

•	Server Responds:
Once the server is done processing, it returns a response to the user. It can return numerous responses such as error responses or successful responses. If the requested page does not exist anymore the server responds with a 404 error (Not found), or if the page has been moved temporarily it returns a 302 and if permanently returns a 301. If there are no errors, the server will respond successfully with a 200, which means OK and the page will be rendered.

•	Browser Renders Page:



As the browser receives the response, it begins to render the requested page. It receives the HTML file and begins rendering along the CSS and JavaScript files. These are styles and scripts used to display the webpage as intended by the website's design.

From the client request to server processing, and from DNS resolution to browser rendering, each stage plays a crucial role in delivering the web content we access every day.
ClipBoard API in JavaScript
Tags: webdev, javascript, beginners, programming
Published: 2023-08-24 08:23:44

The Clipboard API in JavaScript allows you to read data from and write data to the system clipboard. This enables capabilities like copying text to the clipboard and pasting clipboard content into your web apps.

> Check out this [post on my Blog](https://salehmubashar.com/blog/the-clipboard-api-in-javascript)!

---

## Copying Data to the Clipboard
The method `navigator.clipboard.write()` allows us to write data to the clipboard. The method returns a promise and takes 2 arguments:
- The data to write (eg. string, text or DOM element/image)
- The type of data.
To copy plain text to the clipboard we can use the method above like this:
```javascript
navigator.clipboard.writeText('Sample text to save in clipboard!')
  .then(() => {
     console.log('Text copied!');
   })
   .catch(err => { 
     console.error(err.message);
  });
```

## Reading Data from the Clipboard

The method `navigator.clipboard.read()` reads data from the clipboard and returns a promise. It takes one argument which is the type of data to read:

- "text/plain" for plain text
- "text/html" for HTML content
- "image/*" for image data

To read plain text from the clipboard, we can use the method above like this:
```javascript
navigator.clipboard.readText()
  .then(text => {
    console.log(text); 
  })
  .catch(err => {
    console.error(err);
});
```

## Creating a Copy to Clipboard Button

Now let's create a practical example. You may have seen on many websites a button that let's you copy a code or some link. Let's see how we can build it. The HTML/CSS is simple and can be see in the codepen given below.
For the JavaScript, we will first get the paragraph or text element using `document.getElementById`. Next, we will create a function that will save the `innerText` of the text element in the clipboard when the button is clicked.

{% codepen https://codepen.io/saleh-mubashar/pen/GRPgLgw %}

--- 

Thank you for Reading!
Check out this post on my [Blog](https://salehmubashar.com/blog/the-clipboard-api-in-javascript)!
🤓 Design Pakialamero Ep. 01: Kalibrr Skill Cards
Tags: design, tailwindcss, webdev, pakialamero
Published: 2023-08-24 08:14:40

Pakialamero is a Filipino word that means **meddler** or **busybody**.

![Caricature of a busybody by Francis Howell to illustrate that character sketch by Theophrastus.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tultl7f4z0rt4amkb45b.png)

---

Hello everyone! I've dabbled too much in the backend, and I am itching to write front end code on my free time, so today we will be medicating ourselves with making stuff that may or may not look better.

### The Guest

To start off this series, I will be looking at this cool website called Kalibrr, it's an app for looking for jobs (**I'm open to hire!**). Specifically, their _skills_ component in their profile route.

![Kalibrr profile skills component](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lg6hlctwaqofe7jm5rjq.png)

Amazing, very professional looking. But I think it lacks a bit of flair. Firstly, it's pretty hard to distinguish between different levels of skill, and secondly, it's even harder if someone is visually impaired or looking from afar. Also yes, I completely understand that this is a nitpick.

Now I for one, am an advocate for showing important information more visually. In my opinion, a design is good, if even when you're looking at it from afar, it's instantly recognizable and intuitive.

### What did I do?

I added a bit of color to distinguish between levels, and in order to make the knowledge of skills more intuitive, I added a little bar on top of the card.


![Revised basic skill card](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6dfbfalzd3c3b9wg04lz.png)

Here I added my favorite JavaScript framework called PHP. It's a great language to learn on!

Here is the full set:


![Revised skill cards group](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khgzxc9dh608w37yu0mg.png)

Love all those JavaScript libraries. They're all amazing.

Here it is from afar:

![Skill cards from afar](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/661guyd3epyf6lgjylnf.png)

I feel like jobseekers and recruiters will benefit from this. It may show a better summary of someone's skills, and the recruiters will spend less time looking at someone's background in technical skills. 

### What do you think?

Does my design look better? Or have I broken too much design consistency for the page? I believe the small sacrifice is needed for more informative content. Let me know what you think!

### PS. If you haven't already known,

I use TailwindCSS, btw. And for those who are annoyed with all that ugly-ass HTML that comes with it, go download inline-fold on VSCode.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vo4w5v1n0gxb7qyn35pd.png)
How to Integrate Paystack Payment into your Project with HTML and JavaScript
Tags: paystack, webdev, javascript, projects
Published: 2023-08-24 08:12:52

Paystack is a modern payment gateway solution for Africa, The Paystack API allows you access to a lot of payment features on the platform via your Paystack dashboard.

## Requirements

1. Paystack Account
2. Personal Paystack public key
3. A basic know-how of HTML and JavaScript

## Sign up with Paystack

- Go through the sign up process and log in into your account.

- Click the setting tap.

![Paystack Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dd20s2si6z5wqpd23dzs.png)

- Click on the "API Keys & Webhooks" tab to reveal your API keys.

![Paystack dashboard - API keys](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rc52tffujk4y89pcziqb.png)

- We'll be using the Test Public Key, so copy it.


## Create HTML file

- **Create the pay button**
` <div class="check-out">
                <button>Pay</button>
            </div>`

- **Add the inline script** 
we have to create a link to the Paystack’s javascript library with the below code added to your HTML body.

`<script src="https://js.paystack.co/v1/inline.js"></script>
 <script src="checkOut.js"></script>
`

## Create JavaScript file

We'll finalize our payment setup with the paystack's payment modal

```
const checkOut = document.querySelector('.check-out button');

checkOut.addEventListener('click', function payWithPaystack() {

    var handler = PaystackPop.setup({
        key: 'Paste_your_API_KEY_here',
        email: 'customer@email.com',
        amount: `1000000`, //amount here is 10,000 double zeros has to be added
        metadata: {
            custom_fields: [
                {
                    display_name: "mobile Number",
                    variable_name: "Mobile Number",
                    value: "+2348012345678"
                }
            ]
        },

        callback: function (response) {
            alert('transaction is ' + response.reference);
        },

        onclose: function(){
            alert('transaction cancelled');
        }

    });

    handler.openIframe();//to call the paystack payment interface
})
```

> Use the public key not the secret key. 
modify the code to fit into your project needs.

Here's a preview if everything goes well.

![Payment modal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y8sf5zjzqpb35qvyyr0p.png)
Mastering SerpApi: An In-depth Features, Best Practices, and Competitive Edge
Tags: serpapipodcast, webscraping, softwareengineering, webdev
Published: 2023-08-24 07:58:30

In this episode, Ryan and Illia share answers to frequently asked questions about SerpApi usage, features, and best practices.

[YouTube](https://www.youtube.com/watch?v=x_SQ-_qRpTE&list=PLGt0Yb3JKV12RPWTuDGXIS6N5Ex1aYJBx&index=1&pp=gAQBiAQB) | [Spotify](https://podcasters.spotify.com/pod/show/ilyazub/episodes/Mastering-SerpApi-In-depth-Features--Best-Practices--and-Competitive-Edge--SerpApiPodcast-Ep-11-e27uqd1)

## Episode Breakdown
00:00:00 - Video Intro
00:01:30 - An introduction to SerpApi, including its key features and benefits
00:02:55 - Comparison of SerpApi to competitors discussing why SerpApi is a superior choice
00:04:00 - Why use SerpApi compared to an official Google API
00:04:55 - Clarification about data warehouse
00:05:33 - SLA and success rate
00:07:03 - Addressing the legality of web scraping, terms of service, and the US Legal Shield
00:08:30 - the US Legal Shield offering
00:09:05 - Understanding searches and credits, including how they are counted, and discussing duplicates
00:11:00 - Search Archive API, no_cache parameter
00:12:00 - async parameter and multi-threading
00:14:45 - Ludicrous Speed plans for fast latency-sensitive use-cases 
00:15:45 - API Status page showcase
00:16:40 - Hourly throughput limit
00:18:15 - Traffic spike management
00:19:30 - Incident response and downtime handling
00:21:40 - unit, integration, and e2e tests
00:22:30 - Experimental AI-based data extraction
00:23:40 - Sponsorship and discounts 
00:25:30 - Langchain, BagyAGI and SerpApi cooperation started during Replit's hackathon about LLMs
00:28:00 - Google SERPs and Google Ads inconsistencies
00:30:00 - Improving search engine ranking
00:32:00 - SerpApi's followers on Twitter SEO
00:33:48 - Using the dashboard effectively, including how to find the API key and how to use the account API for credit tracking
00:42:00 - Wrapping up and explaining what will be discussed in the next webinar

---

At its core, the [SerpApi Podcast](https://www.youtube.com/playlist?list=PLGt0Yb3JKV12RPWTuDGXIS6N5Ex1aYJBx) revolves around search engines results scraping, covering areas like parsing, evasion of blocking, web automation, proxies, the legality of scraping, performance enhancement, data extraction, and validation.

Practical applications for SERP data scraping span a wide array, including programmatic search engine optimization (SEO) and local SEO, machine learning (ML), artificial intelligence (AI), large language models (LLMs), news monitoring, open-source intelligence (OSINT), voice assistants,
and e-commerce competitor analysis.
Navigating the Testing Landscape: Where Does Playwright Fit In?
Tags: testing, tutorial, javascript, beginners
Published: 2023-08-24 07:54:41

One tool that's been generating significant buzz lately is Playwright. But what exactly is Playwright, and where does it fit into the tapestry of modern software testing? We invite you to explore this burning question by delving into the article, "In A World Of Record And Play, Where Does Playwright Fit In?".

Read the article here: In A World Of Record And Play, Where Does Playwright Fit In?

https://www.ministryoftesting.com/articles/3cfeb5b8

Unveiling the Essence of the Article:

This insightful article, penned by an industry expert with hands-on experience in software testing, serves as your compass through the dynamic world of testing tools. It deciphers the role and significance of Playwright in today's testing landscape, offering valuable insights that can shape your testing strategies.

Why You Should Dive In:

In the ever-evolving landscape of software testing, staying informed about the latest tools and techniques is crucial to stay ahead of the curve. This article is your gateway to understanding Playwright's role in the testing ecosystem and how it can enhance your testing efforts.

The author's expertise and hands-on experience shine through, making this article not just informative but also relatable and actionable. Whether you're a seasoned QA professional or a curious developer looking to explore new testing horizons, this article has something to offer you.

Don't miss the chance to demystify Playwright and its place in modern software testing. Dive into the article now: In A World Of Record And Play, Where Does Playwright Fit In?. It's your ticket to embracing the future of testing technology!