Learning

Applications Of Artificial Intelligence

Artificial Intelligence is gradually entering our homes, offices, workspaces, playgrounds, transports, and even predicting weather phenomena. Almost all global organizations today are leveraging the benefit of AI technology for specific interests. AI-based automated machines are now used across multiple verticals for complex tasks that need more precision. 

 

Here are some of the major commercial uses of AI in real-world applications: 

require('http').STATUS_CODES
{ '100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',
'305': 'Use Proxy',

These are the standard codes that refer to the predefined status of the task at the server. Following are the status codes formats available:

  • 1xx - represents informational responses
  • 2xx - represents successful responses
  • 3xx - represents redirects
  • 4xx - represents client errors
  • 5xx - represents server errors

Most commonly used status codes are:

Rewriting a Regular Function with ES6 Arrow Syntax

Here’s a standard way to declare a function and then call it in JavaScript:

// function declaration
function sayHiStranger() {
return 'Hi, stranger!'
}

// call the function
sayHiStranger()

 

You can also write the same function as a function expression, like this:

const sayHiStranger = function () {
return 'Hi, stranger!'
}

<?xml version="1.0" standalone="no"?>
<svg width="200" height="250" version="1.1" xmlns="http://www.w3.org/2000/svg">

<rect x="10" y="10" width="30" height="30" stroke="black" fill="transparent" stroke-width="5"/>
<rect x="60" y="10" rx="10" ry="10" width="30" height="30" stroke="black" fill="transparent" stroke-width="5"/>

<circle cx="25" cy="75" r="20" stroke="red" fill="transparent" stroke-width="5"/>
<ellipse cx="75" cy="75" rx="20" ry="5" stroke="red" fill="transparent" stroke-width="5"/>

Explain nodejs?

Node.js is an open source server side runtime environment built on chrome's V8 JavaScript engine. It provides an event-driven, non-blocking (asynchronous) I/O and cross-platform runtime environment for building highly scalable server side applications using JavaScript.

Node.js is made of Chrome V8 engine which is written in C++ and Libuv which is a multi-platform C library that provides support for asynchronous I/O based events on event loops and thread loops.

<?php
          $a=3;
          $b=$a++;
          $c= ++$b;

         echo $a."--".$b."--".$c;  //output: 4--4--4
?>

----------------------------------------

<?php
$a="10 ear";
$b="11 ear";
$c= $a+$b;

echo $c; //output: 21

echo "10 ear" + "10 ear";    //output: 20
echo "10 ear" + "ear 10";    //output: 10
echo "ear 10" + "10 ear";    //output: 10
echo "ear 10" + "ear 10";    //output: 0
?>

--------------------------------

//////////////////////////////////
Install the Angular CLI
/////////////////////////////////

npm install -g @angular/cli

//////////////////////////////////
Create a workspace and initial application
/////////////////////////////////

ng new my-app

//////////////////////////////////
Run the application
/////////////////////////////////

cd my-app
ng serve --open

###################################################################################

Advantages of Express.js
Makes Node.js web application development fast and easy.
Easy to configure and customize.
Allows you to define routes of your application based on HTTP methods and URLs.
Includes various middleware modules which you can use to perform additional tasks on request and response.
Easy to integrate with different template engines like Jade, Vash, EJS etc.
Allows you to define an error handling middleware.
Easy to serve static files and resources of your application.
Allows you to create REST API server.

How to take backup and restore db:
-----------------------------------
1. Installing the Database Tools (mongodb >= 4) from below url
    https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools
    
2. follow instructions from below url:
    https://docs.mongodb.com/database-tools/installation/installation/
    

Pages