Drush commands are not working in Xampp on Windows

In Xampp 2 Drupal sites are there.one is drupal 7.0 and another one is drupal 8.8.7.
Drush version is 8.3.5, PHP version is 7.2.22 ,composer 1.9.2

When I try enabling module in Drupal 7.0

drush en serialization

Command pm-enable needs a higher bootstrap level to run – you will need to invoke drush (error)from a more functional Drupal environment to run this command.
The drush command ‘en serialization’ could not be executed. (error)Drush was not able to start (bootstrap) the Drupal database. (error)Hint: This may occur when Drush is trying to:

  • bootstrap a site that has not been installed or does not have a configured database.
    In this case you can select another site with a working database setup by specifying the
    URI to use with the –uri parameter on the command line. See drush topic docs-aliases
    for details.

  • connect the database through a socket. The socket file may be wrong or the php-cli may
    have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.

  • connect to the database through a cli command using the –defaults-extra-file
    parameter to pass credentials through a tmp file. This method can break if other
    credentials are specified in a ~/.my.cnf file in your home directory. You may have to
    delete or rename the ~/.my.cnf file in your home directory.

    Drush was attempting to connect to:
    Drupal version         :  7.0
    Site URI               :  http://default
    Database driver        :  mysql
    Database hostname      :  localhost
    Database port          :
    Database username      :  root
    Database name          :  drupal7
    PHP configuration      :  C:xamppphpphp.ini
    Drush script           :  C:/Users/moonraft/AppData/Roaming/Composer/vendor/drush/drus
                              h/drush.php
    Drush version          :  8.3.5
    Drush temp directory   :  C:UsersmoonraftAppDataLocalTemp
    Drush configuration    :
    Drush alias files      :
    Drupal root            :  D:xampphtdocsdrupal7
    Drupal Settings File   :  sites/default/settings.php
    Site path              :  sites/default
    

Then if I try in Drupal 8.8.7

drush en serialization

Could not load SQL class. There is a mismatch between your Drupal root and your PHP (error)autoloading.
This can happen if you mix Drupal 8 and Drupal 7. (error)Please check that the location of Drush matches the Drupal core version you want Drush to (error)talk to.
Command pm-enable needs a higher bootstrap level to run – you will need to invoke drush (error)from a more functional Drupal environment to run this command.
The drush command ‘en serialization’ could not be executed. (error)Could not load SQL class. There is a mismatch between your Drupal root and (error)
your PHP autoloading.
This can happen if you mix Drupal 8 and Drupal 7. (error)
Please check that the location of Drush matches the Drupal core version you (error)
want Drush to talk to.
Drush was not able to start (bootstrap) the Drupal database. (error)Hint: This may occur when Drush is trying to:

  • bootstrap a site that has not been installed or does not have a configured database.
    In this case you can select another site with a working database setup by specifying the
    URI to use with the –uri parameter on the command line. See drush topic docs-aliases
    for details.

  • connect the database through a socket. The socket file may be wrong or the php-cli may
    have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.

  • connect to the database through a cli command using the –defaults-extra-file
    parameter to pass credentials through a tmp file. This method can break if other
    credentials are specified in a ~/.my.cnf file in your home directory. You may have to
    delete or rename the ~/.my.cnf file in your home directory.

    Drush was attempting to connect to:
    Drupal version         :  8.8.7
    Site URI               :  http://default
    PHP configuration      :  C:xamppphpphp.ini
    PHP OS                 :  WINNT
    Drush script           :  C:/Users/moonraft/AppData/Roaming/Composer/vendor/drush/drus
                             h/drush.php
    Drush version          :  8.3.5
    Drush temp directory   :  C:UsersmoonraftAppDataLocalTemp
    Drush configuration    :
    Drush alias files      :
    Drupal root            :  D:xampphtdocsdrupal8
    Drupal Settings File   :  sites/default/settings.php
    Site path              :  sites/default
    Sync config path       :  D:xampphtdocsdrupal8/content/sync
    

I am not sure what is the problem. Please help me with this.
Thanks in advance

powershell – Command-line-interface command to open new tab in the Windows Terminal the CLI command was executed from

What command-line-interface (CLI) command can I use to open a new tab in the Windows Terminal the CLI command was executed from?

Solutions for PowerShell, CMD, and gitBash would be appreciated, but only PowerShell or CMD would still be useful.

I could not find the answer in the links below, they only instruct how to open new tabs in a new instance of Windows Terminal.
https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows
https://github.com/microsoft/terminal/pull/3495


Looks like MS is working on it:
https://github.com/microsoft/terminal/issues/4472

cpu – Cores, threads and sockets: what does it mean the calculation $T = tcs$ and the number on windows task manager performance?

Well, suppose then we have an CPU system such as:

Thread(s) per core $equiv t$ : 4

Core(s) per socket $equiv c$: 4

Socket(s) $equiv s$: 1

Then, we must to perform a simple calculation such as: $ 4 cdot 4 cdot 1 = 16 $

Therefore, in general we have:

$$ T = tcdot c cdot s tag{1}$$

I guess that the equation $(1)$ gives you then the total number of threads which your system can handle simultaneously.

On the other hand, consider the figure, of windows task manager, in the following:

enter image description here

