In this post we are going to explore: how to simulate CPU-load hosted on an Azure web app; how you can set simple rules for automatic scaling; and how to setup alerts to get notified when your app is under pressure. Let’s start by creating a very simple ASP.NET core web api application. The default web api template in Visual Studio is more than OK….
Sometimes, it is helpful to be able to set a timer to auto shutdown your PC, after a certain amount of time. In Windows 10 you can do that through many ways, but essentially, using the same command. Command Prompt Type shutdown -s -t 300 where 300 is the amount of seconds to wait till the shutdown start (around 5 minutes) Powershell The…
A common practice to increase the performance and availability of a web application is to distribute it in multiple servers across the globe. Thus, customers will be served from the data-center that is closer to them, thus reducing response latency. In addition, when one server confronts downtime, other servers will handle the requests without the user noticing it. In this post we will explore how easy it is to setup…
In order to use .NET Core on your Mac, you first need to install the latest version of OpenSSL. The easiest way to get this is from Homebrew.
1 | ~$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
After installing brew, you need to do the following:
1 2 3 4 | ~$ brew update ~$ brew install openssl ~$ ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/ ~$ ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/ |
When trying to initialize a basic .NET project through dotnet new or restoring packages on an existing one, using dotnet restore, you might come across…
In this post we are going to use Visual Studio Team Services to automate the build and deployment task of an ASP.NET Core Web application to Azure. What is Visual Studio Team Services? Visual Studio Team Services (VSTS) provide a fast and easy way to plan, build and ship software across a variety of platforms. Whether you work in the cloud, on-premises,…
In this tutorial we are going to map a network drive on our computer to a file storage in the cloud using Azure File Storage. This can be very helpful if you want to share files among multiple computers and, bearing in mind that the storage is in the cloud, you can scale your drive as much as you need. First of all, let’s start with…
Sometimes you may need to render a certain view as string, for example when you want to send an email where usually the body is pure html. To do so, you need to create a service that takes two arguments: the first one is a string representing the path to the view you want to render; the second one is an object that is used from…
Sometimes you may want your Azure website to not be publicly available or to restrict the access to it quickly and easily, without having to perform any complex configuration or code changes. This actually can be achieved with a few clicks through Azure Websites Authentication/Authorization; a feature that allows users to quickly restrict access, using Azure Active Directory, with just a few clicks. In this post,…
RetroPie allows you to turn your Raspberry Pi into a retro-gaming machine. It builds upon Raspbian, EmulationStation, RetroArch and many other projects to enable you to play your favorite Arcade, home-console, and classic PC games with the minimum set up. Setup To set it up you need the following: Raspberry PI 3 MicroSD card HDMI cable Powerbank or 5V 2.5A micro USB…
NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers. In order to install a package, you can do it either through Nuget Package Manager UI or through Package Manager Console using:
1 | Install-Package PackageName -Project ProjectA |
In case…