• JQuery scrollTop not working with Zurb Foundation

    Recently I discovered something about the way Foundation calls JQuery. I was trying to get a function to reveal a div on window scroll and discovered that you only have to change the syntax for the function call to get it to work. Error: undefined function How can document be...

  • On WordPress as an AngularJS Backend

    WordPress provides a web interface for manipulating a MySQL database, but the static nature of WP’s php files disables its ability to serve itself as a Single Page Application (SPA). To capitalize on modern web technologies, AngularJS could be employed as a front-end system that draws from a MySQL backend...

  • See How Google Sees Your SPA

    Google now offers a “Fetch as Google” feature, where you can see exactly how their crawlers will see your SPA. Give it a go here. You’ll have to have webmaster tools enabled for your site.

  • Quick ‘save’ command for command-line writers

    Here’s a fun trick for those of us command-line writers who still exist: create a private BitBucket and then post commits each time you are about to walk away from your writing. Oh, and run the code in this article. Create a BitBucket repo and then go to your writing...

  • CMS-like Dynamic Routing in AngularJS

    As I’m designing a CMS-like system in AngularJS, one of the things I find myself needing to do is create simple HTML pages stuffed full of content. What I don’t want to do is create a new partial view and add it to my route for every page that I...

  • How to get Automatic Nightly Backups on Nginx

    Here’s a copy of my automatic nightly backup script, which cycles through a list of clients, dumps their MySQL DB, ZIPs their WP files, and pushes the backups out to s3 while maintaining a daily.zip backup on our local system. In crontab -e, I added the following entry: <h1>Our backup...

  • DIY AngularJS SEO with PhantomJS (the easy way!)

    Setting up your AngularJS development environment needs to include SEO best practices. For JS-rendered applications, take a look at this solid solution using PhantomJS. I’ve been tasked with recreating a website for a higher education institution and I want to capitalize on AngularJS technologies to provide a rich user experience. Unfortunately,...

  • [Solved] NPM Error: No compatible version found

    If you’re trying to install a package via npm and you’re getting an Error that says “no compatible version found,” then chances are you need to update your NodeJS package. For example, when trying to install Yeoman, you might get this: npm ERR! command "node" "/usr/bin/npm" "install" "-g" "yo" npm...