Thanks for the idea. It looks interesting. SDL2 is available in my repo.
I found this on Stack Exchange:
SDL and GTK are quite different in the sense that SDL just tries to provide you with a drawing surface and device inputs. GTK provides you with a user interface toolkit, that is, it provides you with user interface elements such as scrollbars, push buttons and so on. GTK is also quite complex compared to SDL. So I'd definitely go with SDL here. C or C++.. That's a can of worms I'm not going to open
I also found comments that SDL is easier and lower level, which seem contradictory to me, but which is consistent with the Stack Exchange post. I only want to capture mouse events a la xdotool, so SDL might be just what I need.
I've found some tutorials that aren't Youtube videos, so I'll check it out.
-Gary
Think the easiest, smoothest path for that might be SDL.
On Sat, Mar 25, 2023 at 11:03 AM Gary <saclug(a)garymcglinn.com> wrote:
> I'm thinking about writing a small app that uses mouse input. I could do
> it in Java pretty quickly, but I thought I would broaden my horizons and
> used GTK. I did something with Perl and GTK a very long time ago This
> time, I was thinking of using C. Maybe I'll explore C++ or Rust, but for
> such a small app, I think it is probably overkill. I never learned C++ and
> I'm wondering if I should invest in it or just learn Rust, That is
> probably for another day anyhow.
>
> My question is about GTK versions. Normally, I would just take the most
> recent version of GTK and go from there, but it seems like there are
> backwards compatibility issues. My devel system seems to have libraries
> for 2 and 3 at least. I just ran into a bunch of version incompatibility
> issues with XPRA. Am I going to have more that the usual amount of pain
> with GTK and should I pick a version other that 4? I am assuming I can
> just install 4 on the deployment system and it will happily live with the
> other versions.
>
> -Gary
>
I'm thinking about writing a small app that uses mouse input. I could do it in Java pretty quickly, but I thought I would broaden my horizons and used GTK. I did something with Perl and GTK a very long time ago This time, I was thinking of using C. Maybe I'll explore C++ or Rust, but for such a small app, I think it is probably overkill. I never learned C++ and I'm wondering if I should invest in it or just learn Rust, That is probably for another day anyhow.
My question is about GTK versions. Normally, I would just take the most recent version of GTK and go from there, but it seems like there are backwards compatibility issues. My devel system seems to have libraries for 2 and 3 at least. I just ran into a bunch of version incompatibility issues with XPRA. Am I going to have more that the usual amount of pain with GTK and should I pick a version other that 4? I am assuming I can just install 4 on the deployment system and it will happily live with the other versions.
-Gary
Hi Folks,
I want to use gmail to send myself backup logs, since my mail server is not available during backup. I continue to get a credential error, but the credentials I am using are correct. I suspect that this is the result of "two-factor" authentication, which I am not using on gmail, but which has caused the "allow less secure access" to be disabled. I could use my ISP and configure an "Upstream SMTP-Smart Host", but then I have a detail to remember and reconfigure should I ever change my ISP.
Is anybody doing this successfully, without submitting to "Google Workspaces" or "Microsoft Office 365"?
Thanks for the help,
--
Chris.
V:916.799.9461
F:916.974.0428
A: Because we read from top to bottom, left to right.
Q: > Why should I start my reply below the quoted text?
I need to get an USB to 2.1mm Male Barrel Jack Cable. It's similar to
the following.
https://www.adafruit.com/product/2697
Are there any local stores that sell this?
Brian
--
Brian Lavender
http://www.brie.com/brian/
"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."
Professor C. A. R. Hoare
The 1980 Turing award lecture
I installed Virtual Box 7 on my Windoze machine. It seems to work pretty
well.
https://www.virtualbox.org/
I am using it to run Debian hosts.
Brian
--
Brian Lavender
http://www.brie.com/brian/
"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."
Professor C. A. R. Hoare
The 1980 Turing award lecture
Hi Folks,
Once again I seek your experience and advice. I want a tiling window manager, and I have relatively few features: I'd like to be able to
* open an arbitrary number of "panes" and run something in them. Maybe some predefined layouts.
* cycle the panes
* drag one pane on top of another and have that be interpreted as a pane swap.
* resize panes by dragging the boundaries.
I have tried i3 and xmonad and I got no-f******-where with them. It is not clear to me why they didn't work, but I don't thing I want to spend the effort to find out, unless somebody has a very strong endorsement for either of them.
Anybody got any war stories about this that end with a victory?
Thanks for the help,
--
Chris.
V:916.799.9461
F:916.974.0428
A: Because we read from top to bottom, left to right.
Q: > Why should I start my reply below the quoted text?
Hi Folks,
When I comment out a line, vim left justifies the line, but I want the indentation to say exactly where it is! Does anybody now when vim setting is responsible for either
1) Causing the shifty left justification of comments, so I can delete it
2) Suppresses this shifty left justification that is maybe part of some other setting, which maybe does things I want.
I just want it to stop! (-:
Thanks for the help,
--
Chris.
V:916.799.9461
F:916.974.0428
A: Because we read from top to bottom, left to right.
Q: > Why should I start my reply below the quoted text?
Hi Folks,
If I mount a remote share with CIFS, then I can specify the UID and the GID and the UMASK of the files in the paths below the mount point, but these do not reflect anything for the file in its native filesystem. I see gazillions of questions about this, all of which are answered with the tactical answer about UID, GID, and UMASK necessary to let the original poster get on with the limited access they need. There are almost as many postings claiming that CIFS has no other permission/ownership model beyond these global settings.
So, my question is, "Do I have any other mount options?" I want to backup large chunks of my system with "rsnapshot", which is an "rsync" between the stuff to backup and the destination NAS. I need to preserve ownership and permissions, not to mention "case" and "rsync"ing to a CIFS (SaMBa) share is not going to do it. If I "tar" everything, I do preserve file meta data but I pay a penalty in time and space to make copies of relatively static content.
Thanks for the help,
--
Chris.
V:916.799.9461
F:916.974.0428
A: Because we read from top to bottom, left to right.
Q: > Why should I start my reply below the quoted text?
Hi Folks,
I have three NASs: two Buffalo Link Stations, and one ASUStor. It never occurred to me to check for case insensitivity before, but I did and they aren't! This surprises me because case sensitivity is much easier to implement and it does not surprise me because the Windows world is case insensitive.
So, my first question is, "Can I require case sensitivity during the mount command?". I can't find anything about that, but I have seen comments claiming that CIFS mounts are case sensitive by default, but mine clearly aren't.
As an ancillary question, does anybody know if btrfs is case sensitive? I've spent some time looking, but I haven't found any comments I trust. For example, the [ https://en.wikipedia.org/wiki/Btrfs | Wikipedia article ] fails to mention it.
Thanks for the help,
--
Chris.
V:916.799.9461
F:916.974.0428
A: Because we read from top to bottom, left to right.
Q: > Why should I start my reply below the quoted text?