There has been a big war between console and PC players on which platform is better than the other, but today I am going to try and let you decide for yourself which one is better for you. I will be covering Three main points, Aim, Quality and Performance, and Price. So let’s start with the first one!
Aim is one of the most important things in gaming because if you are bad at aiming….. you are not gonna live for too long in that game, either it is console or PC. But you can be good at any one of them. Let’s see how both of them perform, PC players can move their mouse freely in any direction plus they can get a bigger mouse pad if they want. Moreover, they can adjust the dpi of the mouse or the sensitivity in game. But in console you are only limited to the controller’s analog and it’s size as well as the in game sensitivity. That’s why the PC team takes the lead here. But if you don’t care about that and you are still good at aiming on console then you probably want to skip this point and see the others.
Quality and Performance
We all know that PCS are super powerful if you pick the right parts, and you can upgrade any part of it when you want (not including laptops). But consoles on the other hand, well… if you want to upgrade anything in your console, you are going to have to wait for the next generation to come out (which at the time of writing this are the Xbox Series X and the Play Station 5). so let’s see how a modern PC compares to a console (in this case a PS4). The PS4 can power a 1080p display at a refresh rate of 60hz. But a PC with an RTX2080 and an Intel Core I7 9700k can power a 4K display at 144hz.
But let’s not get really excited without mentioning the price. The price is a really important factor for anyone that’s considering gaming, because sometimes PCS can be really expensive. So let’s see the prices of both of our contestants that we talked about in the last section. First off: the PS4. Right now in the USA the PS4 retails at about 299.99$ on BestBuy. While on the other hand, the PC that we talked about can get up to 1400$ !!
Here is how to protect a folder with username and password in xampp :
- Open the command promote
- Go to your xampp folder and then go to: /apache/bin/
- Run this command :
htpasswd.exe -c -b .htpasswd my_user _name my_password
Don’t forget Change “my_user_name” and “my_password”
- A file with the name of .htpasswd will be created at the folder of /apache/bin
- Create a file with the name of : .htaccess at the folder you want to protect ( don’t forget the dot in .htaccess)
- Write the following in the .htaccess file:
Note that the path in AuthUserFile line (c:/xampp/apache/bin/.htpasswd) is the path to your xampp folder where the .htpasswd file is created, very important to keep this file away from the httdocs folder.
If you are trying to install extensions on VSCode but you can’t. Try to visit this site from your browser:
Most probably you will get a “This site can’t be reached” message, to solve this you have to change your default DNS to google free public DNS
If that may not work for you then yo can try to change the DNS for IPv6 to:
Here is a link for more details on changing the DNS to google DNS
If you want to install composer on a godaddy shared hosting, you can follow these steps:
On root folder type:
php installer --check
rm -f installer
to return the path of composer type:
it’ll return something like: /opt/cpanel/composer/bin/composer
then you can use composer using its full path:
php-cli /opt/cpanel/composer/bin/composer install
for ex. :
php-cli /opt/cpanel/composer/bin/composer install
php-cli /opt/cpanel/composer/bin/composer update
Also if you want to run php artisan , you can type:
If you got an error like: “Host ‘localhost’ is not allowed to connect to this MariaDB server” you can edit the file xampp\mysql\bin\my.ini
Add this line:
after [mysqld] group.
After that, login to phpmyadmin and repair the users table as it mostly is corrupted.
Also try to rename :
After you login, you have to update your plugins, specially JetPack and problem will disappear.
Try the CLI update process:
1) On your terminal go into magento root folder.
2) Set magento 2 under maintenance mode
php bin/magento maintenance:enable
3) Search for the correct and latest magento 2 version
composer show magento/product-community-edition 2.3.* --all | grep -m 1 versions
4) Force your composer to use the latest version
composer require magento/product-community-edition=2.3.3 --no-update
5) Update your magento 2 installation
6) After successful update Upgrade magento and compile
php bin/magento setup:upgrade
7) Disable maintenance mode and you are ready to check the correct version
php bin/magento maintenance:disable
Even I think this should be a simple checkbox in Magento Control Panel but the most simple way I found is to put a file in var folder with the name of: var/.maintenance.flag
If you want to allow an ip or a group of ips you simply write this list of ips in a file: var/.maintenance.ip
Of course if you have access to CLI you can just type:
bin/magento maintenance:enable –ip=220.127.116.11
where –ip=18.104.22.168 is the ip that can access the website normally ..
if you use a shared hosting, to run the above command you have to go to the public_html folder first :
and then run the command using php
php bin/magento maintenance:enable –ip=22.214.171.124
For more information go to :
php artisan clear-compiled
php artisan optimize
composer dump-autoload -o
And these sites can minify your code
And finally, some tools to Lint your code