HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Frotag

no profile record

Submissions

Relax NG is a schema language for XML (2014)

relaxng.org
40 points·by Frotag·4 เดือนที่ผ่านมา·26 comments

The free media database that anyone can edit

omdb.org
1 points·by Frotag·4 เดือนที่ผ่านมา·0 comments

Why Do Quaternions Double-Cover?

reedbeta.com
5 points·by Frotag·7 เดือนที่ผ่านมา·0 comments

Computer Graphics from Scratch

gabrielgambetta.com
3 points·by Frotag·7 เดือนที่ผ่านมา·0 comments

Spectrogram Phases

graemephi.github.io
2 points·by Frotag·8 เดือนที่ผ่านมา·1 comments

PEP 764 – Inline typed dictionaries

peps.python.org
1 points·by Frotag·9 เดือนที่ผ่านมา·0 comments

Transformers for Software Engineers

blog.nelhage.com
1 points·by Frotag·9 เดือนที่ผ่านมา·0 comments

comments

Frotag
·3 เดือนที่ผ่านมา·discuss
"The Baby-Eating Aliens" also explores hypothetical differences in alien culture. It's also written in the same absurd conversational style.

https://news.ycombinator.com/item?id=469761
Frotag
·3 เดือนที่ผ่านมา·discuss
Conveniently M$ lets you buy a signing certificate to fix this.

https://stackoverflow.com/questions/48946680/how-to-avoid-th...
Frotag
·4 เดือนที่ผ่านมา·discuss
Some utility stuff I copy paste between projects:

  - 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.
Frotag
·4 เดือนที่ผ่านมา·discuss
Alternatively, dns block the update domains, wait a few months to few years for someone to discover an exploit for rooting, root and sideload.
Frotag
·4 เดือนที่ผ่านมา·discuss
From what I understand, Svelte 4 calculated dependencies at compile time. Whereas Svelte 5 does it automatically at runtime based on which values are accessed in tracking contexts (effect / computed value callbacks). This means objects marked as reactive have to be wrapped in proxies to intercept gets / sets. And plain values have to be transformed to objects at compile time. The deps are also recalculated after every update, so accessing state in conditionals can cause funkiness.

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.
Frotag
·4 เดือนที่ผ่านมา·discuss
IME androids dont respect static routes published by the router. I guess self hosting DNS might be more robust but I usually just settle for bookmarking the ip:port
Frotag
·4 เดือนที่ผ่านมา·discuss
> It's full of regurgitated fantasy tropes, the writing and characters seem simple, and there's a forced world building with what feels like an infinite and boring back story, with no movement to justify it.

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!
Frotag
·4 เดือนที่ผ่านมา·discuss
There's a subreddit called /r/hfy for more positive scifi. It tends to be indie stuff and I think it goes a little too far in the other direction but at least some of the top-voted ones are interesting.

Off the top of my head...

https://www.royalroad.com/fiction/32973/synchronizing-minds-...

https://www.royalroad.com/fiction/67180/here-be-dragons-book...
Frotag
·4 เดือนที่ผ่านมา·discuss
Funny timing, I was just thinking about this over dinner while scrolling the wiki list on [clarke / seiun / nebula] awards for the thousandth time.

> [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.

[0] https://en.wikipedia.org/wiki/Contact_(novel)
Frotag
·4 เดือนที่ผ่านมา·discuss
rclone has a web gui https://rclone.org/gui/
Frotag
·4 เดือนที่ผ่านมา·discuss
> if you enable battery changes, a current gen device can easily last a decade), people will care.

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.
Frotag
·5 เดือนที่ผ่านมา·discuss
> the informal word-button experiments suggest that non-avian animals like cats and dogs

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.
Frotag
·5 เดือนที่ผ่านมา·discuss
As an outsider, the fact that cross-device stuff just works in apple's ecosystem is probably the biggest thing I'm jealous of. It's crazy that something as simple as screen casting is still hit or miss when it comes to (android / linux) <-> (web os / chromecast / fire stick)
Frotag
·5 เดือนที่ผ่านมา·discuss
I've been meaning to set up some nginx-level oauth. I have some self-hosted apps I want to share with friends / family but forcing them to remember a user / pass (basic auth) or run a vpn is a bit too much friction.
Frotag
·5 เดือนที่ผ่านมา·discuss
Yeah the handful of times I've tried a split keyboard, I dropped it because of this. Like I use a different hand for the 'y' key if I'm typing my (left index) versus yes (right index).
Frotag
·5 เดือนที่ผ่านมา·discuss
IME newpipe breaks every few weeks or so, presumably because of some youtube change / obfuscation. Or at least that was the case a few years ago.

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.

https://invidious.io/

https://materialio.us/
Frotag
·5 เดือนที่ผ่านมา·discuss
> No need for "serious justification" unless you're trying to pull it out of nowhere halfway through the plot. If it's there from the start, there's no problem.

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.
Frotag
·5 เดือนที่ผ่านมา·discuss
> Quaternions are the same idea just in 3 dimensions (so with 3 imaginary units i j k, not just i, one per plane).

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/
Frotag
·5 เดือนที่ผ่านมา·discuss
As an american it's pretty cool to see how citizens can force representatives to debate an issue. But it's too bad even the most popular petitions just have "lol no" as the response.

https://petition.parliament.uk/petitions?state=all
Frotag
·5 เดือนที่ผ่านมา·discuss
Yeah so instead DNAT, use NETMAP on the gateway device to that LAN. (Sorry if I'm abusing the terminology, I only do this stuff like once a year for homelab.)

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).