Passing arguments to a JavaScript callback function

In JavaScript, callback functions are used to perform an action or operation after another operation has occurred. The mechanics of a callback rely on the fact that everything in JavaScript is a first class object. This fact allows you to pass functions as arguments to another function. The latter function can then invoke that function at a predetermined point in the program.


Mount Remote Volumes on Boot with sshfs and fstab

I need to have a couple of network volumes mounted to my Linux laptop on a continual basis. One of those volumes has NFS file system so an entry in the fstab was easy enough. The other volume is a ClearCase vob on the proprietary MVSF file system. I’ve tried an fstab entry as mvfs but without success.


Using WordPress Featured Images in AngularJS

In part 8 of this series we will make a content service to replace our existing vanilla $http requests in our route resolves, and then we’ll make an additional service to go fetch the relevant media associated with a featured image. Then we’ll conditionally display the featured image below our post title if one exists.


Swiip’s Gulp Angular and Bootswatch SASS Themes

I like Swiip’s generator-gulp-angular for Yeoman. It’s pretty complete, if not a little daunting at times. It does a lot. It does a lot automagically. So when I set out to add a SASS Bootswatch theme I was a little unsure of what to expect.


Dynamic Title and Description with AngularJS and WordPress

When you serve your application that we’ve been making over the past 6 instalments, you’ll notice that the title and meta description tags are empty. We could set them to a static default, but they’d be the same on every page. This wouldn’t be terribly useful to your visitors, nor would it help when it came to SEO (search engine optimization) and how we appear on the SERP’s (search engine results page) would be less than desirable.

In part 7 of this series we will make a meta service that will set the title and meta description tags dynamically, determined by the title on content of the page that is currently being served.