Blog


How to Mimic Simulate the input placeholder Attribute in Internet Explorer 9 Using Plain JS and jQuery
Posted on October 31, 2015 in JavaScript, jQuery by Matt Jennings

See this JSFiddle for the code.


Creating Custom Post Types, with Multiple Text Fields in a Single Meta Box and Template Info, in WordPress
Posted on October 31, 2015 in PHP, WordPress by Matt Jennings

Below are WordPress and PHP code samples on how to:

Create custom post types using a plugin.
Create multiple text fields (using …

Read more


How to View a Website on Mac Using Localhost and BrowserStack.com
Posted on October 22, 2015 in BrowserStack.com, Mac by Matt Jennings

Steps to view a website on localhost (like localhost:8888) using BrowserStack.com on a Mac:

Download the appropriate executable Mac …

Read more


Use Active Record to Create a Row on a Table that Has Foreign Keys
Posted on August 14, 2015 in Rails by Matt Jennings

Assume that the following tables in the same Active Record database:
users – -> blogs (one user can have many blogs) …

Read more


Using JavaScript Push Common Numbers from Two Arrays into a Third Array
Posted on July 31, 2015 in Algorithms, JavaScript by Matt Jennings

function commonIdsFromTwoArrays(arr1, arr2) {
// Array to push common IDs into
var commonIdsArr = [];

Read more