New Know How

To begin customizing your site go to Appearance -> Customizer and select Theme Options. Here's you'll find custom options to help build your site.

Read More

Step 2 - Setup Slider

To add a slider go to Theme Options -> Homepage and choose page slider. The slider will use the page title, excerpt and featured image for the slides.

Read More

Step 3 - Create Homepage

To add featured content go to Theme Options -> Homepage (Featured) and turn the switch on then add the content you want for each section.

Read More

Fabric JS Zoom

This article will guide you through the implementation of zoom functionality using fabric.js library. Install Fabric JS lib 🤦‍♂️ Add post install script in your package.json file’s scripts: run ‘yarn’ in command line. It will build fabric.js with gesture support. Now the code. You always into to know your contents height and weight that you

Read More

Azure SQL drop all tables

If you want to drop all tables, then you can use following query: You face an issue with ‘sp_msforeachtable’. So, you can create a procedure using following SQL command and try running the command above. The above script have some old syntax. But it was working at the time of writing this blog. May be,

Read More

Host your website/service at home

I know text is not easy to understand for less tech savvy people. So, I am in process of making a YouTube channel for video demonstration of tutorials. What you would need (Requirements): The flow of traffic would be (architecture) Your spare computer configuration: Edit Apache server v-host configuration. The location would be something like

Read More

Azure AD Token Authentication Web API

Authentication example: Where AzureAdOptions contains the configuration of your Azure AD. MyJwtEventsHandler is the implementation of JwtEventsHandler. e.g. Register authentication: MyAuthorizationMiddlewareResultHandler is the middleware behaviour overrider. Check Microsoft docs for more details. Use on your controller: Cheers and Peace out!!!

Design time services .Net

Sometimes we need to override the process of model creation in the DB first approach. Maybe we want to create a base class for some common functionality of all the models. So, what we could do is, use the Design Time Services: Design-time services – EF Core | Microsoft Learn. We could use ‘Custom Reverse

Read More

.Net 8 IExceptionHandler

Before this we used to use a filter (GlobalExceptionFilter) to handle exceptions at one place. .Net 8 has a new IExceptionFilter middleware which can be used to filter the exceptions. For more look at: Handle errors in ASP.NET Core | Microsoft Learn The new exception handler keeps information in Features property. So, If you face

Read More