#dev 2018-12-15

2018-12-15 UTC
snarfed, [chrisaldrich], [jgmac1106], eli_oat, iasai and [eddie] joined the channel
#
GWG
Okay. I've gone SI in storing location data for my site. Yay
iasai and [eddie] joined the channel
#
GWG
Instead of having two options, I store in one and convert
#
GWG
I got complaints when I only stored in Fahrenheit
#
kisik21
GWG: you store temperature in kelvins?
#
GWG
I went to celsius.
#
GWG
To do SI currently, I should do Kelvin
#
GWG
I switched to celsius, meters, and kilograms
#
GWG
Give me a minute. I'll see about Kelvin
#
GWG
Interesting
#
GWG
Dark Sky does SI but returns Celsius
#
GWG
Close enough
#
GWG
I'll make everyone but Americans happy.
[tantek] joined the channel
#
[tantek]
eddie, why do you feel you need a PHP framework (rather than "just" using PHP)?
tantek, iasai, mblaney1, mblaney and [eddie] joined the channel; mblaney left the channel
#
[eddie]
tantek: Frameworks help to balance a lot of complexity when balancing available time and effort. Reducer boilerplate as much as possible
#
[eddie]
GWG So what's the in progress project 😁
#
GWG
[eddie]: Our favorite topic to talk about. Weather
#
[eddie]
hahaha!
#
[eddie]
Gotta love the weather
#
Loqi
[eddie]: lol
#
[eddie]
more APIs closing on you?
#
GWG
[eddie]: Well, Weather Underground is gone
#
GWG
But, I arranged a json feed for my weather station without an external service.
#
[eddie]
oh that's very cool! So your website gets the weather from your actual weather station?
#
GWG
[eddie]: Well, I wouldn't mind some advice about that.
#
GWG
If you could help
#
GWG
See, there is an option to use station data, but only in the widget I created. The posts use the post location to find the weather.
#
GWG
Not sure how I would do it otherwise.
#
GWG
It's been getting it via an API where I uploaded it. It will soon get it directly.
[tantek] joined the channel
#
[tantek]
Eddie, perhaps I’m too junior of a PHP developer to “get it” in terms of the value of PHP frameworks :)
#
[tantek]
Though libraries I’m a fan of
iasai joined the channel
#
[eddie]
GWG hmmm, posts should definitely use post location to get the weather but it seems like the “get weather function” should be able to use any data source
#
[eddie]
I would think for a personal weather station maybe you can set a location within settings?
#
[eddie]
So if the posts location is within x meters it uses the station data
#
GWG
[eddie]: I have an idea for a zone feature.
#
[eddie]
tantek: that makes sense. Since I have limited time, I trust that frameworks can do a better job of setting up things like routing and templating better than I could.
#
[eddie]
It’s all trade-offs. I don’t think frameworks are the only way to go, but for my position I think they are definitely useful right now
#
GWG
[eddie]: The zone idea was for privacy originally.
#
[eddie]
GWG: yeah I definitely think some kind of zones would be helpful for setting up personal weather stations.
#
[eddie]
I think that is super helpful as well
#
[eddie]
Double duty!
#
GWG
Well, right now, I'm just smoothing edges. Not sure if I'll write zones today.
#
GWG
I got rain and snow data being stored as part of my weather package.
#
[eddie]
That’s awesome
#
[eddie]
We don’t have lightning storms enough around here, because I would love to add a special lightning feature to my website if in the middle of a lightning storm
#
[eddie]
And I realize that is like first world problems to extreme 😖
#
GWG
I didn't install a lightning detector
iasai joined the channel
#
aaronpk
Think of a framework as an opinionated collection of libraries
iasai and [eddie] joined the channel
#
[eddie]
That’s a good way of phrasing it
iasai, barpthewire and [relapse] joined the channel
#
[relapse]
Finally "finished" moving my blog from being Wordpress to being BitBucket + GitHook + MarkdownParser. Dumb fun static blog.
#
[relapse]
Found the daylerees/kurenai PHP library great for converting a MarkDown document with MetaData into HTML pages.
[kevinmarks] joined the channel
#
[kevinmarks]
In Soviet framework, library calls you.
jeremych_ and [jgmac1106] joined the channel
#
[jgmac1106]
Colin Morris++
#
[jgmac1106]
Collin Morris++
jgmac1106 and [jgmac1106] joined the channel
#
[jgmac1106]
is it considered wrong to have more than one <main> tag on a page, realizing the cards tempalte I started for used <main> so I am using an article and main tag in each h-entry
#
[jgmac1106]
parses fine
iasai joined the channel
#
sknebel
"The HTML <main> element represents the dominant content of the <body> of a document. [...] A document must not have more than one <main> element that does not have the hidden attribute specified" https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main
#
jgmac1106
figured it was wrong….now have some work to do to fix
#
jgmac1106
that bumps the resume….grrrr
#
Zegnat
function inner() { … }; SomePromise.then(inner);
#
Zegnat
jeremycherfas: if your problem is with nesting functions you can totally chose to just define all the functions and just refer to them by name instead of nesting.
#
Zegnat
Is the same as
#
Zegnat
SomePromise.then(function(){ … });
#
jeremycherfas
I started to break things out, creating various objects spearately and only later adding them to the map. Along the way, though, I sometimes lose or add a } or a ) and it becomes a nightmare to find. I think BBedit has ways of identifying missing parentheses, and will investigate.
#
jeremycherfas
When I finsih this paid work.
#
jeremycherfas
That could help. Thanks.
wagle joined the channel
#
Zegnat
Ha, somehow an issue of mine from 2013 got reopened yesterday. And it is about the `ch` unit, which was rediscovered at IWC this year :D https://github.com/mrcoles/markdown-css/issues/5
#
Loqi
[Zegnat] #5 Use CSS3’s ch unit for indenting text.
#
jeremycherfas
Zegnat++ for perseverance (by others)
#
Loqi
Zegnat has 60 karma in this channel over the last year (166 in all channels)
iasai joined the channel
#
jeremycherfas
I also realised that I was getting myself in a right old mess with git by having an origin/dev branch. I really don't need it, unless I am moving from desktop to laptop, because I do it all myself and so only need to merge in master locally. That has simplified my life a bit.
#
Zegnat
I actually do push dev branches, sometimes even feature branches. See them more like an offsite backup by pushing them to e.g. GitHub than something that needs to be shared though
#
jeremycherfas
My problem had been pushing things in an unfinished state.
#
Zegnat
But that’s what git is for :D
#
jeremycherfas
But not necessarily github!
#
jeremycherfas
It was the difference between local and remote that confused me much of the time. And unless I am changing machines, I don't need the remote for anything except master.
swentel, iasai, tantek, [jgmac1106], jgmac1106 and [tantek] joined the channel
#
[tantek]
eddie, routing and templating do sound like good use-cases for frameworks, and perhaps touch on my resistance to them (at least in PHP).
#
[tantek]
routing seems like something you either have to (or might as well - same/similar effort) do by hand the more picky you are about URL_design.
#
[tantek]
templating is definitely a weakpoint in my current code, and yet nearly all the template approaches I've seen are much uglier, or much bigger sources of ugliness
#
[tantek]
per all the documentation on https://indieweb.org/template
#
[tantek]
like I'd rather deal with some amount of copy/paste than an ugly template language and ugly templates
#
GWG
!tell [eddie]: New weather idea for you. Night mode.
#
Loqi
Ok, I'll tell them that when I see them next
#
jgmac1106
[tantek] kind of the reason I just added copy and paste tempalte rather than trying to get a read, listem and watch plugin for Known….will still build them for other peopel but for me seems like a ton of ork just to add -u-listen-of…..should take ten files to add one property to your HTML
#
[jgmac1106]
shouldn't
#
[tantek]
been a while since we've explored that here, and I figure someone somewhere else may have quietly made progress
#
[jgmac1106]
really all I want is a blank box where I can add HTML but all the IndieWeb building blocks are there, would need system for displaying comments...I couldn't build that either
[eddie] joined the channel
#
[eddie]
GWG: what specifics are you thinking of?
#
[jgmac1106]
[eddie] at sunset do to a gradient, at dark go to dark
#
[eddie]
GWG: I’m also tempted to recreate the moon in a night mode, because with my weather I store the moon’s current phase
#
[jgmac1106]
sunrise gradient in other direction
#
GWG
[eddie]: When it is night, your website theme goes from light to dark?
#
[jgmac1106]
oooh stages of the moon and where it would be in sky
#
[eddie]
I have thought of that. I think that needs to be for the visitor
#
GWG
[eddie]: You can detect timezone on a site.
#
[jgmac1106]
ahh good point
#
[eddie]
I don’t think night theme should activate at MY night time 🙂
#
[eddie]
Yeah, exactly. I actually have an itch listed for that
#
GWG
[eddie]: For timezone detection?
#
[jgmac1106]
[tantek] that is a but over my head to help
#
GWG
I have a JS library for that
#
Loqi
[iansinnott] jstz: 🌐Timezone detection for JavaScript
#
[eddie]
For night mode when visitors night time
#
GWG
[eddie]: That is what I was thinking, using GeoIP and such
#
[tantek]
what is routing
#
Loqi
It looks like we don't have a page for "routing" yet. Would you like to create it? (Or just say "routing is ____", a sentence describing the term)
#
[tantek]
Eddie ^^^ perhaps you could define by the benefit you get from frameworks that do routing for you?
iasai joined the channel
#
[jgmac1106]
Is there rule a for embedding h-feeds in an h-entry....should it never be done? Can they be nested?
#
Zegnat
You can nest anything in mf2, no rules. I think people may have experimented with nested feeds of comments within an h-entry, though I wouldn’t have any links at the ready.
#
Zegnat
But what do you imagine the consuming use-case to be, [jgmac1106]?
#
[tantek]
^^^ this
#
[eddie]
tantek sure, happy to!
#
[jgmac1106]
so in a badging system each badge would have a page..but each issuance needs to be its own url....but on the badge page i want to list everyone as a recipient...my thinking is this would be an h-feed, and each issuance listed as an h-entry
#
Zegnat
[jgmac1106], to paraphrase you from #indieweb: publish now, worry about microformats when you are done, the consumers will tell you what they need ;)
#
[jgmac1106]
ha ha touche
#
[jgmac1106]
I am doing it now actually
#
[tantek]
[jgmac1106] perhaps get the issuance permalinks figured out and working first before you try to aggregate them into a feed on the badge page.
#
Zegnat
I am still not sure why you need a separate page per “issueance”
#
[tantek]
Zegnat, for each person to cite as the permalink evidence that they achieved the badge
#
[tantek]
without confusing it with other stuff that doesn't apply to them (other people getting it etc.)
#
[jgmac1106]
because when I add more -u-reply-of in content, every person who gets it will be displayed
#
[jgmac1106]
pust what t said
#
Zegnat
But surely that works even if there is only one post for the badge? You just need to check if you are one of the in-reply-to people.
#
[jgmac1106]
yeah but say wikipedioa gave a badge out to each new contributor...do you want a list of every wikipedia contributor on your badge
#
Zegnat
Sounds more like the problem is putting the in-reply-to inside the content.
#
Zegnat
So the question is, why put that inside the content at all?
#
Zegnat
There are plenty properties we recommend against including within the content. photo is one of them, and the badges seem to want to rely on that too
#
[jgmac1106]
didn';t try that, will keep playing
#
[jgmac1106]
I am putting photo in content to see what happens
#
[tantek]
Zegnat so when someone else tries to quickly verify you achieved a badge they can do so without being burdened with wading through pages of content or long lists of other people etc.
#
[tantek]
it's not just for you yourself to "check if you are one of the in-reply-to people"
#
[tantek]
These motivations/use-cases are probably worth capturing somewhere like /badge#Permalink or something. [jgmac1106] WDYT?
#
[jgmac1106]
will do, let me try this prototype and I will add it
#
Zegnat
Ah, [tantek], you are thinking of the case where someone sees the badge on your page and then clicking it to go to the badge page, and then manualy checking whether you really did get the badge? Rather than a programmatic check? That makes sense then!
#
[jgmac1106]
https://jgregorymcverry.com/badges/ my comments are not set up to show photos would need to figure that out, think bulleted list is fine for recipients on badge page...unless something like indienews wanted to have a feed of every issuance
#
Loqi
[IndieWeb.org] To earn the tool builder badge you had tolaunch code with documentation for the community to use. jgmac1106 earned this badge as evidenced by IndieWeb Learning Networks
iasai joined the channel
#
jgmac1106
the other idea [zegnat] is that a badge uses webmentions but is published from a micropub client to both the issuer and the reciever site..I am using comments now as that is the only way I know how
#
GWG
What should a current weather widget look like? I am trying to enhance mine
#
GWG
It's just displaying the same data I pull for posts
#
Zegnat
[jgmac1106], using an in-reply-to seems valid almost in any case. The badge is in reaction to something on the URL it points at, so that seems fine
[asuh], jgmac1106 and iasai joined the channel
#
[jgmac1106]
yeah and I like it being a webmention badge
[tantek] joined the channel
#
Loqi
[Tantek Çelik] 2017-12-15 was XFN’s 14th. While #IndieAuth / Web Signin #decentralized identity via XFN rel=me continues to grow, in 2017 @aaronpk wrote IndieAuth into a proper spec, published just last week by @W3C @SocialWebWG https://www.w3.org/TR/2018/NOTE-in...
#
[tantek]
sorry that URL is from the 14th anniversary, I haven't written a 15th anniversary post yet
#
Zegnat
What is XFN?
#
Loqi
XFN (XHTML Friends Network) is the network of visible links across blogs that claim various XFN relationships with/to each other https://indieweb.org/XFN
#
Zegnat
Aww, first URL there is still broken :(
#
Zegnat
Did anyone ever figure out who admins gmpg.org?
#
[tantek]
I need to ask Matt
#
[tantek]
somewhere I have admin access but with keys I've likely lost
#
[tantek]
so far the only big news I have for this past year of XFN is: 1. launch of indielogin.com which implements RelmeAuth, 2. rel=me support added to Mastodon and Pixelfed as the way to get a verified checkmark
#
[tantek]
anyone else think of anything else new?
#
Zegnat
Not directly. There might be more luck next year, if we see more development around follow lists and the like
#
[tantek]
we did see some activity around friends and follow-of but those did not use (nor need) XFN
#
[tantek]
rel-me << XFN
#
Loqi
ok, I added "[[XFN]]" to the "See Also" section of /rel-me https://indieweb.org/wiki/index.php?diff=54742&oldid=54736
#
[jgmac1106]
here is how I am displaying my badges, I figure I could use h-items and these could be in collections using p-category
KartikPrabhu joined the channel
#
jgmac1106
the p-criteria and p-evidence obviously get’s ignored, should use p-note for now
#
aaronpk
does anyone know if there is an actual github issue for tracking indieauth support in mastodon? nothing linked from here: https://indieweb.org/Mastodon#Requests
#
aaronpk
or if there has been any discussion about that somewhere?
#
[jgmac1106]
I find nothing with these search terms: @gargon indieauth usually anything taken serious is aired in public..but I also have no idea how good search is
#
[tantek]
aaronpk, I think everyone was waiting for you to file a github issue on Mastodon for IndieAuth support 🙂
#
jacky
lmfao
iasai joined the channel
#
jacky
finishing up some work for categories in koype
#
jacky
realizing that I want to save the word "tag" specifically for mentioning other forms of content
#
jacky
I see (truly lol) the difference between categories and tags
iasai, snarfed and jgmac1106 joined the channel