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

Thursday, 24 June 2021

Visual Studio Product keys

Professional:

NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y

Enterprise:

BF8Y8-GN2QH-T84XB-QVY3B-RC4DF


#haseebullah

#haseebullahabbasi

#haseebabbasi00


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

git pull vs git fetch

 


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




Monday, 25 January 2021

White noise from headphone jack.


I have the Dell Latitude E5540 with Ubuntu 20.04 and whenever I use headphones that plug onto audio jack I hear a hissing/static sound. I hear the same sounds using the speakers.


Solution

Open Terminal (CRTL + ALT + T) and past the command 


  1. Verify how is your sound card's power_save parameter:

    cat /sys/module/snd_hda_intel/parameters/power_save
    
  2. If it returns 1, do the following to change it temporally:

    echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save
    
  3. If the previous step worked for you, persist that configuration (otherwise the problem will continue after reboot):

    echo "options snd_hda_intel power_save=0" | sudo tee -a /etc/modprobe.d/audio_disable_powersave.conf
    
  4. (Optional) You can also do the same for power_save_controller parameter following the steps 1, 2 and 3 replacing power_save by power_save_controller also changing 0 to N.

    Note: using the first step will probably return Y for this parameter, instead of 1.

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


 


Sunday, 13 December 2020

Linux boot process

The Linux boot process is the procedure for initializing the system. It consists of everything that happens from when the computer power is first switched on until the user interface is fully operational. 


Having a good understanding of the steps in the boot process may help you with troubleshooting problems, as well as with tailoring the computer's performance to your needs. 


On the other hand, the boot process can be rather technical, and you can start using Linux without knowing all the details. 


NOTE: You may want to come back and study this section later, if you want to first get a good feel for how to use a Linux system.


The boot process

The Boot Process



BIOS - The First Step

Starting an x86-based Linux system involves a number of steps. When the computer is powered on, the Basic Input/Output System (BIOS) initializes the hardware, including the screen and keyboard, and tests the main memory. This process is also called POST (Power On Self Test).

The BIOS software is stored on a ROM chip on the motherboard. After this, the remainder of the boot process is controlled by the operating system (OS).

BIOS


MBR and Bootloader 
Once the POST is completed, the system control passes from the BIOS to the boot loader. The boot loader is usually stored on one of the hard disks in the system, either in the boot sector (for traditional BIOS/MBR systems) or the EFI partition (for more recent (Unified) Extensible Firmware Interface or EFI/UEFI systems). Up to this stage, the machine does not access any mass storage media. Thereafter, information on date, time, and the most important peripherals are loaded from the CMOS values (after a technology used for the battery-powered memory store which allows the system to keep track of the date and time even when it is powered off).

A number of boot loaders exist for Linux; the most common ones are GRUB (for GRand Unified Boot loader), ISOLINUX (for booting from removable media), and DAS U-Boot (for booting on embedded devices/appliances). Most Linux boot loaders can present a user interface for choosing alternative options for booting Linux, and even other operating systems that might be installed. When booting Linux, the boot loader is responsible for loading the kernel image and the initial RAM disk or filesystem (which contains some critical files and device drivers needed to start the system) into memory. 


Bootloader In Action 
The boot loader has two distinct stages:

For systems using the BIOS/MBR method, the boot loader resides at the first sector of the hard disk, also known as the Master Boot Record (MBR). The size of the MBR is just 512 bytes. In this stage, the boot loader examines the partition table and finds a bootable partition. Once it finds a bootable partition, it then searches for the second stage boot loader, for example GRUB, and loads it into RAM (Random Access Memory). For systems using the EFI/UEFI method, UEFI firmware reads its Boot Manager data to determine which UEFI application is to be launched and from where (i.e. from which disk and partition the EFI partition can be found). The firmware then launches the UEFI application, for example GRUB, as defined in the boot entry in the firmware's boot manager. This procedure is more complicated, but more versatile than the older MBR methods.

The second stage boot loader resides under /boot. A splash screen is displayed, which allows us to choose which operating system (OS) to boot. After choosing the OS, the boot loader loads the kernel of the selected operating system into RAM and passes control to it.  Kernels are almost always compressed, so its first job is to uncompress itself. After this, it will check and analyze the system hardware and initialize any hardware device drivers built into the kernel.

Initial Ram Disk


The initramfs filesystem image contains programs and binary files that perform all actions needed to mount the proper root filesystem, like providing kernel functionality for the needed filesystem and device drivers for mass storage controllers with a facility called udev (for user device), which is responsible for figuring out which devices are present, locating the device drivers they need to operate properly, and loading them. After the root filesystem has been found, it is checked for errors and mounted.

The mount program instructs the operating system that a filesystem is ready for use, and associates it with a particular point in the overall hierarchy of the filesystem (the mount point). If this is successful, the initramfs is cleared from RAM and the init program on the root filesystem (/sbin/init) is executed.

init handles the mounting and pivoting over to the final real root filesystem. If special hardware drivers are needed before the mass storage can be accessed, they must be in the initramfs image.





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

Tuesday, 1 December 2020

Eclipse IDE - Boost intellisense

 Open the window menu item then open preferences

Then search for Content Assistant and Enable Auto Activation then 

set delay to 0 

and paste activation triggers ".(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

then press appy and close

  

 

Monday, 30 November 2020

Setting up SSMS

 Install SSMS

then type services.msc

turn on the sql server 

then open the SSMS then write the server name (LocalDB)\MSSQLLocalDB

now click on the databases , now you can do ddl and dml operations with dataase   

Saturday, 28 November 2020

How to apply dark theme on Eclipse

 Click on the Help in  option menu

then In  Help you will find Eclipse Marketplace 

then Search Darkest , Select the First Darkest Theme wait for download

then install it then restart you eclipse 

Creating New User in MySql

Write this commands in sql workbench or cmd after opening sql

 create user 'name'@'localhost' identified by 'name';


GRANT All PRIVILEGES on * . * to 'name'@'localhost';