Search
Restart Mac From Command Line
9.5.2023
Restarting and shutting down a computer remotely is a frequent task for remote system administrators. As someone that writes many shell scripts, I also find myself automating system restarts. Let’s look at a few ways to restart Mac systems from command line! Restart a Local Mac To restart...
How to Use Your Domain on Bluesky
8.5.2023
Bluesky is a hot new social networking platform that functions like Twitter from Twitter’s original founder. New users are flooding into the platform as a respite from Elon Musk’s vision of Twitter and the fumbles that have happened since his takeover. Upon signing up for Bluesky, your...
10 Great Multipurpose WordPress Themes (Sponsored)
2.5.2023
Multipurpose themes are flexible WordPress templates that can be used to create virtually any kind of website. They are often best-sellers, and because they are so popular there are a lot of them to choose from. Too many in fact unless you have time to spare to find one that is best for you. Where...
How to Blur Faces in a Video from Command Line
1.5.2023
Privacy is always incredibly important, especially with visual media where you may not have the permission of individuals in the video. If you’re filming something in public, it’s likely you’ll catch someone’s face who simply doesn’t want or need to be identified. This...
CSS content-visibility
28.4.2023
The CSS language is full of small gaps which are frustrating to navigate. Between CSS properties to hide a container and its contents, there is still room for improvement. visibility: hidden keeps height and width integrity while display: none on a container hides everything. You can...
Bitcoin Stamps Surpass 18,000 Collectibles, Creativity Takes Center Stage
22.4.2023
With the latest non-fungible token (NFT) trend on the Bitcoin blockchain, known as Bitcoin Stamps, users have issued more than 18,000 digital collectibles on the network. While this figure falls short of the number of Ordinal inscriptions, stamp creators are exploring new ways to leverage this...
How to Get a Computer’s Hardware ID
18.4.2023
Cheating in online games is a huge issue these days — just ask anyone playing PUBG. Cheaters aren’t difficult for players to spot but vendors oftentimes don’t do enough to punish these villains. Krafton recently announced they would start banning cheaters by hardware ID, which...
JavaScript Array Group
17.4.2023
Managing, sorting, and manipulating data with JavaScript is a skill we’ve often delegated to third party libraries like lodash. As the JavaScript language progresses, however, these features eventually get. added to the JavaScript specification. Two such APIs for grouping of Array data...
How to Get a Base64 Version of a File From Command Line
13.4.2023
A while back I wrote an article on how to Convert Image to Data URI with JavaScript. It’s a neat trick developers can use for any number of reasons. Instead of abusing canvas, however, why not simply get the base64 data from command line? You can use base64 and pbcopy to convert a file...
How to Get Mac Battery Level from Command Line
10.4.2023
I’m a big fan of having as much information as I can get within the command line. I couldn’t go without knowing which git branch I’m on, for example. Another important piece of information I like having is my current battery percentage. To get the current battery level from...
How to Block a Range of IP Addresses
27.3.2023
As much as content creators want traffic to their website, there is such thing as the wrong type of traffic. Sometimes it’s content scrapers, sometimes it’s malicious bots; either way, it’s important to know how to block problematic IPs from your site. To block a range of...
Detect the Content Type in the Clipboard
6.3.2023
A user’s clipboard is a “catch all” between the operating system and the apps employed on it. When you use a web browser, you can highlight text or right-click an image and select “Copy Image”. That made me think about how developers can detect what is in...
CSS ::file-selector-button
20.2.2023
We all love beautifully styled form controls but, due to the differences between operating system displays, styling them can be painful. Due to that pain, we’ve created scores of libraries to mock these controls. Unfortunately that sometimes comes at the cost of accessibility, performance...
How to Open a Tor Brave Window from Command Line
6.2.2023
I love the Brave web browser for many reasons: ad blocking, Brave rewards, crypto integration, and even a Tor tab feature. I’ll often use the Tor feature but wanted to know how I could automated opening Tor windows from command line. To open a Brave Tor tab, you can use the following command:...
How to Open an App from Anywhere on Mac Command Line
31.1.2023
Many engineers like myself live in the command line, and perform actions from command line that most others would click an icon for. I’ve always found opening apps from command line on Macs painful. You need to references the Applications directory, add .app to the name, etc. I just want...
Bringing Letters to Life: Coding a Kinetic SVG Typography Animation
31.1.2023
In this tutorial, you'll learn how to recreate a captivating motion type effect using SVG and GreenSock
How to Create a Diff of Two Images
30.1.2023
When I was a child, I loved looking for Waldo in the “Where’s Waldo?” book series. These days I’m a sucker for TMZ’s “What’s the Big Frigin Difference” images, where TMZ slightly changes an image and you have to spot the differences between the two....
5 Web Design Trends for 2023 That You Should Pay Attention To (Sponsored)
17.1.2023
The start of a new year is usually a time when we start looking for ways to make something a little better. That something could be our life, work, or what we produce. Web designers, for example, might look for ways to make their designs more interesting or effective. In this post we will focus...
6 Common SVG Fails (and How to Fix Them)
17.1.2023
Someone recently asked me how I approach debugging inline SVGs. Because it is part of the DOM, we can inspect any inline SVG in any browser DevTools. And because of that, we have the ability to scope things out and …
6 Common SVG Fails (and How to Fix Them) originally published...
fetch with Timeout
16.1.2023
A few years back I wrote a blog post about how write a fetch Promise that times out. The function was effective but the code wasn’t great, mostly because AbortController , which allows you to cancel a fetch Promise, did not yet exist. With AbortController and AbortSignal available...