You are viewing archived messages.
Go here to search the history.

Marek Rogalski 2025-04-30 16:50:56

I'm working on nice UI for working with assembly instruction cards recently. Today I've spent some time fiddling around with Ivan Reese's github.com/ivanreese/knob trying to use it for switching condition codes in a smooth manner. Condition codes are discrete values, and there are just 16 of them but it feels nice to switch them out in a continuous manner. Still not finished but the results look interesting so sharing them here. (code)

A key component of the gesture logic is fitting a circle to a bunch of points. Turns out it's really hard. I've wasted quite a bit of time before stumbling on Nikaolai Chernov's excellent home page: people.cas.uab.edu/~mosya/cl/CPPcircle.html . Strongly recommend bookmarking this one - you never know when you'll have to fit a circle to your data!

📝 C++ codes for fitting ellipses, circles, lines

C++ code. Fitting lines. Fitting circles. Fitting ellipses. Errors-in-variables regression. EIV.

Marek Rogalski 2025-04-30 16:53:30

No idea why it uploaded as binary. Here is a re-encoded version.

🎥 out.mp4

Tom Larkworthy 2025-05-01 10:42:32

I've finally built my converter for Observable notebooks to Lopecode aka Jumpgate. Feels good (blusky post). Its 2:45 sorry, but it gives a full project overview.

Marek Rogalski 2025-05-01 11:39:23

Looks awesome. Since it's a single file and can be worked on offline, I assume it's also using the same file for storing the updated state. Is that correct? If so then I'm wondering how have you solved the windows write lock that prevents opened files from being written to.

Tom Larkworthy 2025-05-01 12:11:26

no to save state you have to reserialize, so its a new file (the timestamp is appended to the filename). If I added a proper history feature I would use indexdb so then you could replay edits on startup, but thats not really a priority ATM. Next priority will be making the authoring experience actually good and converting all my notebooks over.