#dev 2017-09-04

2017-09-04 UTC
#
gRegorLove
wget: 2 minutes, 7 seconds.
#
gRegorLove
Appears to be something related to ipv6. When I add --inet4-only it's 3 seconds
#
aaronpk
Whoa weird
davidmead, tbbrown, tantek and KartikPrabhu joined the channel
#
tantek.com
edited /create (+82) "/* FB Something went wrong */ happened again"
(view diff)
#
tantek.com
edited /create (+60) "/* FB Something went wrong */ save draft or create"
(view diff)
#
tantek.com
edited /create (+446) "/* Facebook Events */ FB Warning Slow Down"
(view diff)
[miklb] joined the channel
#
loqi.me
created /ActivityStream (+28) "prompted by [miklb] and dfn added by tantek"
(view diff)
#
tantek.com
edited /create (+342) "/* Facebook Events */ FB Went Wrong But Created Event"
(view diff)
tantek, KartikPrabhu, gRegorLove, snarfed, barpthewire, cweiske, [pfefferle], loicm and jeremycherfas joined the channel
#
jeremycherfas
!tell manton No problem with micro.blog; just an observation. The problem is with the feed I am sending.
#
Loqi
Ok, I'll tell them that when I see them next
EmreSokullu, jeremycherfas_ and [pfefferle] joined the channel
#
loqi.me
edited /User:Kaja.sknebel.net (+31) "sebsel added "PM-countdowns for sknebel :P" to "See Also""
(view diff)
jeremycherfas_, EmreSokullu, rhiaro, jeremycherfas, loicm, davidmead and sknebel joined the channel
#
aaronparecki.com
edited /multi-photo (+98) "/* Instagram */"
(view diff)
#
jeremycherfas
Is there some general magic to getting HTML into a PHP string? My literal seems to stop when it encounters <a> but if I escape with \<a\> then the backslashes are included. Is there an equivalent to the reverse of strip_tags, or similar?
#
aaronpk
Try using single quotes like '</a>'
#
jeremycherfas
Within double quotes, so “text ‘<a>’ linktext”
#
aaronpk
"hello <a>" is fine like that
#
aaronpk
What do you mean it "stops"?
#
jeremycherfas
I have to go out now. Will resule later with more details/ Thanks aaronpk
[kevinmarks] and tantek joined the channel
#
tantek
aaronpk - point being (re: persontags) that there are multiple problems with representing multi-photos
#
tantek
or rather, anything beyond "simple" multi-photos where all the other "stuff" on the post by default applies to *every* photo in a multi-photo (e.g. person-tags, tags, comments, likes etc.)
#
tantek
as soon as you want to do *anything* special per-photo in a multi-photo (e.g. caption, tag, person-tag, etc.) then it really is more than one post
#
tantek
because it's important to keep posts simple
#
aaronpk
I guess it's a parent h-entry for the main post, with its caption and date and such, then a bunch of child h-entrys for the individual images, where they only have a couple properties like the photo itself and the person tags
#
aaronpk
that would also allow specific ordering of photos mixed with videos
#
tantek
yeah you could use hierarchical h-entry(s) like that
#
tantek
then it's odd for each h-entry to not have its own permalink though
#
aaronpk
Possibly
#
aaronpk
it depends on whether each has its own URL in the UI
#
tantek
unless you want to discourage (disallow?) responses to the individual h-entry photos
#
aaronpk
if it does, then it sounds more like an album really
#
aaronpk
like on Flickr
#
tantek
exactly! that's why I kept saying you want a photo album
#
aaronpk
but instagram multi photos don't behave like albums at all
#
tantek
no there's lots of overlap
#
tantek
also it depends on what you consider the "essential" aspects of an album
#
aaronpk
you can't add a description to the individual photos, and you can't later add a photo to another album
#
tantek
you can't edit notes on Twitter but they're still notes
#
aaronpk
those are both aspects of how albums on Flickr work
#
tantek
"can't add a description" is not really a good argument, the counter is that you *can* add per-photo person-tags
#
tantek
thus you *can* add *some* per-photo information
#
tantek
that's the essential bit
#
tantek
not "you can add *all* types of info per-photo"
#
tantek
Flickr just has more more features in their album support
#
aaronpk
I think the essential "album" bit for me is whether a photo can exist in multiple albums
#
aaronpk
probably because I use that on Flickr often
#
tantek
yes that seems like a Flickrism
#
tantek
certainly physical photos can only be in a single photo album each :P
#
tantek
another thing to possibly look into is how IG cross-posts a multi-photo post to FB
#
tantek
I have seen them occasionally (on FB, from IG)
#
aaronpk
I'm kind of leaning towards adding support for multiphotos that contain only photos, and just skipping posts that also include videos for now
#
aaronpk
cause I'm pretty happy with my implementation of simple multi photos for now
#
aaronpk
manton just added multi photos to micro.blog as well so we'll have some people using it pretty quick
tantek, jeremycherfas, EmreSokullu and EmreSoku_ joined the channel
#
jeremycherfas
is resuming
#
jeremycherfas
So this $mydescription = "PESOS from '<a>'"; results in this PESOS from ''
#
aaronpk
What do you mean "results in"
#
jeremycherfas
And this $mydescription = "PESOS from <a>"; results in PESOS from
#
aaronpk
if you're displaying that string as HTML then that's correct because there is an empty <a> tag with no content in it
#
jeremycherfas
When I simply echo $mydescription;
#
aaronpk
Echo to a browser?
#
aaronpk
Right that's why
#
jeremycherfas
That’s perobably it. I am a dunce. Let me try in term
#
aaronpk
the browser is interpreting it as HTML
#
tantek
jeremycherfas: what is the <a> for?
#
tantek
what are you trying to achieve?
#
jeremycherfas
That’s it aaronpk. I am a dunce.
#
aaronpk
If you view source in the browser you'll see the tag too
#
jeremycherfas
Tantek: I am trying to build a link that contains a variable as the link text.
#
tantek
jeremycherfas: presumably you also want the link to actually be clickable right? you need an 'href' attribute for that inside the <a> like <a href="http://example.com/>
#
tantek
(with a closing " lol - see it's too easy to make markup errors ;) )
#
tantek
no dunces here, just everyone learning different things :)
#
jeremycherfas
Yes, I’ll get there in the end. But building my thing in very small stages.
#
tantek.com
edited /create_event (+3788) "move FB event creation UI documentation from [[create#Facebook]], emojicon"
(view diff)
#
tantek
incremental building is a very practical approach
#
tantek.com
edited /create_event (+267) "Google Calendar"
(view diff)
#
tantek.com
edited /create () "(-1841) move FB create event details to separate page for create event because it's pretty different in practice from creating notes"
(view diff)
gRegorLove joined the channel
#
tantek
jeremycherfas, sometimes very small stages themselves can be a big challenge
#
jeremycherfas
Tell me about it.
#
tantek
I'm still trying to figure out what small improvement I can make to my site for Wednesday's HWC SF
#
tantek
consider yourself in good company :)
#
tantek
going to go offline for a bit to think about it to see if I come up with something minimal / doable, perhaps from my itches list.
#
jeremycherfas
OK, so this $mydescription = 'PESOS from <a href="' . $result['guid'] .'"'. '>reading.am</a>';
#
jeremycherfas
Results in the perfect HTML of <a href="https://www.reading.am/p/4Njk/https://www.tbray.org/ongoing/When/201x/2017/09/03/Murder-chez-Hitler">reading.am</a>
#
jeremycherfas
Which is exactly what I want.
#
jeremycherfas
This $known['body'] = json_encode(array(["body"=>$mylink], ["description"=>$mydescription]));
#
jeremycherfas
No, ignore that.
#
jeremycherfas
So, let’s see what happens when I post that. I’m hoping Known won’t take it upon itself to strip the tags.
#
Zegnat
crosses fingers for jeremycherfas
#
jeremycherfas
Thanks zegnat. Didn’t quite do it. I can now send a clean link, removing the reading.am stuff. $result['link'] But no luck putting the PESOS stuff into description.
#
jeremycherfas
A task for tomorrow.
#
Zegnat
Is there a description of the Known API somewhere?
#
jeremycherfas
Not in great details, and it doesn’t give a bookmark example. But you are supoposed to be able to GET the details from any endpoint. So that’s where I will go tomorrow.
#
jeremycherfas
Gotta go. A domani.
EmreSokullu, loicm, Kaja_, wagle, sebsel, dgold and snarfed joined the channel
#
tantek.com
edited /Falcon (+2106) "/* Working On */ some ideas for small improvements: Display RSVPs summary, Display likes facepile on events, Display reposts facepile on events"
(view diff)
tantek joined the channel
#
tantek
those are a few small ideas, going to see how feasible each is. maybe I'll try one today
#
snarfed
tantek++ i'd love to see more responses on your site! esp since it's so often taken as an (unofficial) indieweb example
#
Loqi
tantek has 14 karma in this channel (384 overall)
#
tantek
snarfed heh, no pressure, I get it. ?
snarfed joined the channel
#
tantek.com
edited /rsvps (+2133) "existing FB event posts screenshots have some RSVP info, might as well include those here"
(view diff)
EmreSokullu joined the channel
#
tantek.com
edited /rsvps (+284) "Brainstorming / Going and Interested"
(view diff)
#
tantek.com
created /blindspot (+105) "stub"
(view diff)
#
loqi.me
edited /lulz (+16) "tantek added "[[blindspot]]" to "See Also""
(view diff)
EmreSokullu and tantek joined the channel
#
tantek.com
edited /MediaWiki:Sidebar (-60) "next camps!"
(view diff)
#
tantek.com
edited /next-iwc (+8) "Dortmund!"
(view diff)
davidmead joined the channel