Extremely esoteric bug. Iβve had an open issue for the past three months related to this other issue. I couldnβt figure out why npmβs registry would pull an older version of d3-scale-chromatic
when I upgraded the @observable/plot
library. As a future note for myself, if I run into this issue again, Iβll have to go into the package-lock.json
file and update d3-scale-chromatic
to v3.1.0
.
ππ½ Hi! This is Jeremy's Craft by Zen
- 2024 Week 24 - Weekly NotesPosted
Keeping a dev journal, book recommendations, how computers reduce efficiency, introduction to jhanas, some podcast notes about AI companies, and how do dogs see color.
- Retrieval-Augmented Generation (RAG)Posted
An explainer for Retrieval-Augmented Generation (RAG). Breaking down what it is and how people are implementing it.
- Filed: π° Streamπ development TIL
- 2024 Week 23 - Weekly NotesPosted
A change in format for weekly notes. Local rumblings like H5N1, international splashes with China's Internet disappearing, could AI solve science, the smart web could use our support, and engineering the slow internet from a user from Antarctica.
- Stochastic ParrotsPosted
From this ACM paper, On the Dangers of Stochastic Parrots, the hypothesis is maybe these LLMs are parroting back what we already know and arenβt learning. We can probably, maybe, safely say that is no longer the case.
- Filed: βπΌ Writingπ newsletter season_4
- 2024 Week 18 - Weekly NotesPosted
Bye bye, corporate open source, spaced repetition explained as a in cartoon, cyberattacks on healthcare, AI Developer marketing ploy?, and a bunch of lay-offs and obits.
-
From The Progressive: Students Have the Right to Protest Apartheid. My lovely fiancΓ© wrote a piece about the student protests for Palestine.
While the Republican-led Congress has used its power to condemn any protests on behalf of Palestinians, where was the same outrage and zealousness when white nationalists came to college campuses?
- What Works TodayPosted
Just start. You know enough to get started. Don't stray away from the path you set out.
Filed: βπΌ Writing - Filed: βπΌ Writingπ newsletter season_4
- 2024 Week 17 - Weekly NotesPosted
Neopets revival, TikTok ban, how Dave Pescoe stays young, scenes of pro-Palestine protests, and phantom islands.
- TIL importmapPosted
I forked a small demo from Wes Bos and ran in on my own sandbox. It seems much cleaner than using a script tag per each dependency, and works on all major browsers.
In my little demo app, I placed the importmap in the head of the document. Iβm using react as well as my own utils file to test out the functionality.
<script type="importmap"> { "imports": { "react-dom": "https://esm.sh/react-dom", "react": "https://esm.sh/react", "utils": "./utils.js" } } </script>
Read more about importmap on MDN
From there, I imported these libraries in a script module.
<body> <div id="app"></div> <script type="module"> /* eslint-disable */ import { useState } from "react"; import { createRoot } from "react-dom"; import { formatMoney } from "utils"; createRoot(document.querySelector(`#app`)).render(formatMoney(100.2365)); </script> </body>
I had a hiccup with [plugin:vite
] as I found countless others have, so I wrote a custom bun server to host this project. Hopefully thereβs a better setup I can find with Vite using importmap in the future.Filed: π° Streamπ TIL programming -
Luxon datetime library defaults
startOf
andendOf
methods to UTC. But this isnβt great for end users who donβt live in UTC / GMT. To offset this, we need to grab the time zone offset from the userβs system.const systemTimeZoneOffsetInMinutes = new Date().getTimezoneOffset(); const systemTimeZoneOffsetInHours = systemTimeZoneOffset / 60;
Then we can add the offset to the Luxon datetime object.
const now = DateTime.now(); const startOfLocalDay = now.startOf('day').plus({ hours: systemTimeZoneOffsetInHours }); const endOfLocalDay = now.endOf('day').plus({ hours: systemTimeZoneOffsetInHours });
Filed: π° Streamπ programming time - 2024 Week 16 - Weekly NotesPosted
Editing Advice, advice advice, second passports, sign posting, load balancing visualized, Figma's framework 2024, and the Hyperkey.
I'm currently leading application development at Clear Labs.
I write essays on eclectic topics, from programming, cooking, and strange habit of collecting obituaries.
π Top 10 Tags
- Letters (75)
- Newsletter (72)
- Season_1 (60)
- Weeknote (59)
- Post (37)
- Blog (35)
- Programming (34)
- Essay (30)
- Learning (25)
- Archive (20)
Newsletter Series
I have put back together my newsletter after years of absense! These are primarily updates on my blog, "Craft By Zen", and maybe some highlights to the new articles I've written. There might be some life updates as well. I'm doing away with the old format of weekly longform essays, and trying some new things with my newsletter.