|
Πρόσφατες Δημοσιεύσεις
-
On Windows 10 while trying to start or connect to a VM, on Hyper-V, you might come to the following error: As you are sure that Intel-VTx and DEP is enabled in the BIOS and you verify it through Task Manager you still don’t know what’s the problem. As it turns out to fix the issue you need to run the......
|
-
C# 7.0 adds a number of new features and brings the focus on data consumption, code simplification and performance. Perhaps the most interesting feature is tuples, a finite ordered list of values, of possibly different types, which is used to bundle related values together without having to create a specific type to hold them. Tuples are very good for performance reasons, as you don’t......
|
-
Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy and manage scalable and reliable microservices. Service Fabric also addresses the significant challenges in developing and managing cloud applications. In this post, we will explore how to host an ASP.NET Core web application, alongside a stateless and a stateful service on an Azure Service Fabric cluster,......
|
-
Build 2017 is over. A three-day conference, where a lot of great stuff was announced. Apart from the keynotes of every day, there are many technical sessions to watch and learn from. The whole list of sessions is available at Channel 9. Here you may find my picks from the categories I am interested in. Azure Related Visual Studio &......
|
-
Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices. It enables you to build and manage scalable and reliable applications, composed of microservices that run at a very high density on a shared pool of machines, which is referred to as a cluster. In addition, it provides a......
|
-
I was just checking some log file saved from Buildbox and seems Qt framework was logging the error: libpng warning: iCCP: known incorrect sRGB profile Did some quick research on Google (sorry dear Bing) and added the following background info to the respective question on StackOverflow: http://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile/ Some changes in libpng version 1.6+ cause it […]...
|
-
When starting playing with Service Fabric in Visual Studio, you may come to the following error when trying to debug your application: [crayon-58d4fc5335609826171657/] The error although may look tricky, is very easy to fix and happens when you have created a Service Fabric application and accidentally Set as Startup Project the Fabric Service, as showing in the following picture: So, Set as Startup Project the Service Fabric......
|
-
A great tool, when starting learning Elixir, is Elixir’s Interactive Shell (IEx), which allows you to type any Elixir expression and get its result. To start using IEx, open a terminal of your choice and type iex (or iex.bat if you are on Windows), which stands for Interactive Elixir. By default, colors are not enabled and iex looks like what you see below: It turns out......
|
-
One thing you should always keep in mind is backing up your precious work. Bad things may happen sooner or later, so better be prepared for the “unexpected”, than sorry. In a recent talk with a friend, I found out that he wasn’t aware of how easy it is to backup a web app hosted in Azure App Service; so why not write a......
|
-
In this post I will be looking into EF 6.0 using the Code First Workflow and its support for stored procedures and more particularly how to display data using a stored procedure. I have posted something similar in this post https://weblogs.asp.net/dotnetstories/using-stored-procedures-in-an-asp-net-mvc-5-0-application-using-entity-framework-6-0 but this post described in detail how to insert, update and delete data in an ASP.Net MVC 6.0 application using stored procedures but not how to display data using a stored procedure. I will be building a simple ASP.Net MVC 5.0 application that will be the client application that will consume the Entity Framework data access layer. I will be using Visual Studio 2015,C# 5.0 and LocalDb in this demo. I will be leveraging the scaffolding functionality as much as possible. I will also show you how to log queries sent to the database by Entity Framework 6.0. With EF 6.0 we do have a mechanism to trace/profile everything EF sents to the data store. We will create the ASP.NET...
|
-
Visual Studio 2017 is now available to download, and one interesting feature thereof is connected services, which enable connections between your app and any service on-premises or in the cloud. In this post we are going to demonstrate how easy it is to connect your asp.net core web app to Application Insights. “Connected Services” is the new “Add Connected Service” or “Add Service Reference” feature......
|
-
This is my answer at: http://stackoverflow.com/questions/32936544/delphi-10-seattle-trial-fails-to-compile-anything-gives-an-msbuild-error for the issue of Delphi showing on build the error MSBuildToolsPath is not specified for the ToolsVersion "12.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0", or the value specified evaluated to the empty string note that in my case it was also showing underlined unit names in the code editor at uses clause […]...
|
-
To keep things tidy, in case you have multiple subscriptions associated with your Azure account, it’s a good practice to name them in a way that makes sense to you. For example, if you have an msdn subscription, the default name in Azure Portal is “Visual Studio Enterprise“, or if you have applied for a Visual Studio Dev Essentials program, the default name is “Developer Program......
|
-
Azure App service provides an easy way to track your web app’s availability / health and to get details on when and why your app wasn’t available. This kind of info is available through the web app’s blade, when selecting Diagnose and solve problems A new page appears with details on: app’s availability; requests per 5 minutes; and when and why your app......
|
-
There are times when you might want to move an app from one App Service plan to another. This can be done easily through Azure Portal, provided that the app service plans comply with the restrictions below, namely that they are: in the same resource group, and in the same geographical region. Let’s assume that you have a web app called web-app-demo-1 and three different......
|
-
IEx is Elixir’s interactive shell, where you can type any Elixir expressions and get its result. One issue you might come across when trying to use iex in Powershell, through a command e.g. iex -S mix, you might get the following error: [crayon-589dd336d7efc799259712/] The problem is that iex is an alias in Powershell, for Invoke-Expression [crayon-589dd336d7f0c258832537/] Solution To overcome this problem you simply use iex.bat......
|
-
Some really easy ways to improve performance in your asp.net core web application are: response caching, which adds cache-related headers to responses, to reduce the number of requests a client makes to your web server; compressing response using gzip to reduce its size. You may start with the default asp.net core web application, apply the above steps and check the result. Setup......
|
-
Application Insights is an extensible Application Performance Management (APM) service for web developers. It provides rich performance monitoring, powerful alerting, and easy-to-consume dashboards to help ensure your applications are available and performing as you expect. One of the powerful characteristics of Application Insights is that it provides an extensible API where you can customize the behavior of the standard telemetry modules the way......
|
-
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......
|
-
In this post I am going to discuss Dependency Injection pattern, explain why we need it and how to use it in our modern web applications based on ASP.Net MVC paradigm. DI ( Dependency Injection ) is not a difficult concept to grasp but a lot of developers do not understand it or even worse they use it wrongly. We use DI to decouple layers in our application. I assume that you use Layered Architecture principles and patterns when architecting your application. Usually we want to decouple the Domain's Layer dependency on the Persistence Layer. Have a look at the picture below. It is obvious why we would like something like that. At the moment I utilise Entity Framework and SQL Server in my application but later on a new specification comes in which dictates that we should switch NHibernate and Oracle. So at the end of the day as Solution Architects we need to decouple those two layers. To utilise DI, or better if we intend to use DI in our project we need first to add a layer of abstraction between those two layers....
|
-
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,......
|
|
|
|