Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

Different output of Set::combine and Hash::combine

Just had an annoying 1/2 hour trying to get a properly formatted array to pass to a select control in CakePHP In my controller I'm trying to format an array with a Custom field   $options = array( 'fields' => array( 'ReportDate.id', 'CONCAT( ReportDate.date, "...

Using gnubarcode to generate a GS1-128 barcode

Tried using the Code 128 options but couldn't get the right out put The trick I found is to use Code 128 raw mode. The caveat is it won't format a nice human readable text label for the barcode you will have to add that your self later (perhaps hack the postscript)....