#dev 2017-04-14

2017-04-14 UTC
#
gRegorLove
I might just check with Dreamhost support. Pretty sure this issue only came up when they upgraded PHP. I've definitely sent wm to aaronpk successfully previously
#
sknebel
ah, not your own server, yeah, then that's the better option
#
sknebel
might be that they only enabled ipv6 with the update
#
sknebel
(and potentially, that problem could hit others and other languages as well, so that's something aaronpk should look into fixing on the server-end as well)
KevinMarks joined the channel
#
Loqi
[gRegor Morrill] My site is apparently having trouble reading Aaron’s site. I’m getting a timeout error with fsockopen(). At first I thought it was an issue reading https sites, but I don't have the problem connecting to Marty’s site or https://pin13.net. The l...
#
gRegorLove
And submitted to DH support
#
GWG
What was the fatal error?
#
Loqi
It looks like we don't have a page for "fatal error" yet. Would you like to create it?
#
miklb
GWG Call to undefined method Kind_Taxonomy::get_kind_properties() in indieweb-post-kinds/includes/class-kind-meta.php:231
#
GWG
I thought I fixed that. Maybe I didn't push it. Will check. That is the old function.
#
miklb
I might not have had latest, checking again
#
GWG
It's me.
#
GWG
I found the issue.
#
GWG
I thought I had removed all references to the old way of doing things.
#
GWG
This branch is pre me testing everything.
#
GWG
Fixed now though.
#
miklb
OK, now I need to check the templates in my theme.
#
GWG
Yes?
#
miklb
something with my new code for filtering the embed broke
#
GWG
Sorry
#
miklb
$embed is empty string
#
miklb
and because I didn't have a check for $embed being empty, i get a fatal error
#
GWG
Do I need one in the plugin?
#
miklb
I need to switch to the default template to see what's going on, but `self::get_embed( $meta->get_url() );` is returning empty
#
miklb
GWG so I used the default template and it's not showing the oembed. I tried resetting that setting on backend, but didn't change.
#
GWG
I just changed get_url. Let me continue troubleshooting.
#
miklb
sure, no rush.
#
GWG
The old functions that mapped kinds to properties all got replaced.
#
GWG
miklb: I just did a Twitter like test, and it worked. Odd
#
miklb
I'll try a new like. Was testing a repost
#
GWG
They should all work the same way.
#
miklb
hmm, now it's not saving. Maybe because it doesn't have a title or content
#
GWG
miklb: I tried to tackle that problem at one point.
#
GWG
There are rules that WordPress has about missing fields.
#
miklb
that one worked. Maybe something between pulls. I should still add a check for $embed to be empty in my code
#
GWG
miklb: Repost really should put it statically in content.
#
miklb
you mean not show embed?
#
GWG
For a future version. A repost should be in content itself.
#
miklb
could do that at template level, right?
#
miklb
it's in teh HTML, just the embed "covers" it
#
GWG
Yes
#
martymcgui.re
edited /User:Martymcgui.re (+221) "/* What Works */ update supported reply contexts"
(view diff)
#
miklb
GWG did I read in the commit messages also have done some work on better micropub integration?
#
GWG
miklb: Correct
#
aaronpk
Hello scroll back
#
GWG
Hi, aaronpk
#
aaronpk
oh interesting
#
aaronpk
I didn't realize I had an aaaa record set
#
aaronpk
tantek: regarding whitespace, it's something to do with newline handling in the mf2 parsing
#
aaronpk
Oh wait
#
aaronpk
it might be that I don't whitelist br tags
#
GWG
I'm trying to figure out an issue. WordPress requires either title or content. But a like may have neither per se.
#
miklb
I was wondering about that when I was testing it.
#
GWG
miklb: I tried to think of a solution a while back. Nothing so far.
#
GWG
Trying to figure out what to tackle next for these fixes.
#
miklb
inserting an zero width character sounds like a hack, but if done in the content…
#
GWG
Well, I want a way to indicate how to ignore the title. But the problem is the title is set by the theme, not by the plugin
#
miklb
how does the theme set the title?
#
GWG
It doesn't. It displays it.
#
GWG
So, the theme needs to decide something isn't displayable or worth marking up.
#
GWG
There is only so much filters and hooks can do.
#
miklb
well, notes do fine with no title, so comes down to how to add content for a like so you can save it.
#
GWG
I'm doing Micropub tests.
#
GWG
Fixed another one.
#
GWG
I need to work on the logic, and the ability to auto-fill information on Micropub posting.
KartikPrabhu joined the channel
#
GWG
If someone posts using Micropub with a URL or a URL and a name...should I parse the URL...hard decision.
tantek joined the channel
#
loqi.me
edited /canoe (+118) "tantek added "https://twitter.com/termie/status/847751639972823040 - 50 person canoe since new [[Twitter]] Replying to UI changes" to "See Also""
(view diff)
gRegorLove, tantek, [chrisaldrich], arush1, barpthewire and miklb joined the channel
KevinMarks joined the channel
#
jkphl.is
uploaded /File:hwc-2017-04-12.jpg "Homebrew Website Club Nuremberg 2017-04-12"
Zegnat joined the channel
#
sknebel
does anyone create u-category tags via Micropub? How does your endpoint do that, do you have predefined mappings category:URL, do you check if a value is a url (then what is the displayed title?), am I missingsoething obvious
#
ben_thatmustbeme
sknebel: i do category via micropub, i actually do two things with it, one is categorize by person (i give a URL) or categorize by text label, so if i give it "indieweb" it checks to see if its a url and if not, assumes it needs to find and possibly create that category
#
ben_thatmustbeme
then it sets the URL itself
#
ben_thatmustbeme
if it is a URL, those are special types of categories, where it will look up the card on that url and display the name from there
#
sknebel
thanks, sounds good
#
ben_thatmustbeme
i'm sure there are better ways of doing it though
thirtythree and KevinMarks joined the channel
#
aaronpk
That's pretty much what I do too
jeremycherfas, robert33, KevinMarks_, [kevinmarks] and [eddie] joined the channel
#
[eddie]
How does it know what URL you want for “indieweb”, do you store a category cache somewhere? Or are you talking about a “Category page” like a tag page, that it creates
#
aaronpk
i just do tag pages
#
[eddie]
Ahhh, gotcha. So for doing something like IndieNews, you would give it a URL and it would grab the title from the URL?
#
aaronpk
yeah or for person tagging
#
[eddie]
Aka: Anything that is a name is internal tagging and anything that is a URL is a person or site existing tag
#
[eddie]
That makes sense
#
[eddie]
Cool ? That’s good to know. Thanks sknebel for asking about that. That’s helpful
#
ben_thatmustbeme
gah, it looks like i can't actually get the microformats2-ruby to do all the testing i want
#
ben_thatmustbeme
as it doesn't seem to want to get me a list of h-entries from under the h-feed
#
ben_thatmustbeme
ick, it doesn't do that at all
#
ben_thatmustbeme
martymcguire[m]: can confurm i suspect
#
ben_thatmustbeme
s/confurm/confirm/
#
martymcguire[m]
ben_thatmustbeme: hmm. i haven't played with the ruby mf2 gem for pulling apart h-feed, yet, just reply contexts for individual posts.
#
martymcguire[m]
goes to give it a shot
#
aaronpk
the ruby gem has a bunch of magic methods but it also has a to_hash which will just output the parsed structure
#
ben_thatmustbeme
yeah, it doesn't work
#
ben_thatmustbeme
anything embedded without a property just gets lumped in to properties
#
ben_thatmustbeme
so it ends up ignoring the h-*
#
martymcguire[m]
haha oh god
#
aaronpk
a parser bug?
#
Loqi
ahaha
#
martymcguire[m]
it merges everything into one object
#
ben_thatmustbeme
getting the items[0][properties][url] gets a list of all the URLs of all the h-entries in the feed
#
martymcguire[m]
an "HFeed" full of the properties of its entries.
#
aaronpk
yeah try just dropping down to the to_hash and accessing it directly
#
ben_thatmustbeme
Not Implemented: nested microformat without associated property
#
martymcguire[m]
the to_hash is the same
#
martymcguire[m]
let me make a pastebin
#
aaronpk
oh boy
#
martymcguire[m]
(or just trust matrix to do the thing)
#
ben_thatmustbeme
so now i need to fix the parser so i can write the tests for mastodon
#
martymcguire[m]
sent a long message: martymcguire[m]_2017-04-14_15:13:56.txt - https://matrix.org/_matrix/media/v1/download/matrix.org/FCCDZtrsspMSMgvRBIOcHVwL
#
martymcguire[m]
that's the results of: ruby -e "require 'microformats2'; html = open('https://martymcgui.re/posts/').read; puts Microformats2.parse(html).to_hash.inspect"
#
ben_thatmustbeme
i have another solution for mastodon at least, i'm just looking to make sure it has the correct number of '.h-feed .h-entry' so i just use straight nokogiri for that
#
aaronparecki.com
edited /W3C (+79) "spec development lifecycle"
(view diff)
barpthewire joined the channel
#
aaronpk
wish i had done that ages ago ^^
#
aaronparecki.com
edited /Micropub (+26) "add w3c spec lifecycle diagram"
(view diff)
#
Loqi
aaronpk has 43 karma in this channel (1281 overall)
#
ben_thatmustbeme
well, i think this will do it, i have some very basic MF2 tests
#
ben_thatmustbeme
make sure they have the correct number of h-entries in the feed on the user page, make sure that pulling a specific entry has h-entry -> author/card -> name correct, and make sure h-entry->in-reply-to is correct
#
martymcguire[m]
aaronpk++ love the w3c process diagram. also congrats on the move to CR!!
#
Loqi
aaronpk has 44 karma in this channel (1282 overall)
#
martymcguire[m]
ben_thatmustbeme++ for keeping mastodon that much more indieweb-friendly
#
Loqi
ben_thatmustbeme has 7 karma in this channel (199 overall)
[cleverdevil] joined the channel
#
ben_thatmustbeme
oh, almost hitting 200
#
martymcguire[m]
ben_thatmustbeme++ for centuries' sake
#
ben_thatmustbeme
rate limited!
#
aaronpk
ben_thatmustbeme: may I suggest adding descriptive messages to the tests
#
aaronpk
so that if someone breaks it, they are quickly directed to a way to fix it
#
ben_thatmustbeme
probably a good idea
#
aaronparecki.com
edited /Webmention-developer (+27) "add w3c spec lifecycle diagram"
(view diff)
#
aaronparecki.com
edited /WebSub (+88) "add w3c spec lifecycle diagram"
(view diff)
#
aaronparecki.com
edited /post-type-discovery (+171) "add w3c spec lifecycle diagram"
(view diff)
#
aaronparecki.com
created /Template:w3c-spec-development-lifecycle (+212) "Created page with "== Spec Lifecycle Diagrams == * [[:File:w3c-spec-development-lifecycle.svg|Lifecycle]] * [[:File:w3c-spec-WD.svg|WD]] * [[:File:w3c-spec-CR.svg|CR]] * [[:File:w3c-spec-PR.svg|PR]...""
(view diff)
#
Zegnat
ben_thatmustbeme++ for centuries' sake ;)
#
Loqi
ben_thatmustbeme has 8 karma in this channel (200 overall)
#
Loqi
Zegnat: tantek left you a message 1 day, 14 hours ago: are you available the evening of Friday 2017-06-23 to remote participate in an IndieWeb Leaders Summit? Add a note accordingly: https://indieweb.org/2017/Schedule#Comments
#
Zegnat
Leaders Summit? Interesting
KevinMarks joined the channel
#
aaronpk
huh... that's odd... my last tweet has a reply but it's not showing on my tweet permalink
#
aaronpk
but the reply context of my tweet appears on the reply's permalink
#
martymcguire[m]
the twitterverse is de-rezing
#
aaronpk
martymcguire++
#
Loqi
martymcguire has 3 karma in this channel (16 overall)
[eddie] joined the channel
#
ben.thatmustbe.me
edited /indieweb_network (+130) "/* Larger or multi-user software */"
(view diff)
#
gregorlove.com
edited /recipe (+135) "/* IndieWeb Examples (h-recipe) */ +me"
(view diff)
#
GWG
miklb: I am still trying to figure out how to move Post Kinds closer to full mf2 storage.
tantek and KevinMarks joined the channel
#
www.boffosocko.com
edited /site-deaths (+165) "FFFFound is shutting down on May 8, 2017"
(view diff)
#
www.boffosocko.com
edited /FFFFound (+379) "shut down; brief details"
(view diff)
#
tantek
well then, I remember when adactio was really into FFFFound
#
www.boffosocko.com
edited /mlkshk (+467) "site death 2017-05-01"
(view diff)
#
www.boffosocko.com
edited /site-deaths (+431) "mklshk shutting down on 2017-05-01"
(view diff)
gRegorLove, KevinMarks and tantek joined the channel
#
aaronparecki.com
edited /Posts_about_the_IndieWeb (+146) "iwantmyname.com"
(view diff)
[chrisaldrich] joined the channel
#
[chrisaldrich]
Someone was moving http://indiewebcamp.org/ right? It's got a quirky ICANN notice at the moment...
#
tantek
aaronpk: ^^^
#
aaronpk
Oh dear
#
gRegorLove
I'm having fun with regex. For some reason this isn't always returning a match: http://stackoverflow.com/a/5956635, in the <title> of https://gregorlove.com/2017/04/crock-pot-white-chicken-chili/ for example
#
tantek
regex is all fun and games until someone loses a backslash
#
aaronpk
!xkcd Regex HTML
#
aaronpk
um lol
#
gRegorLove
Works on other pages: https://gregorlove.com/2017/04/the-original-recipe-says-to/ I'm stripping newlines and extra spaces first.
#
Loqi
[gRegor Morrill] The original recipe says to cook 8 to 10 hours, but I've always found it ready earlier, so I listed a shorter cooking time. I will often drain the hominy, too, so it’s less soupy. Sometimes I will serve it over rice....
#
gRegorLove
"Problem exists between leopard and chair" haha
#
Loqi
hehe
#
gRegorLove
Aha, had to trim() whitespace before the regex.
#
gRegorLove
Does u-url u-uid in an h-recipe make sense, when the original recipe is at another URL?
#
gRegorLove
I know it's not stricly listed as a property of h-recipe
#
tantek
gRegorLove: in that case are you citing or quoting from the recipe?
#
tantek
or reposting it?
#
gRegorLove
Closest would be a repost, I suppose, though I've altered it slightly.
#
tantek
got to ask the user-facing questions first, before jumping to plumbing decisions (because the first always affects the second)
#
tantek
that sounds like an edit!
#
gRegorLove
what is edit
#
Loqi
An edit (AKA diff, change) is a special type of reply that indicates a set of suggested changes to the post it is replying to. A collection of (presumably related) suggested edits in open source is often called a patch or pull request https://indieweb.org/edit
#
tantek
did you intend it as a fork (your own) or an edit you'd intend to push upstream if they accepted it?
#
tantek
what is a fork?
#
Loqi
It looks like we don't have a page for "fork" yet. Would you like to create it?
#
gRegorLove
it's what you consume an h-recipe with :D
[eddie] joined the channel
#
tantek
a fork is a special type of reply that is similar to an [[edit]] except with the expectation of diverging from the original rather than suggesting changes to it, and is also like a [[repost]] in that a fork displays most or all of the original likely with its changes made inline. IndieWeb Examples: https://gregorlove.com/2017/04/the-original-recipe-says-to/
#
loqi.me
created /fork (+385) "prompted by tantek and dfn added by tantek"
(view diff)
#
Loqi
[gRegor Morrill] The original recipe says to cook 8 to 10 hours, but I've always found it ready earlier, so I listed a shorter cooking time. I will often drain the hominy, too, so it’s less soupy. Sometimes I will serve it over rice....
#
gregorlove.com
edited /fork (+178) "expand IndieWeb Examples"
(view diff)
#
tantek.com
edited /URL_design (+119) "/* Topic */ slug optional use-case, inadvertent truncation in IRC with citation of example"
(view diff)
[cleverdevil], KevinMarks_, KevinMarks and [kevinmarks] joined the channel
#
[kevinmarks]
What is html regex?
#
Loqi
It looks like we don't have a page for "html regex" yet. Would you like to create it?
#
[kevinmarks]
html regex is using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of reg​ex parsers for HTML will ins​tantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pes
#
[kevinmarks]
snuffing of the lie”‹s of Man ALL IS LOSÌ�Ì�͖̩͇̗̪̈́T ALL I”‹S LOST the ponÌ·y he comes he c̶̮omes he comes the ich”‹or permeates all MY FACE MY FACE áµ’h god no NO NOO̼O”‹O NΘ stop the an”‹*̶͑̾̾”‹Ì…Í«Í�̙̤g͇̫͛͆̾ͫ̑͆lÌ�͖͉̗̩̳̟ͫͥͨeÌ…Ì s ÍŽa̧͈͖r̽̾̈́͒͑e n”‹ot rè̑ͧ̌aͨl̘̃ͤ͂̾̆Ì�Ì™ ZAÍ Ì¡ÍŠÍ�LGÎŒ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅÆ�̴ȳ̳ TH̘Ë͖́̉ Í P̯Í�Ì­OÌš”‹NÌ�YÌ¡ H̸̡̪̯ͨ͊̽̅̾̎E̾Í
#
[kevinmarks]
regex-infection wil​l devour your HT​ML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain, the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here I can see
#
loqi.me
created /html_regex (+472) "prompted by [kevinmarks] and dfn added by [kevinmarks]"
(view diff)
[chrisaldrich] joined the channel
#
gRegorLove
What the
#
gRegorLove
To be clear, I'm using regex on plain text. I'm not *that* insane. :)
#
gregorlove.com
edited /regular_expression (+17) "+ html regex"
(view diff)
KevinMarks and KevinMarks_ joined the channel