24 Oct

Why you should use Azure Application Insights

Application Insights

So you’ve got this great web application. It’s being used by thousands of users. The code is written perfectly (or so you think). It’s just pure magic.

Then there’s this one page in your application. You know, that one you’ve written on a Sunday morning, hungover from last night’s party. That page is working at the same speed you were probably coding that morning and throws up more errors than… well you get the picture. How’re you going to monitor this in production and catch those exception?
Here comes Azure Application Insights! In this post I will tell you about some of my favorite Application Insights features and by doing so I’ll try to convince you to start using it too.

Read More

15 May

Use jQuery in Angular/Typescript without a type definition


Together with Angular, Typescript is fast gaining popularity although it already exists since 2012.

Typescript is not your common JavaScript, but it gets compiled to JavaScript. Nevertheless it’s not always that simple to just copy some JavaScript code into your Typescript and make it work. To do this, you’ll sometimes need TypeScript type definitions which can be downloaded from various sources. Or you can simply use the InjectionToken from the Angular/Core package.
In this post, I’ll show you how to use it with jQuery.

Read More

28 Feb

Download files from an FTP directory in .NET

FTP is already a very old technology. The original specification for the File Transfer Protocol was written by Abhay Bhushan and published as RFC 114 on 16 April 1971, which makes it over 45 years old!
Unfortunately when you come in contact with some older software FTP is quite often used as an easy way to store files on the web. Nowadays you’re far better of using Microsoft Azure Blob Storage.
But if you’re feeling nostalgic or if you ever feel the need to download some files from an FTP, this piece of code might help you out.

Read More