Skip to content

tag: course-xpro

Friday, March 20

Firebase Quotas and Cloudflare Workers

I’m currently enrolled in the MIT xPRO Professional Certificate in Coding program. In a recent assignment, we “delved” (as the course materials would put it) into GitHub Actions by setting up an automated testing and deployment workflow for a simple Express.js app. See the README on GitHub for my full report.

The deployment component was supposed to happen on Firebase, but I had already reached my project quota due to an earlier batch of assignments. After digging, I found information suggesting that my quota would reset 30 days after deleting the old projects, but the actual error message just said to contact support to request an increase. I received a prompt response (but to my Gmail account, of course, so I didn’t see it for a few days):

View full post…

Git Commits

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

    Clean up loaders/github.ts

  • 4:55 pm — John Sherrell <dev@ohn.sh>

    Reverse-chronological sort for days listed under /tags/[tag].

  • 3:09 pm — John Sherrell <dev@ohn.sh>

    Merge branch 'pure-loaders'

  • 3:08 pm — John Sherrell <dev@ohn.sh>

    Now sorting commits, but the technique is a little ugly. I'm considering guaranteeing a sort order for various arrays when Day object is initialized.

  • 3:01 pm — John Sherrell <dev@ohn.sh>

    Daily commits now rendering again. Refactor seemingly complete. Need to get commits sorted on page.

  • 1:27 pm — John Sherrell <dev@ohn.sh>

    3/19 metadata.

  • 1:20 pm — John Sherrell <dev@ohn.sh>

    loaders/github.ts now exports two loaders: repoLoader() and commitLoader(). There will be a collection for each. Getting to the meat of this refactor in the <GithubDay> and <RepoDay> components.

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

    Improve schemas/typing in youtube loader. No longer manually creating API schema. Presently, types are inferred when importing the intermediate .json file. When fetching directly, I need to use a schema provided by the API to generate a zod schema and/or typescript type.

  • 12:24 pm — John Sherrell <dev@ohn.sh>

    YouTube collection rendering again. Simplified loader creates a 'pure' collection of videos keyed by videoid. It also computes the day (using video title and pubDate) and stores it in each entry. Actual sorting of entries into days happens elsewhere, as it should.

xpro-nextjs-dashboard commits 1 ohnsh/xpro-nextjs-dashboard
  • 8:40 pm — John Sherrell <dev@ohn.sh>

    Initial commit from Create Next App

YouTube

Play

It’s spring, betches

Thursday, March 19

tags:

Git Commits

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

    Building again. Still lots to do.

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

    lib/dates.ts finally doesn't make me wince. Thoroughly renamed and refactored. Instead of expecting only plain dates, `dayFromDate()` and `slugFromDate()` work with either full timestamps (which are fine to implicitly convert to local time) or plain dates (which are important to represent the way they were originally typed out). You explicitly specify whether it's a `plainDate` using a second parameter (default false). If so, it's normalized to midnight UTC so that later string extraction knows to always use UTC getters.

  • 4:55 am — John Sherrell <dev@ohn.sh>

    New branch for reworking loaders. Everything is broken right now.

ra24-3-cloudflare commits 1 ohnsh/ra24-3-cloudflare
  • 12:28 am — John Sherrell <dev@ohn.sh>

    README.md CE.

YouTube

Tuesday, March 17

tags:

Git Commits

mit-xpro-ra24-3 commits 2 ohnsh/mit-xpro-ra24-3
  • 11:38 pm — John Sherrell <dev@ohn.sh>

    Added Github workflow that runs `bun test` on push.

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

    Testing a hello whirled express app with Jest-compatible `bun test`. This is part of an assignment in which testing and deployment will be automated with GitHub Actions and Firebase.

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

    Static screenshot og:image option. Looking into ways to automate this.

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

    Edits.

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

    Make hero more screenshot-friendly at small viewport sizes. I didn't want to override the `clamp()` expression completely, so instead I hijacked --sl-text-base and --sl-text-3xl (scope limited to the hero) which are used in those expressions.

ra24-2_github-actions commits 1 ohnsh/ra24-2_github-actions
  • 4:21 pm — John Sherrell <dev@ohn.sh>

    Demo workflow from Github docs.