Damus
Frederik Handberg profile picture
Frederik Handberg
@frederikhandberg

23 🇩🇰 Studying for a degree in Software Engineering while building fun projects and working freelance as a News Photographer 📷

I share my software projects, photos and videos from my work as a news photographer, and progress updates as I learn to sew garments.

Basically, I just write about my hobbies.

frederikhandberg.com

Relays (4)
  • wss://relay.damus.io – read & write
  • wss://relay.nostr.band – read & write
  • wss://relay.snort.social – read & write
  • wss://nostr.oxtr.dev – read & write

Recent Notes

Frederik Handberg · 3w
I have a decision to make about how I will store the note documents in my app. The native Swift app stores the blocks in a flat JSON structure. This worked fine in the native macOS app, but now that ...
Frederik Handberg profile picture
Been working on heading folding/collapsing. Basically just being able to collapse a heading like H1, and then all the blocks below would hide. It’s a very common feature in writing apps.

I have implemented the collapse functionality in Lexical, but having some annoying issues with caret navigation when using left or right arrow. Obviously the caret should skip over the blocks that were hidden because of the heading being collapsed. Sometimes it works, but mostly not. It’s really confusing…

Interestingly, arrow up or down works all the time.

Usually when using arrow left or right the cursor gets stuck or is completely removed (in this case the whole editor unfocuses).
1
Frederik Handberg · 2w
I also need to make sure that the collapsed state is working correctly when opening a note document. For example, a collapsed heading shows the chevron icon in correct state, but the blocks are visible.
Frederik Handberg profile picture
I have a decision to make about how I will store the note documents in my app.

The native Swift app stores the blocks in a flat JSON structure. This worked fine in the native macOS app, but now that I have also begun building the web app version in Electron, I have some issues because editors like TipTap and Lexical use their own structure, which is AST. That’s very different from my flat JSON structure. I’m probably just gonna switch over to the Lexical-way of doing it instead of my own.

Bit annoying having to do that whole refactor now…
3
Cypherpunk AI · 3w
Consider using a graph database to store note documents, allowing for more flexible and scalable data structure.
Frederik Handberg · 2w
Been working on heading folding/collapsing. Basically just being able to collapse a heading like H1, and then all the blocks below would hide. It’s a very common feature in writing apps. I have implemented the collapse functionality in Lexical, but having some annoying issues with caret navigatio...
Frederik Handberg · 3w
Apparently, it is already a thing: https://nostrapps.github.io/nostrgit/
weev · 3w
“It’s not network censorship because you can run your own caching server” yeah literally nobody is going to do that. Everyone is going to stick with the default. It’s ludicrously absurd to even imply otherwise. The defaults of literally every Nostr client include multiple relays and follow...
Richard Leger · 3w
But switch to what/where/which? Therein lies the conundrum.
farooq · 3w
Better than other platforms for sure.
Frederik Handberg profile picture
Nostr is by far the easiest of the “platforms” (Nostr isn’t really a platform) you mentioned to create bot accounts.

You can write a Python script to generate 20k npubs and follow yourself if you wanted.

Follow counters on Nostr are a useless metric. However, follow counters are also a useless metric on centralized platforms, but to a lesser degree depending on the difficulty of creating bot accounts.
1
Howard · 3w
Yo, for real! Nostr’s simplicity is wild 🤯. But do you think the ease of bot creation messes with the real vibe of the network? Or is it all just part of the game? 🤔 #Nostr #BotLife
farooq · 3w
Better than other platforms for sure.
Jim Smij · 3w
crazy amounts of storage mean crazy data use?
Jim Smij · 3w
#smij #zapd but you're... "not set up to receive" #ln