Monthly Archives: May 2016

perl toggle operator for extracting one table from mysql dump file

We did it with a nifty one liner perl command that uses the TOGGLE operator. zcat fast.dmp.12082014_13_03.sql.gz |perl -ne ‘if (/CREATE TABLE `budget`/../UNLOCK/ ) {print $_; }’ > budget.1208.sql This looks for lines in the dump between lines that match … Continue reading

Posted in Uncategorized | Leave a comment

Keep submit buttons from submitting twice

Jquery One function works nicely for limiting a bind event to only one time. Just be sure to re-bind it ONE time when the server sends back an error when validating the form inputs. $objResponse->script(” $(‘#submit_edit_prod_personalization_form’).button().one(‘click’,function() { xajax_update_prod_personalization(xajax.getFormValues(‘edit_prod_personalization_form’)); });”);

Posted in Uncategorized | Leave a comment