teleren/devto huggingface dataset:
Client-side may not be the best option for API requests
Published: 2023-04-29 12:31:36

As more and more web applications are developed, client-side API requests have become a common practice. Client-side API requests allow developers to fetch data from a server without reloading the entire page, resulting in faster and more responsive web applications. However, these requests come with hidden dangers that can compromise the security of your web application.

One of the main dangers of client-side API requests is the possibility of exposing sensitive data. When developers fetch data from a server using client-side requests, they risk exposing the data to malicious users who can intercept the requests. This can happen if the API endpoint is not secured properly, or if the request is sent over an unencrypted channel. This can lead to sensitive data, such as user credentials or financial information, being exposed and potentially stolen by attackers.

Another danger of client-side API requests is the risk of Cross-Site Scripting (XSS) attacks. XSS attacks occur when malicious code is injected into a web page, which can then execute on the user's browser. If a web application uses client-side API requests to fetch data and that data is not properly sanitized, an attacker can inject malicious code into the response, which can then be executed by the user's browser. This can lead to a range of attacks, including the theft of sensitive data, hijacking of user sessions, and more.

In addition, client-side API requests can also lead to Denial of Service (DoS) attacks. This can occur when attackers flood a web application with a large number of requests, overwhelming the server and causing it to crash. If a web application relies heavily on client-side API requests, it may be more susceptible to DoS attacks, as the server may not be able to handle the volume of requests generated by the client.

To mitigate these risks, developers must take several precautions when using client-side API requests. First and foremost, it is important to secure API endpoints properly, using authentication and encryption to prevent unauthorized access. Developers should also ensure that all data received from the server is properly sanitized to prevent XSS attacks. Additionally, web applications should be designed to handle DoS attacks, with measures such as rate limiting and load balancing.

In conclusion, while client-side API requests can provide significant benefits in terms of faster and more responsive web applications, they come with hidden dangers that must be taken seriously. Developers must be vigilant in securing their API endpoints, sanitizing data, and designing their applications to withstand attacks. By taking these precautions, developers can ensure that their web applications remain secure and reliable.
Deploying Next.JS app in Godaddy shared hosting correctly.
Tags: godaddy, nextjs, hosting, routing
Published: 2023-04-29 12:29:38

Hosting a react app (next.js) in Godaddy Shared hosting can be a confusing job. Specially if you are using server side rendering. Godaddy shared hosting (in most cases) does not allow node apps. 

But we can take advantage of the Static generation feature. Using Static generation we can generate a static html site. You can follow the following steps: 

- Go to package.json 
- Under Scripts object add a new key value pair like this 
`"genetate": "next build && next export"`

- then, navigate to next.config.js
- Add the following code:

```
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  output: 'export',
  distDir: 'dist',
  trailingSlash: true,
  assetPrefix: '.',
}

module.exports = nextConfig;
```

then from your terminal run the command:
npm run generate

Important thing to note here is the `trailingSlash: true,` 
In godaddy if you navigate the site using the say navigation bar it works but if you reload a page other than the home page 
for example /about/
it looks for the about directory which does not exist. So with trailingSlash: true, this command your pages will go on their respective directory.
Alteryx data analytics
Published: 2023-04-29 12:19:05

Alteryx is a software platform for data preparation, data blending, and advanced analytics. It allows users to easily access, clean, blend, and analyze data from various sources without the need for extensive programming or coding skills.

The Alteryx platform is designed to help users transform raw data into actionable insights by offering a drag-and-drop interface that allows users to quickly and easily build complex data workflows. These workflows can include data integration, cleansing, transformation, and predictive analytics.

Alteryx offers a wide range of tools and features to help users analyze data, including statistical analysis, machine learning, and spatial analytics. It also provides a variety of connectors to connect to various data sources such as Hadoop, SAP, Salesforce, and Microsoft Excel.

One of the key benefits of using Alteryx is its ability to save time and increase productivity by automating repetitive data preparation and analysis tasks. It also enables users to collaborate on projects and share data and workflows with other team members.

