Posts

TypeError: Cannot read properties of undefined in react

Errore arise this coude:  TypeError: Cannot read properties of undefined (reading 'photo')   import './App.css' ; import pic1 from './images/picture1.jpg' ; import pic2 from './images/picture2.jpg' ; import pic3 from './images/picture3.jpg' ; const Profile = ({ props }) => {   return (         < div className = "card mycard" style = { { width : '200px' } } >               < img className = "card-img-top" src = { props . photo } alt = 'Profile Picture' style = { { width : '100%' } } />               < div className = "card-body" >                 < h4 className = "card-title" > { props . name } </ h4 >                 < p className = "card-text" >< span > Position: </ span > { props . position } </ p >         ...

+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess in VS code

 1. run windows PowerShell as administrator 2. type >  set -executionpolicy remotesigned

npm ERR! code ENOENT npm ERR! syscall lstat npm ERR! path C:\Users\N 526\AppData\Roaming\npm npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\N 526\AppData\Roaming\npm' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! eno

use following command to solve this error  npm init react-app myreactapp

JSX in React | Why use JSX in React

 JSX (JavaScript XML) JSX helps us to write HTML Elements in JavaScript and Place into DOM without createElemant() or appendChild() methods. const newheader=<h1>My First JSX </h1>; const root=ReactDom.createRoot(document.getElementById('root')); root.render(newheader);

Python For Loop

student = ["Emon", "Minhaz", "Jamal"] for x in student:    print(x)

How to Pass multiple Variable using AJAX to PHP

Image
 File 1: All variable store into array. pass that array to php file File2:               if($_REQUEST['q'])    {   $x=$_REQUEST['q'];   $y=explode(',',$x);     } // content array receive into x as an string. Now convert x string into y array 

Read a local file using jupyter notebook

Image
  Click on File-->open-->drag and drop your file into here Write Code to Read File as per example: import pandas as pd casts = pd.read_csv('cast.csv', index_col=None) casts.head()