Resetting forgotten MySQL root password
If you have forgotten your root password for MySQL, then don’t panic. Although, if you don’t have root shell access,…
Changing your MySQL root password
When you installed MySQL, you would have been asked for a root password. If you were testing or something similar,…
How to pass data from Controller to Zend Form
To pass data from your controller, to a Zend_Form, you can utilise the config parameters: $this->view->form = new Contact_Edit_Form(array('contactName' =>…
Zend Console – get values passed
When using a CLI script with options, I like to use the Zend_Console. If my options are as follows: $console…
JQuery – bind event to non existant element
We all have to bind events to elements: $('#link).click(function(){ do some stuff }); But, what if that element doesn’t…
Facebook – Download *all* of your data
You can download all the data you’ve ever uploaded to Facebook if you like. Once you are logged in, click…
MySQL Query Profiling
This inbuilt part of MySQL allows you to look closely at queries run – per session. And you can use…
Showing hidden files on Mac OS
Learning MacOS recently, and couldn’t find some hidden files, i.e. .htaccess To fix this, easy. Open Terminal, and paste the…
iPhone iOS 4.2+ no longer automounting in Ubuntu
I had this problem, which meant my iPhone no longer automatically mounted in Ubuntu 10.10. I had recently upgraded the…
Creating a copied branch in SVN
To create a new branch in SVN, its very simple. svn copy <source> <destination> -m <message> This will copy the…