Grep duplicate JSON keys
If you have large JSON files with application settings in, you need to be sure that the settings only appear once. Not a problem until you get to the stage…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
If you have large JSON files with application settings in, you need to be sure that the settings only appear once. Not a problem until you get to the stage…
GZIP and TAR are two different utilities bound by the same cause. Compressing files and making file catalogs. To compress a file, simply gzip it: $> gzip database_dump.sql That will…
I always end up leaving debug code in my pages for one reason or another. One of which is console.log() for the firebug extension. Now, if you leave this and…
When using a CLI script with options, I like to use the Zend_Console. If my options are as follows: $console = new Zend_Console_Getopt( array( 'i-s' => 'test option 1', 'e'…