#dev 2019-03-18

2019-03-18 UTC
tw2113, iasai, KartikPrabhu, snarfed and [eddie] joined the channel
#
[eddie]
!tell Zegnat I use Postman, both personally and professionally and I enjoy it a lot.
#
Loqi
Ok, I'll tell them that when I see them next
iasai, [asuh], snarfed, KartikPrabhu and [Rose] joined the channel
#
[Rose]
I use Paw personally, it's included in SetApp. At work I use Insomnia (which may have an X at the end.)
deathrow1, KartikPrabhu, barpthewire, iasai, cweiske, snarfed, chrisaldrich and [kevinmarks] joined the channel
#
@franco_scarpa92
La mia motivazione di inizio settimana è quella di riuscire a implementare le webmention sul mio sito personale. Sono sempre più attratto dalla mission di @indiewebcamp. #MondayMotivation #webmention #webdev #personalwebsite
(twitter.com/_/status/1107567585980239872)
iasai joined the channel
#
Zegnat
[Rose] I found Paw a little expensive sounding for how often I would use it. But SetApp is kinda interesting. Maybe need to check that out.
#
Loqi
Zegnat: [eddie] left you a message 5 hours, 47 minutes ago: I use Postman, both personally and professionally and I enjoy it a lot.
#
Zegnat
Thanks for the recommendation [eddie]!
[Rose] joined the channel
#
[Rose]
SetApp is pretty handy if you need/want at least a few of the apps. I have found myself using more and more of the apps offered - I owned quite a few apps to start with but as they needed paid upgrades SetApp made more and more sense.
#
[Rose]
Urgh, I'm having one of those days, apparently I'm completely incapable of uploading a photo to my micropub endpoint through PHP's curl
[aaronpk] joined the channel
#
[aaronpk]
File uploads always throw me off in curl
#
GWG
Morning, aaronpk
#
[Rose]
Indeed, I got the posts working though!
#
[Rose]
I just need to figure out how to upload all the media, and how to replace all the references
#
[Rose]
I may have found the problem
#
[Rose]
It helps if you talk to the right endpoint
#
[Rose]
And now I have a much more logical error message
#
Zegnat
I’ve started relying on PSR-7 request objects and comopatible http clients. Makes life a lot easier on me when I only need to care about what the request looks like and not how it is being send
#
[Rose]
In this case I need to upload the files 😛
[jgmac1106], iasai, KartikPrabhu, eli_oat, [kevinmarks], barpthewire and snarfed joined the channel
#
[jgmac1106]
Oohh I am totally going to do SpiderPig and archive all my WP posts to jgregorymcverry.com
[eddie] joined the channel
#
[eddie]
I've heard people mention the idea of only showing part of a post to certain people and having part of the post be public. I haven't seen a use-case for this in my own mind until today. I was reading a week note and I realized, if I were to do week notes, it would be nice to make some of the bullet points or paragraphs private for me or semi-private for specific people.
#
[eddie]
Which would be pretty cool.
[cleverdevil], [pfefferle] and iasai joined the channel
#
@seldo
How are we adding authentication to random web apps these days? I found ooth but it's very confusing, is passport still a thing?
(twitter.com/_/status/1107473926421045249)
iasai, [schmarty], eli_oat, davy__, davy_, KartikPrabhu, davyht, snarfed and gRegorLove joined the channel
#
jeremycherfas
I keep getting string conversion errors when trying to do things with my PHP arrays. I think it is because one element is a timestamp. Is there some magic flag that says treat all the elements as a string, or similar?
[Rose] joined the channel
#
[Rose]
What code is causing the error? You should probably convert the date back to a string before processing the array.
#
jeremycherfas
Doing things like array_diff to find elements in one that aren't in the other. All elements have a timestamp. There are some other array operators where there is a flag that says don't try and change the type.
#
[Rose]
What should the end result be?
#
jeremycherfas
A much smaller array that contains only the items present in $a that are not present in $b
#
[Rose]
Seeing sample code would be really useful 🙂
#
jeremycherfas
Which I find more manageable than saving a timestamp and comparing each element to that.
#
jeremycherfas
Yeah, I'm almost done for the day. Will regroup and attack again in the morning.
#
jeremycherfas
But if I can get that to work, I'll do that.
snarfed, jackjamieson, francoscarpa, [schmarty] and nloadholtes_ joined the channel
#
Zegnat
array_diff() specifically compares string representations of whatever is within the array, so yeah, that could give trouble of the array contains objects that do not cleanly convert to strings
#
Zegnat
jeremycherfas: you could use array_udiff() instead. There you supply the function that is used to the diffing. The callback could probably be as easy as function($a, $b){return $a === $b ? 0 : 1; } (untested)
#
jeremycherfas
Right. I did something like that to dedupe on array, using array_unique because it was a multidimensional array. I’ll try something similar tomorrow.
#
jeremycherfas
One array.
eli_oat1, [Rose] and snarfed joined the channel
#
[Rose]
Woohoo! I have progress! I can upload media to my media endpoint via curl
#
Loqi
woot
[frank], snarfed, [tantek], KartikPrabhu and [schmarty] joined the channel
#
[schmarty]
woo! that makes like 100 other things possible 😄
#
Loqi
[schmarty]: [jgmac1106] left you a message 1 day ago: a recording on how to fork the webring would be pretty cool, want to set one up for https://remixer.visualthinkery.com/a/bloggersInk lot of my friends adding this
iasai joined the channel
#
[tantek]
Is anyone regularly POSSEing alt text along with their photos to Twitter? Looking for good examples
#
[tantek]
Also looking to implement which is going to take a bit of CASSIS hacking
#
[tantek]
because I have a bunch of images with text in them cued up, and it's enough to push me over the edge to try to code it up (to at least avoid KevinMarks's ire, not to mention obv do the right thing for accessibility 🙂 )
#
[tantek]
what is alt text
#
Loqi
alt is a required attribute of the <img> element and should be provided in any use of images on indieweb pages from photo posts to featured and other images in articles https://indieweb.org/alt_text
#
[tantek]
that page could use some IndieWeb Examples, and a POSSE section too! Pretty sure Bridgy Publish supports alt text on images to Twitter.
#
gRegorLove
Yep, Bridgy does.
#
gRegorLove
goes to update
barpthewire, leg, iasai, snarfed and j12t joined the channel
#
[tantek]
[gRegorLove] the example you added to /alt is 404: http://jgregorymcverry.com/6851-2/
#
[tantek]
I did verify that the img tag in the tweet does contain alt text so that's good
snarfed, [schmarty] and [tonz] joined the channel
#
gRegorLove
jacky, I was curious about your decision to truncate notes on https://v2.jacky.wtf/stream
#
gRegorLove
. I subscribe in monocle so it's not always the best experience.
#
gRegorLove
[tantek], Ah, oops. I copied that one from github without checking it.
#
gRegorLove
Where'd your post go, jgmac1106? :)
KartikPrabhu joined the channel
#
[tantek]
maybe it's in internet archive?
#
gRegorLove
I've got a weird issue, not sure if it's in Aperture or Watchtower. Whitespace between <data> and <a> is collapsed when the <data> element is stripped. It looks correct in Xray: http://xray.p3k.io/parse?url=https%3A%2F%2Fgregorlove.com%2F2019%2F03%2Fim-attending-indieweb-summit-2019%2F&pretty=true but there's no space when I read it in Monocle.
#
gRegorLove
Aperture subscription is for https://gregorlove.com/notes/
#
gRegorLove
The debug source JSON in Aperture doesn't have the space, hmm.
[frank], iasai, [jgmac1106] and [aaronpk] joined the channel
#
[aaronpk]
It's possible Aperture isn't using the latest version of XRay tho I thought it was...
#
[aaronpk]
I know we've been fixing up whitespace issues in the php microformats parser for a while now
#
[tantek]
BTW the reason I'm asking so much about alt text use / publishing / UI in #indieweb (from a publisher perspective) is that I'm now actively figuring out how to add alt text support to the CASSIS auto-linker
#
[tantek]
at which point it will definitely have grown beyond mere auto-linking and auto-embedding, and starting to enter into the realm of a markdown replacement
#
[tantek]
I already have the TBI hooks in the code and now I'm thinking about *how much* alt text to "allow", e.g. multiline alt text etc (which AFAIK Markdown does *not* support) 😉
#
[tantek]
proposed syntax is here if anyone is curious: http://tantek.com/w/Markdown#Alttextforimages
#
gRegorLove
Interestingly, whitespace between <data> and <span> is preserved in that feed (my read posts)
#
gRegorLove
Looks like aperture is using latest xray based on composer.lock
#
GWG
Howdy
#
GWG
All, What's going on?
#
[tantek]
GWG, I'm exploring alt text UIs and text formats
#
[tantek]
GWG, do you put alt text on the photos you publish on your site?
snarfed joined the channel
#
GWG
I usually put a title, which I believe ends up as alt text in WordPress. Will have to check
#
[tantek]
ugh what? that's really bad as title and alt are not the same!
#
GWG
I have to look
#
GWG
Let's say no I don't
#
[tantek]
now considering text syntax edge-cases for a hyperlinked image with alt-text
iasai joined the channel
#
[tantek]
just thinking about alt text is firing up the brainstorming for more extensive auto-linking
#
[tantek]
now thinking about the right thing to do for abbreviations
#
[tantek]
HTML unfortunately lacks a construct for DRYly marking up expanded abbreviations inline, e.g. https://en.wikipedia.org/wiki/XHTML_Friends_Network "XHTML Friends Network (XFN)"
#
[tantek]
However we could do something about the reverse, e.g.
#
[tantek]
XFN (XHTML Friends Network) could be auto-marked-up as <abbr title="XHTML Friends Network">XFN</abbr>
#
[tantek]
since you should be able to remove a parenthetical expression from the immediately visible prose text and have the prose still make sense
#
[tantek]
hmmm looks like Markdown doesn't support abbr, but there's an extension Markdown Extra that does: https://talk.commonmark.org/t/abbreviations-and-acronyms/890
#
[tantek]
in this form:
#
[tantek]
*[HTML]: Hyper Text Markup Language
#
[tantek]
which looks both horribly cryptic and hard to remember, as well as too similar to list-item syntax
#
[tantek]
I prefer this as the plain text equivalent:
#
[tantek]
HTML (Hyper Text Markup Language)
iasai and [jgmac1106] joined the channel