I recently ran into an issue when I tried to import a reference to jsonwebtoken into a new Vue 3 project configured with Vite. I've observed others encountering the same error (although through different circumstances) and I figured I'd document what I did to resolve the problem for me in case it ...
Programming Languages
Snow Globe Single DIV CSS Drawing with Animating Snowflakes | Tutorial
Learn how to draw a snow globe with a single div and CSS. In this blog post I will walk you through how I created a snow globe with animating snowflakes using one div and a bunch of CSS. With the holidays right around the corner, I wanted to create something festive. I went back and forth ...
CSS Magic with a Single Div
In this tutorial, you'll learn the basic building blocks of single div drawing with CSS, putting them all together at the end to draw a lollipop. The goal of this blog post is to introduce you to the world of single div drawing. Hopefully by the time you reach the end of it, you will be ...
Counting Pixels in the Browser with the HTML5 Canvas and the ImageData object
Count pixels by color in the browser using JavaScript and the HTML 5 Canvas Element I recently wrote a small Python script that accepted an image file and returned the count of pixels per a unique color. The script worked great for my use case (making 8-bit pixel art), and it has saved me a lot ...
Fractions in Python | Today I Learned
Today I became aware of the existence of the builtin Python module fractions. The fractions module handles rational number arithmetic. Here's a simple example using the Fraction class to covert a decimal into a Fraction with the numerator and denominator reduced to the lowest terms. My ...
.mjs extension (A JavaScript module file) | Today I Learned
Today, I needed to reference the MDN docs for JavaScript modules. As I skimmed through the page, something caught my eye: a file name with the .mjs extension. My first reaction was confusion. This was my first time seeing a file with that extension. Upon further reading, I learned .mjs is a ...
Vue.JS Error: This relative module was not found
I was making an update to a small Vue.JS side project when I encountered a build error: ERROR Failed to compile with 1 errors 6:00:20 AM This relative module was not found: * ./components/ProficiencyBar.vue in ...
Counting Pixels by Color in Python with Pillow (a PIL fork)
I'm a maker and love creating 8-bit art, mostly with wood. I have a new project in the works where I need an exact count of each pixel per a color. I started to manually count them before I stopped myself and thought, why don't I just write a script to automate this!? ...
JavaScript’s Null Coalescing Operator | Today I Learned
Scroll below for an important language update to this blog post. I was fixing a bug in a portion of code when I came across a getter structured very similar to the lines below: At first glance, I was confused thinking why would you return a Boolean here? Shouldn’t this be a ternary ...
Tinkering Around with Adafruit’s PyBadge LC
I recently purchased an Adafruit PyBadge LC. and I've had a lot fun tinkering around with it. There are three boards in this family of boards from Adafruit: PyBadge LC (the one I have)PyBadgePyGamer The PyBadge LC is the cheapest of the bunch, hence the LC for low cost. For more details on the ...