danallan
banner
danallan.net
danallan
@danallan.net
→ full stack cosplay account
→ web app black thumb
→ perpetual writer's block
⇢ ...
www.danallan.net/blog/2024-12...

Cloudflare Page routing isn't complex but different apps need different configurations. Unless it's pure SPA or pure server-side, just a few things can save you time debugging confusing routing issues: add a 404 page and mind differences between fn/static routes
December 21, 2024 at 10:13 PM
www.danallan.net/blog/2024-12... identifying bottlenecks on a local network with netcat; sure, you can use /dev/urandom, but if you are testing with old hardware or a low-power embedded CPU, make sure it can generate data fast enough to saturate the network link
Finding local network bottlenecks with netcat | Dan Armendariz
Using netcat and dd to identify bottlenecks in data transfers to and from a NAS.
www.danallan.net
December 14, 2024 at 6:38 PM
sometimes I send captchas to my friends to prove they are human and only believe that they are if they complain about it rather than solve it
December 14, 2024 at 5:56 PM
psa for folks upgrading an existing @astro.build project with SSR and CloudFlare adapter to v5: make sure you upgrade to at least version 12.1.0 of the CloudFlare adapter (`@astrojs/cloudflare@12.1.0`) at the same time to prevent build failures: github.com/withastro/ad...
fix: cloudflare resolve conditions by bluwy · Pull Request #476 · withastro/adapters
Changes fix #470 Testing Should pass Docs n/a
github.com
December 14, 2024 at 5:50 PM
Nice, no more squatting handle needed when changing your handle to a custom domain; bsky.social/about/blog/4...
December 14, 2024 at 5:35 PM
sigh
December 12, 2024 at 9:13 PM
new projects in 2024; yarn, pnpm, or npm?
December 12, 2024 at 5:14 PM
Reposted by danallan
Installing tool versions for projects can be a PITA (not the greek kind), but Mise (similar to asdf) can really make that easy on Mac and Linux.

You put a .tool-versions file in your project (or home dir) and it will automatically keep your node, go, etc versions as you'd like them.

mise.jdx.dev
Home | mise-en-place
mise-en-place documentation
mise.jdx.dev
December 10, 2024 at 6:42 AM
what do small, pre-rev #saas developers use to track business related metrics? not analytics, but user count, signups, conversions etc
December 9, 2024 at 5:56 PM
resisting the urge to productionize internal services on my home network just because one ran out of disk space and failed to renew a cert
December 5, 2024 at 5:25 PM
equifax additional pro rata payments just dropped. but if you register to receive it on myprepaidcenter.com you get shuttled to a form with these name restrictions.. numbers but no apostrophe? unterminated quotes? curly bracket? did someone manually re-type their bad regex?
December 4, 2024 at 4:41 PM
why does Unicode's "mathematical alphanumeric symbols" block only include sans-serif letters? Are there no serif letters that have semantic mathematical meaning? Or is it an assumption that the block will be used in, e.g., journals with serif fonts to distinguish symbols from text?
December 3, 2024 at 8:44 PM
my project has 777 unit tests now. I feel like there’s a Boeing-related joke to be made about reliability
November 27, 2024 at 3:14 PM
sitrep. there's increased latency in preview not prod. stats imply some sort of network latency (or maybe eviction from a d1 node or something). but "lies, damned lies, and statistics"; so do I (a) build a Proxy to report measurements or (b) just yolo deploy to prod where there's no users anyway
November 26, 2024 at 4:12 PM
TIL ECMAScript spec has a Proxy object. I guess I have to refactor my whole app again .. and maybe the mocks in my tests too? developer.mozilla.org/en-US/docs/W...
Proxy - JavaScript | MDN
The Proxy object enables you to create a proxy for another object, which can intercept and redefine fundamental operations for that object.
developer.mozilla.org
November 26, 2024 at 4:01 PM
developers.cloudflare.com/d1/worker-ap... apparently D1 return object includes a duration field that would report the query time. That would be nice to compare against the measured roundtrip on a per-request basis rather than over large statistics. But does my ORM -- Drizzle -- expose this to me?
Return objects | Cloudflare D1 docs
Some D1 Worker Binding APIs return a typed object.
developers.cloudflare.com
November 26, 2024 at 3:51 PM
I have been informed that I should create a single thread for this d1 latency liveblog, apologies for the faux pax but I'm gonna keep continue as I am just this first time. I'm a low-consequence rule breaker like that
November 26, 2024 at 3:39 PM
oh, cool, the preview table's own metrics say average query latency of 1ms (99th percentile 2.3ms). so there's several thousand ms of just .. network latency maybe?
November 26, 2024 at 3:31 PM
back to D1; whew, even the CloudFlare D1 dashboard takes 3-30s to load my burgeoning half-dozen row table. so I'm gonna go with "not just me"
November 26, 2024 at 3:19 PM
hm I suppose in that regard, my social media SLA is at least 99% unavailability. these terms limit my liability, please read them
November 26, 2024 at 3:18 PM
uh oh, why am I seeing 100-1000x latency out of CloudFlare D1 queries in a preview branch compared to baseline? feels like a metaphor for me posting here: I'm slow to respond and to post, but no one knows why, especially me
November 26, 2024 at 3:15 PM