mckinley

twtxt.net

A guy on the internet. https://mckinley.cc/

Recent twts from mckinley
In-reply-to » @lyse gron does something very similar with JSON. I used to use it more, but these days I just reach for jq instead.

@lyse@lyse.isobeef.org The thing that really unlocked jq for me was learning how to get a TSV output. That was a complete game changer, because it meant I could easily use it in a shell pipeline. I found it to be better than gron for that purpose. Just make an array for each item containing all the values you need and pipe it to the filter @tsv.

$ # Search YouTube using the Invidious API for "never gonna give you up" and write the results to out.json
$ curl -sGL -A 'Mozilla/5.0 (Linux; x86_64) Ladybird/1.0' -o out.json --data-urlencode 'q=never gonna give you up' 'https://farside.link/invidious/api/v1/search' 
$ jq -r '.[] | select(.type == "video") | [ .title, .author, .authorVerified, .videoId ] | @tsv' out.json
Rick Astley - Never Gonna Give You Up (Official Music Video)	Rick Astley	true	dQw4w9WgXcQ
Rick Astley - Never Gonna Give You Up [Lyrics]	GlyphoricVibes	true	QdezFxHfatw
InsurAAAnce & Rick Astley Never Gonna Give You Up	CSAA Insurance Group, a AAA Insurer	true	GtL1huin9EE
[...]

⤋ Read More
In-reply-to » @lyse Regarding YAML's readability, I miss the - for list items constantly when reading YAML files. I'll get confused because I think I'm not in a list or I'm in the previous list item, then I have to go back. List items are all on the same indentation column and one tiny character is the only thing defining a new one. I don't know if others have this problem.

@lyse@lyse.isobeef.org Blank lines help a lot.

⤋ Read More
In-reply-to » @xuu Cool! I particularly like the idea of converting it into a grep-able version, that's very neat. Interesting choice of aligning the colons at the values and not the keys, I think I never came across this.

@lyse@lyse.isobeef.org gron does something very similar with JSON. I used to use it more, but these days I just reach for jq instead.

⤋ Read More
In-reply-to » Question of the day: What configuration file formats do you all like and use?

@lyse@lyse.isobeef.org Regarding YAML’s readability, I miss the - for list items constantly when reading YAML files. I’ll get confused because I think I’m not in a list or I’m in the previous list item, then I have to go back. List items are all on the same indentation column and one tiny character is the only thing defining a new one. I don’t know if others have this problem.

⤋ Read More
In-reply-to » @lyse Lack of comments are definitely a shortcoming of JSON. I don't like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.

I spent hours creating a perfect Prosody config for my most recent XMPP server attempt (about 2-3 years ago now) and I lost that file because I deleted the VPS. That was the only important file on there and I just didn’t think of it when I deleted it. I didn’t have a single backup, not even an old copy I scped back to my PC for editing.

I hope I won’t make that mistake again but I wouldn’t be surprised if I did.

⤋ Read More
In-reply-to » Question of the day: What configuration file formats do you all like and use?

@lyse@lyse.isobeef.org Lack of comments are definitely a shortcoming of JSON. I don’t like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.

The Prosody XMPP server’s configuration file is just a Lua script because Prosody is written in Lua, and that’s excellent.

⤋ Read More
In-reply-to » @mckinley absolute rubbish.

  • (3) Does Nostr require clients to download much more data than, say, Twitter? I can see it being a little more because of signatures, etc. However, text compresses well and clients should cache previous posts, anyway.

  • (4) NIP-96 does HTTP file upload, XMPP style. There are some other advanced features like tipping on posts, custom emojis, and at least three conventions for selling goods and services.

Of course, not everything is available with every client and some of the specs are still being worked out. It looks promising to me, though. I like its distributed model with dumb servers and smart clients. The software will get better over time.

⤋ Read More
In-reply-to » @mckinley absolute rubbish.

All three of your points on usability are definitely true, especially #3. I haven’t been able to find a good TUI client.

Regarding the technical points, it seems like there are mechanisms to address each of them. Please tell me if I’m wrong on any one of these. I have only been learning about Nostr for a short time.

  1. Relays aren’t a single point of failure because a user can (and should) post to many of them. The attacker in a censorship or sabotage scenario would have to take down every one of your relays at once. If they were taken down gradually, you could replace the bad relay with a new one and advertise that one on all the other relays your followers already use. It’s much more resilient compared to twtxt.

  2. Every event contains a signature from your private key, so it’s hard to spoof. NIP-10 provides a method for marking a note as a reply to another note.

⤋ Read More
In-reply-to » QOTD: What are your thoughts on nostr?

Something I’ve noticed about the Nostr people is that they aren’t the same as the software minimalism people. It seems like it’s all JavaScript, Go, and Rust with dependency counts in the hundreds.

⤋ Read More
In-reply-to » QOTD: What are your thoughts on nostr?

@lyse@lyse.isobeef.org

I fear it’s a rather complicated protocol.

The core protocol looks very simple but I’m sure you can get in the weeds with extensions.

you can’t really change your keys without losing your identity

I think you’re right but that seems reasonable to me. Your public key is your identity, similar to certain cryptocurrencies or Tor hidden services. Why would you want to change your key without changing your identity?

⤋ Read More