Targets that should be in you ASP.Net MVC *.csproj file
As far as I know next version of ASP.Net is going to abandon MSBuild and build projects differently. Can’t wait for this to happen! But for now we are still stuck with horribleness of XML and MSBuild...
View ArticleEnabling HTTPS on sites
Sometimes I have to configure sites that are no actually in my control, I only host and administer them. But site development/update is done by somebody else. Or it could be a PHP (yuck!) hosted on...
View ArticleNot able to download files over HTTPS
Today I came across somewhat annoying bug. On one of the sites I maintain, after enabling HTTPS users could not download files anymore. The annoying part was that I could. With all the browsers. They...
View ArticleHow to export data from Excel into SQL Server
TL;DR: Go here for a code sample. This is long overdue post – I’m too busy these days with contract work and other commitments. By the nature of my work, I have to do data migrations on a regular...
View ArticleAsp.Net Identity Invalid Token for password reset or email confirmation
I’m an avid user on StackOverflow in questions about Asp.Net Identity and I attempt to answer most of the interesting questions. And the same question comes up quite often: users try to confirm their...
View ArticleShutdown Azure VM when it is not required
My current setup for one of the projects requires a VM running in Azure – a tiny build server I set up just for myself. And I only need it when I actually working on the project. And the idea is to...
View ArticlePrevent Multiple Logins in Asp.Net Identity
I have seen a fair amount of questions on Stackoverflow asking how to prevent users sharing their password. Previously with MembershipProvider framework it was not a simple task. People went into all...
View ArticleSwagger Awesomeness
This post will be a dumping ground of links, problems and solutions related to Swagger. I’ll be putting updates here as I go along I’m starting a new project and we would love trying new things. This...
View ArticleCQRS Talk
Tonight I’ve done a talk on my local Aberdeen Developers .Net User Group about CQRS architecture and I think this was a success. After 70 minutes talk (I took my time in some code samples) we had...
View ArticleExecute Large SQL Script from command line
For my own future reference, when I get a large SQL file, large enough that SSMS freaks out about lack of memory, I need to use Sqlcmd tool. And here how it is done: sqlcmd -S localhost\sqlexpress -d...
View ArticleNotes for course on SQL Server Query Plan Troubleshooting
I’m going through Pluralsight course on how to Troubleshoot Query Plan for SQL Server. I’ll just put down some notes for myself here. I’m sure these can be found online easily, but this is my notepad...
View ArticleAzure Resource Management vs Classic Management
This post is a summary of links I’ve studied about ARM. One of the things we do for our project – automatic provisioning of services in MS Azure for new clients. Couple years ago we used to do...
View ArticleCommunication could not be established. This could be due to an invalid...
Today I’ve spent quite some time figuring out why my new Azure Subscription Settings file was not picked up by Octopus Deploy. And I was getting an obscure error message: Get-AzureWebsite :...
View ArticleAzure Management Certificates expiration
Last year, before Christmas I had a jolly time in my office, cleaning up old bits of code and other stuff. One of the things I’ve “Cleaned-up” was old expired Azure Management Certificates. Then I went...
View ArticleBuild Service in Visual Studio Team Services
First time I have tried TFS Build feature a few years ago and that was on hosted TFS 2010 version. And I hated it. It all was confusing XML, to change a build template I had to create a Visual Studio...
View ArticleBook Review: The Clean Coder
Over the Christmas and New Year holidays I have finished a book by Uncle Bob Martin The Clean Coder. It was a pleasure to read this book and I have finished it rather quickly. The overall feel to the...
View ArticleMaths is Hard
Every now and then I come across a “puzzle” on Facebook that asks to solve some simple math problem. Claiming something like “only smart ones know” or “only for genius”. Last “puzzle” looked like this:...
View ArticleUsing OWIN and Active Directory to authenticate users in ASP.Net MVC 5...
A while back I had to implement a login system that relied on in-house Active Directory. I did spend some time on figuring out how to work this in the nicest possible ways. One of the approaches I used...
View ArticlePerformance Tuning of Entity Framework Requests
Most of my large projects are using Entity Framework. And Entity Framework is known to sometimes create crazy sql requests. Or rather it easily allows developers to create crazy queries. It is really...
View ArticleDeveloper Developer Developer Scotland
So, I’ve been selected to make a public appearance in DDD Scotland conference on 14th May 2016 in Edinburgh. Or rather people are interested in what I have to say about CQRS software architecture, and...
View Article
More Pages to Explore .....