Damus
anon-dev profile picture
anon-dev
@anon-dev

Software engineer. Dark mode maximalist.

Relays (7)
  • wss://nostr.wine/ – read
  • wss://nos.lol/ – read & write
  • wss://relay.nostr.band/ – read & write
  • wss://relay.damus.io/ – read & write
  • wss://nostr.fmt.wiz.biz/ – read & write
  • wss://nostr.mutinywallet.com/ – read & write
  • wss://relay.primal.net/ – read & write

Recent Notes

anon-dev profile picture
One of the most powerful features of python is that you can drop free functions to make modular changes.

Let's say you are dealing with batch processing and using chunked to make the chunks, but now you need to be more specific, you can simply create a, say, specific_chunked function, test it and drop replace chunked with specific_chunked
anon-dev profile picture
More than two hours lost -and counting- to debug an issue that consisted on an integer being casted to a string, then consumed to do a database lookup as a integer again.

And that is not even the execution path I'm trying to make work.

Lesson: don't do arbitrary, uncommented castings. If its an integer is an integer no matter what layer you are in or how you choose to represent it.