Why are websites requesting access to motion sensors... on my desktop?

I was checking the status of a FedEx order when Brave warned me that “this site has been blocked from accessing your motion sensors”. I’m struggling to understand why a website would need that access. Do I get a different experience if I drop my device? Tip my monitor over? Spin the mouse around?

  Dec 30, 2019 (rev. Oct 10, 2025) ·  11 min

Using the GraphiQL IDE to access a GraphQL API

GraphQL is bundled with GraphiQL, which lets us run queries right in the browser! Let’s see how GitHub uses it and try kicking the tires.

  Sep 26, 2019 (rev. Oct 10, 2025) ·  3 min

Create a TOTP 2FA code for your app

I use 2FA on every site that supports it, but I’d never given much thought to how a 2FA code is generated. Let’s learn how!

  Aug 13, 2019 (rev. Oct 11, 2025) ·  7 min

Protect your GitHub account to keep your code secure

GitHub, GitLab, and Bitbucket just released a joint statement on a widespread ransomware attack that resulted in compromised accounts. That got me thinking, what can a person do to protect his or her code on GitHub? As it turns out, a lot…

  May 22, 2019 (rev. Oct 11, 2025) ·  10 min

Find info about an IP address with the IP Geolocation API

Last year I caught an article about a simple, free service called ipify that returns your IP address. It became so popular the author soon found himself dealing with billions of requests per month! Here’s a look at that API and the IP Geolocation API that it spawned.

  Feb 12, 2019 (rev. Oct 11, 2025) ·  4 min

5 Markdown Tricks for GitHub

Here’s a few tricks for rendering markdown in GitHub that most people wouldn’t know about. Oh, and they work for new Issues, Pull Requests, and in the Wiki too!

  Feb 6, 2019 (rev. Oct 11, 2025) ·  4 min

How to select an earlier .NET version on Visual Studio for Mac (tl;dr: you can't)

Despite its marketing, Visual Studio for Mac is not the Visual Studio that millions love, ported to the Mac. Something that’s absolutely trivial in standard VS, switching between .NET Frameworks, wasted several of my evenings. Maybe it’ll help someone else.

  Aug 20, 2018 (rev. Oct 10, 2025) ·  4 min

Calculate Easter and other holidays in Erlang

I wrote a small library for calculating Easter and other holidays in Erlang. Here’s how I did it and what I learned.

  Jul 1, 2018 (rev. Oct 10, 2025) ·  3 min

Access yesterday's Internet with the Wayback Machine API

The Wayback Machine, a product of the Internet Archive, is an ambitious tool that’s been documenting websites for many years. It’s useful when a page you need is removed by the original author. Let’s take a look at their API and how we might make use of it.

  Jun 24, 2018 (rev. Oct 11, 2025) ·  8 min

A look at the many ways APIs can authorize access

After writing about so many APIs and having to figure out the auth process for each, I wanted to compare and contrast how some of these services approach authentication and authorization, and why they might’ve decided to do it the way they did.

  Jun 19, 2018 (rev. Oct 11, 2025) ·  11 min