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

02 Feb

Simple .NET chat application with Azure Service Bus Topics and SignalR

Azure Service Bus
The heyday of chat rooms are long past us, but nowadays almost every popular application has some sort of chat functionality implemented. Some even make a separate application just to improve and create new features.
So if you ever felt like creating your own chat functionality for your website or application, Azure Service Bus Topics is your man.

Read More