Recent posts

Save page output as HTML with CakePHP

I’m currently working on a project that requires storing dynamically generated HTML files on a CDN. Without getting too far off topic, I need to dynamically create an HTML page with database...
Read more

Setting layout in error pages based on Auth status with CakePHP

CakePHP error pages load within the default layout. This works most of the time, but for some applications, I have a different layout file for logged in users. For example, the navigation changes...
Read more

Remove SVN folders from projects in Windows

This is a huge time-saver — big thanks to Hacktrix.com for this one! I keep version-controlled directories of code snippets, plugins, components, classes, etc.  Problem is that when I go to...
Read more

Password protect folders with NGINX

As a follow up to the earlier post regarding unexplained NGINX 404 errors as a condition of a poorly written location block, I thought it might be worth sharing another bad bit of code I have seen in...
Read more

NGINX 404 errors

Somewhere out in the wild there’s an NGINX config file that a lot of people are copying (ourselves included though we don’t remember where we found it!), and it’s likely causing...
Read more