#dev 2019-03-31

2019-03-31 UTC
iasai, eli_oat and mblaney joined the channel
#
@ChrisAldrich
↩️ .@jgmac1106 and I did a course last summer that leveraged Webmention so that students could own and control their own identities and data. https://boffosocko.com/2019/03/30/55747621/#Greg%20McVerry%20and%20I%20did%20a%20course
(twitter.com/_/status/1112170611873181696)
#
jacky
today might be the day
#
jacky
when we get gitea working as a indieauth consumer/client
iasai and tw2113 joined the channel
#
aaronpk
Wait what why
#
Loqi
aaronpk: GWG left you a message 4 hours, 29 minutes ago: How do you feel about alternative web hooks that send GET requests?
#
aaronpk
GWG I am not sure i understand the question
#
GWG
aaronpk: I missed something there
#
GWG
I installed Compass.
#
aaronpk
What do you want the GET hook to do?
#
GWG
I I was wondering if you would accept a PR for a different type of hook
#
GWG
aaronpk: I wanted to update the other system I have that does location, and it accepts only GET requests with query strings for the location
#
GWG
As opposed to a POST with GeoJSON
#
aaronpk
I guess it could be a config option
#
GWG
I'll see if I can do a PR
#
GWG
aaronpk: I thought trying to get Compass to do it was better than building something from scratch right now
#
aaronpk
If you're just trying to get something running you can always make a simple pho file that translates the compass POST to the GET in your format, then you don't have to mess with Compass UI stuff right now
#
GWG
pho?
#
aaronpk
autocorrect
#
GWG
So, a script that receives a POST and sends a GET? Interesting
#
aaronpk
Not a good long term solution obviously but would start working faster than a PR to Compass since that's gonna involve UI work
#
GWG
aaronpk: I could also learn python and fix it on the other side
#
aaronpk
True. It does seem weird to accept that kind of data from the query string anyway
#
GWG
I am going to write a post on how to set up GPS Logger on Android with Compass though
#
aaronpk
I will link to it from the Compss readme
iasai joined the channel
#
GWG
aaronpk: Any suggestions of how to import a lot of data into Compass?
#
aaronpk
Use the QuartzDB library to write the files to disk
#
aaronpk
Compass doesn't store stuff in MySQL other than the list of users and databases
#
aaronpk
everything is just files
#
GWG
I have some stuff stored in KML I want to try and get in.
#
GWG
Could I use the API?
#
aaronpk
You could but it won't be particularly fast
#
aaronpk
all the api does is write the files to disk anyway tho
#
aaronpk
you do have to send the data in date order to the API and also to QuartzDB, it doesn't handle out of order inserts
#
GWG
How so? Doesn't every submission have a date?
iasai and snarfed joined the channel
iasai joined the channel
#
aaronpk
Yes but when it's reading the data back it assumes it's in order already
#
GWG
aaronpk, but since each date is a file, wouldn't it just be each individual date?
#
GWG
Also, I see there is a maintenance task for that
#
aaronpk
Yes but within the file
#
aaronpk
the date boundary is also UTC
#
aaronpk
So if you want a days worth of data local time you end up reading two files and it has to decide when to stop reading lines and that's the part that assumes in order
#
GWG
Well, I haven't tried to write an importer yet
#
GWG
We'll see what I can do
#
GWG
Right now, I posted how to get it working with GPS Logger and will get the code set up for reading it with WordPress
BenLubar1 joined the channel
#
BenLubar1
I'm assuming this code is what needs to change to support IndieAuth: https://github.com/go-gitea/gitea/blob/04d78b60f8b12891d5e6d47baec46413eca4c856/routers/user/oauth.go#L167-L201
#
BenLubar1
the `h-app` metadata can go here: https://github.com/go-gitea/gitea/blob/04d78b60f8b12891d5e6d47baec46413eca4c856/templates/base/head_navbar.tmpl#L2-L5 (add `<span class="hide p-name">{{AppName}}</a>`)
#
BenLubar1
making `response_type=id` the default only if the `me` parameter is present should probably be okay
iasai joined the channel
#
aaronpk
Nice, has PKCE support already too
#
aaronpk
is that implementing a client from scratch or is that using a library for it?
KartikPrabhu joined the channel
BenLubar and iasai joined the channel
#
jacky
awesome BenLubar!
#
jacky
I'm going to try and pull it down sometime tomorrow night
#
jacky
IndieAuth in Gitea would make me so happy!
#
jacky
okay this might be a bit easier than I thought
#
jacky
this also reminds me that I need to finish working on Fortress so I could just run it locally for testing
#
jacky
ahhh so if we extend https://github.com/markbates/goth as well; we can give so many other Go apps IndieAuth support for free
#
Loqi
[markbates] goth: Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
#
jacky
oh this'll be a breeze
#
jacky
hopefully if this goes okay, it can be a precedent to add the flip-side to Gitea
#
jacky
but for now, sleep
iasai, barpthewire, [Rose], [sebsel], [jgmac1106] and [frank] joined the channel
#
@jackyalcine
Just left a note to consider adding IndieAuth support to ElixirStatus. That would be dope! (https://v2.jacky.wtf/post/e044a006-8fd7-47ba-9d2c-484604ffb465)
(twitter.com/_/status/1112323176518819840)
[jgmac1106] joined the channel
#
Jeremycherfas
It has been interesting doing the final tweaks on my listen script, because I have restricted myself to one test a day, so as to not run afoul of rate limits. So that forces me to slow down and to think.
jackjamieson joined the channel
#
Jeremycherfas
And I now think I have it working "properly", but I can't easily check until I have finished listening to another podcast.
#
Jeremycherfas
Wondering whether to demo it later today. Although there is nothing really to see.
#
[jgmac1106]
Yes demo. Need all the examples in the wild
#
[jgmac1106]
Show the page, show how one listen post is marked up
#
[jgmac1106]
wish I knew more to respond https://twitter.com/Downes/status/1112336811873972225 is the blockchain the best place for storing citations????
#
@Downes
@jgmac1106 @oldaily The advantage of publishing this data to a blockchain is that the data is stored in a decentralized network. The community owns the data rather than one particular entity within it. This insures against the data eventually being privatized and converted into a commercial product.
(twitter.com/_/status/1112336811873972225)
#
Jeremycherfas
Markup is very poor at the moment. That's sort of trivial, just tweaking the template. Creating the post is the hard part.
#
[jgmac1106]
then talk about that in the demo...
#
Jeremycherfas
Actually, I'm not even sure what the canonical markup for a listen post **should** be. Hold on ...
#
Jeremycherfas
What is listens
#
Loqi
It looks like we don't have a page for "listens" yet. Would you like to create it? (Or just say "listens is ____", a sentence describing the term)
#
Jeremycherfas
What is listen
#
Loqi
A scrobble (AKA a listen) is a passive type of post used to publish a song (music or audio track, including concert recordings or DJ sets) or podcast that you have listened to https://indieweb.org/listen
#
[jgmac1106]
there isn't experimental technically
#
Jeremycherfas
I suppose I should follow either [eddie] or [chrisaldrich]. Let me take a look
#
Zegnat
Jeremycherfas: for sure have a look at what markup is already being used in the wild. But also think about if it works for you. This early on in the process is the correct time to figure out what we want to standardise on in the long run
#
Jeremycherfas
Right. Also, my inspiration does not appear as an example.
#
Jeremycherfas
!tell [cleverdevil] You should add yourself to /listen examples
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[gRegorLove] We have 2+ publishers for `u-listen-of` (more listed on https://indieweb.org/scrobble#IndieWeb_Examples) and at least 1 consumer, so this can be added as a proposed property. I propose adding: > **u-listen-of** - indicates this h-entry is a scr...
#
Zegnat
[jgmac1106], for storing data that you want the public to always have access too, some form of decentralised storage does make sense. Whether you need all the properties of a blockchain for citations is another matter, you may also not want additions to the dataset to be limited by available miners and for there to be a vote for inclusion (which I believe are all part of what people are calling blockchain).
#
Jeremycherfas
Interesting issue arises. Eddie and Chris have a link to th episode URL as the title, and wrap that in a div u-listen-of.
#
Jeremycherfas
I currently have my title as a permalink, and have a separate Listen here link that points to the Overcast URL.
#
Jeremycherfas
It wopuld be easy enough to make my Title a link to the Overcast URL, and wrap that.
#
Zegnat
You should be comparing mf2 output, I think
#
Jeremycherfas
Harder to make it a link to the episode URL, but maybe doable.
#
Jeremycherfas
I've looked at both sets of mf2 in pin13, and mine.
#
Zegnat
<div class="u-listen-of">podcast.example.com</div> is the same as <a href="podcast.example.com" class="u-listen-of">The Awesome Show</a>
#
Loqi
I agree
#
Jeremycherfas
I didn't explain well.
#
Jeremycherfas
Eddie and Chris have something similar to what you show ^^^
#
Jeremycherfas
I have something quite different, because I link to the Overcast url, not the episode url,. And because I have it in a separate Listen here link.
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: Moment of Truth? https://www.jeremycherfas.net/stream/2019-3-31-1/artwork-resized.png
#
Jeremycherfas
I'm going to take a quick look at the template and see if I can change my Title to be a link to the Overcast link to the episode. That will be easier than pointing to the actual episode url, for now.
#
Jeremycherfas
And I need a nap.
#
Jeremycherfas
I can see why I did it; because it makes it easy to go from the list of all listens to the single post.
#
Zegnat
Oh, yeah, I think in yours I would want to remove the p-listen-of and make that a u-listen-of on your “here” link
#
GWG
Naps are good
#
Jeremycherfas
Will that be picked up because it is within h-entry?
#
Zegnat
You want the listen-of to be a property of h-entry, so it should always be a child of that. And as long as there is no other h-* object between the h-entry and the u-listen-of that will work
#
Jeremycherfas
Let me test that; might be the minimal change needed, at the moment.
#
Jeremycherfas
Now I'm trapped with Grav's aggressive caching. Always have to wait for the CSS to update, and clearing all cache doesn't seem to do it.
#
Jeremycherfas
I know there's a technique for forcing a CSS update when anything changes, but I have never managed to get it to work.
[Khurt] and [Rose] joined the channel
#
Jeremycherfas
I think that's done it. Would you mind taking a look, zegnat? https://www.jeremycherfas.net/stream/2019-3-27-1
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: 30 and Counting, Episode 23: Apple + Services https://www.jeremycherfas.net/stream/2019-3-27-1/artwork-resized.png
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: 30 and Counting, Episode 23: Apple + Services https://www.jeremycherfas.net/stream/2019-3-27-1/artwork-resized.png
#
Zegnat
General consensus for CSS cache busting is to have a version number in the CSS path. There may be a way to do that in Grav.
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: 30 and Counting, Episode 23: Apple + Services https://www.jeremycherfas.net/stream/2019-3-27-1/artwork-resized.png
#
Jeremycherfas
Yeah, that's the general idea. Need to read up. Always the least urgent thing.
#
Zegnat
That mf2 output looks good to me
#
sknebel
can you get the url on eddie's site from the data you have, instead of the overcast-specific one?
#
Jeremycherfas
Yes, but it will take a little more work. Overcast gives it to me, but I need to jump through a few hoops to get it into the YAML. For now, I get the artwork and the summary from OverCast, because the context there is constant, which means I can always find it.
#
sknebel
also, one might argue that the "photo" should be "featured" instead
#
Jeremycherfas
If I go to the episode url there are so many different ways of sites indicating the artwork and the summary that it becomes a nightmare.
#
Jeremycherfas
But Overcast does give me the episode url, so with a bit more effort I can definitely switch to that. That is actually next on my list, now that I have the mf2 more or less OK.
#
sknebel
I meant just using the URL in your output, not parsing all the data from it
#
Jeremycherfas
Yes, that is what I merant to. Just offering my explanation. :)
#
Jeremycherfas
You think I should put u-featured onto artwork-resized?
#
sknebel
yes, instead of u-photo
#
Jeremycherfas
Instead of u-photo, I mean?
#
Jeremycherfas
That's pretty easy. Just out of interest, why? There is only one photo in an entry. I can guarantee that.
#
Zegnat
Mostly because it is a representative image of the entry, not the entry being a photo post.
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: Episode 139: 1,347 Birds
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: Episode 139: 1,347 Birds
#
Loqi
[Jeremy Cherfas] 🎧 Listened to: Episode 139: 1,347 Birds
#
Jeremycherfas
Very good! I suppose I could even demo it.
#
sknebel
hm, it seems like the summary is in the content, but your commentary on it isn't?
#
Jeremycherfas
That is correct. Very few have commentary, and it was proving to be really difficult to do the styling, to put the summary in the grid box and my commentary outside it.
#
Zegnat
Hmm. My first thought is that the summary – being taken from the original podcast page rather than written by you – may fit better in an h-cite. But that also feels like a pretty big reworking while the thing you currently have also seems valid anyway
#
GWG
Feature 1 implemented
#
sknebel
yeah, url and summary could be put in a h-cite, but the name then would need to be repeated or hidden (and the featured technically should too? that's also in the wrong spot of the html. the pain of microformats...)
#
Jeremycherfas
Perhaps making it "proper" could be a project for Utrecht ...
#
Zegnat
featured would need to go outside, true, sknebel. Name doesn’t need to be repeated. .u-listen-of.p-name.h-cite would work
#
Jeremycherfas
Never ends, does it?
#
Zegnat
Hahaha
#
Loqi
awesome
#
sknebel
Zegnat: publishing p-name.h-cite is more something for someone like us who then gets to complain at everyone who forgot that case in their consuming code :P
#
sknebel
also, the p-name of the post should arguably retain the "Listened to:"?
#
Jeremycherfas
Of course now the collected stream of listen posts doesn't link to the listens-of url
#
sknebel
listen-of": [ "https://www.jeremycherfas.net/stream/2019-3-31-1/artwork-resized.png \ud83c\udfa7 Listened to: Moment of Truth? 31 Mar 2019" ],
#
Zegnat
The stream doesn’t include links to the podcast pages at all, you’d need to add those into the stream somehow
#
Jeremycherfas
Once I can get the podcast url into the YAML, I can add them into the stream and the post. But that is a task for another day.
#
Zegnat
Ah, yes, if they aren’t in the YAML that is probably harder to add to the stream
#
Zegnat
it makes it a little awkward though, as there is no real place to put the listen-of on
#
sknebel
Jeremycherfas++
#
Loqi
Jeremycherfas has 12 karma in this channel over the last year (32 in all channels)
#
Jeremycherfas
In the stream, you mean? I can possibly have a hidden <a>. That's I was thinking.
#
Jeremycherfas
I could even wrap the image in that <a> In fact, I like that idea.
#
Zegnat
That would work, yes, as long as you have access to the URL :)
#
Jeremycherfas
The URL is right there in the OPML, I just need to jump through the entities hoops a couple of times. But now, I am definitely off to nap.
iasai joined the channel
#
Zegnat
Jeremycherfas++
#
Loqi
Jeremycherfas has 13 karma in this channel over the last year (33 in all channels)
#
Zegnat
Also: Slow Sunday, best sunday :D
[jgmac1106], jonnybarnes, [Rose], barpthewire, [tantek] and sebsel joined the channel
#
[tantek]
Yes indeed Zegnat!
[kenbauer] and iasai joined the channel
#
[tantek]
Is there an "optimum" max resolution for POSSEing photos / diagram / graphics to Twitter?
#
aaronpk
There's at least a megabyte limit, 5 I think? Maybe 3
#
[tantek]
Some thinking: most people read Twitter on mobile, pick a resolution that if they tap the photo to "full screen" it, that uses the max height (or width) of the mobile
#
aaronpk
I was hitting it trying to upload gifs
#
[tantek]
resolution not mb 🙂
#
aaronpk
come to think of it I don't actually know whether twitter scales the images uploaded but I assume it does
#
[tantek]
right, gifs (especially animated) have that additional constraint that is more likely to hit before resolution (dimensions)
#
aaronpk
in which case you'd get the best quality uploading at their target size to avoid their scaling.
#
[tantek]
it definitely downscales them to a cap
#
aaronpk
I know this is true on Instagram and you can find people's tips for posting sharp images to Instagram by doing the scaling yourself first
#
Zegnat
fullscreening is an interesting question. Sounds like you’d want to know the dominant screen width-height ratio of your followers for that
#
[tantek]
e.g. Twitter will downscale a multiphoto photo down to 960x720! E.g. https://pbs.twimg.com/media/D2UzteBXgAE74R7.jpg
#
[tantek]
Zegnat, width/height ratio is not really relevant, or rather, you can assume most mobiles will have a dominant ratio somewhere between 2:1 and 16:9
#
[tantek]
thus the height (in pixels) is the typical limiting factor for "fullscreening" images on a mobile (assuming you rotate your mobile to see it in landscape)
#
Zegnat
Oh, I was thinking you wanted to guarantee the fullscreen effect, in which case you need to find the correct aspect ratio to get that (e.g. square images, no matter their height, are never going to give the effect).
#
[tantek]
no that's futile and kinda pointless. the point is what [aaronpk] said: posting sharp images
#
[tantek]
e.g. reducing / eliminating pixel (up/down)scaling
#
Zegnat
Ah, I’ve never bothered thinking about that. Probably because I have shared less than 10 photos on Twitter ever, ha
#
aaronpk
The iPhone is taller than 16:9 now too
#
[tantek]
when you're posting a graphic / line-art where you want sharp edges to lines / rectangles etc., it makes sense to worry about sharpness
#
[tantek]
aaronpk hence my generalization of between 2:1 and 16:9
#
aaronpk
it's taller than 2:1 too
#
[tantek]
I don't think typical mobiles have exceeded - wat
#
[tantek]
More data: on a single-photo post, Twitter will downscale the image to 1440x1440 https://pbs.twimg.com/media/D18_qYnXcAUnp2m.jpg:large or maybe that's artificially upscaled from their storage of a downscaled 1200x1200 https://pbs.twimg.com/media/D18_qYnXcAUnp2m.jpg
#
aaronpk
2436x1125
#
Zegnat
Huh, who knew, my XR is apparently a 19.5:9 screen according to the internet
#
sknebel
you can append one of :orig :large :medium :small to a twitter image url to get different versions (although sometimes multiple are the same, probably when the source image is below a threshold)
#
[tantek]
wow ok will adjust. phones are still not quite at Star Wars 2.35:1 🙂
#
[tantek]
fell down this rabbithole http://homecinemacity.com/Aspect%20Ratios/aspect%20ratios.htm (also that URL 😂)
#
sknebel
I'd suspect they always serve one of those (or maybe just the first 3?), depending on the client
#
sknebel
(which of course then also might be scaled by the browser additionally)
#
sknebel
they'll also reencode jpgs with > 85 quality setting to 85
#
[tantek]
what is resolution
#
Loqi
It looks like we don't have a page for "resolution" yet. Would you like to create it? (Or just say "resolution is ____", a sentence describing the term)
#
[tantek]
looks like 750px is a decent mid-level sweet spot for the smaller (landscape height) dimension on iOS devices at least: https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Displays/Displays.html
#
sknebel
PNGs that are grayscale or 8bit palette are left as is, as are PNGs <900px (larger dimension). higher depth PNGs are compared to a JPG transcode and the smaller file used
iasai joined the channel
#
[tantek]
is there an easy PNG inspector / validator that will tell you if your PNG is 8bit palette?
#
[tantek]
looks like 1200x750 will work
#
sknebel
(for a while there was the trick to keep your images pristine by uploading them as PNG with a single slightly transparent pixel, but those recent changes killed that)
#
sknebel
I'd say "unless you specifically generated them that way, they aren't" :D
#
[tantek]
sknebel, not helpful, since most PNGs I generate these days is with the MacOS "screenshot" gesture
#
[tantek]
hence why I was asking for a tool that could inspect/validate accordingly
#
sknebel
that's probably "no". On windows and KDE the file manager shows the bit depth in the file details, might work on mac too?
#
[tantek]
unfortunately no. just the color space 😕
#
sknebel
(a screenshot is going to be of a screen with potentially many colors, so unless the screenshot tool specifically tests for <256 colors and then converts to a smaller format, it's not gonna work. and I doubt it does that)
#
[tantek]
are there web-based tools that will do that? "tests for <256 colors and then converts to a smaller format"
#
[tantek]
wow I just searched, found, and tried https://tinypng.com/ and it cut my sample PNG slide/diagram by 75%!
#
[tantek]
drag & drop to upload, one-click download. ridiculously easy
#
[tantek]
"By reducing the number of colors, 24-bit PNG files can be converted to much smaller 8-bit indexed color images. All unnecessary metadata is stripped too."
jonnybarnes joined the channel
#
Zegnat
A lot of graphics tools let you do that pretty easy too. I think both Pixelmator and Acorn (image editors for macOS I have used / use) allow me to export as indexed PNGs. Can give huge size savings.
#
[tantek]
I definitely prefer things I don't have to install
#
[tantek]
Wonder if such PNG compression would be worth adding / requesting in Bridgy Publish
#
[tantek]
though maybe it's more worth doing it all up front so your "original" copy is also smaller / loads faster
#
[tantek]
works on improving his own workflow first before filing any Bridgy issues
dmcweeney, [jgmac1106] and iasai joined the channel
#
[tantek]
what is PNG
#
Loqi
It looks like we don't have a page for "PNG" yet. Would you like to create it? (Or just say "PNG is ____", a sentence describing the term)
[kenbauer], sketchess, [Rose], [kimberlyhirsh], iasai, [eddie], [jgmac1106], [tantek] and KartikPrabhu joined the channel