Skip to content

Latest 🗞️

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.

YouTube

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.

Wednesday, April 8

Git Commits

days commits 1 ohnsh/days
  • 10:03 am — John Sherrell <dev@ohn.sh>

    Update post to reflect new, dynamically rendered iCloud shared album viewer.

scratch commits 2 ohnsh/scratch
  • 10:00 am — John Sherrell <dev@ohn.sh>

    Move iCloud shared album viewer to .astro page and disable prerendering. Gallery should now stay in sync with image URLs extracted from iCloud.

  • 9:47 am — John Sherrell <dev@ohn.sh>

    Added cloudflare SSR adapter, which required nodejs_compat in wrangler.jsonc due to postcss using node APIs. Preparing to disable prerendering for iCloud shared album viewer.