teleren/devto huggingface dataset:
Introduction to Microsoft Azure Cloud Services
Tags: aws, azure, azurefunctions, android
Published: 2023-01-25 13:59:26

## Introduction
Microsoft is offering a cloud computing service. It was made available in the fall of 2008. In 2014, it was given the moniker Windows Azure. It was formerly known as Project Red Dog.
It serves 42 regions better than any other cloud provider and easily connects data centers to the cloud. Cloud-native applications are created using well-known tools like Visual Studio, ASP.NET, and programming languages like Visual Basic, C++, C#, etc. Blockchain as a Service (BaaS), machine learning, bots, and cognitive APIs are exclusively available on the Azure cloud platform.
## 10 Azure Services and Products:
An overview of some of the most well-known Microsoft Azure services, specifically the top 10 azure services and how to use them throughout the complete architecture, can be found below:
1.	Azure DevOps
2.	Azure Blob Storage
3.	Azure Virtual Machines
4.	Azure Backup
5.	Azure Cosmos DB
6.	Azure Logic Apps
7.	Azure Active Directory
8.	API management
9.	Azure Content Delivery Network
10.	Azure Site Recovery
11.	Azure Bots

## Azure Free Services:

More than 200 Microsoft Azure products exist, though.
You can explore the free azure services by following the given below link. 
https://azure.microsoft.com/en-us/pricing/free-services/
I will discuss All the Services with practical labs in my upcoming Articles.

## Conclusion:
The needs of your business should guide your choice of the cloud service provider. Considering this, search for the greatest supplier and you'll come across Azure.
This is because it is dependable and offers excellent value for the money invested in it. You don't need anything more than its dependable environment security and wide range of services to grow your organization. We advise you to obtain certification as soon as possible because the cloud is a highly sought-after product.
Need help with this Code
Published: 2023-01-25 13:56:39

package SeleniumPackageSet;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class SellIntroduction {

	public static void main(String[] args) {
		//Browser Invoking
//		-ChromeDriver -> Methods
//		WebDriver driver=new ChromeDriver();
System.setProperty("webdriver.chrome.driver", "C://Selenium-java browserstack//chromedriver_win32//chromedriver.exe");
WebDriver driver=new ChromeDriver();

String baseUrl="http://demo.guru99.com/test/newtours/";
String expectedTitle="Welcome: Mercury Tours";
String actualTitle="";

driver.get(baseUrl);

actualTitle=driver.getTitle();

if(actualTitle.contentEquals(expectedTitle)) {
	System.out.println("Test Passed!");
}
else {
	System.out.println("Test Failed");
}

driver.close();
	}

}


Error i got:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module processed.jcommander not found, required by org.seleniumhq.selenium.remote_driver
HOW TO RUN ANGULAR BUILD LOCALLY
Tags: angular, javascript, beginners, tutorial
Published: 2023-01-25 13:48:03

Build your app: ng build --prod
Install http-server for serving the app: npm i -g http-server
cd (change directory) into the the build location and run the app with: http-server
Open http-server url appending /index.html to it, should look something like this
Available on:
 http://192.168.1.27:8080
 http://127.0.0.1:8080
Thank you for keep reading. If you liked the article, please hit the 👏button; if you want to see more articles follow me on medium😘.

If you have any doubt or suggestion🤔 when going through this practical, please leave us a comment below👌.

See you in upcoming articles😊. Keep in touch with Dev.to. 🤗🤗
How to start node.js app with pm2
Tags: node, serverless, pm2, beginners
Published: 2023-01-25 13:47:07

Welcome back, readers! Today, we're diving into the realm of process management with PM2, a powerhouse tool that streamlines the deployment and management of Node.js applications. If you've been searching for a reliable, efficient solution to handle your application processes, look no further than PM2.

## Why PM2?

PM2 isn't just your average process manager—it's a comprehensive toolkit packed with features designed to simplify your workflow. Whether you're launching a small-scale project or managing a complex application ecosystem, PM2 has you covered. With its intuitive interface, robust documentation, and lightning-fast setup, it's no wonder why PM2 has become a go-to choice for developers worldwide.

