Blog


Browser Sniff if on Apple Device using JavaScript
Posted on May 16, 2019 in JavaScript by Matt Jennings

What is the list of possible values for navigator.platform as of today? – from StackOverflow.com

var deviceDetect …

Read more


Code to Get Unique Elements of an Array using ES6 Syntax
Posted on February 6, 2019 in Algorithms, JavaScript by Matt Jennings

const arr1 = [2, 2, 4, 2, 6, 4, 7, 8]

const counts = {}

let i

for (i = 0; i < …

Read more


Accessibility for the Web
Posted on December 3, 2018 in Accessibility by Matt Jennings

Accessibility is the design of products, devices, services, or environments for people with disabilities (cited from Wikipedia …

Read more


Ways to Block WordPress User Enumeration Hack Using .htaccess
Posted on September 10, 2018 in WordPress by Matt Jennings

# Block User ID Phishing Requests
<IfModule mod_rewrite.c>
RewriteCond %{QUERY_STRING} ^author=([0-9]*)
RewriteRule (.*) $1? [L,R=302]
</IfModule>

# Block Feed ID Phishing Requests
<IfModule mod_rewrite.c>
RewriteCond %{QUERY_STRING} ^feed=([0-9]*)
RewriteRule …

Read more


Hooks: Actions and Filters
Posted on June 24, 2018 in WordPress by Matt Jennings

Hooks are functions in WordPress that allow me to call others functions I create at specific times. There are two …

Read more