Running microservices under HTTPS locally and in development environment with several domain names requires to have self-signed multi-domain SSL certificate. Also, starting from Google Chrome v58 SSL certificates are required to have SAN specified to avoid any SSL warnings. Luckily, there is a PowerShell script to make it quick and easy.
Continue reading Create self-signed multi-domain SSL certificateC# enum in Knockout component
I needed to use the same C# enum in Knockout component view model to keep them both consistent. Also, this means less code duplication and no hardcoded values. The Knockout’s view model was in a component, therefore I decided to pass enum as a parameter from Razor view.
Continue reading C# enum in Knockout componentVisual Studio 2017 StyleCop Analyzers template for .NET Core
With the new Visual Studio 2017 out you might have been busy upgrading your .NET Core solutions to the new format and accidentally found out that StyleCop Analyzers stopped working? Automated upgrade will just upgrade projects, however will not adjust Visual Studio 2017 StyleCop Analyzers settings. Therefore, I’ve updated my template’s source code and added this quick guide.
Continue reading Visual Studio 2017 StyleCop Analyzers template for .NET CoreCmder Windows Console Emulator
Sometimes I would miss flexibly of command prompt of unix-like systems, and how easy you can copy&paste text, maximize the window, use `ls` command, and have multiple tabs of course! And accidentally, I came across Cmder.
Continue reading Cmder Windows Console Emulator405 method not allowed in IIS
Recently I cam across an issue when making HTTP DELETE or PUT requests to API would result in “405 method not allowed” error. After a quick research it turned out to be WebDAV component’s doing in IIS. Let’s re-create this issue locally, and learn how to solve it.
Continue reading 405 method not allowed in IISMigrate away from Facebook app to Disqus comments
I was helping one old university project and as part of user experience and SEO tweaks we decided to move away from Facebook app comments to Disqus comments. The main reason was problems with comments/replies not appearing on the website, and on top of this we wanted to boost SEO having comments that could be indexed by search engines.

SQL database and tables sizes
Sometimes you need to find database or tables sizes to find out what is taking the most disk space in a Microsoft SQL database server. Following two queries can be very handy in such case. Result looks following.

Clean and shrink SQL database
Sometimes you need to clean and shrink SQL database, since once database grows even if all records get deleted, the database file would still take the space as before clean up. To achieve this we can manually delete records and call SHRINKFILE command. However, it’s important to delete records in small batches in transaction not to clog up the database server.
Continue reading Clean and shrink SQL databaseSQL RefreshViews
RefreshViews is simple stored procedure to refresh all database views in a Microsoft SQL database server. This is especially useful when working with legacy systems that have select * from some_view like queries in views, and needs updating after adding/removing columns.
Continue reading SQL RefreshViewsSQL Quick Row Count
SQL quick row count script gets row counts for all tables in a database in Microsoft SQL database servers. Result looks following.
