code logs -> 2019 -> Tue, 26 Nov 2019< code.20191125.log - code.20191127.log >
--- Log opened Tue Nov 26 00:00:51 2019
00:12 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
00:12 mode/#code [+o himi] by ChanServ
00:27 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:20 celmin|away is now known as celticminstrel
02:09 Degi [Degi@Nightstar-ac0iqb.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
02:15 Degi [Degi@Nightstar-l8gp3e.dyn.telefonica.de] has joined #code
03:52 McMartin [mcmartin@Nightstar-ipm463.ca.comcast.net] has joined #code
03:52 mode/#code [+ao McMartin McMartin] by ChanServ
05:28 celticminstrel [celticminst@Nightstar-2kik29.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:46 Kindamoody[zZz] is now known as Kindamoody
09:34 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
09:34 mode/#code [+qo Vornicus Vornicus] by ChanServ
11:20 Kindamoody is now known as Kindamoody|afk
13:53 celticminstrel [celticminst@Nightstar-2kik29.dsl.bell.ca] has joined #code
13:53 mode/#code [+o celticminstrel] by ChanServ
13:55
<@celticminstrel>
Raaandom thought, wondering if union U { /* whatever */ }; std::map<int, U> stuff; counts as a tagged union (with the map key determining which part of the union is valid).
14:06 celticminstrel is now known as celmin|away
14:17
<~Vornicus>
I wouldn't call it safe
16:55 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:00 verdule [colin@Nightstar-6dnqro.skybroadband.com] has joined #code
17:01
< verdule>
I'm wondering if some user by the username DixieFlatline is on this IRC channel.
17:02
< Emmy>
Well, considering the userlist, i would say no.
17:02 * verdule wants to know what this channel is really about.
17:03
< verdule>
That person on another channel on a different server has pointed me to this channel.
17:03
< ErikMesoy>
Computer programming, mostly.
17:04
< ErikMesoy>
You would be Yoss's friend?
17:04
< ErikMesoy>
Some questions about USB and card readers, as I recall?
17:05
< verdule>
I'm old enough to recall the days when Microsoft QuickBasic sort of ruled the programming scene. A very long time ago, I must add. Now it's obsolete.
17:05
< verdule>
Anyway who is Yoss?
17:05
< ErikMesoy>
Local person who mentioned pointing a friend here. Was this DixieFlatline someone you met on Freenode?
17:05
< verdule>
I did field some questions about USB card readers and hub with DixieFlatline on freenode's #phoronix channel. Yes.
17:07
< verdule>
Anyway I have bought a USB 3 multicard reader. It does have the ability to address all its slot simultaneously but it's only a card reader; no hub functionality in it.
17:08
< verdule>
That was part of a gratis delivery from amazon.co.uk and it also has something else I bought from them: a Raspberry Pi 4 model B.
17:09
< verdule>
I'm planning to completely wrap up my time on this rickety old Raspberry Pi 1 model B - you know the one with only two USB ports, the 26-pin GPIO and the use of a full size SD card for its hard disk drive.
17:10
< verdule>
Yes I'm retiring the old RasPi 1 now. But I'm still using for now.
17:14
< verdule>
I hate having having put a computer in the dining room of my home where the router/modem is located. The RasPi 4's integrated wifi will solve this problem! :)
17:21
< verdule>
Anything you want to discuss with me before I wrap up tonight? I hate being inside a dark dining room but I have had to plug the old Raspberry Pi 1 straight into the modem/router. So I'm happy to be retiring it. :)
17:30
< ErikMesoy>
You may want to lurk and leave your account logged on for a while to see if anyone else pops in to say useful things. See note in topic - not everyone is constantly here.
17:32
< verdule>
"ask, then hang about till someone appears who can help" that's what the note to this channel says.
17:41
< verdule>
Actually I'm not feeling well today.
18:02
< verdule>
Perhaps I should just go now.
18:05
< verdule>
Yes I do remember when Microsoft's QuickBasic was on just about every PC. That was a very long time ago and, now it's obsolete.
18:10
< verdule>
Well I really didn't need to login to this channel at all. So goodbye. I'm leaving.
18:10 verdule [colin@Nightstar-6dnqro.skybroadband.com] has quit [[NS] Quit: Leaving]
18:11
<~Vornicus>
now, javascript is on literally every PC.
18:17
<&[R]>
Rude
20:11 * TheWatcher eyebrows
20:27 * abudhabi has an perennial problem: how to get wordpress to stop redirecting to mysite.com/wordpress and just use mysite.com/.
20:28 Kindamoody|afk is now known as Kindamoody
20:38
<@TheWatcher>
abudhabi: Dashboard -> Settings -> General -> wordPress Address set to mysite.com/ and Site Address set to the same place?
20:38
<@abudhabi>
Both of them need to be the same?
20:39
<@abudhabi>
The actuall install is in ./wordpress/
20:40
<@abudhabi>
I have just set both to the root site, without /wordpress/, and it broke things.
20:41
<@TheWatcher>
you'll need to use .htaccess if you've got it installed in a subdir if you don't want the redirect - https://wordpress.org/support/article/giving-wordpress-its-own-directory/#method-i-without-url-change
20:41 * abudhabi gets into the database via phpmyadmin.
20:44
<@abudhabi>
TheWatcher: I have reset both URLs to mysite.com/wordpress and have placed the .htaccess file in the root folder of the site, appropriately modified from the template from your link.
20:45
<@abudhabi>
This yields a redirect and a 404.
20:45
<@TheWatcher>
The urls should be mysite.com if you're using the .htaccess
20:46
<@abudhabi>
OK, wrong spot to put it.
20:46
<@abudhabi>
Now that I fixed that, it no longer 404s.
20:46
<@TheWatcher>
And it should go in your web root
20:46
<@abudhabi>
Yes.
20:48
<@abudhabi>
Argh, this is maddening.
20:48
<@TheWatcher>
(the .htaccess looks at the uri and if it's not going direct into your subdir (the !^/my_subdir/ line) and it doesn't resolve to a real file or directory, it rewrites it to be under the /my_subdir/ directory, and then if you've just specified / it will redirect to the index.php)
20:52
<@abudhabi>
OK, let's try this extremely slowly, because I'm doing something extremely wrongly.
20:52
<@abudhabi>
In public_html/ I have .htaccess constructed from the template in the instruction.
20:53
<@abudhabi>
I have index.php copied here too, for reasons that are not entirely clear.
20:53
<@abudhabi>
Then there is the wordpress/ directory here too.
20:53
<@TheWatcher>
You shouldn't need the index.php in the root
20:53
<@TheWatcher>
in fact, you don't want it there, or things'll break
20:54
<@abudhabi>
I have now renamed it. Hopefully that'll fix that.
20:56
<@abudhabi>
What should the Wordpress Address and Site Address be?
20:56
<@abudhabi>
With /wordpress or without?
20:56
<~Vornicus>
without
20:56
<@abudhabi>
They are so.
20:57
<@abudhabi>
When I am accessing my admin panel, it works off of mysite.com/wp-admin/whatever.php
20:57
<@TheWatcher>
Right
20:58
<@abudhabi>
But when I go to mysite.com it redirects me to mysite.com/wordpress and shows me wordpress' "oops! that page can't be found" page.
21:00
<@abudhabi>
Ideas?
21:00
<@TheWatcher>
Long shot, but what're your permalinks set to?
21:01
<@abudhabi>
Post name. http://mysite.com/sample-post/
21:02
<@abudhabi>
If it set it to plain, mysite.com redirects me to mysite.com/wordpress/ and shows me the page.
21:03
<@TheWatcher>
What happens if you do mysite.com/index.php ?
21:04
<@abudhabi>
It shows the front page and modifies the url to mysite.com without the index.php.
21:05
<@TheWatcher>
Are you possibly using cpanel or some other site management UI that might've done its own redirects?
21:06
<@abudhabi>
Not sure.
21:06
<@abudhabi>
How do I check?
21:06
<@TheWatcher>
How did you set up your site?
21:06
<@TheWatcher>
Did your hoster give you the URL for a management interface for your hosting?
21:07
<@abudhabi>
I'm fairly sure I set up the mysql database via the provided control panel, and then used ssh to wget wordpress and proceeded from there.
21:08
<@abudhabi>
I don't remember, because I set this site initially long ago, and just moved to another domain, so as not to have to reinstall wordpress, if I have a working install already that's unused.
21:09
<@abudhabi>
Hrm.
21:10
<@abudhabi>
If I'm logged in, mysite.com redirects to wordpress/.
21:10
<@abudhabi>
In the incognito tab, it doesn't.
21:10
<@abudhabi>
WTF.
21:10
<@TheWatcher>
Caching, probably
21:10
<@TheWatcher>
If you're using chrome, it'll helpfully remember certain redirects
21:10 * abudhabi fires up inspect and disables cache.
21:10
<@abudhabi>
Fucking hell.
21:11
<@abudhabi>
That was it.
21:11
<@TheWatcher>
And by "helpfully" I mean "it can fucking die in a burning fucking wreck"
21:12
<@abudhabi>
Thank you!
21:18
<@abudhabi>
Hmm.
21:18
<@abudhabi>
How would I alter .htaccess to route subdomains properly?
21:19
<@abudhabi>
I'm trying to use polylang for multilingual stuff and the subdomain option looks nicest.
21:19
<@abudhabi>
So stuff like en.mysite.com and pl.mysite.com but both of those dump me with an autogenerated directory inventory.
21:22
<@abudhabi>
The .htaccess has optional www. prefixes, how do I make that any prefix instead?
21:25
<@TheWatcher>
^(*.)?mysite.com$ should do it I think
21:26
<@TheWatcher>
^(.*.)?mysite.com$ sorry
21:26
<@TheWatcher>
Gaah
21:26
<@abudhabi>
Yeah, that was causing 500.
21:26
<@TheWatcher>
^(.*\.)?mysite.com$
21:26
<@abudhabi>
It was my first guess, too!
21:27
<@abudhabi>
The second one works.
21:27
<@abudhabi>
Why escape the period?
21:27
<@TheWatcher>
Because '.' matches any char, while '\.' matches .
21:28
<@abudhabi>
Legit.
21:28
<@abudhabi>
Thanks again.
21:31
<@TheWatcher>
Glad it works
22:22 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
22:24 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
22:32 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
22:43
<&McMartin>
'.' matching any char is one of my banes
23:01 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
--- Log closed Wed Nov 27 00:00:53 2019
code logs -> 2019 -> Tue, 26 Nov 2019< code.20191125.log - code.20191127.log >

[ Latest log file ]