#indiewebcamp 2015-10-11

2015-10-11 UTC
tantek joined the channel
#
tantek
hey indieweb Curl fans, anyone understand a warning like: "Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set"
#
GWG
Good evening.
#
tantek
apparently the top results for "open_basedir" are all about this error - talk about a badly designed option
#
tantek
what even is open_basedir and what is it for?!?
j12t joined the channel
#
aaronpk
wow i haven't seen that one before
#
aaronpk
oh it's a security thing, i'm guessing pretty common for shared hosts to set i
#
tantek
just started happening
#
aaronpk
did your host change anything recently?
#
tantek
in response to curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
scoates joined the channel
#
tantek
no idea
#
tantek
aaronpk: I don't understand what a *local* open_basedir setting has to do with an HTTP curl request - this makes no sense
#
aaronpk
i'm guessing it has to do with the fact that a lot of the php functions treat local files and http URLS the same, like you can use file_get_contents on a URL or a local file
#
tantek
CURLOPT_FOLLOWLOCATION is to get curl to follow redirects right?
KartikPrabhu, squeakytoy and j12t joined the channel
#
tantek
does that mean PHP users of curl need to write their own redirect handling function to call before curl?
#
tantek
because curl is too dumb to not redirect to file: URLs?
#
aaronpk
i sure hope not
#
aaronpk
i can't get my curl to attempt to fetch a file:// URL
j12t joined the channel
#
tantek
so the warning and error due to open_basedir is just a bug in PHP then?
j12t joined the channel
#
aaronpk
looks like before that check, curl *was* able to access the filesystem
#
aaronpk
ugh js;dr caused archive.org to not get the contents of that URL linked
#
KartikPrabhu
that is a very clean page ;)
#
tantek.com
edited /js;dr (+602) "Security Trap article dead to archive.org, as predicted"
(view diff)
#
tantek.com
edited /js;dr (+90) "/* Security Trap */ found via"
(view diff)
squeakytoy, squeakytoy2, voxpelli, snarfed, kronda, tantek, wolftune, davbo, hugs-bison, petermolnar, lewisnyman and ramsey joined the channel
#
tantek
good night #indiewebcamp!
#
Loqi
laila tov!
loic_m, ventilateur, elf-pavlik, kronda, ramsey, voxpelli, davbo, catsup and lewisnyman joined the channel
#
@jakub_kulak
RT @kevinmarks: #indieweb @kevinmarks: AMP, Facebook Instant Articles and Apple News are like 3 new browsers that only support a subset of …
(twitter.com/_/status/653144163760910336)
lewisnyman, Tino__, loic_m, j12t and elf-pavlik joined the channel
indie-visitor joined the channel
#
Loqi
Welcome, indie-visitor! Set your nickname by typing /nick yourname
j12t, nitot, nitot_, joskar, scoates, Tino__ and snarfed joined the channel
#
@DrHeavenyC
#indiedev #IndieBooksBeSeen #Indie #IndieDevHour #indiefilm #comics #art #indieweb #IndieRock #Indiepower #IndiePub https://twitter.com/AndrewB38318871/status/653229909309919233
(twitter.com/_/status/653231225843249157)
wolftune, ventilateur, ttepasse, j12t and [shaners] joined the channel
#
[shaners]
I think it’s really great the effort aaronpk put in to get Slack integration working so well. :star2:
#
iamshane.com
created /User:Veganstraightedge.com (+2333) "Created page with "= Shane Becker = '''<dfn>Shane Becker</dfn>''' is a co-founder of Hypernova which is making Homesteading. He lives and works at The Farmhouse in Hollywood, California. <span st...""
(view diff)
scoates and icco joined the channel
#
iamshane.com
edited /User:Veganstraightedge.com (+14) "/* Shane Becker */"
(view diff)
#
iamshane.com
edited /User:Veganstraightedge.com (-165) "/* Other Projects */"
(view diff)
#
iamshane.com
edited /User:Veganstraightedge.com (-99) "/* Elsewhere */"
(view diff)
#
[shaners]
tantek: h2vx breaks for my vCard link
#
[shaners]
> Fatal error: Call-time pass-by-reference has been removed in /home/tantek/domains/h2vx.com/public_html/vcf/get-contact.php on line 106
#
iamshane.com
edited /User:Veganstraightedge.com (+8) "/* Contact and License */"
(view diff)
#
Zegnat
[shaners], tantek isn't in right now, try that same message with !tell in front to have Loqi pass on the message
#
iamshane.com
edited /User:Iamshane.com () "(-2239) Redirected page to [[User:Veganstraightedge.com]]"
(view diff)
#
[shaners]
@zegnat Oh yeah. Duh. Thanks!
#
[shaners]
!tell tantek: h2vx breaks for my vCard link
#
Loqi
Ok, I'll tell him that when I see him next
#
[shaners]
> Fatal error: Call-time pass-by-reference has been removed in /home/tantek/domains/h2vx.com/public_html/vcf/get-contact.php on line 106
#
[shaners]
@loqi Where do you get your pronouns for users from?
nitot joined the channel
#
aaronpk
it's a secret
#
[shaners]
aaronpk: Is there somewhere on the wiki where people can specify their preferred pronouns?
#
aaronpk
no but I want to do that, or have it read pronouns from the h-card on your home page
#
[shaners]
I remember seeing someone suggesting a microformat property addition to h-card for prepositions. Maybe it was kylewm ?
#
aaronpk
a nicknames cache is basically a list of h-cards right?
j12t joined the channel
#
[shaners]
aaronpk: right
#
aaronpk
that means I can create them using micropub, which is great
#
aaronpk
problem is they are not "posts" and I don't want them in my stream of posts, nor do I want their URLs or identifiers to follow the format of my posts
#
aaronpk
the same is true for venues once I do that for checkins
#
aaronpk
which means I need some concept of different collections/sets of objects, and Micropub needs a way to indicate which collection it's writing to
#
[shaners]
Like a post-type field?
#
aaronpk
I think it's more than just the post type
peacekeep3r1 joined the channel
#
[shaners]
Can you use a URL to represent that collection?
#
KartikPrabhu
reads back log
#
tommorris
I finally got to do some more work on ferocity2 today.
mlncn, nitot, Tino__, j12t, friedcell, eschnou and [kevinmarks] joined the channel
lewisnyman and friedcell joined the channel
#
GWG
I'm really enjoying following the commentary on the AMP project. Lots of familiar handles
#
aaronpk
haha yeah
snarfed, ventilateur, friedcell, Unifex, eschnou, j12t, nitot, lewisnyman and [kevinmarks] joined the channel
#
[kevinmarks]
I think we are broadly in sympathy with their goals, but are trying to tone down the buts that are different from html just for the sake of it.
#
KartikPrabhu
s/buts/bits
#
GWG
kevinmarks: I'm conflicted about the javascript library part. And I don't use javascript myself.
#
KartikPrabhu
[kevinmarks]: I agree. just usual HTML/CSS/JS written with performance in mind is pretty good
#
KartikPrabhu
the "page is invisible unless JS" is the most annoying but
#
GWG
Do we have something in the wiki about pages and how they display with JS disabled?
#
GWG
That might be a fruitful endeavor
#
[kevinmarks]
What is js;dr
#
Loqi
js;dr is JavaScript required; Didn’t Read https://indiewebcamp.com/js;dr
#
GWG
kevinmarks: That is pages that require Javascript. I was thinking of some thoughts on designing for JS to act as an enhancement as opposed to a requirement.
#
[kevinmarks]
That is the deeper point, yes. That is what I was getting at with 4 versions of my page
nitot joined the channel
#
GWG
kevinmarks: I was suggesting elaboration on deeper point in the wiki somewhere.
#
GWG
I have one page I maintain for someone with 48 scripts loading. It shocked even the owner.
#
GWG
And it isn't the worst I've seen.
#
GWG
I once quit an admin side gig I was doing over that issue.
snarfed joined the channel
elf-pavlik_ joined the channel
#
GWG
aaronpk: Does this mean I might finally get a chance to see you record your food intake in person?
#
GWG
If it is you, rhiaro, and tantek I'll be surrounded by vegetarians/vegans. Which is probably fortunate that when out I usually eat like a pescatarian.
mlncn and KartikPrabhu joined the channel
#
veganstraightedge.com
edited /Homesteading () "(-4332) Trim down Homesteading wiki page while we re-build it all again. ¯\_(ツ)_/¯"
(view diff)
joskar, nitot and j12t joined the channel
#
aaronpk
ben_thatmustbeme: do you store contacts on your site yet?
#
aaronpk
oh you did but removed it recently IIRC
tantek and j12t joined the channel
#
ben_thatmustbeme
aaronpk: not yet, i have only simple things of URL and name thus far
lewisnyman joined the channel
#
aaronpk
i'm curious about your thoughts on this: https://github.com/aaronpk/Micropub/issues/12
#
ben_thatmustbeme
http://aaronparecki.com/tantek is that something you would show on the page?
#
ben_thatmustbeme
if not, they mp-url
#
ben_thatmustbeme
is how i would do it
#
ben_thatmustbeme
other option is conatact[url] or something like that
#
aaronpk
yeah pretty sure i'd includ my permalink for the thing
#
aaronpk
i already do for events
#
ben_thatmustbeme
the way i do it, i don't store the location of my contact on my site anywhere in it
#
ben_thatmustbeme
i just assume any that use the same URL are the same contact
#
ben_thatmustbeme
so just url[]=tantek.com url[]=twitter.com/t
#
ben_thatmustbeme
and it knows to add
#
aaronpk
how does it know which contact to add it to?
#
ben_thatmustbeme
its more like 'create a new contact' and then the system on the site recognizes, OH, i already have one of those in an existing contact
#
ben_thatmustbeme
and merges them
#
aaronpk
hm yeah guess that works
#
ben_thatmustbeme
it puts the idea of merging contacts as a primary concept
#
aaronpk
that wouldn't work for many of my events though, since i've seen a bunch of events that re-use the same permalink for future years :(
[shaners] joined the channel
#
[shaners]
aaronpk: I don’t like mp-url. It’s not very obvious or self-documenting to my eyes.
#
aaronpk
even when you'd be including a parameter "mp-action=edit"?
#
[shaners]
Yeah. Bc it’s not the url of your micropub dingus. It’s the url of an object/resource/contact/thing in your collection of things.
#
[shaners]
To me, it’d read better if it was like: thing-url or mp-thing-url
#
[shaners]
(not actually “thing”, but some noun)
#
aaronpk
what about "id"?
#
[shaners]
i don’t hate `id`
#
[shaners]
or `uid`?
#
[shaners]
(does h-card have `u-uid` on it?)
#
aaronpk
oh yeah uid is a thing
#
[shaners]
then `id` feels good to me
#
aaronpk
why not "uid" then I guess?
#
[shaners]
I thought you just meant that uid is on hcard and would conflict all the same
#
aaronpk
looks up the definiteion of uid
#
[shaners]
(or at least, it’s on hentry and would click there, but not if you prefixed it)
#
[shaners]
also, how married to abbreving your micropub prefix to `mp-` as opposed to spelling it out ‘micropub-`?
#
aaronpk
http://microformats.org/wiki/h-card "u-uid - unique identifier, often canonical URL"
#
aaronpk
if uid is supposed to be the canonical URL, then yeah I can't use it for the local URL
#
[shaners]
right. that’s what i’m thinking.
#
[shaners]
but `id` is prolly ok for a local URL. :shrug:
#
aaronpk
hadn't thought about micropub-* vs mp-*, but went with "mp" in the first place because it's short
#
[shaners]
Mostly humans won’t be writing these HTTP posts. Software will, right?
#
[shaners]
(AtomPub called this kind of thing `Location` or `Content Location`. Both are not great.)
#
[shaners]
I’m generally in favor of spelling it out and not abbreving (see what I did there?) unless it’s a thing that’ll be human typed a lot.
#
[shaners]
Spelled out is better documentation and less ambiguous.
#
[shaners]
-d micropub-action=edit
#
[shaners]
-d micropub-id=<http://aaronparecki.com/tantek> # This is the URL of my copy of the contact
#
[shaners]
-d url[]=<https://twitter.com/t> # this is the URL I want to add to the contact
#
aaronpk
(for the record, the <> around those URLs are an artifact from Slack)
#
[shaners]
WOOO SLACK! :stuck_out_tongue:
#
aaronpk
my filter must not have matched those because of the = right before them
#
aaronpk
well that isn't horrible
#
aaronpk
I think I'll wait for some more people to weigh in on this before doing anything
#
[shaners]
Agreed. :thumbsup::skin-tone-2:
nitot, KartikPrabhu and peacekeep3r1 joined the channel
#
ben_thatmustbeme
uid does make sense aaronpk
#
ben_thatmustbeme
makes sense to me anyway
#
aaronpk
it has the same problem as "url" tho, since it's supposed to be the canonical URL, which means for an event that lives on indiewebcamp.com, the uid of that on my site would still bet he indiewebcamp.com URL
#
KartikPrabhu
i don't think u-url is supposed to be canonical though
#
aaronpk
no, u-uid
#
aaronpk
if "canonical" means canonical within the domain, then this isn't a problem and I can use it
#
aaronpk
for example, this is my local URL for homebrew website club, but the canonical URL is on indiewebcamp.com http://aaronparecki.com/events/2015/10/07/1/homebrew-website-club
#
aaronpk
what's the proper value for "u-uid" on that post?
#
tantek
canonical means globally (web / DNS - wide)
#
Loqi
tantek: [shaners] left you a message 6 hours, 49 minutes ago: h2vx breaks for my vCard link http://indiewebcamp.com/irc/2015-10-11/line/1444581599465
#
tantek
hence rel=canonical
#
tantek
uid = *universal* id
#
tantek
universal potentially implying universe-wide
#
tantek
there's no other way to interpret this
#
aaronpk
okay then I can't use that as the local identfier for the post on my site
#
tantek
there's no logical room for "if "canonical" means canonical within the domain"
#
tantek
what is a local identifier on your site?
#
Loqi
It looks like we don't have a page for "local identifier on your site" yet. Would you like to create it? http://indiewebcamp.com/s/104X
#
aaronpk
the confusion came from the mf2 wiki, which said "canonical" for uid on h-card but not for uid on h-entry
#
aaronpk
(also "uid" is not actually expanded to "universal id" there)
nitot joined the channel
#
tantek
that's a good point. uuid is used for that universally unique id
#
tantek
I'll make it explicit in both
#
tantek
"universally unique identifier, typically canonical URL"
#
tantek
done. thanks for the heads-up about the specific point of confusion!