Re:SonyShell – an effort to "SSH into my Sony DSLR"
by SAI_Peregrinus on Wednesday September 24, 2025 @08:43PM
(#45367868)
Nitpick: that's a DSLM, or just "mirrorless" camera. There's no reflex mirror, so it's not a DSLR.
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by simondotau on Thursday September 25, 2025 @06:31AM
(#45371257)
Wrong words are commonplace in English, perhaps my favourite being “modern art” referring to art from 100 years ago. Long story short: don’t worry about it.
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by delta_p_delta_x on Thursday September 25, 2025 @07:12AM
(#45371516)
The more common initialism/abbreviation is MILC, or mirrorless interchangeable-lens camera.
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by Lammy on Thursday September 25, 2025 @12:23PM
(#45374851)
I'm sad that Electronic Viewfinder, Interchangeable Lens (EVIL) didn't catch on
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by anArbitraryOne on Friday October 03, 2025 @01:13AM
(#45459232)
Ooh that's funny. And I say that as an EVF lover
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by JdeBP on Thursday September 25, 2025 @12:03AM
(#45369162)
I wouldn't thank ChatGPT too enthusiastically. As always for LLMs, it has given you code that is rife with common pitfalls (because, after all, they massively plagiarize sources where people post poor code).
For examples: It does not follow the Linux rules for pathname separators, but mixes in Windows-isms. It doesn't properly check whether std::atomic<bool> is actually signal safe on the target architecture. Its unique filename generation has an all-too-common failure mode. It passes by reference only to then make local value copies anyway. It does not correctly follow the XDG Base Directory Specification.
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by beligum on Thursday September 25, 2025 @04:07AM
(#45370397)
Last time I hand started a c++ project was 10+ years ago so let's say it got the ball moving ;) Feel free to help cleanup a bit of my mess if you want, would love to work on this project together with others!
Re:SonyShell – an effort to "SSH into my Sony DSLR"
by pjmlp on Thursday September 25, 2025 @04:24AM
(#45370491)
Some stuff that could be improved with modern C++,
Instead of
static bool file_exists(const std::string &p) {
struct stat st{}; return ::stat(p.c_str(), &st) == 0;
}
Use the filesystem API, std::filesystem::exists(path);
-- https://en.cppreference.com/w/cpp/filesystem.html
This is a one day hackaway helper built on Sony’s official Camera Remote SDK. It sort of mimics an ssh session by connecting to my Sony over Wi-Fi, listens for new photos or specific events... and runs scripts on them.
Thank you Sony, for not forgetting the Linux fan base. And thank you ChatGPT for freshening up my c++ skills!