Blog

Showing 15 out of 59 blog posts

Creating table of contents in Hugo

Aug 2, 2021 | Hugo
Adding table of contents to a Hugo page is a easy as Hugo automatically parses a markdown file and generates a index and stores it in a TableOfContents variable for each page. You can call it by using, {{ .Page.TableOfContents }} which will be replaced by a nav section similar to the following,

Using Firefox Multi-account containers for improving Privacy

Firefox’s multi account container is a feature that provides isolated containers or profiles within Firefox. Each container has separate cookie, cache, etc… and are isolated from one another. If I log into Google in one container the other container will not have any details of that Google account.

Thoughts on Mi Band 5

Jul 22, 2021 | Opinion Mi Band
I recently purchased a Mi Band 5 for fitness and tracking and here is a summary of my experience with using it for ~2 months. I only used the device for fitness and tracking and didn’t use other things like notifications, alarms, etc… so this blog post covers only that and it is not a full review.

Formatting numeric literals using digit separators in C#

Jul 14, 2021 | C Sharp
I came to know about this just recently that you can format the number in your declaration statement in C#. It is a really nice trick. This feature was first introduced in C# 7 and it allows you to use underscore as a digit separator.

Creating responsive images in Hugo

Jul 11, 2021 | Hugo SEO
If this is the first time you are hearing about responsive image I recommend you to check out this MDN article first. It is a great read. My website already uses Bootstrap so I will be taking advantages of Bootstrap’s classes in addition to the Hugo’s image processing.

Alternatives for Google Analytics

Jul 8, 2021 | Analytics
I wanted to remove the cookie banner on my blog and so I was removing all the cookie usage one by one Disqus comments, Google Ads and the next step was Google Analytics. Although, I had Personal data tracking off, Google Analytics still collected a lot of info and used cookies.

Implementing local site search in Hugo using Jets.js

Jul 6, 2021 | Hugo
When I first implemented search for my blog I went straight for the good old Google custom search. After all, I did my BE final project based on it and I already know how to set it up for my blog.

Windows 11 is here and here is my thoughts on it

Jun 25, 2021 | Windows Opinion
Microsoft just announced Windows 11 and it changes the way we will use Windows. Sure it’s main focus is in the User Interface but it is just not a UI improvement that many speculated based on the leaked builds. Here are the most important things about Windows 11 in my opinion,

Switching my blog from Jekyll to Hugo

Jun 24, 2021 | Jekyll Hugo
I recently switched my blog from Jekyll to Hugo. I have been hearing about Hugo for a few months now and almost everyone was really positive about it. I decided to give it a try. It has been incredibly great so far.

Creating a blog archive page in Jekyll

May 10, 2021 | Jekyll
In this post, I’ll explain about creating a archive page for your blog that arranges post by the published year. Creating a archive page in Jekyll is quite easy. Jekyll stores all your blog post related information in site.posts, which we will use to generate the archive.

Enabling Code Syntax Highlighting in Jekyll

May 9, 2021 | Jekyll
TLDR: You need to add some CSS. Sometime ago I switched from embedding code form GitHub on my blogs to have the code directly in HTML. I did for performance reasons and cutting out some JavaScript. And the change helped in increasing the performance of the page for sure.

Disable Google's FLOC on your website

Google introduced in Mar 2021, a new cross-site tracking method called Federated Learning of Cohorts(FLoC) to aid advertisers target ads. The idea is that Chrome will track and analyse the browsing behaviour of a user and place them into groups or Cohorts.

Signing your GitHub commits using GPG keys on Windows

Why should you sign a git commit? By default, git takes the author information for a commit from the git configuration. This means that someone can edit their git config to impersonate me. All you need to do is to edit your commit email and name in git config to match mine and your commits will be shown as mine.

Give Azure Data Studio a try, if you are a user of SSMS

When I first heard about Azure Data Studio and saw it in some YouTube videos I thought that it is just a modified VS Code instance that is useful for Linux and MAC users who don’t have SSMS(SQL Server Management Studio).

Creating & Managing custom blocklists in the Azure Content Moderator service

In my previous blog post I explained about using Azure Content moderator service to identify personal information and explicit content in a given text and using it for moderating comments. In this blog post we will look into another feature of the Azure Content Moderator service called the terms list.