416 karma · joined March 31, 2022
https://stackoverflow.com/questions/48946680/how-to-avoid-th...
- range, clamp, inIvl, enumerate, topK
- groupBy (array to record), numeric / lexical array sorts
- seeded rng
- throttling
- attachDragListener (like d3's mousedown -> mousemove -> mouseup)
- Maps / Sets that accept non-primitive keys (ie custom hash)
So basically functions that every *dash variant includes.But after working with Svelte 5 daily for a few months, I don't think I like the implicitness. For one, reactivity doesn't show up in type signatures. So I have to remember whats reactive and what's not. Another is that making plain values (string, numbers, etc) reactive is really a trap. The reactivity doesn't cross file boundaries so you have to do weird things like exporting a getter / setter instead of the variable.
Maybe it's because he published 7 books that year (2021). Maybe it's also a coincidence that I remember not liking Children of Memory and he published 6 books that year, compared to Children of Time which was 2015 / 2 books.
Also just checked and looks like the fourth book (Children of Strife) is releasing in 2 weeks!
Off the top of my head...
https://www.royalroad.com/fiction/32973/synchronizing-minds-...
https://www.royalroad.com/fiction/67180/here-be-dragons-book...
> [Post-sci-fi is] free to allow the science fictional elements of their stories develop slowly, to emerge only in the latter half of the text, or to remain an isolated thread in a larger tapestry, all of which are anathema to genre-machine publishing, which generally wants its spaceships front-and-centre early on, to reassure readers they’re getting what they paid for.
This has always bugged me. There's often an interesting synopsis like (below), but the actual story begins with ~200 pages of backstories. And altogether the actual problem / developments / solution could probably be detailed in a tenth of the page count after subtracting all the character drama.
> "When a signal is discovered that seems to come from far beyond our solar system [...] What follows is an eye-opening journey out to the stars to the most awesome encounter in human history"
But this synopsis is actually from a well known 80s novel [0] so I don't think this slow-burn type of writing has become any more or less common with post scifi. To be clear, I don't have a problem with character-focused stories (I've read a ton!), I just wish they were advertised that way.
At this point I'm finding new / unusual stuff to read by looking for the least liked books whenever recommendations come up. Anyways rant over. On a more positive note, the author's post has put of new names / titles on my reading list. I think my next read will probably be something by Ishiguro:
> [The Buried Giant] follows an elderly Briton couple, Axl and Beatrice, living in a fictional post-Arthurian England in which no-one is able to retain long-term memories. The couple have dim memories of having had a son, and they decide to travel to a neighbouring village to seek him out.
Modern batteries last surprisingly long. I assumed my 5yo pixel 4a was at 50~60% capacity based on feels and the adb batterystats printout estimated the same (with 1600 charge cycles). But when I actually measured the screentime / charging wattage, it was still at 80% capacity. Even confirmed this by replacing the battery and running the same tests.
I think part of the reason the old battery felt worse is that it would read 100% when it was only ~85% full then trickle charge at like 2w for another 90 minutes.
I always wanted to see long form content on this. Like I'm sure the cherrypicked clips make it look more impressive than reality but I've owned enough pets to believe they can understand more than just individual words / tone.
I've had more success hosting an invidious instance and using the materialious client for mobile. And a bonus is that it comes with sponsorblock built in.
Yeah I think most readers care more about consistency than realism. Being completely realistic makes consistency easy but a harder sell in terms of entertainment.
Maybe one way to view consistency is modelling the story world as a network of criss-crossing character threads. Where one axis is time and the other(s) are uh something? Anyways, consistency is how predictable (smooth / linear) the thread is. We follow the main character's thread pretty closely so that thread is allowed to suddenly curve (plot twist) without risk of losing the reader. We only catch glimpses of the supporting cast / antagonist so those have to be either predictable or the narrator has to backtrack and reveal any twists where necessary. And maybe how intricate yet well-behaved this network appears is what gives the feeling of stories coming alive. Or maybe I'm just on too much caffeine and ranting.
I justify quaternions to myself with the intuition from [1]. In essence quaternions represent rotations in 4D, where multiplying by a "unit" (i,j,k), rotates two distinct planes by 90 degrees. The reason introducing a single unit j doesn't work is the same reason this rotation-is-multiplication trick doesn't work in 1D (or really any odd-number of dimensions). Anyways if we call this 4th axis w and pick a simple rule like ij = k then we get some nice properties like
- multiplying by i rotates xy + zw planes by 90 degrees
- j rotates xz + yw
- k rotates xw + yz
- 1 rotates nothing
Notably this definition covers all 6 unique planes. But if we want to rotate only a single plane, we have to make up a new property, something that lets us rotate say xz by 90 and yw by -90. So we make up another rule that multiplying by a unit on the right does this, which algebraically looks like ij = -ji. This is incidentally why the rotation formulas have 1/2 everywhere, because if we want to rotate xy by 90, we multiply on the left by i/2 then on the right by -i/2.[1] https://www.reedbeta.com/blog/why-quaternions-double-cover/
eg this is what I'm currently using to alias my home network
# Rewrite 192.168.150.?? as 192.168.50.??
PreUp = iptables -t nat -A PREROUTING -d 192.168.150.0/24 -j NETMAP --to 192.168.50.0/24
PostDown = iptables -t nat -D PREROUTING -d 192.168.150.0/24 -j NETMAP --to 192.168.50.0/24
With other wg peers getting a 192.168.150.0/24 entry in the AllowedIPs for this gateway (if needed).Couldn't you tell the WG devices that 192.168.2.0/24 refers to the 192.168.1.0/24 network at customer A, such that 192.168.2.55 is routed to 192.168.1.55. Same for 192.168.3.0/24 referring to customer B.
I think this is what the article is getting at but I don't see the value in manually assigning an alias to each non-wg device, versus assigning an alias to the entire LAN.
I prefer stories that are either about evoking feelings (adventure, romance, slice of life) or about exploring ideas / what-ifs (scifi, fantasy). And ideally stories at the extremes of this spectrum. Maybe I've read too many but ones in the middle tend to be too cliched to hook me.
But yeah I agree that the audio file itself probably isn't super important to keep secret. After all, it's not that hard to find cd rips or at worst, a youtube version to download.
> Free Download Wallet 460 SVG vector file in monocolor and multicolor type for Sketch and Figma from Wallet 460 Vectors svg vector
Plus I've found the license listed isn't always accurate. For example the emojione icons are listed as MIT. But the actual repo says CC 4.0, with the non-artwork being MIT.
Given the timing, I assumed it was Spotify trying to prevent the release of their dataset but apparently not.
They don't even share the same state and can be set to conflicting values, with the oldest looking one usually taking priority.
Disabling screen timeout is even worse since there's additionally the screensaver settings to muddy the waters.
For reference I have 3 monitors (2x 4k, 1x 1080p) and am currently using Debian / Wayland and Ubuntu / X11.