March 2015 articles

Hiding the jQuery UI datepicker on form field exit

Posted: Saturday 21st March, 2015 - 8:51pm
Author: James Griffiths

If you've been implementing the jQuery UI datepicker component in your projects you may have encountered an issue with the datepicker not closing when exiting the parent field or clicking outside the widget.


Resolving node module did not self register errors

Posted: Sunday 15th March, 2015 - 8:48pm
Author: James Griffiths

If you've recently updated your existing Node installation to v0.12 and have success with starting your server then congratulations. However it might be the case that you are experiencing the following error warning when trying to launch your Express Framework application from the command line:

[Error: Module did not self-register.]

Not the best result right? Here's how we resolved the issue and got our Express apps working again.


Resolving npm ERR! cb() never called errors

Posted: Saturday 14th March, 2015 - 8:43pm
Author: James Griffiths

This was one extremely annoying error that we kept encountering when trying to update existing node packages using the Node Package Manager from the command line:

npm ERR! cb() never called!

After much googling (interrupted by intermittent bouts of swearing at the computer) we finally found a solution to the problem.


Ionic framework attempt to unlock file that has not been locked error

Posted: Saturday 14th March, 2015 - 8:40pm
Author: James Griffiths

Here's a frustrating issue we encountered when trying to update the ionic framework with the following command:

sudo npm update -g ionic

Instead of seeing a list of updated components being displayed in the console the following error occurred:

npm WARN locking Error: EACCES, open '/Users/nameHere/.npm/_locks/ionic-61c0cd50dc7a1457.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/nameHere/.npm/_locks/ionic-61c0cd50dc7a1457.lock failed { [Error: EACCES, open '/Users/nameHere/.npm/_locks/ionic-61c0cd50dc7a1457.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/nameHere/.npm/_locks/ionic-61c0cd50dc7a1457.lock' }
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "update" "-g" "ionic"
npm ERR! node v0.12.0
npm ERR! npm  v2.7.1

npm ERR! Attempt to unlock /usr/local/lib/node_modules/ionic, which hasn't been locked

Not the most welcome of sights is it? Thankfully solving this turned out to be relatively quick and easy.


Using Google Maps in Angular JS

Posted: Tuesday 10th March, 2015 - 8:27pm
Author: James Griffiths

Angular JS, once you switch from a jQuery mindset, makes building out web apps relatively quick and thanks to the growing number of available plug-ins you can be sure to find a solution to fit your development needs.

One such need might involve implementing Google Maps which is what we are going to look at through this tutorial.