A Short Guide to Using Emacs

Emacs is a highly versatile and powerful editor that has been the go-to choice for many UNIX users throughout history. The classic argument between vi and emacs enthusiasts has sparked countless debates and unproductive discussions among developers worldwide. To get started with Emacs, simply open a new session by invoking the command emacs. If you’re using Linux, this shouldn’t be a problem. However, if you’re on macOS, you’ll need to take an extra step....

Configuring the macOS Command Line: A Step-by-Step Guide

If you’ve recently acquired a new MacBook Air or simply want to optimize your macOS terminal for development, follow these instructions to set up your command line tool to perfection. By default, the macOS terminal may not offer the optimal experience for developers. However, with a few adjustments and installations, you can transform it into a powerful tool. Begin by installing Homebrew, a package manager for macOS. Visit the official Homebrew website at brew....

Convert and Resize Images with macOS Shortcuts

Converting and resizing images is a common task many users perform to optimize file sizes or meet specific requirements. In this blog post, we’ll explore how to achieve these tasks using Shortcuts, a tool available on macOS Monterey and iOS/iPadOS platforms. Why Convert Images to JPG? Different image formats serve varying purposes, and the choice often depends on specific needs. While PNG images offer transparent backgrounds and high quality, they can be significantly larger in file size compared to JPG files....

How to Add an \"Open in Terminal\" Icon in macOS Finder

If you’re a macOS user and frequently open folders in the Terminal, you might find it convenient to have a dedicated “Open in Terminal” icon in the Finder. This tutorial will guide you through the process of adding this icon to your Finder toolbar. Step 1: Open Automator and select “Application” when prompted to choose a type of document. Step 2: Search for “Run AppleScript” in the list of available actions and add it to your workflow....

How to Fix an Issue Installing Node `canvas` on macOS

If you’ve encountered difficulties while trying to install the Node.js canvas library on macOS, I’m here to help you resolve the issue. When attempting to execute npm install canvas, you might have received error messages similar to the following: npm ERR! code 1 npm ERR! path /Users/flaviocopes/dev/old/generate-images-posts/node_modules/canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute '/opt/homebrew/Cellar/[email protected]/bin/node /opt/homebrew/Cellar/[email protected]/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/flaviocopes/dev/old/generate-images-posts/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/flaviocopes/dev/old/generate-images-posts/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR!...

How to Fix the \"iphoneos cannot be located\" Error in macOS

In this guide, I will walk you through the steps to solve the confusing React Native error that occurs when trying to install React Native and run a project on iOS. When I attempted to run the command “pod install” in the project’s ios folder as instructed, I encountered a lengthy error message: From this error, the key issue highlighted was “error: SDK ‘iphoneos’ cannot be located.” This seemed suspicious, prompting me to conduct further research....

How to Fix the Error \"Rails is not currently installed on this system\" on macOS

If you’re trying to install Rails on macOS and you keep encountering the error “Rails is not currently installed on this system,” don’t worry. There’s a solution to get Rails up and running smoothly. Follow these steps: Step 1: Install rvm First, you need to install rvm. rvm is a popular Ruby version manager that allows you to easily switch between different versions of Ruby. Open your terminal and run the following command to install gpg2:...

How to Hide a File or Folder in macOS Finder

As a macOS user, you may sometimes come across unnecessary system folders, such as the “Public” folder, in your home directory. Although you can’t delete these system folders, you can hide them from view. In this article, we will show you how to easily hide a file or folder in macOS Finder using the terminal. To get started, follow these steps: Launch the Terminal application on your macOS device. In the Terminal window, type the following command and press Enter: chflags hidden <path> Replace <path> with the path to the file or folder you want to hide....

How to Install iOS and Mac Beta Releases

Every year in June, Apple hosts WWDC, their developer’s conference, where they unveil new operating systems and programming language updates. This includes new versions of iOS, macOS, iPadOS, watchOS, tvOS, as well as updates to the Swift programming language and frameworks. A new release of Xcode, the developer tool, is also announced. Following the conference, the first public beta is made available to developers, with subsequent beta releases throughout the summer....

How to Install MySQL on macOS

Learn how to easily install MySQL on macOS using Homebrew. Follow these step-by-step instructions to set up MySQL on your macOS system. To begin, you will need to have Homebrew installed on your macOS. If you don’t have it yet, you can install Homebrew by following the instructions on their official website. Once Homebrew is installed, open your terminal and run the following command: brew install mysql This command will install MySQL on your system....