#dev 2018-11-27
2018-11-27 UTC
[jgmac1106] joined the channel
# [jgmac1106] Tantek++
# [jgmac1106] Never thought about a background image in css mixing up meaning in html and design in css
snarfed joined the channel
benwerd joined the channel
[kevinmarks] joined the channel
eli_oat, benwerd and tomasparks joined the channel
# gRegorLove xray should do jf2 I think?
[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
# 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.
# cjwillcock hmm
# cjwillcock so break into chunks then - I can't tell where it got cut off. How to check?
# 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.
# cjwillcock jjuran: thank you
# cjwillcock hopefully that finds him okay
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
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/
# 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 hm this is 404, is it private? https://code.cjwillcock.ca/experiments/tab-quantizer
# cjwillcock yes, private by default
# cjwillcock try again now
# cjwillcock whoops :)
[eddie] joined the channel
# 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
Kaja___ and eduardm joined the channel
[jgmac1106], Zegnat, snarfed and swentel joined the channel
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)
Kaja___, Kaja____ and [eddie] joined the channel
barpthewire and Kaja____ joined the channel
# kisik21 !tell myfreeweb https://unrelenting.technology/replies/2018-11-26-22-34-48 - error couldnt render entry, something may be broken
Kaja____ and cweiske joined the channel
Kaja____ joined the channel
Kaja____ joined the channel
Kaja____ joined the channel
jgmac1106 joined the channel
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
Kaja joined the channel
[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
# kisik21 Zegnat: python's cgi module handles lists natively
# kisik21 And this list arrived as category[][], seemingly
# kisik21 Which is weird
# kisik21 I know Python
# kisik21 Is it correct to send category[]=tag only once but use []?
# kisik21 Also Quill handles multiple tags correctly I think...
# cjwillcock zegnat: good to know! thank you. I will review later, after my after workday
# kisik21 Zegnat: Isn't it handled by some common specification for query strings?
# Zegnat The actual standard: https://url.spec.whatwg.org/#urlencoded-parsing
# kisik21 Zegnat: means I'll just extend the get list function to get what I want by monkey-patching...
# 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] also https://silopub.p3k.io/ is very sad now
# [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=
# [kevinmarks] http://www.headsuptutoring.com/grid?pagetitle=a-e+sound+with+eight+and+straight&top=a&top=&top=e&top=ai&top=ay&top=&top=&letr=m&letr=a&letr=d&letr=e&letr=&letr=&letr=&letr=t&letr=r&letr=ai&letr=n&letr=s&letr=t&letr=ay&letr=p&letr=l&letr=ay&letr=&letr=w&letr=ay&letr=&letr=t&letr=a&letr=p&letr=e&letr=r&letr=ai&letr=d&letr=b&letr=r&letr=ai&letr=n&letr=ai&letr=m&letr=&letr=l&letr=a&letr=t&letr=e&letr=d&letr=ay&letr=&letr=p&letr=ai&letr=n&letr=t
# 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
eli_oat joined the channel
benwerd joined the channel
iasai and [jgmac1106] joined the channel
jgmac1106 joined the channel
# Loqi Compass is a location tracking server, part of the p3k set of applications https://indieweb.org/Compass
benwerd joined the channel
# 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
# petermolnar feels like he should point out that https://dev.mysql.com/doc/refman/5.7/en/csv-storage-engine.html exists
jackjamieson and eli_oat joined the channel
# 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
# petermolnar my guess is the php-fpm thread will run out of memory, and that's it
# petermolnar unless you're using the apache php module
# petermolnar in which case it might take apache down
# jeremycherfas now wonders whether he should be storing his geoJSON using aaronpk's QuartzDB as well as with the posts each one refers to.
[jgmac1106] joined the channel
# 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
# petermolnar command line curl will, yes
# petermolnar php curl will not
benwerd joined the channel
[tantek] joined the channel
iasai and snarfed joined the channel
snarfed joined the channel
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?
# kisik21 maybe
# 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
# [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?
# [schmarty] snarfed++ thanks for looking!
# kisik21 snarfed: what version of Python do you use for granary and bridgy? can I write Python 3 code there?
# 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
# [schmarty] neat. dropping u-photo now
# [schmarty] that did it!
# [schmarty] sknebel++ thanks for the assist. and snarfed, thanks again!
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
# [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)
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
# [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?
# gRegorLove lib
# kisik21 python, no PHP
leg joined the channel
# kisik21 oh, why silos are so complez
# kisik21 s/z$/x/
KartikPrabhu joined the channel
snarfed joined the channel
# kisik21 Yeah, that is what I wanted
# kisik21 snarfed++ granary++
# kisik21 snarfed++
# kisik21 granary++
benwerd and leg joined the channel
# 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
# 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
# gRegorLove I was trying an h-feed.author just to cover all the bases
# 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.
# gRegorLove `obj.actor.image.url`
# gRegorLove Which appears it should be from the author photo, but my python isn't the best
# gRegorLove ahh
# gRegorLove That should fix for you as well, [schmarty]
# [schmarty] wahooo
# [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
# [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).
# cjwillcock I'll check
# cjwillcock 26 data points from my S8+
# 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/
# 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)
[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)
# [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!
# [schmarty] for generated content? acceptable is wonderful!
leg joined the channel
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
# cjwillcock https://gist.github.com/cjwillcock/8127fb8d406687241a54a97cd6df9e87 is my PoTD script for https://fstoppers.com/potd
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