## Getting Started

Let's kick things off with the installation process. Open your terminal and enter the following command:

`npm install pm2 -g`
With PM2 installed, you're ready to start managing your processes like a pro.

Launching Your Application

Running your application with PM2 is a breeze. Simply navigate to your project directory and execute the following command:

sql

`pm2 start index.js`
Replace index.js with the path to your application file. PM2 will take care of the rest, ensuring that your application is up and running smoothly.

Handy Commands

Once your processes are up and running, PM2 provides a suite of commands to help you manage them effectively. Here are a few essential ones to keep in your toolkit:

- pm2 stop [insert id]: Stops the process with the specified ID.
- pm2 start [insert id]: Starts the process with the specified ID.
- pm2 logs [insert id]: Displays logs from the process with the specified ID.
- pm2 delete [insert id]: Deletes the process with the specified ID.
For a deeper dive into PM2's capabilities, be sure to check out the official documentation here.

Final Thoughts

And there you have it—a crash course in mastering process management with PM2. We hope this guide has equipped you with the knowledge and tools you need to streamline your development workflow. If you found this article helpful, don't forget to show your support by hitting the 👏 button. For more insightful articles and tutorials, be sure to follow us. And as always, if you have any questions or suggestions, feel free to leave a comment below. Until next time, happy coding! 🚀👨‍💻
Announcing Pod42, the Hasura ChatGPT Bot
Tags: ai
Published: 2023-02-01 09:08:51

