#dev 2019-10-23

2019-10-23 UTC
kppDiscord[m], kppDiscord[m]1 and [KevinMarks] joined the channel
#
[tantek]
oooh I'm admiring https://manton.org/photos/ and now kinda want that for my own site as a view of *just* my photo posts!
#
Loqi
Manton Reece
#
[tantek]
... from the recent micro.blog newsletter from [manton]++
#
Loqi
[manton] has 19 karma in this channel over the last year (53 in all channels)
mblaney, tadpole256Discor, gxt_, artlung and [Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
[qubyte] if you were to add some attribute to your css you could find and replace it using the link. Then you only need to know the new value.
#
[Lewis_Cowles]
Interestingly it's not just the content, but a HTTP Response which is cached, so you can set headers, you can evict cache explicitly from service-workers
#
[Lewis_Cowles]
RE: algorithm of netlify it seems to be a zero-padded hex representation with a fixed suffix
#
[Lewis_Cowles]
taking the suffix, we can see it never goes above f (hex)
#
[Lewis_Cowles]
parseInt('dd35ee29f012db1ba370d59200e984d9', 16) gives us 1.852951348136671e+38
#
[Lewis_Cowles]
185295134813667100000000000000000000000 moving decimal right 38 times if I'm not mistaken
#
[Lewis_Cowles]
new Date().getTime() gives us 1571806019783
#
[Lewis_Cowles]
If you added enough days to this you'd get that (although it could also be a max representation of some form of signed integer)
#
[Lewis_Cowles]
The raw value is 128-bits (calling .toString(2) on exponent)
#
[Lewis_Cowles]
48 of those bits are set before tailing off into a land of zeros
#
[Lewis_Cowles]
I'd need more past / future names to verify but I think it's just a padded date-time with an unreasonable amount of time added
[Rose], cweiske, [tantek], [KevinMarks] and aaronpk joined the channel
#
jjuran
[Lewis_Cowles]: 0xdd35ee29f012db1ba370d59200e984d9 == 294039409338108283688427083518695802073
jjuran joined the channel
#
Zegnat
I think [qubyte] sets that part in the filename himself. Just didn’t know how Netlify generated the ETag. Which is 8b668b7c83b8feaf21df3d4d5086f875-ssl-df when I load that CSS file.
[qubyte] joined the channel
#
[qubyte]
Yup, that’s my problem. Everything else seems possible, but it’s for naught if I can’t update the ETag header.
#
[qubyte]
(because I don’t know the algorithm, not because of service worker limitations)
#
[qubyte]
I’ll ask someone there later today. If I’m lucky they can point me to the relevant code or something.
#
Zegnat
I am not sure you would actually need to change that header though
#
Zegnat
Alternatively maybe if you serve the page from the service worker you drop it entirely, so you know you aren’t confusing the browser?
#
[qubyte]
My goal in all this is to see if I can continue to use old cached HTML when the only thing which changed is the (immutably named) CSS. Buuuuut this might be a rabbit hole.
[aaronpk] joined the channel
#
petermolnar
!tell aaronpk aperture can't find feed under certain addresses, like https://www.shujimoriwaki.com/blog?format=RSS
#
Loqi
Ok, I'll tell them that when I see them next
#
petermolnar
I believe all of those are squarespace sites and their rss feeds
#
[aaronpk]
That's odd, XRay can see it just fine
#
Loqi
[aaronpk]: petermolnar left you a message 4 minutes ago: aperture can't find feed under certain addresses, like https://www.shujimoriwaki.com/blog?format=RSS
[jgmac1106], [tonz], krychu, [Rose], [KevinMarks], jeremych_ and [Lewis_Cowles] joined the channel; mblaney left the channel
#
GWG
Morning
#
Loqi
*yawn* ... /stretch/
#
[Rose]
Woot, cocoapods installed and overland compiles!
#
GWG
cocoapods?
#
aaronpk
[Rose]++ yay
#
Loqi
[Rose] has 18 karma in this channel over the last year (64 in all channels)
#
[Rose]
GWG: a package manager for iOS apps. Definitely objective C, maybe swift.
#
GWG
Interesting
#
[Rose]
It is! I couldn't figure out why it wouldn't compile before, so I should probably update the readme with the notes from my experience to help any other "I can probably follow the pattern enough to fix stuff but I'm not an iOS developer" people
[qubyte] joined the channel
#
sebsel
remembers going through that
#
Loqi
[sebsel] #8 Update docs for installation Guide
#
sebsel
should've made a PR out of it
#
[Rose]
I want to add a help page inside the app and then send a PR.
[aaronpk], [tantek] and [Sadik_Shahadu] joined the channel
#
[jgmac1106]
[Sadik_Shahadu] I need to fix the font and img media queries in the CSS Grid.
#
[jgmac1106]
I will do during today's design studio
#
[jgmac1106]
If you do a translation we can add them (French an twi' versions?)
#
[Sadik_Shahadu]
Sounds great. Will look in into that👍
#
[jgmac1106]
Also can you get me the exact dates of mozfest session and the next meet up? Will add them
#
Loqi
Rose has 19 karma in this channel over the last year (65 in all channels)
#
[Lewis_Cowles]
Rose++
swentel and dougbeal|iOS joined the channel
#
[jgmac1106]
[tantek] I lke that idea of putting a url on each post page for citation... Think I am gonna copy that
#
[jgmac1106]
I have been using <blockquote><cite></cite></blockquote> could add the h-cite
#
@janboddez
↩️ I may have got it working, using the Webmention plugin and a couple filters.
(twitter.com/_/status/1187010492927270912)
#
@janboddez
↩️ Why would I want to do all that? Well, because I might be able to retire my own, dead-simple “Webmention Comments” plugin.
(twitter.com/_/status/1187012026905874433)
KartikPrabhu joined the channel
#
@janboddez
↩️ Fun fact: I did programmatically declare support for `webmentions` ...
(twitter.com/_/status/1187015098532954113)
#
@jgmac1106
Yes any mothballed @withknown should turn off the native comments plugin. The spam won't display and webmentions will still work.. For active users do the same and rely on webmentions or use the Askimet plugin. (https://quickthoughts.jgregorymcverry.com/s/1i35qf)
(twitter.com/_/status/1187019677719040000)
#
petermolnar
!tell snarfed I'm trying to figure out if there's some sort of static link that can be added to my site for fed (eg mastodon) follow. I've found the https://mastodon.social/users/USERNAME/remote_follow scheme, but I believe it's Mastodon specific. Are you aware of any kind of links that can be used with the fed.brid.gy provided @petermolnar.net@petermolnar.net?
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
petermolnar: I implemented the remote follow thing on a special page here: https://aaronparecki.com/aaronpk
#
Loqi
Aaron Parecki
#
aaronpk
basically you have to either tell people to copy your @user@host address into their mastodon, or you do the discovery bit and redirect them to their host with your address pre-filled
#
swentel
hm that's clever
#
Loqi
swentel: GWG left you a message on 2019-07-11 at 5:43pm UTC: Just tried to write an article on Indigenous...no easy way to add links.
#
Loqi
swentel: [jgmac1106] left you a message 2 weeks, 6 days ago: the recorder apk coming our sounds amazing. Wonder if there are micropub possibilities
#
aaronpk
yes it's basically the same as this https://aaronparecki.com/follow
#
Loqi
Aaron Parecki
#
aaronpk
it's still not the best UX
#
aaronpk
but it's the classic problem of how to not create privacy/security issues across domains while still having some connection between the two
#
@jgmac1106
↩️ Yes any mothballed @withknown should turn off the native comments plugin. The spam won't display and webmentions will still work.. For active users do the same and rely on webmentions or use the Askimet plugin. (https://quickthoughts.jgregorymcverry.com/s/1v58ff)
(twitter.com/_/status/1187024502804373505)
#
beko[m]
Trying to add custom POSSE provider to Syndication-Links for Bridgy Mastodon (https://snarfed.org/2019-10-22_mastodon-on-bridgy) but https://brid.gy/publish/mastodon (according to https://brid.gy/about) returns 404 (unlike e.g. https://brid.gy/publish/twitter) so the webmention endpoint can never be discovered.
#
beko[m]
Also on Bridgy Preview works but Discover fails to fetch [...] or find a Mastodon syndication link (but it's there: http://php.microformats.io/?url=https%3A%2F%2Fbeko.famkos.net%2F2019%2F10%2F23%2Fmastodon-posse%2F ).
#
beko[m]
What am I missing here?
AmineDiscord[m] joined the channel
#
@frankmeeuwsen
↩️ In deel 2 leg ik je uit hoe je de IndieAuth plugin gebruikt om van je WordPress blog een eigen identiteitsprovider te maken. Zo kun je met je blog op bepaalde sites inloggen zoals je gewend bent met Twitter en Facebook. https://diggingthedigital.com/indieauth-wordpress/
(twitter.com/_/status/1187028031761723393)
[fluffy], dougbeal|mb1, [dougbeal], gRegorLove and [Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
Oh dear WordPress, how I hate your API… Tried to help a friend and for some reason I cannot get the current page
#
[Lewis_Cowles]
*current page number
eli_oat and [KevinMarks] joined the channel
#
[Lewis_Cowles]
😂
#
[Lewis_Cowles]
I just found out why it wasn’t working. I was calling min instead of max… I wish I could say “go home you’re drunk”
#
KartikPrabhu
"go drunk your're home" ;)
[tantek] and [snarfed] joined the channel
#
beko[m]
[snarfed]++
#
Loqi
[snarfed] has 45 karma in this channel over the last year (85 in all channels)
#
[snarfed]
beko: saw your mastodon publish error. looking into it
#
Loqi
[snarfed]: petermolnar left you a message 2 hours, 22 minutes ago: I'm trying to figure out if there's some sort of static link that can be added to my site for fed (eg mastodon) follow. I've found the https://mastodon.social/users/USERNAME/remote_follow scheme, but I believe it's Mastodon specific. Are you aware of any kind of links that can be used with the fed.brid.gy provided @petermolnar.net@petermolnar.net?
#
beko[m]
[snarfed]: ty it's fixed, custom POSSE provider works now. Now I get Error: {"error":"This action is outside the authorized scopes"} 403 Client Error: None for url: https://social.tchncs.de/api/v1/media but I did enable `publish` and was redirected to permit "edit anything" on my instance
#
beko[m]
should I raise another ticket?
#
[snarfed]
nah, thanks for offering though
#
[snarfed]
and yeah, agreed, i don't understand which scope it wants. i've also used it to publish a status with a photo myself before. confusing
#
[snarfed]
probably the wordpress-based signup flow isn't handling oauth right
#
beko[m]
lost me. Isn't this between bridgly and $mastodon_instance?
#
beko[m]
bridgy
#
[snarfed]
right, but the oauth scopes depend on the bridgy features (eg listen, publish) wordpress asked for when it sent you to bridgy
[Rose] joined the channel
#
[snarfed]
could you try disabling publish on https://brid.gy/mastodon/@bekopharm@social.tchncs.de , then re-enable it, then see if it works?
#
beko
will do
#
beko
[snarfed]: worked!
#
beko
awesome :D now I just have to find out how to use the excerpt. Needs probably plugin support. This is just a generic POSSE provider that doesn't know about any Bridgy options.
#
beko
my old syndication links to Mastodon were found just fine btw and some comments rolled in 👍
KartikPrabhu joined the channel
#
[snarfed]
(if you mean mastodon content warning, bridgy doesn't support that yet)
#
beko
kind-ish. It's probably a p-bridgy-mastodon-content
#
aaronpk
anyone know of a library that can determine whether an image is a photo or a screenshot?
#
aaronpk
(jpg vs png isn't enough)
#
aaronpk
I found an answer that uses imagemagick but i'm not having much luck with it. seems to return false positives a lot
#
@ochtendgrijs
Je hebt vast weleens je Google‑ of Twitter-account gebruikt om je bij ’n online dienst aan te melden. Wel, IndieAuth werkt net zo, maar dan met – en let nu op – je eigenste URL! Hoe gebruik je IndieAuth met WordPress https://ochtendgrijs.be/notes/2032514670
(twitter.com/_/status/1187063868713046016)
#
beko
I wish I'd be able to _write_ python. Can read it but I'm just a damn JS hipster *sigh, *tinkers with Okuna bridge
KartikPrabhu joined the channel
#
[snarfed]
[petermolnar_] re bridgy fed follows, hmm, i don't entirely understand. bridgy fed does send and receive wms with u-follow-of - https://fed.brid.gy/#follow+as+usual , https://indieweb.org/follow - but i don't think that's what you're asking?
[schmarty], gxt and [jgmac1106] joined the channel
#
beko
oh yeah… now that Bridgy has Mastodon support I also see blocked spambot "likes" again =)
#
jacky
aaronpk: that'd be an interesting library
#
jacky
re: screenshot vs photo
#
jacky
the UI is still ohso bad
[Lewis_Cowles] joined the channel
#
jacky
but it can work as a microsub server (kinda) and microsub client
#
petermolnar
[snarfed]: my question is basically the never ending quest to solve universal follow button
[frank] joined the channel
#
petermolnar
in essence: the mastodon instances, if I'm correct, allow a `fediverse-instance-url + '/authorize_interaction?uri=' + my user` link, eg. https://mastodon.social/authorize_interaction?uri=petermolnar.net@petermolnar.net - but to display that as button, I came to realize, I'd need to know the users' instance
#
petermolnar
I was trying to figure it out if there's a way around this, but it really looks like, there isn't
#
jacky
petermolnar: yup
#
jacky
which I think is okay
#
jacky
like if the browser had a way to auto-fill this kin of info, it'd make it a bit easier
#
petermolnar
no, it's not. It's the never ending problem of how to display a follow button
#
aaronpk
the only way around it is to build it into browsers
#
petermolnar
which even us, the indieweb, is yet to solve
#
petermolnar
we had the web actions idea
#
petermolnar
but it never took off
#
petermolnar
this is one of the most lacking features of the out-of-silos internet
#
jacky
I think it's lightly okay because it forces users to pick an identity to follow from
#
petermolnar
that's tangential
#
jacky
like I know I'll have one for my personal life, one for my work stuff and maybe even spend time spinning off my comics/food one
#
aaronpk
it's also only a problem when you're trying to treat it the same way as websites
#
jacky
petermolnar: microsub clients can get around this tho
#
aaronpk
once you're in mastodon or an indieweb reader, the reader can provide the follow button for anyone that shows up in the reader
#
aaronpk
other than that, yes it needs to be in the browser
#
aaronpk
but that also makes sense
#
[Lewis_Cowles]
Given Tantek idea of publics, is it not a reasonable assumption someone would share their instance as part of their interaction(s)?
#
aaronpk
because you're using a browser to visit the page
#
petermolnar
ok, say I'm logged in on mastodon.social but I'm browsing, say, pterodactyl.social - another mastoton instance. I'll not be logged in there, given it's no my "main" fediverse instance, correct? What happens if I press a follow button there?
#
petermolnar
goes looking for mastodon instances
#
aaronpk
it takes you to the "remote follow" page IIRC
#
petermolnar
preferably with content that won't burn my eyes out
#
petermolnar
the remote follow of their - in this case, pterodactyl - instance?
#
Loqi
Jacky Alciné
#
jacky
hmm that wants me to log in though
#
aaronpk
"enter your username@domain"
#
aaronpk
then it discovers your follow endpoint and redirects you there where you're logged in
#
petermolnar
ah, I see. proceed to follow asks for your instance name
#
jacky
tbh this isn't so bad
#
[tantek]
Maybe we need a follow: protocol that your Reader can handle
#
jacky
it's like a guide
#
jacky
[tantek]: you mean something like `follow://<URL>`?
#
aaronpk
that's kinda what I was experimenting with here https://aaronparecki.com/follow with the rel=subscribe
#
Loqi
Aaron Parecki
#
petermolnar
what are webactions?
#
Loqi
A web action is the interface and user experience of taking a specific discrete action, across the web, from one site to another site or application https://indieweb.org/webactions
[grantcodes] joined the channel
#
[tantek]
Jacky yes
#
petermolnar
we tried this before and didn't work
#
[tantek]
Petemolnar we didn’t have social readers before
#
jacky
I'm toying with rel=subscribe
#
Loqi
Follow Jacky Alciné
#
[tantek]
Conditions have changed
#
jacky
for the better! ^
#
jacky
hmm should this be built into microsub readers?
#
jacky
or rather
#
jacky
actually
#
jacky
that'd lock one in to only have it in one reader
#
jacky
which isn't the _worst_
#
jacky
but if only one reader implements it, then it's only possible via that one
#
jacky
petermolnar: thank you for sparking this convo!
#
aaronpk
looks at the list of aperture issues to see if it's already in there
#
[tantek]
Jacky 1>0
#
[tantek]
That’s how it starts
#
aaronpk
cries a little at how many open issues there are
#
[tantek]
See also mf2 process for adding properties
[tonz] joined the channel
#
jacky
hmm I misunderstood this a bit
#
aaronpk
willnorris++ for his imageproxy project
#
Loqi
willnorris has 3 karma over the last year
#
aaronpk
that sure made it easy to get square versions of my photos
#
petermolnar
another perspective: from the direction of how we are not actively against utilizing silos as media of mass distribution, similarly to that, in my opinion, our tools for the reverse - following - action can't be solely indieweb/indie reader oriented. Which is why I was after a button or a URL I could add to my site for, in this case, for fediverse, to follow me with the help of fed.brid.gy. I forgot that this is not this simple, b
#
petermolnar
ecause I don't know the visitor's preferred instance, hence the remote_follow features in fediverse servers. (I filed a feature request to fed.brid.gy). Other than this, I think follow buttons for silos are not that trivial - I can link to my profile, but it'll still need an additional button. Am I mistaken?
#
aaronpk
willnorris++ again for the "smart crop" feature
#
aaronpk
petermolnar: twitter has a button that uses JS to pop up a dialog (or at least they used to), but because of the security around it, it's not possible to provide a button that will actually follow you when clicked
#
aaronpk
think about it, if you could visit my website and see a button which when clicked would follow me, then I could write code to click it automatically as soon as you visited
#
petermolnar
(sorry, not against you, against 2019, when my workplace has more security personnel, than engineers and devs)
#
petermolnar
aaronpk that is correct, I was not clear
#
petermolnar
one more button is not inheritantly wrong, but I can only link to my twitter profile, not to a page with a single button "yes, really subscribe" unless I'm mistaken
#
aaronpk
it's like a mini version of the profile page
#
aaronpk
because in reality you do want to see some context around the account you're about to follow
#
petermolnar
I didn't know this exists!
#
petermolnar
yes, this is exactly what I meant
arweave-sophie44 joined the channel; arweave-sophieDi left the channel
#
aaronpk
hm, is there a way to explicitly indicate that the microformats in a post in a feed is not complete? that consumers *should* fetch the permalink for the full details?
WesDiscord[m] joined the channel
#
aaronpk
inspects [schmarty]'s HTML to see how he got the floating corner icon
#
[tantek]
p-summary without p-content
#
aaronpk
but that would mean adding an artificial p-summary
#
aaronpk
because i'm including only the photo property
#
aaronpk
i'm going to have only `u-url` and `u-photo` properties in the `h-entry` in this case. no published date, no text, etc
#
aaronpk
oh no, the parser is implying a name again
#
aaronpk
because there are no text values
#
aaronpk
well in that case i'll add a blank p-summary
#
aaronpk
ok gonna launch this and see what kind of a mess I made
#
aaronpk
hey not bad
#
[Rose]
Link?
#
[Rose]
May I suggest a little padding between the pictures on mobile?
[qubyte] joined the channel
#
aaronpk
maybe 1px
#
[Rose]
But I love what you have!
#
aaronpk
thank goodness for cssgrid
#
aaronpk
ok 1px gap is there
#
[Rose]
Just enough spacing to help distinguish the images from one another. Nice.
#
aaronpk
goes back and adds a bunch of checkins with nice photos to the page
#
sebsel
aaronpk++
#
Loqi
aaronpk has 51 karma in this channel over the last year (191 in all channels)
#
aaronpk
ok just went and backdated a bunch of checkins back to mid september
#
aaronpk
still a lot more to go
#
jacky
yeah w.r.t the twitter intent page
#
jacky
it looks like putting this into a microsub client is prob the best path
#
jacky
or even into something smaller that _only_ does this
#
jacky
https://follow.indieweb.org/?url=https://jacky.wtf could be a generic one that people start with before jumping into their preferred one of choice
#
aaronpk
the way microsub is written, you could definitely make an app that only does this part
#
aaronpk
for example you log in to this app to grant it permission to add stuff to your microsub server
#
jacky
yup yup
KartikPrabhu joined the channel
#
jacky
granted, that _one_ app would have a bit of insight into who follows who and at what time
#
jacky
off access logs alone
#
jacky
but \o/
#
aaronpk
sure but that's true of anything that is a service really
#
jacky
exactly
#
jacky
resists the urge to quickly hack this out
KartikPrabhu and [chrisbergr] joined the channel
#
aaronpk
okay made it back through august now
#
jacky
oof time travelers
#
jacky
still working on making this _back_ into lwa
#
jacky
having invite support would make me want to use them like 2000% more
#
jacky
if I could do it from the reader, I'd also be more willing to make them too
#
jacky
do it = RSVP
#
jacky
but tbh I think a dedicated event creation tool might be needed
#
aaronpk
events are like a whole thing
#
jacky
yeah and I like what gath.io does to a degree - I just want more history to events and a place on it for people to chat
#
aaronpk
whoa, a place to chat?
#
jacky
like reply to the event with updates and stuff
#
jacky
so I could have a event page with photos
#
jacky
(if it was public)
#
aaronpk
like organizers posting annoucnements? or discussion from attendees?
#
jacky
tbh both could be done but opting for the latter tbh
#
jacky
s/could/would be nice/g
#
jacky
(these aren't feature of gath, just things I'd like)
#
aaronpk
yeah I want my event pages to accept webmentions and show photos and such, I guess I just hadn't thought of that as "chat"
#
gRegorLove
I liked how upcoming.org pulled in flickr photos by machine tags back in the day
#
jacky
yeah chat is assumed to be real time
#
aaronpk
oh dear how do you isolate css in an svg to not spill out to other svgs on the page?
#
aaronpk
I don't even know the right words for that
#
jacky
do you mind using ids?
#
jacky
or even data attributes to make the specifiers more specific?
#
aaronpk
I want each svg inside its own little render bubble
#
aaronpk
check out the css in the web inspector for one of the pixels in the grid here https://aaronparecki.com/grid
#
aaronpk
it's getting styled by the css from all the other svgs too
mlncn joined the channel
#
KartikPrabhu
aaronpk: yeah that is weird!
#
[tantek]
aaronpk++ wow that photos page is beautiful. well done
#
Loqi
aaronpk has 52 karma in this channel over the last year (192 in all channels)
#
KartikPrabhu
aaronpk: does it work if you move the SVG <style> outside the <def> element?
#
aaronpk
hm I don't have a good way to test that
#
KartikPrabhu
yeah me neither. I would have thought that you have some template to geenrate the SVGs so it would be easier to do there
#
aaronpk
they get stored in files once they're generated, so I have to go change them individually to test
#
KartikPrabhu
hmm maybe a simple test page with SVG and 2 <rect>s
#
aaronpk
yeah, this may be more than I have energy for at this point
#
KartikPrabhu
haha ok will test later if I have any downtime
#
aaronpk
ooh I can redo my 3-up photo layout with cssgrid too now huh
#
KartikPrabhu
cssgrid++
#
Loqi
cssgrid has 1 karma over the last year
#
aaronpk
oh maybe not, i'm doing some tricky resizing stuff with the photos
#
KartikPrabhu
huh! it needs more karma
#
aaronpk
anyway I should go to bed
#
jacky
is thinking about UX again
#
jacky
I think there's a way via micropub to determine if an existing post contains some attributes
#
jacky
like if I have a like post for something
#
jacky
that feels like it'd be a difficult thing for a flat-file system to determine
#
jacky
oh okay
#
Loqi
[EdwardHinkle] #4 Query for Post List
#
jacky
specifically the ability to find a post that has a property
#
jacky
oof that's going to be hard to implement on my end tbh
#
jacky
actually kinda
#
jacky
if I know what property it is in advance (like if it's `like-of` etc) then it's a smaller pool
stee and [chrisaldrich] joined the channel