Email or username:

Password:

Forgot your password?
1,576 posts total
Alex Gleason
Rendering Mastodon API relationships from Nostr events.
Alex Gleason
My friends, it has been an incredible year. Thank you to each and every person who made this year amazing. I'm incredibly grateful for the opportunities I was given this year, to the people that lifted me up, and for everyone fighting for freedom online. After years of fighting, I believe the tides are turning. Don't give up hope. 2024 will be our year of victory! 🎉 🎆 👍
Alex Gleason
It's almost New Year, and in just a few hours Steamboat Willie will enter the public domain: https://www.msn.com/en-gb/news/other/disney-to-lose-copyright-of-early-version-of-mickey-mouse/ar-AA1mfxRH

Steamboat Willie was originally going to enter PD in 2004, but Disney got passed the "Mickey Mouse Protection Act" in 1998 to stop that from happening. They extended the length by 20 years, and it is now 20 years later, so Disney is finally forced to swallow what it chewed.

To celebrate this momentous occasion, I present to you "Copying is Not Theft" by @nina :
It's almost New Year, and in just a few hours Steamboat Willie will enter the public domain: https://www.msn.com/en-gb/news/other/disney-to-lose-copyright-of-early-version-of-mickey-mouse/ar-AA1mfxRH

Alex Gleason
Nostr conditional tag index. Tags are indexed manually, so I can index the minimum amount of tags possible for any situation, allowing me to do it a lot more often and index uncommon tags when I care about it.
Alex Gleason
Will Swifties on TikTok ever WAKE UP that copyright is the root problem, not the music industry?
anime graf mays 🛰️🪐
@alex tonight at midnight, steamboat willie mickey mouse belongs to you and soapbox, and me. and poast and all of poasts users
Alex Gleason
I try to keep relay.mostr.pub online, but I don't stress about it too much if it goes down. The bridge itself is a separate service, and I worry only if that goes down. The bridge also publishes to wss://relay.shitforce.one and wss://nostr.coinfundit.com in addition to relay.mostr.pub, so please add one of those additional relays for redundancy. Anyway I increased the number of CPU workers and restarted.
Alex Gleason
Here's a shitty graph to explain what I'm trying to say. It has built-in redundancy thanks to Nostr.
Alex Gleason
"WITH RECURSIVE". Interesting. Thank you Mastodong.
Alex Gleason
Threads avatars and uploaded files are unfriendly to media proxies, and only work long term if your server downloads all remote files like Mastodon.
Alex Gleason
I built a small Nostr in-memory datastore based on what I'm calling "microfilters". A microfilter is a filter to get a single note or author, eg `{ ids: ['123'] }` or `{ kinds: [0], authors: ['456'] }`

When an event is added to the store, it generates all possible microfilters for that event (there are just a couple supported so far), then uses stringify-stable on the filters to use as keys. It sets the event on each key.

To do lookups, you have to pass in microfilters. They get converted to keys with stringify-stable then looked up by key. The result is a key-value store that only works for filters with specific criteria. I know I'm not the first to do this. But it improves performance and reliability a lot for the most basic and common queries.

https://gitlab.com/soapbox-pub/ditto/-/blob/main/src/db/memorelay.ts
I built a small Nostr in-memory datastore based on what I'm calling "microfilters". A microfilter is a filter to get a single note or author, eg `{ ids: ['123'] }` or `{ kinds: [0], authors: ['456'] }`

Alex Gleason
I created a Nostr event type to represent a Registered Relay User. It's published by the admin pubkey of the relay itself (NIP-11). It means the relay recognizes the user as having an account, possibly granting it special privileges, and granting it a NIP-05 on the relay's domain.

{
"id": "d6ae2f320ae163612bf28080e7c6e55b228ee39bfa04ad50baab2e51022d4d59",
"kind": 30361,
"pubkey": "4cfc6ceb07bbe2f5e75f746f3e6f0eda53973e0374cd6bdbce7a930e10437e06",
"content": "",
"created_at": 1691568245,
"tags": [
["d", "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6"],
["name", "alex"],
["role", "user"],
["origin", "https://ditto.ngrok.app"],
["alt", "@alex@ditto.ngrok.app's account was updated by the admins of ditto.ngrok.app"]
],
"sig": "fc12db77b1c8f8aa86c73b617f0cd4af1e6ba244239eaf3164a292de6d39363f32d6b817ffff796ace7a103d75e1d8e6a0fb7f618819b32d81a953b4a75d7507"
}
I created a Nostr event type to represent a Registered Relay User. It's published by the admin pubkey of the relay itself (NIP-11). It means the relay recognizes the user as having an account, possibly granting it special privileges, and granting it a NIP-05 on the relay's domain.
Alex Gleason
There are so many YouTube channels of Asian women in the same room playing video game music on a harp, I'm convinced there's some kind of Harp Pimp forcing them to do it.
Alex Gleason
SQLite 3x speedup by using `left join ... not null` instead of `inner join`
Go Up