#dev 2019-10-17

2019-10-17 UTC
#
[jgmac1106]
a stripped down loqi or kaja Slack bot folks could add to unfurl links would be a neat little toy to play with
[tantek] and gxt joined the channel
#
[tantek]
45 hours until !tell tantek note to self: figure out how to update RSVPs display on events to link direct to RSVP permalinks
#
Loqi
I added a countdown scheduled for 2019-10-18 4:00pm PDT (#6665)
[dmitshur] joined the channel
#
[dmitshur]
Hello. I have another question/topic to discuss in my quest to migrate from GitHub identities to URL identities.
#
[dmitshur]
I understand, as part of IndieAuth, it's recommended and possible to rely on Microformats (microformats2) to fetch metadata about the person, including their name and photo. http://microformats.org/wiki/h-card -> "name" and "photo" properties should give you that.
#
gRegorLove
Hm, should micropub `visibility` be a property of the post itself or of the mp request, with the mp- prefix?
#
gRegorLove
Looks like Micropub for WordPress expects the former
#
[dmitshur]
GitHub identities come with an important property "login", in the sense that it's used like "@username" to mention users and cause them to receive notifications.
#
[dmitshur]
I'm wondering if there's equivalent property I can use when relying on URL identities.
#
[dmitshur]
It has to be something unique to avoid ambiguity. GitHub usernames have that property, github can enforce it by preventing people from creating a second account with an existing username.
#
gRegorLove
You could look for p-nickname in the h-card
#
[dmitshur]
Right now I'm just using their GitHub username; not creating one of my own.
#
[dmitshur]
Thanks, that sounds like a close fit, but I worry using that for @mentions can be prone to problems because different people can have identical h-nicknames.
#
[dmitshur]
People's URL is guaranteed to be unique... so maybe it's worth considering using that.
#
[dmitshur]
E.g., "hey @jgregorymcverry.com can you take a look at this?"
#
gRegorLove
Ah. Yeah. Are you talking about syndicating your reply to Github?
#
[dmitshur]
For now, I'm just thinking about the task of parsing text to understand when an @ mention happened.
#
[dmitshur]
I should read up on https://indieweb.org/Webmention and see if I get any ideas, or maybe it already solved this problem.
#
[dmitshur]
A more concrete initial use-case would be in the context of an issue tracker on my personal site.
#
[dmitshur]
I realize I would probably have an easier time with some of these things if I let people post issues/replies on their websites rather than on mine. Because then I could just rely on Webmentions directly, etc.
#
[jgmac1106]
I think I want to figure out away to move my nav to my footer on mobile, wished I used grid areas rather than explicit grids...didn't know well enough at time
oodani and [snarfed] joined the channel
#
[dmitshur]
Very interesting. Thank you!
#
[dmitshur]
I've checked a few people's h-cards and no one seems to set h-nickname 😞
#
aaronpk
Nicknames are a personal thing
[dougbeal] joined the channel
#
aaronpk
I have defined nicknames for people in my nicknames cache regardless of whether they've published their own nicknames on their site
#
[snarfed]
right. like your email address book
#
aaronpk
so in my posts you might see me mention @t and @tantek and both link to Tantek.com
#
aaronpk
but that happens on my side even if Tantek didn't publish his nicknames
#
gRegorLove
I have p-nickname in my h-card (gregorlove.com), but yeah /nickname-cache is more what you want.
#
aaronpk
The trick is to stop thinking about the system as a globally unique set of names, because that doesn't work and isn't realistic. It only works when you have a silo enforcing uniqueness
#
[dmitshur]
That sounds reasonable for blogging and interacting with people you know. It may not work as well in the context of an issue tracker, where a random person (who you don't know) may file an issue and you may want to @-mention them (or someone else who commented in that issue).
#
aaronpk
in practice people refer to each other with a name that is unique enough within the context of the target audience
#
aaronpk
separate from that is their DNS name
#
aaronpk
which is a globally unique database of names
#
[dmitshur]
yeah, I imagine autocomplete that just suggests names or URLs of all people who commented in the issue would work well enough
#
aaronpk
theres nothing special about issue tracking here
#
aaronpk
it's just like handling any other response to one of your posts
#
[dmitshur]
I guess it's not too different from blogging, where a random person may leave a reply. only difference is that issues may be started by people other than you, but that's not a big difference.
#
[dmitshur]
this is very helpful, thanks for feedback 🙂
#
[dmitshur]
Also, I don't have to drop github usernames right away; I can use them (for people who have github accounts) to populate my nickname cache. But I can start decreasing my reliance on them and make it possible for someone without a github account to interact without compromises.
#
gRegorLove
bumping so it doesn't get lost in other conversation: https://chat.indieweb.org/dev/2019-10-17#t1571278577935100
#
Loqi
[gRegorLove] Hm, should micropub `visibility` be a property of the post itself or of the mp request, with the mp- prefix?
#
gRegorLove
It feels like a server command to me
#
GWG
gRegorLove: There was a debate about that I remember
#
gRegorLove
I couldn't find it on github or the wiki
#
GWG
I don't recall, but I remember it vaguely
#
Loqi
[GWG] Why is visibility, which is a command, not mp-visibility in Micropub?
[tantek], [jeremycherfas], jjuran, [fluffy], [Rose] and [grantcodes] joined the channel
#
[grantcodes]
Yeah it doesn't have mp- Infront of it. I also brought that up on a GitHub issue somewhere - although I may have been talking about another similar property
[Lewis_Cowles] joined the channel
#
[tantek]
after tonight's meetup I'm thinking that my authoring UX needs to be LocalFirst
[KevinMarks] joined the channel
#
[KevinMarks]
[dmitshur] if you expand the github usernames to github urls then you have uniqueness
krychu, gRegorLove, [calumryan], kingpapa, [Rose], kingpapa_, d0gfart and [jgmac1106] joined the channel
#
[jgmac1106]
What is LocalFirst?
#
Loqi
It looks like we don't have a page for "LocalFirst" yet. Would you like to create it? (Or just say "LocalFirst is ____", a sentence describing the term)
[calumryan] joined the channel
#
[calumryan]
What is JAMstack?
#
Loqi
JAMstack is a web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup https://indieweb.org/JAMstack
d0gfart, kingpapa, kingpapa_ and [Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
What is OfflineFirst?
#
Loqi
It looks like we don't have a page for "OfflineFirst" yet. Would you like to create it? (Or just say "OfflineFirst is ____", a sentence describing the term)
#
[Lewis_Cowles]
OfflineFirst is a group dedicated to the furthering of experiences without guaranteed network connectivity http://offlinefirst.org/ http://hood.ie/blog/say-hello-to-offline-first.html
#
[Lewis_Cowles]
I still have not been able to locate LocalFirst. I’m hoping it’s local compute before deferring to the network, but 3 search engines, duck, google and bing suggest it’s about supporting local businesses including farmers markets
gxt, kingpapa and [KevinMarks] joined the channel
#
[jgmac1106]
Yeah "local first" too common
#
[jgmac1106]
Very interested in that with our OER work in Ghana. Need offline first websites and wikis
kingpapa_ joined the channel
#
[Lewis_Cowles]
OER -> Open Educational Resources (OER)?
[frank], kingpapa and kingpapa_ joined the channel
#
[jgmac1106]
my bad, sorry for jargon, yes
#
[jgmac1106]
why would bridgy be telling me I am missing an h-entry on that note?
[Rose] joined the channel
#
[jgmac1106]
I get this message, "Could not find content in h-entry or any other element!"
#
beko[m]
It's empty content. Mayhap it's this.
#
[jgmac1106]
Yeah what is making the p-name empty? The blockquote?
#
Loqi
Quote of the day:
#
Loqi
Quote of the day:
#
[jgmac1106]
ohh duh...I am nesting a blockquote in a p and the p has the p-name e-conent
#
[Lewis_Cowles]
jgmac1106++
#
Loqi
jgmac1106 has 11 karma in this channel over the last year (111 in all channels)
#
beko[m]
sorry, did just see the php link and not the website source and yeah looks like p-name on e-content so I guess it's confused.
#
[jgmac1106]
beko++ for help
#
Loqi
beko has 1 karma over the last year
#
[jgmac1106]
in trying to to keep my notes as simple as possible I used p-name on the p element...doesn't work for a quote post
#
beko[m]
iktf. I'm probably responsible for a lot of traffic on php.microformats.io 😆
#
[jgmac1106]
now to figure out how to build a page of all my notes...why I am working through the PHP course..but for now just may add an include and make a list of all links in the directory, won't have content or markup but is a start
#
[Rose]
foreach($notes as $note) {
#
[Rose]
print_r(file_get_contents($note));
[aaronpk], kingpapa, OsakaFoo and kingpapa_ joined the channel
#
[Lewis_Cowles]
Do you have many notes?
#
[Lewis_Cowles]
and are they static, or do they use PHP?
#
[jgmac1106]
They use php for header and footer and are all php files not many now, will need to figure out pagination, may use a weekly subdirectory, probably should do by day
kingpapa joined the channel
#
[jgmac1106]
Some days I might publish 50+ notes
#
Loqi
Rose has 16 karma in this channel over the last year (54 in all channels)
#
[Rose]
So the content of the file is a full PHP page?
#
[Rose]
You'll need to extract the content somehow, it might make more sense long term to look into storing these items in a database (SQLite, MariaDB), or putting the content into JSON files which your PHP template reads. But that's a whole other rabbit hole with routing and so on.
#
[Rose]
Having spent yesterday justifying to management why two of us would like to go on a Symfony course that's what I'd use, but that's me 🙂
#
[Lewis_Cowles]
Did you win [Rose]?
#
[Rose]
I find out on Wednesday
#
[Lewis_Cowles]
🎖
#
[Rose]
I'm getting the hang of it, but I feel like I'm wasting a lot of time trying things which don't work - hence wanting the training
#
[Rose]
(Also, this is a high visibility project affecting around 40,000 people, so it would be nice to get it right)
jeremych_ joined the channel
#
[Lewis_Cowles]
That is very responsible of you. I only wish more people felt the same.
#
[Rose]
This is password management... if I screw it up then it'll be the front page of all the local newspapers
#
[Rose]
Oh, and it could compromise the personal data and passwords of all those people. I'd rather that didn't happen
#
[Lewis_Cowles]
I genuinely meant that it was good and that I wish more people felt the same.
#
[Rose]
Yeah, I wish I knew what I was actually doing though, or had more of a clue than I do - I feel like I have no idea what I'm doing (probably much safer than "I know everything about password management and security!" though). But yes, training is good!
#
[Rose]
[Lewis_Cowles]++
#
Loqi
[Lewis_Cowles] has 3 karma in this channel over the last year (6 in all channels)
#
[jgmac1106]
[Rose] i will figure some way to do this with flat files..just gonna be slow... Though at some point I want webmentions... Which means some kind of storage... Dunno... But that long way off
#
[jgmac1106]
May just start manually adding them from webmentions. Io right now just to play with how I want webmentions to display
#
beko[m]
<[Rose] "I'm getting the hang of it, but "> sounds like a typical dev day 🙂 find out how stuff works - or doesn't.
#
[Rose]
Mostly doesn't 😛
#
beko[m]
yeah… a copper for every function that never went into production =)
[tonz] joined the channel
#
[Rose]
The good news is I think I accidentally followed a good path to get to where I currently am. I went with Doctrine DBAL, Doctrine ORM, and then Symfony.
#
Loqi
"Do not take life's experience too seriously. Above all, do not let them hurt you, for in reality they are nothing but dream experiences. Play your part in life, but never forget it is only a role."Paramahansa Yogananda
#
Loqi
"Do not take life's experience too seriously. Above all, do not let them hurt you, for in reality they are nothing but dream experiences. Play your part in life, but never forget it is only a role."Paramahansa Yogananda
[mapkyca], [calumryan], [schmarty], [tantek], IWSlackGateway, [aaronpk] and [Zegnat] joined the channel
#
[schmarty]
ooh, this piece from CSS Tricks about "image management services" jives with a lot of my thoughts about image proxies as an indieweb building block. https://css-tricks.com/workflow-considerations-for-using-an-image-management-service/
dougbeal|mb1, [Lewis_Cowles], [Rose], jfoster and [calumryan] joined the channel
#
[calumryan]
Progress on my site has stalled somewhat in recent months, attempting to resolve why it 503s on restart
#
[Lewis_Cowles]
503 is service unavailable
#
[Lewis_Cowles]
it could be that it takes some time to be able to serve requests
#
[Lewis_Cowles]
what does it use (tech)?
#
[calumryan]
PHP backend with Apache2 on Ubuntu 18
#
[Lewis_Cowles]
fpm, cgi or mod_php?
#
[Lewis_Cowles]
does `tail /var/log/apache2/error.log` give any hints?
#
[Lewis_Cowles]
Oh, that should never happen…
#
[calumryan]
Possibly I need to take another look at the logs
#
[Lewis_Cowles]
it could also be that a config is telling apache to use fpm, despite mod_php being installed, thus overriding (must have allow overrides on)
#
[Lewis_Cowles]
if you allow overrides, it could be a .htaccess file
[xavierroy], gRegorLove, jfoster, [snarfed], gxt and [jgmac1106] joined the channel
#
[jgmac1106]
[schmarty] yeah been thinking of the privacy/security/time saving balances
#
[jgmac1106]
I am assuming my shared host uses a decent CDN... Or thier host upstream... I do better in time test with my images on my shared host when compared to CDNs I tried
#
[jgmac1106]
N=3 and one bwing Glitch's, with a wake up, so that doesn't count
[grantcodes] joined the channel
#
[jgmac1106]
uggg zegnat now that I am officially working on a Known plugin back to the APA problem of citations....May just use two form fields (link, description) for MVP and leave it up to the reader. no consumer...no problem...plain text just the same
#
[jgmac1106]
Known plugin for a course builder I mean, to be followed by the webmention badging plugin...
#
[Rose]
Local WordPress is installing, woot!
#
Loqi
😊
#
[Rose]
Good news, I did not break WordPress with my custom theme, that’s useful
#
[snarfed]
oops, sorry, announced that in #indieweb, not here. switching back to that channel
[dougbeal] joined the channel
#
[dougbeal]
[snarfed] what does bridgy looks for? rel-me and url doesn’t seem like it would be enough to identify mastodon
#
[snarfed]
[dougbeal] what do you mean by "look for"?
#
[dougbeal]
[snarfed] What identifies it as mastodon
RobotLordimperia joined the channel
#
[snarfed]
sorry, not trying to be obtuse. have you signed up yet? ie clicked the mastodon button on https://brid.gy/ ?
#
aaronpk
:blink: i don't see a mastodon button...?
#
sknebel
There is no Mastodon button on there for me?
#
[dougbeal]
Same, I was assuming I needed some sort of different rel-me link
#
[snarfed]
huh. hard refresh?
#
[snarfed]
oh nm sorry, let me clear a cache
#
aaronpk
what are the two hardest problems in computer science?
#
Loqi
It looks like we don't have a page for "two hardest problems in computer science" yet. Would you like to create it? (Or just say "two hardest problems in computer science is ____", a sentence describing the term)
#
sknebel
The two hardest problems in computer science are naming things, cache invalidation, off by one errors and cache invalidation.
#
[snarfed]
sorry about that! ok try again
#
[snarfed]
aha first bug, need to change how i find web site urls in profiles, thanks for discovering 😁
jfoster joined the channel
#
[dougbeal]
should it be identity?
#
[snarfed]
the labels are all user provided afaik, not sure there are standards
#
[snarfed]
fixed, it should find your web site now if you log in again
#
[snarfed]
poll hit another bug. thanks again for testing!
#
[dougbeal]
“The redirect uri included is not valid. ”
dougbeal|mb1 joined the channel
#
[snarfed]
logging in again? ugh yeah, i hit that during testing too. oauth works the first few times, then starts to fail like that. no idea why. redirect URI definitely matches the one registered with the API client, and sent in the initial redirect to them
#
[dougbeal]
Nope, already signed in
#
[snarfed]
sorry, i'm confused. where did you see that message?
#
[snarfed]
oh, publishing. yeah, same thing, oauth. whee
#
[snarfed]
oh actually nm, that's a publish bug i understand. can fix.
#
[snarfed]
[dougbeal] just to confirm, that was on trying to publish something, right?
#
dougbeal|mb1
snarfed: yep
#
@JamieTanna
↩️ @craigburgess Ooh interesting - do you know if @attending is Open Source? Would be cool to add IndieAuth support
(twitter.com/_/status/1184891365374791680)
#
[Rose]
Oh dear, apparently I didn’t git push…
#
[Rose]
This is problematic
[tantek], snarfed and [calumryan] joined the channel
#
[Rose]
If anyone has any suggestions for retrieving unpushed git commits I’m all ears.
#
sknebel
[Rose]: call someone who can go to the machine and push them
#
[Rose]
I brought the keyboard and mouse with me.
#
[schmarty]
[Rose] if you can SSH into the machine, you can set it up as a remote and pull down to your local one.
#
[Rose]
I’ve been sending remote commands to the machine to do it, but it seems to be asleep (it should be on all the time)
#
[schmarty]
boo asleep
#
sknebel
send someone to poke it to wake it up?
#
sknebel
(of course probably doesn't solve your problem "now")
#
[Rose]
I’m asking my system administrator to enable ssh access through our network.
#
[Rose]
It has wake on LAN, and definitely runs scripts in the morning. I have two days to fix this before I need the theme :)
#
[Rose]
Thanks for the advice everyone! I’m too used to subversion.
eli_oat and llllllDiscord[m] joined the channel; snarfed left the channel
#
[Rose]
Update: simplest was for him to ssh in on the local network and do git push. He’s looking for the folder because of course I’ve forgotten exactly where it is.
krychu joined the channel
#
[Rose]
Folder located, and git pushed. I’ll be changing my IDE settings to do that automatically I think.
#
[Rose]
Thanks dev chat!
snarfed, jfoster, KartikPrabhu and [grantcodes] joined the channel; JamesLefrereDisc left the channel
#
[grantcodes]
Has anyone made a micropub ui that makes use of service or user data from the syndicate-to config - example data: https://www.w3.org/TR/micropub/#h-syndication-targets
#
[grantcodes]
Working on my new micropub client stuff and wondering what I can do with that
[Lewis_Cowles] and KartikPrabhu joined the channel
#
gRegorLove
I think Quill does
[snarfed] joined the channel
#
[grantcodes]
I think I figured something out based on the ui from buffer
#
[grantcodes]
I guess I don't see it on quill since my endpoint only returns the name anyway 😅
gxt and [dougbeal] joined the channel
#
[dougbeal]
[grantcodes] OmniBear makes checkboxes
gxt_ joined the channel