Skip to content

Latest 🗞️

Tuesday, April 14

Git Commits

bsky-random commits 2 ohnsh/bsky-random
  • 10:45 pm — John Sherrell <dev@ohn.sh>

    Using huggingface inference client with llama-3.3 system prompt to fetch three astronomy- or shih tzu-related facts. I guess that'll be the bot's personality for now. Work is needed to reduce repitition. (Likely by keeping a list of N previous responses and inserting them into conversation history.)

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

    Switched bluesky profile/feed retrieval to page component instead of route handler. New Profile and Post components that just render the profile handle and post text so far.

YouTube

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.