#dev 2019-09-12

2019-09-12 UTC
#
vika_nezrimaya
[KevinMarks]: Something like await Promise.all(input.files.map(file => fetch(<...>))).then(responses => responses.map(response => urls.push(<...>))); return urls;?
KartikPrabhu and [schmarty] joined the channel
#
[schmarty]
vika_nezrimaya: http://h2vx.com/ics/ will convert an h-feed of h-event into an ICS format
#
[schmarty]
so if you have an h-feed of (reposted) h-events, that proxy will make them add-to-calendarable
#
[schmarty]
oops, just saw your goodnight message in another channel.
#
[schmarty]
!tell vika_nezrimaya http://h2vx.com/ics/ will convert an h-feed of h-event into an ICS format. so if you have an h-feed of (reposted) h-events, that proxy will make them add-to-calendarable
#
Loqi
Ok, I'll tell them that when I see them next
KartikPrabhu, sornelo, chirptuneDiscord, gRegorLove, [snarfed], cweiske, [mapkyca], deathrow1, krychu, jjuran, [tonz] and vika_nezrimaya joined the channel
#
@wearewebclerks
Did you know that the #webclerks site supports webmentions too? Send us a like (or like this tweet) to join these awesome people! Also, get a ticket - they're selling fast ;) https://webclerks.at/
(twitter.com/_/status/1172082072845987840)
[jgmac1106] and vika_nezrimaya joined the channel
#
Loqi
vika_nezrimaya: [schmarty] left you a message 8 hours, 46 minutes ago: http://h2vx.com/ics/ will convert an h-feed of h-event into an ICS format. so if you have an h-feed of (reposted) h-events, that proxy will make them add-to-calendarable
#
vika_nezrimaya
It seems like Redis is the best solution for geospatial applications (e.g. venue query), since it implements georadius calculations natively
vika_nezrimaya1, jgmac1106 and vika_nezrimaya joined the channel
#
Zegnat
vika_nezrimaya: don’t most dbs have something these days? I seem to recall a whole spatial extension for MariaDB
#
vika_nezrimaya
no thanks I heard enough about MySQL :3
#
vika_nezrimaya
rn I'm using redis but maybe I want to migrate to flat files
#
vika_nezrimaya
and not use Redis
#
vika_nezrimaya
but then I'll have to make a geospatial index myself
jeremych_ joined the channel
#
vika_nezrimaya
anyway, either I'm using Mongo and getting hacked (lol) or I'm using Redis as a cache and geospatial index with flat files
#
vika_nezrimaya
wait, can I use ElasticSearch index as a database?
[tonz], ffl^, gidzit and [Rose] joined the channel
#
beko[m]
Interesting. Got a failed Star over Bridgy Github due to `enabled OAuth App access restrictions`. Didn't know that's possible.
krychu and t-mo joined the channel
#
jacky
aperture's source feels so simple
[Will_Monroe], eli_oat, vika_webgirl, krychu_ and [schmarty] joined the channel
#
[schmarty]
vika_nezrimaya - looks like the web ring app is having trouble connecting to your site: ```https://fireburn.ru/%7C2019-09-12 13:55:19|{"status":0,"error":"Problem checking site link: RequestError: Error: write EPROTO 139687147210560:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:\n"}```
#
[schmarty]
SSL/TLS protcol issues 🤔
#
jacky
yeah looks like SSL is still being served
#
jacky
just disabling that and opting for TLS should fix it
#
jacky
TLS 1.1 or higher
gxt joined the channel
#
jacky
right now, I'm still wondering if I should do some more fancy discovery work
#
jacky
I'm hoping to have a demo before I leave for twitchcon
#
jacky
TIL that DuckDuckGo has a search api in JSON
#
jacky
(mostly for instant answer it seems)
[tantek], [jgmac1106], jackjamieson and [snarfed] joined the channel; chirptuneDiscord left the channel
#
@schnarfed
↩️ bridgy already does this! it follows reply chains, sends every tweet back as a webmention, and includes a u-in-reply-to link to the direct parent tweet as well as to your web site post. example: curl https://brid.gy/comment/twitter/schnarfed/1145113483161161729/1145117421994307584
(twitter.com/_/status/1172180748788387841)
#
@schnarfed
↩️ bridgy already does this! it follows reply chains, sends every tweet back as a webmention, and includes a u-in-reply-to link to the direct parent tweet as well as to your web site post. example: curl https://brid.gy/comment/twitter/schnarfed/1145113483161161729/1145117421994307584
(twitter.com/_/status/1172180748788387841)
#
[tantek]
This is a great incremental o
#
@zachleat
trying to own my twitter content and host my tweets on my personal web site and I accidentally built a very fast HTML-first twitter client—oops (alt: an example of how a thread renders) https://pbs.twimg.com/media/EEG5wjMX4AAEEAQ.jpg
(twitter.com/_/status/1171421627650887681)
#
[tantek]
Twitter << Examples of how to own your tweets: https://twitter.com/zachleat/status/1171421627650887681
#
@zachleat
trying to own my twitter content and host my tweets on my personal web site and I accidentally built a very fast HTML-first twitter client—oops (alt: an example of how a thread renders) https://pbs.twimg.com/media/EEG5wjMX4AAEEAQ.jpg
(twitter.com/_/status/1171421627650887681)
#
jacky
hm does bridgy support sending video to Twitter?
#
jacky
I'm going to check my logs in a few (not by desk) but https://v2.jacky.wtf/post/11a18abc-ccfb-47ca-859e-1434fac89190 hasn't sent anything to twitter
#
Loqi
Got a new video over at https://jacky.wtf/youtube! Go peep and lemme know what you think below [video]
#
jacky
that's def wrong lol
#
jacky
hm I guess poster gets precedence over a child having src
#
beko[m]
[snarfed]: I wonder… is it possible to e.g. like something on Github and simply post that also on TW as article via Bridgy? When I try I get error that XY was not found on TW. Naturally, it's not there 😕 Making the post twice clutters everything up even more. So for now I make this manually (or edit the post later when it was sent to TW first)
#
[snarfed]
beko: sorry, trying to follow. TW is...twitter?
#
[snarfed]
what's your bridgy github user page URL?
[Nicolas_Hoizey] joined the channel
#
beko[m]
`bekoli`
#
[snarfed]
thanks!
#
[snarfed]
re twitter, sorry, no, bridgy doesn't support cross posting a reply to one silo onto a different silo. discussion: https://github.com/snarfed/bridgy/issues/362
#
Loqi
[dissolve] #362 syndicate posts despite "Could not find a tweet to reply to."
#
[snarfed]
and re your failed star earlier today, looks like the HTTP response body to your webmention POST included the error explanation: "Although you appear to have the correct authorization credentials,
#
[snarfed]
the `OkunaOrg` organization has enabled OAuth App access restrictions, meaning that data
#
[snarfed]
access to third-parties is limited."
#
beko[m]
yeah… stared it manually and ignored it. Just didn't know that this is possible
gRegorLove joined the channel
#
jacky
video posting just worked! :)
#
jacky
this is interesting
#
jacky
I could use Instagram to send a video to twitter, my site and into the fediverse all in one go
#
jacky
I'm starting to think that I want to progressive load the replies to posts on my site
#
jacky
like the first 10 likes, 10 replies etc
#
jacky
but that's a fear of it being slow
[KevinMarks] joined the channel
#
[KevinMarks]
Measure it? Or do the promise stuff we were talking about?
#
jacky
I can measure it before doing anything elsed
#
jacky
promises won't help here because it's mostly I/O and too much I/O will become noticeably slow
#
[KevinMarks]
Server side i/o?
#
[KevinMarks]
That promises article by Jake had a good walk through of incrementally loading a sequence of stuff.
#
[KevinMarks]
If your server side i/o is too slow vs network then you may be storing things inefficiently
#
[snarfed]
is it too slow now? if not, maybe wait? optimize when something is actually slow, not just when you suspect it might be slow at some point in the future
#
[snarfed]
intuition about performance is usually difficult at best
#
jacky
nah like
#
jacky
I think it looks slow because I'm watching logs
#
jacky
and it might also be an inefficient storage approach (all of the webmention and entry data isn't stored on disk; it's stored remotely)
#
jacky
so to load a photo that has like 150 likes, 40 replies and 3 photos in the set, that'd be 194 HTTP calls (one extra for the underlying MF2 of the post)
#
jacky
I _am_ working to make it read from disk but tbh I think I might be just pre-optimizing
#
Loqi
[jacky] but that's a fear of it being slow
#
[KevinMarks]
The promises.All thing was about whether you chain all the i/o or spawn it in parallel. (I'm not sure if you are working in js anyway).
[grantcodes] joined the channel
#
[grantcodes]
I'd work on the storage first. Why are likes not attached to the post in some way?
#
[KevinMarks]
This article - it explains it in js terms, but the broader ideas make sense too https://developers.google.com/web/fundamentals/primers/promises
#
[tantek]
"work on the storage first" yes! well, after the UX design 🙂
#
[tantek]
"Why are likes not attached to the post in some way?" oh boy. paging [schmarty] for the whole discussion we had about this at IWS
#
[snarfed]
but also more importantly, 194 http calls seems like too many, regardless of anything server side. (network generally matters more than your backend/storage code unless it's egregious.) looks like you already collapse the like/repost facepiles. consider lazy loading their images?
#
[tantek]
here I've been worrying about reading from one file vs two (or three) to render a post 😂 — without making *any* HTTP calls from the server
[Will_Monroe] joined the channel
#
[grantcodes]
Ah, are the network requests from avatars? If so that is different to what I was thinking about
[fluffy], eli_oat, krychu and [schmarty] joined the channel
#
[schmarty]
i most of that traffic refers to loading avatar images, which is an interesting thing to try to optimize. lazy-load is good in some circumstances.
#
Loqi
lazyload has 1 karma over the last year
#
Loqi
[snarfed] #12512 Lazy loading: use new HTML `loading` attribute (eventually)
#
[schmarty]
ponders inlined SQIP for facepiles
krychu and vika_nezrimaya joined the channel
#
vika_nezrimaya
hey [schmarty] so I saw your message in the scrollback
#
vika_nezrimaya
SSL protocol errors you say...
#
vika_nezrimaya
Do you think that's my configuration mistake or yours?
#
vika_nezrimaya
I'm kinda new to configuring nginx so I might've done something wrong
#
vika_nezrimaya
Running ssllabs.com test right now
#
vika_nezrimaya
And i got an A. My cipher strength has some room for improvement but overall it's fine, and I even support TLS 1.3!
#
vika_nezrimaya
I don't support anything lower than TLS 1.2 though
#
[schmarty]
i think the issue is that glitch may not support only TLS 1.2/1.3?
#
[schmarty]
i don't maintain the platform, just the nodejs code that runs atop it :}
#
vika_nezrimaya
Oops! I seem to not have HSTS
#
vika_nezrimaya
ok maybe you can file a bug with glitch?
[Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
any rubyists in?
KartikPrabhu joined the channel
#
jacky
just the mf2
#
jacky
I'll write about it more but only info is stored; no remote media (like media in replies or h-cards) are stored
[tantek] joined the channel
#
[tantek]
vika we might have someone here that works for Glitch ;)
#
ShokuninDiscord[
Meetup tonight?
#
jacky
!tell vika_nezrimaya what's your site's URL (the glitch one, not the one with the branded domain)? I don't think Glitch has HSTS enabled for sub-domain projects if custom domains are enabled
#
Loqi
Ok, I'll tell them that when I see them next