Searching We.Love.Privacy.Club

Twts matching #Twtxt
Sort by: Newest, Oldest, Most Relevant

@lyse@lyse.isobeef.org OK. So how I have worked things like this out is to have the interface in the root package from the implementations. The interface doesn’t need to be tested since it’s just a contract. The implementations don’t need to import storage.Storage

  • storage/ defines the Storage interface (no tests!)
    • storage/sqlite for the sqlite implementation tests for sqlite directly
    • storage/ram for the ram implementation and tests for RAM directly
  • controller/ can now import both storage and the implementation as needed.

So now I am guessing you wanted the RAM test for testing queries against sqlite and have it return some query response?

For that I usually would register a driver for SQL that emulates sqlite. Then it’s just a matter of passing the connection string to open the registered driver on setup.

https://github.com/glebarez/go-sqlite?tab=readme-ov-file#connection-string-examples

⤋ Read More

So… Cylone Alfred made landfall (whatever that means) last night, and I watched it hit my wife’s Uncle/Aunt’s place on one of the outer isla …
So… Cylone Alfred made landfall ( whatever that means) last night, and I watched it hit my wife’s Uncle/Aunt’s place on one of the outer islands, then move westwards and sort of fizzle out. It’s now been downgrade to a “Tropical Low” ( I guess not good enough for a Cat X anymore?), but we’re still in the Eye of it, and there’s still a swirling mass of winds ( just not as fast). Now we … ⌘ Read more

⤋ Read More
In-reply-to » (#tbyqv7a) @andros Do edits cause problems? I sometimes make them and didn't realize it may be an issue

@lyse@lyse.isobeef.org i appreciate you updating this with that info. been in the weeds at work so haven’t been tracking the conversation here much. let me sit on this for a bit because often times the edits are within seconds of first post so maybe maybe i just allow them within a certain time frame or do away with them all together. i really only do it because it bugs me once i notice the typo :)

⤋ Read More

(#jwfdkuq) This seems to be capable of supporting edits as you noted. But I need to think a bit more (~2am here now) of whether this can be abus …
This seems to be capable of supporting edits as you noted. But I need to think a bit more (~2am here now) of whether this can be abused in any way… The advantage of Content-based Addressing ( hashing the content) is that the hash is then immutable, meaning that we can have integrity that the hash actually represents that content from that author at that time. ⌘ Read more

⤋ Read More

**(#jwfdkuq) “`

default_lang = en discovery_url = https://example.com/discovery/ follow = alice https://example.com/alice.txt ABCDEF12 fo …**

”`

default_lang = en discovery_url = https://example.com/discovery/ follow = alice https://example.com/alice.txt ABCDEF12 follow = alice gemini://example.com/alice.txt avatar =

Image

avatar = gemini://example.com/avatar/alice.png

1 2025-03-03T15:00:00-04:00 {lang=en} Hello, world! Welcome to my twtxt feed. UTF-8 check: é, ö, ü.
2 2025-03-03T15:05: … ⌘ Read more

⤋ Read More

2025-03-02T13:20:00-07:00 (#<fmgas3a https://twtxt.net/user/prologic/twtxt.txt?t=2025-03-02T10:12:13Z>) @<prologic https://twtxt.net/user/prologic/twtxt.txt> its hard to change by consensus. Some things are won in implementation.

⤋ Read More
In-reply-to » These two degenerates … Fucking hell. https://www.youtube.com/watch?v=DZ56ibIel1U

@prologic@twtxt.net I formed my opinion about this before reading/watching any additional media coverage. And yes, this is extremely bad. These two have no place on the “world stage”. They are deciding on our future. (And I am well aware that my country is heading into a similar direction – unless we stop it.)

⤋ Read More