Show newer

10/? Checking the code, there was nothing obvious. Adding a test, it seems to pass same as the SDK tests. It seems the bug might be somewhere in Electron or in Agregore's code. This means I need to start setting debug logs and breakpoints in the browser since my tests are non existent there.

github.com/RangerMauve/hyperco

Show thread

9/? Trying to update the hyper-sdk tests to use drive instead of core isn't yielding the issue either. Maybe something in hypercore-fetch is adding more side effects than just initializing the drive? Gonna switch to hypercore-fetch and try to reproduce there.

github.com/RangerMauve/hyper-s

Show thread

8/? This will then invoke the `createKey` function inside hypercore-fetch via the protocol handlers. Setting a breakpoint inside the scratchpad, it seems this function never resolves.

github.com/RangerMauve/hyperco

Show thread

7/? The `showAllSaved` button uses the `hyper://` protocol handlers to resolve the local name `dweb_scratchpad` into a P2P archive URL using await fetch(`hyper://localhost/?key=${name}`, { method: 'POST' });

github.com/AgregoreWeb/website

Show thread

6/? I open a page I published using the DWeb Scratchpad and then try to open the scratch pad and click "Look at your saved sites", it doesn't open and the request appears to be frozen. If I open the site via the "Look at your saved sites" page before trying to access its `hyper://` URL it works fine.

hyper://agregore.mauve.moe/apps/scratchpad.html

Show thread

4/?

First test will just reuse the SDK instance in memory but try to clear the core data and reload it from storage by URL. Test passed so it might be due to loading the SDK from scratch from memory (is there a private key cache in corestore?).

github.com/RangerMauve/hyper-s

Show thread

3/?

Since the SDK is meant to work in both node.js and bare-kit, I'm using the `brittle` module for tests.

npmjs.com/package/brittle

Show thread

2/? Step one: Reproduce the issue. I'll see if I can make a test to reproduce what I'm seeing in @agregore , but with the lowest level primitive I use for hypercore dev, hyper-sdk

github.com/RangerMauve/hyper-s

Show thread

Gonna try something new. Live tooting my debugging session. Today's bug: If I open a `hyper://` URL that I should have the private key for without actually giving the `name` first, it won't generate the key and marks the drive as read only. Or something like that?

How did I not hear of the #DigitalFairnessAct until today? Intriguing legislation idea, it's a bit mind-boggling to think that something as prevalent as dark patterns and addictive design in software could be criminalised, but yet I feel strangely liberated imagining myself in a world—or at least a European Union—without them.

I looked at the "Fitness Check" publication it is derived from and wow, it really gets into the major issues with the modern web. Hoping something good comes of this.

My only complaint with head mounted display glasses is they don't seem to be made for people with large nose bridges

If open source biotech was a thing I'd totally install the equivalent of a new liver or whatever and deal with the debugging.

To all the people suggesting Tidal as a replacement for Spotify being fascist: fyi its owned by billionaire Jack Dorsey so probably not what you think your going for. Soulseek and Bittorrent are your friends...

Fun fact: the only method I have to shut down my machine other than hard shutdown via the power button is to open a terminal and type "shutdown now".

Lol the default arch linux package doesn't run because of some sort of protobuf python bindings mismatch 🤷

Show thread

TIL about this open source tool that helps you see what connections app make and block them if they're sus.

github.com/evilsocket/opensnit

This mastodon client came to me in a fever dream.
I had to waste the whole day, but now you too can bunnyhop through your fedi feed.
https://files.burning.homes/experimental/hall-of-toots/index.html

* webgl required
* mobile somewhat supported
* yes this html file is a whole client and the entire source
* it would run smoother and look better if you launch it locally so it don't have to bypass CORS, but oauth won't work and you'll have to use access token
* you can click urls and images
* you don't really have to login, and can just hop around the public timelines (i.e. Instance = https://mastodon.social , empty token, Federated timeline, Use Access Token)
* but I'm too tired to support CW and sensitive, so it'll kinda be full of porn
* admins will hate you
* 429 error means you won
* I am in dire need of salvation

they won't tell you this but cannibalism is legal on mastodon

Been working from the couch with my head mounted display more. My cat has been loving the opportunity to cuddle up on my lap while I code 😻

Show older
Mauvestodon

Escape ship from centralized social media run by Mauve.