• 7 Posts
  • 379 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle




  • FizzyOrange got it right. “Screen grab” is nicely asking a graphical system (X11/xorg-server or a Wayland compositor or whatever) via an api to give you an image of either the whole desktop or some particular rectangular part of it. And you can do it 30 times every second (or more) to get a video. OBS uses such APIs to get video from the screen for saving to a file or streaming to Twitch or whatever. Various tools can be used to get screenshots and save them to files. Etc.

    Heck. On my work machine, because they require us to meticulously log the time we spend on individual tasks, I’ve got a script running that uses ImageMagick’s import command to grab screenshots of my desktop and save them to files once every 5 minutes so I can refer back to them while logging my time.

    And as FizzyOrange said, various Wayland compositors have workarounds for the fact that there isn’t (or rather wasn’t until recently) a way to do screen grab in a standard way that would work across all compositors which properly and comprehensively implement the Wayland protocol. I use Sway on my personal machines and it’s based on something called wlroots which has built-in a nonstandard extension to the Wayland protocol that allows screen grab. But once wlroots adopts the new standard way of doing screen grabbing, the nonstandard extension will be unneeded/obsolete.













  • I have a flip-side story.

    As a kid, I had a dog that we’d walk around the neighborhood kindof as a family on a regular basis. There was one spot along the walk where he would kindof flip out. Bark, pull hard on the leash, try to drag me into this one yard. And walk after walk, we had no idea what was possessing this dog.

    So, finally, one day we decided to just let the dog pull us over and show us what it was going for. (This was in someone’s yard, so maybe a little weird and inconsiderate of their property, but yeah.)

    He approached the concrete deer lawn ornament, gave it one confused bite on the neck, and realized the deer wasn’t prey. He was forever cured of the tugging on the leash at that specific spot on the usual walk route.

    That dog wasn’t terribly bright.




  • TootSweet@lemmy.worldtoProgrammer Humor@programming.devA QA engineer walks into a bar
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    3 months ago

    To be fair, the team at the time was all business majors. (Is “Computer Information Systems” what they call that degree most places or just at my alma mater?) I think I was the only computer science major there.

    They’d done a surprisingly admirable job of cobbling together a working e-commerce, loss prevention, customer sercvice portal, orderfulfillment, and CMS suite. And their schooling was in, like, finance, MS Office, and maybe one semester on actual programming.

    None of them had ever learned how to count in binary. Let alone been exposed to 2’s compliment. And there were no QA engineers.

    Oh, there was the sysadmin. He had a temper and was a cowboy. If you asked him to do something, it’d be fuckin’ done, man. But you did not want to know how he made sausage. The boss asked him to set up a way for us to do code reviews and he installed Atlassian Fisheye/Crucible on a laptop under his desk. We used that for years. And a lot of the business logic of the customer-facing e-commerce site lived in the rewrite rules in the Apache config that only he had access to and no one else could decipher if they did have access.

    Those were good times. Good times.