How to crop/resize images in C#
I remember taking quite some time figuring out how to crop an image the first time that I had to do it. The .NET Framework contains a lot of methods and overloads that you can use to manipulate images, and finding the right one that meets your needs can prove challenging. Here, I present a simple method that you can use to do basic image cropping and resizing without any hassle.
A universal event logger
When trying to fix bugs that involve objects that fire a lot of events, sometimes the best way to get a good idea of what’s happening in your program is to log what’s going on. However, attaching a logger to all the events exposed by a class can be extremely time-consuming, making this solution something of a last resort, if not virtually impossible.
What programming language should I learn?
I recently received an email from a young developer who was having some trouble deciding which programming language to learn. I don’t think I’m alone in saying that I remember asking myself the same question when I started programming.
Commit a file with the GitHub API
Committing to a GitHub repository via the API is a pretty daunting task if you’ve never done it before. Instead of exposing a high-level
commit endpoint, the API relegates committing to a gauntlet of low-level methods which mirror what Git does internally when you run
commit. While a bit challenging to comprehend at first, as you walk through the steps you’ll see that they’re actually quite logical, and while learning to commit to the API, you’ll simultaneously be learning a bit about how Git works under the covers.