David Hill
vidhill.com
David Hill
@vidhill.com
Software Engineer, and human
The sunk cost fallacy
April 17, 2025 at 11:19 AM
For some reason,
FM got a reprieve in Ireland. We don't have any DAB radio, afaik,
I think it's wise, we just had a big storm, and the good old simple fm radio is alway a nice backup option
Low battery consumption, simple
February 22, 2025 at 7:03 PM
Oh,

following your example, I was able to make my own version on `parse-millis` that uses the Temporal API,

codepen.io/vidhill/pen/...
duration from object
...
codepen.io
February 18, 2025 at 3:20 PM
Milliseconds to Temporal Duration
...
codepen.io
February 18, 2025 at 2:46 PM
the solution I came to was to use the `parse-ms` lib by sindresorhus

I was surprised that it was necessary to use a library
February 18, 2025 at 2:42 PM
Hmm, no

Let me describe what I was trying to do and it might make more sense,

I was experimenting with a countdown timer,

The timer would be configured, as a number of milliseconds

I wanted to see if I could use the Temporal api to render out the countdown as something like,

`1h 1min 30sec`
February 18, 2025 at 2:39 PM
Whoops, first screenshot was wrong

Codepen links:

codepen.io/vidhill/pen/...
codepen.io/vidhill/pen/...
February 18, 2025 at 1:04 PM
this is what I meant to post
February 18, 2025 at 1:00 PM
Oh, shoot, my screenshot was wrong, it does the same with an object

codepen.io/vidhill/pen/...
Milliseconds to Temporal Duration
...
codepen.io
February 18, 2025 at 12:57 PM
@tolin.ski, I am not missing something?
-sorry I don't know who else to ask. 😅
February 18, 2025 at 12:09 PM
One thing I did discover is that the output from `parse-millis` by @sindresorhus.bsky.social is in the correct format to be passed directly to `Temporal.Duration.from`, which is nice
February 18, 2025 at 12:07 PM
On the one hand it seems counter intuitive that milliseconds don't automatically convert to their equivalent parts,

on the the other it kind of makes sense, I don't know
February 18, 2025 at 12:05 PM
The only correct answer is... ✨️ Interpretive Dance ✨️
February 6, 2025 at 11:54 AM
I once ran a mic wire from my bedroom into another room,
And had the sound playing through the computer speakers.
My brother managed to convince my little sister that he was a little man who was trapped inside the computer
February 5, 2025 at 1:10 PM
Was it Motion Canvas? Perhaps?
I really like that
January 28, 2025 at 6:44 PM
Um...
Did you only watch the preview for the movie or something?
January 18, 2025 at 10:44 PM
Mr Bos is Canadian
January 15, 2025 at 8:26 PM
🎉🎉
January 9, 2025 at 11:29 PM
I have had miracles with dd in the past,
It's the last resort,
en.m.wikipedia.org/wiki/Dd_(Unix)
dd (Unix) - Wikipedia
en.m.wikipedia.org
January 9, 2025 at 11:26 PM
Aaah, ok
December 27, 2024 at 10:57 AM
Thanks @kevinpowell.co that's what I thought too..

@wesbos.com you have said a few times that color mix was nixed, but MDN and CanIUse make no mention of anything
December 27, 2024 at 2:23 AM