Chris Nizzardini
Web Developer / Human
I'm a software developer currently living in Salt Lake City, Utah. I've been known to freelance, but for the most part I work my day job, code on personal projects in the evening,
and blog here and there.
From my blog:
-
How to Cache CakePHP DbAcl, ACO, and ARO checks
How to Cache CakePHP DbAcl, ACO, and ARO checks
http://blog.cnizz.com/2013/05/21/how-to-cache-cakephp-dbacl-aco-and-aro-checks/
After enabling SQL query logging to Chrome Console I began noticing that queries against the ARO table appear running at 300 milliseconds or higher. This is data that doesn’t change often and is needed on every request so its a great candidate for caching. Unfortunately I couldn’t find any mechanism for caching DbAcl checks. Here is...
Tue, 21 May 2013 16:22:02 +0000
Programming
-
How to Log PHP Errors and SQL to Chrome Console in CakePHP
How to Log PHP Errors and SQL to Chrome Console in CakePHP
http://blog.cnizz.com/2013/05/07/how-to-log-php-errors-and-sql-to-chrome-console-in-cakephp/
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....
Tue, 07 May 2013 22:05:42 +0000
Programming
-
Simplifying adding new routes in Davis.Js
Simplifying adding new routes in Davis.Js
http://blog.cnizz.com/2013/03/06/simplifying-adding-new-routes-in-davis-js/
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...
Thu, 07 Mar 2013 00:34:04 +0000
JavaScript and Ajax
-
CakePHP-DataTables – a Component for interoperability between CakePHP and jQuery DataTables.
CakePHP-DataTables – a Component for interoperability between CakePHP and jQuery DataTables.
http://blog.cnizz.com/2013/01/31/cakephp-datatables-a-component-for-interoperability-between-cakephp-and-jquery-datatables/
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...
Thu, 31 Jan 2013 18:06:51 +0000
Programming
-
Generating Google Webmaster Tools Disavow Text File in Linux
Generating Google Webmaster Tools Disavow Text File in Linux
http://blog.cnizz.com/2012/12/28/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...
Fri, 28 Dec 2012 18:55:15 +0000
Linux
-
Make Apache Slow by Adjusting Prefork Settings
Make Apache Slow by Adjusting Prefork Settings
http://blog.cnizz.com/2012/12/12/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...
Wed, 12 Dec 2012 18:36:56 +0000
Linux
-
How Lazy Loading JavaScript Reduces Page Load and Optimizes Application Performance
How Lazy Loading JavaScript Reduces Page Load and Optimizes Application Performance
http://blog.cnizz.com/2012/12/11/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...
Wed, 12 Dec 2012 06:56:07 +0000
JavaScript and Ajax
-
Scrape Faster with PHP DomDocument and Safely with Tor
Scrape Faster with PHP DomDocument and Safely with Tor
http://blog.cnizz.com/2012/10/12/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...
Fri, 12 Oct 2012 17:56:46 +0000
Programming