#dev 2019-12-10

2019-12-10 UTC
oodani and marinin[t] joined the channel
#
marinin[t]
re: russian locale on indienews. I've filed a PR https://github.com/aaronpk/IndieNews/pull/46 but would love to see it go live to look for mistakes
#
Loqi
[marinintim] #46 add russian locale
#
aaronpk
amazing!
#
marinin[t]
in my experience, all mistakes are apparent only after you hit deploy
#
marinin[t]
also I've built webmention display widget in Svelte (via webmention.io api, it is really nice), here it is in action: https://marinintim.com/2019/indieweb/9/webmentions-rendered.png
#
marinin[t]
which is almost 200 lines, but most of it is styles and markup :)
KartikPrabhu and [jgmac1106] joined the channel
#
[tantek]
Anyone have a gift for today's IndieWeb Gift Calendar entry?
#
aaronpk
I could launch that Russian translation! Group effort!
#
[tantek]
amazing
#
jacky
random: a CSS shadow generation tool https://brumm.af/shadows
#
aaronpk
marinin[m]: one thing I don't have in the translation file is the text for the home page https://news.indieweb.org
#
aaronpk
what would you expect to see there?
#
[jgmac1106]
Maybe adding shadows to his cards soon... Need to back and do the subgrid mJordan taught me at summit
#
aaronpk
i'm going with русский for now
#
aaronpk
btw [manton] the webmention notifications about micro.blog syndication have been working swimmingly!
#
GWG_
I haven't asked for that, but my polling technique is working wonderfully
[manton] joined the channel
#
[manton]
[aaronpk] Glad to hear it!
KartikPrabhu, j12t, [manton]1, tbbrown, [jeremycherfas], alejandrocloudDi, cweiske, gxt, asymptotically, swentel, ElijahDiscord[m], gxt_, jerothDiscord[m], [tantek], [grantcodes], [Rose], vika_nezrimaya, [schmarty], deathrow1, [snarfed], vika_nez` and kirol54Discord[m joined the channel
#
marinin[m]
<aaronpk "i'm going with русский for now"> "русский" is perfect. OTOH, there are some strings that are not in the Locale files.
#
marinin[m]
E.g., https://news.indieweb.org/ru/submit, Members page
#
aaronpk
oh funny, i must have added stuff without updating the locale file template
#
marinin[m]
yeah, a few paragraphs
#
marinin[m]
I'll try to submit a post today to check out other parts of the interface :)
#
marinin[m]
ok, some words need rephrasing. I'll draft a new PR.
#
aaronpk
awesome thanks
#
marinin[m]
how to better mark the dt-published when time is fuzzy? I don't want to specify that I published post on 18:46 on 10 December, and I also want to use Russian, e.g.: 10 декабря.
#
aaronpk
<time datetime="2019-12-10">10 декабря</time> works
#
marinin[m]
oh, I thought that datetime attr should specify the exact moment in time, ok
#
aaronpk
nah just needs to be a machine parseable date
#
marinin[m]
YYYY-MM-DD is the only acceptable format, am i the machine
j12t joined the channel
#
aaronpk
all my filenames on my computer start with YYYY-MM or YYYY-MM-DD
#
aaronpk
i want them to be sortable!
deathrow1 joined the channel
#
[snarfed]
good for posts, less so for evergreen wiki-stylepages
#
aaronpk
oh i wasn't even talking about web stuff. just like photos or scanned docs or powerpoint files
#
[snarfed]
same though!
#
[snarfed]
except photos
#
marinin[m]
what is discovery
#
Loqi
Discovery is a variety of methods for finding content, websites, communities, or people to follow on the web including search, directories, recommendation engines, tags, or other serendipitous methods https://indieweb.org/discovery
#
marinin[m]
how you usually structure feeds? I've got main feed with long articles, and I don't want to clutter it with small replies. But if there are two h-feeds on main page, how would `reader ` discover which is primary feed. (or should I just go with separate page?)
#
aaronpk
there's a pretty wide set of solutions to this, none of which are really formalized yet
#
[snarfed]
usual advice is to do the simplest thing - in this case, a single feed with everything - until someone actually wants/asks for something more complicated
#
marinin[m]
the way I see it, there is a `me` identity, and a website identity.
#
aaronpk
most of this is going to be personal preference until there is a concrete need to have machine-readable data
#
aaronpk
i took the approach where my home page is a mix of lots of kinds of content but all stuff that i consider "primary" content. but then i also have separate feeds for just my blog posts, just photos, just short notes, etc. so someone can follow my home page or follow a specific other feed if they only want my blog posts for example
j12t, [jgmac1106], deathrow1, [Rose], asymptotically, [email096], [jeremycherfas], gRegorLove and chrisaldrich joined the channel; CrocodillianDisc left the channel
#
GWG_
aaronpk: What is the best way to generate a static map for a time period using Compass?
#
jacky
ah I asked this
#
jacky
and there was a link
#
jacky
I think atlas
#
aaronpk
Atlas has the static map code
#
jacky
sniped by a second
#
Loqi
[aaronpk] Atlas: 🌎 Atlas is a set of APIs for looking up information about locations
#
Loqi
[aaronpk] Static-Maps-API-PHP: A PHP app that renders static maps from tile hosting services
#
aaronpk
looks like the part that makes the maps for my site is actually code in my website itself
#
aaronpk
it takes the geojson that compass sends as the route.json file via micropub, runs a "simplify" algorithm to create a line with much fewer points, then sends that list of coordinates to Atlas to draw the line on the map
#
GWG_
It's the simplify part I am wondering about
#
GWG_
I have static maps already
#
aaronpk
i don't remember the exact library i'm using, but it's this algorithm https://github.com/david-r-edgar/RDP-PHP
#
Loqi
[david-r-edgar] RDP-PHP: PHP implementation of the Ramer–Douglas–Peucker algorithm for polyline simplification
#
GWG_
The /api/query documented in the readme only allows you to return all points for a day
#
GWG_
Nothing to show all points between two timestamps
#
aaronpk
hm it definitely has some way maybe it's not documented
#
aaronpk
yeah try adding start and end query parameters
#
GWG_
aaronpk: The share thing isn't documented either
[schmarty] joined the channel
#
GWG_
aaronpk: Maybe I will read the api code and send a PR someday
j12t joined the channel
#
@ChrisAldrich
↩️ Glad to hear it & to have found your site(s). I noticed that the Teaching & Learning on Open Web site didn’t seem to accept/display my webmentions, and I’m curious how you or maybe @jvg accomplished that. Is it a setting in your Known instance [more...] https://boffosocko.com/2019/12/08/55761177/?replytocom=272403#respond
(twitter.com/_/status/1204478340570107905)
swentel joined the channel
#
swentel
hmm is there anyone that updates h-cards via micropub?
#
aaronpk
like their own h-card?
#
aaronpk
i have h-card posts for my address book, and i can update those via micropub
#
aaronpk
(for people in my address book)
[fluffy] joined the channel
#
swentel
aaronpk, exactly what you describe, I want to manage my address book from indigenous (look already works for autocomplete)
#
swentel
aaronpk, seen the video? it's quite cool :)
#
swentel
(I actually pinged you, so maybe you did)
#
jacky
swentel: this is on my to-do list
#
swentel
anyway, to update an h-card, the url would be the unique contact url then?
#
aaronpk
there isn't really anything different about h-cards as far as micropub is concerned
#
aaronpk
presumably this h-card has a URL on your site
#
swentel
it isn't public by default, but I can target it, so that will work
#
swentel
ok, implementing then now on the drupal side
[Rose] joined the channel
#
swentel
jacky, it's a great feature. My girlfriend finally when something like 'Now you're getting somewhere with that app' :)
tbbrown joined the channel
#
jacky
so y'all are updating a internal reference
#
jacky
interesting
#
jacky
then that's very simple on my end
[benatwork], leg, [davidmead] and KartikPrabhu joined the channel
#
aaronpk
[manton] is there a way to update a post in micro.blog? I just realized that my photos jsonfeed is missing all the text of my posts so they're showing up funny in micro.blog
#
aaronpk
i'm just going to remove it for now
[tantek] and [manton] joined the channel
#
[manton]
[aaronpk] Micro.blog automatically updates the text in posts if it changes in the feed, but it only does that for the first 24 hours currently. So older posts, probably best to remove them in the Micro.blog timeline, which will force Micro.blog to grab the latest version from your feed.
#
aaronpk
ah cool
#
[manton]
The "24 hours" isn't a technical limit but was intended to discourage modifying conversations and changing the meaning later. I'd like to revisit the idea and figure out what really makes sense.
#
aaronpk
good enough for now thanks!
#
[manton]
No problem.
#
jacky
yo so GWG_
#
GWG_
Yes?
#
jacky
I'd recommend using OwnTracks over anything if you also have a Nextcloud setup with Phonetrack
#
GWG_
I have Nextcloud but I don't use phonetrack
#
jacky
it's way more battery friendly than Phonetrack and seems to be better at tracking locations
#
jacky
ah see Phonetrack in Nextcloud can give you a little JSON stream of the last few location places recorded
#
jacky
it's like the server component to Overland
#
GWG_
jacky: I am using the server component to Overland
#
GWG_
🧭
#
jacky
aaaah
#
GWG_
Probably need a converter
#
jacky
like compass?
KartikPrabhu joined the channel
#
GWG_
Compass is the server component for Overland
#
jacky
ah okay
#
jacky
you might _not_ have to, then
#
GWG_
But I need something to accept the http request from owntracks and post to Compass.
#
jacky
lol tbh
#
jacky
for the host component, I can put a whole URI
#
jacky
I wonder if you could provide a URI to a Compass instance with the proper token
#
jacky
but I don't know what kind of payload it expects
#
aaronpk
you can
#
aaronpk
compass accepts the token in the URI for that reason
#
aaronpk
the post body is a list of geojson points. there's an example in the readme
#
jacky
oh nice
#
jacky
lemme confirm the payload of owntracks
#
aaronpk
another option is i could add the owntracks payload format to compass
#
jacky
that'd make GWG_ happy lol
#
jacky
also slight pet peeve
#
jacky
> you can quite easily record
#
jacky
the "quite easily" bet always throws me off
#
jacky
like it prepares me for easy
#
jacky
then it ends up not being that
#
jacky
easy == subjective lol
#
jacky
owntracks expects (wants) a u/n password but it's not required (you can pick that out of the params - phonetrack on nextcloud does)