May 7 2013
PHP errors can be a obnoxious when you’re developing an XHR heavy application with lots of JSON responses. The errors just aren’t very readable. So today I finally decided to implement ChromeLogger in our application here at work. This is one thing I’ve always missed since moving away from FireFox and its excellent plugin FirePHP.
Mar 6 2013
Davis.js is a library that allows you to use your back button in single-page ajax driven applications. It essentially binds events to all anchor tags on the page and intercepts them before the browser does its native execution. Davis then looks in its routes table and if that href exists in its table then Davis adds [...]
Jan 31 2013
Just a quick note. I released a new component for CakePHP that provides server-side interoperability between CakePHP 2.x and jQuery DataTables plugin. Features Takes paginated data and converts into json response compatible with datatables Accepts dataTables ORDER BY requests Accepts dataTables WHERE conditions Accepts dataTables pagination Works LinkableBehavior and to a lesser extent Containable Dependancies [...]
Dec 28 2012
I had a domain that generates me about a grand each month get spanked badly by Google due to the work of an outsourced SEO. Luckily Google released a tool to disavow bad links. I suggest reading Googles blog post on the matter at http://googlewebmastercentral.blogspot.com/2012/10/a-new-tool-to-disavow-links.html to ensure you are using the tool properly and know when to [...]
Dec 12 2012
This is probably the strangest thing I’ve ever needed to figure out how to do in Apache: make apache slow. My initial thought was I could just drop max connections to 1, but this would completely halt requests. I wanted the requests to work. I just wanted them to work slowler. My reasoning for this [...]
Dec 11 2012
If you’ve ever built a large JavaScript application in any of the popular libraries out there like jQuery or MooTools you quickly find yourself including a lot of different libraries. In a recent jQuery based application our team was using additional libraries like dataTables and MultiSelect. We also knew that we’d be using even more [...]
Oct 12 2012
I recently was tasked with a rather complex project involving scraping hundreds of thousands HTML documents. Normally scraping is quite easy. I have a lot of experience with it and just use the wonderful Simple HTML DOM library . Simple HTML DOM has some issues though. It chokes on large HTML documents. And when running [...]
Jun 27 2012
If you don’t have a debugger setup or would rather just see this sort of information in a log format use this snippet to find where a method is being called from. Note, if you have NetBeans configured with XDebug you can add a break point and watch the callstack for this sort of information. [...]
May 5 2012
XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based navigational interface. The raw data collection component is implemented in C (as a PHP extension). The reporting/UI layer is all in PHP. It is capable of reporting function-level inclusive and exclusive wall times, memory usage, CPU times and number of calls [...]
Mar 21 2012
HI I’m Chris and I’ve been living under a rock because I just barely learned about using the console.profile() function in conjunction with FireBug. Better late than never. I was trying to figure out why appending data to an HTML table with jQuery was so damn time consuming. A quick google search yielded the awesome [...]