Blog

Docker “Drive sharing seems blocked by a firewall” – kaspersky

Recently I installed Docker on my Windows 10 computer to test it out as a local tool for WordPress development. I followed the instructions and used a handy script by 10up to quickly set up an optimal WordPress environment. Everything was going so well until I encountered an error in the installation. Namely, my firewall […] Read More

How to Update NPM on Windows 10

The NPM team officially recommends this method of updating Node. (source below) Let’s begin. First, open PowerShell as administrator and run the following command. Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install -g npm-windows-upgrade npm-windows-upgrade You will be prompted to select a version of NPM to install. Use arrow keys to move up and down and […] Read More

How to Install HTTP/2 with WHM and EasyApache 4

Recently I updated my server to enable HTTP/2 via mod_http2 from EasyApache 4 and the results are amazing, this has been something I have kept my eye on for quite some time. So now I will show you how to update your server and you too can benefit from HTTP/2. How to Enabled HTTP/2 with EasyApache 4 […] Read More

How to enable the Protocol Tab in Chrome Dev Tools

By default, Chrome shows you limited network tabs. With the recent implementation of HTTP/2, I needed a quick way to identify which protocol was in use. So here is a quick tutorial to show you how. Navigate to the Network tab in Chrome Dev tools and right click on one of the column headers, a […] Read More

How to Setup a Typescript Project

Before we can set up a TypeScript project, we first ensure that  Node.js and NPM are installed. Head over to the node.js download page and select the relevant package and follow the on-screen instructions. Note: I am using a Mac for this tutorial, but it’s the same for Windows 10. I am also using Visual […] Read More

JavaScript Function Statements vs Function Expressions

JavaScript function statements and function expressions are two ways you can write a function in your JavaScript code, but what is the difference? JavaScript is executed synchronously (line by line) however if you came across a snippet of code like this, you might think the function will not be executed because the code is executed […] Read More

JavaScript Primitives Types

JavaScript has 6 primitive data types (a primitive type is data that is not an object) which lets the JavaScript engine differentiate between different categories of data and they are as follows. string number boolean undefined null symbol (new in ECMAScript 2015) String // Strings "Hello World with double quotes" 'Hello World with single quotes' "28" // see […] Read More

How to Install Python and PIP on Windows 10

Recently I had to install Python on Windows 10, so I could use the “Closure Linter” tool for PhpStorm. Here is a simple guide to show you exactly how to install Python and PIP on your Windows 10 machine. Download Python The first step is to download Python from python.org and select the most recent […] Read More

WordPress: Get the ID for the Front Page and Home

Normally in WordPress if you wanted to access an ID for a post or page you would reference the global $post variable. However, what if you wanted to access the ID for the Home and Front Page templates? In that case you will need to reference the stored ID from the WordPress database using the […] Read More

CSS Center an Element Vertically and Horizontally

Sometimes you just need to position something right in the middle. This used to be a tricky endeavor but these days you can just use something as simple as the example below. This is what I use and it works rather well. [thesis_block type=”note” header=”” content=”Note: I now use Flexbox, see the updated content below.”] […] Read More

123