#indiewebcamp 2014-01-23

2014-01-23 UTC
scor joined the channel
#
j12t
aaronpk -- whatever magic you did, it worked!
caseorganic joined the channel
#
aaronpk
I updated the system "nss" package which has something to do with ssl
#
aaronpk
so that is good
#
upon2020.com
edited /WordPress (+87) "editorializing on NextScripts SNAP"
(view diff)
#
snarfed
finds upon2020's nick
#
snarfed
oh it's j12t :P
#
snarfed
johannes, mind if i drop the "unaware of replies" part of that edit, given the link above?
#
aaronpk
or add "is aware of replies" with the citation? :)
#
snarfed
yup! it's already in /backfeed, but on WordPress is good too.
#
j12t
perhaps I'm not using it right?
#
snarfed.org
edited /backfeed (+103) "/* WordPress Plugins */"
(view diff)
#
snarfed
not using the plugin right?
#
snarfed.org
edited /WordPress (+129) "/* POSSE */"
(view diff)
#
j12t
I'm playing with different plugins. SNAP so far posts, but it's write-only. http://wordpress.org/plugins/social/ claims that it can pull in reactions
#
j12t
I haven't tried that yet
tantek joined the channel
#
snarfed
i see. i've tried both, and also jetpack's publicize, but all a while ago.
#
snarfed
i never tried snap's backfeed, i just knew to point to that link that described it :P
poppy joined the channel
#
tantek
good to see those questions being discussed
#
tantek
that's just the kind of thing that a new wordpress user would be confused about
#
tantek
aaronpk - haha - I got the same thing: "… is—or should be—friends with Bret Comnes."
#
j12t
snarfed -- finally I found the replies setting you pointed to. Doesn't help that the documentation and the code seem out of sync.
#
snarfed
j12t: yeah. snap has a lot of power and depth, but the polish is inconsistent
jchivers joined the channel
#
snarfed.org
edited /WordPress (+83) "/* Plugins */"
(view diff)
li3n3 joined the channel
#
bret
that report card thing is weird :p
caseorganic joined the channel
#
tantek
as was the article(s) that it linked to
#
KartikPrabhu
bear: looking at the Django URLValidator https://github.com/django/django/blob/master/django/core/validators.py#L48 That thing uses so many other functions from Django utils to work properly. Having Django as a requirement for ronkyuu seems like overkill
#
bear
KartikPrabhu - agree, I was just pointing to it as a source of a regex and also possibly test cases
#
bear
definitely did not want to drag in all of django
#
tantek
aaronpk, bret particularly disturbing is the evidence of women being treated poorly on IRC/email etc.: https://twitter.com/taylorotwell/status/400355857172426752
#
tantek
so I will say this now explicitly - if anyone here (especially women, PoC, given the data in that thread) is harassed due to participation in #indiewebcamp, please let me or any other admin know - we want this channel to be welcoming and will take feedback/datapoints to improve
#
tantek
though this http://indiewebcamp.com/code-of-conduct is explicitly for IndieWebCamp events, I think it's reasonable for the channel as well
#
aaronpk
that's totally reasonable
#
KartikPrabhu
bear: of course! I was trying to write a custom class based on what Django is doing. But they have a lot many checks in place, like distinguishing between Py3 and Py2 string types!!
#
bear
KartikPrabhu - ah, did not see all that extra overhead (tho it would be nice to add soon)
#
bear
maybe we need a more data driven one - use urlparse and then pass in flags as to which part of a url is to be validated
#
KartikPrabhu
bear: will see let me attempt one tonight and we can improve from there
#
tantek
j12t - there are people here who do separate streams (and home pages) for notes (tweets), and articles (blog posts)
#
j12t
This is the Mailchimp "social" Wordpress plugin. Trying to compare.
caseorganic joined the channel
#
tantek
I myself have a blogpost-only feed for aggregation into Planet Mozilla
#
tantek
my default feed gets everything - and people say they like that. I've gotten very few requests for the articles-only feed.
#
j12t
How do you distinguish between them when posting?
#
tantek
you mean what's the difference between an article and a note? ;)
#
j12t
well I'm not sure whether the intelligence is in your brain, or in your software
#
j12t
in this particular situation, I mean :-)
#
tantek
a little of both :D
#
j12t
it's a different content type?
#
tantek
yes I use different explicit post types
#
bret
yikes on those links tantek! Thats lame
#
tantek
bret - yeah. :/
#
tantek
It means it's something we have proactively look out for
#
bret
obvious 'fork me' reference was always obvious
#
bret
and unfortunate :p
tilgovi joined the channel
#
bret
silly github, I'm surprised there isnt more pressure on them to drop the 'me' from those page badges
#
snarfed
j12t: many indieweb people separate their posts into explicit content types at the top level - note, article, photo, event, etc - but you don't have to
#
snarfed
i don't
#
snarfed
you want to include the right mf2 when you need it, of course, but that doesn't mean your server has to differentiate top-level post types, nor you when you author them
#
snarfed
it's just a common pattern
#
tantek
j12t - to answer your specific question, the distinction for me in Falcon is notes are unnamed and have plain text content (which gets auto-linked and embedded), whereas articles have an explicit name in an <h1> element, and then explicit markup in the e-content.
#
tantek
as well as separate h-as-note vs h-as-article root class names on the h-entry
#
tantek
so I write them slightly differently in my "authoring interface", and they're published with different markup
#
tantek
my replies and RSVPs are just special notes
#
tantek
though technically I can write an article as a reply as well
#
tantek
(and I think I have a couple of times)
#
tantek
my latest content type challenge is how to do event posts
#
tantek
since they're different from both notes and articles!
#
tantek
from storage, to markup, to presentation, to feeds. all different for events and what people expect.
#
snarfed
tantek and i are racing to see who will implement events first
#
tantek
um, I didn't realize we were racing. oh dear.
#
snarfed
it's an unfair race, since he didn't know he was in it until just now, and since i suspect it'll be way less work for me to get it into bridgy
#
snarfed
don't worry tantek, i didn't mean it!
#
tantek
j12t - I've been collecting my thoughts on events here as I think I figure things out: http://indiewebcamp.com/event#Design_Brainstorming
fmarier joined the channel
#
tantek
snarfed, the real events race for me is to get event posts sufficiently in advance of the 2014-02-12 HWC meetup to post an event for it
#
tantek
get event posts *working
#
KartikPrabhu
bear: Modified version of Django's validator - https://github.com/kartikprabhu/ronkyuu/blob/master/ronkyuu/validators.py might need some thorough testing before incorporating into ronkyuu code. Let me know if it fails somehow. I am testing as well.
#
bear
KartikPrabhu - thanks, I will try and get to it tonight - if your tests work out for you then just include it - I will adjust on my side
#
KartikPrabhu
anyone else who wants to stress test the above would be appreciated!
tantek and caseorganic joined the channel
#
KartikPrabhu
is there a way to prevent submission of an empty form in HTML with out Javascript?
#
KartikPrabhu
Google only tells me javascript ways
snarfed joined the channel
#
hallettj
KartikPrabhu: It won't work in all browsers
#
hallettj
but you could try HTML5 form validation. http://diveintohtml5.info/forms.html
#
hallettj
Put a "required" attribute on at least one input tag.
#
KartikPrabhu
hallettj: thanks! I will then add further checks server-side for non-HTML5 ones :)
#
KartikPrabhu
hallettj++
#
Loqi
hallettj has 2 karma
snarfed, caseorganic and scor joined the channel
#
KartikPrabhu
bear: also sent PR about validation changes
#
gregorlove.com
edited /webmention (+614) "/* IndieWeb implementations */ Adding myself to 'In progress' :)"
(view diff)
gRegorLove joined the channel
#
gRegorLove
I'm proud to list myself as 'in progress' for webmentions on my site now. :) http://indiewebcamp.com/webmention#In_progress
#
snarfed
congrats gRegorLove!
#
KartikPrabhu
gRegorLove: good work!
#
gRegorLove
Thanks :)
#
snarfed.org
edited /WordPress (+1661) "big refactoring"
(view diff)
#
snarfed.org
edited /WordPress (+173) "indiewebify"
(view diff)
#
snarfed
anyone here know how to upload an image to indiewebcamp.com?
#
snarfed.org
edited /WordPress (-2) "/* WordPress software */"
(view diff)
#
snarfed
!tell tantek took a stab at refactoring http://indiewebcamp.com/WordPress to be more newbie friendly
#
Loqi
Ok, I'll tell him that when I see him next
#
KartikPrabhu
!tell snarfed there is a upload file at the bottom of the page
#
Loqi
Ok, I'll tell them that when I see them next
snarfed joined the channel
#
Loqi
snarfed: KartikPrabhu left you a message 1 minute ago: there is a upload file at the bottom of the page
tantek joined the channel
#
Loqi
tantek: snarfed left you a message 7 minutes ago: took a stab at refactoring http://indiewebcamp.com/WordPress to be more newbie friendly
pfenwick joined the channel
#
bear
KartikPrabhu - can I ask that you update your fork from the repo when preparing for a fresh PR - I keep losing small changes in order to get your PR to merge clean
#
bear
heck, unless you say no, i'm going to add you to the committers list
#
bear
!tell KartikPrabhu ok, added you as a contributor, updated readme and all that and also tweaked some docs - thanks!
#
Loqi
Ok, I'll tell them that when I see them next
cweiske, snarfed, LauraJ, Jihaisse, dvirsky, eschnou and carlo_au joined the channel
#
KartikPrabhu
bear: of course. new to Git so did not know that that was a problem. Updated my fork now. Will keep in mind from now on :)
#
Loqi
KartikPrabhu: bear left you a message 1 hour, 49 minutes ago: ok, added you as a contributor, updated readme and all that and also tweaked some docs - thanks!
#
bear
KartikPrabhu - no worries :)
#
bear
actually now your a contrib - you can checkout and commit to the repo directly
#
KartikPrabhu
yes, saw that. thanks for adding me.
#
bear
thank you for helping make it an even better library
glennjones, tilgovi, squeakytoy, pfefferle and LauraJ joined the channel
#
pfefferle
hello Jihaisse
BjornW joined the channel
#
wagle
bye bye (sigh)
Jihaisse and Acidnerd joined the channel
Loqi joined the channel
#
jonnybarnes
but I have about 17 short URLs based on random slugs, the data is backed up and I'm thinking of just pointing requests to those to a text dump of the redirections
#
barnabywalters
jonnybarnes: first three characters are nb60 epoch day, last three characters are number of seconds into that day
#
jonnybarnes
but what if you post two notes in the same second? its doable /s
#
barnabywalters
I’ve never done it yet :)
skinny joined the channel
#
cweiske
barnabywalters, which epoch?
#
barnabywalters
cweiske: the unix epoch, I think
#
jonnybarnes
in PHP, is there an easy way to convert a stdClass to a string?
glennjones joined the channel
#
barnabywalters
jonnybarnes: (string) $object will cast an object to a string
#
cweiske
it will do a __toString() call
#
Jihaisse
pfefferle: hey, I saw that you've worked a lot on webmention plugin for wp !
#
jonnybarnes
I have a variable `$response = json_decode(TWITTER_API_RESPONSE)`
#
jonnybarnes
when I get an error I just want to dump that into the browser for me to look at
#
pfefferle
Jihaisse yes and on the semantic linksbacks plugin too
#
jonnybarnes
but I cant just echo $response
#
jonnybarnes
I get ErrorException Object of class stdClass could not be converted to string
#
Jihaisse
pfefferle: what is the semantic linksback ?
#
pfefferle
Jihaisse we moved all the semantic parsing stuff into a seperate plugin, so that the webmention plugin only handles pure webmention stuff
#
barnabywalters
jonnybarnes: you want print_r()
#
jonnybarnes
I'm being stupid barnabywalters, I can just use the raw JSON that twitter sent me
#
Jihaisse
pfefferle: ok, great !
#
pfefferle
Jihaisse thanks! it's getting better and better, thanks to a lot of feedback of snarfed :)
#
Jihaisse
pfefferle: cool.
#
jonnybarnes
aaaah! I had an error posting to twitter, so I change my code to better display errors. and now theres no error posting to twitter!!!!
#
jonnybarnes
like what the hell
#
barnabywalters
I’ve found twitter’s API error reporting to be less than helpful
#
barnabywalters
IIRC it gives Unauthorized or generic 400 responses if your content is too long
skinny joined the channel
sn0rri and LauraJ joined the channel
KartikPrabhu, pfefferle, pasevin, bnvk, Sebastien-L and glennjones joined the channel
#
jonnybarnes
this should work, if you goto an old short URL such as https://jmb.so/QCDv then you'll get the URL it redirects to which is looked up from this file: https://jonnybarnes.net/assets/old-shorturls.json
#
jonnybarnes
thats as much backward compatability as I can be bothered doing
CheckDavid joined the channel
#
barnabywalters
jonnybarnes: nice! might it be an idea to actually redirect to the URL?
#
jonnybarnes
youre just so demanding barnabywalters :P
#
barnabywalters
a 301 Moved Permanently with Location: header set to the old URL
#
barnabywalters
jonnybarnes: you’re using a modern PHP framework, being at least vaguely web-friendly is easy ;)
#
barnabywalters
or should be at least
#
barnabywalters
in silex it’s a matter of return $app->redirect($url)
#
jonnybarnes
Yeah, `return Redirect::to('url');`
#
barnabywalters
I have a bunch of redirects hard-coded into a .htaccess file somewhere :)
#
jonnybarnes
redirecting now
bnvk, scor, pasevin, glennjones, tilgovi, LauraJ and chloeweil joined the channel
#
KartikPrabhu
http://kartikprabhu.com/connection/webmentionsender now sends webmentions! Also unintended consequences of sending unfiltered webmentions http://kartikprabhu.com/article/blogging-dead#responses
#
KartikPrabhu
sent a webmention to a post from its own comment!
Sebastien-L, snarfed, scor, LauraJ, KartikPrabhu, glennjones, benprew, _6a68, jonnybarnes and friedcell joined the channel
#
notizblog.org
edited /WordPress (+216) "Added webmention-form plugin"
(view diff)
#
notizblog.org
edited /WordPress (+0) "fixed link"
(view diff)
#
tantek.com
edited /2014/NYC (-137) "remove RnRSF conflict date"
(view diff)
tantek joined the channel
#
tantek
!tell snarfed nicely done with the WordPress - MUCH friendlier.
#
Loqi
Ok, I'll tell them that when I see them next
#
tantek.com
edited /Events (+110) "add idea for 4/04 (404) party/wake"
(view diff)
#
tantek.com
edited /Events (-1) "/* Upcoming */"
(view diff)
bnvk joined the channel
#
tantek.com
edited /2014/SF (+33) "one of many events"
(view diff)
#
tantek.com
edited /2014/NYC (+34) "one of many events"
(view diff)
li3n3 and tilgovi joined the channel
#
bnvk
tantek: I agree with you, email sucks and it's because it is beyond tinkerability
#
tantek
whoa - holy delayed thread response ;)
snarfed joined the channel
#
Loqi
snarfed: tantek left you a message 27 minutes ago: nicely done with the WordPress - MUCH friendlier.
#
snarfed
tantek: thanks!
#
snarfed
btw do you know how to upload an image to the wiki?
#
snarfed
i started to add the wp logo, but couldn't find the upload file page
#
tantek
snarfed - link at the bottom of every page
#
tantek
"Upload file"
KartikPrabhu joined the channel
#
bnvk
hehe
#
snarfed
hah. thanks
paulcp joined the channel
#
tantek
bnvk - it's a good warning lesson for open source / standards in general.
#
bnvk
probably for life, in general
#
tantek
when the complexity/difficulty of code/formats/protocols get so high that they're beyond tinkerability, they will stop evolving, and start sucking.
_6a68 joined the channel
#
snarfed.org
edited /WordPress (+40) "add logo"
(view diff)
hallettj, sn0rri, jchivers, pfefferle, scor, chloeweil, friedcell, glennjones, caseorganic, eschnou, icco, skinny, sdboyer, fmarier, pfefferle_, caseorga_, tantek, paulcp, j12t, iangreenleaf, dvirsky, bnvk, paulcp_, lukebrooker, poppy, li3n3 and KartikPrabhu joined the channel