Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#196 2020-04-14 14:14:22

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

Demo sites now migrated to Frankfurt.

Previous demo server in Amsterdam will be powered off and given a viking funeral wiped when DNS updates have rolled out fully, likely Thursday this week.

Offline

#197 2020-04-14 14:46:23

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

All demo sites now running on Nginx 1.17.10.

Demo server tech stack (current as of post timestamp):

Site HTTP Database PHP
Release Demo Nginx 1.17.10 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)
Beta Demo Nginx 1.17.10 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)
Dev Demo Nginx 1.17.10 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)

Offline

#198 2020-04-21 15:32:05

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

All demo sites now running on Nginx 1.18.0.

Demo server tech stack (current as of post timestamp):

Site HTTP Database PHP
Release Demo Nginx 1.18.0 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)
Beta Demo Nginx 1.18.0 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)
Dev Demo Nginx 1.18.0 Percona Server 8.0 PHP 7.4.5 (using PHP-FPM)

Offline

#199 2020-04-23 15:48:35

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

Running maintenance on demo server. Expecting downtime of 1 to 2 hours.

Edit: done.
Edit: one minute off two hours!

Last edited by gaekwad (2020-04-23 17:47:19)

Offline

#200 2020-04-23 23:01:53

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,632
Website

Re: Textpattern CMS demo site

gaekwad wrote #322682:

Edit: one minute off two hours!

Did I just detect some disturbance in the time servers?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#201 2020-04-24 06:54:19

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

phiw13 wrote #322683:

Did I just detect some disturbance in the time servers?

NTP is, thankfully, outside of my remit. I wouldn’t be able to sleep at all if I was in involved with that level of responsibility.

(Or did you just find something I broke?)

Offline

#202 2020-04-24 07:45:47

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,188
Website GitHub

Re: Textpattern CMS demo site

phiw13 wrote #322683:

Did I just detect some disturbance in the time servers?

gaekwad wrote #322684:

(Or did you just find something I broke?)

The server time is correct (for me at least) on the demo.

I think Philippe might have been referring to your powers to bend time ;-)


TXP Builders – finely-crafted code, design and txp

Offline

#203 2020-04-24 07:57:24

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

jakob wrote #322685:

The server time is correct (for me at least) on the demo.

Since literally nobody asked, here’s how I find the PHP date.timezone on a web server:

curl 'https://freegeoip.app/json/' | jq .time_zone | sed -e 's/[\/&]/\\&/g'

That has 100% success rate to date, I’m quite pleased with that.

I think Philippe might have been referring to your powers to bend time ;-)

All unintentional, I assure you. Just good timing.

Offline

#204 2020-04-24 08:15:23

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,632
Website

Re: Textpattern CMS demo site

jakob wrote #322685:

I think Philippe might have been referring to your powers to bend time ;-)

That is a perfect guess!

gaekwad wrote #322684:

(Or did you just find something I broke?)

I don’t think so, as far as I can see.

Thanks again for keeping that service up!


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#205 2020-04-24 16:30:02

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: Textpattern CMS demo site

gaekwad wrote #322686:

Since literally nobody asked, here’s how I find the PHP date.timezone on a web server:

curl 'https://freegeoip.app/json/' | jq .time_zone | sed -e 's/[\/&]/\\&/g'...

that command fails for me. ran it both on local terminal and on the web server?

parse error: Invalid numeric literal at line 1, column 8

…. texted postive

Offline

#206 2020-04-24 16:32:59

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

bici wrote #322692:

that command fails for me. ran it both on local terminal and on the web server?

parse error: Invalid numeric literal at line 1, column 8...

…and the service is currently down. So much for my 100% record!

freegeoip.app/json/

Time to find another route.

Offline

#207 2020-04-24 16:37:07

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: Textpattern CMS demo site

gaekwad wrote #322693:

…and the service is currently down. So much for my 100% record!

freegeoip.app/json/

Time to find another route.

;-)


…. texted postive

Offline

#208 2020-04-28 14:55:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

gaekwad wrote #322693:

…and the service is currently down. So much for my 100% record!

freegeoip.app/json/

Time to find another route.

It’s back again. For now, at least.

So, curl or wget the JSON (see the URL above)…:

$ curl 'https://freegeoip.app/json/'
{"ip":"[IP ADDRESS SNIPPED]","country_code":"GB","country_name":"United Kingdom","region_code":"ENG","region_name":"England","city":"London","zip_code":"SL1","time_zone":"Europe/London","latitude":51.5353,"longitude":-0.6658,"metro_code":0}

…and then we use jq to extract the "time_zone" component (with a silent flag in the following example)…:

$ curl -s 'https://freegeoip.app/json/' | jq .time_zone
"Europe/London"

It looks like the schema changed when the site was down so the sed part isn’t needed now.

Offline

#209 2020-04-28 23:29:53

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,632
Website

Re: Textpattern CMS demo site

Is jq a custom installed package?

If I run your command(s) locally (macOS 10.15), I get this:

zsh: command not found: jq
(23) Failed writing body

Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#210 2020-04-29 06:03:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,713
GitHub

Re: Textpattern CMS demo site

phiw13 wrote #322742:

Is jq a custom installed package?

Yes. See stedolan.github.io/jq/download/ for info.

For macOS, you’re probably best off using MacPorts or Homebrew.

If you curl or wget the URL listed, it gives you the full JSON info about where you are, based in geolocation. jq then strips it back to the part you want. You could do some sed or awk to achieve the same thing, I daresay.

Offline

Board footer

Powered by FluxBB