Mostly web development topics, but not always.

July 28, 2017
posted 8 months ago


Important MAMP paths

MySQL installed with MAMP

Socket File
Data Files
Base Directory
Error Log

MySQL installed with MAMP PRO

MAMP PRO shares many paths with MAMP, with the following difference:

Data Files
/Library/Application Support/appsolute/MAMP PRO/db/mysql

July 24, 2017
posted 8 months ago


Reorder a select option with jQuery

The purpose of this code is to select an option item in a select based on value, and move it to the second item in the select’s option order. The first item serves as a label for the form field.

In my case, the options are coming out of a database, and are subject to change as far as order and the number of items available. However, the value will not change, so this is a guaranteed, permanent hook for what needs to be done here.

After working on a solution, I came up with this code: