Live data from Hacker News

Self-updating screenshots

interblah.net

51–60 of 80 posts

Re: Self-updating screenshots

#51
post #30

Wouldn’t a real live render approach work in this case? Have a live preview of your tool inside a rectangle. If the tool is light it should be optimal visually: it will respect browser rendering settings like accessibility parameters or custom addons.

Don't we already have this in HTML5?

Re: Self-updating screenshots

#52
post #15

Earlier quoted context omitted.

I don't think I follow. What is that giving you that you wouldn't get by just having the user click in the application and see its real interface directly? Or are you saying you were embedding one application inside another?

My guess is that it's to ensure that the UI logic crashing or hanging doesn't bring down the safety critical process.

The rendering of the safety-critical application was written completely in C using OpelGLSC (https://www.khronos.org/openglsc/) to render the GUI, and had to pass a formal validation suite (MISRA was the big one IIRC). Simply put, the safety critical application essentially was not allowed to "fail in an unsafe manner" in the DO-178 sense. Using javascript, or some c++ gui library was very much out of the question.

Fortunately, this was not an airborne platform, so failing safely was much simpler than what a true aviation stack or medical stack would need to do.

Re: Self-updating screenshots

#53

Very cool. For the small casual games I've been vibe coding, I always start from a place where the application has a CLI where it can run headless, rendering to offscreen texture, with a a screenshot command as well as performance instrumentation. It takes no time to include all this, and gives the agent a way to automate the ui and inspect important things. It also lets me trivially have the agent update screenshots…

I was toying with a DragonRuby game a while back, and did something like that. But DR also comes with recording reproducible playbacks, screenshotting etc. built in, couple hot reloading and easily being able to inject code into the running game, and it was great putting in place instructions so the agent could run the game fully and show off things for me in addition to allowing it to test things. I think we'll see more and more frameworks built to enable this - it's nice for human development, but it really pays off when you're working with an agent to have everything nicely runnable from a CLI and fully introspectible.

Re: Self-updating screenshots

#54
post #48

Earlier quoted context omitted.

Read the article you’re linking to, it is not relevant here.

Of course it is, he managed to avoid this pitfall, I "press F to pay respect"

"F" usually means somebody did something wrong and you are paying respect to their memory. You don't say it as a form of congratulations.

Re: Self-updating screenshots

#55
The only problem with this idea I can forsee is that the application and therefore the screenshots can change but the documentation does not. For example, if the documentation says press "Options > Customize" but the application is updated so this becomes "Preferences > Advanced" then the screenshot will show the new text but the documentation will still show the old labels. This would be very confusing as it would be hard to correlate what is being shown on the screenshot with the text. If the user saw the old screenshot they could more easily identify that they were looking at an out of date documentation.

Having said that, have a process to automatically grab screenshots is going to make it significantly easier for a developer to update the docs so the motivation to keep the text up to date is going to be much higher.

Re: Self-updating screenshots

#56
Speaking of screenshots.

Can we please agree that the OS should not send any event to applications while a screenshot is being made?

It is very annoying if you press a screenshot button and suddenly menus disappear. Or much worse, the application sends a "screenshot taken" message back to the social media platform.

Re: Self-updating screenshots

#57
post #56

Speaking of screenshots. Can we please agree that the OS should not send any event to applications while a screenshot is being made? It is very annoying if you press a screenshot button and suddenly menus disappear. Or much worse, the application sends a "screenshot taken" message back to the social media platform.

The MacOS built-in screenshot tool has an optional "timed delay" feature, where you can click "screenshot in 5 seconds". With that time, you can open menus, or do anything that requires events to be processed by the application. Very handy for screenshots that require something to be clicked on.

Re: Self-updating screenshots

#58
post #56

Speaking of screenshots. Can we please agree that the OS should not send any event to applications while a screenshot is being made? It is very annoying if you press a screenshot button and suddenly menus disappear. Or much worse, the application sends a "screenshot taken" message back to the social media platform.

The MacOS built-in screenshot tool has an optional "timed delay" feature, where you can click "screenshot in 5 seconds". With that time, you can open menus, or do anything that requires events to be processed by the application. Very handy for screenshots that require something to be clicked on.

I mean, I can probably do the same in X11 using xwd, with a sleep.

But I just don't want my screenshot button to do anything else than taking a screenshot.

Re: Self-updating screenshots

#59

nice, embedding the capture instructions right in the markdown as comments is a dead-simple solution that'll age way better than any fancy external tooling

Except that it's brittle—HTML comments can be stripped. I wonder why they chose this approach vs. frontmatter.

Re: Self-updating screenshots

#60

Same, I've added a .#screenshots derivation. High up-front effort but almost zero maintenance afterwards. Bonus: since you're generating screenshots programmatically anyway, you can generate a pair of each with your app's light/dark theme, and swap them in/out depending on prefers-color-scheme: dark. elements work in GitHub READMEs, too: https://github.com/CyberShadow/CyDo#readme

The in README trick works like magic. Thank you! I'm going to steal it.
Post reply on HN