Techy Things

TypeError: Cannot set property 'fillStyle' of null 0

TypeError: Cannot set property 'fillStyle' of null

TypeError: Cannot set property 'fillStyle' of null Solution https://www.npmjs.com/package/jest-canvas-mock $ yarn add --dev jest-canvas-mock Edit package.json and add { "jest": { "setupFiles": ["jest-canvas-mock"], (...) } }

Message: Class 'Hybridauth\Hybridauth' not found 0

Message: Class 'Hybridauth\Hybridauth' not found

Error "Message: Class 'Hybridauth\Hybridauth' not found" When trying to login via Hybridauth. Solution Upgrade from Hybridauth 2.X to 3.X to fix this error Reference https://gitter.im/hybridauth/hybridauth?at=5c97d377a21ce51a20b4dc8f  

Nginx on port 443 won't serve page 0

Nginx on port 443 won't serve page

Question: I am telling nginx to listen on port 443 and it doesn't work even though my config test is passing. What's wrong? server { listen 443; server_name localhost; server_tokens off; # These are...

Debug PHP code with Visual Studio Code 0

Debug PHP code with Visual Studio Code

Installation You need PHP7 at minimum. You need Visual Studio Code 1) Install php-debug extension. In Visual Studio Code, press F1, then erase the > and type "ext install php-debug" 2) Install X-Debug. Use the...

Uncaught PDOException: could not find driver 0

Uncaught PDOException: could not find driver

Fatal error: Uncaught PDOException: could not find driver in U:\Webpages\thecanadianhosting.co\app\src\db.inc.php:26 Stack trace: #0 U:\Webpages\thecanadianhosting.co\app\src\db.inc.php(26): PDO->__construct() #1 U:\Webpages\thecanadianhosting.co\app\src\db.inc.php(35): getDB() #2 U:\Webpages\thecanadianhosting.co\app\src\routes.php(14): require('U:\\Webpages\\the...') #3 U:\Webpages\thecanadianhosting.co\app\public_html\index.php(27): require('U:\\Webpages\\the...') #4 {main} thrown in U:\Webpages\thecanadianhosting.co\app\src\db.inc.php on line 26 Solution Enable...

Data Mining at Home Resources List 0

Data Mining at Home Resources List

Mining Software Kryptex: https://www.kryptex.org/?ref=eb225f32 Most simple to use, will select the most profitable algorithm based on your hardware. Flip on the "Pro" switch for a nicer user interface. Use my referral link above please. You...

configure: error: Please reinstall the libmagic distribution 0

configure: error: Please reinstall the libmagic distribution

configure: error: Please reinstall the libmagic distribution Solution You need this https://pecl.php.net/package/imagick yum-based distributions # yum install file # yum install file-devel Install from source $ wget https://pecl.php.net/get/imagick-3.4.4.tgz $ tar -xzvf imagick-3.4.4.tgz $ cd imagick-3.4.4/ $ phpize (or in...