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 –…
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…
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…
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…
ThreadSMS – Review
My Nokia doesn’t have threaded SMS view – and its very annoying. So, after searching about for a suitable application for this, I came across ThreadSMS by eHandySoft (http://ehandysoft.com/threadsms.htm) Functionality:…
Reading the MySQL binary log
Having MySQL dumping out binary logs is a very good failsafe for backup redundancy. But, how do you get any of the information out of them? If you know a…
Accessing the Zend_Application from a page
If, like me, you need to access some Zend_Application resources (such as multidb resources) – then you need a reference to the Zend_Application and the bootstrap. I use this: if…
Retrieve email using regex
This horrendous regular expression will parse a string and return a valid email address from it. $email = "<'Freddy'> fred@live.com"; preg_match('/+(?:\.+)*@(?:(?:*)?\.)+(?:*)?/', $email, $match); echo $match; This will return: fred@live.com Basically,…
Online regex -> php tool
I’ve found an excellent online tool, where you can give it a regex, and it will spit out the PHP syntax for use with preg_replace, preg_match, etc. I’m forever getting…