Headless CMS: Break the chains

3 minutes to read read

How many times as a developer of a site, blog or CMS have you wished to have a custom frontend. There have been cases where a developer would have wished that he could create his own frontend. Also, at times many times, a lot of developers had tried to tweak the site to fit into different mobile screens. The reason is mainly because you are bound by the themes and templates that are tied to the CMS and customizing the provided templates is sometimes even more challenging then creating new ones. Well, it seems now there is a very simple answer to all such questions. Headless CMS.

What is a headless CMS?

A normal CMS system be it wordpress, Joomla or anything that you write from scratch, basically it has more or components as shown in diagram.

Aspnet Core Dependency Injection – Register Multiple Instance for an Interface

3 minutes to read read

Journey of Dependency Injection

Asp.Net Core is one of the gems (I would say) created by Microsoft that has simplified a lot of things and provides a whole lot of things by default out of the box. It based on dot net core which provides inherent capability to run cross platform but to ease out developer life several optimizations were done to enhance productivity.

One such feature is Dependency Injection. Although lately, but Microsoft did included dependency injection as a part of the core product. I have been working Asp.Net MVC since 2010 (or 2011) and started DI with Ninject which was (or is) a wonderful project. During the time I crossed paths with Unity and Autofac during different projects, but more or less the approach remain same. Create a container system, create ‘sort of’ controller factories and then register dependencies. But during all this time one thing that remain constant was additional overhead of creating this shit. So it was a moment of joy (atleast for me) when i say this in recent versions of MVC. And most importantly it is quite stable and performs well out of the box.

SQL Server Installation Error: vs shell installation has failed with exit code 1638

1 minute to read

Recently my machine got formatted. While re-installing the system, I didn’t installed Visual Studio 2019 first. I tried SQL Server management studio later and then SQL Server. The reason for this particular order was due that the fact more or less the work was targetted more on central SQL Severs and for personal purposes I basically use an instance of Azure and then later delete it.

During the installation of SQL server, i faced a wierd problem which wasted about an hour of mine as the setup runs and then it shows as components not installed. The only error thrown during the installation was “vs shell installation has failed with exit code 1638” which seems a bit weird. Some quick googling thereafter revealed that Microsoft C++ 2017 Redistributible was the problem.

Pause for sometime

1 minute to read

Due to some personal reasons and lack of time, I am thinking of not to blog for something. It has happened again, that site was lost as i dropped the db by mistake, could refer this backup, but several of posts gone (again 🙁 ).

I shall try to put if I find anything useful.

Cheers

SQL Load Testing and Performance Metrics : SLTPM

4 minutes to read read

With this tool you can load test any SQL Database hitting a given procedure, with test data from a csv. Some of the salient features are given below. When used with Query Store it can help resolve multiple SQL Performance and Bottleneck issues

  • Can hit any SQL Database.
  • Dynamic connection check before execution.
  • Ability to read test data from CSV (details below)
  • Ability to fetch store procedures from database dynamically.
  • Support MARS, and both Integrated Security and uid/pw options.
  • Provide overall metrics viz: Execution Time, Max, Min
  • Provide metrics per execution which can be logged to a file for further analysis.
  • Provide detailed logging.
  • Automatic Handling for multiple resultsets returned.

Download Link provided at the end of post. If you want to cut the long story short, watch the video ab bottom of this page.

Background

I have been looking in the the QuertStore as provided by the SQL 2016 in all features. So I fired up my SQL Azure db and cracked in code, but i could not see any data in there. First thing i tried out, was to run some queries manually, but no luck. On further analysis get to know that you need to have some significant amount of queries executed for it to give some result. For this i got the idea to build this tool.

$$$ BitCoins $$$ a basic introduction

1 minute to read 

BitCoins have been there since around 2009-2010, but, when the recent Ransomware WannaCry hit, people get to know about it and it reached a boom instantly. The prices have almost upped 3 Times in last 2-3 months, and the trend is expected to continue.

I have been compleetly off, because of some personal emergencies, and after a long time putting this video in multi video series is intended to provide users who are completely new with a basic understanding of what bitcoins are and how they work.

Also more to come in next videos is how to buy, sell, trade, create offline wallets and more. So remain connected to get more , learn more.

INFO: Please note the audio is little bad due to my mic not working and forced to use system mic.

MongoDbConfiguration provider for ASP5

1 minute to readCheckout the new MongoDbConfiguration Provider for ASP5. https://www.nuget.org/packages/MongoDb.Asp.ConfigurationProvider/ with support for blank and null keys.

Install-Package MongoDb.Asp.ConfigurationProvider

Usage: Use the single line config to load the configuration:

builder.AddMongoDbConfiguration(“mongodb://localhost”,”ConfigDatabase”,”SettingsCollection”,”SettingType”, “SettingValue”);

 

A brief blog post on implementation and open source GIT Path shall soon follow.