Blog Archives

Emailing a JavaScript Error

I wanted to get an email whenever my SailsJS (based on ExpressJS) app crashed. My logging stack consists of winston with a custom transport which emails me via AmazonSES. Instead of getting a nice stack trace, all I got was emails with {}

Posted in email, javascript, nodejs, servers, wherewolf Tagged with: , , , , , , ,

Explorations in Angular2 and Ionic2

I wrote an app. It does and with a better UI. Plain, simple, no crap. Source code on Github

Posted in javascript Tagged with: , ,

Cannot assign to read only property ‘value’ of (begin)

Espresso Server on NodeJS exits with error: Cannot assign to read only property ‘value’ of (begin) Possible contributing factor is upgrading Node from 0.10.x to 0.12.x Solution: Update jslint.js I was running a very old version (2011-06-07)

Posted in javascript, nodejs Tagged with: , , , ,

Javascript – Pretty Array to Human Readable String

To take a JS array like [“item1”, “item2”, “item3″….] into a nice human readable string of “item1, item2 & item3” with all the first items getting comma separated and the final one with an ampersand use: resultString = array.length >

Posted in javascript, servers Tagged with: , , , , ,