Using custom sounds for iPhone SMS notification
I quickly go bored of the default iPhone SMS sounds. But its relatively easy to switch them to your own. I used the following apps to do this. www.zedge.net – for downloading a suitable replacement sound. iFile – for navigating through the iPhone file system. You can also use iPhoneExplorer too if you’re on Windows. [...]
Setting up postfix on Ubuntu for mailing from PHP
To allow your Ubuntu server to send emails from PHP, then you need to install postfix. Postfix is a mailer for *nix platforms. So, to install it: sudo apt-get install postfix When this is installing, you’ll need to enter some options, like what sort of server you’re connecting to. I use my companies details in [...]
Sorting a SELECT with JQuery
Just a simple function to sort an already populated list. Obviously it would be easier to sort before populating, but there are the odd occasion where this is more complicated than you thought. Requirements : JQuery var selectOptions = $(“#selectId option”); Then, we just run the sort command on the options array – and this [...]
Zend_Date – difference between 2 dates
I keep having trouble with this simple calculation! So, here is a little example to get the amount of days between now and the next occurance of July 1st. //set up the 2 date objects $now = new Zend_Date(); $next = new Zend_Date(); //we want July 1st $next->setDay(1)->setMonth(7); //if we are currently after july this [...]