Showing posts with label Study. Show all posts
Showing posts with label Study. Show all posts

Tuesday, 1 June 2021

Yarn and Nodemon Error in VsCode or PowerShell

Open PowerShell (Run As Administrator)
Check the current execution policy using this command  
      Get-ExecutionPolicy
# You should get 'Restricted'
Run this command to make it 'Unrestricted'
    Set-ExecutionPolicy Unrestricted
Check again whether execution policy changed by running this command
    Get-ExecutionPolicy    
   # You should get     
'Unrestricted'    
Now try to run nodemon , yarn etc

Thursday, 28 January 2021

python' is not recognized as an internal or external command, !!!

 If you are getting the error

 """ 'python' is not recognized as an internal or external command,

operable program or batch file. """

Locate you python installed directory, 

Then Open Environment Variables and 

Select Path , double click on it

add new path then paste here the new path

you are done

HaseebAbbasi00.blog.cot.com




Tuesday, 1 September 2020

Program to Remove Linux permission on partitions

1. Install c++ in linux

2. Copy and paste the code then save with cpp extension.

3. write "g++ filename.cpp -o program"

4. write "./program"


then enter the partition sda number you want to remove permissions  


 #include<iostream>

#include "stdlib.h"

using namespace std;

int main()

{

    string  = "AbdulHaseeb.program.to.remove.linux.permission.";

  string message = "please enter the sda number to remove permissions";

  string number_sda = "";

  bool run = true;

  while(run)

  {

    cout<<message<<endl;

    cout<<"write 0 for exit"<<endl;

    string commond_1 = "sudo fsck -f /dev/sda";

    string commond_2 = "sudo ntfsfix /dev/sda";

    cin>>number_sda;

    if(number_sda=="0")

      break;

    commond_1+=number_sda;

    commond_2+=number_sda;


    char cmd_1[commond_1.length()];

    char cmd_2[commond_2.length()];

    for(int i=0; i<=commond_1.length(); i++)

    {

      cmd_1[i] = commond_1[i];

    }

    for(int i=0; i<=commond_2.length(); i++)

    {

      cmd_2[i] = commond_2[i];

    }

    system (cmd_1);

    system (cmd_2);

  }

}


Thursday, 2 July 2020

Sunday, 12 April 2020

Basic Commands for Shell

Map Book for Experienced Bash users

The table below lists the usage of some basic commands to help you get started on PowerShell faster. Note that all bash commands should continue working on PowerShell session.
BashPowerShellDescription
lsdir, Get-ChildItemList files and folders
treedir -Recurse, Get-ChildItem -RecurseList all files and folders
cdcd, Set-LocationChange directory
pwdpwd, $pwd, Get-LocationShow working directory
clear, Ctrl+L, resetcls, clearClear screen
mkdirNew-Item -ItemType DirectoryCreate a new folder
touch test.txtNew-Item -Path test.txtCreate a new empty file
cat test1.txt test2.txtGet-Content test1.txt, test2.txtDisplay files contents
cp ./source.txt ./dest/dest.txtCopy-Item source.txt dest/dest.txtCopy a file
cp -r ./source ./destCopy-Item ./source ./dest -RecurseRecursively copy from one folder to another
mv ./source.txt ./dest/dest.txtMove-Item ./source.txt ./dest/dest.txtMove a file to other folder
rm test.txtRemove-Item test.txtDelete a file
rm -r <folderName>Remove-Item <folderName> -RecurseDelete a folder
find -name build*Get-ChildItem build* -RecurseFind a file or folder starting with 'build'
grep -Rin "sometext" --include="*.cs"Get-ChildItem -Recurse -Filter *.cs
| Select-String -Pattern "sometext"
Recursively case-insensitive search for text in files
curl https://github.comInvoke-RestMethod https://github.comTransfer data to or from the web

Saturday, 11 April 2020

Live Server in Atom

If you want to run live server in atom then follow the steps.
1. Downoad and install atom
2. go to preferences and go to package options
3. install live server plugins
4. press CTRL + ALT + L and your default browser will be opened
5. close the live server by pressing CTRL + ALT + Q
   

Friday, 10 April 2020

"Object not found!" Error in Xamp

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
IF you face this Error When you have installed Xamp on your PC and After  starting Apache you see this message then, There are possibilities of errors.
1. You have not placed your directory and you are opening in server
2. You have placed but at wrong place.
So Please copy you directory  in ~Xamp\htdocs.
then you won't face this error.

Monday, 6 January 2020

Wednesday, 23 October 2019

NotePad++ for Windows

This software can be used in coding designing in text.
Click below to download the Notepad 7.7
npp.7.7.Installer.exe - 4 MB

Monday, 5 August 2019

Wednesday, 2 January 2019

Java Development Kit (jdk)- 197 MB

The Java Development Kit is an implementation of either one of the Java Platform,

After installing it you will be able to run java programs and IDE.

jdk-8u191-windows-i586.exe - 197 MB

Eclipse win32 - 207 MB

This is a perfect IDE (Integrated Developed Environment)

for Java Programmers.

It is also a perfect IDE for the beginners of Java.

You should have installed Java Development kit to run this,
otherwise you will not be able to run IDE
eclipse-jee-helios-SR1-win32.zip - 207 MB

Monday, 1 October 2018

Codeblocks -17.12 Haseebabbasi00 - 86 MB

This is best compiler for the any type of programmer.
If you are at beginner level or you are very good at programming,
It will help you a lot.
It helps you to compile, run, debug , find errors, and syntax highlighting.

Haseebabbasi00.blogspot.com
codeblocks-17.12setup.exe - 86 MB

Sunday, 23 September 2018

Office Professional 2013 Haseebabbasi00.blogspot.com - 708 MB

This Microsoft Office 2103.

You can make every thing like Application, Letters,
 Statements, Data Entry and Slides, and much more.
This is for everyone. For Professional person , Student, Employee.



Office_Professional_Plus_Haseebabbasi00.blogspot.com.ISO - 708 MB

Monday, 17 September 2018

Dev-Cpp 5.11 by haseebabbasi00 - 48 MB

This is best compiler for the any type of programmer.
If you are at beginner level or you are very good at programming,
It will help you a lot.
It helps you to compile, run, debug , find errors, and syntax highlighting.
Haseebabbasi00.blogspot.com



Dev-Cpp 5.11  - 48 MB