Overall, Alteryx is a powerful data analytics platform that can help businesses of all sizes to turn data into insights and make better decisions based on data-driven insights. We have the perfect professional [Alteryx Training](https://hkrtrainings.com/alteryx-data-analytics) for you. Enroll now!
The Rise of Virtual Reality: Exploring Its Impact on Industries
Tags: vr, news, gaming, healthcare
Published: 2023-04-29 12:15:39

**Virtual** reality technology has come a long way in recent years, and it’s no longer just a niche hobby for gamers and tech enthusiasts. With new devices and software constantly being developed, virtual reality is poised to have a significant impact on various industries, from entertainment and gaming to healthcare and education.

### Entertainment and Gaming:
One of the most obvious applications of virtual reality is in the realm of entertainment and gaming. With VR devices like the Oculus Rift and the HTC Vive, gamers can immerse themselves in fully-realized virtual worlds and experience games like never before. From shooting games and racing simulators to puzzle games and even social experiences, the possibilities for virtual reality gaming are endless.

### Healthcare:
Virtual reality is also making waves in the healthcare industry. Medical professionals are using VR technology to train new doctors and surgeons, allowing them to practice complex procedures in a realistic virtual environment. VR is also being used for pain management, with patients using VR headsets to distract themselves during painful procedures or to manage chronic pain.

###Education:
Another area where virtual reality is making a big impact is in education. With VR, students can explore historical events, visit foreign countries, and even travel back in time to witness important moments in history. VR can also be used to create immersive learning experiences, allowing students to interact with complex concepts and ideas in a way that was never possible before.

###Ethical Considerations:
Of course, with any new technology comes ethical considerations. VR raises questions about data privacy and security, as well as the potential for addiction and escapism. As virtual reality becomes more integrated into our daily lives, it’s important to carefully consider the implications and ensure that we’re using this technology responsibly.

###Conclusion:
The rise of virtual reality technology is an exciting development, with the potential to transform industries and revolutionize the way we experience the world. From entertainment and gaming to healthcare and education, the possibilities for VR are endless. However, it’s important to approach this technology with caution and consider the ethical implications as we explore its potential.
The AI Classroom: Where Imagination Meets Innovation
Published: 2023-04-29 12:07:49

In the halls of learning, where young minds abound,
AI whispers softly, a revolutionary sound.
It's not just about memorizing facts and figures,
But about exploring ideas and gaining new triggers.

With AI as a guide, education takes flight,
Limitless knowledge, always within sight.
Adapting to each student's pace and need,
Ensuring no one is left behind or deemed to lead.

Gone are the days of chalkboards and books,
Now it's all about interactive screens and looks.
AI can bring history to life with a virtual tour,
Or help you learn a new language with an accent that's pure.

It can analyze data and detect patterns unseen,
And present them to students in a way that's keen.
It can identify learning gaps and fill them with care,
Creating a tailored approach, beyond compare.

AI can also provide personalized feedback,
Highlighting strengths and areas that need a heed.
It can make education accessible to all,
Breaking down barriers, big and small.

It is a potential game-changer,
But we must use it wisely, with care and temper.
It can offer new solutions to age-old problems,
But we mustn't forget the human connection that blossoms.

So let us embrace this revolutionary tool,
And use it to reshape the way we learn and school.
For with AI at our side, the possibilities are grand,
Education will be a magical wonderland.
Save Time and Make Informed Choices with ColabDog.com - A New Platform for Objective Open-Source Framework Reviews
Tags: webdev, productivity, opensource, programming
Published: 2023-04-29 12:02:20

Hey fellow developers!

Have you ever found it difficult to evaluate open-source frameworks objectively and find unbiased reviews online? I certainly have, and that's why I decided to create my own website to help solve this problem.

Introducing ColabDog.com, a platform where you can find reviews and ratings of over 70 popular open-source repositories. I've personally reviewed each of these frameworks, outlining their pros and cons in a few sentences and scoring them out of 5 based on my experience using them. And where possible, I've also provided alternatives to these open-source alternatives.

The reason I built this platform is simple - I wanted to share my opinion of software with other people, and help others avoid bad rabbit holes and find good alternatives that could save them time and money. I couldn't find any information readily online, so I took matters into my own hands and created this resource.

But that's not all - I've also made it possible for other users to add their own reviews of popular open-source repositories as well. This way, the platform can be a community-driven resource where developers can come together and share their experiences with different frameworks and libraries.

I understand that as developers, we are always looking for ways to save time and make informed choices. That's why I believe ColabDog.com could be a valuable resource for our community. And to make it even easier to use, I've created a video demo that shows you how to navigate the platform.

You can check out the website here: colabdog.com

You can also check out the video demo on how to use the platform here: https://www.youtube.com/watch?v=nYtVGsXKzxk

I hope you find ColabDog.com as useful as I do, and I would love to hear your feedback on the platform. So, what are you waiting for? Give it a try and let me know what you think!
Memory Architecture of Postgres
Tags: memory, architecture, postgres, sql
Published: 2023-04-29 11:32:45

Postgres is a relational database that runs with multiple processes on a single host.

Certain processes occurs inn postgres which are the following:

**Postgres Server Process**

This is the parent process. In the previous versions it was called _postmater_.
pg_ctl is the command that executes the postgres server. It provides a shared area in the memory, runs some backend processes and waits for the queries from client side. The server process listens to one network port that is set to default as 5432. Multiple postgres servers can be run on a single machine as well.


**BackEnd process**

A process which is called postgres is started by the postgres server, the parent process, and it waits for the queries. A specific database must be provided explicitly because it runs on a single database.


**Background Processes**

Certain background processes do happen along with backend processes that includes background wirter, WAL writer, statitics collector etc. These are not client-side processes.



**Memory Architecture**

Two categories are assigned in the memory architecture of postgres. These are 


**Shared Memory** This is used by all of the processes of postgres. It is allocated by Postgres Server whenever it starts up.


**Local Memory** This is allocated by each backend process for its utility. For query processing each backend process allocates local memory.



Reference: "https://www.interdb.jp/pg/pgsql02.html"
How to serve html file using nodejs
Tags: webdev, node, coding, javascript
Published: 2023-04-29 11:20:03



```
//The folder structure looks like this 
>public
   >css
      .style.css
.index.html
```
This code snippet demonstrates how to serve static files using Node.js
```
const express = require("express")
const app = express()
const path  = require("path")
const port = process.env.PORT || 4000
require('./db/database.js')

const static_path = path.join(__dirname, '../public')

// using middlewares 
app.use(express.static(static_path))
// routes 
app.get("/", (req, res) => {
  res.send("<h1>Hello world</h1>")
});
// server port 
app.listen(port, () => {
  console.log("Server is running")
})
```
Buy me a coffee: https://www.buymeacoffee.com/sushilk132y
How to Learn Python Quickly?
Tags: testing
Published: 2023-04-29 10:41:26

Don't only focus on Python syntax. Try to dirty you hands. And Here is some tips for Software QA who want to learn python.

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

If you can use these component very quickly, you a software QA not only can do automation testing quickly, but also other tasks. 

Keep Moving.
PostgreSQL - Process and Memory Architecture
Tags: apacheage, postgres, opensource, database
Published: 2023-04-29 10:39:25


PostgreSQL is a popular open-source client/server relational database management system with a multi-process architecture that runs on a single host. The system consists of multiple processes that cooperatively manage one database cluster, which is typically referred to as a 'PostgreSQL server.' The server contains several types of processes, including the postgres server process, backend processes, various background processes, replication-associated processes, and background worker processes.

The **postgres server** process is the parent of all processes related to a PostgreSQL server. It allocates a shared memory area in memory, starts various background processes, starts replication-associated processes and background worker processes if necessary, and waits for connection requests from clients. Whenever it receives a connection request from a client, it starts a backend process to handle all queries and statements issued by the client.

A **backend process** is started by the postgres server process and handles all queries issued by one connected client. It communicates with the client by a single TCP connection and terminates when the client gets disconnected. PostgreSQL allows multiple clients to connect simultaneously, and the configuration parameter max_connections controls the maximum number of clients (default is 100).

PostgreSQL has two broad categories of memory architecture: **local memory area** and **shared memory area**. The local memory area is allocated by each backend process for its own use and is divided into several sub-areas of fixed or variable sizes. The shared memory area is allocated by a PostgreSQL server when it starts up and is used by all processes of a PostgreSQL server. It is also divided into several fixed-size sub-areas.

In summary, PostgreSQL's process architecture consists of multiple processes that cooperatively manage one database cluster, and its memory architecture consists of a local memory area and a shared memory area. Understanding these architecture components is crucial to understanding how PostgreSQL operates and how to optimize its performance.

#### References
[1]: Suzuki, H. (n.d.). Internals of PostgreSQL. Retrieved from https://www.interdb.jp/pg/index.html
📝🤔💻 REST vs GraphQL: Which One Should You Use? 🌐📊
Tags: devops, development, webdev, api
Published: 2023-04-29 10:25:11

As a developer, you might have heard of REST and GraphQL when building APIs. They both have their strengths and weaknesses, but which one should you use? Let's take a closer look and compare the two.



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


🔗 REST (Representational State Transfer)
REST is an architectural style that relies on HTTP requests to interact with resources. Resources are identified by a unique URI and can be manipulated using HTTP verbs like GET, POST, PUT, and DELETE. REST is stateless, meaning that each request contains all the necessary information to complete the request, and it doesn't store any client context on the server.

🌟 Strengths of REST:

- Simple and easy to understand
- Widely adopted and supported
- Caching can be leveraged to improve performance
- Can be used with any programming language or framework

💔 Weaknesses of REST:

- Over-fetching or under-fetching of data can be a problem
- Requires multiple requests to retrieve related resources
- Schema changes can break client applications

🎯 GraphQL

GraphQL is a query language that allows clients to retrieve data from multiple data sources in a single API call. It has a schema that defines all the possible data that clients can query through a service. Clients can request only the data they need, and the server responds with only the requested data.

🌟 Strengths of GraphQL:

- Enables efficient and precise data retrieval
- Reduces the number of requests needed to retrieve related resources
- Supports schema evolution and versioning
- Strongly typed, which enables tooling and validation

💔 Weaknesses of GraphQL:

- More complex than REST
- Requires a GraphQL server and client to be used
- Can be a performance bottleneck if not implemented correctly

🤔 Which One Should You Use?

The answer depends on your use case and requirements. REST is a great choice for simple APIs and when you need wide compatibility. GraphQL shines when you need to retrieve data efficiently and when you have a complex data model.

_In conclusion, both REST and GraphQL have their strengths and weaknesses. Choosing the right one depends on your specific needs. Consider factors such as the complexity of your data model, the number of requests you need to make, and the compatibility with existing systems._

Happy coding! 💻👨‍💻👩‍💻
Database Clusters, Databases and Tables in Postgres
Tags: postgres, postgressql, database, tables
Published: 2023-04-29 10:25:08

In this blog, I will give a brief description about what is database cluster, database and tables in postgres and what are their internal structures.

**Database cluster** is a collection of databases that is managed with the help of postgres server. This server runs on a single host and provides services to single database cluster.

A paradoxical point that should be kept in mind while working with postgres must be pointed. In postgres, **databases** are considered as database objects just like the other objects in a database like tables, functions et cetra.

In a database a **base directory** is formed in which all the information about database is stored. Below Image will give a better idea about this:

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


A database is a _sub-directory _that is present under the base directory.

**Table space** is an additional area outside the base directory that stores the information about particular data.
When CREATE TABLESPACE command is provided, a tablespace is formed outside the base directory.

A **heap data file** that stores the actual data is present inside the tablespace.

Now we will look at the structure of heap data file to get better understanding.

The data file is divided into pages of fixed size. These pages are numbered from 0 to n and these numbers are called block numbers.


A page within a table comprises of three kinds of data:
**Heap Tuple** that stores the data.
**Line pointers** of length 4 byte and points to each heap tuple
A **header data **is allocated in the beginning of each page.



**Basic Methods to Read and Write Tuples**


For Reading Heap Tuples:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dt5byymps1w5f51r4d5f.png)

