#dev 2019-12-04

2019-12-04 UTC
ghjghjghjdgfhj, [davidmead] and [KevinMarks] joined the channel
#
[KevinMarks]
I see twitter's js as a decorator on underlying semantic html, as benward designed it. If it distinguished between nonexistent and deleted tweets it would be more useful. Im not sure that hydration is the right metaphor.
#
[KevinMarks]
What is jamstack?
#
Loqi
JAMstack is a web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup https://indieweb.org/JAMstack
[Ramiro_Ruiz] joined the channel
#
[Ramiro_Ruiz]
Is it possible to have a IFTTT applet that if new feed item then make a web request to brid.gy to publish them?
#
[KevinMarks]
So is my site jamstack? It has static files with js running client side that calls webmention.herokuapp.com
#
[tantek]
[KevinMarks] I feel like [calumryan] (who ran a session on JAMStack at IWC Brighton) would be a good person to answer that.
#
[KevinMarks]
It's always fun when there's a trendy new name for things you're already doing
#
[KevinMarks]
I'm looking forward to a name for the "construct a json-like structure and write slightly too much logic in jinja2/nunjucks templates" approach I've been using to replace the old school PHP approach
[snarfed] joined the channel; mblaney left the channel
#
@paulg
Don't start a startup where you need to go through someone else to get users.
(twitter.com/_/status/1201946168663654406)
#
jacky
totally haven't made any "progress" the last two days
#
jacky
TIL that I can grab my current location and battery level via Nextcloud
#
jacky
this is useful :)
#
GWG
jacky: What else are you doing with Nextcloud?
gRegorLove joined the channel
#
jacky
to be honest, that's it for now
#
jacky
I use it for general "life" storage
#
jacky
debated putting passwords in there but I've been using bitwarden and its client apps + extensions are on 1password's level so no need
#
GWG
I store various things on mine, but it isn't integrated.
#
jacky
integrated into your site?
#
jacky
I have OsmAnd on my phone for routing and use the PhoneTrack app for Nextcloud
#
jacky
I think those two together should give me RT location + stats I can use else where
#
jacky
it's already logged :)
#
GWG
jacky: Yes. I have some ideas
[fluffy] joined the channel
#
[fluffy]
so I’m looking into finally adding h-feed support to Pushl, and I’m finding that… there’s not a lot of h-feeds out there, huh. And the few I’m finding, mf2py doesn’t seem to recognize for some reason?
#
[fluffy]
like when I run mf2py on https://tantek.com/ it only returns a single h-card and no entries
#
Loqi
Tantek Çelik
#
[fluffy]
oh, I see, the <body> has an h-card markup so the h-feed is contained inside of it
#
[fluffy]
that seems… wrong
#
[fluffy]
but oh well, I think the appropriate thing to do is to just traverse the entire items array and then slurp up all h-entry items anyway
#
aaronpk
heh I agree
#
aaronpk
I am not a fan of that pattern and i have some code in XRay that's basically only for consuming Tantek's website
#
[fluffy]
ok maybe a philosophical question: should Pushl only send webmentions from h-entry, or is there a reason to send it from, say, h-card, h-event, etc.?
#
[fluffy]
like, anything with a u-url param?
#
[fluffy]
er, property
#
[fluffy]
ok never mind, h-card definitely not
#
[fluffy]
and it seems like at least tanek’s h-events shouldn’t be either
#
[fluffy]
ok yeah I’ll just send them from h-entry
[jeremycherfas] joined the channel
#
[jeremycherfas]
Sorry to hijack your thread but are you using OsmAndMaps on an iPhone? For me it crashes every time I launch it.
#
Zegnat
“have some code in XRay that's basically only for consuming Tantek's website” – like how Granary contains code just for rhiaro’s website? :D
#
Zegnat
[fluffy]: I have sent webmentions from my h-card
cweiske and jjuran joined the channel
#
[fluffy]
That seems like such a special-case thing that anyone who wants to do that would be doing it manually anyway
#
[fluffy]
Pushl is just for like, tracking and automatically updating webmentions and websub
wgirl, jjuran, cweiske2, AkyRhO, treora, wgirl_, logiti, [LewisCowles], gxt, asymptotically, [LewisCowles]1, JellieDiscord[m], junyouDiscord[m] and [KevinMarks] joined the channel; dindustriesDisco left the channel
#
[KevinMarks]
I must admit I've written code that digs through nested mf2 structures looking for ones I recognise too
#
GWG
aaronpk, Zegnat. fluffy: I have Tantek specific code also. I am just rolling with it.
[LewisCowles] and swentel joined the channel
#
Zegnat
[fluffy] in my case, I added XFN links to my h-card (who are friends, who I met, etc). And for those changes I can then send webmentions to the people I have added to that (hidden) list.
#
Zegnat
Theoretically, websub could help there too, where I would let people know my relation to them has changed
#
Zegnat
I don’t think anyone else does that though ;)
#
cweiske
relationship breakup by websub would be a first
#
Zegnat
Maybe as part of an update to SWAT0, cweiske? ;)
#
swentel
GWG, contacts autocomplete works too now
#
swentel
you'll have a lot to hack on :)
jeremych_ joined the channel
#
GWG
swentel: I don't have contacts yet
#
swentel
well, indigenous supports it so you'll have client to test with already if you implement it one day
[davidmead] joined the channel
#
swentel
will release in a few hours
[jgmac1106] and [Rose] joined the channel
#
jeremycherfas
Arrgh. Suddenly getting 500 errors for my site. Cannot restart Apache. Have restarted the server once. Everything else on the server works. I've raised a ticket with DreamHost. In the meantime, is there anything else I could try?
#
[LewisCowles]
htaccess edits. Try rolling them back
#
[LewisCowles]
Dreamhost is a mare
#
jeremycherfas
Didn't touch them, honest guv.
#
[LewisCowles]
the other way to test is to make a new folder from shell / sftp /ftp login, and change your home folder to one of those, but if you’ve not touched a .htaccess file, maybe that is not the issue.
#
[LewisCowles]
let me re-familiarise myself with panel.dreamhost.com
#
jeremycherfas
Don't put yourself out; I think I can see the ticket being worked on. But weirdly, tail -f error.log shows nothing.
#
[LewisCowles]
is it a VPS?
#
[LewisCowles]
or shared hosting thing?
#
jeremycherfas
For me, most of the time, DreamHost works well. The extra work of having to learn another host puts me off changing. I'm not expert enough to use Linode, for example.
#
[LewisCowles]
Yeah I only use them for shared, DO & AWS for VPS. Still I wonder if you get the same UI? I just found a files option with my users which shows modification date, permissions, and lets me click through the UI
#
[LewisCowles]
it’s ultimately about what you are comfortable with
#
[LewisCowles]
not everyone needs to become an admin
#
[LewisCowles]
Apache has a check for it’s config right?
#
jeremycherfas
The first test my CMS suggests is to see whether phpinfo.php will run from that folder, and it does.
#
jeremycherfas
I cannot check anything to do with Apache from SSH
#
[LewisCowles]
then have you tried setting the PHP error_reporting and display_errors?
#
[LewisCowles]
Apache should be working if phpinfo is
#
[LewisCowles]
it’s likely that it couldn’t launch a second apache
#
[LewisCowles]
which is fine. Machines generally need work to run two web-servers
#
jeremycherfas
No, haven't tried that. Does it mean editing php.init?
#
[LewisCowles]
is there a common file your PHP loads early?
#
jeremycherfas
Don't know.
#
[LewisCowles]
config.php, or autoload.php?
#
[LewisCowles]
do you know what system(s) you run that use PHP? is it entirely custom?
#
jeremycherfas
It is Grav CMS. I've got to go out anyway for an hour or so. So I will do that and see whether time heals all, or whether DH responds to my ticket.
#
jeremycherfas
[LewisCowles]++ for vital help
#
Loqi
[LewisCowles] has 4 karma in this channel over the last year (6 in all channels)
#
jeremycherfas
Worst comes to worst, I can just nuke everything and then re-upload the entire CMS and flat files and see what happens. I also have a full backup from this morning.
jolvera joined the channel
#
swentel
GWG, released, have fun :)
[fluffy] joined the channel
#
[fluffy]
Dreamhost VPS is a nightmare.
[email096] joined the channel
#
[fluffy]
There are way better, cheaper VPS options out there which give you an actual host slice and not just a poorly managed kernel container
#
jeremycherfas
Is there an option you would recommend [fluffy] that is reasonably easy to use? I am not an admin, obvs, and I am willing to put some work into learning, but as I said, Linode was too bare bones for me.
#
[fluffy]
Hmm, I personally use linode but I also don’t mind admin overhead. I think they offer a cpanel instance? Maybe DigitalOcean
#
jeremycherfas
If Linode offers a panel, that's new. I'll look again at DO
#
[fluffy]
I’ve also heard good things about nearlyfreespeech. I think they just do a kernel container too but it’s managed way more humanely and also coats way less
#
jeremycherfas
Might be time nuke and restore.
chrisaldrich joined the channel
#
[fluffy]
My big gripe with DH VPS is the way they manage memory size. They look at total allocation size and if you exceed it for even a moment they reboot your virt. They don’t provide any way of just limiting the allocation size, and the size includes your kernel cache and buffers - which they allow to grow freely
#
[fluffy]
And when I complained about this and explained why it’s a problem they pointed me to a condescending help page explaining what I’d just said right back to me.
#
[fluffy]
Like yes I know what a cache is, y’all
#
[fluffy]
I also know there’s no point in making a cache grow unbounded when the hit rate is like 1%
#
[fluffy]
So basically every time google crawled my site it would try to load alllllllll my files into the kernel cache
#
[fluffy]
If I were on a real VPS the kernel would have just evicted the stuff it didn’t need instead of holding onto it forever
#
[LewisCowles]
DO is pretty solid, sorry I was on a customer call
#
[LewisCowles]
I’m sure we can get grav to tell you what is wrong though
#
[fluffy]
Support folks didn’t even care that at the time I worked at amazon on their caching fleet so
#
[LewisCowles]
it has an index.php right
#
[LewisCowles]
ini_set(‘display_errors’, 1);
#
[LewisCowles]
error_reporting(E_ALL);
#
[fluffy]
Anyway yeah that’s worth trying.
#
[LewisCowles]
you can `E_ALL ~ E_NOTICE` if you like
#
[fluffy]
You can also try forcing DH to rebuild your ini
#
[fluffy]
Which you can generally do by making a trivial configuration change and waiting a while
#
[fluffy]
Like wobble your php version
#
[fluffy]
Although for PHP hosting there isn’t much reason to use VPS over shared hosting. Was there a specific reason you switched?
#
[fluffy]
(Also I’m disappearing for a bit)
#
jeremycherfas
And so far, I've learned that my Apache user is jeremyg+ while jeremygrav owns the files in my directory.
dougbeal|iOS and [schmarty] joined the channel
#
[LewisCowles]
although that could be it, wouldn’t it have come up before now?
[KevinMarks] and [snarfed] joined the channel
#
[fluffy]
Permissions issues usually manifest in a 4xx rather than a 5xx
#
[fluffy]
At least in php and static files.
#
[LewisCowles]
unless it’s an excutable bit on a file
#
[fluffy]
CGI will usually cause a 5xx
#
[LewisCowles]
or a file it’s blindly including / opening with no guards
#
[fluffy]
I’ve not seen that cause a status code in php, usually that causes a php error or your site getting hacked
#
[fluffy]
I mean a php script can specifically generate a status code in that case but if it’s doing that it’s also probably checking what it opened :)
#
jeremycherfas
Tricky trying to run this down while at the same time making 6 loaves of bread, but at least in one I know what I'm doing.
#
[fluffy]
In any case, last I was aware dreamhost uses php-fcgi which runs a userspace php server with your own account permissions so most php permissions guides aren’t relevant
#
[fluffy]
The permissions are tied to what your account can see, not what Apache can see
#
[fluffy]
And as much as I complain about dreamhost I legitimately appreciate their configuration around this
#
jacky
jeremycherfas: lol
#
[fluffy]
I wish all shared hosting providers did it
#
[fluffy]
It’s better for security and also gives users better control over their own files
swentel joined the channel
#
[fluffy]
Anyway as far as cpanel on linode goes I think they just give you a choice of it when you go to provision your server. It’s been a while since I provisioned one though.
#
[LewisCowles]
I’m now thinking about bread
#
jeremycherfas
OK, diving into index.php now.
#
[LewisCowles]
The app I’m working on has some data I don’t love
#
[LewisCowles]
one of which is yeast as a skill
#
[fluffy]
If anything it seems more likely they removed cpanel when they pivoted over to service fleet provisioning rather than “legacy” persistent servers
#
jeremycherfas
I'm your man for that.
#
[LewisCowles]
yeast or pivoting cpanel?
#
[fluffy]
(I still run a persistent server with them but I worry I might have to scramble to migrate when they decide this isn’t profitable enough)
#
[fluffy]
Anyway I’ll try to add stuff to the wiki but right now is a terrible time for me to hyper focus on that
#
[fluffy]
As in half an hour I have an appointment to finally talk to a psychiatrist about my ADHD, fittingly enough :P
#
aaronpk
linode doesn't use cpanel
#
aaronpk
it's their own homegrown thing
#
jeremycherfas
Error reporting in phpinfo now shows 22519 but I still get a blank page with a 500 error when I try to load the site. Should the errors be displayed, or will they only be in the error.log?
[Rose] joined the channel
#
[Rose]
You can get the errors to display
#
[Rose]
In user/config/system.ayml set this:
#
[Rose]
```errors:
#
[Rose]
display: false
#
[Rose]
log: true```
#
[Rose]
Sorry, change this, so display is set to true
#
[Rose]
(After you fix your issues you should change it back to false)
#
[LewisCowles]
is this specific to that PHP software? I’ve never seen that notation in PHP. Happy to learn but it looks like yaml
#
jeremycherfas
OK, I'll try that. Thanks [Rose].
#
jeremycherfas
Yes [LewisCowles] That is the config.yaml for the Grav cms
#
[Rose]
It is yaml, I mangled the file extension
#
jeremycherfas
I currently have display: 1 Will change that.
#
[Rose]
1 is true
#
[Rose]
Thankfully YAML and PHP both understand 1 to be true.
#
[Rose]
So if you’re seeing a white page it’s not even getting that far, you’ll have to debug with the PHP error log and the Grav log
#
jeremycherfas
That's what I thought. And I'm still seeing nothing, just the empty page.
#
[Rose]
Uh oh
#
[fluffy]
[aaronpk] it’s their homegrown thing for server provisioning but I thought you could also provision a server with cpanel preinstalled to make managing the services on it easier
#
jeremycherfas
Oh, it gets worse. Error.log seems to be empty. I'll check the http one now.
#
aaronpk
ah the "one-click app", i've never used that
#
jeremycherfas
OK. Seems like I put my error reporting mods too early in index.php
#
[LewisCowles]
dump the PHP from above into the index.php. (leaving yaml as-is) it should at least spit out PHP then (unless index.php needs `chmod +x`
#
jeremycherfas
OK. I truly do not believe this. After moving the error reporting, the page loads fine. I have to think it is a coincidence and that SDH did something in the meantime.
#
jeremycherfas
Presumably I should comment out that error reporting now?
#
[LewisCowles]
I added it to the wiki, but added a note about it being better to do it offline (on your own PC) with reasons why
#
[LewisCowles]
I added it to FAQ rather than add a troubleshooting section though
#
jeremycherfas
[fluffy]++ [Rose]++ That's quite enough excitement for one evening. Off to see whether DH has anything to say for themselves.
#
Loqi
[fluffy] has 21 karma in this channel over the last year (51 in all channels)
#
Loqi
[Rose] has 21 karma in this channel over the last year (67 in all channels)
swentel joined the channel
#
GWG
Does this make sense? To posse to micro.blog from Micropub, I would have to...when the checkbox is checked...add the post to a custom feed, then ping micro.blog to refresh that feed, then schedule a cron job for a minute or two later to poll the json api for my account and find the id to derive the hidden url for it and display as a syndication link
#
aaronpk
how do i find my micro.blog json api URL?
#
aaronpk
i didn't think about adding it as a syndication link on my site
#
jacky
I saw that URL in here before
#
jacky
I'd be down if it helps micro.blog clients do some PTD for their own sites
#
jacky
aaronpk: where'd you find that?
#
jacky
the source is strong for you :)
#
aaronpk
all my posts have a url on my own website, not micro.blog
#
aaronpk
ah i can reverse engineer the micro.blog URL from the id
#
Loqi
[aaronpk] I finally started documenting all the home automation devices and apps I use, with the main goal of everything running locally! Here's a fun list to browse through if you're looking for some holiday shopping ideas! https://aaronparecki.com/home-aut...
#
aaronpk
hmm should i be linking to that as a syndication link from my original post? i hadn't considered that
#
jacky
could help if micro.blog clients have a URL handler for micro.blog links
#
GWG
aaronpk: I figured that out
#
GWG
That is what I am planning on doing
#
[Rose]
I would be interested in showing a link to the post on Micro.Blog
#
GWG
I think I could make it a project at IWC SF as I could realistically do that in a shortened day
#
GWG
[Rose]: Stay tuned, I am going to build it
#
aaronpk
theoretically micro.blog should be sending webmentions back to me for all the replies anyway, so there isn't anything new to see by visiting the post on micro.blog right?
#
GWG
aaronpk: No, but for me it's a..share with me via micro.blog offer
#
GWG
The same way I care about the tweet url because it shows where people who only Live on Twitter can find me
gRegorLove joined the channel
#
aaronpk
oh right okay
#
aaronpk
i guess i always assumed anyone who was only using micro.blog would be finding my posts from within micro.blog in the first place and wouldn't need to get to the micro.blog version from my website
#
GWG
It's fine either way
#
GWG
I just want to posse per post
#
GWG
And two people want the link back
#
GWG
Myself and [Rose]
tbbrown and [fluffy] joined the channel
#
[fluffy]
Okay I’m back, can add my various notes/talking points to the VPS wiki page now 🙂
#
[snarfed]
[fluffy]++
#
Loqi
[fluffy] has 22 karma in this channel over the last year (52 in all channels)
#
[fluffy]
I mean I guess all I had to add to the wiki page was my experience with Dreamhost VPS
[jgmac1106], leg, logiti, KartikPrabhu and [manton] joined the channel
#
[manton]
I think this question about getting the Micro.blog link (or getting a Webmention with it) is the same as this issue on GitHub... Anything missing? https://github.com/microdotblog/issues/issues/79
#
Loqi
[EdwardHinkle] #79 Notify original post of syndication
#
aaronpk
ah right the idea was to have micro.blog send a webmention to tell the original post about the syndication link! i like it
#
[manton]
I'm not sure why I haven't added this yet. I like the suggestion there of making it opt-in to start with just in case it messes with web sites showing replies. I'm a little unclear in that GitHub issue how an external site would interpret it as a "syndication notification".
#
aaronpk
yeah def make it opt in
#
aaronpk
my site would receive the webmention, and see that the post is an h-entry with a u-syndication URL that is from my website
#
aaronpk
oops no wrong way
#
aaronpk
my site would see that the micro.blog page has a rel=canonical url of my website
#
aaronpk
so that's how it would know not to show it as a comment, and instead add the micro.blog URL as a syndication of my own post
#
[manton]
Okay. Currently on that page the link has an u-url but not rel=canonical. That is a simple change, though.
#
aaronpk
let me check, u-url might be enough
#
aaronpk
ah i see in eddie's description it says "if it uses microformats then use u-url"
#
aaronpk
i wonder what happens if i send a webmention from a micro.blog url to my post right now
#
[manton]
I also wonder that. 🙂
#
aaronpk
hah yea it shows up as a comment
#
Loqi
[aaronpk] I finally started documenting all the home automation devices and apps I use, with the main goal of everything running locally! Here's a fun list to browse through if you're looking for some holiday shopping ideas! https://aaronparecki.com/home-aut...
gxt joined the channel
#
aaronpk
but yeah the markup there is enough
#
aaronpk
my site should recognize that the u-url matches that post, and not show it as a comment
#
[manton]
Basically on those "conversation" pages, it uses `h-entry` only for the post from the ID in the URL.
#
aaronpk
should probably remove in-reply-to when it's the top post
#
[manton]
Oh yeah, good catch. Thanks.
#
aaronpk
hm rel=canonical seems like a more appropriate thing here
#
aaronpk
also in the traditional sense too
[schmarty] and [Rose] joined the channel
#
[manton]
[aaronpk] I've updated that to add rel=canonical and also hide the in-reply-to when it doesn't make sense.
#
[manton]
If you have a minute, let me know if it looks better.
#
aaronpk
that was fast!
#
[manton]
In your example, there will actually be multiple replies with rel=canonical, because both the main post and your replies on that page all have their own web pages on your own site. Wonder if that will confuse anything? Only the post being linked to has h-entry.
#
aaronpk
hm yeah that's not good
#
aaronpk
it should have only one rel-canonical value
#
aaronpk
the one that matches the h-entry
#
[manton]
Yeah, that does seem weird... Okay, fixed now.
#
aaronpk
awesome
#
aaronpk
ok i can update my site to handle webmentions from these pages properly
#
aaronpk
oh except my computer is on its way back via fedex so that might have to wait til tomorrow or friday
#
[manton]
I think I confused myself looking at these related issues. I added rel=canonical on the a tag on the page, but it should probably be a link tag in the header, right?
#
aaronpk
Doesn't matter
#
Loqi
[aaronpk] I finally started documenting all the home automation devices and apps I use, with the main goal of everything running locally! Here's a fun list to browse through if you're looking for some holiday shopping ideas! https://aaronparecki.com/home-aut...
#
GWG
[manton]: Scrolling up. Thanks for looking again
#
GWG
[manton]: The question I asked in the micro.blog slack....
[tantek] joined the channel
#
[manton]
@GWG Oh yeah, I'll answer over there but also here: if you are sending a "ping" to Micro.blog, the feed URL does have to be in Micro.blog already.
#
[manton]
The idea was to have a way to tell Micro.blog to refresh a feed right away, rather than wait for Micro.blog to poll it. WebSub is a better long-term solution too for sites that support it.
#
aaronpk
That's basically all websub is anyway :-)
#
GWG
[manton]: Using a custom feed and syndication is a good hack day project for me on Sunday at IWC SF
#
GWG
I just don't have time to do websub
#
GWG
Camp closes before 3
#
[manton]
[aaronpk] I added this to the GitHub discussion, but can you confirm I've got the parameters right for this? 🙂
#
[manton]
> Micro.blog should send a Webmention to the external site when Micro.blog creates a record of it in the Micro.blog timeline. The target will be the canonical URL, and the source will be the Micro.blog page for the post
#
aaronpk
that looks right
#
[manton]
Thanks.
#
GWG
Looking forward to that
tbbrown and OneWalrus joined the channel