Editing massive files on Windows
I you need to edit a MySQL dump which is 2.5Gb and you are unfortunately running Windows, I’ve found a…
Absolute positioning within another container
Say you want to position something within its container, then the element you are trying to position needs to have:…
Custom Zend Validator error messages
The Zend Validator error messages are not the most helpful. Considor the below code for creating a file input: $this->addElement('file',…
PHP Create a ZIP file
I was just playing around with PHP’s ability to create compressed files, and I had a problem. My ZIP file…
Netbeans – Goto matching brace/bracket
If using Netbeans for your development and you have a horrendous spagetti coded “if” statement, you can use a keyboard…
Preventing pesky consoles. (forgetful developers)
I always end up leaving debug code in my pages for one reason or another. One of which is console.log()…
JavaScript – Use a variable for a function call
Sometimes you want to pass a function around from script to script as a string containing the function name (well…
What is database sharding?
Databases, by their own nature, become large beasts. This is a fact of life and whilst a lot of databases…
Using mod_rewrite for clean URLs
Say your message board on your blog uses the following request URL to find and display the correct data: http://www.mysite.com/blog/index.php?category=news&year=2012&month=1…
Message: [Syntax Error] Expected PlainValue, got ”’ at position x in property {model}
Was getting the above error in my Doctrine project, turned out I had used a single quote in the ORM…