#dev 2019-02-10

2019-02-10 UTC
[chrisaldrich], snarfed, benwerd and [jgmac1106] joined the channel
#
[jgmac1106]
so building a store for this site hittps://kevoglass.net and using snipcart really like that it fetches all your product data from the HTML...ain't much reason to but will add h-product so if anyone ever does do IndieWeb transaction processing site will be set
#
Loqi
[Kevo Glass] New Wall Dragon Series
#
[jgmac1106]
...and it looks like fix an h-card
#
[tantek]
[jgmac1106] h-product is not used much and could use your feedback on a real world example like that!
#
[jgmac1106]
checkout how snipcart parses HTML and puts that into their online store: https://docs.snipcart.com/configuration/product-definition
#
[jgmac1106]
basically it would have to be that, I publish a product and it can be parsed and used in the store, connected to inventory backend, etc...
#
[jgmac1106]
I still think the credit card processors will own the day when it comes to small business websites
#
jacky
yeah as long as we rely on them for online transactions
#
[jgmac1106]
I have to style it more but here is the template I am thinking for each product: https://kevoglass.glitch.me/Prodcuttemplate.html
#
[jgmac1106]
jacky yeah you know I want to connect with the indie art community like you
#
[jgmac1106]
but jacky this is actually a barter deal. I trade for food'
#
[jgmac1106]
they own a farm that is kind of a quasi co-op of farms in area, I build website get local organic meat and veggie
tw2113 joined the channel
#
aaronpk
aperture just passed 2 million entries stored
[tantek] joined the channel
#
[tantek]
worth blogging about?
benwerd joined the channel
#
jacky
aaronpk: I'm guessing the largest site of sources is Twitter?
#
aaronpk
good question
#
aaronpk
guess it depends on what you're counting. twitter.com compared to other domains? twitter content vs non twitter content?
#
jacky
hmm right
#
jacky
I was thinking the former (twitter.com posts vs organic posts)
#
jacky
twitter.com wouldn't include replies
#
aaronpk
I unfortunately dont have an easy way to count that
#
jacky
what can you gleam? I'm def curious
#
jacky
esp since I'm considering having my microsub server do stats like this
#
jacky
sqlite might not be the best idea for this
#
aaronpk
I would just need to add some more indexes in order to count stuff like that
[tantek], nloadholtes and KartikPrabhu joined the channel
#
@EddieHinkle
↩️ Great sounding plan! I did a website transition with old webmentions on the back burner. It turned out fine, eventually I transitioned them and I didn’t really miss them in the mean time. (https://eddiehinkle.com/2019/02/10/1/reply/)
(twitter.com/_/status/1094483074757394434)
#
jacky
gotta make sure to note to remove self-referential web mentions from one's notification feed
[eddie] joined the channel
#
[eddie]
It’s funny when I read an IndieWeb post on my reader and reply in my reader with no realization that the Indie Post is syndicated to twitter, only realizing it when my site auto-syndicates my reply to twitter as well! 😆
#
[eddie]
Wow the place the tech set ups are getting to! :star-struck:
KartikPrabhu and DenSchub joined the channel
#
jacky
deploy times for koype are at 8 mins
#
jacky
not great
#
jacky
I can improve it but it's not a big deal
#
jacky
not yet at least
#
jacky
that said, tomorrow's my "road" day to use indigenous solely for my site
cjwillcock and [tantek] joined the channel
#
[tantek]
That’s some pretty sweet automation right there Eddie
barpthewire and [jgmac1106] joined the channel
#
[jgmac1106]
aarponk++
#
[jgmac1106]
for the 2 million stores in apertutre, we should do a check in all the stats we can, aperture, webmentions, indieauth
#
Loqi
aarponk has 1 karma over the last year
#
jeremycherfas
Loqi, you really shouldn't be so accomodating.
#
[jgmac1106]
oooh look at that the Karma clock must have reset yesterday
#
[jgmac1106]
Guess 02-09 is the Karma new year
#
[jgmac1106]
aaronpk++
#
Loqi
aaronpk has 80 karma in this channel over the last year (255 in all channels)
#
[jgmac1106]
okay better
#
[jgmac1106]
still makes me wonder when Karma new year us
#
[jgmac1106]
Would there be any point in adding a tutorial to wordpress.com on how to add an h-card?
[kevinmarks] joined the channel
#
[kevinmarks]
Foursquare used to show you a point scatter plot for each venue of where people's phones said they were wwhe checking in
#
[kevinmarks]
One thing they do is order venues by the number of checkins closest to where your phone says, rather than actual coordinate.
#
[kevinmarks]
Which helps smooth out the anomalies between GPS, WiFi and cell locations
#
[kevinmarks]
But you need a lot of checkins to do that
[jgmac1106] joined the channel
#
[kevinmarks]
Has anyone looked at https://www.gatsbyjs.org/ - claims to be a react based ssg
#
Zegnat
What is Gatsby?
#
Loqi
Gatsby is a React-based static site generator with live preview https://indieweb.org/gatsby
#
[kevinmarks]
[tantek] re: hosting - could you host on a node backend as cassis is agnostic? Or would you need more wrappers?
barpthewire and [jgmac1106] joined the channel
#
[jgmac1106]
kevinmarks you know blogger well would there be any point in telling a blogger user who added webmentions with bridgy to add an h-card to their site?
#
jeremycherfas
I'm trying to wrap my head round a problem that is currently preventing me from working on micropub for my Grav site. It is all to do with github and going back and forth between live site, github and local development site.
#
jeremycherfas
At the moment, I tend to write locally, push a commit to github, and then there is a webhook on the live site to which github pushes any changes.
#
jeremycherfas
If I want to micropub direct to the live site, it is simplest if those new posts go straight to the live site. That puts the live site ahead of github and the local site. There is a grav plugin that aims to synchronise between live site and github, but last time I tried that I made an awful mess of everything.
#
jeremycherfas
So here's my question (finally). Can I simply commit and push once a day from the live site back to github, and then pull from github to my local site when I want to tweak things?
#
jeremycherfas
That way, automated posts, mostly notes of one sort or another, would go direct to live site. More considered writing would take place locally. Commits from live to github and from local to github would keep everything in sync, I hope.
#
jeremycherfas
Does that seem workable?
#
Zegnat
jeremycherfas, sounds workable. Though as soon as your live site gains the ability to push to GitHub, why trigger it only once a day rather than directly after every micropub request? If you do it after every micropub it is also less likely to become out of sync.
#
jeremycherfas
Because I am not entirely sure how to trigger the push after the micropub request.
#
Zegnat
I imagine either Grav has some sort of event hook that triggers for a new item having been created, or the micropub code itself will have to trigger it.
#
Zegnat
Though at that point it is really about your particular setup, and not sure there is a general right answer
#
jeremycherfas
Grav does have such an event hook, yes. I believe that to use it would require the micropub endpoint to be a plugin, as metbril is working on, rather than "pure" PHP that [Rose] has.
#
jeremycherfas
I'm always nervous about automating things I don't fully understand.
#
Zegnat
Doing some good ol’ “here is an accessibility feature you all forget about” again, because that’s what my mind got dragged into today: https://twitter.com/martijnvdven/status/1094603989268738048
#
@martijnvdven
I was just rereading https://axesslab.com/title-texts-suck/ (probably via @adactio) and wanted to add an oft forgotten “suck”: if you up your cursor size on macOS (Accessibility → Display) it will cover up title text, easily covering up the first word. Not limited to browsers either. https://pbs.twimg.com/media/DzDQKDaWkAEhR0p.jpg
(twitter.com/_/status/1094603989268738048)
#
jeremycherfas
I sort of understand how webhooks allow github to push to a site. I don't yet know how to push from a site TO github.
#
jeremycherfas
But I'm reading.
#
Zegnat
I think for the to-github they may have an API. But you might be stuck on just calling git commands from within PHP if their API doesn’t do what you want.
#
sknebel
the latter is what the gitsync plugin does
#
jeremycherfas
Ah. So I should look in there to see how they do it.
#
jeremycherfas
I think what confuses me most is whether the live site is another remote, as far as github is concerned.
[schmarty] joined the channel
#
[schmarty]
jeremycherfas: every git clone can act as a remote for another. whether github considers a given clone at all depends on what you are trying to accomplish.
#
jeremycherfas
Thanks [schmarty]. I can see that my remote can fetch from and push to origin, so that's good.
#
Zegnat
In this case both your local clone (on your computer) and the server clone (live website) will probably refer to the version hosted on GitHub as their remote. Other than that, I don’t think you need to define any more relationships between them.
#
Zegnat
feels very strongly that GitHub has not helped in making the ideas of git more accessible to people
#
jeremycherfas
Yup. Both local and live can fetch and push. Excellent.
#
Zegnat
Especially remotes I have found that people (incl me) coming into git from GitHub have a hard time with, because GitHub kinda makes it seem like there is some sort of magically canonical repo that they host.
#
sknebel
agreed
#
sknebel
hm, the git-sync plugin seems to be intended to do all this stuff like automatically sending changed pages to github etc. curious what problems it caused exactly
#
jeremycherfas
Possibly because I was even more confused about remotes and origins, I may have set it up wrong. But it seemed to create a whole lot of new files and folders that were not there originally. Maybe I should just try again. The instructions are geared towards creating entirely an entirely new origin. I think you are right, sknebel. I should look at it again, more carefully.
#
sknebel
you could of course also intentionally choose a simpler setup you're more comfortable with, only syncing once a day or only syncing if you tell it to, so you have a better perspective on what's happening
#
sknebel
not being sure what's going on is bad when it's something so central
#
jeremycherfas
Sure. But the plugin does the hefty lifting. If I can work out more or less what it is doing, I will try again.
#
@bridgetstewart
I've been trying to follow along with Max's code examples for how to get webmention sends working with Twitter. Still working out kinks. https://www.bridgestew.com/notes/2019-02-08-22-45/
(twitter.com/_/status/1094612412119040001)
#
jeremycherfas
!tell sknebel I think this issue is similar to the behaviour I saw https://github.com/trilbymedia/grav-plugin-git-sync/issues/117
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[ScottHamper] #117 GitSync 2.0.0 Adding Untracked Files
#
sknebel
interesting
#
Loqi
sknebel: jeremycherfas left you a message 1 minute ago: I think this issue is similar to the behaviour I saw https://github.com/trilbymedia/grav-plugin-git-sync/issues/117
#
sknebel
that seems like an odd way of doing things
[davidmead] joined the channel
#
jeremycherfas
That I cannot say :) But the fact that it is unresolved is scary.
#
sknebel
it seems like it's very much designed for "set it up through the plugin, then it'll work" and not to work with other setups
#
jeremycherfas
I agree. And the walkthrough assumes you will create a new repo for it to use.
#
[jgmac1106]
I was just going to use a widget
[kevinmarks] joined the channel
#
[kevinmarks]
[jgmac1106] yes, editing blogger template to add h-card is definitely doable.
#
[kevinmarks]
Css like I need to fix the image
#
[kevinmarks]
I have an mf1 hcard lol
#
[jgmac1106]
yeah then we will have a wordpress.com, a blogger.com, wordpress.org, and Known tutorials on Getting Started
#
[kevinmarks]
yes, an HTML/CSS widget works
#
jeremycherfas
Tried again with the git-sync plugin for grav and although it seemed to be working, the live site now reports that mytheme does not exist and absolutely nothing will load. Here's hoping git can save the day.
tbbrown joined the channel
tw2113 joined the channel
#
jeremycherfas
Disaster undone. That gitsync plugin for Grav does a whole lot of things I do not begin to understand, like deleting all themes except one, and that's not the one I use. Took forever to get back to where I was, but I'm there now.
[tantek] and [tmiller] joined the channel
#
sknebel
jeremycherfas: then we clearly need to figure out something more direct for your site
#
@miklb
Just had a thought. I know you can run arbitrary Jekyll plugins in a GitHub action–I bet you can send/receive webmentions too! (https://miklb.com/blog/2019/02/10/4719/)
(twitter.com/_/status/1094672976925069312)
#
jeremycherfas
Agreed. I think manual pushes might be the way to go, at least to begin with.
leg joined the channel
#
jacky
bruh aaronpk okay I totally get it now
#
jacky
I've been wrestling with jsonfeed, atom and h-feed for webmention feeds
#
jacky
and like h-feed wins everytime
#
jacky
it's a lot easier to write and parse out (and I ended up writing utility classes to extract common bits)
[jgmac1106] joined the channel
#
Loqi
h-feed has 1 karma over the last year
#
GWG
I just wish people wouldn't keep forgetting the h-feeds in their feeds
#
jacky
like linking to it or just having a h-feed to begin with?
#
jacky
like at https://v2.jacky.wtf/ I show the more recently non-reply entry and then link to the whole feed
#
jacky
has anyone seen https://getstream.io/ before?
#
jacky
Got a new visit from their RSS reader https://getstream.io/winds/
#
Zegnat
I have seen it shown off on HackerNews, I think
#
GWG
Jacky, having a page of h-entrys without them being wrapped in an h-feed
#
jacky
oh :( :(
#
jacky
re: timestamps, I did fix it for my event rendering https://v2.jacky.wtf/post/91a264de-be63-46f0-ab98-270c7736ba5a
#
Loqi
Tech & Society Solutions Retreat by Omidyar Network
#
jacky
got a bit of an "effect" to adapt it to the locale formatting of the viewer (if not, fallback to RFC 3339 as it's stored)
#
GWG
Okay, have an error in my theme markup
#
GWG
Need to fix it
#
GWG
There is no authorship data on my new main feed page
dougbeal|mb1, [tonz], [pfefferle] and [jgmac1106] joined the channel
#
@bridgetstewart
I've been trying to follow along with Max's code examples for how to get webmention sends working with Twitter. Still working out kinks. https://www.bridgestew.com/notes/2019-02-08-22-45/
(twitter.com/_/status/1094709568712699909)
tw2113, [jgmac1106] and [kevinmarks] joined the channel