This site is a place where I document the solutions for the random problems and errors I encounter when writing code or learning new technologies. For most of the topics listed below, I created the article only after completing an extensive Internet search for a solution, but couldn't find one, before finally figuring it out myself. The site currently has 31 posts.
Page 1 of 3
NPM Publishing Scoped Public Packages, posted November 16, 2024I created a new node.js-based command-line utility this week (@johnwargo/link-checker) and since I knew there was already a package there with that name (link-checker
) I knew I had to publish the package in such a way that a user could publish it and use my npm account name (@johnwargo
) to install my version of the utility.
I created a new node.js-based command-line utility this week (@johnwargo/link-checker) and when I first tested the utility after publishing it, something weird happened. Rather than launch the utility as I expected, the node.js package's source code file opened in the default JavaScript editor on my Windows system.
DFRobot Beetle Won't Write to Serial Monitor, posted April 14, 2024I'm working on a project that uses the Beetle ESP32 - C3 (RISC-V Core Development Board) and I noticed in my testing that the device wasn't sending any output to the Arduino IDE Serial Monitor.
Delphi Requested Operation Requires Elevation, posted January 21, 2024When running an application that requires elevated access (admin privileges) in the Delphi IDE (RAD Studio), you may see an error displayed in a dialog that says "Unable to create process: The requested operation requires elevation." as shown below:
Windows Path Items Not Available in Visual Studio Code, posted December 31, 2023A few weeks back, in terminal windows (command prompts) on my primary Windows system, the system lost access to the system PATH
variable contents. My experience differed depending on how I launched the terminal window.
I added the Music Maker FeatherWing to a ESP32 Feather V2 device and I’m following the instructions in the tutorial to run the feather_player sample sketch. I put some music files on the memory card, inserted it in the memory card holder then changed the file names in the sketch so it plays the sound files I have on the memory card.
ESP32 Task Watchdog Got Triggered, posted August 15, 2023After sorting out how to deploy code to an ESP32 device that runs different code on each processor core, I set about building out my application. As soon as I added my project's code to one of the cores, the device started rebooting again when it ran the code and generated the following error message:
ESP32 Threading Panic, posted August 12, 2023I built several projects on the ESP32 platform over the last few years; I recently published an update to my Glowing Pumpkin project. The project basically randomly flashes some LEDs with the intention that you put it inside a carved pumpkin and it does cool light effects inside the pumpkin. I wanted to build a version that used web application to control which color displays on the device so I set about learning how to run two processes on the processor, one that handles the LED stuff and the other that runs a web server accepting color requests from a remote device like a smartphone or tabled.
Eleventy Not A Supported Mime Type, posted July 9, 2023I was working on a Eleventy Plugin starter project yesterday and when I built the sample site and opened it in the browser, Chrome gave me a bunch of errors related to hosting site assets:
Problem writing Eleventy templates, posted July 7, 2023There is an error I see in Eleventy periodically when I'm either working in a new site or working (coding) a plugin. The problem occurs when I execute the eleventy
command to generate the site. Here's the full error block:
I use a npm package I created called Eleventy-New-Post to create new posts for my Eleventy sites. It saves me the work of copying a post file in the project folder then emptying it before adding the new content for the post. It also automates selecting a category for the post from an automatically generated list of all categories used by the site.
Eleventy Last Post Date Using Liquid, posted April 25, 2023While migrating my personal blog to Eleventy, I decided to add a statistics page to the site. As part of that, I wanted to add the publish dates for the first and last posts on the site. Getting the first post date was easy:
Eleventy Pagination Before Callback Not Working, posted April 16, 2023I've been trying to figure out how to easily build a categories page for this site that lists all categories including the number of posts per category (easily done in Eleventy) and a separate page for each category with pagination when the article list is greater than 20 posts.
Netlify Eleventy Build Failure, posted April 3, 2023I am in the process of migrating my existing johnwargo.com site hosted on FatCow to Eleventy hosted on Netlify and while I work on the site, I setup my jmw-test.com domain so it points to the work in progress site.
Eleventy Posts Not Sorting Correctly, posted March 11, 2023I recently switched this site to Eleventy and I noticed that my posts weren't sorting correctly on the home page. I want them sorted in reverse chronological order, but the site did the opposite.