#dev 2019-02-02

2019-02-02 UTC
[kevinmarks], [jgmac1106], [chrisaldrich] and [davidmead] joined the channel
#
[jgmac1106]
I don't get much detail (wordpress.com) but it's a nice feed of all my student posts in one place where I can quickly reply
#
[jgmac1106]
Oops wrong screenshot
#
[jgmac1106]
Will ask for volunteers to try different themes once I know who gets their sea legs faster
tw2113, [chrisaldrich], KartikPrabhu, [xavierroy], snarfed, leg, [asuh] and frankmeeuwsen joined the channel; frankmeeuwsen left the channel
#
frankmeeuwsen
Goodmorning indieweb
#
frankmeeuwsen
Time to start the day with a Jekyll problem and RSS. I already posted it on Stack Overflow to get going. https://stackoverflow.com/questions/54491107/local-jekyll-doesnt-generate-proper-rss-feed
frankmee_, frankmeeuwsen, tglobe, [jgmac1106] and [kevinmarks] joined the channel
#
[jgmac1106]
Does a tool exist that can take json and convert to mf2
#
[jgmac1106]
[kevinmarks] something unmung can do?
#
[jgmac1106]
I think it worked(ish)
#
[jgmac1106]
I lose the source url
#
[kevinmarks]
Hm. What kind of json is the question.
#
[kevinmarks]
Json does not define property names
#
[kevinmarks]
I suppose I could make every object into a h-* and every property into a p-*
#
[kevinmarks]
A bit like xoxo does
#
[jgmac1106]
is the raw json for one annotation but I am thinking I would do nested h-feeds, with each source being its own h-feed and each annotation an h-entry
#
[kevinmarks]
So that's a specific format. You could do the kind of thing unmung does by defining an html template.
#
[kevinmarks]
A lot of the unmung things are "fetch json from somewhere, put it through a jinja2 template with conditional logic in"
#
[jgmac1106]
What is jinja2?
#
Loqi
jinja2 is a python-based templating language for HTML with rich macro support that adds {% %} syntax https://indieweb.org/jinja2
#
[kevinmarks]
The node version of jinja is nunjucks
#
[jgmac1106]
ohh I use nunjucks all the time
#
[kevinmarks]
So we could make a toolkit for these kind of things on glitch
#
[kevinmarks]
Look at the unmung code, there are a bunch of templates that you can probably convert to nunjucks fairly easily
#
[jgmac1106]
so I just need to make a template for what an annotation in an h-feed would look like to start? I am thinking nested h-feeds though know everyone not a fan but I see the entire feed as an h-feed, and the each document as an h-feed, with each annotation as an h-entry
#
[jgmac1106]
What is unmung?
#
Loqi
Unmung is a service that turns Atom and RSS feeds into h-feeds https://indieweb.org/unmung
#
[jgmac1106]
the other idea would be to use p-category to group annotations but I think children makes the most sense
#
[jgmac1106]
"try to stop tantek exploding" best commit message ever
#
[kevinmarks]
You can use macros to build up more complex templates, but then you are writing code in nunjucks/jinja2
#
[jgmac1106]
yeah, today goal will be just to map the annotations, start there to get my brain around it..the rss to hfeed wasn't bad at all...got close
#
[jgmac1106]
and then make a mess of a code for long enough the judell takes sympathy and finishes project for me, he always said if we just showed him what an h-feed of annotations looks like he would add to export tools
#
[kevinmarks]
I use feedparser in the middle to get uniform json from feeds, and a bit of python to transform dates
#
[jgmac1106]
kevinmarks+=
#
[jgmac1106]
kevinmarks++
#
Loqi
kevinmarks has 11 karma in this channel over the last year (33 in all channels)
tglobe joined the channel
#
@jgmac1106
↩️ @toolness making progress on the webmention badges issued my first build set as an h-feed:http://edu407.jgregorymcverry.com/badges/helloworld.html the criteria and evidence deliberately mismatched for a training video (https://quickthoughts.jgregorymcverry.com/s/25iB2k)
(twitter.com/_/status/1091678993324171264)
#
[kevinmarks]
You could map the TextQuoteSelector to a fragmention
tglobe_, swentel, davy__, davy_, [schmarty] and barpthewire joined the channel
#
[jgmac1106]
What is fragmention?
#
Loqi
A fragmention is an extension to URL syntax that links and cites a phrase within a document by using a URL fragment consisting of the phrase itself, including whitespace https://indieweb.org/fragmention
#
[jgmac1106]
all it is just ## insteasd of one in an id?
#
[jgmac1106]
then each annotation wouldn';t need to be an h-entry and each doc could be which would be better
#
[jgmac1106]
question on the example on this page: https://github.com/chapmanu/fragmentions why does the ##pursuit jump to <strong>?
#
Loqi
[chapmanu] fragmentions: A proposal and polyfill to use ## double-hash anchors as links to individual words or phrases in a document.
#
[jgmac1106]
duh the word pursuit
barpthewire, tglobe_, tglobe and [kevinmarks] joined the channel
#
[kevinmarks]
Not ## any more
#
[kevinmarks]
One # then words separated by %20
#
[kevinmarks]
As id can't have space in so that is enough to disambiguate
#
[jgmac1106]
So it's just a normal ID with the text segment,alright.
#
[jgmac1106]
What would you use to link back to the document a u-url?
[tmiller] joined the channel
#
Zegnat
[kevinmarks], any browser extension you recommend for enabling that?
#
[jgmac1106]
@zegnat if I can figure out how to take the html or json export and map it to mf2 just use hypothesis...though their terms of service require every annotation to be in public domain...if that matters
#
Zegnat
I was thinking specifically of fragmentions
#
Zegnat
The one you linked by Jonathan seems to use the ##this+specific+text+ notation. [kevinmarks] implies we settled on a better notation.
#
[jgmac1106]
Didn't Karthik make an extension>
#
[jgmac1106]
yeah#this%20specific
#
Zegnat
checks the indieweb page again
#
[jgmac1106]
i am there now
#
[jgmac1106]
funny thing is I am actually now trying to take something that uses RDFa and get it into HTML with mf2
#
Loqi
[kartikprabhu] fragmentioner: UI for generating the fragmention link to some selected text
#
Zegnat
Hmm. /fragmention only links to Jonathan’s extension. So I guess we don’t have an implementation for enabling fragmentions on websites that do not themselves use JS for it?
#
[jgmac1106]
but that is just for your own site correct
#
[jgmac1106]
oh yeah you are no JS so that is tough....could always try ctrl+c
#
Zegnat
[kevinmarks], is the wiki outdated? https://indieweb.org/fragmention#URL_encoding says to use + rather than %20
#
Zegnat
[jgmac1106], the problem is not *creating* the fragmention. The problem is if you give me a fragmention, my browser will not jump to it if the page I visit doesn’t support it. So I was hoping for a browser extension.
[schmarty] joined the channel
#
[jgmac1106]
yeah I didn't even think it was possible for a browser to jump to page that doesn't support it...that is cool it works this way
tglobe joined the channel
#
Zegnat
Lets see how quickly I can learn how to use Docker in this one afternoon. I need to get my local dev environment back up and running
#
[kevinmarks]
Hmm. I'll check the wiki when I'm on my computer. I thought we edited the old stuff out
[tantek] and [schmarty] joined the channel
#
[jgmac1106]
can you nest <details>
#
[jgmac1106]
I guess I can use seperate, ones and style them over a bit if they are in a thread, probably better
#
Zegnat
I don’t think they ban nesting
#
Zegnat
Double checked spec, details element can contain any flow content, and it itself classifies as flow content. Nest away.
#
aaronpk
Sounds like a fun opportunity for some weird internet art
#
Zegnat
imagines a tonne of details elements with a back-end syncing script like aaronpk’s pixelart header
#
[kevinmarks]
Yes, they nest well if you want an outline style layout
#
[kevinmarks]
Chrome shows an arrow by default, Firefox doesn't, so you may need to style it a bit.
tglobe and tglobe_ joined the channel
#
[jgmac1106]
okay will go back and nest away
#
[jgmac1106]
was trying to think how you display reply to annotations: https://gist.github.com/jgmac1106/726a8399dce96e28e0ae9cfd1ad288c3
#
[jgmac1106]
that is my first attempt, interesting though as this would cause an h-entry to be nested in an h-entry is that wrong?
#
[jgmac1106]
then the next question do the js fragmention tools work with: https://mozilla.github.io/pdf.js/?
#
[jgmac1106]
if not isn't much of a point for me to do this as everything annotated is a pdf
#
Zegnat
If there are no browsers that support it, then no PDF readers inside browsers are going to support it.
#
voxpelli
is diving into Dat
#
Zegnat
Hi voxpelli! :D
#
Zegnat
What is Dat?
#
Loqi
Dat is a protocol for transferring files peer-to-peer https://indieweb.org/Dat
#
voxpelli
Hi Zegnat!
#
[jgmac1106]
no the thing I really want to start experimenting with is to see if I can set dispaly sizes using some kind of css animation timer and then I could use media queries to do all kinds of weird animations cell by cell, making things as big or small, overlaying grids.....I have no idea if you can do this but I see these really cool animations in my head of stuff growing and collapsing
#
Zegnat
voxpelli, anything triggered your dive into Dat?
#
voxpelli
Zegnat: I like the idea of content delivery not having a single point of failure + the Beaker Browser is fairly cool
#
[jgmac1106]
little bit of dis-in-dat
#
voxpelli
Zegnat: and right now I'm hanging out in Copenhagen with two of the Dat developers
#
[jgmac1106]
I love idea of Beaker as a fully remixable read/write experiment that is what I think is so cool
#
[jgmac1106]
read/write environment, just taking any page and doing what you please,..cool playground
#
Zegnat
Gotcha! I think we have had several Dat–IndieWeb discussions before, looking forward to whatever you come up with from your dive
#
voxpelli
I'm thingking that eg. WebMention should work fairly well out of the box
#
voxpelli
just use dat: links instead of http: links
#
[jgmac1106]
..well that used to work
#
Zegnat
voxpelli, the challenge would be verification, I imagine? Not only does the webmention endpoint need to be able to fetch dat: links, they also need to be available to the endpoint at the time the wm was recieved for verification.
#
voxpelli
Zegnat: yeah, it would need to support dat:, but if it doesn't, then it just will skip the lookup. And a dat site should be as available as any other site, else its kind of a fail
#
Zegnat
I haven’t really looked into how Dat does its discovery, so I don’t actually know if that is a bottleneck in anyway. Maybe I am confused and it isn’t :)
#
aaronpk
Someone at IWS made progress on that last year
#
aaronpk
there should be a video from the demos
[Rose] and snarfed joined the channel
#
[jgmac1106]
Just thinking nested details and summary would be a nice display for threaded webmentions
[kevinmarks] joined the channel
#
[kevinmarks]
There are dat proxies
#
[kevinmarks]
I have a dat page, and dat slides for a talk
#
[kevinmarks]
Add webmention to fritter?
#
voxpelli
Would be cool 👍
#
voxpelli
What I'm trying to figure out right now is how to build a dat-version of my site similar to how I build my site at GitHub Pages / Netlify today
#
[kevinmarks]
I pointed dat at my local git dir of the site
[metbril] joined the channel
#
[metbril]
Bummer. I juist noticed that my Grav re-runs certain required event hooks for EVERY page, when I change only one. This means that the CMS is not scalable...
#
Zegnat
[metbril], if I remember correctly, Grav is very aggresive at invalidating its cache and rebuilding it.
snarfed joined the channel
#
[metbril]
Yep. And when I really start posting my life events and status, the number of posts will rapidly grow.
#
[metbril]
That's not a very comforting outlook.
#
[metbril]
To be investing in the platform this much.
#
[metbril]
Switching again is no fun. I like my content in plain text. Wordpress and known have databases. Jekyll and Hugo have limitations regarding automatic building. This is going to be hard.
#
aaronpk
Yeah it's a challenge for sure
#
aaronpk
I like the hybrid approach where the content is stored in plain text but is rendered on the fly
#
aaronpk
Kirby works like that, as well as my site. There are others but I can't remember the names
DenSchub joined the channel
#
[metbril]
The basic concept of Grav is just that. But planning a growing site (in the number of posts that is) is challenging. If GitHub hosting would allow (easy) saving webmentions and micropub, that would be a big step forward. Micropub from voxpelli does it, but it needs heroku which is no-ssl for the free plans. Choices, choices...
#
petermolnar
this was one of the reasons that put me off grav: the cache invalidation included image regeneration, which hogged up my server for half an hour
#
voxpelli
[metbril]: you should be able to at least use https though with a free Heroku setup, if you use an herokuapp subdomain
#
voxpelli
Or you can host it elsewhere, there is a PR for hosting it on other providers and I welcome more
snarfed, snarfed1 and [tantek] joined the channel
#
Zegnat
For anyone looking into creating “seemless” data back-and-forths from their website to the backend, this looks interesting: http://websocketd.com/
#
jacky
> It's like CGI, twenty years later, for WebSockets
#
jacky
bwahah
[cleverdevil] joined the channel
#
[cleverdevil]
So, I have made some great progress on a NNCaaS today.
#
[cleverdevil]
Features: lookup "pseudonyms" (as I call them) based upon a domain name, cache for domains with auto-timeout of the cache after a configurable period, the ability to search h-card "name" declarations.
#
[cleverdevil]
Oh, and the ability to send in content in a special format and have it automatically parsed and re-configured to various targets.
#
[cleverdevil]
It looks for a "mention" of the format `@{somedomain.com}` and then will replace all instances of that with all of the different variants by syndication target automatically, in both plain text, and HTML.
#
[cleverdevil]
I'll try and deploy it in a bit if anyone wants to play with it.
#
gRegorLove
What's NNCaas?
#
gRegorLove
oh, nickname cache
#
[cleverdevil]
I originally decided to use MongoDB, but it looks like its going to be a lot cheaper for me to run if I just piggyback on my existing MySQL RDS instance, so I am porting it over now.
#
[cleverdevil]
Won't take too long 🙂
#
[cleverdevil]
Once its done, I'll deploy and let people poke around!
#
[cleverdevil]
Meh, I'll just run a little local MongoDB on one of my EC2 instances.
#
[cleverdevil]
Good enough 🙂
snarfed and [asuh] joined the channel
#
[asuh]
Let me know if I should update or make clear anything that isn’t right or doesn’t make sense
#
Loqi
[asuh] #2395 Feature suggestion: implement Micropub for third-party apps
tantek, snarfed and [tantek] joined the channel
#
[tantek]
asuh++ looks great! Definitely worth thumbs-upping. [aaronpk] perhaps you can add a comment too.
#
Loqi
asuh has 1 karma in this channel over the last year (6 in all channels)
#
[cleverdevil]
You can try any domain that has rel-me links and, optionally, an h-card with a 'name' property.
#
[cleverdevil]
It searches against full word terms, though, not partial.
#
[cleverdevil]
You can also send an HTTP POST to https://pseudonym.cleverdevil.io/content/format with a "content" parameter and it'll auto replace mentions
snarfed joined the channel
#
[cleverdevil]
`http post https://pseudonym.cleverdevil.io/content/format content="Hello @{eddiehinkle.com}, I hope you're well."`
#
[cleverdevil]
results in:
snarfed joined the channel
#
[cleverdevil]
With that, I am taking a break 🙂
[eddie] and oodani joined the channel