#dev 2018-03-11

2018-03-11 UTC
snarfed, KartikPrabhu and [kevinmarks] joined the channel
#
[kevinmarks]
AngeloGladding have you looked at dat?
eli_oat, snarfed and [eddie] joined the channel
#
[eddie]
In the long-term I should fix that issue, but I do like the idea of that regardless of what’s going on with my server, I can post via micropub because it goes through Amazon Lambda, which should be pretty bullet proof.
#
[eddie]
Anyone besides [cleverdevil] looked into AWS stuff for hosting? I’m thinking about converting my media endpoint and micropub endpoints to actually be hosted using Amazon Lambda, because when my server gets under too much stress when lately I’ve noticed sometimes it locks up.
#
snarfed
[eddie]: where's your storage? not on your server?
#
[eddie]
It is, but it’s a git repo
eli_oat joined the channel
#
snarfed
ah. and upstream is somewhere else? so lambda doesn't have to talk to your server to store new posts?
#
[eddie]
Exactly
#
snarfed
and your server...pulls periodically?
#
[eddie]
It does
#
[eddie]
Every time it rebuilds
#
snarfed
sgtm then. hell, if it's a static site, consider porting the builds to lambda (etc) too
#
[eddie]
I didn’t know if Jekyll could build on lambda (haven’t looked into that yet) but that would be awesome as well
#
snarfed
eh or anything serverless. plenty of those options
#
[eddie]
Yeah that makes sense
#
[eddie]
Yeah, that would be pretty awesome so just spin up lambda processes to rebuild the site
#
[eddie]
I actually build a public and a private static site (so it takes double the time). But they aren’t dependent on each other so if lambda, the builds could happen in parallel :exploding_head:
snarfed and gobengo joined the channel
#
@keithjgrant
@lonekorean Yes, and it should be webmention 👍🏻
(twitter.com/_/status/972652514255560709)
[tantek] and snarfed joined the channel
#
@JmacDotOrg
After observing it for weeks, I’m impressed enough with IndieWeb to make two-way Webmention support my next Plerd priority. Still obscure tech — I hadn’t heard of it before last month, anyway — but when used by a blog that implements it well, I think it could prove really cool.
(twitter.com/_/status/972661922058391553)
tantek, renem, chrisaldrich, [tantek] and eli_oat joined the channel
#
loqi.me
created /response-context (+26) "prompted by KartikPrabhu and redirect added by KartikPrabhu"
(view diff)
tantek and KartikPrabhu joined the channel
#
www.boffosocko.com
edited /media_fragment (+352) "/* How to */ Jon Udell experiments with clippers for HTML5 Audio, Video, and YouTube."
(view diff)
KartikPrabhu, AngeloGladding, tantek, rMdes and [jeremycherfas] joined the channel
#
[jeremycherfas]
!tell kevinmarks Bake
#
Loqi
Ok, I'll tell them that when I see them next
tantek, barpthewire, gobengo, [Vanessa], leg and jeremycherfas joined the channel
#
sknebel
jeremycherfas: "> Read as Unicode turns it into complete rubbish" - that seems odd, how are you reading it exactly?
#
sknebel
cause utf-8 should be correct
#
jeremycherfas
Let me try again.
#
sknebel
unless it's read correctly, and then gets destroyed during output when you try to view the variable content?
#
jeremycherfas
Is there a way to know for sure the encoding of a text file?
#
jeremycherfas
There is a command called iconv but with the defaults it does not seem to be working as I expect.
#
jjuran
jeremycherfas: No, there’s no way to know for sure. A file’s contents is just a sequence of bytes.
#
jeremycherfas
OK, Thanks. Well, I guess I will just try some of the obvious ones.
#
jjuran
Though you can get pretty far with some decent heuristics.
#
jjuran
E.g. if it’s valid UTF-8, it’s /probably/ UTF-8.
#
jeremycherfas
How to test whether it is valid utf-8?
#
jjuran
I don’t know what the most convenient way for you to do that is, but there are clear rules for it.
#
jeremycherfas
Where can I find you utility jjuran?
#
jjuran
You’ll need my help to walk you through building it, but it’s not hard
#
jeremycherfas
Let me look at iconv a bit more, then I'll get back to you.
#
sknebel
I just found a hint that you should be able to read utf-8 files by doing "set filecontents to do shell script "cat <filename>"" in applescript
#
jeremycherfas
Hmmn. I saw that before and skipped over it. I'll go an take another look. Thanks.
KartikPrabhu joined the channel
#
jeremycherfas
Sknebel++ for reminding me of a vital clue
#
Loqi
sknebel has 31 karma in this channel (90 overall)
#
jeremycherfas
A little CSS and this could all be ready for publishing
#
jmac.org
created /User:Jmac.org (+1666) "Created page with "Howdy. I am <span class="h-card">[http://jmac.org/ Jason McIntosh]</span>, an independent creative and software professional who lives in New England. On IRC and elsewhere, I...""
(view diff)
#
jmac.org
edited /IRC_People (+83) "/* Nicknames */ Adding myself (jmac)."
(view diff)
#
sknebel
jeremycherfas: nice!
chrisaldrich joined the channel
#
aaronparecki.com
edited /lulz (+76) "thx chrisaldrich :)"
(view diff)
#
sknebel
!tell snarfed: your homepage does not have h-entry, only hentry, but mf2-style properties on your posts!
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
[eddie] and grantcodes do you have any thoughts on how you want to present "like" posts in your readers? I'm struggling with this in Monocle
#
KartikPrabhu
aaronpk: why is it different from presenting them on your site?
#
aaronpk
good question
#
aaronpk
ah it's because i'm mixing two different ideas
#
aaronpk
showing "likes" that are actually of your own posts received via webmention, vs showing likes of things from people you're following
#
KartikPrabhu
aah yes those are different even on you own site no?
#
aaronpk
I don't have a timeline/feed view of webmentions i've received on my site
#
KartikPrabhu
the display of likes that you posted is different from likes of your posts from webmention
#
KartikPrabhu
I tend of think of a reader interface roughly as "a website where many people can post"
#
KartikPrabhu
so likes posted by people you're following would show up in the stream as if they are like posts
[snarfed] joined the channel
#
[snarfed]
sknebel: yup! backcompat. still works, if not ideal. will fix eventually.
#
Loqi
[snarfed]: sknebel left you a message 23 minutes ago: your homepage does not have h-entry, only hentry, but mf2-style properties on your posts!
#
Loqi
Kartik Prabhu
#
aaronpk
[snarfed]: doesn't work anymore with the updated backcompat rules! the backcompat rules were meant to only convert mf1 to mf2, not support mixing them
#
KartikPrabhu
aaronpk: ^ real life example :P
#
KartikPrabhu
i use the new mf2py
#
aaronpk
that was unexpected
#
KartikPrabhu
my site could not find the u-like-of under hentry which is correct
#
[snarfed]
yeah so I've heard. still works in practice almost everywhere fortunately. will fix eventually!
#
KartikPrabhu
yeah no worries just a heads up
#
[snarfed]
hates working on his own cms
#
Loqi
rofl
[Vanessa] and [eddie] joined the channel
#
[eddie]
aaronpk: My most likely scenario is really just wanting a “recommended” channel or something of the like. Either done by the Microsub server or by a Microsub client service that reads all the posts and generates basically a “discovery” channel based on number of likes, bookmarks, etc.
#
[eddie]
Which is an idea I heard from [cleverdevil] awhile back
#
[eddie]
Besides that I don’t think I have a strong desire to show “likes” in themself
#
aaronpk
oh interesting, so you don't want any "likes" in normal channels?
[cleverdevil] joined the channel
#
[cleverdevil]
That was indeed my plan for Together.
#
[cleverdevil]
To have Likes not displayed in the timeline, but use them to surface things in a “Discover” view.
#
aaronpk
interesting
#
aaronpk
then presumably you would be seeing the liked posts in that view, rather than "so and so liked a post"?
#
[cleverdevil]
Yes-ish. With some context.
#
[eddie]
Correct, it would just be the post itself. Maybe some additional info like “liked by X people” or something
#
[cleverdevil]
A header or footer indicating why it showed up
#
aaronpk
I kind of like the idea of having that work done by an external microsub client service
#
[eddie]
The other option for people that MIGHT want to see them (because Indigenous isn’t just for me) is just have it display like twitter’s retweets where it’s the sub content really displaying just with a small text saying who retweeted it
#
[cleverdevil]
Nuzzel does this with Twitter.
#
[cleverdevil]
I agree, aaronpk
#
[cleverdevil]
Then it’s portable across readers.
#
aaronpk
across microsub servers even
#
[cleverdevil]
Would need the ability for Microsub servers to hide likes and bookmarks and reroute them to other channels though.
#
aaronpk
not if it's an external service doing it! the service just needs a way to remove a post from a channel
#
[cleverdevil]
What is Nuzzel?
#
Loqi
It looks like we don't have a page for "Nuzzel" yet. Would you like to create it? (Or just say "Nuzzel is ____", a sentence describing the term)
#
aaronpk
this is a cool idea
#
[eddie]
It really is!
#
[eddie]
cleverdevil++
#
Loqi
cleverdevil has 19 karma in this channel (72 overall)
#
[cleverdevil]
Nuzzel is a service with an app that surfaces articles based upon how many of your friends like those articles. http://nuzzel.com
#
loqi.me
created /Nuzzel (+157) "prompted by [cleverdevil] and dfn added by [cleverdevil]"
(view diff)
#
kaja.sknebel.net
edited /Nuzzel (+1) "linkify ('x is y. <url>.' pattern)"
(view diff)
#
aaronpk
that'd be a great place to get to, but in the mean time, I have an actual pressing need to solve displaying likes right now haha
#
[eddie]
aaronpk, my actual display of them for others needs is listed above a couple messages if it helps you
#
aaronpk
yeah, I think that makes sense
#
[cleverdevil]
Personally I’d like to see unfurling of like/bookmark/repost in Together.
#
aaronpk
that does require that the server return the expanded post tho, which may not always be available such as if the post being liked doesn't have mf2 or such
#
[eddie]
That’s true
#
aaronpk
so we still need some display of posts where the like-of is just a URL with no extra info
#
aaronpk
right now I have "gRegor liked a post on eddiehinkle.com" in Monocle
#
aaronpk
and it shows up without the like/repost/reply buttons
#
aaronpk
and a smaller author photo
#
[eddie]
That seems pretty good as a basic fallback in my mind
#
aaronpk
I guess i'm going to need to bump up the priority of fetching permalink content in Aperture
#
aaronpk
if there is info about that like-of URL available in the post, then Monocle should upgrade the display of it
#
[eddie]
Reminds me a lot of facebook’s initial likes
#
[eddie]
Which is a compliment, I think they did it very well back then
#
aaronpk
btw I did add a method to remove an entry from a channel in Aperture already, since I found myself wanting to remove things occasionally https://github.com/indieweb/microsub/issues/25
#
Loqi
[aaronpk] #25 Add method to remove entries from a channel
#
aaronpk
hmm [eddie] I keep seeing your "this day on previous years" in my reader. should I not be following your home page but follow https://eddiehinkle.com/timeline/ instead?
#
[eddie]
Ohhh. I thought I removed mf2 from my homepage
#
[eddie]
Yeah, I would suggest following Timeline and with Microsub starting to take off I should probably find a way to suggest that move to people with a follow button at the bottom of my site
#
[eddie]
Ohhh I remove h-feed but not the h-entries I think
#
[eddie]
Because the h-entries are powered by my templates
#
[eddie]
Which are used everywhere lol
#
aaronpk
i've had that problem too lol
#
[eddie]
Yep, tricky parsers
#
aaronpk
I ended up adding a parameter to my templates called "context" where I can tell the template in what context it's being used so it can turn on and off features like mf2 markup
#
[eddie]
Ahhhh that’s smart. I’ll have to add that to do
#
[eddie]
It makes me wonder, I know Bridgy has a link that allows you to point to your firehouse. I wonder if Microsub following should check for an optional link that points to a user’s primary feed page, that people could put on their identity pages
#
aaronpk
aperture kind of does that already
#
[eddie]
Oh yeah?
#
aaronpk
oh not quite
#
aaronpk
right now it looks for rss/atom feeds linked from the input URL https://media.aaronpk.com/Screen-Shot-2018-03-11-11-02-50-e4qQztVyQU.jpg
#
aaronpk
it would take another http request per link to do that for additional rel=feed URLs
#
aaronpk
bridgy uses that already
#
[eddie]
Yep, that’s how I direct Bridgy to my proper feeds
#
aaronpk
the whole search/preview thing in microsub is supposed to allow that kind of discovery
#
[eddie]
That’s true!
#
aaronpk
rather than assuming the thing the user enters is the exact URL to be followed
#
[eddie]
That makes sense. That something I still want to add pretty badly, the ability to “follow” from safari using indigenous’ share sheet and see a preview of the pages posts and then tell which channel to add it to
#
[eddie]
Is all of that working on Aperture’s side?
#
aaronpk
that'd be sweet
#
aaronpk
yeah! together uses it!
#
[eddie]
Excellent! One of these days I’ll have to get around to that. Because I definitely find myself hitting a hesitance in following things that I find on my iPhone because it feels combersome
#
[eddie]
I typically add the url to my to do list
#
aaronpk
clever haha
#
Loqi
rofl
#
[eddie]
aaronpk: I think you’re right, though! I think I’m gonna have to try that context thing, because if I can remove mf2 from my historical and featured posts, I could re-add the h-feed for the today posts.
#
aaronpk
that'd work!
#
[eddie]
It used to be that my homepage wasn’t good for following because it was essentially articles and events, but now that it shows almost all the posts of the day it’s actually a GREAT page to follow
#
[eddie]
The only thing it doesn’t show is media posts (watch/listen) and are/drank posts
#
aaronpk
that seems reasonable haha
#
[eddie]
Which would typically be followed anyway
#
[cleverdevil]
Oh, [aaronpk] I forgot to tell you. I put up an initial pass at JSON Schema for mf2 — https://github.com/cleverdevil/microformats2
#
Loqi
[cleverdevil] microformats2: Validate Microformats2 JSON with JSON Schema
#
sknebel
snarfed: ok, just wasn't sure due to the mf2 properties which as Kartik said aren't/shouldn't be parsed
#
[eddie]
*not be follow
#
[cleverdevil]
Would love some feedback 😀
#
aaronpk
[cleverdevil]: wait didn't we already talk about this?
#
[cleverdevil]
We talked about my earlier attempts. But now it actually works and has tests 😀
#
aaronpk
ah gotcha, last time it was just a gist, right
#
[cleverdevil]
Right now it just has tests for the samples on the wiki.
tantek joined the channel
#
[eddie]
I’m thinking once some of the more immediate things are done (like Indigenous 1.0 is released), I think to build out more Microsub servers, I’m going to build an Amazon AWS based Microsub Server, using lambda functions, s3 and their db services. I’m guessing with Bridgy and (maybe woodwind?) such we have a lot of python parsing code, which lambda supports. That would definitely help to spread out the Microsub standard a bit
#
[eddie]
Parsing is my biggest concern, but if I’m able to utilize some pre-existing python code, that would make things easier
eli_oat joined the channel
#
[cleverdevil]
Awesome, let me know if you need help [eddie].
#
[cleverdevil]
I'm heavily using AWS now 😄
#
[cleverdevil]
(I'm also a decent Python programmer, so I can help out!)
#
[cleverdevil]
I am working on a side project, which is a tiny Micropub server in Python that stores everything in an embedded JSON database.
#
aaronpk
I highly recommend getting a solid grasp on parsing done first
#
aaronpk
the only reason I was able to make such quick progress on Aperture was because of all the work I had done on XRay first
#
[cleverdevil]
I think that's good advice, to be sure!
#
aaronpk
(that was to eddie)
#
[cleverdevil]
(Which is why I'm sticking with the Micropub side for now)
KartikPrabhu joined the channel
#
aaronpk
the major aspects of that being: HTML sanitization, the "content vs name" normalization step, and dealing with all the variations of how a list of h-entrys can be represented as a feed
#
[cleverdevil]
Or, eddie could just deploy an instance of XRay and use it as a webservice.
#
aaronpk
that's not the worst idea to bootstrap
#
aaronpk
of course it would be nice to have more implementations of that too, but at least that part is relatively standalone and could be replaced later
#
[cleverdevil]
I'm really digging on the idea of separating out as many functions into separate web services at the moment.
#
[cleverdevil]
Having everything in one big, monolithic thing isn't the best, IMO.
#
aaronpk
i've had surprisingly good luck with that approach
#
aaronpk
I was kind of worried about overdoing the whole "microservices" thing, but it's ended up working quite well for a few years now
#
[cleverdevil]
(FWIW, one of the reasons I am building out this JSON Schema for MF2 JSON is that it enables you to use the AWS API Gateway and include validation).
#
[cleverdevil]
At least... theoretically.
[snarfed] joined the channel
#
[snarfed]
debugging/introspection can suffer, and performance for anything latency sensitive, but architecture and maintenance wise, microservices can definitely work
#
[cleverdevil]
Indeed, and the latency problem can be reduced by enabling different services to be deployed together inside a single process.
#
[cleverdevil]
(With local calls)
#
[snarfed]
.... which then reduces some benefits of decoupling, but agreed
[kevinmarks] joined the channel
#
[kevinmarks]
Showing multiple likes on a post sounds like h-review-aggregate
#
Loqi
[kevinmarks]: [jeremycherfas] left you a message 12 hours, 56 minutes ago: Bake
#
aaronpk
except likes are not reviews
#
[kevinmarks]
Well, the way nuzzel does it makes them more like reviews. I suppose you'd need dislikes to aggregate a rating, yes.
#
mylesb.ca
created /User:Mylesb.ca (+74) "Created page with "Hi, I'm <span class="h-card">[https://mylesb.ca Myles Braithwaite]</span>!""
(view diff)
[eddie] joined the channel
#
[eddie]
[cleverdevil] that’s awesome! Definitely will keep you updated as I think things through with that. I was at a work conference this week and was hearing about the ways my work is using AWS, and then when my Jekyll running on my cloud server made my Aperture and Micropub endpoints stop working for a couple minutes I realized my single server running isn’t the best, and I realized it would be great to maintain a small cloud server but to host
#
[eddie]
AWS components. At least for awhile, it’s something that’s peaked my interest
[cleverdevil] joined the channel
#
[cleverdevil]
cattle, cattle, cattle!
#
[cleverdevil]
Yes, I am determined to get away from having a "pet" server eventually 🙂
#
[eddie]
Lol! Yep!
#
[eddie]
Also, in regard to Microsub, it would solve all sorts of scaling problems.
#
KartikPrabhu
what is scaling?
#
Loqi
It looks like we don't have a page for "scaling" yet. Would you like to create it? (Or just say "scaling is ____", a sentence describing the term)
#
KartikPrabhu
what is scale?
#
Loqi
It looks like we don't have a page for "scale" yet. Would you like to create it? (Or just say "scale is ____", a sentence describing the term)
#
sknebel
always a bit uneasy about cloudy stuff due to (lack of) price limits
#
[eddie]
That’s true, it’s a risk
#
[eddie]
But this stuff is so cheap!
#
[cleverdevil]
Understandable, however, its pretty trivial these days to put in restrictions that cause services to stop after a threshold is reached.
#
sknebel
does AWS have that now?
#
[cleverdevil]
Also, yes, its pretty cheap.
#
[cleverdevil]
Pretty much always has, you just have to know how to set it up.
#
[cleverdevil]
Like most things with AWS its... not straightforward 😛
#
KartikPrabhu
cheap in terms of money but not for admin
#
[cleverdevil]
Not hard, just not easy to understand at first.
#
[cleverdevil]
I find it a lot easier to maintain lambdas than to constantly admin a server.
#
sknebel
also: cheap compared to what? E.g. traffic is *insanely* expensive
#
[cleverdevil]
Keep its OS up to date, etc.
#
[eddie]
I’m also in extreme need of an email to feed service. I wasn’t sure how to handle incoming email like that. But I think my first AWS project is going to be using amazon’s email service to allow emails sent to specific random id strings to be displayed as part of an h-feed or RSS feed via a url of the same id
#
sknebel
been considering lambda for backend-ish tasks too, since that is cheap and a very interesting model, but other things don't seem that attractive *to me*
#
[cleverdevil]
Ah, an *inbound* email to feed service.
#
[cleverdevil]
Yeah, that's pretty easy with AWS.
#
[eddie]
Yeah, inbound email to feed. And definitely I was reading up on it last night and you basically just send all emails for a domain to SES and then set up a catch all to a lambda function
#
[eddie]
Then API gateway to lambda that reads the feed
#
[eddie]
Earlier I was trying to figure out how to set it up using Node.js on my server and I wasn’t getting anywhere with it
#
aaronpk
haha I also want an email-to-feed service
#
Loqi
aaronpk: lol
#
aaronpk
was just thinking about how i'd do that myself. it's not a lot of traffic so would be a pretty small component to add to my server, as long as I had some other email provider accepting the email.
#
aaronpk
TIL mailgun runs a postbin service http://bin.mailgun.net/
#
aaronpk
I must say, while attempting to subscribe to a bunch of people, it's very disheartening how poor the mf2 markup on wordpress blogs is, especially compared to the same wordpress sites' XML or JSON feeds.
#
aaronpk
it's getting to the point where i'll recognize a wordpress site based on the types of feed options I see when subscribing from Together, and I'll choose the JSONfeed or XML feed over the microformats page because I know the microformats on it won't give a good result at all
[snarfed] joined the channel
#
[snarfed]
but maybe not anymore :(
#
[snarfed]
yup very true. built in mf1 is ok, not mf2. really only the sempress theme has halfway decent mf2. hence thank god for backcompat, even for me... at least historically
eli_oat joined the channel
#
GWG
aaronpk: That's because no one knows what microformats are. They just keep copying the incorrect implementation
#
GWG
And when I update a theme, even I miss things
#
Loqi
misses things too
AngeloGladding and [eddie] joined the channel
#
aaronparecki.com
edited /Micropub-brainstorming (+1) "rephrase to third person"
(view diff)
tantek joined the channel