#dev 2020-10-13

2020-10-13 UTC
geoffo, [Will_Monroe], [fluffy], [chrisaldrich] and djmoch joined the channel
swentel joined the channel
#
@freerange
Freeranger @floehopper is on a blogging roll at the moment, 2 posts in as many days! Here's one on setting up a rails dev environment using Nix: https://jamesmead.org/blog/2020-10-12-generating-and-running-a-rails-app-with-postgresql-using-nix-on-ubuntu. And another on automatically sending Webmentions from a static site: https://jamesmead.org/blog/2020-10-13-sending-webmentions-from-a-static-website.
(twitter.com/_/status/1315937381581828096)
#
@DenverProphitJr
↩️ #webmentions are starting to flow from https://brid.gy/twitter/DenverProphitJr# onto my content at https://denverprophit.us/technical-seo/using-science-philosophy-organize-semantic-web.html I still have some CSS styling to do! Modify JS to get interaction type & count into JSON+LD for schema. @bill_slawski @AndrzejZasowski Read More: https://indieweb.org/
(twitter.com/_/status/1315964148677840896)
#
@DenverProphitJr
↩️ #webmentions are starting to flow from https://brid.gy/twitter/DenverProphitJr# onto my content at https://denverprophit.us/technical-seo/using-science-philosophy-organize-semantic-web.html I still have some CSS styling to do! Modify JS to get interaction type & count into JSON+LD for schema. @bill_slawski @AndrzejZasowski Read More: https://indieweb.org/
(twitter.com/_/status/1315964148677840896)
kitt, jeremych_ and aviraldg joined the channel
[Rose] joined the channel
#
aaronpk
lol cue the "but is anyone actually using it" comments on HN 🙄
jeremych_, geoffo, jolvera, jjuran and [Denver_Prophit] joined the channel
#
[Denver_Prophit]
You guys must grab #webmentions from twitter. I didn't know it would post my tweet in here.
[jgmac1106] joined the channel
#
@DenverProphitJr
↩️ Now have integrated webmentions from any other website or social silo. I'll have to rewrite the provided code for better presentation. It grabs twitter activity as well as responses from ANY website that uses webmentions. More about that at https://indieweb.org/
(twitter.com/_/status/1316035099599818753)
#
[Denver_Prophit]
Why are all my tweets being blasted to this channel?
#
aaronpk
in case it wasn't obvious from all the other tweets here, the bot searches for tweets mentioning "webmention"
#
[Denver_Prophit]
Ah should just grab hashtags instead of words I think lol
#
aaronpk
nah :)
#
[Denver_Prophit]
So, I got the Heroku webmention script to work. The hosted script is crappy for presentation. So, now, i'll have to write script to pull the data =(
[KevinMarks] joined the channel
#
[KevinMarks]
you can style the hosted stuff yourself, it has lots of classes on
#
[KevinMarks]
flex your CSS skills
[prtksxna] joined the channel
#
[prtksxna]
`flex`, get it?
jeremych_ and nickodd joined the channel
#
[Denver_Prophit]
[KevinMarks] what I did see is the hosted stuff from the herokuapp wasn't in a microformat for a repost or like or even h-cite u-response
#
[KevinMarks]
true, but as it's a js injection that is less of an issue.
#
[KevinMarks]
Simon Willison mentioned pingback so I added docs https://news.ycombinator.com/item?id=24765158
#
Loqi
[simonw] I helped create pingback [https://simonwillison.net/tags/pingback/], which eventually made it into WordPress and hence achieved pretty widespread distribution. My concern here is spam. With hindsight both Pingback and Trackbacks (which Pingback was a...
#
[Denver_Prophit]
In WP, I did an allow/deny to xmprpc.php and allow allowed trusted domains to do a pingback
#
[Denver_Prophit]
I can get a json response from the heroku app. I just may need to create a file routine to update a data file in Jekyll for each post and cut down the time to daily maintenance so I can do for loops and get interaction counts and such for json+ld and microformats2
#
[Denver_Prophit]
[KevinMarks] what ya think of that approach? Shave off render time and do more with the response data?
[capjamesg], lahacker and [tw2113_Slack_] joined the channel
#
[KevinMarks]
So when you get a webmention notification you update the file? Then have a separate cron to do the counting?
#
[Denver_Prophit]
Yes like once or twice a day check for updates. Overwrite the json data file and partial rebuild of jekyll
ren joined the channel
#
ren
se
#
ren
ese
#
ren
s
#
[KevinMarks]
If a full rebuild is slow, you are effectively building a queue to handle it. Separate out the different bits into routines and decide how often you run them separately. You could trigger a rebuild daily or after so many come in, for example.
#
[KevinMarks]
at that point you're getting closer to doing your own webmention implementation.
#
[KevinMarks]
with mention.tech I rely on the appengine scheduler to do the deferred updates for me
#
[KevinMarks]
one of the neat things webmention.herokuapp.com does is the realtime updates if the page is open
#
[Denver_Prophit]
[KevinMarks] at least I'm cutting out milliseconds in response time waiting for the hosted app to respond?
#
[KevinMarks]
it may make sense to fork that for yourself and use it to write to your preferred storage
#
[Denver_Prophit]
[KevinMarks] perhaps. I'm just a front-end dev. I mind the TTFB and paint time. I can do more with a json response. I'm still wet behind the ears with mentions. It is a game changer to get away from social silos
#
[Denver_Prophit]
In my teens, I ran a FIDOnet BBS on a baud modem. It also relied on comments posted in one bbs to be xmitted over to another.
#
[KevinMarks]
it's in node, so if you're used to js that may be a good fit https://github.com/voxpelli/webpage-webmentions
#
Loqi
[voxpelli] webpage-webmentions: A hosted Disqus-like comment service that enables WebMention receiving on any kind of site
#
voxpelli
Hey 👋
#
voxpelli
[Denver_Prophit]: I value TTFB and paint time as well :)
#
[Denver_Prophit]
Vox sites would hammer your app less often maybe if doing local storage of your json response
#
voxpelli
[Denver_Prophit]: I don’t mind them hammering my site, quite the opposite: I encourage them to connect and listen for updates in real-time
dopplergange joined the channel
#
[Denver_Prophit]
↩️ Your hosted app adds anywhere from 1.7 to 2.5 seconds to pageload speed
#
[Denver_Prophit]
↩️ Pages MUST stay under 2 seconds as a ranking factor.
#
Zegnat
Heroku taking 2 seconds average to return JSON? That sounds ... odd. Wonder what is up there.
#
[Denver_Prophit]
[Zegnat] I am using gtmetrix to measure site after adding hosted js.
[chrisaldrich] joined the channel
#
[chrisaldrich]
Provocative question for development/chewing on: If I were a service company like Grammarly.com or Yoast SEO, what would be the best way to integrate my services into a micropub workflow? Is there a way (extension) to easily leverage the service into a broad array of pre-existing posting clients, or would I be better off making my own client?
#
Zegnat
[Denver_Prophit]: yeah, not wanting to say your numbers are off! Makes me feel that Heroku itself is not on top of its game
#
[Denver_Prophit]
[Zegnat] moreover, all remote apps are at the mercy of network speed and processing. That's why I wanted to collab on creating cron jobs to write a json response, locally.
#
Zegnat
Sounds like something like ... was it Morris?
#
Zegnat
What is Morris?
#
Loqi
Morris is a self-hosted PHP service for storing Webmentions from webmention.io in a JSON format that static sites can use to render them without querying webmention.io on each build https://indieweb.org/Morris
#
Zegnat
Script that runs on your server and fetches the data, so your build system can go off of the data that is already there
#
Zegnat
You use it as a client and give it access to post to your "real" endpoint (e.g. WordPress). Then you use the client you actually want to use (e.g. Quill) and connect that to the service's endpoint.
#
Zegnat
You can then write something as normal, and the service gets to transform things about your request before passing it on to your site. This can chain infinitely with different services.
#
Zegnat
[chrisaldrich]: it depends. I do not know those services. But do they require user input? I have thought about doing sort of proxy-services (for lack of a better word). The service is both a Micropub endpoint *and* client.
#
[chrisaldrich]
[Zegnat] Most of what I'm thinking of are add on services to posting clients that do helper sorts of functions, so in the case of grammarly, you would post your content in an editor and then run grammarly on it to highlight things like spelling, grammar and usage issues which you'd then want to fix within the editor prior to posting. In the case of Yoast, it looks at your post and helps you to consider expanding/shortening it, using
#
[chrisaldrich]
better keywords, etc for improved SEO prior to posting it to your server.
#
[chrisaldrich]
I'm wondering how those sorts of middleware services can improve/flourish within the greater micropub space.
#
Zegnat
Those sound more like client side things to me
#
[KevinMarks]
if your app is what wakes up the heroku service it could add some load time, but you should defer that anyway
Ruxton, [Will_Monroe], [chrisbergr] and swentel joined the channel; nickodd left the channel
#
sknebel
TIL transpilers to older versions are also a thing for PHP: https://blog.logrocket.com/transpiling-php-code-from-8-0-to-7-x-via-rector/
[chrisaldrich] joined the channel
#
jacky
I slightly remember that re: transpiling PHP
#
Zegnat
I have never seen it before. The closest thing that came to my mind was Haxe. But that is cheating as that is a different language that then transpiles into PHP
#
jacky
I figured HHVM/Hack being something similar (but under that same new language thing)
#
Zegnat
Facebook wrote their own vm/interpreter for Hack though, right? So it did not neccessarily transpile into clean PHP?
czarnova, [Will_Monroe], justache and [tw2113_Slack_] joined the channel