Journal
Mostly web development topics, but not always.




July 28, 2017
posted 2 months ago

tagged

Important MAMP paths

MySQL installed with MAMP

Socket File
/Applications/MAMP/tmp/mysql/mysql.sock
Data Files
/Applications/MAMP/db/mysql/
Base Directory
/Applications/MAMP/Library/
Error Log
/Applications/MAMP/logs/mysql_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 2 months ago

tagged

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: