James Northard
  • Home
  • About
  • Portfolio
  • Contact
  • Blog
September 14, 2017
James Northard
James Northard In Code, Information

WordPress Permissions for Mac OS X Local Environment

Are you receiving the dreaded “Connection Information” permission issue on your local Mac OS X environment? You’re not alone – and thankfully there is a simple solution to this issue….

Continue Reading
April 13, 2016
James Northard
James Northard In Code

Duplicate account in WHM using SSH

Login to SSH Type: /scripts/pkgacct username (where username is the username of the account you wish to duplicate) In WHM -> Account Functions -> Modify Account, change the domain name…

Continue Reading
July 25, 2014
James Northard
James Northard In Code, Hack

Outlook Changing Visited Link Color in Email

Today I ran into an interesting problem and solution while creating an e-newsletter. Even though I had an inline color style set for a link, Outlook was changing the visited…

Continue Reading
May 28, 2014
James Northard
James Northard In Code, Information

Authorize.net SIM Payment Form for WordPress

The Authorize.Net Server Integration Method (SIM) provides a secure payment form to make integration easy for WordPress merchants that do not have an SSL certificate. Important Information: You must have…

Continue Reading
December 23, 2013
James Northard
James Northard In Code, Hack

Convert database rows to columns using PHP

This code will convert (pivot) your MySQL database table from rows to columns. Here is an example of what this code will do: Original Table ID Name Color 1 James…

Continue Reading
May 2, 2013
James Northard
James Northard In Code, Hack

Extract or Find a Directory from URL using PHP

$_SERVER[‘REQUEST_URI_PATH’] = parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH); $segments = explode(‘/’, substr($_SERVER[‘REQUEST_URI_PATH’], 1)); Example: If I wanted a different sidebar for the blog directory in this URL: https://jamesnorthard.com/blog/page/2/ I would use the following code:…

Continue Reading
January 23, 2013
James Northard
James Northard In Code, Hack

Sort by Date Stored in Text Field with PHP

The following code will convert the string into a datetime datatype. STR_TO_DATE(datestring, ‘%m/%d/%Y’) To change the format of the date displayed, use DATE_FORMAT. DATE_FORMAT(STR_TO_DATE(datestring, ‘%m/%d/%Y’), ‘%Y-%m-%d’)

Continue Reading
November 15, 2012
James Northard
James Northard In Code, Hack

Simple solution to display Tweets with PHP

Continue Reading
October 24, 2012
James Northard
James Northard In Code, Hack

Write MySQL Database to JSON using PHP

Continue Reading
October 22, 2012
James Northard
James Northard In Code, Hack

Geocode address with PHP and JSON

This code will pull the latitude and longitude points of an address that has been submitted.

Continue Reading
NextPrevious »

Recent Posts

  • WordPress Permissions for Mac OS X Local Environment
  • Duplicate account in WHM using SSH
  • Outlook Changing Visited Link Color in Email
  • Authorize.net SIM Payment Form for WordPress
  • Convert database rows to columns using PHP

Get In Touch

Interested in working with me?

Get In Touch

© 2023 James Northard.

  • Home
  • About
  • Portfolio
  • Contact
  • Blog