---
title: Announcing Pod42, the Hasura ChatGPT Bot
published: true
date: 2023-01-25 13:30:38 UTC
tags: ai
canonical_url: https://hasura.io/blog/announcing-pod42-the-hasura-chatgpt-bot/
---

 ![Announcing Pod42, the Hasura ChatGPT Bot](https://hasura.io/blog/content/images/2023/01/pod42-chatgpt-bot.jpeg)

We are happy to announce the launch of **Pod42**, a bot that answers questions related to Hasura. It uses the GPT AI model, trained on resources like Hasura’s docs, learn and blog portals.

> Note: It’s in alpha, so expect some bugs or issues with answers and the sources it gives.

## Getting started with Pod42

The bot has been integrated into our discord server. In case you haven’t joined yet, head over to [https://hasura.io/discord](https://hasura.io/discord) to join HasuraHQ discord server.

Once inside the server, head to [#pod42-support](https://discord.com/channels/407792526867693568/1067425955217428487) channel and tag the `@Pod42` bot to ask a question. The format for asking a question looks something like:

```
@Pod42 <question>

// example
@Pod42 What is Hasura?
```

## Testing for fun

Here are some of the answers we have been getting from the bot after training it with our data sources.

![Announcing Pod42, the Hasura ChatGPT Bot](https://hasura.io/blog/content/images/2023/01/why-use-hasura.png)*Why use Hasura?*

A fun attempt by David below:

![Announcing Pod42, the Hasura ChatGPT Bot](https://hasura.io/blog/content/images/2023/01/authorization-poetry.png)

Another one about read replicas:

![Announcing Pod42, the Hasura ChatGPT Bot](https://hasura.io/blog/content/images/2023/01/read-replicas.png)

## Disclaimer

The bot is in alpha, which means it might give inaccurate or incomplete answers sometimes. Use the source/s to verify the information, and when in doubt, reach out to help-forum. Also, we're constantly training Pod42 to improve it. If you have any feedback, please let us know. Any feedback is appreciated!
What is the difference between a programming language and a framework? 🤔
Tags: programming, software, framework, language
Published: 2023-01-25 13:25:50

Programming Language:
A programming language is a set of commands that instructs a software or computer's functionality. While a framework provides the foundation for implementing the language's commands.

Framework:
Frameworks are dynamic, allowing them to be reused when needed. More or less, they can be thought of as templates. Templates in web design, for example, make it much easier to create a website.

Some examples?
PHP/Laravel, Python/Django, Java/Spring, Ruby/Rails and many more of those amazing technologies! 😄
Best Platform For IISERs Aspirants
Tags: socialmedia, exam, onlineclass
Published: 2023-01-25 13:10:48

Want to clear your [IISERs aptitude test](https://www.sciastra.com/) with the best results? Fear not, with Sciastra you can achieve this task with 100% assurance. Through their planned criteria of executing classes and top-notch facilitators, you can achieve this task instantaneously


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c5vytbucqj6lull2kl0x.jpg)
CORS issue in Ruby on Rails(Duplicate Response Headers)
Tags: ruby, rails, cors, nginx
Published: 2023-01-25 13:08:21

Any rails developer who writes an API will counter the problem regarding the Cors. For those who don't know, CORS (Cross-origin resource sharing) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain.

While using Nginx and Rails gem Rack-cors, chances are high you are getting a problem of duplicate response header values.



**Access-Control-Allow-Origin**

It refers to the origin from where the request is made and the asterisk shows, it allows a response from any domain.

Access-Control-Allow-Origin: *

It is allowed only at once in the response header. As The CORS spec explicitly states:

“ If the response includes zero or more than one Access-Control-Allow-Origin header value, return fail and terminate this algorithm. ”


**What is the problem?**

Access-Control-Allow-Origin is provided by both Rails rack-cors and Nginx. The problem occurs when Nginx provides a configuration that doesn’t override the one provided by Rails and gets duplicated.

It shows the error like,

“Access to XMLHttpRequest at (…) from the origin (…) has been blocked by CORS policy. The header contains multiple values ‘*, *’, but only one is allowed.”

And you get Response Headers values duplicated such as,

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


Then you are on the right way to solving the problem.


**Solution:**

Both Rails rack-cors and Nginx provides a way to setting up the access Access-Control-Allow-Origin. There is nothing crossed which overcomes this problem of not overriding the values.

There can be many solutions you can opt for but there is one which I recommend is only to set up response header from rails using rack-cors gem. And commenting the response headers from the Nginx configuration file.

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

Because rails rack-cors can come in handy in making changes instead of Nginx configuration.
What is environment variables in Node.js and how to use it.
Published: 2023-01-25 13:05:34

Environment Variables are variables that are set by the Operating System. They are decoupled from application logic. They can be accessed from applications and programs through various APIs. There is a Node. js library called dotenv that helps you manage and load environment variables.

There is a Node.js library called dotenv that helps you manage and load environment variables. Let’s take a look at the purpose of environment variables, how to use them, and their role in a development environment.

How to get & set environment variables in Node.js
const port = process.env.PORT || 3000; // For Set variable
app.listen(port, () => {
  console.log(`Server is running on the port ${port}.`);
}); //For Get 
If production server then do X else if test server then do Y else if localhost then do Z …Example:-

if (process.env.NODE_ENV === ‘production’) {

//here is code for server

// }

// else {

//Here is Localhost code

// }

Reference Links

https://nodejs.dev/learn/how-to-read-environment-variables-from-nodejs

https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/

Thank you for keep reading. If you liked the article, please hit the 👏button; if you want to see more articles follow me on medium😘.

If you have any doubt or suggestion🤔 when going through this practical, please leave us a comment below👌.

See you in upcoming articles😊. Keep in touch with medium. 🤗🤗
What are the 5 JavaScript Mathematical Operators?
Tags: javascript, webdev, beginners, programming
Published: 2023-01-25 13:00:00

**What are the 5 JavaScript Mathematical Operators?**

## Arithmetic Operators

Arithmetic operators perform arithmetic functions on numbers (literals or variables) and return a value.

JavaScript includes many operators from basic math as well as a few programming-specific operators.

There are five fundamental operations in mathematics: addition, subtraction, multiplication, division, and modulas.

Here is a reference table of JavaScript arithmetic operators.

| Operator | Description | Example |
| --------- |:---------:| -------:|
| + | Addition | 25 + 5 = 30 |
| - | Subtraction | 25 - 5 = 20 |
| * | Multiplication | 10 * 20 = 200 |
| / | Division | 20 / 10 = 10 |
| % | Modulus | 7 % 3 = 1 |
| ++ | Increment | let a = 10; a++; Now a = 11 |
| -- | Decrement | let a = 10; a-- ; Now a = 9 |


## Basic Syntax

A typical arithmetic operation operates on two numbers.
The two numbers can be **literals**:

```javascript
let sum = 100 + 80;
//Output 180
```

or **variables**:

```javascript
let a = 100;
let b = 60;
let sum = a + b;
//Output 160
```

## Operators and Operands

The numbers (in an arithmetic operation) are called **operands**.
The operation (to be performed between the two operands) is defined by an **operator**.

Example

| Operand | Operator | 
| --------- |:---------:|
| 100 | + or - | 

## Addition

The addition operator (+) adds numbers:

```javascript
let x = 6;
let y = 2;
let z = x + y;
// Output 8
```

## Subtracting

The subtraction operator (-) subtracts numbers.

```javascript
let x = 8;
let y = 2;
let z = x - y;
// Output 6
```

## Multiplying

The multiplication operator (*) multiplies numbers.

```javascript
let x = 6;
let y = 2;
let z = x * y;
// Output 12
```

## Remainder

The modulus (also known as remainder) operator (%). The remainder operator returns the remainder left over when one operand is divided by a second operand.

```javascript
let x = 9;
let y = 0;
let z = x % y;
// Output 0
```

As an example, we know that 3 goes into 9 exactly three times, and there is no remainder.

## Incrementing

The increment operator (++) increments numbers. Increment operators increase the numerical value by one.

```javascript
let x = 5;
x++;
let z = x;
// Output 6
```

## Decrementing

The decrement operator (--) decrements numbers. Decrement operators reduce the numerical value by one.

```javascript
let x = 9;
x--;
let z = x;
// Output 8
```

## Conclusion

We covered arithmetic operators and syntax in this article, including many common mathematical operators as well as a few that are unique to programming.

### See also

[What exactly is JavaScript?](https://maxlockwood.dev/what-is-javascript/)
[What are the Three Variables in JavaScript?](https://maxlockwood.dev/what-are-the-three-variables-in-javascript/)
[What are the Three Primitive JavaScript Data Types?](https://maxlockwood.dev/what-are-the-three-primitive-javascript-data-types/)

If you liked this article, then please share. You can also find me on [Twitter](https://twitter.com/maxlockwood88) for more updates.
Diário de bordo #7
Tags: javascript, webdev, programming, beginners
Published: 2023-01-25 12:56:35

## Arrow Functions 

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

Com as atualizações do ES6 do ECMAScript em 2015, nos foram trazidas várias novas funcionalidades interessantes, e uma das que mais se destacaram e que eu as vejo serem bastante utilizadas, foram as Arrow Functions. Que são uma forma mais simples, poderoza e bastante eficiente de utilizar funções em JavaScript.

## Sintaxe

Uma função na qual formos apresentados convêncionalmente quando aprendemos javaScript tem esse escopo `function nomeDaFuncao(){}`, já as Arrow functions são definidas a partir deste escopo `() => {}`, onde o `=>` faz referência flecha, fazendo jus ao nome dado a esse tipo de função. 

## Para que serve?

As Arrow Functions são uma forma mais elegante e atualizada de declarar funções em JavaScript, como foi mencionado nos primeiros paragrafos do artigo. Elas nos traz várias possibildades que podem melhorar a legibilidade e usabilidade do nosso código, tais dessas possibilidades são: Refatoração de código, código enxuto e limpo (clean code), além de nos ajudar nas desestruturações. 

**Veja um exemplo de código refatorado utilizando esse recurso do JavaScript**

```
function saveDay() { // Código Antigo utilizando uma maneira "antiga" de declarar funções em JavaScript
  localStorage.setItem("CompletedDays@habits", JSON.stringify(nlwSetup.data))
}
```
**Agora veja o mesmo código, só que refatorado**

```
const saveDay = () => localStorage.setItem("CompletedDays@habits", JSON.stringify(nlwSetup.data))
```
Importance of Data in ML
Tags: machinelearning, datascience
Published: 2023-01-25 12:51:47



"Data is play very important role in Machine learning without data Machine learning is not possible".![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tkxfxn0j0k7po38vzn4v.jpg)

 Data is critical in machine learning as it is used to train models. The quality and quantity of data can greatly impact the accuracy and performance of a model. Without sufficient and relevant data, a model may not be able to learn and make accurate predictions. Additionally, the data used to train a model should be representative of the real-world data the model will be applied to in order to ensure its effectiveness.


In machine learning, data is typically split into three sets: the training set, validation set, and test set.


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


The **training set** is used to train the model and is typically the largest of the three sets. The model learns from the data in the training set and is used to make predictions on new, unseen data.

The **validation set** is used to evaluate the model's performance during the training process. The model's predictions are compared to the actual values in the validation set, and the model's parameters are adjusted accordingly. The validation set is used to prevent overfitting, which is when a model is too closely fit to the training data and may not generalize well to new, unseen data.

The **test set** is used to evaluate the model's performance after it has been trained. The test set is typically held out until the very end and is used to give an unbiased estimate of how the model will perform on new, unseen data.

There are different ways to split the data, but the most common one is called **k-fold cross-validation**. This method involves dividing the data into k equal-sized "folds", and then training the model k times, each time using a different fold as the validation set and the remaining folds as the training set. This method helps to mitigate the issue of having a small validation set, which could lead to an overestimate of the model's performance.

Overall, the goal is to have a diverse and representative split of the data in the three sets, to ensure that the model is able to generalize well to new, unseen data and to avoid overfitting.
Beware The BEST REACT NATIVE COURSE Scam
Tags: reactnative, react, courses, digitalmarketing
Published: 2023-01-25 12:42:54

There are many online courses and tutorials available for learning React Native, a popular framework for building mobile apps. However, not all courses are created equal, and some may be scams. Here are a few tips to help you avoid [best React Native course](https://www.igmguru.com/digital-marketing-programming/react-native-training/) scams:

1. **Research the instructor**: Before you enroll in a course, do your research on the instructor. Look for reviews, articles, and other information about the instructor to get a sense of their qualifications and expertise.

2. **Check the course content**: Be sure to thoroughly review the course content and make sure it covers the topics you're interested in. Look for detailed syllabus, curriculum and if possible sample videos.

3. **Look for a money-back guarantee**: A reputable course provider will offer a money-back guarantee, which gives you the opportunity to try the course and see if it's right for you.

4. **Look for a community**: A good course should have a community forum or a way for students to interact and help each other. This can be a great way to get support and feedback as you learn.

5. **Check the pricing**: Be aware of courses that are significantly cheaper or more expensive than the others. A low price can be a sign that the course is not of high quality, while a high price does not guarantee the quality of the course.

6. **Check for the certification**: Some course providers offer certification, make sure the certification is from a reputable organization or institution.

7. Finally, always read the reviews and testimonials from the students who have already taken the course. This can be a good indicator of the quality of the course and the instructor.

It's important to remember that no course can guarantee that you will be an expert in React Native or that you will be able to build apps after taking it. Learning a new skill takes time and practice, and the best way to learn is by doing it.
ChatGPT or Stack Overflow?
Published: 2023-01-25 12:19:05

ChatGPT can be used to generate answers to common coding questions, but it is not a replacement for human programmers who can provide detailed and accurate answers to more complex or nuanced questions. Also, Stack Overflow is a community-driven platform, where people can ask and answer questions, also share their knowledge, and ChatGPT is a language generation model which is not intended to replace human interactions.

In summary, ChatGPT and other language generation models can be used to automate certain tasks, but they are not intended to replace human writers, advertisers, or programmers. It can be used to generate repetitive code, written content, and answers but it still requires human oversight and review to ensure that the output is accurate and appropriate.