A note of caution on GCC's uninitialized variables

Recently, I have started my journey to learn C programming using Visual Studio Code and Mingw-w64. What is Mingw-w64? It is created to support GCC compiler on Windows systems. GCC is the GNU Compiler Collection and GNU (stands for GNU's not Unix) is key component to help build operating systems…

How to access your localhost website from external LAN?

I was trying to access my localhost ASP.NET Core MVC website from another computer which sits in different LAN. Thus, I tried to google around and it does show some good solutions, however, I would need to refer to multiple places to get the final solution. So, I thought…

How to mock ASP.NET Core Identity?

I was having a bit of issue when I tried to test my class which needs UserManager<ApplicationUser> object and RoleManager<IdentityRole> object in constructor method. Both classes are from new membership system called ASP.NET Core Identity. You can learn more from Introduction to Identity…

Generate absolute URLs in ASP.NET MVC

Sometimes it's easier to create relative URL in development using Url.Content("~/yourimage.png"). It seems to be quicker to code this way. However, there are times that I need to generate absolute URL for public facing websites where SEO matters. Quickly google "why absolute url matters…

Using Debug Diagnostics Tool To Analyze Hang Issue

Just arrived at the office, without breakfast, I had complaint from boss that our website was very slow. Looking at the website, it was very slow indeed, only after a good few minutes, the website only started to load some texts barely while you still can see the rolling icon…

How to become a manager?

Nowadays, technology has become an integral part of any organization, for instance, manufacturing, marketing, operation and so no. Therefore, it is fair enough to conclude that technical experts have become an important factor for a company or organization success. Some technical experts would continue their effort as individual contributor according…

My journey of using Join, GroupJoin and GroupBy - Part 2

As I continued doing my migration process to convert my existing project from ASP.NET Web Form to ASP.NET MVC using Entity Framework from my previous post, I had abit of issue with SQL LEFT JOIN. Basically, the SQL keywords return all records from left table and matched records…