|
Πρόσφατες Δημοσιεύσεις
-
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......
|
-
Session is a simple and nice way to store info in memory and has been used in ASP.NET for a long time. Since MVC came out, there were many people out there saying that session should be abandoned and replaced by other methods while others said that there is no problem using session the way we used to. As this may confuse developers that are not highly experienced in MVC, let's see what actually happens here. Before MVC Web Forms have been the basic model for a developer who has been working on ASP.NET, for a long time. Web Forms was the result of Microsoft's efforts to create a web application based on windows standards. By default, web is stateless. If I send a request, this is supposed to be a request of its own, no matter what the history between me and the web server has been. To use a RESTful model, info should be sent using GET, POST requests, cookies etc. However, this model did not resemble windows applications. In order to avoid this, developers started using state management tools, like session...
|
-
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......
|
-
While running SQL Server in Azure Virtual Machines, it is recommended that you continue using Read more...
|
-
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 I am going to make the case why returning IQueryable from a Repository Pattern is an anti-pattern and why you should not do it. I assume that you have some experience on building applications using the Layered Architecture and are familiar with various design patterns like Unit of Work and Repository pattern. You can have a look at this post if you want to find out more about the Repository Pattern. In this post I am talking the Repository pattern and Entity Framework and explain why we still need to use the Repository Pattern even if we use EF in our persistence layer. One thing we should keep in mind is that at some point our methods in the Persistence layer should return something that can be consumed by the client classes in upper layers. Clean code architecture dictates that we should program against clean interfaces and the various layers that exist in our application should communicate with each other trough interfaces so there is separation of concerns and the one layer is decoupled from the...
|
-
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......
|
-
Back in the olden days, when the just go kart tracks inside the neighborhood had been located on the end household fun centers, mishaps were few and far between. However with the actual specialised go kart songs and the upper speeds we come across at this time it is wise to focus on and to follow a few easy safety precautions. With the lower rates of speed of yesteryear it was simple to drive safely, however situations have changed. Nowadays it is essential to pay attention to what can occur on the monitor and be ready for it. However with a little bit of preparation go karting could be a thrilling experience. Racing requires all types, from ATVs in order to scooters, from motorcycles to be able to mopeds, but go petite voiture are the only type which will provide you with the joys of Elements One racing with out like a lot of the danger. It’s stressful dropping management of a proceed kart when it is traveling in a top velocity of five mph, nevertheless it’s a common thing at 60 mph. It is the drivers who’ve...
|
-
sparkol videoscribe portable Not like JPEGs, GIFs, and BMP images, vector graphics are not necessarily made up of a grid of pixels. Instead, vector graphics are comprised of methods, which are defined by a start and end point, along with other points, curves, and angles along the way. A path can be a line, a square, a triangle, or a curvy shape. These paths can be used to create simple drawings or intricate diagrams. Paths are even used to define the characters of specific typefaces. Since vector-based graphics are not made up of a specific number of dots, they can be scaled to a larger size and not lose any image quality. If you blow up some raster graphic, it will look blocky, or "pixelated. " When you blow up a vector graphic, the edges of each object within the graphic stay light and clean. This makes vector graphics ideal for logos, which can be small enough to appear on a organization card, but can also be scaled to fill a billboard. Common types of vector graphics include Adobe Illustrator, Macromedia Freehand,...
|
-
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......
|
-
In the new Microsoft Azure Portal, you might have noticed that, next to some of your resources, appears the text “(Classic)”, for example Storage Accounts and Storage Accounts (classic). This happens in order to separate resources that have been deployed with the Classic deployment model from the ones that have been deployed with the Azure Resource Manager. Some Background Azure originally provided only......
|
|
|
|