How Covid, Corana Virus is going to end?

Let say vaccine is created. Does it solve all the problems. Few may say no I am one of them this virus is not only a disease that kills humans but killing humanity. By the end of this year 2020 there will be no one who don’t fear corona. A win or a solution to this problem is only one thing. This thing is neither touchable nor remade. It is time . Time is the solution to all problems . Time passes and changes how we thing how we feel and make us comfortable feel safe again.

But how long it would be in order to get rid of mask and distancing from our friends. I believe it may soon and by Diwali we get the vaccines and many cures. A vaccine is a precaution but now we are in need of cure to this disease most of us are infected but by god grace not all of us. And I see it clear we celebrate new year very grand such as the world never seen the freedom before all the ages and never after.

Future Possibilities

Let me start by asking a simple question imagine a forest filled with millions of snakes and are growing in number every second. wait…. What I like is say is you read the line above and you created a virtual forest with sakes all around. How is it possible your brain produced a possible outcome with in your head with internet. how?

So the things I a writing hear are not from the internet or books they are created in my head all thoughts are build element by element block by block in my head and I am crazy enough to share it with no one but with internet with you the one reading. From this way of thinking I figured in future all post in internet are written and generated by robots to be practical by some code or algorithm may be called a AI.

The way humans may also be manipulated by some algorithm if you don’t know what a algorithm is it means your not a Computer programmer or developer. A Algorithm is a code that does a task exactly how it is designed to do, but it can thing if we code it to think. You may say how can we code to make a computer think we are not gods but I will share a simple example where the god do it. We generate a random number from our computer the output we are going to get is not coded by anyone even if it is coded the one who coded don’t know the output. Now answer this who generated to output god or we humans. Absolutely we are one created it but it is performing like something we don’t able to manipulate.

What if Corona never Ends?

We the dominating creatures on earth and any planet we known, now facing a pandemic.

A Disease the kills humans. We humans faced many disease from the beginning of the creation. But now it is different from all other diseases the worst fear is not dyeing but infecting others. This a rapid spreading virus the made the world completely down for 5 months and more. So now the question is not how to stay safe but how to go back to the life we had.

So the question raised in all of is what if we never find a vaccine?

After 2 years from now now one fear covid 19 with or without a vaccine. I am sure about that 2 yeas from now we live fearless. But if we succeed we live a we always had. But if we fail to find a vaccine there must be many change in how we live. If mostly effect our dressing style. People start to live with less contacts with each other and many changes that can not be imagined. The evolution starts from a fear and danger. So any way humans always win we improve our way we live and advanced human style of life starts.

After a century or two if the same fear continues then people of that time looks at as why they are all exposing their skin to danger are they crazy. Just a imagination noting else………………………. … !

How to render react application

In src folder created during the installation Delete eveything.

Then add the following files index.js and App.js to build up the basic structure of your react applicaion.

Add a index.js file and add the follwoing code

import React from ‘react’;
import ReactDOM from ‘reactdom’;
import App from ‘./App’;
import * as serviceWorker from ‘./serviceWorker’;
ReactDOM.render(  <React.StrictMode> 
   <App />
  </React.StrictMode>,  
document.getElementById(‘root’)
);
serviceWorker.unregister();

Here ReactDOM is a model that allowes to update the output of render every second on the display.
This make render on to the screen every time there is any change to the states or components took place.

Example Below:

function tick() {
  const element = (
    <div>
      <h1>Hello, world!</h1>
      <h2>It is {new Date().toLocaleTimeString()}.</h2>
    </div>
  );
  ReactDOM.render(    element,    document.getElementById('root')  );}

setInterval(tick, 1000);

Try it on CodePen

WE then imported an App from ‘App.js’ which is not yet created so lets create it.

Then add a App.js file in the same src folder .

App.js is a componet so it’s name started with a capital letter.

code:

import React from 'react'
export default function App() {    return (      
             <div>        
            </div>  
  )}

What ever we type in between this div tags gets rendered and displayed in the page.

WE can import more components in this App.js file and ebbed them to form a amazing site.

TO run this code type hi or enyting in between div elements and type npm start in visual studio terminal.

Code to run live server to display our site :

npm start

Who is a Hacker and How to Hack

Hacker is a man who gathers all the information available about his targer.

He collect the information only because he can the data that is useful or not he just collects the data provided public and use that data to find loop holes and gets into the system to get what he wants.

That’s it so collecting information as mush as possible is the hackers main goal and it is the hackers training objective.

Class Based React Component

A class based React component is used to manipulate data and create new states and variables.

Before we learn more about states and variable data management let’s know the basic structure of a class based component in react.

Don’t forget all the components in react start with a capital letter else react treat components as tags html tags. for example a componet with class name ‘button’ can not be used insted first letter capital ‘Button’ is can be used not only tag words but all component names should start with capital Letter

Sample code for class based component:

import React, { Component } from 'react'
export default class Class_name extends Component {   
 render() {        
             return ( ) 
           }
}

This is a class so variable can and functions can be declared in similar to any programming language.

Functional Components in React

This components are used in case there are no use of states (and variable data to handle). A functional component is not preferred in case of data management is done in the component, Like definind a state which holds name, regno ,phone no, email etc., But it is useful if it is used to perform a single operation of single task example menu bar, ad bar.

Sample code. (Inside a react app folder in src folder)

import React from 'react'

export default function function_name(parameters_passed_as_pops) {
return (

)
                 }

or

import React from 'react'

const function_name(parameters_passed_as_pops) {
return (
)
}
export default function_name

We write the code inside the return block to output the display.

React is coded using jsx which is similar to html but it is modified JavaScript which allows html attributes to make a complete page using react.

JSX is a react extinction.

This is a basic how to make a structure of a component the jsx code in learned in next posts.

React Components

The first thing to learn in react is components. What are they? Why are they used ?

Components are building blocks to react applications. For example consider a home page which contain menu sidebar and footer and post section. Here each part of the page are separate components. Menu is separate component, sidebar is separate component and similarly all components of a single page are rendered together to form a website.

It’s Use is it allows dynamic pages as each part is a separate component it can be changed of modified easily. Other components don’t get the effect.

There are two types of components :
1.Functional component
2.Class base component

Start learning Functional component:

Functional Component  

Start Learning Class based component:

Class based Component

React Installation

Start by installing Node.js from the following link:
https://nodejs.org/en/
Then install visual studio code :
https://code.visualstudio.com/
Node.js also install npm along with it so don’t worry about npm installation.
in command prompt (CMD) type:
node -version
and
npm -v

If you get the version displayed We are all ready to start learning react.
open a desired folder to store react web app.
Then, hold pressing Shipt then press right click
Choose open PowerShell or open command prompt
Type :,
npm install create-react-app
Wait for a while it will get install all the dependencies and packages
After installation type :
npx create-react-app app_name
Note: It is npx not npm (npx create-react-app app_name)
Replace app_name with your desired web app name.
now type:
cd app_name
code . THis will open the folder in visual studio code.

Covid 19 Future possibilities

What of covid 19 cure not found for ever.

Let’s consider the future possibilities after 20 years we can expect drones delivering every essential needs and every products.

The global warming may go down and may in reverse leads to long winter. What is winter continue for 10 years? Due to lowl pollution and lowee human destruction.

After 40 years the way human lives completely changes people may build a false skin layer to avoid covid 19. More 🤖 work outside home and people may control them from inside Home.

Design a site like this with WordPress.com
Get started