jb55 on Nostr: Another fun one i just thought of immediately after regaining consciousness: 1. Find ...
Another fun one i just thought of immediately after regaining consciousness:
1. Find first note on your account
2. Pick a random timestamp between that note and now:
3. Create a filter modifier like so:
{until: <random-timestamp>, limit: 1}
This would give you a “random” note from everything you’ve ever posted, ignoring the fact that your posts may not be uniformly distributed through time.
Might be a fun algo timeline modifier: “show me a random post from this feed”
This just inspired damus' first nostrscript, implemented as a timeline constraint:
https://github.com/damus-io/nostrdb/issues/62
you will be able to apply this "on this day" algo to any timeline (profile pages, contact list, notifications, other lists, etc)
note1mys…wuh9
Published at
2024-12-31 09:52:49Event JSON
{
"id": "576fe4856fe710e326e98ad691393103a7915d7b507bacfad6f174cbc9962893",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1735638769,
"kind": 1,
"tags": [
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "Another fun one i just thought of immediately after regaining consciousness:\n\n1. Find first note on your account\n2. Pick a random timestamp between that note and now:\n3. Create a filter modifier like so:\n\n{until: \u003crandom-timestamp\u003e, limit: 1}\n\nThis would give you a “random” note from everything you’ve ever posted, ignoring the fact that your posts may not be uniformly distributed through time.\n\nMight be a fun algo timeline modifier: “show me a random post from this feed” nostr:note1qnygdp6fp3w3tkur5hh8vc9y4fyxcxlt2qqy47fnvy4dkj6w7m8sanz0a8",
"sig": "df6a91707cf3e5ed8397875c598ad6b931134b2c1802754bc857852002dbb9e504b455dcf005c00d5720a44ce9105ac2824a1f2cd27c3643fa2545ec00f2d36d"
}