#dev 2020-02-16

2020-02-16 UTC
#
gRegorLove
huh, neat
#
gRegorLove
nudge all the microformats!
CreamyNebula joined the channel
#
gRegorLove
Loqi is slacking on his memes
#
gRegorLove
gives Loqi a meme
#
Loqi
throws the meme
[jgmac1106] joined the channel
KartikPrabhu joined the channel
#
sknebel
probably
#
[jgmac1106]
hmmm..might be worth exploring as plenty of tutorials to serve up content from gSheets
#
[chrisaldrich]
As I'm looking at Indigenous for Android again while waiting for Goodreads RSS feeds to update (ugh), I'm noticing that the UI in swentel's posts kindly has a drop down menu for to-read, reading, and finished. It was so subtle that I missed it the first time around.
#
[chrisaldrich]
swentel++ for an overly good job of /read posts in Indigenous
#
Loqi
swentel has 17 karma in this channel over the last year (36 in all channels)
#
[chrisaldrich]
GWG++ for having read-status support in Post Kinds plugin for WordPress
KartikPrabhu and [Michael_Beckwit joined the channel
#
[Michael_Beckwit
gives Loqi gRegor's meme
deltab joined the channel
#
[chrisaldrich]
suspects that the Loqi bot thing is a myth and it's really just a puppet controlled by aaron. 😉
#
KartikPrabhu
Loqi: bot or puppet?
#
Loqi
puppet
#
gRegorLove
hashtag facts
[tantek] and gRegorLove joined the channel
gxt, Mallikarjun92, dhanesh95, [snarfed], [Christina_Hendr, Nuve, [Evie_Skinner] and jgmac1106 joined the channel
#
jgmac1106
what is pagination?
#
Loqi
pagination is a UI pattern for navigation across (typically chronologically) sequential pages that show one or more posts such as permalink post pages, archives, search results, and lists of tagged posts https://indieweb.org/pagination
#
jgmac1106
Trying to brainstorm how to add pagination and the url structure for my artilces page: https://jgregorymcverry.com/articles
#
jgmac1106
read Karthik and aaronpk do by year, was thinking every 12…not make it sate specific
#
jgmac1106
not sure about /,1,2,3 because new articles added to /, I don’t want to have to move everything once a page exceed 12 articles
gxt joined the channel
#
jgmac1106
maybe I do articles/yyyy/mm and use that as inspiration to try and publish 10-12 articles a month
#
jgmac1106
what happens then if I have a month with no writing? a 404? Maybe a redirect to the prev with a post
swentel joined the channel
#
jgmac1106
I will add a directory of months to my page not found: https://jgregorymcverry.com/pagenotfound so if someone was just poking around archives by messing with yyyy/mm url they can find months with stuff
#
Loqi
Greg McVerry
#
jgmac1106
too confusing just going to add a <?php include ’nopostthismonth.php'; ?> to yyyy/mm without anything and link to all the months with
#
swentel
GWG, what happens if 'read-status' is not posted to WP, will post kinds still see it as a read post because of 'read-of' ?
#
GWG
Yes
#
swentel
ok, chris suggested making it optional in indigenous
#
swentel
he seems to happy with the feature :)
#
Loqi
[Chris Aldrich] Congratulations on the fantastic updates on Indigenous! The recent changes are making me wonder how I’ve lived all this time without it. My first use of the read post functionality was a tad confusing because I wasn’t aware that either the WordP...
#
GWG
I need to check how I set it up.
#
GWG
I was going through my RSS feeds to see how they parsed
#
swentel
hmm I'll have to add it to xray
#
swentel
it completely ignores those property iirc
#
GWG
swentel: I have to see if I'm ignoring it
#
swentel
will be a little slower the next weeks here though, almost off to scotland for 3 weeks
#
swentel
and most features I wanted are in, so time for a little break :)
#
GWG
swentel: Have fun
gxt, nickodd and [LewisCowles] joined the channel
#
[LewisCowles]
jgmac1106 this sounds like what I was suggesting the other day RE: 404 handling and what happens if there is no month. You could use meta + http refresh to read the path and try to iterate to next month. It's not clean, but it would allow you to present a 404'ish screen, which is actually useful and continues to iterate the month until it hits one
#
jgmac1106
ahh okay for now I cheated I just made a php file that says “Wow Greg was lazy this month, check out the archives from mnths when he got writing done <ul></ul>
#
jgmac1106
then I made one file for each missing month, it isn;t many. this website only goes back to Nov 18 launched at NYC IWC
#
[LewisCowles]
👍 has it taken over all 404's or just for the posts paths?
#
[LewisCowles]
I remember you were using single PHP files to post (unless I've imagined it)
#
jgmac1106
just those post paths, but I need to fix some page first
#
[LewisCowles]
jgmac1106++
#
Loqi
jgmac1106 has 9 karma in this channel over the last year (86 in all channels)
jeremych_ joined the channel
#
jgmac1106
I did somethign wrong though, won’t pick up my head or header: https://jgregorymcverry.com/articles/2020/02 very strange…same template I use for everything
#
jgmac1106
I think putting it in a 2020 directory messed things up
chimo joined the channel
#
jeremycherfas
Continuing to decrease my dependence on DropBox, I currently have Arq backing up to AWS. When that's done, I think I'm going to move dailies to local storage and update AWS weekly.
#
jgmac1106
I need to .. to go back a directory
#
jeremycherfas
On a scale of 1 to 10, how important would you say it is to host my own web fonts?
[grantcodes] joined the channel
#
jeremycherfas
That's good enough to demote in my list of things to do. Thanks
#
[grantcodes]
Set a fallback and you are technically fine, I would say the main reason not to would be potential tracking.
#
jeremycherfas
I'll leave it on the list then, and demote.
#
jgmac1106
amy I writing this correct to go up one directory: <?php include('../head.php'); ?>
#
jgmac1106
there we go: https://jgregorymcverry.com/articles/2020/02 I had to use an absolute path, probably same bug in my regex that doesn’t allow me to visit any directory page
#
jgmac1106
oops missing p-name
[jgmac1106] and [LewisCowles] joined the channel
#
[LewisCowles]
first check if it's present and useful using var_dump or var_export; but it should be a (private server path) to your public web folder. It's no good for external or web-links, but perfect for including a header or common, core files
#
[LewisCowles]
[jgmac1106] there are some tricks for this going up a directory lark. One is to check `$_SERVER['DOCUMENT_ROOT']`
JOX and faa1 joined the channel
#
[jgmac1106]
I think my next in person IWC I will propose a session on low hanging fruit of automation with PHP and then beg someone to run the session
[tantek] and [snarfed] joined the channel
#
[tantek]
Uh there’s no such thing AFAIK as “low hanging fruit of automation” of any kind on a web server
#
[tantek]
They all require technical knowledge and the discipline to do regular maintenance
nickodd left the channel
#
jgmac1106
yeah but naming a session “teach Greg excatly what he needs” isn’t inclusive either…will try to think of better theme
genehack joined the channel
#
[tantek]
I don’t think it’s a session thing. I think it’s a hours of hard study thing
[KevinMarks], [fluffy] and [Jeff_Hawkins] joined the channel
#
[Jeff_Hawkins]
Every time I automate something I find myself having to do more manual work <grin>.
#
superkuh
I just log all http posts and sort through them with my eyes at the end of the day. Takes about 30 seconds/day. The payoff to automate it and handle all edge cases is probably many work hours away.
[LewisCowles] joined the channel
#
[LewisCowles]
Feel like I'm missing some context for superkuh, but it's a good approach to keep logs. Algorithms are man-made or made by man-made things. Not one of them is without flaw. Especially if context is lost.
#
[LewisCowles]
jgmac1106. Maybe a questions and answer micro-pub site would be able to help?
#
superkuh
Yeah, my fault for not reading the backlog more than 2 lines. *I* missed the context.
#
superkuh
I was just talking about webmention implementation.
#
[LewisCowles]
Very nice. So you manually register web-mentions?
#
jgmac1106
LewisCowles I was playing with Kirby and that was the best place to have a community to learn some basic PHP., i bet the Perch discussion boards were the same
#
superkuh
Yep. Then I use curl to respond, if I respond.
#
jgmac1106
I was doing the codeacademy courses but my free trial expired
#
[LewisCowles]
Perch by Drew & Rachel?
#
[LewisCowles]
Also CPD-Budget++
#
Loqi
CPD-Budget has 1 karma over the last year
#
[LewisCowles]
CPD budget is both financial and time, patience and humility
#
jgmac1106
yeah, I am sure they must have an active dev board somewhere, just a guess, really liked the Kirby guides they helped me learn some stuff
#
[LewisCowles]
the p can either be professional or personal. I prefer personal as it gives me agency in what I choose to learn.
vilhalmer joined the channel
#
[LewisCowles]
As a fan of empiricism I've found boards can be limited. Best to take all groups with a pinch of salt. Think about what they are saying at all times and try to grab the best parts.
#
[Jeff_Hawkins]
Sometimes doing things manually for a while sets the process really needed in your mind to where, when you see the answer, you'll recognize it.
#
Loqi
[Jeff_Hawkins] has 1 karma over the last year
#
[LewisCowles]
[Jeff_Hawkins] ++ agreed
[snarfed] joined the channel
#
[snarfed]
hey jamietanna, you around?
[jgmac1106] joined the channel
#
jamietanna[m]
hey snarfed
#
jamietanna[m]
For a little bit but off to bed shortly
#
jamietanna[m]
That's updated now - I've used `url` which seems to be present even on your example 👍️ if not found it'll return a 400. hopefully you're happy with that?
#
@danielpietzsch
Webmentions This site can now receive Webmentions. Either directly or via Twitter (with Bridgy’s help). Webmentions are a standard and open way to send and receive common social-media reactions like “comments”, “likes” or “replies” via and on any site.… https://danielpietzsch.com/articles/webmentions
(twitter.com/_/status/1229173400167501826)
#
[snarfed]
jamietanna: sure! requiring url is fine, and that error should be descriptive enough to be user visible
#
[snarfed]
so i think the bridgy PR is ready!
#
[snarfed]
it does show a few raw API JSON errors directly to the user right now, eg this when i try to rsvp to a group's event that i'm not a member of: `Error: {"errors":[{"code":"member_error","message":"Invalid member"}]} HTTP Error 400: Bad Request`
#
[snarfed]
and this when i rsvp to a nonexistent url (that passes the regex): `Error: {"errors":[{"code":"group_error","message":"Invalid group urlname xyz"}]} HTTP Error 404: Not Found`
#
[snarfed]
but those can be cleaned up later, they don't need to block deploy
#
jamietanna[m]
Awesome thanks! Hmm, did you want those resolved before we put it live?
#
[snarfed]
i'm ready to merge and deploy live if you ware
#
jamietanna[m]
Ah awesome 😁
#
[snarfed]
thanks again for your patience!
#
jamietanna[m]
Yes please! It's bed time for me here, so I'll get my blog post finished and released in the morning
#
jamietanna[m]
Having it live in the meantime would be awesome
#
[snarfed]
ok! here we go
#
jamietanna[m]
Awesome! Do you mind if I do a big announce post or did you want to do one too/instead?
#
[snarfed]
go for it!
#
[snarfed]
oh btw i usually handle specific errors from silo APIs by just pulling out the human-readable field, eg `message` here, and returning it directly as the user-visible error message
#
[snarfed]
feel free to do that here
#
[snarfed]
so now that you've got this whole thing down, is goodreads next? 😎
#
[snarfed]
it's live btw!
#
jamietanna[m]
Ah cool - that's a good idea, I'll do that
#
jamietanna[m]
Haha maybe 😉 few others sound interested in it tho!
#
jamietanna[m]
Hmm it's not yet showing for me but I'll try again in a few mins
#
[snarfed]
you're in an elite club now, just you and kyle and me have ever added a whole new silo
#
[snarfed]
thank you! and congrats!
#
jamietanna[m]
Thanks 😁 and thanks for the help with getting there
strugee joined the channel
#
jamietanna[m]
Snarfed I'm heading to bed - hope you manage to find out why the home page of bridgy doesn't show the sign in button for Meetup
#
jamietanna[m]
I see https://brid.gy/about#meetup-rsvp so it's definitely deployed
#
[snarfed]
jamietanna odd, it's definitely there for me