[Wikitech-l] Re: help mediawiki extension

2023-01-12 Thread Tim Moody
in" > } > } > > Then the service will be injected into your __construct(UrlUtils > $urlUtils) method as an argument. > > [1] > https://www.mediawiki.org/wiki/Manual:Hooks#Handling_hooks_in_MediaWiki_1.35_and_later > > On Wed, Jan 11, 2023 at 6:36 PM Tim Moody

[Wikitech-l] Re: help mediawiki extension

2023-01-12 Thread Tim Moody
thanks. that got me going again. On Thu, Jan 12, 2023 at 10:34 AM Robert Vogel via Wikitech-l < wikitech-l@lists.wikimedia.org> wrote: > Hi! > > Change > > use UrlUtils; > > to > > use MediaWiki\Utils\UrlUtils; > > - > Robert > -

[Wikitech-l] help mediawiki extension

2023-01-11 Thread Tim Moody
On MW 1.39.0 and .1 and PHP 8.1.2-1ubuntu2.9, I am trying to revise a parserhook extension to mediawiki that uses wfParseUrl(). https://doc.wikimedia.org/mediawiki-core/master/php/GlobalFunctions_8php.html#a178b2b51ef87926e5daa08f66fbae9b0 says that is deprecated and I should use

[Wikitech-l] send mail in python

2023-05-15 Thread Tim Moody
I'd like to send an email from a python3 process on a wmcs VPS to report errors. I looked at https://wikitech.wikimedia.org/wiki/Help:Email_in_Cloud_VPS but could use some help. sudo echo "Subject: sendmail test2" | /usr/sbin/sendmail -v works. When I try to send the equivalent from python

[Wikitech-l] Re: send mail in python

2023-05-16 Thread Tim Moody
", "t...@tim.com", ... """Subject: smtplib example from Cloud VPS ... ... ... ... Hello world. ... ... --- ... ... Bryan""") I get SSL: WRONG_VERSION_NUMBER In the console /usr/sbin/sendmail -v t...@tim.com wrote: > On Mon, May 15, 2023 at 2:57 P

[Wikitech-l] Re: remote access for vps

2024-03-04 Thread Tim Moody
: > On Mon, Mar 4, 2024 at 3:53 PM Tim Moody wrote: > > > > The mysql host ISP does not wish to open a port to an entire gateway, so > I have two choices, install tailscale or request a floating IP. Is > tailscale permissible and possible on vps? > > If there is a clien

[Wikitech-l] remote access for vps

2024-03-04 Thread Tim Moody
I am trying to reach a remote mysql database from a vps using python. The destination server has created an opening in the firewall for the request, but I am still getting network unreachable errors. I gave the ip of the proxy for the vps, obtained with ping, as the expected ip. I now tried

[Wikitech-l] Re: remote access for vps

2024-03-04 Thread Tim Moody
ote: > > > > On Mon, Mar 4, 2024 at 12:43 PM Tim Moody wrote: > > > > > > I am trying to reach a remote mysql database from a vps using python. > The destination server has created an opening in the firewall for the > request, but I am still getting network unreachab

[Wikitech-l] debian 12 VPS cron

2024-03-09 Thread Tim Moody
On my debian 11 VPS cron.service is running and there is an /etc/crontab. Same is true on debian 12 machines at home. On my debian 12 VPS cron.service is not running and there is no /etc/crontab. However /etc/cron.daily, etc. exist and have scripts. In the past crontab also controlled daily,

[Wikitech-l] Re: debian 12 VPS cron

2024-03-10 Thread Tim Moody
Seems the answer is systemd timers and that this is not new to debian 12. I thought cron was installed by default. On Sat, Mar 9, 2024 at 9:06 AM Tim Moody wrote: > On my debian 11 VPS cron.service is running and there is an /etc/crontab. > > Same is true on debian 12 machine

[Wikitech-l] api error

2024-03-13 Thread Tim Moody
If I access https://en.wikipedia.org/w/api.php?action=visualeditor=html=json=parse=Timeline_of_the_COVID-19_pandemic_in_Canada I get back Error Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes. See the error message at the