Migrating a Basic Site to Astro

In this blog post, I will walk you through the process of moving a website from Hugo to Astro, a simpler solution that eliminates the need to work with Hugo templates when making changes. I find Astro to be a great choice for this migration because it allows me to use JSX, a syntax I am more comfortable with, and also gives me the flexibility to incorporate frameworks like Svelte or React in the future....

Monetizing Your Blog: How to Make Money with Your Writing

If you have a blog, you have the potential to turn your passion for writing into a profitable venture. In this blog post, we will explore different ways you can monetize your blog and make money from your content. Let’s dive in! Generate Leads for Your Business One of the easiest ways to make money with your blog is to promote your services. If you offer non-location specific services, such as consulting or coaching, a blog can be an excellent platform to showcase your expertise....

Moving Blog Hosting to Cloudflare Pages: Reduced Costs and Improved Performance

As mentioned in my recent YouTube video, I made the decision last week to migrate my blog from Netlify to Cloudflare Pages. The main reason behind this change was the growing concern of bandwidth costs. Starting from July last year, I found myself being billed by Netlify on a monthly basis. While I appreciate the service they provide, the extra bandwidth charges were becoming a significant expense. In total, I had spent $340 to keep my blog running smoothly....

Music for Programming: Enhancing Focus and Productivity

Finding yourself in the zone is key to delivering your best work. Whether you’re coding or writing, being completely present and laser-focused on the task at hand is crucial. To achieve this optimal state of mind, I rely heavily on music. Instrumental music is my go-to for coding sessions. The absence of vocals allows me to eliminate any distraction caused by processing lyrics. By immersing myself in purely instrumental tracks, I can maintain my focus without any cognitive interference....

My Journey to Become a Go Developer: Reflections from 2017

As I was organizing my computer files recently, I came across some notes from 2017 that reminded me of a plan I had back then. Although it may be 2020 now, I couldn’t help but revisit the past and reflect on my aspirations from three years ago. In 2016/2017, my goal was clear: to secure a stable, well-paying job as an employee rather than continuing as a contractor with numerous side projects that never seemed to flourish into profitable ventures....

My Love for Books: A Collection of Knowledge and Inspiration

Having an extensive library of paper books has always been a passion of mine. Among them, programming books take up about 30% of my collection. I used to travel to the city to visit a well-stocked library, where I could find the best books on software development. Back in the day, when Linux was sold in 4 CD sets, books were the affordable way to learn programming independently. Aside from programming, a significant portion of my books revolves around self-improvement and personal growth....

My Notes on the Deep Work Book: Essential Concepts and Tips for Productivity

In this blog post, I will share my key takeaways from the book “Deep Work” by Cal Newport. As a developer, I’ll also provide personal insights and experiences. So, without further ado, let’s dive in! Book Recommendation: Yes Overall Rating: 4/5 “Deep Work” is highly recommended and one of the best books I’ve read. It emphasizes the importance of creating an environment that allows for uninterrupted, distraction-free, focused work - what the author refers to as “deep work....

My Updated Video Recording Setup: Enhancing Quality and Efficiency

tags: video recording, equipment, iPhone, Camo, MacBook Pro, microphone, lights Making videos involves a continuous pursuit of quality, and as technology progresses, so does the need to upgrade and enhance our equipment. Recently, I made significant improvements to my video recording setup in preparation for the recordings of my JavaScript Course. In this blog post, I will provide you with an overview of my upgraded hardware and software setup. Camera In the past, I used a Canon EOS 200D (SL2) camera, which served me well with its convenient flipping screen and external microphone input....

MySQL User Permissions

In this blog, we will discuss user permissions in a MySQL database and how to grant privileges to a user. By default, when you create a new MySQL user using the following syntax: CREATE USER '<username>'@'localhost' IDENTIFIED BY '<password>'; the user has very limited capabilities. They cannot read or modify data from any existing database, nor can they create a new database. To allow a user to perform actions, you need to grant them privileges....

Namespaces in JavaScript: A Guide to Organizing Your Code

Tags: JavaScript, namespaces, code organization Introduction When working with JavaScript, it’s essential to keep your code organized and prevent any conflicts with other code. One effective way to achieve this is by using namespaces. Namespacing involves encapsulating a set of entities, such as variables, functions, and objects, under a single umbrella term. In this blog post, we’ll explore different ways to create namespaces in JavaScript and how they can benefit your code....