Getting wkhtmltopdf working on Linux
I’ve had a few troubles getting this running, and thought I would document it here. First of all get the static binaries from the wkhtmltopdf site And then install the…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
I’ve had a few troubles getting this running, and thought I would document it here. First of all get the static binaries from the wkhtmltopdf site And then install the…
Simple one. $(document).on('#element', 'keyup', function(event) { if (event.keyCode == 13) { event.preventDefault(); //do some other stuff } }); This doesn’t actually work as the Key Up event is too late…
I recently wanted to add a Zend library to a project without adding the entire framework. I found that internally, the Zend application requires the Library path to be in…
So you want a little funky AJAX loader? Add this to your JS main core file…: $(document).ready(function() { //initiate an ajax start message $(document).ajaxStart(function() { //show the message $('#ajax_loading_indicator').show(); });…
If you have a database of CDs, and artists, etc. Say you want to get a list of artists with their most recent releases: SELECT artist.name, album.title, album.release_date FROM artist…
IMAP To get imap support in PHP on your Mac, you need to get the php_imap module compiled for your version of PHP. I have attached mine to this to…
If you have just set up a new Centos server and found that the network isn’t functioning, and you have no IP address for it then fear not, its a…
find / -xdev -size +1000000 -exec ls -lh {} \; The above will list files greater than a gigabyte in size… YOu can pipe it to a file if you…
If you are trying to add a ‘total’ or a report footer and its getting split over the penultimate and final page, then just add this css to the element…
You cannot strip a certain list of tags with PHP’s strip_tags() function, you can only strip ‘all but’ tags. So in order to do so, you’ll need to use regular…