|
-
Azure App Service can be integrated with a plethora of services like BitBucket, GitHub, Dropbox, OneDrive, Visual Studio Team Services, local or any external git repository, while it enables a continuous deployment workflow, where Azure pulls in the most recent updates from a project published to one of these services. One of the most common options is to configure continuous deployment...
|
-
Microsoft Azure platform is evolving at a very fast pace and keeping up with all the changes may be challenging. Many products and services are released every week, while new ones are announced as being in public preview or under development. For that reason, Microsoft has built the Microsoft Cloud Platform Roadmap, which provides a snapshot of what Microsoft is working on in its Cloud Platform business....
|
-
Azure App Service Editor, formerly known as Visual Studio Online (Monaco), is a web-based editor for App Service, that looks a lot like VS Code and allows you to modify files already deployed to Azure Web Apps. App Service Editor is based on monaco-editor, an open-source project which is generated straight from VS Code’s sources, with some shims to make it work...
|
-
Wouldn’t it be great if you could have a function which generates resized images from every new image that gets uploaded in your Azure blob storage, without having to create a new app and manage the infrastructure to run it? Welcome to the era of Serverless Computing where, through a few lines of code, you can have this function up and running in a few minutes. To...
|
-
If you have multiple files having an extension like jpeg and you want to batch rename them to jpg as extension you can do that with a single line of code: [crayon-585288c33f2cb046844413/] In my case I wanted to batch rename all my template files from .jade to .pug, as there was an issue with trademarks, so the command would change to: [crayon-585288c33f2dc867062097/]
|
-
It might come time where you need to alter your database to use a different collation. You can do this using the following snippet: [crayon-58480392872f2119297576/] When you execute the above snippet you may come to the following error: This error occurs when your database in Multi-User mode where users are accessing the database or there are objects referring to your database. To overcome this error,...
|
-
To get a rough view of how many rows, total, used and unused space each table has, in a sql server database you can run the following query: [crayon-583450f43d6a5734372322/] Another way is using the stored procedure sp_spaceused which displays the number of rows, disk space reserved, and disk space used by a table, indexed view, or Service Broker queue in...
|
-
It’s a common thing for websites to serve some kind of static content, like images, sounds, fonts or videos. When deploying a new website, the most common way to serve the aforementioned content is to include these files in the app structure and allow the web server to serve the static content. In Azure, there are additional ways to serve static content, either through Azure Blob...
|
-
Sometimes, the response from a request is required first in order to continue with all the other API requests currently stored in your Postman folders. Think of a request that, in order to return results, it requires from you to be authenticated, so a typical workflow would be: authenticate yourself with a proper username and password; get an authentication token; update...
|
-
In Entity Framework code-first, if you have a domain model like the following: [crayon-582b152280188265428148/] and want to create an index for a string property, when you execute update-adtabase for your migration, you may end up with the following error: This usually happens when you use VARCHAR(max) which is the default column type when creating a string property in EF. To make...
|
-
A couple of days ago Facebook released Yarn, a new package manager for Javascript, with a focus on speed and consistent package dependency management across machines. With Yarn, engineers still have access to the npm registry, so I thought it worth the try to test the claimed speed improvements between package installation using yarn and npm default installation process. For my tests I used ng-lightning, a project for...
|
-
In this post we are going to explore what we need in order to setup a local environment for our Azure Functions implementation, and how we can easily update our Azure Functions App through GitHub, using continuous integrations. Let’s start with some details about Azure Functions. What is Azure Functions? Azure Functions is a serverless event-driven experience that extends the existing Azure App Service platform; serverless...
|
-
In this post we are going to explore a feature provided by Azure App Service called “Testing in production” that allows you to direct a portion of live user traffic to one or more deployment slots of your web app before swapping this deployment slot to production. You can, thus, analyze your app, check for exceptions or errors, and make certain everything works properly, before your app...
|
-
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...
|
-
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. [crayon-57e30d81d272b875924404/] After installing brew, you need to do the following: [crayon-57e30d81d2738354396844/] 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...
|
-
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: [crayon-57a8afebcd7a1304461554/] In case...
|
|
|
|