Custom events in a Flutter widget: how to pass function parameters in Dart

When creating Widgets we often need to allow the execution of custom code when our widget changes state, for example when a user taps on the Widget. In order to allow this behaviour we can define custom events on our widget so that developers can run their own code when these events are triggered.…

Read this article

Preload images in a stateful widget on Flutter

When we need to use images in Flutter we can load them into an Image widget. If you're rotating through a list of images and we want to obtain a a smooth, real-time transition between images, we need to preload them so that they will be readily available when you need them.…

Read this article

Serializing an object to Json using C#

Very often when coding we need to output the current state of an object to show it or store it for later retrieval. This article will teach you how to convert any object to a JSON string using one of the most common dependencies on Nuget.org: Newtonsoft's Json.NET…

Read this article

Masking an image using C#

Masking an image using C#

Here is a C# class that allows you to apply a mask to an existing image.…

Read this article

G-Zip compression using C#

G-Zip Compression and decompression using C# and the .Net framework. This article will teach you how to compress and decompress data in the G-Zip format.…

Read this article

Convert a color image to grayscale with C#

This article will teach you how to convert a color image to grayscale using C# and the .NET framework. For an in-depth explanation of grayscale conversion please visit the wikipedia page: https://en.wikipedia.org/wiki/Grayscale…

Read this article

Resize and crop an image keeping its aspect ratio with C#

When we have to resize an image to exact new dimensions while keeping it's aspect ratio (thus avoiding distortion of the image) with C# we can take advantage of the Graphics class. The Graphics class exposes method DrawImage which allows us to resize an existing source image and draw it onto the image referenced by the Graphics instance.…

Read this article

IIS: How to setup a web site

This article will help you set up of a web site on a Windows server. We will accomplish this by performing these operations: create a folder to storethe website files, add the website to IIS, bind the website to one or more domains.…

Read this article

IIS: How to setup an FTP account to access a generic folder on a Windows server

This article will walk you through the creations of an FTP account on a Windows server. We will accomplish this by performing these operations: create an FTP user on Windows, add an FTP site on IIS that points to a physical folder on the server, link the FTP site to the FTP user.…

Read this article

IIS: How to set folder rights for a web application

In order to allow an IIS website to read/write to a given folder, you need to configure access rights to the folder for the website's application pool (the one you set in IIS).The process is the same…

Read this article