#dev 2017-02-15

2017-02-15 UTC
colintedford joined the channel
#
aaronparecki.com
edited /create (+40) "/* Silo Examples */ add screenshot of the facebook create interface for pages"
(view diff)
miklb and KartikPrabhu joined the channel
#
GWG
What is the easiest way to take a set of parameters in a priority and return the first that exists in php?
#
Loqi
It looks like we don't have a page for "easiest way to take a set of parameters in a priority and return the first that exists in php" yet. Would you like to create it?
#
aaronpk
maaayyyybe i need a word length limit for Loqi's "what is"
#
GWG
aaronpk: Maybe
#
GWG
aaronpk: Any suggestions though?
#
aaronpk
not sure what you mean by "set of parameters in a priority"
#
GWG
Given an array, if key x is set, return that. If not, check for key y, if not, key z.
#
GWG
I'll give a use case.
#
aaronpk
sounds like a pretty short function
#
GWG
aaronpk: I was thinking there might be a more elegant way
#
GWG
I do this all the time
#
GWG
For example, I tried to map the reverse geolocation in nominatim to microformats
#
aaronpk
function dothething($keys, $array){ foreach($keys as $k){ if(array_key_exists($k, $array)) return $array[$k]; } return null; }
#
GWG
Yes, but when multiple things could map.
#
GWG
For example...
#
GWG
locality equals hamlet or village or town or city.
#
aaronpk
ah yes i've dealt with that exact problem
#
GWG
My current solution is messy. I was hoping to think of a nice way for me to do this in the priority I want to do it in.
[acegiak_net] joined the channel
#
GWG
Well, if you set an array in advance in order and run a function like the one you suggested above that breaks when it gets to the first one that fits...
#
GWG
I suppose that would be slightly neater and easy to maintain.
KevinMarks, KevinMarks_, singpolyma and [kevinmarks] joined the channel
#
[kevinmarks]
In php candidates you just say $locality = $hamlet | $village | $town | $city;
#
[kevinmarks]
That seems clearer than making an array and running a function
#
aaronpk
Well that assumes you have them in variables and that all the variables exist otherwise you get undefined notices
[eddie] and [kevinmarks] joined the channel
#
[kevinmarks]
Ah, right, and PHP doesn't have something like python's d.get(key,default)
#
GWG
See why I said that there was a solution that lacked simplicity and elegance.
tantek, KevinMarks, KevinMarks_ and cweiske joined the channel
#
@sl007
@joelpurra Nice ! Saw your CV - fyi : wrote indieauth for node.js last weeks, written in TS ... If knew before : We had an IWC in BER ...
(twitter.com/_/status/831793459933614080)
jonnybarnes and sebsel joined the channel
#
@joelpurra
@sl007 Thanks! Yay for node+TS; URL? Shame about missing the meeting; is there another? I should also add PGP indieauth btw =)
(twitter.com/_/status/831826536571494400)
#
tommorris.org
edited /Pinterest (+240) "adding WordPress-based POSSE"
(view diff)
gRegorLove, singpolyma, KartikPrabhu, KevinMarks and tantek joined the channel
#
headcrash.ascraeus.org profile dgold
created /10Centuries (+352) "prompted by gRegorLove"
(view diff)
#
gregorlove.com
created /10C (+25) "r"
(view diff)
#
gRegorLove
what is 10c
#
Loqi
10 Centuries(10C) is a blogging/microposting silo, similar in scope and intent to ADN, for posting notes(blurbs) of up to 1,024 bytes, and longer-form articles(blog-posts) up to 8,192 bytes https://indieweb.org/10C
#
gRegorLove
what is adn
#
Loqi
It looks like we don't have a page for "adn" yet. Would you like to create it?
#
gRegorLove
What is app.net
#
Loqi
App.net (ADN) is a microblogging silo similar to Twitter for posting notes of up to 256[1] characters in length https://indieweb.org/App.net
#
gRegorLove
What is ADN
#
Loqi
App.net (ADN) is a microblogging silo similar to Twitter for posting notes of up to 256[1] characters in length https://indieweb.org/ADN
#
loqi.me
created /adn (+20) "prompted by gRegorLove and dfn added by gRegorLove"
(view diff)
#
gRegorLove
what is adn
KevinMarks joined the channel
#
gRegorLove
what is adn
#
Loqi
App.net (ADN) is a microblogging silo similar to Twitter for posting notes of up to 256[1] characters in length https://indieweb.org/adn
#
gregorlove.com
edited /10Centuries (+63) "stub, formatting, see also"
(view diff)
[jeremycherfas], KevinMarks and singpolyma joined the channel
#
sebastiangreger.net
edited /Twitter_Cards (+412) "Link to workaround for SSL Handshake Error on HTTPS sites"
(view diff)
#
aaronpk
oof that's awkward
#
aaronpk
java really seems behind the times
#
aaronpk
i've had that same problem with apple and amazon's java clients. i have to give itunes and amazon a non-https feed of my podcast
#
tantek
that's messed up
#
aaronpk
yeah they don't support SNI!
#
tantek
and worthy of noting as an issue
#
tantek
what is iTunes
#
Loqi
iTunes is a service and application from Apple for music, video, podcasts, and other multimedia https://indieweb.org/iTunes
#
tantek
or even Criticism frankly
#
tantek
add it in the Criticsm section
#
tantek
also what do you mean by "and amazon" ?
#
aaronpk
also they don't support letsencrypt certs
#
tantek
does amazon have a podcast client?
#
tantek
definitely note that please!
#
aaronpk
no the amazon server that fetches my podcast feed for the Alexa service
#
aaronparecki.com
edited /podcast (+304) "/* iTunes */ document apple's lack of good https support"
(view diff)
#
aaronpk
that seemed like a more appropriate place, since it wasn't really part of the iTunes desktop program
KevinMarks joined the channel
#
GWG
Afternoon
[kevinmarks], KevinMarks_, tantek and KevinMarks joined the channel
arush joined the channel
#
gregorlove.com
edited /Main_Page (-20) "/* Homebrew Website Club */ 2/22 and 03/08 HWC"
(view diff)
#
aaronparecki.com
edited /events/2017-02-08-homebrew-website-club (-42) "update cover photo with pdx's this week"
(view diff)
#
ben.thatmustbe.me
edited /HubZilla (+145) "/* IndieWeb Compatibility */ add webmention sending support plugin"
(view diff)
singpolyma joined the channel
#
tantek
aaronpk - you realize that's a past event right?
#
tantek
are you doing that for link-preview purposes? (I mean that seems sensible)
#
tantek
also, it's a great photo
#
tantek
would be good to use that for the 2017-03-08 cover photo
#
aaronpk
no, it just seemed weird to have a cover photo with people who weren't at any of those events
#
tantek
hah, yeah just KevinMarks!
#
aaronpk
it makes a little more sense when the event is in the future
#
aaronpk
but once it's in the past, it's awkward
#
tantek
true!
#
tantek
perhaps that's worth adding an as explicit step
#
aaronpk
the grid one makes more sense to use as a cover photo because it doesn't look like it's a photo taken at an event
#
tantek
I wonder
#
tantek
I like rotating locations tbh
#
tantek
"small group of people" seems more inviting than a "grid"
#
tantek
and appearance of an actual venue gives more of an idea of what's going on
#
tantek
what the "feel" of the event will be
#
aaronpk
i feel awkward posting what looks like a photo of a specific group of people as a cover photo tho
#
aaronpk
maybe if it didn't have faces it would be more appropriate
#
tantek
interesting! I feel the faces make it more friendly!
#
aaronpk
it just ties it so specifically to a point in time, which is not the point of the cover photo
#
tantek
as opposed to blank outside of some building
#
aaronpk
oh another way to make it more cover photo-y would be to add extra artwork on it. like a gradient, or icons or something
#
tantek
does it? there's not much temporally evident in that cover photo
#
aaronpk
then it woudl look less like a photo taken at that event
#
tantek
(SF weather is fairly consisent year round ;) )
[jeremycherfas] joined the channel
#
tantek
looks like it could be any time
#
aaronpk
i think another factor here is that while this is trying to be a "cover photo", it doesn't actually bleed to the top of the page, so it kind of just looks like a regular photo
#
tantek
what does donutjs use for featured / link-preview photos for their event posts?
#
aaronpk
hm, no photos, just icons http://donutjs.club/
#
tantek
no cover photos on event pages "bleed to the top of the page"
#
tantek
even on FB, the blue toolbar is on top
#
aaronpk
the FB toolbar looks more like a toolbar than our wiki header tho
#
aaronpk
our wiki header is more like a "container" around the event
#
aaronpk
whereas the FB toolbar is stuck to the top of the browser and does not "contain" the event
#
tantek
yeah that's true, mediawiki kind of has two toolbars
#
tantek
the user-specific stuff at the very top, then some blank space, then the page-specific stuff
#
tantek
that's a good observation about FB's content design
sandro_ and [dgold] joined the channel
KartikPrabhu1 joined the channel
#
gregorlove.com
edited /events/2017-03-08-homebrew-website-club (-18) "/* Where */ update regions, display a couple more based on /2017-02-08-homebrew-website-club"
(view diff)
#
sebastiangreger.net
edited /Homebrew_Website_Club (+234) "/* Getting Started or Need Restarting */ +Berlin"
(view diff)
KartikPrabhu, KevinMarks and [kevinmarks] joined the channel
#
[kevinmarks]
I liked the idea of sorting by faces detected
Guest3356, [eddie] and chrisaldrich joined the channel
#
calumryan.com
edited /events/2017-02-22-homebrew-website-club (+363) "/* Where */ Adding London 22nd Feb"
(view diff)
#
calumryan.com
edited /events/2017-02-22-homebrew-website-club (+141) "/* RSVP */ Added London"
(view diff)
[chrisaldrich], chrisaldrich and [eddie] joined the channel