For Writing Heap Tuples:

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

This here summarizes the basic structure of databases in post gres. If you want an in depth analysis please go through the article provided below. Thanks:

https://www.interdb.jp/pg/pgsql01.html
MLM SOFTWARE
Tags: mlmsoftwa, mlmsoftwaresolution, mlmservice
Published: 2023-04-29 09:23:17

                        MLM Software

Multi-level marketing (MLM) has emerged as a popular business model in recent years, and MLM companies are constantly on the lookout for reliable **[MLM software](https://www.codunite.com/MLM-software-developer-solutions.html)** developers, MLM solutions, MLM consultants, MLM website developers, and **[MLM services](https://www.codunite.com/MLM-software-developer-solutions.html)** to help them grow and succeed in their business.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9t2qtslrjw84c1wgg9bw.jpg)
**[MLM software](urlhttps://www.codunite.com/MLM-software-developer-solutions.html)** developers play a vital role in developing and customizing MLM software solutions that cater to the specific needs of MLM businesses. They use their technical expertise to design software that automates and streamlines the MLM business processes, such as managing sales, commissions, distributors, and more. Hiring an experienced MLM software developer can help you take advantage of the latest technology and stay ahead of the competition.

MLM solutions refer to the software and tools that MLM businesses use to manage their operations, track their sales and commissions, and grow their network. With the right MLM solutions, MLM businesses can streamline their processes, improve their productivity, and generate higher revenues.

MLM consultants offer expert advice and guidance to MLM businesses looking to improve their operations, sales, and profits. They have a deep understanding of the MLM business model and can help businesses navigate the challenges that come with it. By hiring an MLM consultant, businesses can access valuable insights and strategies that can help them succeed in the MLM industry.
MLM website developers specialize in designing and developing websites that are optimized for MLM businesses. They use their expertise to create websites that are user-friendly, mobile-responsive, and feature-rich. A well-designed MLM website can help businesses attract and retain customers, distributors, and investors.
MLM services encompass a wide range of services that MLM businesses need to operate efficiently, such as MLM software development, MLM website development, MLM consulting, and more. By outsourcing these services to experienced MLM service providers, businesses can focus on their core activities and achieve their business goals more effectively.

In conclusion, MLM businesses require a range of software, tools, and services to succeed in their business. By investing in the right MLM software developers, **[MLM solutions](https://www.codunite.com/MLM-software-developer-solutions.html)**, MLM consultants, MLM website developers, and MLM services, businesses can streamline their operations, increase their productivity, and drive growth.