Paul Leasure

EXAMPLE OF PROMISE.ALL()

Example of Promise.all() Do you need to iterate over an array of promises? Promise.all() is often the best way. Promise.all(iterable) returns a single promise. Promise.all(iterable) only resolves after every promise in an array of promises has completed resolving. Since the elements of the array are promises, they do not resolve in any particular order. If… Read more EXAMPLE OF PROMISE.ALL()

Inject jQuery into a Webpage Through Chrome Javascript Console

include these lines of jQuery instantiation code in the javascript console Exploring the DOM is much easier with jQuery. However, You may be working with a webpage that does not natively have jQuery installed. That’s ok, the following lines of code will solve this. Just include these lines of jQuery instantiation code before you explore… Read more Inject jQuery into a Webpage Through Chrome Javascript Console

[solved] devtool reloads if application writes to a file

If you are developing a node js application using devtool, you may experience a rather frustrating situation whereby you application stops without any traceable errors followed by a subsequent reload of the devtool. Why does devtool keep reloading when there are no errors? There is a likelyhood that you are experiencing this issue as you… Read more [solved] devtool reloads if application writes to a file

SECURE COPY (SCP): EXAMPLES OF HOW TO USE SECURE COPY

Examples of how to use Secure Copy (scp) scp uses ssh for data file transfer between servers and provides the same level of security as ssh. Secure copy the file “somefile.txt” from a remote host to your local host

  Secure Copy your file “somefile.txt” from the local host to a remote host

Read more SECURE COPY (SCP): EXAMPLES OF HOW TO USE SECURE COPY

[SOLVED] ERROR mysqli_real_connect(): (HY000/2002): No such file or directory

If you are getting a wordpress error that starts with “mysqli_real_connect(): (HY000/2002):” and includes “No such file or directory” and ends with “wp-includes/wp-db.php on line 1490”, then here is what resolved the issue for me. In the wp-config.php file, include (or change) this line from define(‘DB_HOST’, ‘localhost’); to define(‘DB_HOST’, ‘127.0.0.1’); I put it near the… Read more [SOLVED] ERROR mysqli_real_connect(): (HY000/2002): No such file or directory