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 Metvuw.com and with a better UI. Plain, simple, no crap. Source code on Github https://github.com/wulfsolter/MetVuw https://itunes.apple.com/nz/app/metvuw/id1067710943 https://play.google.com/store/apps/details?id=com.wulfsolter.metvuw

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 https://github.com/douglascrockford/JSLint/blob/master/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: , , , , ,