2015-12-05 UTC
benwerd and hober2 joined the channel
# 00:12 KevinMarks_ the magic of children creation in jf2 may be tricky for users, judging by my recursive parser's fiddlyness
snarfed joined the channel
acegiak and j12t joined the channel
snarfed, bengo, benwerd, funwhilelost, KevinMarks__ and KevinMarks joined the channel
# 03:35 KevinMarks Fix dates on my homepage, old Homebrew Website Club notes show up in woodwind
# 04:02 KevinMarks_ I was trying to avoid a 'is this the top level' flag in the recursive function
# 04:03 ben_thatmustbeme the point of children: is if you don't have a name for it... h-* inside another h-* without any other mf2 class
# 04:05 ben_thatmustbeme the top level bit may actually be needed, but you don't need it in the recursion, you basically peel off a top level function that calls the recursion
# 04:21 KevinMarks_ 'cos I get { "type": "entry", "name": "entry with tags", "categories": "tagged" }
# 04:22 KevinMarks_ not { "type": "entry", "name": "entry with tags", "categories": ["tagged"] }
# 04:23 ben_thatmustbeme I have been slowly figuring out what needs to get documented yet. But it should be "category": " tagged"
# 04:26 ben_thatmustbeme For top level? It's dropped for below that you have nothing to label it with so you need children:
dietrich joined the channel
# 04:31 ben_thatmustbeme I'd say children as it is a reserved word makes sense to always be an array... But it's not as consistent with everything else then
# 04:35 KevinMarks_ I think the 'might be an array' thing is likely to trip people up anyway
# 04:36 KevinMarks_ the mad nesting in the mf2 format is ugly, but at least you just write iterators
j12t joined the channel
# 04:37 KevinMarks_ so if I see {"categories":["tag1","tag2"]}
first I'll use an iterator
# 04:38 ben_thatmustbeme Mf2 format is ugly and ugly to work with. 99% of the time in just throwing a [0] in all over the place
# 04:40 ben_thatmustbeme So if you have it as an array you need to know the vocabulary to know what things are single value and what aren't
# 04:47 ben_thatmustbeme So I'm leaning toward just specifying that children is always an array and type, content-type, and value are always single items
snarfed joined the channel
# 04:52 KevinMarks_ !tell tantek do we have examples of mf2 markup where the same object has 2 types?
# 04:52 Loqi Ok, I'll tell him that when I see him next
zero-gravitas and endi joined the channel
# 05:17 GWG The wiki refers to a duration property for microformats, but not the format for it. Or I'm missing it.
# 05:29 GWG How would that work for a song though?
# 05:30 GWG But what does dt-duration look like?
# 05:36 KevinMarks_ <time class="dt-duration" datetime="P2Y11M">(2 years 11 month)</time>
KartikPrabhu and eschenal joined the channel
KevinMarks__, zero-gravitas, KevinMarks, Pierre-O and eschenal joined the channel
andicascadesf, eschenal and loic_m joined the channel
eschenal and Pierre-O joined the channel
zero-gravitas, johnstorey and j12t joined the channel
eschenal, elima_, j12t, bret, zero-gravitas, singpolyma, gavinc, KartikPrabhu and johnstorey joined the channel
eschenal, zero-gravitas and j12t joined the channel
# 16:38 tbrb might be an idea for the new year, yeah
loic_m, KevinMarks, ttepasse, eschenal, wavis and KevinMarks__ joined the channel
# 17:14 GWG Does anyone have an event posting UI that factors in timezone?
KevinMarks___, j12t and KevinMarks joined the channel
# 17:31 GWG I'm trying to get a sense of how to implement one that is simple.
# 17:31 GWG Last time I did one, it used the timezone identifiers.
# 17:32 GWG So, you are using timezone offsets. Hmm..
[aaronpk] joined the channel
# 17:32 [aaronpk] I use the browser date to determine times one offset to populate the field
# 17:33 Loqi [aaronpk] meant to say: I use the browser date to determine timezone offset to populate the field
loic_m_ joined the channel
# 17:43 aaronpk i just updated my new site to use this CSS library, it's got a ton of stuff in it and looks pretty nice
snarfed, zero-gravitas and wolftune joined the channel
# 18:05 aaronpk wow I am spending way too much time on this admin UI oops
cjk101010 joined the channel
# 18:11 aaronpk I also do want to get in the habit of making nicer things though
# 18:17 snarfed of course! i think of it more as prioritization than sacrificing quality
# 18:17 snarfed we don't have the time to nice *all* the things, sadly
# 18:18 GWG I'm adding entirely too much javascript for someone who spent so much time avoiding it
# 18:19 GWG I just added moment.js to solve a date parsing problem
# 18:21 GWG I tried using timezone names again, and randomly using one of Tantek's posts to parse. It set it to America/Dawson, aka GMT-8:00
# 18:21 GWG Wondering if I should just go for the -8 again
# 18:26 snarfed i'm guessing mf2py handles it ok, and maybe the query param part of the url is c onfusing the web interface
KevinMarks joined the channel
tantek and j12t joined the channel
# 18:48 kylewm snarfed: thanks for the heads up, it's working now
# 18:48 kylewm had to change my User-Agent to please wordpress
# 18:53 tantek KevinMarks: yes there has been a bunch. originally hreview hentry I think, and more recently h-card h-person or h-org as theoretical possibilities.
# 18:53 aaronpk oh yeah i've seen that before too. some wordpress sites are configured to not serve content unless the user agent is a browser
KevinMarks joined the channel
# 19:02 GWG I just got a start/published date/time/zone and and end/updated date/time/zone working in my Post UI.
# 19:03 GWG I'm so glad I came to Florida, where there are few distractions from my Indiewebing
# 19:04 kylewm in my experience Wordpress is happy with any user agent as long as it doesn't mention "python" :)
KevinMarks joined the channel
# 19:17 petermolnar I just realized I could do a urls with unicode & emoji characters; would be a bit insane, but unique I believe; both chrome & FF accepts them in the url field and displays them as expected, hiding the urlencode :)
tantek, tantek_ and snarfed joined the channel
# 19:34 snarfed interesting actually. mf2py and php-mf2 parse that page *very* differently. writing up now.
# 19:35 aaronpk sent myself a webmention from my new site to my new site. realized I'm not publishing author information yet :)
# 19:38 kylewm snarfed: really? they look very similar to me! except php-mf2 gives the nested h-entry a "value"
# 19:39 kylewm also I really wish I knew how to make Python print out the dict fields in a better order (type, properties, children)
modem_ joined the channel
# 19:43 snarfed bridgy is on mf2py 0.2.6...and ooh there's a 1.0.0 now
# 19:44 kylewm yeah i was going to say, it seems like a backcompat issue (entry-content not converted to e-content) but that's been in there forever
# 19:46 kylewm also requirements.freeze.txt has 1.0.0, so I think you're up to date anyway
# 19:47 snarfed ah interesting. my virtualenv actually isn't :P, but good that req'ts is
# 19:48 kylewm bridgy also didn't parse "url", which is backcompat parsed from rel="bookmark", and that is a slightly more recent addtion...
# 19:48 kylewm sorry we should move to #bridgy or the gh issue
# 19:52 snarfed but actually mf2py backcompat support is a bit more broadly relevant
# 19:53 tommorris I must warn you that I haven't got much time to work on mf2py at the moment due to health issues
# 19:56 kylewm snarfed: can you tell which parser bridgy's using? html5lib, lxml, or html.parser?
JonathanNeal, cweiske, zero-gravitas and wolftune joined the channel
# 20:21 GWG Aaronpk, on your exercise, why duration and not start and end times?
benwerd, benwerd_, KevinMarks, snarfed and [aaronpk] joined the channel
# 21:03 [aaronpk] GWG: mostly because duration is a property that comes back from the run keeper API where the data came from. I'm changing it on my new site tho
# 21:05 GWG Aaronpk, I assume you've given this thought then. I'm just now building time as a post property
# 21:05 GWG Aaronpk, what are the pros and cons?
# 21:05 GWG KevinMarks made a good case for time last night
# 21:06 [aaronpk] Duration is useful still because the activity may have been paused in the middle
benwerd_ and benwerd__ joined the channel
yakker, modem_ and zero-gravitas joined the channel
fkooman joined the channel
# 22:15 KevinMarks_ I haven't seen anything use duration, but we do have aprsing rules defined
bengo joined the channel
# 22:17 GWG KevinMarks, I came to that conclusion.
# 22:17 GWG Aaronpk is using duration, and pointed out pausing as a reason, but that may be an edge case.
# 22:18 GWG !tell acegiak How do you feel about duration vs start/end times?
# 22:18 Loqi Ok, I'll tell them that when I see them next
[aaronpk] joined the channel
# 22:19 [aaronpk] I would never enter duration by hand fwiw. I only have it because it was already there in the data I got from the API
# 22:19 [aaronpk] Also sleep has duration which subtracts some time from the middle of the sleep event if it thinks I woke up in the middle of the night
eschenal joined the channel
# 22:20 GWG Aaronpk, acegiak asked for the duration feature. I've never used it. I think start end is more useful, but don't want to have issues.
shiflett and benwerd joined the channel
KevinMarks__ joined the channel
# 23:05 GWG I feel like as long as I am implementing post ui fields I should do more
j12t joined the channel
KartikPrabhu and wolftune joined the channel
tantek and j12t joined the channel