Skip to content

Latest 🗞️

Monday, April 13

Git Commits

bsky-random commits 3 ohnsh/bsky-random
  • 11:40 pm — John Sherrell <dev@ohn.sh>

    Added OpenNext cloudflare adapter; deploying to workers. The page route shows a list of popular feed generators on BlueSky. And there are a couple of "bot" route handlers; /bot returns profile information for @bleepbloop.ohn.sh while /bot/ai runs a moderation model via HuggingFace to classify the given query text. Using Cloudflare KV binding to persist Bluesky/AT bot session across requests.

  • 2:58 pm — John Sherrell <dev@ohn.sh>

    Clean up markdown files left by create-next-app.

  • 2:56 pm — John Sherrell <dev@ohn.sh>

    Initial commit from Create Next App

days commits 1 ohnsh/days
  • 2:24 pm — John Sherrell <dev@ohn.sh>

    Bump dependencies.

YouTube

Sunday, April 12

Git Commits

scratch commits 3 ohnsh/scratch
  • 12:46 pm — John Sherrell <dev@ohn.sh>

    yolo demo: removed first-pass non-react implementation, plus a couple of vendor files that I'm no longer using.

  • 1:50 am — John Sherrell <dev@ohn.sh>

    Refactored VideoProcessor into custom hook.

  • 12:01 am — John Sherrell <dev@ohn.sh>

    yolo demo: use loadeddata event on <video> to (re-)initialize VideoProcessor whenever the first frame of a new video source is ready. Also turned off VideoProcessor's internal frame grabbing, which wasn't actually doing anything with the image data.

Saturday, April 11

Git Commits

scratch commits 4 ohnsh/scratch
  • 5:58 pm — John Sherrell <dev@ohn.sh>

    yolo demo: switching to live camera stream now works. Rebuilt as a React component. Swapped old <UserMedia> component for useUserMedia custom hook. It kind of works on my iPhone 15 Pro, but lots of room for improvement.

  • 10:51 am — John Sherrell <dev@ohn.sh>

    yolo demo: based on a tip from edge devtools, setting `willReadFrequently` flag for canvas rendering context created in VideoProcessor. Helps the browser optimize by storing bitmap on CPU when it's frequently read back into JavaScript (we're doing it 10 times per second).

  • 12:43 am — John Sherrell <dev@ohn.sh>

    Merge branch 'yolo'

  • 12:40 am — John Sherrell <dev@ohn.sh>

    Now importing onnxruntime-web via CDN to prevent vite bundling a giant WASM runtime that exceeds the asset size limit on Cloudflare Workers. Created typescript module declaration shim that references types in the still-installed npm package.

Friday, April 10

Git Commits

scratch commits 4 ohnsh/scratch
  • 11:21 pm — John Sherrell <dev@ohn.sh>

    First pass at a YOLO object detection demo. Currently using a static video hosted from an R2 bucket. Lots of work to do, but it works and runs pretty smoothly.

  • 11:41 am — John Sherrell <dev@ohn.sh>

    iCloud shared album viewer: new types revealed a bug accessing non-existent width/height properties of Asset object. Using CSS to make each image a square filling the available column width; `object-fit: cover` gives a cropped thumbnail.

  • 11:19 am — John Sherrell <dev@ohn.sh>

    iCloud shared album viewer: added types for API objects; center grid items with `place-items: center`.

  • 12:37 am — John Sherrell <dev@ohn.sh>

    iCloud shared album viewer: add play icon to videos.

Thursday, April 9

Git Commits

scratch commits 2 ohnsh/scratch
  • 11:47 pm — John Sherrell <dev@ohn.sh>

    Astro.rewrite wreaks havoc with SSR, at least on Cloudflare. Removing index.astro, which aliased the iCloud shared album demo via Astro.rewrite. Not sure if the problem has anything to do with it being the / route, but Cloudflare was returning a server error. For now, back to empty index.mdx for the root. I should be able to go back to Astro.rewrite when I have a statically generated demo worth featuring.

  • 11:44 pm — John Sherrell <dev@ohn.sh>

    Remove deprecated `baseUrl` option from tsconfig.json

days commits 1 ohnsh/days
  • 5:05 pm — John Sherrell <dev@ohn.sh>

    More complete og:image sorting algorithm in route middleware. Doggos come first.