Perspectives
Latest writing
-
Install Ubuntu 20.04 LTS on MacBook Pro 14,1
Ubuntu 20.04 has just been released, and I couldn't wait to try it out and install it on my MacBook Pro 14.1 model. In this post, I will detail what works, what doesn't, and how to work around those issues.
Read more -
Handling Browser Close Events with JavaScript
In certain scenarios, you may not want users to close their browser and exit the session. For instance, if a user is in the middle of filling out a form without saving, or in the midst of a payment transaction that hasn't been…
Read more -
Import npm Modules into AWS Lambda Function
When you create a Node.js Lambda function on Amazon Web Services (AWS) and begin editing it using the online editor, you might want to run npm install and import a third-party library, such as lodash. Unfortunately, there's no…
Read more -
Fix WordPress Plugin Installation Permission Issue
When attempting to install a plugin in WordPress, I encountered the following error:
Read more -
Fix WordPress with All Pages Returning 404 Not Found
I encountered a strange issue with WordPress: while the homepage loaded properly, all the other pages failed to do so. Instead, an error page displayed the message:
Read more -
Fixing Endless Redirection with HTTPS Settings in WordPress When Using AWS Load Balancer
I set up a WordPress blog on two Amazon Web Services (AWS) EC2 instances located in different availability zones. In front of these instances, an Elastic Load Balancer (ELB) is configured to redirect all HTTP requests on port 80…
Read more -
Installing PHP 7.2 Instead of PHP 5.4 on Amazon Linux 2
When you launch a new Amazon Linux 2 AMI server and try to install PHP using the following command:
Read more -
Reading Large Files Using Node.js
I recently faced the task of analyzing a massive dataset consisting of log files. When I attempted to open the file in Excel, my laptop simply froze. Given the limitations of the tools available, I decided to parse the file using…
Read more -
Migrating WordPress MySQL Database to AWS RDS
In this article, I'm going to explain how to migrate your local WordPress MySQL database to Amazon Web Services (AWS) Relational Database Service (RDS). You might want to do this for the following benefits:
Read more -
Removing .DS_Store Files from Git Repositories
If you are a Mac user who also uses Git, you might accidentally commit a .DSStore file. This could confuse your Windows colleagues, who may wonder what these files do and why you've committed them.
Read more -
Ignoring Already Modified Files in Git
I've encountered a rare scenario where a file has been modified, but I don't want to commit this change to Git. There are various methods to achieve this, such as using a .gitignore file. However, this approach doesn't work if…
Read more -
Find and Kill Processes Locking Specific Ports on a Mac
Problem: Sometimes, when you start a local Node.js server, it may continue running in the background. If you try to start the server again, you may encounter an error indicating that the port (e.g., 8080) is already in use and…
Read more