Skip to content

Instantly share code, notes, and snippets.

@jscholes
jscholes / notion-initial-sr-accessibility-scan.md
Created September 19, 2023 15:16
Quick Notion Accessibility Observations

Quick Notion Accessibility Observations

Sign up

  • Focus automatically moves to the "Work email" input, skipping "Continue with Google" and "Continue with Apple".
  • The input has an accessible name of "Enter your email address...", overriding the visible label of "Work email".
  • The button to clear the email input has no accessible name.

Welcome to Notion

  • The "What should we call you?" field only has a placeholder, no actual label.
  • The button to toggle password visibility has no accessible name (particularly confusing given that the last time I encountered an unnamed button next to a field, it was to clear it).
  • The "I agree to Notion sending marketing ..." checkbox has no accessible name.

A small percentage of Audible AAX files – usually radio dramatizations / plays – are encoded at a sample rate of 44.1kHz. These files do not seem to play natively on Android, but are accepted by tools and players on Linux, e.g. mplayer, ffmpeg, etc. Trying to use them with Booksonic causes playback to fail if transcoding is not enabled for m4a / m4b files. Similarly, playing through Plex results in a forced server-side transcode. A bug was filed against Booksonic partly about this:

popeen/Booksonic-App#67

After much investigation, it seems the only difference between files that play and those that don’t, apart from the sample rate, bit rate, etc., is a single bit set in the Audio Object Type Specific Config in the ESDS atom in an M4A file. This bit is described as dependsOnCoreCoder in most sources:

https://wiki.multimedia.cx/index.php/Understanding_AAC https://wiki.multimedia.cx/index.php/MPEG-4_Audio https://stackoverflow.com/questions/3987850/mp4-atom-how-to-discriminat

@jscholes
jscholes / udioSongURL.py
Created May 17, 2024 23:30
Udio media URL extraction script
import argparse
import json
import re
import sys
import urllib.error
import urllib.request
from urllib.parse import urlparse
HTTP_TIMEOUT = 10
@jscholes
jscholes / bakewell.md
Last active February 27, 2025 00:13
A fictional history of the bakewell tart.

THE EXCEEDINGLY GRAND AND UTTERLY FABRICATED HISTORY OF THE BAKEWELL TART

A Scholarly Work of Complete Balderdash

INTRODUCTION: A TART IS BORN

Gather round, you vacant-headed medieval turnip munchers, for I am about to impart upon your pitiful excuse for consciousness the most significant historical tale ever told. More important than the fall of Rome, more crucial than the discovery of the New World, and certainly more entertaining than anything involving the Dutch, this is the story of the Bakewell tart—that most regal of desserts, that most noble of pastries, that most cunning of confections.

Why, you may ask with your characteristic lack of intellectual curiosity, should we care about the history of a tart? Well, to that I say: what else have you got to do? Develop penicillin? Write "Paradise Lost"? I think not. You're sitting there, aren't you, with nothing but lint in your pockets and even less in your cranium, so you might as well learn something that will be of absolutely no use to you