Chris Nizzardini

Salt Lake City, Utah Developer / Human / Blogger

2012

Generating Google Webmaster Tools Disavow Text File in Linux

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 [...]

, , , , ,

Make Apache Slow by Adjusting Prefork Settings

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 [...]

,

How Lazy Loading JavaScript Reduces Page Load and Optimizes Application Performance

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 [...]

,

Scrape Faster with PHP DomDocument and Safely with Tor

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 [...]

, , , , , , ,

Finding Out Where a Method is Being Called From in PHP

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. [...]

, ,

Enhanced PHP performance profiling with Xhprof

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 [...]

, , , ,

Profiling Execution Time in JavaScript and the Perils of jQuery .append()

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 [...]

, , , , ,

Using Google Analytics Custom Variables for AB Testing

Setting up AB Tests using Google Analytics is a simple and free alternative to incredibly expensive solutions like Omniture AB Testing. I had actually used Omniture Test and Target with a company I had previously worked with. The results the Omnitures solution gave were very suspect when compared to our own internal tracking stored in [...]

, , ,

CakePHP Benchmarks on Storing Persistent Cache in APC. Hint: It’s Faster!

It’s been a while since I last posted on here so I thought I’d get something up here before my next big blog post. Since starting a new job back in September I’ve been working in CakePHP 1.3 (soon to be 2.0). The other day I had the opportunity to explore optimizing CakePHP. My employers [...]

, , ,