#indiewebcamp 2014-09-01

2014-09-01 UTC
rschulman_, JonathanNeal_, sdboyer_, wagle, benward___, crossdiver, jacus, snarfed, the_merlin, acegiak_, saurik_, finchd, PMurphs, bretolius, iboxifoo, halorgium_ and ozatomic_ joined the channel
#
acegiak_
GWG: I think I'm gonna do some javascript to automatically tick and untick the boxes for reply and repost in indieweb custom taxonomy
snarfed joined the channel
#
snarfed
acegiak_: that feature is definitely nice. i did the same thing for press this: https://snarfed.org/indieweb-press-this-bookmarklets-for-wordpress
#
acegiak_
snarfed: hmm. it would be cool to get bookmarklets working with the indieweb custom taxonomy plugin
snarfed and galledallegator joined the channel
#
@withknown
RT @IndieWebCampUK: IndieWebCampUK 2014 is in one week! Still some spots left, sign-up! http://indiewebcamp.com/2014/UK #indieweb
(twitter.com/_/status/506248776659382272)
#
@jimgroom
MT @IndieWebCampUK: IndieWebCampUK 2014 is in one week! ...spots left, sign-up http://indiewebcamp.com/2014/UK #indieweb > Recommended UK edtech folK
(twitter.com/_/status/506249216763908096)
mko joined the channel
#
mko
KevinMarks: Regarding /link-preview -- have you thought about just implementing a simple OEmbed provider that returns an iFrame or modified view of the page requested? I just finished implementing an OEmbed and OpenGraph Embed consumer for my site ( see https://mowens.com/notes/2014/08/20/1/ as an example ).
#
mko
Next, I'm going to make an OEmbed Provider for my site that provides a Rich HTML response similar to that seen below that post.
lukebrooker joined the channel
#
kylewm
how common are oembeds for content you'd link to, mko?
#
mko
kylewm: Pretty common.
#
mko
A handful of real-world examples from my entries: Twitter, Rd.io, YouTube, Vimeo, Instagram, Flickr
#
kylewm
I like the sound of that. look forward to seeing more examples on your site
#
mko
The rest I have an OpenGraph fallback for so if they contain OpenGraph data, it OEmbeds a Rich type that I construct on the server.
#
snarfed
mko: re talking to KevinMarks, i assume you've seen http://pageaspreview.herokuapp.com/ :P
#
mko
Those were the pages I was using to test various implementations. :-)
#
kylewm
mko: wow! do you have to do some special coding for each provider?
#
mko
snarfed: that was actually why I mentioned it to him, as being an OEmbed provider seems more useful, as it seems like a well-known and well-structured standard.
#
mko
kylewm: Nope. I wrote one OEmbed Consumer and then added the definitions of those providers into my provider list.
#
mko
kylewm: The only "special coding" that's involved is an entry that looks like this: https://gist.github.com/mko/9b2600c1b595abac321b
#
kylewm
wow, that's awesome
#
mko
On oembed.com you can find most, if not all, of the known OEmbed providers.
#
mko
I did have to write custom code to convert OpenGraph data into a rich-type OEmbed, but that was pretty easy, too.
#
mko
It's still pretty rudimentary, but for now it meets or surpasses most of Twitter.com / Facebook.com link-preview functionality.
#
mko
The process of testing and validating providers is pretty fast. I figure if I wanted to add all of the known providers it would be a half day's work since some of them actually don't follow the rules set forth by OEmbed to the letter.
Nadreck joined the channel
#
kylewm
is Oembed related to Ostatus?
Nadreck joined the channel
#
snarfed
kylewm: not afaik; O is just a common prefix for "open" standards
#
snarfed
mko: iirc people here have mixed feelings about oembed, esp the mf2 advocates, since they think you should use mf2 for everything
#
kylewm
irc it that way too, was looking back at logs for confirmation
#
kylewm
"tantek: oembed seems like extra work to support (as a publisher) when you can simply publish rich h-entry markup instead"
#
kylewm
snarfed: what's the thing you say, "be lenient on what you'll accept and strict on what you publish"?
#
snarfed
sure! definitely not me though. forgot the name, but it's an old school tech "law"
#
snarfed
i interpret it as making sure you emit valid, well-formatted data, not necessarily that you harshly minimize the number of formats, but that's just me
#
snarfed
aha, postel's law. from an early draft TCP spec. http://en.wikipedia.org/wiki/Robustness_principle
#
kylewm
snarfed: nice, thanks for finding that :)
#
kylewm
mko++ by the way :)
#
Loqi
mko has 7 karma
colintedford joined the channel
#
neuro`
Good morning
#
kylewm
morning neuro`
KartikPrabhu joined the channel
#
acegiak_
is it ok to have your h-cite inside your e-content?
#
kylewm
acegiak: totally up to you I think. if the thing you're citing is part of the post content, I think it's appropriate in the e-content. if it's more like a reply-context, that might be better outside
paulcp, wolftune, yakker, crossdiver, snarfed, tantek, Jihaisse, ShaneHudson, glennjones, alanpearce and Sebastien-L joined the channel
plieuse, krendil, adactio, fofr, barnabywalters, petermolnar and friedcell joined the channel
#
jonnybarnes
barnabywalters: I think I've just sent you a webmention?
#
jonnybarnes
its the first time ive tried via micropub
#
barnabywalters
morning jonnybarnes — I don’t see anything, where did you send it?
plieuse joined the channel
#
jonnybarnes
I'm gonna try again via my actual admin cp
#
jonnybarnes
ok, slightly more verbose response, it failed to send the webmention
#
barnabywalters
know what the error was? I can look in my logs
#
jonnybarnes
debugging now
#
barnabywalters
(btw, in answer to your question, I updated the post with more info)
#
jonnybarnes
ok, so its defintely an error in my webmention endpoint discovery code
#
jonnybarnes
right, gtg somthings come up, will look at this later
Kopfstein and petermolnar1 joined the channel
#
jonnybarnes
barnabywalters: yes, not yor fault, I didnt think it would error the way it has.
#
jonnybarnes
basically I have a line that checks if profile images are pbs.twimg.com links, and if so force them to be https links
#
jonnybarnes
however, for non twitter mentions, I cache the profile image and serve it myself
#
jonnybarnes
so my function that checks if a link is a pbs.twimg.com link is throwning an error because your profile image isnt technically a url
#
jonnybarnes
barnabywalters: working again :)
#
jonnybarnes
now to try an work out why my discoverWebmentionEndpoint() method doent work on http://waterpigs.co.uk/notes/4Xu9i0/
#
jonnybarnes
with that error ive screwed up bridgy :(
#
jonnybarnes
it normally resolves my jmb.so links correctly to jonnybarnes.uk links
#
jonnybarnes
i.e. when it makes a POST request the target is jonnybarnes.uk/notes/id
#
jonnybarnes
but because it was getting 500 errors when resolving the inital jmb.so link from barnabywalters tweet it then tried sending POST with target jmb.so/t/id
#
jonnybarnes
which my end isnt configured to deal with :(
#
GWG
Morning
plieuse and alanpearce joined the channel
#
jonnybarnes
barnabywalters: looking over /webmention it says Taproot only uses HTTP Link headers
#
jonnybarnes
though i dont think this is the case anymore is it?
#
jonnybarnes
you appear now to only use <link> tags inside your html
#
Loqi
Ok, I'll tell them that when I see them next
#
jonnybarnes
right, raised an issue for it
Sebastien-L and Erkan_Yilmaz joined the channel
#
barnabywalters
interesting, I no longer only use Link: headers so it should work fine
#
barnabywalters
oh it’s because that code doesn’t handle links with multiple rel values
pbeaulieu joined the channel
#
jonnybarnes
barnabywalters: so I half have it working now :)
#
jonnybarnes
I've got an endpoint of `/mention/webmention/`
#
jonnybarnes
ah yes it is
pfefferle joined the channel
#
jonnybarnes
so now I need to work out how to turn that into `http://waterpigs.co.uk/mentions/webmention/`
#
barnabywalters
bear in mind you can also send manual webmentions using the form on http://waterpigs.co.uk/notes/4Xu9i0/ — but it’d be even better to get automatic sending correct
#
barnabywalters
jonnybarnes: you have php-mf2 available, right? it comes with a URL resolving function
#
jonnybarnes
so would that look like \Mf2\resolveUrl('/mentions/webmention', 'http://waterpigs.co.uk/notes/XXX/')?
#
barnabywalters
the params should be the other way round, and really you should also be taking <base> elements into account, but yes
#
barnabywalters
do you have a Mf2\Parser object for the page?
#
barnabywalters
if so you can just do $mf->resolveUrl($relativeUrl) and it’ll take care of all that for you
#
jonnybarnes
i dont have a parser object for the page, this is code being run from my new notes oage once ive put your url into the reply to field
#
barnabywalters
well, if you want to do really reliable relative URL resolution then you coul just make a Mf2\Parser document and use ->resolveUrl()
#
jonnybarnes
I feel like Im currently replicating php-mf2
#
jonnybarnes
ignore the missing return that I haven't put in yet
#
jonnybarnes
oh and $url is defined earlier as being the full note permalink
#
jonnybarnes
saying that, Im not actually sure it would be any quicker to use php-mf2 now Im reading this https://github.com/indieweb/php-mf2#parsing-rel-and-relalternate-values
#
jonnybarnes
I'd still have to loop through the rels and match for `webmention` anyway
#
jonnybarnes
I'd just be looping through an array instead of using DOMDocument directly
#
jonnybarnes
thoughts barnabywalters
#
barnabywalters
jonnybarnes: I’d do that, and no need to loop — just check for $rels[‘webmention’][0]
#
jonnybarnes
and if someone only had <link rel="http://webmention.org/" href=" ">?
#
barnabywalters
well technically an empty href resolves to the current URL
#
jonnybarnes
no I mean, you should also check for $rels['http://webmention.org/'][0] as well
#
jonnybarnes
is that even valid php?
#
barnabywalters
oh yeah that’s valid and you should check for it
#
jonnybarnes
what characters are allowed in an array key?
#
barnabywalters
jonnybarnes: any, it’s just a string
#
barnabywalters
you can have emoji if you want
#
barnabywalters
(but don’t tell tantek)
#
barnabywalters
actually you can have emoji/arbitrary unicode symbol names in PHP too
#
barnabywalters
there was a routing library with one function, called μ
#
jonnybarnes
barnabywalters: ->parseRelsAndAlternates() isnt working
#
jonnybarnes
its returning an empty array
#
barnabywalters
well it should never return a completely empty array — at the very least, an array with two empty arrays in
#
jonnybarnes
current code: $mf2 = new \Mf2\Parser($html, $url); $rels = $mf2->parseRelsAndAlternates();
#
jonnybarnes
yup, that
#
jonnybarnes
two empty arrays
#
barnabywalters
with what input data?
#
jonnybarnes
there we go, bloody guzzle
#
jonnybarnes
basically, for some reason, php-mf2 doesnt get an actual html string from guzzle4
#
barnabywalters
$resp->getBody() rather than $resp->getBody(true)?
#
jonnybarnes
not sure why, forcing the issue by tyecasting works, i,e, $html = (string) $response->getBody();
#
barnabywalters
at least in guzzle 3, $response->getBody() returned a resource by default
#
barnabywalters
I added a string cast to php-mf2 to handle cases like that but I think they only cause ->toString() to be called if they’re syntatically inline, not in a different function
ngoldman_ and tommorris joined the channel
#
jonnybarnes
so I think I have this working now barnabywalters, only issue being I have to look not into $rels, but into $rels[0]
#
jonnybarnes
and theres an empty $rels[1] as well
irdan joined the channel
#
jonnybarnes
well the webmention array entry always be in $rels[0]?
trailbureaucrat joined the channel
#
jonnybarnes
s/well/will
#
Loqi
jonnybarnes meant to say: will the webmention array entry always be in $rels[0]?
#
barnabywalters
the first array are plain rel values, the second is alternates as they have more information attached
#
barnabywalters
the webmention endpoint should never be an alternate as well, so you can skip the second array
friedcell joined the channel
#
jonnybarnes
barnabywalters: so this is my current code now https://gist.github.com/jonnybarnes/e54e25590ee6b2844b1e
#
jonnybarnes
well, theres more code prior to this checking the HTTP header values
#
barnabywalters
jonnybarnes: looks good to me!
#
jonnybarnes
barnabywalters: can I not worry about wether or not they've used link's or a's, as long as either have rel="webmention" stuck in there php-mf2 should expode it in the rels array?
sebastien__ joined the channel
#
jonnybarnes
s/espode/expose
#
jonnybarnes
s/expode/expose
#
jonnybarnes
feck, loqi, be smarter than this
#
barnabywalters
jonnybarnes: php-mf2 parses any element with href and rel attributes, so both <a> and <link> will work, as well as <area>
#
jonnybarnes
excellent :)
#
jonnybarnes
barnabywalters: my website should have sent that webmention now
#
barnabywalters
yay! http://waterpigs.co.uk/notes/4Xu9i0/ I’m not parsing your authorship information correctly yet though
#
Loqi
woot
#
jonnybarnes
barnabywalters: and its there, kind of
#
jonnybarnes
yeah, I currently rel=author back to my homepage which has all my h-card info on it
#
@jonnybarnes
I’ve hopefully got the sending of webmentions working correctly on my site. (https://jonnybarnes.uk/notes/2x)
(twitter.com/_/status/506442916303478784)
#
jonnybarnes
lol, i like how it picks up konklone's info
#
jonnybarnes
barnabywalters: who do you think is wrong here, shrwedness or my markup?
#
barnabywalters
shrewdness, your markup is fine
#
GWG
lurks
pfefferle_ joined the channel
#
GWG
pfefferle: Do people ever cold call you off your site?
#
pfefferle
GWG in case of what?
#
pfefferle
GWG I think I meant ”žin which case“? :)
#
GWG
I'm considering putting an expanded h-card up and concerned about marketers
#
pfefferle
GWG ah! no, not yet!
gRegor`, yakker, wolftune, pbeaulieu and tecgirl joined the channel
#
@Rosaemerald
@kj_howard OSC, Indiewebcamp, 'Improv for professional creativity', Codebar, 300 Seconds & SheSays maybe others if have time! Come with me!
(twitter.com/_/status/506493851805429760)
tecgirl, snarfed and crossdiver joined the channel
#
Garbee
GWG: I'd be more concerned about spam-bots reading phone numbers and then having automated systems call you non-stop. Or them taking it and adding it to a list to sell to telemarketers.
#
Garbee
I don't think too many people (or even marketers directly) go around the web just looking for phone numbers to call.
#
bear
I had to take mine down - got added to robocall lists
#
@nitot
RT @IndieWebCampUK: IndieWebCampUK 2014 is in one week! Still some spots left, sign-up! http://indiewebcamp.com/2014/UK #indieweb
(twitter.com/_/status/506498779475107840)
snarfed1 joined the channel
#
Jeena
has someone here got the new Firefox Accounts server up and running? It seems very complicated to get it running with 5 or six deamons which have to run at the same time at different ports, etc.
snarfed joined the channel
#
GWG
Garbee: I was told Robert Scoble has his number up online. I could call him and ask
#
Garbee
do it.
#
GWG
Garbee: Then I'd have to talk to Robert Scoble
#
GWG
He seems like a handful
#
Garbee
Problem?
#
Garbee
Just make it quick.
#
ben_thatmustbeme
anyone know if you can put a link to the h-card on the main page and how to mark that up?
#
GWG
ben_thatmustbeme: Check the wiki...this is a hotly debated issue
alanpearce joined the channel
#
gRegor`
ben_thatmustbeme: Are you referring to the authorship algorithm? http://indiewebcamp.com/authorship#Determining
#
gRegor`
Authorship is usually the use-case, though.
#
gRegor`
There was some talk of abbreviated h-cards and linking to a full h-card. Not sure there's any examples of that yet, though.
ScruffyDan, snarfed, gRegor-phone and alanpearce joined the channel
#
KevinMarks
I never want anyone to phone me so not publishing my number makes sense
#
Loqi
Gwg has 16 karma
#
GWG
KevinMarks: What earned me that?
alanpearce joined the channel
#
KevinMarks
The comment about scoble
#
GWG
KevinMarks, still stalled on my new h-card
alanpearce and friedcell joined the channel
#
ben_thatmustbeme
to clarify, I have just started to clean up the microformats on my site. Currently it has h-card for each post which just has my name and photo
#
ben_thatmustbeme
hmm, i have an author link in there, perhaps i should link that to my new h-card page
alanpearce joined the channel
#
GWG
ben_thatmustbeme: I am working on a sidebar for it
#
ben_thatmustbeme
KevinMarks, I publish my number only to people who i white list to see it.
#
ben_thatmustbeme
once I have the admin pages for it done i plan to have it so I can group contacts and then select what contacts can see what info
#
ben_thatmustbeme
or rather what groups can see what info
#
GWG
I just don't know what everyone should see.
alanpearce, barnabywalters, alanpear_ and krendil joined the channel
#
digitalbliss.uk.com
edited /2014/UK/Guest_List (+75) "/* Participants */"
(view diff)
#
digitalbliss.uk.com
edited /2014/UK/Guest_List (-29) "/* Participants */"
(view diff)
#
digitalbliss.uk.com
edited /2014/UK/Guest_List (+54) "/* Participants */"
(view diff)
scor, alanpearce, barnabywalters, j12t, lukebrooker, ScruffyDan and bret_web joined the channel
fmarier and KartikPrabhu joined the channel
#
KartikPrabhu
did google completely drop XMPP support?
#
KartikPrabhu
can't connect to google chat via pidgin/jabber anymore
#
rascul
i had thought that they did awhile ago
lukebrooker joined the channel