Prime

joined 2 years ago
[–] Prime@lemmy.sdf.org 1 points 16 hours ago

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

[–] Prime@lemmy.sdf.org 12 points 2 days ago (1 children)

I'm a researcher. Nature is good but it still has mistakes. Sometimes they are a tad sloppy but they are still far, far better than what you may know from popular science. In general, some mistakes are normal and expected because science works by finding and fixing mistakes, not by immediately discovering ultimate truth. This applies even in math.

[–] Prime@lemmy.sdf.org 0 points 2 days ago

They prominently need grants for phd students

[–] Prime@lemmy.sdf.org 2 points 2 days ago

If at all, this applies only to profs, which is a tiny subset of researchers and insanely hard to get into. Everyone else is paid shit and 80+% depend on grants. Source: am researcher

[–] Prime@lemmy.sdf.org 15 points 4 days ago (4 children)

Is this an LLM?

[–] Prime@lemmy.sdf.org 3 points 6 days ago

Missing setuid. You have just bricked your system good job

[–] Prime@lemmy.sdf.org 10 points 6 days ago

I think that was a reasonable reaction?

[–] Prime@lemmy.sdf.org 12 points 1 week ago

The word fuck should not be censored by anyone. It is an official statement.

[–] Prime@lemmy.sdf.org 20 points 1 week ago

Copyright also applies to freely viewable material

[–] Prime@lemmy.sdf.org 1 points 1 week ago

Small correction. Dark cloth are no problem. They block more sunlight.

[–] Prime@lemmy.sdf.org 3 points 1 month ago (1 children)

Sorry, could you summarize how?

[–] Prime@lemmy.sdf.org 6 points 1 month ago (3 children)

It is called windows 2000 explorer and it's great for file operations :) In Linux i have yet to find a really good replacement ;(

9
submitted 2 months ago* (last edited 2 months ago) by Prime@lemmy.sdf.org 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 ›