|
Mirrored Weblogs
-
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......
|
-
If you are a developer on a Windows machine and you want to access a Redis Server while you build your application, you have several options; one of them is to use the Redis port on Windows project by MSOpenTech, download the latest binaries and have your Redis Server running on Windows. Another option is to have a Linux VM running on your machine and connect to it whenever you need it.......
|
-
Windows 10 Anniversary update offers a new feature for developers, an Ubuntu-based Bash shell that can run Linux software directly on Windows. How to install it First of all, you need to enable the Developer Mode on Windows 10. To do so, open Settings app and head to Update & Security. Then on the left side click on For Developers option and finally, activate the Developer Mode......
|
-
In this post I will try to explain why the Repository Pattern is not redundant when we use an ORM like Entity Framework in our application. There are many blog posts and many questions/answers in places like StackOverflow where developers argue about that issue. I will not be writing code in this article but I will try to explain why Entiti Framework does not implement the Repository Pattern and what is the difference between them are. Before reading this post by all means do have a look at this post of mine where I explain the Repository Pattern in detail. Let me say a few words first about Entity Framework first. Entity Framework is an ORM. The .Net framework provides support for Object Relational Mapping through EF. So EF is a an ORM tool and it is now the main data access technology that microsoft works on. I use it quite extensively in my projects. Through EF we have many things out of the box provided for us. We have the automatic generation of SQL code. It maps relational data to strongly typed objects...
|
-
In this post I will try to define the Repository Pattern, explain what it is and how we must use it in my ow words and according to my experience as a software engineer. I will not be writing much code in this post but I will highlight the reasons why we need the Repository Pattern and what it helps us achieve. Let me start with the official definition. Martin Fowle in his book Patterns of Enterprise Application Architecture (a must for every software engineer) gives the definition of the Repository Pattern: "Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.". You can read more link in his post . In simpler words, the Repository Pattern creates an abstraction layer between the data access layer and the business logic layer of an application . Repository design pattern is a way to simplify data access and enforce separation of concerns . In every medium to large business application the Repository Pattern is necessary to bring seperation of concerns...
|
-
In Azure if you have two or more SQL Databases and you want to perform a query across them, you might come across the following error: [crayon-579cfaea2349f498907233/] In order to perform cross database queries among SQL Azure databases you need to use the elastic database query feature. What is the Elastic Database Query Feature? The elastic database query feature enables you to run a Transact-SQL query......
|
-
In our previous article we explored the option of creating, deploying and managing the Parse Server using a pre-configured VM image on Microsoft Azure. In this post we are going to describe an easy way for Parse developers to continue their work on Microsoft Azure by leveraging the following mobile services; Azure App Service and Notification Hubs. In Azure MarketPlace, when searching for Parse Server, you may come across......
|
|
|
|