Hello and welcome 😀, In a previous post we discussed how to create a zip file on demand on the server so that it can be served via Web API. The code for the previous post and this one for can be found in my github repository. So today we're going to look at how … Continue reading Download file via ajax
utilities
Creating zips server side per request
Hello and welcome 😀, Today's post will focus on a situation I encountered recently, and that is How to create a zip archive on demand to be served via an API endpoint. In a following post, we will see how to receive a file from an AJAX call since there's some trickery involved there as … Continue reading Creating zips server side per request
Application triggers for Asp.Net Core 2.1 entity framework core
Hello and welcome 🙂 Today I wanted to talk about extending your application and your DbContext to run arbitrary code when a save occurs. The backstory While working with quite a few applications that work with databases especially using entity framework, I noticed the pattern of saving changes to the database and then do something … Continue reading Application triggers for Asp.Net Core 2.1 entity framework core
Compression and decompression snippets
Hello and Welcome 🙂 Today I want to look at a few extension methods to help with compressing either string or just byte arrays (which could be files, images, objects, basically, everything can be represented as a byte array). The backstory The need for this came when I was participating in a hackathon (in which … Continue reading Compression and decompression snippets
Enhancing Asp.Net Core logging pipeline with Serilog
Enhancing Asp.Net Core logging pipeline with Serilog Hello and welcome :), Today I want to show how we can switch out the default logging pipeline in favor of Serilog which has a lot more providers implemented by the community and also provides a way to log structured data. The backstory For those of you who … Continue reading Enhancing Asp.Net Core logging pipeline with Serilog
Treating code as data: NDepend
Hello and welcome:), A few weeks back a friend of mine recommended a tool and he described it as such Treating code as data, you can query information about your code and keep track of changes. What he said was an understatement. I tried said tool and I found out that it can become invaluable … Continue reading Treating code as data: NDepend
Introducing the clipper
Hello and welcome :), This will be a short example related to a previous post about Closures. I just found an excellent use of closures while working with a matrix structure. The back story for this is the fact that a lot of times when traversing matrixes every which way (finding neighbors to cells, doing … Continue reading Introducing the clipper
Generating Breakpoints
Hello and welcome :), So I received a WPF project I never touched before, so my first instinct after looking around is to run the application and see what it actually does. After that, the next logical step for me is to put a bunch of breakpoints to make sure I covered most scenarios. For … Continue reading Generating Breakpoints
Performance with IDisposable, outside the box
Hello and welcome, Today I wanted to share with you a technique I used in the past, though by all means not an impressive feat. But first a little story about IDisposable and why I chose this approach. The IDisposable interface is mainly used as a way for the Gargabe Collection to release unmanaged resources, … Continue reading Performance with IDisposable, outside the box
Logging Aspect what it is & where it is going
Hello, Intro Some might know of a library I did a few months ago about using PostSharp and designing a logging implementation following the Aspect Oriented Programming programming paradigm. For those who did now know about it, you can find the repository here. The project also came along with a few NuGet packages, but in … Continue reading Logging Aspect what it is & where it is going