Prime

joined 2 years ago
[–] Prime 2 points 22 hours ago

Found it. It's in the cog menu, very top left

[–] Prime 3 points 22 hours ago (1 children)

Almost nobody did anything in response to the recent censorship, especially not if it could hurt them politically or financially. But GOG did something. Stop complaining, you should congratulate and support them on taking the risk for a good fight. I wish it wasn't, but they currently are a one of very few rays of light.

[–] Prime 1 points 22 hours ago

You'll have to explain that. In my mind they have been a rather positive force all the time.

[–] Prime 2 points 22 hours ago (1 children)

Is there a way to redeem in Galaxy? I did not see it

[–] Prime 1 points 22 hours ago

They have a list of countries where games are not legal and cannot be bought/redeemed. Two stand out with almost all games: One is China. The second is Germany. I hate this shitty conservative self-righteous government and its prude regulations.

[–] Prime 2 points 1 day ago (1 children)

18 years latency should be added

[–] Prime 6 points 1 week ago (1 children)

This sounds like a misunderstanding of gdpr to me?

[–] Prime 1 points 1 week ago

It's ok to do a partial quote. Leave out the dot.

[–] Prime 0 points 1 week ago

Cannot always be disabled

[–] Prime 17 points 2 weeks ago (1 children)

I got a bit good at a board game called Go, it's the oldest board game still played. In Asia it is really big and has its own sports tv channel. I'm top 500 or so in Europe. Try it maybe, it's quite fun!

[–] Prime 3 points 3 weeks ago (1 children)
[–] Prime 4 points 1 month ago

Apply for compute time at a university cluster. It is free and usually easy.

9
submitted 3 months ago* (last edited 3 months ago) by Prime to c/dotnet@programming.dev
 

I want to take a screenshot. In Windows, that's a simple Graphics::CopyFromScreen call.

In Linux, I feel a little confused on how to do this. It seems there is a principal and stark distinction between X11 and Wayland, so I have to include both code paths. For either, it seems there is quite a lot of boilerplate code, often tagged as 'may break depending on your configuration, good luck'.

Effectively, what I found is recommended most often is to call ffmpeg to let it handle that. I'm sure that works, but I find it rather unpalatable.

I find this strange. Taking a screenshot is, in my mind at least, supposed to be a straightforward part of a standard library. Perhaps it is, and I just completely missed it? If not, is there a good library that works out-of-the-box on most variants of linux?


Update: Thank you all for the input. I eventually went with calling ImageMagick. It is fast, easy to use, well documented, and supports capturing arbitrary displays with little effort.

 

Same post was allowed when the phrasing "... let ffmpeg do the job" is changed to "let ffmpeg handle it". So the removal seems to be purely keyword-based, in a resoundingly stupid fashion.

view more: next ›