Make Selenium wait for ajax calls using AngularJS (and TypeScript)

Hallstein Brøtan

Acceptance tests for GUI are commonly regarded as painful, mainly caused by two factors: They have a long feedback loop Their stability is poor A common stability issue is dealing with asynchronous requests. Because ajax calls takes an unknown amount of time to complete, the test might do some assertion…

The shocking effect of beards, seen through the Microsoft Cognitive Services

Hans Arne Vartdal

This is a semi-scientific research project based on a cool technical solution. Clearly the best way to do research. It all started when my colleague Tom Einar showed me a simple demo of the Emotion API, a part of Microsoft Cognitive Services (previously the Oxford Project). Instantly I found the…

How many work days are there per month for a given year?

Hallstein Brøtan

True story: I got a request from our economy guy, he asked me if I knew some online service to give him the number of work days for a given month. Turned out that he was manually counting the number on his calendar (probably several times to be sure), and…

Hooking up ASP.NET Core 1.0 RC1 web api with Auth0 bearer tokens

Hans Arne Vartdal

Even though you don't see security and bleeding edge release candidates in the same sentence every day, you need to secure your API's. I have been using Auth0 as my identity provider for a recent project, and they have AMAZING documentation that include everything you need, including complete code examples…

Push notifications to mobile devices using browser APIs

Tom-Einar Sørensen

This proof of concept walks you through how to send free messages from your server to the browser on both desktop and mobile, without having to install anything on the end user device or computer. It also offers tips and tricks for some common scenarios. The motivation for doing this…