Auto Trigger Deploys on Netlify

In order to keep a consistent schedule for publishing my blog posts, I wanted to automate the process of deploying my Hugo Static Site on Netlify. By using IFTTT, I was able to set up an auto-trigger that deploys my site every morning. This method can be used not only on Netlify, but also on other providers that offer webhooks for manual deploys. Consistency is key for maintaining momentum in my work....

Automatically Run package.json Scripts upon File Changes in a Folder

In this article, I will show you how to set up a package.json script to re-run automatically whenever a file within a specific folder changes. This approach can be applied to any type of automatic file and folder monitoring, not just limited to the scenario mentioned here. Let’s start by addressing a practical problem. Suppose you want to automatically regenerate the CSS files, utilizing a PostCSS pipeline, whenever any file changes within a folder....

Automatically Triggering Deploys on Netlify with Submodules

One of my goals was to rebuild my site on Netlify whenever there was a new commit on a Git submodule that was included in the repository. Unfortunately, Netlify does not natively provide this functionality. It only “watches” the main repository for new commits. To overcome this limitation, I took the following steps: I accessed the Deploy settings on Netlify and navigated to “Build hooks.” I clicked on “Add build hook” to create a unique URL that could be used to trigger the deployment....

Automating the Sharing of Old Blog Posts on Twitter

Having a lot of evergreen content on your blog is great, but how do you make sure it continues to reach your audience over time? In this tutorial, I will explain how I automated the process of repurposing my old blog posts on Twitter, ensuring that they reach a wider audience and provide value to my readers. The Problem Every time I write a new blog post, I share it on Twitter....

Basic Input/Output (I/O) Concepts in C

Learn how to perform input/output using printf and scanf functions in C. C is a small language, and the core of C does not include any built-in Input/Output (I/O) functionality. However, the C Standard Library provides I/O functions through the stdio.h header file. To use these functions, include the stdio.h header file in your C file: #include <stdio.h> Using this library, you have access to functions such as printf(), scanf(), sscanf(), fgets(), and fprintf()....

Basics of Working with Python for Developers

Python is a versatile programming language that is popular among developers due to its simplicity and readability. In this blog post, we will cover some fundamental concepts of working with Python. Variables In Python, variables are used to store data values. Creating a variable is as simple as assigning a value to a label using the = assignment operator. Here’s an example: name = "Roger" You can also assign numeric values to variables:...

Becoming a Better Developer: Learning from Others

As developers, we’re constantly on a journey to improve our skills and stay up-to-date with the latest technologies. One important aspect of growth is learning from others who are more knowledgeable and experienced than us. In this blog post, I want to emphasize the importance of not settling for being the best in your current circle, but instead seeking out opportunities to learn from a diverse group of people. A Humble Beginning I still remember my first exposure to programming....

Best Practices for Recording Videos

In this blog post, I will share the details of my video recording setup and workflow. As an avid programmer, I believe that making programming videos more personal by incorporating a face cam adds a human touch to the content. Throughout my video recording journey, I have made several adjustments to improve the quality and overall production. Let’s dive into the specifics. Equipment To start, I use a MacBook Air as my primary device for recording....

Best Practices to Protect Your Passwords and API Keys on Git Platforms

So, you’ve inadvertently posted your password or API key on a public source control management platform like GitHub, GitLab, or BitBucket. Don’t panic! We’ve all been there. The important thing now is to take immediate action to protect your sensitive information and minimize the potential risks. Here’s what you can do: 1. Invalidate the Exposed Password or API Key The first step is to quickly invalidate the password or API key that was compromised....

Blogging for Over 3.5 Years: A Journey I Can't Escape

Since January 2018, I have dedicated myself to the world of blogging, consistently sharing my thoughts and experiences every single day. It’s been a remarkable journey that spans over 3.5 years. But what keeps me going? Some may call it dedication, but if I’m being honest, I sometimes joke that I’m trapped in this blog. I have invested so much time and effort into this endeavor that I simply can’t imagine stopping now....