Showing posts with label Problem's Solution. Show all posts
Showing posts with label Problem's Solution. Show all posts

Saturday, 4 September 2021

Support for password authentication was removed (Git , Github) Error Solution

 Github announced their intent to require the use of token-based authentication for all authenticated Git operations. They will no longer accept account passwords when authenticating Git operations on GitHub.com:

Generate token:

On Mac:

  • Go to keychain Access
  • Press login tab and all items
  • Click Github key
  • Change the password to the recent generated token

enter image description here


On Windows:

  • Go to Control Panel => User Accounts => Credential Manager

  • Edit the Generic Credential of github

  • Paste the token instead of the password

enter image description here

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




Thursday, 14 January 2021

Contribution on GitHub

1. Fork repository of that User

2. Help him/her in code

3. Commit changes in code

4. Push your changes

5 Create Pull Request with a message


 


Wednesday, 2 December 2020

Setting Java 8 in Android Studio


Open the Project and go the following path..........

Project --> Gradle Scripts --> build.gradle(Module: app)

Copy the following code and paste inside...   android{   }

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
HaseebAbbasi00

Thursday, 19 November 2020

Linking local repository to remote repository

If you not linked to remote repository then you can do it easily by following these steps

1. copy the link of the remote repository. 

2. put the repository URL  at the place of repository URL  in the command below in CMD

$ git remote add origin remote repository URL

# Sets the new remote

then type the below command too

$ git remote -v

# Verifies the new remote URL

now, you can work on your local repository and can make commits and push on the remote repository  

Wednesday, 4 November 2020

JavaFX on jdk 11 or Later. Use this JDK !!!

If you are confused how to do setup of JavaFX on JDK 11 or later.

 Now there is no confusion. I am sharing this JDK.

In this, there is built-in available JavaFX so there is no need to setup environment separately for JavaFX. Just like JDK 8 you to install and setup environment, no need separate installation of JavaFX.

Below are the links to download !!!!

NOTE: Please open these links in a private window.

1. Zulu JDK for Windows

https://drive.google.com/file/d/1-3EL8BeLlt2vUIU559owDizSkD7SAKe3/view?usp=sharing

2. Zulu JDK for Linux

https://drive.google.com/file/d/1MyH7raiygCrsU_SwOJyyIPgjgZuMfSrN/view?usp=sharing

Thursday, 29 October 2020

How to Resolve MySQL not working in Xamp

 1. Close Your Xamp.

2. Go to C.. xamp .. mysql .. 

3. copy all the data of the backup folder

4. paste into data folder.

5. then start your xamp . 




Thursday, 10 September 2020

C# in Linux

 1. Install Rider from JET BRAINS Official Website 

2. Install Mono

sudo apt install gnupg ca-certificates

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt updatesudo apt install mono-devel


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, 9 July 2020

MySQL Workbench Cannot Connect to Database Server (Solved)

If you are Facing this error

Add caption
then Follow the steps to avoid the errors

1. Login to your MySQL Command line tool,
2. Execute the command in the below format directly in the command line tool.
ALTER USER 'username'@'ip_address' IDENTIFIED WITH mysql_native_password BY 'password';
In my case It it 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

After that Use the Workbench now It will run.

Monday, 6 July 2020

Things to Do After Installing Ubuntu 20.04

Things to Do After Installing Ubuntu 20.04


1. Check and Install Package Updates

$ sudo apt-get update && sudo apt-get dist-upgrade

2. Install Your Favorite Browser

3. Install VLC Media Player

$ sudo snap install vlc

4. Install Media Codecs

$ sudo apt install ubuntu-restricted-extras

5. Install Useful GNOME Extensions

For example, to install the GNOME host connector for Chrome or Firefox, run these commands.

$ sudo apt install chrome-gnome-shell
OR
$ sudo apt install firefox-gnome-shell

6. Install Additional Archive Utilities

Ubuntu ships with tarzip and unzip archiving utilities by default. To support different archive files that you can use on Ubuntu, you need to install other additional archiving utilities such as rar, unrar, p7zip-full, and p7zip-rar as shown.

$ sudo apt install rar unrar p7zip-full p7zip-rar

7. Configure Keyboard Shortcuts

Using keyboard shortcuts can increase your productivity and save you lots of time when using a computer. To set your keyboard shortcuts, under Settings, simply click on Keyboard Shortcuts.

Set Keyboard Shortcuts
Set Keyboard Shortcuts

8. Add Your Favorite Apps to the Dock

To add your favorite applications to the Ubuntu Dock (which is situated on the left side of your desktop by default), click on the Activities overview, search for the application you want e.g terminal, then right-click on it and select Add to Favorites.

Add App to Favorites

9. Install Laptop Power Saving Tools

If you are using a laptop, then you might want to install Laptop Mode Tools, a simple and configurable laptop power-saving tool for Linux systems. It helps to extend your laptop’s battery life in so many ways. It also allows you to tweak some other power-related settings using a configuration file.

$ sudo apt install laptop-mode-tools

10. Install Apps from the Ubuntu Software and Third-party

Last but not least, go ahead and install more software that you intend to use. You can do this from the Ubuntu Software (or install apps from third-party repositories).

Simply open the Ubuntu Software and use the search feature to find the software you want. For example, to install midnight commander, click on the search icon, type its name, and click on it.

Install Additional Apps


11. Install JAVA

JAVA is the most popular programming language and many applications and websites will not work properly unless you have it installed on your system.

$ sudo apt-get install openjdk-11-jdk

Sunday, 5 July 2020

Usb Bootable for windows - Linux

First Install Power ISO from 

https://haseebabbasi00.blogspot.com/2018/08/power-iso-7-by-haseeb-abbasi-5-mb.html

link given below 


Step1: Create Bootable USB Drive

  1. Start PowerISO (v6.5 or newer version, download here).

  2. Insert the USB drive you intend to boot from.

  3. Choose the menu "Tools > Create Bootable USB Drive". The "Create Bootable USB Drive" dialog will popup. If you are using Windows Vista or above operating system, you need confirm the UAC dialog to continue.



  4. In "Create Bootable USB Drive" dialog, click "..." button to open the iso file of Windows operating system.

  5. Select the correct USB drive from the "Destination USB Drive" list if multiple USB drives are connected to the computer.

  6. Choose the proper writing method. "USB-HDD" is recommended.

  7. Click "Start" button to start creating bootable USB drive.

  8. PowerISO will alert you that all data on USB drive will be destroyed. Click "OK" to continue.


    The program will start writing USB drive, and showing the progress information. You should get the message "Writing USB drive completed successfully." after the operation completes.


If no errors occurred in the above process, you should now be all set to setup Windows from USB drive!

Thursday, 2 July 2020