Blog

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, but with recent implementations of HTTP/2, I needed to enable my protocol tab for testing which protocol was in use. So here is a quick tutorial to show you how. To view the web protocol tab in Chrome, you need to navigate to the Network tab in […] Read More

How to Setup a Typescript Project

Before we can setup a TypeScript project we first need to ensure that  Node.js and NPM are installed. If you don’t have them 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 the purpose of this tutorial, but […] 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 Closure Linter in PHPstorm. This 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 version to […] 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

JavaScript 101- Fundamentals

As a developer learning new skills is a necessary part of self improvement as well as a great way to diversify your skill set. Different programming languages open different doors and depending on the task at hand you may need to call upon a variety of different languages to achieve a specific set of goals. […] Read More

JavaScript Array Types

JavaScript arrays come in different forms and this post will explain what the difference is between each array type. This post will look at the following array types; Homogeneous arrays Heterogeneous arrays Multidimensional arrays Jagged arrays Homogeneous Arrays As the name may suggest a homogeneous array is an array that stores a single data type(string, […] Read More

123