Fast image resizing using WPF rendering support article image

Sharing is caring I was cleaning up among old projects today and stumble on some image manipulation stuffs. This was used in a web application to scale images in real-time on the server, storing them on disk and serve them to the web browser by calling a url. Instead of using the Windows GDI+, the […]

NoSQL databases gives an interesting point of view in modern application design. There are different kinds of them and one common characteristic is that they are optimized for fast data access. For masterdata a normal choice would be a relations database, but will in some cases not perform well especially when it comes to data […]

Securing Media In Umbraco article image

This is about securing files in the media section in Umbraco CMS (v7.5.x). There are more than one approach to accomplish this. In this article we will take advantage of the URL routing in ASP.NET MVC to route media to a custom controller. In short we will: Create a member group and a member that […]

Here follows a code snippet that will verify if an url exists. It creates a web request using HEAD and tries to get its response. HEAD as request method will boost performance of the request, since no content is downloaded. In some cases the remote server exists but doesn´t allow HEAD as request method and […]

I was recently having some issues with a webjob in Azure. It was calling a Web API 2 endpoint (also running on Azure). But the process took to long and server shuts down the connection before it finished. Well it actually didn’t take that much time; approximately 4 minutes. After some digging it seemed that Azure […]

Here´s a little sunday PoC I wanted to share with you: remote control a presentation using HTML5 web sockets. Ingredients: Swipe JavaScript touch slider. Microsoft.WebSockets NuGet package. Even if it´s not actively developed and only works with Windows 8 or higher. Some lines of vanilla JavaScript and C# 😉 Client-side The client (index.html) is just some […]

Ever had problem with JSON data sometimes array and sometimes object that will cause the deserialization process to fail? Anyway, if you´re to encounter this “phenomenon” it is possible to handle building a custom JsonConverter that inherits the abstract Newtonsoft.Json.JsonConverter class. Usage: And:

Here’s a little code snippet that will handle caching of objects using http runtime cache. If object exists in cache it will be returned. If not it will be reloaded using the supplied method, inserted into cache and returned back. Usage:

Pdfcrowd is a HTML to PDF creation sevice wich lets you create PDF from web pages and raw HTML code. You can also convert HTML to PDF online. They also provide a free save to PDF service – a strightforward way to save your web pages to PDF. What you need to do is place […]

Custom made windows applications has become something I´ve been using more often in web projects to test functionality, migrate data or just extract information from a specific environment. It has helped to speed up the development, structure the project and make some parts easier to built. So here´s a tip to query the AD hierarchy […]