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: , ,

ReWrite all pages apart from /admin/ ones

Using Apache’s .htaccess you can rewrite many things… SetEnv HTTP_MOD_REWRITE On RewriteEngine On RewriteBase ‘/’ RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]

Posted in Uncategorized

Amazon RDS – MySQL – Creating new user Error #1045

On Amazon RDS MySQL creating a new database user with all priviledges results in an error of #1045 – Access denied for user ‘mastername’@’%’ (using password: YES) Using: GRANT ALL PRIVILEGES ON *.* TO ‘testuser’@’localhost’ REQUIRE NONE WITH GRANT OPTION

Posted in Database, servers Tagged with: , , , , , ,

QCC Website – Queenstown Climbing Club

YAY! We’ve launched the new site for the Queenstown Climbing Club ( QCC ). Many thanks to Eddie Gapper ( President of QCC ) and the many many hands that have helped out with photos and content. Time to rock!

Posted in Uncategorized

Apache 500 error with NodeJS mod_proxy

An Apache reverse proxy setup with working NodeJS server (confirmed by locally cURL’ing, eg ‘curl localhost:8000’) is returning a 500 Internal Server Error, and nothing in any error logs to be found. Apache’s VHost looks to be working with correct

Posted in Uncategorized

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: , , , ,

MySQL Latin1 to UTF8 conversion

Many people think it’s as simple as doing a mysqldump->sed->mysql command (or clicking Change->Collation in PhpMyAdmin) but that only changes the encoding for NEW data, while leaving the old data intact and possibly coming out dirty. Luckily there is a

Posted in bash, Database, linux, servers Tagged with: , , , , , , , , , ,

Adventure Tourism Awards

We Won! In the category of “Best Innovation” Wherewolf beat many capable contenders to win a nice heavy glass trophy.

Posted in wherewolf

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: , , , , ,

I watched you pop up online just now…

I watched you pop up online just now, but I don’t even know what to say to you anymore. That crazy smiling blonde hippy chick I met on the rooftop one morning, where in the world is she now? What

Posted in Uncategorized

Herding The Cats

Herding The Cats   Herding The Cats is what we call it. It’s gone by many many names over the years, from “Left Brain vs Right Brain” to “Talkers vs Doers” to “Creatives vs Logicals” and a myriad of other

Posted in business Tagged with: , , ,

5 crucial tips for effective Facebook marketing

5 crucial tips for effective Facebook marketing   It seems that every few days there is yet another “Facebook Strategies” article or discussion, You could be flipping through a trade magazine, skimming the weekend newspapers or attending a local business

Posted in social media Tagged with: , , , , ,

Collective Noun for Hipster

What is the collective noun for a group of hipsters? When there is more than one, what do you call them? First thought is that they usually roll solo, as to avoid these particular conundrums…. A few ideas: apathy of

Posted in hipsters Tagged with: , , , , , ,

I love a good maori party….

This morning I noticed the domain maoriparty.co.nz had expired. Well if nobody from The Māori Party, a political party in New Zealand formed on 7 July 2004, was going to buy it…. then I might just have to have myself

Posted in Uncategorized Tagged with: , , , , , , , , , , , , , ,

Photoshop Resize while maintaining aspect ratio

Photoshop’s inbuilt batch manipulation tools leave a lot to be desired, especially when dealing with a large quantity of images that are both portrait and landscape. This script recursively goes through folders, finds images, opens, trims background, resizes to 1100×1100

Posted in Uncategorized

Jedisus Sabes and other Photochops

Posted in Uncategorized

Wherewolf website launch

We’ve finally pushed our website live! http://wherewolf.co.nz/ With a lot of tourism industry leading clients profiled and a nice HTML5 embedded video showing what we’re up to, it’s about time too…..

Posted in wherewolf Tagged with: , , ,

Instant Nagios Starter by Michael Guthrie

With a growing number of servers at Wherewolf I needed to find a monitoring solution that was usable not just by the hard-core neckbeards, but by the junior devs as well. In the months since my last mid-sized server monitoring setup,

Posted in Uncategorized Tagged with: , , ,