Prime

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

SMB is the linux version of Windows File Sharing. https://en.wikipedia.org/wiki/Samba_(software) It is rather easy to use. Check out the manual, it is long but actually good. On linux, use smbclient to mount a remote share. It's also quite easy to set up servers that can be accessed from both Windows and Linux, with lots of options on how to handle/simplify permissions.

CIFS is something similar that seems to be faster, but I've only used it as a client. On Windows, WinSCP works great with it. On linux you can use mount CIFS remote directories locally like this: mount -t cifs //HOSTNAME/REMOTEPATH LOCALPATH -o username=USERNAME,domain=DOMAIN.

Ask google or a good LLM for the details on this stuff :)

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

I use sshfs and smb and cifs

[–] Prime 2 points 3 days ago

I think that's what the gp comment tried to say but phrased it wrongly. Maybe.

[–] Prime 3 points 5 days ago (1 children)

Sorry, could you summarize how?

[–] Prime 6 points 1 week 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 ;(

[–] Prime 3 points 1 week ago (18 children)

How did this come to be?

[–] Prime 10 points 2 weeks ago (3 children)

Microsoft is doing this today. I can't link it because I'm on mobile. It is in dotnet. It is not going well :)

[–] Prime 1 points 2 weeks ago

Matrix multiplication should be the other way around, i.e. not like cascading functions. Oh and function cabbages should also be the other way around :) i prefer to read it not like a manga

[–] Prime 1 points 2 weeks ago
[–] Prime 2 points 2 weeks ago

You are right but that is a dangerous proposal because math is just applied philosophy :)

[–] Prime 1 points 1 month ago

To be fair these abbreviations are ubiquitously used.

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

No. If it does not work you can't be sure if it is your fault or the device is broken. This will lead to support costs for the manufacturer

9
submitted 1 month ago* (last edited 1 month 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 ›