#dev 2018-11-27

2018-11-27 UTC
[jgmac1106] joined the channel
#
Loqi
Tantek has 28 karma in this channel over the last year (82 in all channels)
#
[jgmac1106]
Never thought about a background image in css mixing up meaning in html and design in css
snarfed joined the channel
#
jgmac1106
!tell gRegorLove that what made me think of it. Was driving so couldn’t investiagte, but wondering if the way you use p-category is the same way Known marks up hashtags, just out of curiosity
benwerd joined the channel
#
Loqi
Ok, I'll tell them that when I see them next
[kevinmarks] joined the channel
#
jacky
anyone has an example of JF2 for h-event?
#
jacky
hmm actually
#
jacky
I might have to do some more processing on accepting h-event data
eli_oat, benwerd and tomasparks joined the channel
#
gRegorLove
xray should do jf2 I think?
#
Loqi
gRegorLove: jgmac1106 left you a message 1 hour, 55 minutes ago: that what made me think of it. Was driving so couldn’t investiagte, but wondering if the way you use p-category is the same way Known marks up hashtags, just out of curiosity
[jgmac1106] and [eddie] joined the channel
#
cjwillcock
!tell Sim,[Sim] regarding your self-hosted site and some traffic spikes you are seeing -I had issues on a new self-hosted server at DO too. I run nginx on this server. I found that the access logs were slammed with repeating web-mention attempts. I disabled web-mentions, for a quick fix. Now after some time, I have found a missed something in my site's config, in nginx. Nginx passes .php
#
Loqi
Ok, I'll tell them that when I see them next
#
cjwillcock
files on to php-fpm. My try_files directive didn't include the query string, so the PHP-FPM didn't receive and GET params. Check for `try_files $uri $uri/ /index.php;` in your configs. If you find that, change to `try_files $uri $uri/ /index.php?$query_string`. It's a long shot, but it worked for me. Maybe we followed the same bad advice re: setting up nginx at DO.
#
jjuran
cjwillcock: Only the first part got recorded.
#
cjwillcock
hmm
#
cjwillcock
so break into chunks then - I can't tell where it got cut off. How to check?
#
jjuran
I don't know. I see two messages, the first ending in "Nginx passes .php".
#
cjwillcock
!tell Sim Nginx passes .php files on to php-fpm. My try_files directive didn't include the query string, so the PHP-FPM didn't receive and GET params. Check for `try_files $uri $uri/ /index.php;` in your configs. If you find it, change to `try_files $uri $uri/ /index.php?$query_string`. It's a long shot. Maybe we followed the same bad advice re: setting up nginx at DO.
#
Loqi
Ok, I'll tell them that when I see them next
#
cjwillcock
jjuran: thank you
#
cjwillcock
hopefully that finds him okay
#
jjuran
you're welcome
Zegnat and Kaja___ joined the channel
#
cjwillcock
!tell Sim I see that you are using Ghost, so not PHP. If it goes through nginx, perhaps the $query_string remains relevant
#
Loqi
Ok, I'll tell them that when I see them next
sknebel, benwerd and j12t joined the channel
#
cjwillcock
New release (beta): record your browsing history from Chrome onto your own server - https://cjwillcock.ca/2018/11/27/tab-quantizer-chrome-extension-beta/
#
aaronpk
whoa cooool
#
aaronpk
is there any documentation on what it takes to receive the data it sends?
#
cjwillcock
oh, I have the server script included in the repo there
#
cjwillcock
documented in php - as close as it gets I guess for today
#
aaronpk
ah cool. I hadn't clicked through yet cause I just assumed it was only the browser extension code
#
cjwillcock
yes, private by default
#
cjwillcock
try again now
#
cjwillcock
whoops :)
[eddie] joined the channel
#
[eddie]
wow that's cool!
#
cjwillcock
thanks guys! I've been using it at home & work daily since July 23 2018. I have about 8 Gigs of data that I need to do something with soon. And clean up after.
#
cjwillcock
Since I'll be looking at it again, it's a good time to share I guess
#
cjwillcock
for now, time to catch some z's. enjoy
snarfed joined the channel
#
aaronpk
omg 8gb??
#
aaronpk
my tab data is only ~150mb since April 2017, but i'm only storing a snapshot of current tabs, not the chronological history like yours
Kaja___ and eduardm joined the channel
#
Zegnat
cjwillcock, that looks really nice. Going to have to try it out. Have you tested with Firefox or Chrome only?
[jgmac1106], Zegnat, snarfed and swentel joined the channel
#
swentel
snarfed, sorry to ping you, it's probably evening for you :)
#
swentel
just got at work heh
Kaja___ joined the channel
#
swentel
but do you see a request on fed.brid.gy for https://realize.be/notes/1665 by any chance ? Just trying to figure out if something went wrong on my end or not (the webmention is send, but nothing happened apparently)
#
Loqi
[swentel] Because 🥕 posting 🎣 emoji's 🐈 is 😏 fun, 🥐 Indigenous 👩‍💻 finally 🎶 supports 🐕 it! Great, right ?! 👍
#
swentel
emoji, my god, why did I do that
Kaja___, Kaja____ and [eddie] joined the channel
#
[eddie]
!tell aaronpk If someone sends a webmention delete (where source is 410) to a webmention.io endpoint does it delete the webmention and/or ping the web hook?
#
Loqi
Ok, I'll tell them that when I see them next
barpthewire and Kaja____ joined the channel
#
swentel
[eddie], do you handle webmentions who don't get a 200 or 201 response ? as in try again later or so ?
#
kisik21
!tell myfreeweb https://unrelenting.technology/replies/2018-11-26-22-34-48 - error couldnt render entry, something may be broken
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[Greg] test
Kaja____ and cweiske joined the channel
#
[eddie]
swentel webmention.io handles all of my webmentions. I just retrieve json blobs from the service
#
[eddie]
I believe webmention.io handles that
#
swentel
[eddie], oh, also the sending ?
#
[eddie]
Oh I send through Telegraph
#
[eddie]
Which also handles the resending 🙂
#
swentel
aaah hehe
#
swentel
ok, need to monitor my send queue a bit more
#
[eddie]
ahhh gotcha. Yeah, one day I may build webmention handling into my site but for now I enjoy offloading that responsibility 🙂
#
swentel
tried sending one to fed.brid.gy - but nothing happend, although I stored a success, but I fear the response probably was a non 2xx
Kaja____ joined the channel
#
[eddie]
ohhh uh oh
#
swentel
oh well, it's not that I that many followers yet there :)
#
[eddie]
Haha, Yeah I have 1: my mastodon social test account
#
swentel
heh, same here, although I /think/ ryan follows me too, but it's not reflected on the followers list
#
[eddie]
Yeah that’s the funny thing about Mastodon, because of it’s decentralized nature I think it only knows about followers on that instance
#
swentel
yep, looks like it indeed
#
swentel
I've seen people complaining about that in the queue, so it might get a solution one day
Kaja____ joined the channel
#
swentel
oh, looks like fed.brid.gy is erroring when sending a webmention, unless I'm doing something wrong
Kaja____ joined the channel
#
GWG
swentel, did you see my proposed venue/location search query?
#
swentel
GWG, I did, not sure when I would have time to start implementing that though
#
swentel
mostly in bugfixing modus now, first period I can focus again on new features will be mid december
#
GWG
swentel, just asking if it makes sense. I am set to fix some location bugs in my code and could add it concurrently
#
GWG
I am in no rush
#
GWG
I separate brainstorming and implementation
#
swentel
GWG, oh makes much sense to me
#
swentel
I think it offers more possibilities than trying todo reverse location on the phone
#
swentel
also, it would allow to just return of known venues
#
swentel
and possibly cache them
#
swentel
so picking a venue/location can go really fast
#
GWG
Exactly.
#
GWG
The other property I added to my config query is q, which is a list of all the q values that would be accepted
#
GWG
As an alternative to the configuration settings
#
swentel
oh, right
#
swentel
mm makes sense too
#
GWG
swentel, if you could ask the server what it supports, that would dictate what fields you display
#
GWG
We already have a proposal for post type support
#
swentel
now I might possibly be doing requests which would potentially not work
#
GWG
Exactly
#
GWG
I may add the proposal as well
#
GWG
But I will have the location query available, and someday I will get venues working
#
swentel
might be a good thing to work on during the holidays end of year
#
swentel
I have zero integration on the drupal side re: location or venus
#
swentel
except for storing a location
#
swentel
but I don't do anything useful with it right now
#
GWG
I have a stub
#
swentel
checkin isn't supported either
#
GWG
I consider a venue to be the equivalent of a bookmark for a location
#
swentel
And I think I ignore all checkin posts in indigenous too (at least at, the microsub server then)
#
GWG
swentel, added to the query for supported vocabulary issue on the matter of querying for properties and queries
#
GWG
I don't do supported vocabulary yet, but will in future
#
GWG
It's a two pronged process
#
GWG
I need to code for two different plugin lists
#
GWG
Micropub has built in support for post types and the Post Kinds plugin has support for more
#
GWG
So, if you install both, it needs to address that
#
GWG
It already does this for q=source. There's a barebones implementation in Micropub, but if you install Post Kinds, it returns the extra properties it knows about
#
GWG
So I have to maintain two sets of code that do the same thing
#
swentel
aah right
#
GWG
I usually try to enhance in parallel though
#
GWG
But sometimes I lose track of which is which
#
swentel
heh, I can imagine
#
GWG
I like the flexibility though
#
GWG
So Micropub has only a minimal implementation
jgmac1106 joined the channel
#
GWG
And filters allow enhancements
#
swentel
wordpress filters is what allows plugins to extend on eachother right ?
#
swentel
or enchance/change etc
#
GWG
Correct
#
GWG
So, I filter the query response and can hook into it
#
GWG
Where to put things is always a question
#
swentel
hehe yeah
#
swentel
I want to refactor at some point on the drupal module
#
swentel
I almost have 100% test coverage, so that will be without fear
#
GWG
I need to do better testing
#
GWG
Micropub has great test coverage due to snarfed being involved, but I find designing tests a challenge
#
GWG
I need to do more basic tests
jeremych_, [jgmac1106] and [kevinmarks] joined the channel
#
kisik21
swentel: I got the tags issue with Indigenous. It somehow posts categories as "category[]" property, not "category". Check for duplicate [] on your side. As for emoji, my endpoint does not seem to receive any content.
#
kisik21
swentel: do you happen to use JSON when sending Emoji? My endpoint doesn't support JSON.
iasai joined the channel
#
Zegnat
category[] sounds right if you are sending multiple categories
#
Zegnat
That’s what arrays look like in form encoding
#
GWG
aaronpk, was it you who had a script for getting location out of Gogo?
#
GWG
Never mind, found it
#
Loqi
[aaronpk] GoGo-WiFi-to-Geoloqi: Send the in-flight GPS tracking data from flights with GoGo WiFi to your Geoloqi account
Kaja joined the channel
#
GWG
I love when I read code and see debugger, remove for production
[jgmac1106], eli_oat, sknebel and Zegnat joined the channel
#
cjwillcock
zegnat: I have not tested with Firefox. The code has 'chrome' there in a few places, so I am expecting it's not portable as is now.
jgmac1106 joined the channel
#
Zegnat
It actually is. IIRC Firefox specifically supports the `chrome` object where the API matches up
#
kisik21
Zegnat: python's cgi module handles lists natively
#
kisik21
And this list arrived as category[][], seemingly
#
kisik21
Which is weird
#
Zegnat
That does sound weird
#
Zegnat
I don’t know Python
#
kisik21
I know Python
#
Zegnat
I can only say that the HTTP request body containing `category[]` is correct ;)
#
kisik21
Is it correct to send category[]=tag only once but use []?
#
kisik21
Also Quill handles multiple tags correctly I think...
#
Zegnat
Interesting question, kisik21. My first thought was that yes, it is allowed. But it isn’t actually specified by the Micropub spec
#
cjwillcock
zegnat: good to know! thank you. I will review later, after my after workday
#
Zegnat
Probably worth filing a spec bug on for clarification
#
kisik21
Zegnat: Isn't it handled by some common specification for query strings?
#
Zegnat
But if you find a common specification for x-www-form-urlencoded we’d love to know ;)
#
Zegnat
Ugh, looks like the fragment identifiers on the HTML spec changed again so the x-www-form-urlencoded reference within the micropub spec isn’t even pointing to the right part anymore
#
sknebel
I personally would just accept "prop[]" and "prop" equally on a server
#
Zegnat
Doesn’t include real support for arrays, which is why Micrpub itself specifies the [] extension
#
kisik21
Zegnat: means I'll just extend the get list function to get what I want by monkey-patching...
#
Zegnat
However, if we know some often-used libraries cannot handle "prop[]" if there aren’t multiple of those, maybe we should address that in the spec
#
Zegnat
Basically as soon as [] comes in, it is Micropub-spec-defined behaviour
#
kisik21
For reference: this is python's stdlib cgi.FieldStorage class and its getlist higher-level function doesn't handle []
[kevinmarks] joined the channel
#
[kevinmarks]
indigenous is indie-shaming me - I need more endpoints 😞
#
[kevinmarks]
python handles the older model of passing the same parameter multiple times to get an array, which blows ruby's mind
#
kisik21
[kevinmarks]: that's it!
#
kisik21
That's how it's working probably
#
[kevinmarks]
I took advantage of this with urls like
#
[kevinmarks]
r=&letr=s&letr=t&letr=r&letr=t&letr=&letr=t&letr=&letr=eigh&letr=aigh&letr=&letr=&letr=&letr=
#
kisik21
That's why it not working
#
kisik21
I mean, my endpoint
#
[kevinmarks]
so you need to add the ruby/node [] parsing convention
#
kisik21
I know how to get it, one overridden method and it's done! Also backwards compatible
#
[kevinmarks]
excellent
Zegnat, sknebel and Kaja joined the channel
#
GWG
Figured out how to extract location data from JetBlue flyfi
eli_oat joined the channel
#
GWG
Now what do I do with it?
#
Zegnat
Stream it into a Compass server instance?
benwerd joined the channel
#
GWG
I don't have one
#
GWG
Also, need an Android app that can retrieve it and send it
#
swentel
listens :)
#
GWG
I will search the store
#
Zegnat
Wonder if you could just run PHP on Android, then you could easily write something that pulls their data yourself
#
GWG
Well, I have an app that can pull the data and publish it to an end point, but not automatically
#
swentel
there are apps that do that
#
swentel
haven't tried them yet though
#
GWG
Recommendations?
#
swentel
can't really tell to be honest
iasai and [jgmac1106] joined the channel
#
GWG
Candidates?
#
GWG
Tasker probably
jgmac1106 joined the channel
#
GWG
Should I seriously consider building a Compass alternative into WordPress?
#
swentel
what is Compass
#
Loqi
Compass is a location tracking server, part of the p3k set of applications https://indieweb.org/Compass
benwerd joined the channel
#
GWG
I would likely simplify it
#
GWG
I don't need geojson
#
sknebel
I'm not sure GeoJSON really adds much complexity, and has the benefit of being basically the standard in the web geo world
#
sknebel
so it's worth considering
#
GWG
But I am always doing a point
#
GWG
I suppose I will consider it if I write it
#
sknebel
if you really just do points then yes, no need. but e.g. trips and stuff can make use of the other things, and it might e.g. make showing trips on a map easier, since leaflet etc can work with geojson as input
#
sknebel
but agreed, consider it once you have the use cases, can always add a way to get queried data in geojson if thats needed later
#
GWG
Outputting and inputting are two different things
#
GWG
I wonder how aaronpk stores it in his flat files
#
petermolnar
he stores mf2 json
#
petermolnar
if I recall it correctly
#
petermolnar
he mentioned it a long time ago
#
petermolnar
oh, compass
#
petermolnar
sorry, wrong context
swentel and benwerd joined the channel
#
GWG
My next flight after this trip is likely Austin. I have time
#
Zegnat
I think compass uses the flatfile database thing he wrote, I forget the name
#
Zegnat
Which is a text file with every line being a single JSON encoded data record
#
Loqi
[aaronpk] QuartzDB: A flat-file database optimized to hold time-series data.
#
Zegnat
Not sure if that is actually powering current Compass
#
GWG
He'll show up eventually
jackjamieson and eli_oat joined the channel
#
Zegnat
petermolnar say you have the gzip bomb and someone helpfully webmentions me from the URL you host it at. Now my endpoint goes to retrieve it with curl.
#
Zegnat
What is the best way to make sure the bomb doesn't detonate?
#
petermolnar
oh, that's such a lovely attack to think about, wanna try?
#
petermolnar
I never dwelt deep enough into the topic to know the answer
#
swentel
maybe adding a timeout ?
#
petermolnar
my guess is the php-fpm thread will run out of memory, and that's it
#
swentel
hmm yeah probably
#
petermolnar
unless you're using the apache php module
#
petermolnar
in which case it might take apache down
#
Zegnat
Most PHP curl will not decompress. But as I'm thinking of adding support for gzip to phpmf2...
#
Zegnat
I don't want to be to blame for adding a killswitch to all projects using the parser, hahaha
#
Loqi
Zegnat: lol
#
jeremycherfas
now wonders whether he should be storing his geoJSON using aaronpk's QuartzDB as well as with the posts each one refers to.
#
sknebel
a bunch of things are in the surrounding infrastructure too
#
sknebel
e.g. it's probably fine if it does it, memory usage blows up and the OOM killer throws out the bad php-fpm process
#
sknebel
linux is relatively good about actually killing the guilty process
#
sknebel
it's not helpful if after the restart it goes "oh, I need to finish this task, lets try that again"
#
sknebel
but i think php-fpm has it's own ability to limit memory too?
#
sknebel
so unless it happening in curl/gzip somehow gets around that that's probably a good start
#
sknebel
limiting download size in general helps of course too
[jgmac1106] joined the channel
#
Zegnat
Yeah, I need to look into that.
#
petermolnar
the oom killer will not kick in
#
petermolnar
there's a line in php.ini, memory_limit =
#
petermolnar
set that to something reasonable
#
petermolnar
if the oom killer needs to catch this, it's bad
#
Zegnat
Problem is, from my reading, curl will happily fill the entire memory you set for the entire application
#
Zegnat
Not sure people expect it ro do that
#
petermolnar
command line curl will, yes
#
petermolnar
php curl will not
#
Zegnat
I thought it did?
#
Zegnat
It will download files into memory, until the PHP alloted memory is full
#
sknebel
and then php resets the process, and you have the problem mitigated to some degree
#
sknebel
I should check how I can force memory limits on my python workers
#
Zegnat
Yep. I'm just wondering if this is what people expect. Say you do image processing on your media endpoint and have upped the memory limit. Do you expect your webmention endpoint to download a file that size?
#
Zegnat
I wouldn't expect a lot of people to set up separate PHP configs for those parts of their website
#
Loqi
definitely
#
sknebel
is it a problem if they don't expect it?
#
Zegnat
Maybe not. That's what I'm trying to figure out.
#
sknebel
(I mean sure, add lower safety limits in application code if you can, but having a backstop if that fails is good)
#
sknebel
i.e. catching the gzip bomb scenario in app code is hard in many languages
#
sknebel
so maybe not bother with that, but still do download size limits
#
sknebel
(which also help somewhat with it, since gzip has a limited explosion factor)
#
Zegnat
So, who wants to volunteer and take some gzip bombs against their endpoint? Haha
benwerd joined the channel
#
sknebel
I have upped it on the todo list :D
#
Zegnat
Is there such a thing as a gziped post? E.g. could I put one as a photo alongside a micropub request?
#
sknebel
I think you can use ocmpression with requests too, but I'm not sure if that's widely enabled by default
#
sknebel
I think it's used e.g. with WebDAV
#
Zegnat
Because that might bypass body size limits, depending on if your server is smart enough to drop it or not.
#
Zegnat
I'm first going to focus on what a good baseline PHP curl config is like.
[tantek] joined the channel
#
[tantek]
Wondering how Bridgy it Webmention io would handle these since thy both accept webmentions
#
[tantek]
Bridgy *or
iasai and snarfed joined the channel
#
snarfed
feel free to try to send bridgy a gzip bomb! no clue how it handles it, but happy to find out. (you won't do any real damage, promise.)
snarfed joined the channel
#
sknebel
yeah, App Engine should handle that well
eli_oat joined the channel
#
kisik21
snarfed: can I add new Python dependencies to Granary when adding a new silo or should I refrain from that?
#
snarfed
kisik21: if you need them, sure. are you thinking a vkontakted API library?
#
kisik21
maybe
#
snarfed
if the API is complicated, sure. if it's simple OAuth/REST/JSON or similar, consider just using the requests library to access it directly. up to you though!
#
kisik21
ok
[schmarty] joined the channel
#
[schmarty]
feelin' kinda dumb with a bridgy h-feed to atom conversion. tryin'a test out my new site (presently up at https://hugo.martymcgui.re/) and seeing no URI for author info anywhere: https://granary.io/url?input=html&output=atom&url=https%3A%2F%2Fhugo.martymcgui.re%2Fposts%2F
#
snarfed
(also you'll need to add it to oauth-dropins first, before granary)
#
[schmarty]
(trying to set up a conversion of my posts page at https://hugo.martymcgui.re/posts/ into atom)
#
[schmarty]
lol wtf did i put in this page
#
snarfed
heh. looks like the authorship works on your permalinks at least. https://sturdy-backbone.glitch.me/test?url=https://martymcgui.re/2018/11/27/131006/
#
[schmarty]
yeah, i must be misunderstanding something about the h-feed. or how granary eats them?
#
snarfed
looking
#
[schmarty]
snarfed++ thanks for looking!
#
Loqi
snarfed has 66 karma in this channel over the last year (108 in all channels)
#
sknebel
It might not like it that the author doesn't have a url property?
#
sknebel
[schmarty]: try removing the "u-photo" class on the image in the h-cards on the posts
#
kisik21
snarfed: what version of Python do you use for granary and bridgy? can I write Python 3 code there?
#
sknebel
kisik21: no, Python 2
#
sknebel
at least for bridgy
#
snarfed
yup, sadly technically python 2. app engine recently launched python 3 support, but not for most of its existing APIs yet
#
kisik21
so no Python 3 for now?
#
kisik21
Py2 will be deprecated in 2020
#
snarfed
kisik21: on the plus side granary uses https://python-future.org/ so it's both python 2 and 3 compatible
leg joined the channel
#
snarfed
...which is the bigger reason we don't yet add python-3-only language features: so that python 2 users can still use granary.
#
snarfed
ok [schmarty]. granary is finding your author h-cards. they have name, which is in the atom; photo, which afaik atom doesn't support; and url, which isn't marked up with u-url, which is why it's not in the atom, i think.
#
sknebel
it's in the "value" of the author property, but not in the element in it, since it'd need to be implied, and the u-photo kills the implied URL handling
#
sknebel
so remove the u-photo class and it should work
#
[schmarty]
neat. dropping u-photo now
#
[schmarty]
that did it!
#
[schmarty]
sknebel++ thanks for the assist. and snarfed, thanks again!
#
Loqi
sknebel has 34 karma in this channel over the last year (90 in all channels)
#
snarfed
welcome!
eli_oat[m] and barpthewire joined the channel
#
[schmarty]
snarfed: if i wanted to understand more about how posts get converted to atom? specifically, i have a like-of post: https://hugo.martymcgui.re/2018/11/18/141803/ which gets extra wrapping content that i'd like to fix. e.g. an empty img tag for my avatar.
#
[schmarty]
lol i left out most of that sentence: where would i start looking if i wanted to understand... etc.
leg joined the channel
#
snarfed
[schmarty]: heh. you're welcome to read the templates and code! not for the faint of heart, but should be doable. https://github.com/snarfed/granary/tree/master/granary/templates , https://github.com/snarfed/granary/blob/master/granary/atom.py
#
snarfed
if you think there's a bug, please do file a minimal test case as a granary issue, i'll happily look
#
[schmarty]
excellent, thansk!
#
[schmarty]
*thanks, even. i will do my best to thread the needle and adjust my own markup, since i trust your code much more than my own. :}
#
sknebel
[schmarty]: and the input half: https://github.com/snarfed/granary/blob/master/granary/microformats2.py#L340 (and other bits of the file of course)
#
sknebel
all formats convert to and from (a variation of(?)) AS1
leg, grantcodes[m], myfreeweb, zoglesby, plindner[m] and swentel joined the channel
#
gRegorLove
I get that same empty img, [schmarty]. I think it's supposed to be author photo, for AS
#
gRegorLove
(on my feed, I mean)
#
Loqi
[snarfed] gRegorLove: re profile pictures in granary atom, uses the entry's author if it has one, otherwise runs the authorship algorithm on the source html page: https://indieweb.org/authorship
#
gRegorLove
Think I forgot to follow up on that
snarfed joined the channel
#
swentel
aah crap
#
[schmarty]
yeah, both the empty image and an empty <p> tag where something called "activity.annotation" goes.
eli_oat[m] joined the channel
#
gRegorLove
For me I think it's that my homepage h-card is inside the h-feed, so maybe /authorship isn't finding it.
#
gRegorLove
Will have to dig into it later.
leg joined the channel
#
[schmarty]
my posts each have an embedded h-card with a photo, so i would expect that photo to make it into the atom feed rather than becoming an img tag with an empty src.
#
[schmarty]
conversions like these are complicated, haha.
#
[schmarty]
i seem to remember that newer mf2-aware feed readers expect to display "summary" if they don't understand the properties on a post, so my likes (and reposts) include a summary, but they have no content of their own. i don't think granary looks for summary, which explains that.
#
[schmarty]
(by "that" i mean why granary is synthesizing content at all)
#
gRegorLove
Yeah, your author info looks good on that page, not sure why it's not working
#
[schmarty]
ker-shrug.
snarfed joined the channel
#
kisik21
snarfed: is there something like granary but for one tweet? need to convert single tweet to h-entry
[jgmac1106] joined the channel
#
[jgmac1106]
do that by hand
#
[jgmac1106]
if it is just one
#
kisik21
how to? I need h-entry JSON
#
[jgmac1106]
you can use unmung, write the correct h-entry and throw it in
#
[jgmac1106]
what is link to tweet?
#
Loqi
It looks like we don't have a page for "link to tweet" yet. Would you like to create it? (Or just say "link to tweet is ____", a sentence describing the term)
myfreeweb, plindner[m], grantcodes[m] and zoglesby joined the channel
#
kisik21
[jgmac1106]: how to use unmung with twitter?
#
kisik21
I mean... it doesn't seem to handle Twitter links
#
kisik21
or I am doing something wron
#
[jgmac1106]
i mean take the one tweet, write the h-entry and you can throw in unmung for mf2 json
#
kisik21
I have mf2py for that
#
kisik21
The problem is Twitter -> h-entry
#
kisik21
Granary seems to be able to do it
#
kisik21
well, so can I, but maybe I could outsource it to another service
#
[jgmac1106]
you are manually writing the h-entry if it is just one...probably be quicker than this chat we are having...if you want a lot I have no idea
#
gRegorLove
kisik21, XRay lets you plug in your Twitter API info and will return Twitter as jf2
#
kisik21
xray lib or xray.p3k.app?
#
kisik21
python, no PHP
leg joined the channel
#
sknebel
kisik21: I think granary can do that, at least if you use it as a library. not sure if the hosted can
#
kisik21
oh, why silos are so complez
#
kisik21
s/z$/x/
#
sknebel
you can also use the hosted xray with your own api tokens
KartikPrabhu joined the channel
#
Zegnat
Yep, pass api tokens to xray and it’ll work, you just have to trust aaronpk with your api tokens in that case
snarfed joined the channel
#
snarfed
kisik21: granary handles individual tweets, just put the tweet id into the "activity id" box
#
kisik21
Yeah, that is what I wanted
#
kisik21
snarfed++ granary++
#
kisik21
snarfed++
#
Loqi
snarfed has 68 karma in this channel over the last year (110 in all channels)
#
Loqi
snarfed has 68 karma in this channel over the last year (110 in all channels)
#
kisik21
granary++
#
Loqi
granary has 2 karma over the last year
benwerd and leg joined the channel
#
sknebel
[schmarty]: your like has two "like-of", that might cause trouble in granary?
#
sknebel
once the naked url, once an h-cite for it
#
gRegorLove
I've been trying several variations on a minimal h-feed, none seem to include the img: https://granary.io/url?input=html&output=atom&url=http%3A%2F%2Fgregorlove.com%2Fh-feed.html
#
gRegorLove
Tried versions with an h-feed.author and same result.
#
gRegorLove
The h-entry's author img does show up as the rel=avatar for the feed
#
sknebel
[schmarty]: if I'm reading granary right that is at least the cause of why it only says "Likes this"
#
snarfed
gRegorLove: are you hoping for author image to show up in atom? it doesn't because atom has no field for author image/photo. https://tools.ietf.org/html/rfc4287#section-3.2
#
[jgmac1106]
gRregorLove I had a chance to check Known will use p-category "rel=tag" which I believe parsers will handle the same way as p-category "value=X" what are the three categories you are using for Read posts?
#
gRegorLove
Within the activity:object <content> there is: `<img src="" />
#
gRegorLove
originally shared this post:`
#
gRegorLove
<a href="">gRegor</a>
#
gRegorLove
Trying to figure out why that img src is blank
#
snarfed
ahhh ok
#
gRegorLove
I was trying an h-feed.author just to cover all the bases
#
snarfed
if you're changing the input page, the other thing you need to do is add &cache=false :P
#
snarfed
...doesn't change this specifically though
#
gRegorLove
I was using the interactive form, which seems to not be caching
#
gRegorLove
but noted!
#
gRegorLove
Not a high priority, [schmarty] just reminded me to check into it.
#
snarfed
that <img src=""> is wholly generated by granary, not sanitized from your input
#
snarfed
looking at where it expects the image from...
#
gRegorLove
`obj.actor.image.url`
#
gRegorLove
Which appears it should be from the author photo, but my python isn't the best
#
snarfed
yeah, and it's there in the AS1, but image is an array, which might be the problem
#
snarfed
yup that's it. thanks for the report! will fix.
#
gRegorLove
That should fix for you as well, [schmarty]
#
snarfed
not deployed yet, to be clear
#
[schmarty]
keep the wahooo in reserve
leg joined the channel
#
[jgmac1106]
[gRegorLove] didn't mean to hop in the middle of your thread. Just post the three p-categories you are experimenting with and I will use the same
#
sknebel
[schmarty]: you should probably remove the u-like-of in the summary if you render a reply context too
#
[schmarty]
[sknebel] that's my next step, though i am grumpy about having to jump through the hoops to do so.
#
[schmarty]
(i don't always have valid reply context data, so i don't always render a reply context)
#
[schmarty]
so the template bit that renders the summary now needs to know whether or not to include the u-like-of, etc., making it dependent on a check that i have a valid reply context to show.
#
gRegorLove
[jgmac1106], Based on current read-status usage, the tags would be: to-read, reading, and finished. IBC allows posting tags, so you can try that right now
#
gRegorLove
It's still sending read-status, of course, but the idea is to experiment with turning that off (as an IBC setting for your profile)
#
gRegorLove
[schmarty], "oooh aww". I like it.
leg joined the channel
#
cjwillcock
GWG: re: Android app for task automation, I can't recommend Tasker enough. Like I had super-charged my smartphone. I wrote a server endpoint to receive data per two minutes and that feeds into my Now page. Works perfectly (after fiddling a bit).
#
GWG
What data do you send?
#
cjwillcock
I'll check
#
cjwillcock
26 data points from my S8+
#
GWG
Such as and what do you do with them?
#
cjwillcock
origin (IMEI), collection start time, battery level, power state (plugged/unplugged), memory state (RAM usage), lat, lon, accuracy of lat/lon, altitude, speed, location update timestamp ...
#
cjwillcock
whew ... a few more :)
#
cjwillcock
cell service type, cell asu, cell dbm, cell level, wifi state, wifi connected yes/no, ssid, signal strength, bandwidth ...
#
[jgmac1106]
Thx gRegor going to use same variation for watch and listen
#
cjwillcock
I draw a realistic version of my view of the phone on my now page, https://cjwillcock.ca/now/
#
Loqi
[Rachel Willcock] Your map is working awesome! Love seeing about where you are and speed! This is good!
#
cjwillcock
other than that, not so much I guess
#
cjwillcock
but I also use lat/lon to collect my local weather and forecast on my local server, and push that back to my phone where it does text to speech on demand
#
cjwillcock
so I may not know where I am, but I should be able to get the weather forecast almost fully independent of corporate influence
#
cjwillcock
I like it haha
leg joined the channel
#
cjwillcock
my Now page also shows my land speed based on the data ... so my wife knows if I was speeding when I get home
#
cjwillcock
I mean apparently speeding ... it's a rough estimate of speed
#
cjwillcock
assuming I am travelling at the time (with my phone)
#
GWG
Fun
#
GWG
My challenge is recording data siphoned from my plane
[kevinmarks] joined the channel
#
cjwillcock
I also installed Termux -- so a linux cli environment right on the phone, and was writing and running Go & PHP while waiting for the dentist, etc.
#
cjwillcock
that's got potential for you GWG
#
cjwillcock
it was more challenging to poll the sensors and get back control quickly with termux iirc
#
cjwillcock
s/more challenging/not working for me/
leg and snarfed joined the channel
#
cjwillcock
about 500 MB of data since July 16 (per 2 mins)
#
snarfed
tasker++ is great. i only use it for a little light automation/triggering, but it's nice
#
Loqi
tasker has 1 karma over the last year
#
GWG
I may try to rig something for the return flight
#
[schmarty]
sknebel: thank you for the nudge. dropping the extra u-url when i have a valid reply context was not all that difficult after all. this granary output is acceptable!
#
snarfed
acceptable! i'll take it!
#
snarfed
high praise
#
[schmarty]
for generated content? acceptable is wonderful!
leg joined the channel
#
GWG
snarfed, what do you automate with tasker?
#
snarfed
right now just headset play/pause and auto-rotating specific apps. i used to do more based on location.
leg joined the channel
#
[kevinmarks]
The GPS Test app. On my phone tells me when it has enough satellites for a 3d fix. It also gives speed and heading
#
[kevinmarks]
This is one view
#
cjwillcock
my favorite tasker task: on server side I download and crop to fit my mobile resolution, photos of the day from various online feeds. Then tasker picks them up from the server and applies them as the BG. Fresh mobile backgrounds every 3 waking hours (or so).
jgmac1106 and leg joined the channel
snarfed, leg and jjuran joined the channel
#
[jgmac1106]
This s stuff is soo cool
snarfed, jgmac1106, [tantek], [schmarty], jjuran, benwerd and eduardm joined the channel