#dev 2019-07-31

2019-07-31 UTC
[tantek] joined the channel
#
[tantek]
has anyone built anything even remotely resembling the 2D manipulation space of Miro, like for their own site?
#
[tantek]
summary: like a /collection post where you can arrange the items in 2D and draw/label arrows between them etc.
#
[tantek]
I feel like a lot of that should be possible (for display at least) with existing h-entry and CSS positioning etc.
#
[tantek]
what's challenging is that the positions of stuff on such "boards" is ostensibly part of the "content" of the /collection, not just presentational
#
[tantek]
yet how to represent that
[prtksxna] and mblaney joined the channel
#
jgmac1106[m]
Would an arrow indicate a relationship between p-category... Guess could be anything
#
[tantek]
visual hypertext would be another metaphor for it
#
[tantek]
an arrow could be represented by a link (a href) from one item to the other, and labeled as such too
#
[tantek]
Miro boards separately show "tags" on the "notes" in them
#
jgmac1106[m]
<[tantek] "visual hypertext would be anothe"> Sequential done with rel= next and categorical u-category or rel=tag
#
jgmac1106[m]
Sknebel shared an HTML tool for sharing flow charts or decisions trees... Now you have me intrigued designing visual semantic maps... Be better than chronological display
[jgmac1106] joined the channel
#
[jgmac1106]
I think possible approach. You tag posts. Then in some UI you make your taxonomy of tags and if desired go down to granular level of post
[tantek], [Michael_Beckwit, KartikPrabhu, AbraKidAbra, abrakidabra and [Vincent] joined the channel
#
[Vincent]
[grantcodes] Sorry I’ve been swamped at work and missed this. Project looks interesting, I’ll try and catch up in a few weeks when I climb out from under this giant pile of work!
cweiske, [tonz], jgmac1106 and KartikPrabhu joined the channel
#
jgmac1106
used viewport for font-size yesterday for the first time…way easier to get typography correct on all deviices. Is iit considered good practice? bad practice? Who cares?
#
jeremycherfas
I would imagine good practice. But have never deliberately used it myself.
[grantcodes] joined the channel
#
[grantcodes]
Make sure to set a min an max though. Otherwise it gets ridiculous on odd sized screens
#
jgmac1106
trying to see if I can fix a microdotblog theme. Does an h-feed need a title?
[Rose] joined the channel
#
GWG
Morning
#
Loqi
morning!
#
GWG
No, but titles are preferable
#
GWG
jgmac1106, I just updated the h-feed how to markup instructions
#
jgmac1106
on mf2 wiki or indieweb wiki?
#
jgmac1106
What is h-feed?
#
Loqi
h-feed is a microformats2 draft specification with a top level feed object to contain root class(h-*) objects, usually h-entry posts and optionally a common author, name, and representative photo https://indieweb.org/h-feed
#
jgmac1106
also on authorship it says “if you have an h-card in your footer” then add a minimal <a class="u-author" href="/"></a>….can it be in the header as well?
mblaney left the channel
#
jgmac1106
gwg++ on rewrite
#
Loqi
gwg has 32 karma in this channel over the last year (160 in all channels)
[prtksxna] joined the channel
#
GWG
Yes, technically. Maybe that needs to be improved alsi
#
GWG
also
#
GWG
I did a run at the h-feed guidance because it was confusing in my opinion
#
jgmac1106
I will fix. I figured as much but the literal meaning of the sentence is in your footer
#
jgmac1106
I think I did this one microdotblog theme correctly: https://github.com/microdotblog/theme-arabica/pulls
#
GWG
I will look as someone who is trying to rewrite those things to be more helpful
eli_oat joined the channel
#
GWG
Has anyone ever sent a webmention against an image URL and why would you?
#
GWG
I am looking at the example of parsing for urls in video and audio links
#
cweiske
my stapibas tool does this
#
cweiske
so that I see who links to my images
#
cweiske
or that others see that I link to their images
#
cweiske
or embed them
#
GWG
That's interesting
#
GWG
Is that documented somewhere?
#
cweiske
how do you detect that an url is an image url?
#
GWG
Anyone do any webmentions of json or XML documents?
#
cweiske
I simply webmention all links and do not care for their type
#
GWG
So do I right now
#
GWG
I am thinking about receiving more than sending
#
GWG
I currently ignore it if a URL is actually an image or video when received
#
GWG
Because you can't verify it
#
cweiske
page A links to image B
#
cweiske
you can verify that link
#
GWG
If the source url is
#
GWG
Excuse me
#
cweiske
oh. the source URL is an image? that's interesting
#
GWG
Sending webmentions to images as opposed to from images
#
cweiske
so sending webmentions from images
#
GWG
I have never seen that happen, but I check for it
#
GWG
Yes
#
cweiske
link verification would fail here, and the webmention would be rejected
#
GWG
I thought it might be an attack vector if I downloaded the URL
#
GWG
To get my server busy downloading large files
#
cweiske
how would you do link verification other than downloading and parsing the html?
#
GWG
I fetch only a certain number of bytes and check the mime type
#
Zegnat
If you fear for downloading big files, that applies to HTML too. Especially if you accept e.g. gziped HTML, may well be a decompression bomb
#
cweiske
decompression bombs work with nested zip files only, not with the standard one-file gzip encoding used in browsers
#
Zegnat
I thought there was a single pass gzip that decompressed into multi-GB. May be misremembering
bushido[m] joined the channel
#
Zegnat
cweiske: wouldn’t something like curl try and decompress e.g. `dd if=/dev/zero bs=1M count=10240 | gzip > 10G.gzip` ?
#
cweiske
is this a "bomb"?
#
GWG
I am just looking at all improvements that I can make to webmentions and adding them as issues to the repo in order to be prepared
#
Zegnat
cweiske: it will surely give the shared hosting some issues I imagine
[KevinMarks] joined the channel
#
[KevinMarks]
An svg image can have links in
#
[KevinMarks]
And m4a and mp4 have specs for timed links, though not sure how often they're used
[tantek] and [manton] joined the channel
#
[manton]
[tantek] I have a feeling that feed issue is related to something we've talked about before, which is when a feed copies most of the post text into the title too. I know there are a couple improvements I can make to Micro.blog around this... Generally Micro.blog gets confused when a title is not a "real" title.
#
[manton]
This actually relates to the discussion here a few days ago about Atom vs. RSS. I prefer RSS in part because the title is optional, which is a better fit for microblogging.
willnorris, [calumryan] and [jgmac1106] joined the channel
#
[KevinMarks]
Atom does it the other way round, where the title is for microblogging and the summary and content are optional.
#
[KevinMarks]
With rss both title and description are optional, but you need to have one or other. Also, description is defined as a synopsis but used as content too.
#
[KevinMarks]
The name/summary/content split is useful in defining increasing length and completeness. With RSS you never know if the item is complete or not.
#
[KevinMarks]
Mf2 auto-name default did do this originally, so name would end up being all the text in the entry. We've changed that since.
#
[manton]
Yeah, to me the Atom way is counterintuitive. If you think about the UI of a blogging platform, you might have a title field and a content field. If someone wants to write a microblog post, it wouldn't be natural to put all the text in the title, especially if there is markup.
#
[manton]
It's even more confusing using the "name" terminology in Atom and MF2. It wouldn't be accurate to call most microblog posts the "name" of anything.
#
[tantek]
It didn’t start that way. Notes had empty “name” properties but that screwed up legacy RSS readers which insisted / assumed every post had a “title”
#
[tantek]
(Answering in reverse order)
#
[tantek]
I disagree with kevinmarks that there is a defined Atom way to do /notes or microblog posts.
#
[tantek]
I think the right “minimal” way would be to put /note content into the content property and leave “name” empty
#
[tantek]
Kinda tempted to switch to that and then make it the problem of legacy RSS readers
#
[tantek]
To put it another way, at this point micro.blog as a reader is more important to me than legacy RSS readers
#
cweiske
it's also the semantically correct decision
#
[manton]
That is exactly how Micro.blog does it. Content into content, blank name/title. It's true that some RSS readers don't like it, but the only way things will get better is if readers are forced to update. I know some like Feedbin already have.
[Jacob_Michelsen and [kimberlyhirsh] joined the channel
#
[jgmac1106]
Ahhh Manton I forgot the title on a micro.blog post wouldn't kick in until 280 characters exceeded... Thats gonna make the PR I tried in the theme wrong I think
[benatwork] joined the channel
#
[KevinMarks]
That's fair, but conversion to atom will fail validation without a title, so you'll see a generated one
#
[KevinMarks]
Mastodon ones are annoying
#
[KevinMarks]
the titles are all like "New status by KevinMarks" "KevinMarks shared a status by aaronpk@aaronparecki.com"
#
[KevinMarks]
they do that for RSS to
#
aaronpk
Conversion by who?
#
aaronpk
maybe they should stop including a title in atom too
#
[KevinMarks]
the h-feed is clean 😄
#
[manton]
[KevinMarks] Mastodon is a great example of where overloading the title breaks down. I actually have support in Micro.blog to recognize the "new status by" and ignore it! Those hacks should not be necessary.
#
[KevinMarks]
granary adds a title that is a very truncated version of the content if there isn't one https://granary.io/url?input=html&output=atom&url=https%3A%2F%2Fxoxo.zone%2F%40KevinMarks
#
[KevinMarks]
now I'm getting technorati flashbacks
#
[KevinMarks]
iirc when twitter had feeds the title and content were the same
[snarfed] joined the channel
#
[snarfed]
hi [manton]! did you and [tantek] talk about missing images in m.b profiles syndicated from feeds? eg https://micro.blog/snarfed and https://micro.blog/t , looks like it started in april or may
#
[snarfed]
low priority
#
[snarfed]
[kevinmarks] thanks for the nudge! looks like a straightforward granary rss bug that i can fix
[eddie] joined the channel
#
[eddie]
snarfed: I believe that's what was discussed above. If the "note content" is provided in a feed post title field, m.b. treats it as an Article and doesn't display any images
#
[snarfed]
ah ok. i only half follow that, but sgtm if they're aware of it and consider it a bug. (sounds like that's maybe true but unclear? 😁)
#
[eddie]
In order for images to appear in m.b a post's title/name field must not exist
#
[snarfed]
starts to glaze
#
[eddie]
it's not considered a bug
#
[eddie]
at least currently, it's expected behavior
#
[snarfed]
ok. seems unfortunate but i don't feel strongly about my m.b feed
#
[snarfed]
happy to fix granary bugs if we conclude its rss has one though, eg the `-` titles
#
[eddie]
How do you provide your feed to mb? h-feed to granary?
[tantek] joined the channel
#
[tantek]
snarfed, it appears I can do things on my end to simplify / cleanup my /note and /photo posts in my Atom feed, so I'm going to start with that
#
[tantek]
and seeing if it "fixes" micro.blog
#
[snarfed]
[eddie] no, wordpress default afaik
#
[eddie]
ahh gotcha
#
[snarfed]
my notes have empty `<title>`s in that RSS feed
#
[snarfed]
ie the element is there but content is a blank string
#
[eddie]
ohhh huh
#
[eddie]
yeah I see that
#
[tantek]
snarfed, yes that is what I'm likely going to do too
#
[tantek]
so yes, stick with empty <title> in RSS/Atom for notes and photos
#
[eddie]
The other issue is when content > 280 characters, I believe HTML gets stripped
#
[tantek]
that's weird
#
[tantek]
my goals with this set of fixes is 1 get photos showing up in micro.blog again, and 2 hopefully have the alt text also show up
#
[snarfed]
https://micro.blog/snarfed#post_div_4024479 is an example in my feed with <280 chars and empty `<title>`
#
[eddie]
hmmm I'm lost then haha
#
[eddie]
I'll link to that and file a GH issue so [manton] can investigate later because that definitely seems like it should be appearing
#
[KevinMarks]
In Atom, title is a MUST
#
[eddie]
[manton] I put snarfed's interesting case of a missing photo in this GH issue: https://github.com/microdotblog/issues/issues/152
#
Loqi
[EdwardHinkle] #152 Images not showing up from RSS feed from Wordpress blog
#
[KevinMarks]
I think most readers would cope, others might make their own fallback
jackjamieson joined the channel
#
[tantek]
Kevinmarks I am suggesting <title></title>
KartikPrabhu and eli_oat joined the channel
#
[snarfed]
thanks eddie!
[fluffy] joined the channel
#
[fluffy]
Empty title isn’t ideal for readers where the title is also used as the anchor for the link.
#
[fluffy]
Although that’s less an issue in a microblogging context anyway.
#
[fluffy]
And at least FeedOnFeeds has a separate “permalink” widget that handles that case.
#
[fluffy]
It might also add “no title” to the title.
#
[snarfed]
right, many (most?) readers usually have a UI control for opening the item's URL, independent of the title
#
[fluffy]
Most, yes. I wouldn’t want to rely on it being all, though.
jjuran and eli_oat1 joined the channel
#
[tantek]
[fluffy] lets start explicitly documenting those readers that have poor UI for "notes", i.e. any remaining readers which screw-up when the "title" is empty
#
[tantek]
as in start creating a wiki page for each, and noting issues like that with screenshots
#
[tantek]
tinbox << remove synthetic "title" from Atom feed as it causes problems for micro.blog syndication, which is now much more important/relevant than legacy RSS reader support
#
Loqi
ok, I added "remove synthetic "title" from Atom feed as it causes problems for micro.blog syndication, which is now much more important/relevant than legacy RSS reader support" to the "See Also" section of /tinbox https://indieweb.org/wiki/index.php?diff=64065&oldid=63402
[jgmac1106], [benatwork] and [manton] joined the channel
#
[manton]
[eddie] Thanks for writing that up! Very likely the relative image path... I'll look into it.
[mapkyca], [Rose], NinjaTrappeur, KartikPrabhu, leg, nlko[m], [tantek], [Jeannie], [jgmac1106], [snarfed] and [Michael_Beckwit joined the channel