How do I package up a Perl-TK app for macOS?
2 direct replies — Read more / Contribute
|
by perltux
on Nov 13, 2025 at 17:57
|
I have a GUI based application written by me in Perl, using Perl-Tk for the GUI. This application runs well on Linux, Windows and macOS (on macOS it requires an installed X11 server for the GUI).
In order to distribute this application to Windows users I packaged it up into an exe file using ParPacker and this works really well, no complaints from the users.
I tried using ParPacker on macOS but ran into problems with X11 and other libraries not being found as their location varies depending on the X11 server installed and depending on which packaging system is being used, there is XQuartz and there are X11 servers in Homebrew and Macports and there are even various distributions of Perl and related modules (the limited Perl included in macOS and the Perl packages from Homebrew and Macports), each using different paths and apparently also different library versions.
It seemed very much a mess to me and even after days of trying I wasn't able to find a satisfactory solution.
So has anybody successfully packaged up a Perl-Tk application for macOS and if yes how exactly did you do it, using ParPacker or some other method?
Any hints would be very helpful. TIA.
|
MAX and GROUP BY in DBIx::Class
4 direct replies — Read more / Contribute
|
by Anonymous Monk
on Nov 13, 2025 at 15:18
|
I have what should be a simple question, but I can't figure out how to do it in DBIx::Class (which I'm using elsewhere in this code, so I need it for this too).
I have a single table, that (for this purpose) contains an ID, a name, and a score (and other data not relevant for this question). I want to get the Result object for the highest score for each name. That's it. So, for the data
+----+-----------+-------+
| id | name | score |
+----+-----------+-------+
| 1 | John | 24 |
| 2 | John | 60 |
| 3 | Mary | 4 |
| 4 | John | 10 |
| 5 | Kate | 30 |
| 6 | Mary | 20 |
+---+------------+-------+
I want to get back rows 2 (John's highest score), 5 (Kate's highest (and only) score), and 6 (Mary's highest score).
That is, the SQL would be something simple like SELECT MAX(score), name FROM scores GROUP BY name; (except that I want to get the Result object, not the actual column values).
How can I accomplish this? The docs are pretty sketchy about grouping in general, and I can't find a good parallel anywhere.
|
Update Old Selenium Tests
3 direct replies — Read more / Contribute
|
by hbarnard
on Nov 12, 2025 at 04:38
|
I have a fairly substantial, but 'old', set of tests for Cclite. They use, or used use Test::WWW::Selenium; which now doesn't seem to find a webdriver on any version of Selenium that I download
Error requesting http://10.0.0.65:4444/selenium-server/driver/:
404 Not Found
My tests all take the form of
$sel->open_ok("/cgi-bin/cclite.cgi");
$sel->type_ok("registry", 'dalston');
$sel->type_ok("userLogin", $user);
$sel->type_ok("userPassword", "password");
$sel->submit("form") ;
I'd really like to find some way to use/re-use them without too much extra work. I'm prepared to do a little Java and recompile Selenium if it comes to that
|