March 4th, 2011 by CleanCodeNZ
Ever dreamed about debugging the php app on live? With Xdebug it becomes possible to actually debug a remote (deployed) php app on your development pc. Here I am going to show you how to do that. Read the rest of this entry »
March 1st, 2011 by CleanCodeNZ
I remember being struggling between these two concepts in my early days of jQuery programming, like trying to get value from a jQuery object or call val() on a Dom object, it is not a big issue though, people can get away with that one way or other, but a good understanding will not only help us make fewer mistakes but also move us into the advanced areas of jQuery programming. Read the rest of this entry »
February 15th, 2011 by CleanCodeNZ
As WordPress loads the jQuery library in no conflict mode, $() short cut is no longer supported in javascript in WordPress, this breaks most of the open source jquery add-ons or javascript code we have written before. Read the rest of this entry »
February 9th, 2011 by CleanCodeNZ
There are many hooks in WordPress for plugin developers to catch as an extension point, downside of it is those hooks will be raised on EVERY PAGE, which is an issue if you need to use a large chunk of javascript only for one page, those hooks called actions and filters are site wide, if not careful large chunk of javascript meant for one page could be emitted to every page, a definitely performance killer. Read the rest of this entry »
January 28th, 2011 by CleanCodeNZ
Array_splice is very useful tool, it looks to me that is the only function you can use to insert an item in the middle of array. Read the rest of this entry »