I made another little page with a bunch of videos on it. This time, it's watch assembly. Fun little experiment. Not as cool as the music video version, though.
al9000.com/assembly/
Posts by alan
I had a recent realization that WASM could be used to password protect files on a static site. Basically, you encrypt files before shipping them to prod. Then, use WASM to decrypt them on the front-end. I did a write up with prototype code here: al9000.com/rust/wasm/st...
listening to this from the race for space on repeat: www.youtube.com/watch?v=SBKL...
I just hit this one the other day. so good: www.youtube.com/watch?v=h4X3...
we're about 15min away from the launch window to send folks to take the spin around the moon: www.youtube.com/watch?v=m3kR...
hell yeah, 3yo. let's go
just realized you can use wasm to password protect pages on a static site. cleartext page has a function that accepts a password, fetches files and then passes them to the wasm process that decrypts them and passes them back for display.
I wrote a little script to pull to data on commander magic cards if you're into that kine of thing: www.alanwsmith.com/en/3b/e9/v6/...
recommending music to a stranger is always fraught, but I've been listening to this on repeat for 4 hours which ticks the "catchy" checkbox: www.youtube.com/watch?v=DF2Q...
I may have dropped this one before. It's worth another round: goose - give it time - www.youtube.com/watch?v=DF2Q...
I'm working on a project that doesn't fit into localStorage. I couldn't find a concise post on how to use IndexedDB with vanilla javascript. wrote this up to pay it forward: www.alanwsmith.com/en/3b/yu/de/...
I updated my JavaScript array shuffling post to use `crypto.getRandomValues()` instead of `Math.random()` for better randomness. Probably doesn't matter for most cases, but why not go with the "cryptographically strong random values"?
www.alanwsmith.com/en/23/lz/hz/...
TIL: you can use contenteditable to update css on a page without javascript - www.alanwsmith.com/en/3a/wg/pw/...
I set up a nice way to use file names to toggle between default/fallback files and customized ones during static site generation.
www.alanwsmith.com/en/3a/dd/9e/...
new on the blog: Formatting Dates in JavaScript with Intl.DateTimeFormat
www.alanwsmith.com/en/3a/50/os/...
Some folks like ISO 8610. I'm an RFC 3339 man, myself. I still respect the crazy kids with their RFC 9557, though.
www.alanwsmith.com/en/3a/4q/97/...
I'm playing with WebAssembly/wasm in rust. I made an chopped down set of instructions for the `alert("Hello, world")` example I see everywhere. I also made an example where you click a button since that's more what I'm after most of the time.
www.alanwsmith.com/en/39/gc/lt/...
new thing I'm trying: embedding JSON inside HTML <template> tags because why not?
www.alanwsmith.com/en/39/fr/uk/...
Weeknotes for the week:
- More playing Magic: The Gathering,
Commander style.
- Working on tools to do Magic better.
A great way to stretch bitty's legs.
- Broke out the sax for the first time
in forever.
www.alanwsmith.com/en/38/o4/j6/...
I gave AI another shot for a coding question and had a good experience. The biggest change was that I wrote the prompt the same way I'd write a a stack overflow question: As direct as possible with a refined, minimal code example as a starting point.
www.alanwsmith.com/en/38/tm/zv/...
latest post: filtering the room - in which I hide the world away from me
www.alanwsmith.com/en/38/0p/ul/...
A photo of a smooth, dark rock that's about the side of a grapefruit with googly eyes on it. It's resting in sandy dirt overlooking a canyon in the background. There's text above the rock that says 'There are no rules!'
making this my wall paper
I archived all the open YouTube videos I had open in my browser. There's 207 of them, sorted by video ID:
www.alanwsmith.com/en/38/21/pv/...
this version of amazing grace by victor wooten
www.youtube.com/watch?v=_tfR...
I've written my first piece of satire:
Dave Rupert Says STOP Blogging!
www.alanwsmith.com/en/37/yq/qm/...