With a number of video providers allowing for 1.25x, 1.5x, and 2x video playback, I quickly find the lack of playback speed adjustment being excruciatingly painful when it’s not an available feature. I’d like to share a quick hack to empower you to watch videos faster, even when a player doesn’t provide the option.
A vast majority of the web content we digest every day is built through Hyper Text Markup Language (HMTL). There is a plethora of information available on HTML, but the important piece for our conversation today is that it’s built on structured <tags>.
Tags provide much…
As a colleague of mine famously once said,
“This will be easy the second time!”
Not every problem can be as easy as solving something for the second time, but there are many techniques which can help to generate effective solutions.
When encountering a problem, I use the following cycle:
The first step to generating any solution is to understand the problem.
At a glance, this is not monumental advice. However, having a strong understanding of the problem is essential to crafting effective solutions. …
As a hobbyist musician, I love programming projects that bridge the gap between music and technology. A Sound Matrix is a series of squares that, if enabled, play sounds as the beat loops. Let’s build one using React!
For a starting point, we’ll rely on create-react-app. If you don’t have it installed, run:
npm install -g create-react-app
This globally installs create-react-app, a tool that assists in the initial configuration of a React project. Create a new application and cd to the new directory using the commands below.
create-react-app sound-matrix --use-npm
Create-react-app is incredibly convenient, but provides more than…
When it comes to reduce, there are two groups of people:
Reduce is an incredibly power tool which can make your life easier with less code. Its flexible nature allows reduce to fill a wide range of use cases, some of which we’ll explore today.
For a quick description, reduce is a function on the Array prototype which returns a value without modifying the originally provided array.
At the most basic level, reduce is a higher-order function which takes two values.
When code just works, it’s often unappreciated. However, when code breaks, it sticks out like a sore thumb. Unit testing is great method for providing insurance that code is performing as expected and continues to do so when updates occur.
There are many valid arguments about crafting unit tests prior to writing application code. However, it’s easier to understand testing starting with existing code.
First, create a new directory and initiate npm with default settings. Then, create two files named nameChecker.js and test/testNameChecker.js. …
If you haven’t heard of Grafana, you’re missing out. The folks on their team have built an incredible data visualization and monitoring tool designed to beautifully display platform metrics. If you’re interested in learning more about Grafana’s capabilities, check out their website.
I encountered Grafana while working on a monitoring project and wanted to explore the platform’s capabilities in an isolated environment. Queue AWS Fargate. Borrowing the marketing pitch from AWS:
AWS Fargate allows you to run Docker and AWS-hosted containers without having to manage servers or clusters.
To make things better, Grafana has a public docker image. With all…
Solutions engineer, music enthusiast, dog dad