#dev 2018-12-26

2018-12-26 UTC
#
sknebel
I don't believe you can match protocol and hostname in RewriteRules. $ matches the end of the string, so nothing can follow it.
#
sknebel
matching hosts needs a RewriteCond
#
[jgmac1106]
Okay thank you, will try again
iasai, jgmac1106 and [relapse] joined the channel
#
[relapse]
How about:
#
[relapse]
RewriteEngine On
#
[relapse]
RewriteRule ^(.*)$ https://archive.jgregorymcverry.com/$1 [R=301,L]
#
[relapse]
RewriteCond %{HTTP_HOST} ^jgregorymcverry.com$ [NC]
#
Loqi
[Greg McVerry] 1/2 people in room at @uconnresearch SBIR event faculty who chase grants everyday. I might have utilized a more production based pedagogy that took advantage of the audience but I always prefer uncoferences or at least some audience participation. I...
#
[relapse]
That matches anything under "jgregory...", and takes the Path side of the URL and adds it to the end of "archive.jgregory..."
#
[relapse]
NC is case insensitivity, 301 you know, and L is last rule.
#
[relapse]
If you're using the plain "jgregorymcverry..." URL still, you might want to add a rule that only redirects files/ directories that don't exist.
[jgmac1106] joined the channel
#
[jgmac1106]
Thank you will try!
iasai, ben_thatmustbeme and jgmac1106 joined the channel
#
[jgmac1106]
"might want to add a rule that only redirects files/ directories that don't exist." how?
[tantek] joined the channel
#
[tantek]
Make it a 404 handler
#
[relapse]
RewriteCond %{REQUEST_FILENAME} !-f
#
[relapse]
RewriteCond %{REQUEST_FILENAME} !-d
#
[relapse]
Those say only apply the rule if the URL searched for doesn't exist as a File or Directory.
iasai and [jgmac1106] joined the channel
#
[jgmac1106]
CollinMorris++
#
Loqi
CollinMorris has 1 karma over the last year
iasai and [tantek] joined the channel
#
[tantek]
CollinMorris++
#
Loqi
CollinMorris has 2 karma over the last year
[tantek] and [relapse] joined the channel
#
[relapse]
...who's this CollinMorris you guys like?
#
[relapse]
Unless Loqi's smart enough to parse the double l into one?
iasai, barpthewire and [tantek] joined the channel
#
[tantek]
ColinMorris++
#
Loqi
ColinMorris has 1 karma over the last year
#
dansup
Pixelfed joined the fediverse yesterday! https://pixelfed.social/p/dansup/23600
#
dansup
smart bot ;)
#
[tantek]
smart markup 🙂
#
[tantek]
dansup++ congrats!
#
Loqi
dansup has 2 karma in this channel over the last year (6 in all channels)
iasai and [relapse] joined the channel
#
[relapse]
That's very cool.
iasai joined the channel
#
Zegnat
Ugh, my weight graph has stopped working. Firefox started complaining about the subresource integrity hash (so either that has previously not been implemented by Fx or Cloudflare has been tampering with the JS libs). Chrome does load some parts of the graph but complaints about CORS settings (again on Cloudflare’s side)
#
Zegnat
So if anyone is using cdnjs.cloudflare.com as JS lib CDN, do check that everything still loads as expected!
#
Zegnat
Huh, curling the resource I need does show the CORS header. No idea what the browsers are tripping up on
#
Zegnat
Maybe the OPTIONS preflight check... more debugging after breakfast
jjuran, [jgmac1106], cweiske, leg, iasai, swentel, cweiske_, [kevinmarks] and jgmac1106 joined the channel
#
Zegnat
Can’t figure out why Cloudflare CDN stopped functioning for me. Just hosting the files myself for now
#
petermolnar
is anyone successfully using 'ek' from ekster ( https://github.com/pstuifzand/ekster )? I'm really trying to get it working, but it doesn't seem to like me.
#
Loqi
[pstuifzand] ekster: microsub server
#
Zegnat
I still haven’t had a use for Microsub, so, not me
#
petermolnar
well, that's exactly the issue: I'm trying to automate or at least import my rss opml into microsub, be not luck so far
#
petermolnar
I'm refusing to populate it by hand :D
iasai joined the channel
#
Zegnat
At some point I was thinking about just making a dedicated OPML importer for Microsub. But as it wasn’t a direct itch of myself I dropped work on that
jgmac1106 and tglobe joined the channel
#
[jgmac1106]
can you go to opml to json first? Lot of tools for that
#
Zegnat
What tools are there for importing a list of feeds from JSON?
#
petermolnar
the thing is... opml is horrible. But, because it's XML, it has XSL. Meaning I can do this: https://petermolnar.net/following.opml - it looks reasonable, and it's still a valid opml file.
#
petermolnar
so as much as I dislike OPML, it can be made surprisingly user readable
#
Zegnat
It was one of the reasons why I dropped the OPML import thing. It wasn’t as easy as “just read XML”, because there seemed to be some disagreement on how an OPML of feeds gets structured.
#
petermolnar
so the answer is i'd like to keep opml, because it's way more compatible, than randomly specified json
#
petermolnar
I've not found that disagreement yet
#
Zegnat
I saw some feeds that put all the subscriptions on the top level, and then some that nested them depending on categories (e.g. if exported from a reader with folders)
#
petermolnar
yes, and that is perfectly fine
#
petermolnar
just as nested mf2 is
[kevinmarks] joined the channel
#
Zegnat
I meant that because of such disagreement in OPML files it wasn’t *as* trivial as I thought to just loop over OPML and subscribe to the URLs.
eli_oat and iasai joined the channel
#
[kevinmarks]
Opml allows arbitrary nesting (it's an outline format)
#
[kevinmarks]
So you need to recurse through it.
jjuran, jgmac1106 and eli_oat joined the channel
#
Zegnat
Yeah, I didn’t feel for writing code (and tests) for that. As it was something I wouldn’t personally use.
#
Zegnat
It just crossed over my “this would be a nice thing to do for someone else” thresshold ;)
[smerrill], skippy, swentel, iasai, eli_oat, jgmac1106, KartikPrabhu, [tantek], [jgmac1106], benwerd, tglobe and [eddie] joined the channel
#
[eddie]
any messages Loqi?
iasai, [jgmac1106], jgmac1106, krychu, [kevinmarks], [tantek], benwerd and [relapse] joined the channel
#
jacky
looking at https://indieweb.org/Micropub-extensions#Query_for_Supported_Vocabulary and curious if anyone had logic to handle the act of submitting different formats for data to their systems
#
GWG
What sort?
iasai and [eddie] joined the channel
#
[eddie]
Do you mean plain text vs markdown vs html?
[tantek] joined the channel
#
[tantek]
I do feel it's been discussed a few times
#
[tantek]
though I don't remember the answer anyone came up with
#
[tantek]
!tell [jgmac1106] hey your mini write-up and chat about the apache redirect directives that helped you migrate your site would make an excellent article for today's IndieWeb Challenge, especially if you explained it precisely, specifically step by step, and provided the code block for .htaccess
#
Loqi
Ok, I'll tell them that when I see them next
#
[tantek]
also happy to help with editing and feedback to get that out there, as /migration is certainly non-trivial (still) and many would find it useful when looking at changing what setup/CMS they have on their site (especially if they want to keep the old one running, maybe even statically, just to support old permalinks)
[metbril] and pstuifzand joined the channel
#
pstuifzand
!tell petermolnar if you have problems with `ek` you can ask me. Perhaps you can create an issue on the github with the problem.
#
Loqi
Ok, I'll tell them that when I see them next
snarfed and [jgmac1106] joined the channel
#
pstuifzand
!tell petermolnar I also created version 0.8.3 of ek (on Github) that has better error handling (and reporting), use `ek -verbose channels`.
#
Loqi
Ok, I'll tell them that when I see them next
[smerrill], iasai, snarfed, jgmac1106, krychu and eli_oat joined the channel
#
sknebel
[jgmac1106]: curious, had you found https://httpd.apache.org/docs/2.4/rewrite/intro.html ? If no, would that have helped you?
iasai joined the channel
#
[tantek]
witholds his opinion on that documentation until [jgmac1106] replies
#
jgmac1106
[sknebel] this is exactly what would have helped
#
[tantek]
[jgmac1106] I'll point out that nowhere on that page are real-world examples that would have helped your situation. The examples there are almost completely useless in practice.
#
jgmac1106
in terms of I wanted a cheat sheet. but in terms of helping me do a redirect , no
#
aaronpk
i've stumbled across that page many times and always left more confused than when I started
#
[tantek]
right, those docs are crap for what they're supposedly for "rewrite"
#
[tantek]
lol aar
#
[tantek]
documentation like that is why people use stackoverflow
#
jgmac1106
first of all no Introduction is a supplement….if you use an appendix to introduce a topic you already failed
#
jgmac1106
also, and it pains me to say, hyperlinks are never defintions
#
[tantek]
also it's certainly *not* a "mod_rewrite Introduction" in any meaningful/useful way except for handwaving. it might be a half-decent reference for when you already understand mod_rewrite
#
jgmac1106
It should be a drop down menu for the 4-5 major use cases. then get into the weeds,
#
jgmac1106
though it did make me think about wanting a date url structure
#
[tantek]
on a more urgent / hopefully useful note
#
jgmac1106
saw some power in that
#
jgmac1106
anything that ends with snarfed knowledge is a good something any day
#
[tantek]
my urgent question - has anyone here *cancelled* an indie event? and if so, how do you notify?
#
[tantek]
e.g. what do you webmention to invitations and RSVPs?
#
[tantek]
what presentation? what markup for a cancelled h-event?
#
aaronpk
I think i've updated my event to say "cancelled" in the name
#
aaronpk
including the calagator posse copy
#
[tantek]
did you post any sort of reply to RSVP posts?
#
aaronpk
I don't think i've ever cancelled an event that had RSVP posts
#
jgmac1106
Yeah that is a question of manners not mark up
#
Loqi
[Cancelled] Homebrew Website Club https://aaronparecki.com/2017/12/06/1/map.png
#
[tantek]
[jgmac1106] yes manners should precede the markup
#
aaronpk
looks like someone deleted the calagator copy