In the red box we clearly see the number of “Threads”. So I would like to know:

What is the difference between the number given by formula $(1)$ and the number given by windows task manager?

windows forms – Need Word Falling into lava game C#, Some Incomplete code is given, Please help me someone

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void MainButton1_Click(object sender, EventArgs e)
        {

        }

        private void MainTimer_Tick(object sender, EventArgs e)
        {
            
            MainLabel1.Location = new Point(MainLabel1.Location.X, MainLabel1.Location.Y+10);


        }

        private void MainLabel1_Click(object sender, EventArgs e)
        {
            
            MainLabel1.Location = new Point(MainLabel1.Location.X, MainLabel1.Location.Y + 10);
            if (MainLabel1.Location.X <= 0 || MainLabel1.Location.X + MainLabel1.Location.Y >= 743)
            {
                MainLabel1.Location = new Point(MainLabel1.Location.X-10, MainLabel1.Location.Y );
            }
            if (MainLabel1.Location.Y <= 0)
            {
                MainLabel1.Location = new Point(MainLabel1.Location.X, MainLabel1.Location.Y - 10);
            }
        }

        private void MainLabel2_Click(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            MainLabel2.Location = new Point(MainLabel2.Location.X, MainLabel2.Location.Y + 10);
        }
    }
}

windows registry – Issue associating ms-powerpoint protocol to powerpoint

When trying to open powerpoint through sharepoint or teams I get an error that no application is associated to the protocol (ms-powerpoint). This seems to be true when I check in windows setting but when I try to associate ppt it doesn’t appear in my list of applications.

However I have office 2016 pro installed – the same version as on my other pc where it does work.

I’ve tried to figure out the progid to make the association manually in regristry but can’t figure it out.

partitioning – Dual boot Ubuntu with Windows: cannot change from RAID to AHCI through BIOS

I recently got a new laptop HP Envy (Model: 15M-ED0023DX). Its full SSD machine and I want to the change the SATA from RAID to AHCI so that I could see the partitions when I boot from pendrive (Ubuntu) Reference.

However when I go to BIOS I do not see AHCI as an option. A similar answer from HP Forum Reference.

Is there any way around this, so that I can install Ubuntu on my machine?

Thanks

windows 10 – How to print two copies of the same Google spreadsheet on a single A4 sheet of paper?

I have Google Spreadsheets document, in which the content of one of its sheets fits easily on half an A4 sheet of paper.

How do I print two copies of said sheet on the same sheet of paper?

I am on Windows 10 and my printer is an Epson Stylus TX133 just in case.

Libertyvps.net NL WINDOWS Virtual Servers| 99.9% Network Uptime! | Proxies-free

LibertyVPS.net
Fast Offshore Hosting

LibertyVPS is commited to protect your data, privacy and provide you with high quality hosting. We offer KVM VPS that have the option to run Linux and Windows, we only use high quality hardware and high speed gigabit connections. All our VPS come with secured storage, high bandwidth limits and dedicated RAM. We accept Bitcoin as one of our many payment methods for our bitcoin vps. Bitcoin is the best and easiest way to pay online and is fully anonymous to keep your privacy. All Bitcoin payments are processed automatically via BitPay and will be credited once the payment has been made.

LibertyVPS offshore VPS are great for running websites, game servers, bitcoin wallets, email servers, file servers, and much more. All our Linux servers come with a wide variety of OS templates you can choose from to install and all the resources are dedicated. The best choice for beginners or professionals, is LibertyVPS offshore VPS. Our offshore VPS are located in our NL datacenter. Our datacenter is secured and located offshore for the best privacy and security. You can use your server to host websites, download files and more! We use the Ecatel Datacenter, located in Amsterdam. Ecatel uses the best networking equipment, hardware and transit providers. All bandwidth is premium bandwidth that results in very low ping and very fast speeds.

Check out OUR OFFSHORE Windows VPS Hosting Packages:

Bronze VPS plan
CPU Cores – 1 Core
Dedicated RAM – 1 GB
Disk Space – 25 GB
Monthly Bandwidth – 2 TB
Virtualization – Windows KVM
ORDER NOW$24.99/month

Silver VPS plan
CPU Cores – 2 Cores
Dedicated RAM – 2 GB
Disk Space – 50 GB
Monthly Bandwidth – 4 TB
Virtualization – Windows KVM
ORDER NOW$49.99/month

Gold VPS plan
CPU Cores – 4 Cores
Dedicated RAM – 3 GB
Disk Space – 75 GB
Monthly Bandwidth – 8 TB
Virtualization – Windows KVM
ORDER NOW$74.99/month

Platinum VPS plan
CPU Cores – 8 Cores
Dedicated RAM – 4 GB
Disk Space – 100 GB
Monthly Bandwidth – 10 TB
Virtualization – Windows KVM
ORDER NOW$99.99/month

Payment Methods
You can order our VPS using the following payment methods: PayPal, Bitcoin (Anonymous Shared Wallet), Perfect Money, OKPAY. If you require other payment method, we are flexible! Feel free to contact us!

Support / Contact
You can contact us at our ticketing system, or click here to use our contact form!

Terms of Service
We do not allow: Illegal Pornography, DDoS / DoS, Malware, SPAM / Phishing, Terrorism.