#dev 2018-10-27

2018-10-27 UTC
#
aaronpk
Check spam folder? It sends via mailgun and I have dkim and stuff set up I thought
#
aaronpk
You can always run it locally, and it has a config option to disable login when it’s local
benwerd and renem joined the channel
#
jacky
I'll try that
#
jacky
ending up just fleshing out my tests more
#
jacky
koype currently can support (very barebones) all of these post types! https://i.imgur.com/H1PYcQO.png
#
jacky
might look into using nightwatch to emulate the act of doing each of these types for demonstration (and sanity) purposes
#
jacky
I'd want to get a few more in before I do that tho
#
jacky
it's weird - with work stuff, I'm used to seeing products grow
#
jacky
but when it comes to working on something personal, it's like _way_ more exciting!
[schmarty] joined the channel
#
Loqi
jacky has 4 karma in this channel over the last year (12 in all channels)
renem and [dmitshur] joined the channel
#
[dmitshur]
> you should verify that there is a rel=me in each direction, not just a one-way assertion.
#
[dmitshur]
[kevinmarks] yep, I am aware of that.
#
[dmitshur]
however, a question about that process. is it a part of the spec for how to check whether the 3rd party site links back to the original domain? e.g., is it specified how to normalize the URL back to the domain? can the capitalization be wrong? can the scheme not match? what about path? is `https://example.com` equivalent to `https://example.com/` (trailing slash)? etc.
#
[dmitshur]
also, is one expected to use GitHub API to look up the Homepage URL for a given profile?
#
jacky
shouldn't have to
#
jacky
GitHub profile pages (at least the bit with the homepage link) is marked up using rel=me logic
#
jacky
this is for my profile: <a rel="nofollow me" class="u-url" href="https://jacky.wtf/">https://jacky.wtf/</a> at https://github.com/jalcine
#
Loqi
jackyalcine
#
jacky
so you could just do a scan using xpath or something to save on those GitHub API calls
#
[dmitshur]
oh I see
#
jacky
actually didn't know this until you asked
#
[dmitshur]
that would be more general (i.e., it can apply to github, twitter, others in a similar way)
#
jacky
I think Twitter dumped rel=me info
#
jacky
but yeah!
#
[dmitshur]
do you know if this is a part of a spec? I'm not finding one for RelMeAuth
#
jacky
what part? the scanning of a page?
#
jacky
opens the spec
#
[dmitshur]
just the process of doing a bidirectional linking confirmation
#
jacky
ah okay
#
[dmitshur]
it's not really a spec though, just a description
#
[dmitshur]
> Also, you aren't stopping people from having multiple accounts as they can have multiple domains/urls
#
[dmitshur]
[kevinmarks] yeah, sorry, I didn't mean my goal was to prevent someone from having two accounts. just to make it so that they can login via either of linked accounts and get into the same unified place on my site (rather than separate ones).
#
[dmitshur]
that's the term I was looking for earlier
#
[dmitshur]
> Identity consolidation is the ability for a user to indicate that one or more identities, profiles, URLs across different sites all represent that same user. Also known as: profile aggregation, profile equivalency.
#
jacky
[dmitshur]: whatcha working on?
benwerd joined the channel
#
[dmitshur]
I'm in thinking/planning stages. right now my personal site supports signing in only via GitHub (I added auth way before I learned about indieweb and indieauth), and I'm thinking about how I can add support for indieauth without compromising on the user experience.
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
RelMeAuth is a proposed open standard for using rel-me links to profiles on OAuth supporting services to authenticate via either those profiles or your own site. RelMeAuth is the technology behind web-sign-in. Editor Tantek Çelik (http://tant...
[Rose] joined the channel
#
[Rose]
Got my own aperture and watchtower installed!
snarfed, [tonz] and [eddie] joined the channel
#
[eddie]
Yay! Congrats!!
#
Loqi
yay!
sebsel, [tantek] and [Vincent] joined the channel
#
jeremycherfas
Woohoo [Rose]. I'm leaving that for a quieter time ...
#
Loqi
😃
#
sknebel
What is syncthing?
#
Loqi
Syncthing is open source software to synchronize files across computers https://indieweb.org/Syncthing
[jgmac1106], [tonz], [sebsel], tglobe, swentel, [eddie], benwerd and sebsel joined the channel
#
aaronpk
Just had a thought to help get around my foursquare rate limits
#
aaronpk
if you go to the ownyourswarm website and click load checkins, your browser could make that request to foursquare directly so at least that manual method would bypass the IP address limiting
[Rose] joined the channel
#
sknebel
interesting
#
[Rose]
I would be up for that
#
sknebel
are they telling you you are IP rate-limited?
#
sknebel
(seems a bit stupid to ip-limit people when you have API-level limits, but "seems a bit stupid" never stopped companies...)
#
@swentel
↩️ Sending webmentions probably the biggest reason. (this reply is one for instance). But also for microsub servers which can parse microformat feeds so readers get richer content. Use both almost daily now.
(twitter.com/_/status/1056214204875751424)
#
aaronpk
They aren't returning the normal rate limiting headers, they are just blocking that IP.
#
sknebel
use more IPs?
#
sknebel
both are implementation effort, although I guess the per-user thing will always work
#
Zegnat
Do you get the expected rate limiting headers when you query from other IPs? Wondering if they broke their headers or if they just completely blacklisted the OYS IP.
#
aaronpk
Good question
#
aaronpk
im gonna spend some time on this this morning as soon as I make some coffee
#
[Rose]
Did you make it home yet?
[dmitshur] joined the channel
#
[dmitshur]
Zegnat: thanks
#
Loqi
[dmitshur]: Zegnat left you a message 9 hours, 47 minutes ago: closest to a relmeauth spec there is would be http://microformats.org/wiki/RelMeAuth#detailed_algorithm and http://microformats.org/wiki/relmeauth-algorithms
#
Zegnat
aaronpk, another thing you could try is to include a X-Forwarded-For header with a different IP. Could be they ignore it, but if they don’t, you could ask people for their servers’ IPs (or resolve the IP behind the provided micropub server) and that way spread out the API usage.
#
aaronpk
has coffee, begins some tests
sebsel joined the channel
#
aaronpk
well now i'm not getting rate limited right now
[frank] joined the channel
#
[frank]
Way to go Rose!
#
aaronpk
aha, they seem to block the request more consistently if I don't include a user-agent header
tglobe joined the channel
#
sknebel
was about to ask about that, remembered seeing something like that in their api docs
#
sknebel
aaronpk: found the following quote in some random github repo quoting from older api docs: "Set your User-Agent header to something identifiable. Default identifiers like "Mozilla" or "libwww-perl/5.808" may get banned from time to time
#
sknebel
because of rate limits. We keep track of each unique User-Agent (app name, major/minor versions and log information included) you send us."
#
aaronpk
let's see if this works
#
sknebel
since I don't use their stuff for anything and should have a bunch of transfer volume free, I'd offer you use of my server's IP too
#
aaronpk
well it looks like i'm not permabanned since some requests can get through, so i'm hoping it won't come to that
#
aaronpk
just added a bunch of logging too so I can see how many requests i'm actually making and why
#
sknebel
sure, but if you have a use for spreading out requests over IPs, I guess we can scrape a few together
#
sknebel
that logging sounds like a good idea
#
aaronpk
visibility++
#
Loqi
visibility has 1 karma over the last year
#
aaronpk
turns out that when someone disconnects their foursquare acct from OYS, the process that looks for comments on checkins is still trying to request their data but has no access token so it fails obviously
#
aaronpk
but that means i'm making 20 bad requests every 2 minutes
#
aaronpk
so that might have something to do with it
#
petermolnar
logging++
#
Loqi
logging has 2 karma over the last year
#
sknebel
300 requests per hour out of a budget of... ?
#
aaronpk
there's no access token so they can't rate limit on my app
#
aaronpk
which is probably what caused the IP address block
#
aaronpk
okay so far so good, cleaned up the code and i'm not making junk requests anymore
#
@EddieHinkle
↩️ I use it for the same things, also daily. I reply to Twitter and to the http://Micro.blog social network through webmentions that use mf2 on my site. (https://eddiehinkle.com/2018/10/27/5/reply/)
(twitter.com/_/status/1056244543736238085)
#
aaronpk
I think the users/* endpoints aren't rate limited at all
#
aaronpk
getting these headers when I fetch a user's recent checkins: X-RateLimit-Limit: 0 X-RateLimit-Remaining: 0
#
GWG
Still trying to figure out how to display altitude. Anyone?
#
sebsel
ouch :(
#
sebsel
GWG isn't that just a number of meters / feet above sea level?
#
GWG
Yes, how many meters or feet before it is interesting?
[Rose] joined the channel
#
[Rose]
It depends on what "normal" is I would say. And that's a per person setting.
#
sebsel
My old normal in Amsterdam was 0, my new normal in Nijmegen is 33 meters, so for me Nürnberg's 330m was abnormal already. (321m is the highest point in The Netherlands)
#
Zegnat
If you are not showing it always, it also may depend strongly on the country you are in (if you are showing location). If you display a post was made in the Netherlands, you may not even want to display anything between -5 and +40 as abnormal. While in Switserland maybe you really want to highlight any 0s or -5s. (Numbers improvised, I don’t know averages.)
#
sebsel
GWG you don't want to show it always?
[Tilley] joined the channel
#
[Tilley]
Interesting is very subjective in this case and depends on your goal.
#
GWG
I have the coordinates not visible in the post. I only show longitude and latitude if there is no textual description
#
GWG
So, this is how to add it
#
@Dries
↩️ @EddieHinkle @swentel What is your Microsub reader of choice?
(twitter.com/_/status/1056253797985669120)
#
sebsel
Hm, but if there is a textual description, the altitude is contained in there, right? The text implies the lat/long, and also the alt.
#
sebsel
Maybe you could look up the ground altitude of the lat/long location yourself, and check if the post has a significant difference, and then add 'flying' when applicable? :P
#
sebsel
Sounds like a lot of work for something that is only true a very few times.
#
aaronpk
altitude from the GPS is pretty inaccurate anyway
#
aaronpk
so I just ignore it completely. I don't really think it's worth showing the vast majority of the time.
#
sknebel
he added a lookup from the map
#
aaronpk
it's a little more interesting to show the altitude of a trip like runkeeper/strava where you can show how it changes through the course of the trip
#
aaronpk
but a single altitude value isn't super relevant
#
jacky
unless it's a photo from the top of the Empire State Building :)
#
sebsel
yeah, but then again, the textual description would probably capture that
#
sebsel
Depending on how accurate you can get that
#
GWG
Just wondering about it
#
sknebel
now I wonder if geolocation APIs shouldn't deliver that. surely a wifi-based one should be able to at least roughly tell you the floor in the empire state building :D
#
GWG
They deliver elevation, but not sure about much else
#
GWG
I have been having fun with API
#
sknebel
it's a good question. my instinct would have been "on hover somewhere", but can't think of where'd be a good point, especially if you don't have an interactive map
#
Zegnat
Does the JS API include altitude? I forgot to check and have only been logging lon/lat/accuracy with my posts
gRegorLove_ joined the channel
#
GWG
I would have to look, I only use static
#
GWG
This is only generation 1 of this idea
#
GWG
Maybe I will just key it to display over 1000m and see what happens.
#
GWG
I just need to beat Zegnat in my marking things up
#
GWG
This is a minor issue anyway. I spent a lot of time on Issues I was more certain on
#
GWG
Like location visibility, a property I wish more Micropub clients and endpoints supported
#
Zegnat
Only since Nürnberg do I use a posting client that captures geo. And I am not publicly sharing it. So you’ll beat me to it on this one ;)
#
GWG
I am working on displaying. Capturing is harder
#
GWG
Indigenous for Android is doing it
#
Zegnat
My still unnamed webapp does the capturing for me, so Chrome for Android, basically
#
Zegnat
https://developer.mozilla.org/en-US/docs/Web/API/Coordinates - should include altitude as well as an altitudeAccuracy... I should just be logging that entire object, probably
#
Zegnat
makes notes for his rewrite - to be done before Berlin
#
GWG
Zegnat: I log the entire object. I support HTML5 Geolocation in the WordPress Post UI
#
GWG
So I could do that on mobile.
#
Zegnat
GWG++ for preempting my every move
#
Loqi
GWG has 39 karma in this channel over the last year (165 in all channels)
#
GWG
Zegnat: I did that in 2014
#
GWG
But right now I'm making it much better
#
GWG
Overkill, you could say
#
Zegnat
I am only just looking into this geo stuff. Basically added it because ... someone? ... mentioned it at IWC.
#
Zegnat
Tacked it on to the posting UI I was building as an afterthought.
#
Zegnat
Just have Chrome get the coordinates, I transform it into a geo-URI and drop it in a hidden form. So when I hit the save button current location gets send along
#
Zegnat
(See also: reasons why my posting interface is not open-sourced. All of it is tacked on features ;))
eli_oat joined the channel
#
Zegnat
sets out to write his first micropub client
[frank] joined the channel
#
swentel
I started testing the microsub server in the drupal module :)
#
swentel
my site is using it, and I see the same stuff as in aperture, so looking good hehe
#
[frank]
++Zegnat
#
Zegnat
Thankfully I already have a server to test against
#
[frank]
Does this even work through Slack?
#
Zegnat
It does, if you put the ++ after the username
#
aaronpk
decided to go on a little issue spree on ownyourswarm
#
aaronpk
forgot how much of that I made during my 100 days challenge
#
aaronpk
kinda nice having the little blog posts about each feature announcement
#
[frank]
Zegnat ++
#
aaronpk
haha oops. Loqi should allow that one tho
[kevinmarks] and [Rose] joined the channel
#
sebsel
Zegnat++ < converting the karma from [frank] without a space :P
#
Loqi
Zegnat has 58 karma in this channel over the last year (173 in all channels)
#
[frank]
sebsel++
#
Loqi
sebsel has 8 karma in this channel over the last year (22 in all channels)
#
[frank]
Learning every day...
#
swentel
ha, interesting, sorting timelines by published url isn't so smart :)
#
swentel
especially if it's a timeline with a lot of feeds
#
swentel
s/published url/published time
#
aaronpk
yep :)
#
aaronpk
sorting is tricky for sure
#
aaronpk
you also can't only sort by date the entry was discovered because then when someone adds a new feed all the old entries show up on top
#
swentel
just noticed that
#
aaronpk
I do a combination of both, and nobody has complained since I made that switch
#
swentel
yeah, never felt weird
KartikPrabhu and snarfed joined the channel
#
aaronpk
ooh swarm changed the way they show the sticker bonus and now it looks more like the rest of the coins
#
aaronpk
wondre if I should send that as a webmention too then
snarfed joined the channel
#
jacky
peeks
snarfed joined the channel
#
jacky
hm lol don't have any bonus ones for some time
[dougbeal] joined the channel
#
aaronpk
well that was fun
#
aaronpk
not getting errors on OYS anymore either
#
aaronpk
now to continue bashing my head against the wall on getting offline-teacup to work
#
aaronpk
updated safari on my mac without updating the whole OS and I can see the debug console on my phone now!
#
AngeloGladding
i was going to ask how that was coming along aaronpk
#
AngeloGladding
does the debug console render on your mac?
#
aaronpk
it does now!
#
aaronpk
had to update safari a few versions
#
AngeloGladding
i'm on debian so i had to resort to piping window.onerror over a websocket
#
AngeloGladding
but i'm very much looking forward to looking into offline
#
AngeloGladding
i've been bashing my head against the wall with websockets the last couple days but have finally got them working smoothly and reliably
#
AngeloGladding
almost ready to combine with IRC bridge from earlier this month
#
AngeloGladding
uses tagged notes, follow posts and websub
#
AngeloGladding
fat pings keep the latency low and as i've mentioned before, once a circuit is established, websockets have a similarly low latency over Tor
Christopher1 joined the channel
#
AngeloGladding
i look forward to dealing with out-of-order messaging and handling intermittent and offline modes but right now i'm putting some polish on caching avatars/photos so i can give it a proper demo
#
aaronpk
AHA okay progress
#
aaronpk
iOS safari doesn't support Body.formData, but it does support Body.json
[kevinmarks] joined the channel
#
[kevinmarks]
can you look at why ownyourswarm doesn't like my known?
#
aaronpk
known.kevinmarks.com?
#
aaronpk
it's getting a 403 error right now
#
[kevinmarks]
ownyourgram still works with it
#
aaronpk
maybe the access token expired finally?
snarfed joined the channel
#
GWG
aaronpk: I think I'm gaining on you in the location front. If you do absolutely nothing, I'll catch up with you by the LA Olympics
#
GWG
Am I crazy enough to build something like Compass into WordPress?
#
GWG
I'm picturing someone at a computer in the world reading this log and saying...yes, he is that crazy
#
aaronpk
so close
#
aaronpk
just dealing with caching issues when installed as a home screen app
#
GWG
aaronpk: Is this a good time to mention my teacup issue?
#
aaronpk
i'm in a different teacup right now but maybe
#
GWG
aaronpk: The missing docs
#
GWG
The other tools you built have wonderful examples of what they push out
#
aaronpk
ah yeah
#
GWG
Oh, and I found my old Pebble. Made me think of Teacup
snarfed joined the channel