How To Fix WordPress Missing “Add New” Button in Plugins and Menu Choice “Dashboard > Updates”

Author: , April 17th, 2017

If you are missing either your “Dashboard > Updates” menu choice, or the “Add New” button or menu choice in the Plugins section, do this to correct it: Edit the wp-config.php file, and change two lines to be false instead of true: For example, here are the two lines fixed: 1 2 define(’DISALLOW_FILE_EDIT’, false); define(’DISALLOW_FILE_MODS’,false); […]

How To Add a Column of Numbers Using AWK

Author: , January 1st, 2015

awk ‘{sum+=$1}END{print sum}’ inputFile

How To Sort Text as a Number in MySQL

Author: , July 11th, 2013

select theField from theTable order by theField+0; ~OR~ select theField from theTable order by CAST(theField AS UNSIGNED);

How To Sum the Values of Form Fields

Author: , October 3rd, 2012

1 2 3 4 5 6 7 8 9 10 var sum = 0; // loop through each field jQuery(".sum").each(function() {    //add only if the value is number    if( ! isNaN(this.value) && this.value.length != 0 ) {       sum += parseFloat(this.value);    } }); //.toFixed() rounds the sum to 2 decimal […]