Parameter count mismatch between X-Forwarded-For and X-Forwarded-Proto
These are my fieldnotes from experimenting with the ForwardedHeaders middleware on ASP.NET Core 1.1 and 2.0 - sparked by having a production log full of Parameter count mismatch between X-Forwarded-For and X-Forwarded-Proto warnings. > I've set up a github
End-to-end with Selenium: Writing your first UI-test
This is a basic example of how to write your first automated UI-test using C#, Visual Studio 2017 and the NUnit Framework (xUnit can also be used). The purpose of this blog post is to give you a clean and easy example to get
End-to-end with Selenium: Why you should UI-test
You want to be productive when building web applications. That means iterating fast and delivering continuously. As your application grows in complexity, how can you assure its quality - on each build? Say goodbye to manual regression testing and full mocked unit tests -
Easier React Native upgrade with patch-package
Anyone who has worked with React Native (RN) for some time know that the core contributors are not afraid of introducing breaking changes. So upgrading from one version to the next can sometimes be difficult. It became a lot easier when they introduced react-native-git-upgrade
Easy TypeScript with React Native
> Just here for the code sample? Check it out here [https://github.com/cbrevik/react-native-typescript-starter]. Trying to combine TypeScript [https://github.com/Microsoft/TypeScript] (TS) with React Native [https://github.com/facebook/react-native] (RN) has historically been kind of difficult. It has been
Novanet Christmas calendar 2016 (Open sourced)
Christmas is closing in, and during this last month of the year we've been running a company Christmas calendar quiz. The calendar has been a success internally, but also attracted attention from customers and colleagues from other consultant firms (who wants to
Three non-coding tips for Visual Studio Code
I find myself spending more and more time in Visual Studio Code. It's a light-weight, extensible and fast editor, and it can be used for just about anything. Having explored some options lately, here's a writeup of three non-coding use
Rewrite rules in ASP.NET core middleware
If you, like me, came from the ASP.NET MVC world when you started with SPAs and Angular, you have probably at some point created a "one controller, one view MCV application", hosting the starting point of your Angular application. We could
You should check out Yarn
Not too long ago, Facebook announced Yarn [https://github.com/yarnpkg/yarn], a new package manager for JavaScript. Yarn has been developed as an alternative to npm, addressing some shortcomings the latter tool has. I know what you're thinking, "Yet another
Make Selenium wait for ajax calls using AngularJS (and TypeScript)
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 shocking effect of beards, seen through the Microsoft Cognitive Services
> 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 [http://novanet.no/menneskene/tomeinar] showed me a simple demo of the Emotion API, a part
How many work days are there per month for a given year?
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
Hooking up ASP.NET Core 1.0 RC1 web api with Auth0 bearer tokens
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
Push notifications to mobile devices using browser APIs
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
Hot loading React Components in TypeScript
Hot loading of React Redux components makes for a absolutly fantastic developer experience. The ability to get immediately feedback in the browser when any part of my javascript application is changed and saved is priceless. It is simply awesome! I have been using Angular
Debugging WebSocket communication made easy
As we all know, any cool web application have some sort of WebSocket communication, either it is based on signalR, socket.io, or some other extremely cool technology. Developing these solutions make developers feel like wizards, as perfectly demonstrated in this clip from The
Improve rendering performance with CSS3 enabled hardware acceleration
Web apps are more often than before used on mobile devices, and thus their performance compared to native apps. Some believe that web apps, or hybrid apps, never can have as fast and fluid graphical interfaces as native apps. Luckily there are some nifty
Code on the beach 2015 - Review
This summer, Hans Arne [http://novanet.no/menneskene/hans-arne-vartdal] and Hallstein [http://novanet.no/menneskene/hallstein-brotan] attended the Code on the beach [https://www.codeonthebeach.com/] conference in Atlantic Beach, Florida. This is our thoughts about the Code on the beach experience, the conference