#indiewebcamp 2014-12-12

2014-12-12 UTC
#
ben_thatmust
I don't see that as so much of an issue, when you pull the mention to see if its a like or just mention, you can see if there is a u-tag-of your site
#
KartikPrabhu
tantek: i haven't seen any but wouldn't be hard to do. You use your JS code to pull in from webmention.io and then run marginalia.js after it. The trouble is I don't think that webmention.io does fragmentioned webmentions
#
tantek
ah - that's the issue to file then
#
KartikPrabhu
yeah. your webmention receiver has to recognise and save the fragmention for any of this to work
#
KartikPrabhu
then when you pull it in through JS embed add the data-fragmention bit and run marginalia
#
KartikPrabhu
maybe I should rewrite marginalia so that other JS codes can use some parts of it instead of running the whole thing
simonv3 joined the channel
#
KartikPrabhu
that way one could put marginalia in place while it is being retrieved by some other JS code
#
tantek
that would be even better yes!
#
tantek
and there are two webmention proxies now right? webmention.io and that other run by ?
#
bret
voxpelli
#
KartikPrabhu
yeah that one :P
#
KartikPrabhu
any JS expert know the best way to make a function that other JS codes can call?
#
bret
KartikPrabhu: from the same page?
#
KartikPrabhu
yeah. but independent libraries so to speak
#
bret
browserify is pretty cool. it brings the var module = require('module') to front end
#
KartikPrabhu
like if you wrote a code that pulls webmntions from webmention.io and want to use marginalia to display it. How would I give you access to the 3 functions in marginalia?
#
bret
depends how you are getting the data off of webmention.io. my perpetually not working implementation gets data off via jsonp
#
bret
it would be better to use CORS and XMLHttpRequest();
#
bret
and then var marginalia = require(
#
bret
'marginalia');
#
bret
and then just bundle that up and load it with the page
#
bret
im not sure how marginalia.js works though I'll have to look
#
bret
KartikPrabhu: https://github.com/substack/browserify-handbook is a good resource if you want to get started doing modular front end JS
#
KartikPrabhu
will look. thanks
#
bret
RE: How would I give you access to the 3 functions in marginalia? you would just do exports.add_marginalia, exports.toggle_marginalia etc
gRegor` joined the channel
#
bret
and when you var marginalia = require('marginalia') you would then have access to marginalia.toggle_marginalia, marginalia.add_marginalia etc
#
kylewm
bret: out of curiosity, why would CORS/XMLHttpRequest be better?
#
bret
error handling
#
kylewm
(second that browserify is great)
#
bret
jsonp has no error handling... easily
#
bret
and if you make a jsonp request for data of a url with no WMs, you get a 404 when loading the jsonp resource
#
bret
at least how webmention.io is written
#
kylewm
ah ha
#
bret
KartikPrabhu: i can try and take a pass at marginalia to see if I can make it an npm module
#
bret
or loadable like that... you can publish if you want
#
KartikPrabhu
bret: I have a few changes in mind, that i want to attempt. But you are free to fork it any time
#
KartikPrabhu
the thing is I want to keep it vanilla as possinble
#
bret
it would likely just be the addition of a couple export functions and a package.json
#
KartikPrabhu
true. but still why use Node for doing some simple JS stuff
#
KartikPrabhu
also I don't knwo what Node is/does
#
bret
its only tool written in node
#
bret
the idea is to write smaller single purpose modules with an actual module loading system (like in python or ruby) rather giant do everything libraries like jquery, that expose themselves as global window variables
#
bret
npm is basically like pip for js
#
bret
browserify adds the export and require functionality to front end js modules
#
bret
(wheras node has them built in to the runtime)
#
bret
(i just happened to spend the last couple of weeks reading about it and am super excited about it ^_^)
KartikPrabhu joined the channel
lukebrooker_ and colintedford joined the channel
#
colintedford.com
edited /Twitter (-1) "/* Developer Relations */ typo"
(view diff)
#
simonv3
Yeah browserify is pretty great
#
colintedford.com
edited /Twitter (+0) "Moved TOC farther up."
(view diff)
#
colintedford
Oh wow, I just noticed a bunch of links on my user page are wrong because I didn't realize capitalization mattered.
#
colintedford
I only noticed because I was trying out different themes (which I just learned I could do).
#
colintedford
The default theme doesn't distinguish links to nonexistent pages so I'd had no idea.
#
colintedford
(^ aaronpk I guess)
#
colintedford.com
edited /User:Colintedford.com (+26) "/* Colin Tedford */ Fixed links, moved Webcomic mention to "Former""
(view diff)
amblin joined the channel
#
kylewm
colintedford: that would be a good feature request for the wiki (differentiate links to not-yet-created pages) ... want to file it here https://github.com/indieweb/wiki/issues
mdik, DanC and cmhobbs joined the channel
#
colintedford
kylewm: Thanks, I forgot that was there. Now I just gotta sign up for github...
lukebrooker and amblin joined the channel
wolftune, lukebrooker and Haxxa joined the channel
#
colintedford.com
edited /User:Colintedford.com (-73) "/* Wants */ rm "re-add rel='me'" b/c done."
(view diff)
simonv3 joined the channel
#
colintedford.com
edited /User:Colintedford.com (+101) "/* Done */ Added rel="me" to current theme"
(view diff)
Haxxa, lukebrooker, snarfed, KartikPrabhu and gRegor` joined the channel
#
colintedford.com
edited /User:Colintedford.com (+34) "/* Wants */ static site generator candidates"
(view diff)
#
colintedford.com
edited /User:Colintedford.com (-5) "/* Wants */ not sure how fragment links work in Mediawiki"
(view diff)
caseorganic joined the channel
#
KartikPrabhu
dbs suck!
#
KartikPrabhu
one false move migrating them and all is stuck
#
gRegor`
colintedford: This page should have an option under Advanced to format broken links differently: http://indiewebcamp.com/Special:Preferences
#
gRegor`
Bummer, KartikPrabhu :/ any data loss?
#
KartikPrabhu
gRegor`: yeah sort of but it is not a live public site yet so...
#
KartikPrabhu
it is just so annoying
#
gRegor`
What happened?
#
KartikPrabhu
well I changed some fields and the db migration croaked. then I fixed it but the migration code does not know about the fix so now my dbs lost the original field and don't have the new one
#
colintedford
gRegor`: Huh, that setting is set correctly but seems not to work for me on the default IWC theme.
#
gRegor`
colintedford: I think when it's unchecked it puts a question mark after broken links. Does that work? It's possible the themes are just broken.
#
KartikPrabhu
gRegor`: i think it is the themes. a broken link also shows up in blue in my expereince
#
colintedford
gRegor`: Yeah, I "jiggled the handle" (unchecked, saved; checked again, saved). Neither changes the link appearance.
#
colintedford
The Simple theme works, but IWC & Teahouse don't.
#
gRegor`
There's still several JS errors with the theme, so I'm guessing it's in there.
#
colintedford
IWC looks like it has formatting set but it doesn't get applied. Teahouse seems not to have separate formatting for broken links.
lukebrooker joined the channel
#
colintedford
Sorry to hear about the db, KartikPrabhu.
#
KartikPrabhu
colintedford: yeah horrible and frustrating. which is why I want to move my own site to a file-based storage ASAP. but that is going to take some dedicated coding
#
KartikPrabhu
maybe at some point in the future I can have a system that others can use. I did see your call for a file-based static site
#
colintedford
KartikPrabhu: I hear that.
#
colintedford
That would be pretty cool!
#
KartikPrabhu
as a non-expert dealing with DBs is so counter-productive
#
colintedford
Yeah, I got kind of excited about them for a bit, then bit off more than I could chew w/ my first project.
#
KartikPrabhu
yeah I am at the point of being overwhelmed by all the commad-line accuracy needed
#
KartikPrabhu
I just want to move folders around damnit
#
colintedford
Seriously!
#
KartikPrabhu
as a recent example I lost my local version of my site. I could retrieve all the code and even the git commits but not the DBs
#
colintedford
I feel like anything I do to a DB could break it
#
colintedford
Ugh, crappy
#
Loqi
lolz
#
KartikPrabhu
haha Loqi agrees
#
KartikPrabhu
Loqi++ :D
#
Loqi
Loqi has 322 karma
#
colintedford
Loqi's laughing with you
#
colintedford
Or maybe for you
#
KartikPrabhu
I'll take it as a "I know dude" laugh even though Loqi might use a DB for chat logs I dunno
#
colintedford
I'm definitely glad I don't have one built into me.
tantek, snarfed, loic_m, j12t and chalettu joined the channel
#
tantek
that TOC change on /Twitter screwed up the top of the page quite a bit
#
tantek
colintedford: I'm going to revert that change until we figure out a better way to move the TOC higher up
#
colintedford
tantek: OK.
#
tantek.com
edited /Twitter (+0) "move TOC a bit up, just below first section of features"
(view diff)
#
tantek.com
edited /silo-quits (+637) "/* Silo quitters 2014 */ Geoff Nicholson"
(view diff)
#
tantek
colintedford: how's that? http://indiewebcamp.com/Twitter
#
tantek
KartikPrabhu: ugh - sorry to hear that about the local db dataloss :( if there's some way you can write up a warning about what you did, perhaps we can help prevent it from happening to others
#
colintedford
tantek: Looks decent to me.
#
KartikPrabhu
tantek: yes. I was planning to write it up when I get my file-based system up but that seems to be a long way in the future. Maybe a preemptive post about "why" I am swichting to file-system.... so much to write and no local site to test it
#
tantek
KartikPrabhu: braindumping a few notes on the wiki would be fine too - perhaps on the page related to the specific db you were using
#
KartikPrabhu
yes possibly. will get to it soon. too much stuff to do this week
LauraJ, michielbdejong, mdik_, DanC_, loic_m_ and michielbdejong1 joined the channel
#
tantek.com
edited /JavaScript (+296) "Criticism, sites break, sighjavascript tumblr"
(view diff)
GWG, emmak, csarven, lukebrooker, j12t and simonv3 joined the channel
#
michielbdejong.com
edited /JavaScript (+575) "/* Sites break without Javascript */ explain why this is relevant"
(view diff)
lukebrooker_ joined the channel
#
michielbdejong1
!tell tantek Hi! I expanded your edit about javascript breakage, let me know if you disagree with my edit
#
Loqi
Ok, I'll tell him that when I see him next
#
KartikPrabhu
michielbdejong1: you missed an important situation: when your javascript fails e.e.g a misplaced smeicolon is enough to cause trouble
#
michielbdejong1
KartikPrabhu: that's no different from a misplaced tag in your html?
#
michielbdejong1
I don't think that's a valid criticism of javascript as such.
#
KartikPrabhu
it is. a misplaced tag still "evaluates" the rest of the HTML, but a javascript error just stopd the code cold
#
michielbdejong1
But you would immediately see that, right?
#
michielbdejong1
Also, that's assuming you're writing your own javascript, most people would typically use a CMS?
#
KartikPrabhu
the problem is exactly trusting others JS. I can trust the browser to render faulty HTML written by others (like templates) but not faulty JS because it just stops
#
michielbdejong1
I guess you could say that a criticism of javascript could be that it's hard to write code that works (harder than writing html code that works)
#
michielbdejong1
So if you feel that is a relevant criticism of javascript as a technology, then you should add that as a second criticism. I just edited the "Sites break without Javascript" point.
#
KartikPrabhu
yes. HTML has a safe fallback in case or errors, but JS does not ( which is good for programming ) but not good enough to rely on it
#
michielbdejong1
do you know if anybody already wrote this criticism of javascript being hard to get right, somewhere?
#
KartikPrabhu
michielbdejong1: sure. I'll add that sometime. not to say your points are not valid :)
#
michielbdejong1
i guess as a wiki, you should not add original research
#
KartikPrabhu
I am sure adactio has somewhere
#
KartikPrabhu
on his site
#
michielbdejong1
if not, you can blog about on your own site
#
KartikPrabhu
and other progressive enhancement people
#
michielbdejong1
then you can link to it from the wiki and it will not be original research :)
#
KartikPrabhu
again not disputing anything you wrote. I agree with those, but "no one has their JS turned off" and "Google now render JS" has been used as an argument against progressive enhancement before. Just on the indiewebcamp wiki
#
colintedford
"No original research" is a Wikipedia thing because they're an encyclopedia, not a general wiki thing.
#
KartikPrabhu
colintedford: still a good practice. and I can not disagree being a scientist
#
colintedford
Yeah, supporting evidence / citations are always good.
#
KartikPrabhu
are always important I would say. So michielbdejong1 was right to call me out on that
#
KartikPrabhu
just that I can't produce the citations right now :)
#
michielbdejong1
also: http://googlewebmastercentral.blogspot.de/2014/10/updating-our-technical-webmaster.html says my point about crawlers is not totally accurate, will update
#
KartikPrabhu
michielbdejong1: exactly the reference I would have cited :)
#
KartikPrabhu
michielbdejong1: yes Google now parses JS
#
michielbdejong1
ok, i'll do the edit as i'm there now.
#
KartikPrabhu
but again one misplaced semicolon and the rest of your JS fails
petermolnar and Sebastien-L joined the channel
#
KartikPrabhu
michielbdejong1: just to get this straight. we are not disagreeing just the degree of agreement :) you seem to be in a bteer timezone to find citations and also spell :P
#
michielbdejong1
:) yes, I'll try to put the arguments there with their citations, in the right order.
#
KartikPrabhu
thanks michielbdejong1
#
KartikPrabhu
michielbdejong++ for being scientific and adding citations
#
Loqi
michielbdejong has 4 karma
LauraJ and loic_m_ joined the channel
#
michielbdejong.com
edited /JavaScript (+563) "/* Criticism */"
(view diff)
#
michielbdejong1
KartikPrabhu: hope I covered both points correctly there ^
#
michielbdejong1
KartikPrabhu++ for bringing up the point about semicolon breakage
#
Loqi
KartikPrabhu has 82 karma
#
KartikPrabhu
michielbdejong1: the edits look fair enough nicely done
#
michielbdejong1
i'll also add a 'praise' section
#
michielbdejong1
saying unlike flash, javascript is an open technology
#
KartikPrabhu
yes a good point.
#
michielbdejong1
and it allows for unhosted web apps, firefox os, etc.
#
michielbdejong1
the web as a software platform
#
KartikPrabhu
also note that the error handling extends to dependencies. so if you have a JS that depends on JS that depends on JS, the some error in the last one might cause the whole chain to fail
friedcell joined the channel
KartikPrabhu joined the channel
#
michielbdejong.com
edited /JavaScript (-119) "/* Criticism */"
(view diff)
#
michielbdejong.com
edited /JavaScript (+55) "/* Sites break with faulty javascript */ mention dependencies cc KartikPrabhu"
(view diff)
lukebrooker, stream7, lukebrooker_, j12t, LauraJ and adactio joined the channel
bitraten and xtof joined the channel
#
xtof
Hi indieweb campers.
#
xtof
If you’re near Paris, currently searching help for an #indieweb workshop during our #OpenChateau gathering http://openchateau.org/
elf-pavlik and wolftune joined the channel
#
christopheducamp.com
edited /Events (+586) "/* Upcoming */ OpenChateau Barcamp opened to indieweb workshops (2014-12-14, Millemont, France)"
(view diff)
#
christopheducamp.com
edited /Events (+0) "/* Upcoming */ typo"
(view diff)
#
christopheducamp.com
created /events/2014-12-14-openchateau (+1597) "Draft to be completed with elf-pavlik, thierry marianne and indieweb châtelains..."
(view diff)
#
elf-pavlik
xtof ^ ?
#
xtof
elf : bonjour ^ : you’re joining openchateau isn’t it ?
#
elf-pavlik
hi xtof, yes i still look at a way to get there from paris
#
xtof
elf-pavlik: think I’ll join tomorrow morning by train from Montparnasse
#
elf-pavlik
do you know if people tend to check tickets often here? which doesn't matter that much since i can always hitchhike the rest of the trip if get kick out of the train :D
#
xtof
elf-pavlik: no problem. Let’s go together if you’re free tonite. Awating an opportunity of dinner tonite + co-voiturage tomorrow morning ?
#
elf-pavlik
sounds good! i have call with Lloyd from Social IG Vocabulary TF at 7PM to discuss describing *skills* in online profiles, maybe we could meet sometimes after 8PM?
j12t joined the channel
#
xtof
elf-pavlik : great. could you come at home ? And we’ll improvise. I’m awating news from a friend hitchiking from Germany…
sanduhrs joined the channel
glennjones, Sebastien-L and LauraJ joined the channel
mlncn-agaric, j12t and shiflett joined the channel
danlyke_ joined the channel
verdi_ joined the channel
#
shanehudson.net
edited /User:ShaneHudson.net (+160) "/* Itches */"
(view diff)
friedcell joined the channel
#
christopheducamp.com
edited /events/2014-12-14-openchateau (+120) "added hashtags section + URL"
(view diff)
reedstrm, Deledrius, yaso, yaso_, snarfed and mlncn-agaric joined the channel
#
@LeedsBeckettCLT
Thanks to @benwerd from @withknown for coming to chat through some of his work on the #indieweb so many ideas & questions generated.
(twitter.com/_/status/543425597637414912)
#
@digisim
RT @LeedsBeckettCLT: Thanks to @benwerd from @withknown for coming to chat through some of his work on the #indieweb so many ideas & questi…
(twitter.com/_/status/543425688163086336)
#
@benwerd
RT @LeedsBeckettCLT: Thanks to @benwerd from @withknown for coming to chat through some of his work on the #indieweb so many ideas & questi…
(twitter.com/_/status/543425776742592512)
gRegor` joined the channel
#
GWG
Anyone have a really good explanation of IPV6 addressing? I have always been confused by it. Thinking of adding it.
#
ben_thatmustbeme
GWG, i had found one somewhere, hold on i'll see if i can dig it up
#
ben_thatmustbeme
maybe it will be back soon
glennjones joined the channel
#
GWG
The wiki lacks a list of which indiewebcamp people use IPV6.
#
GWG
Hi, ben_thatmustbeme, by the way
#
ben_thatmustbeme
i think thats because no one really pays attention to the IP underneath, only URLs
#
GWG
We have a page for SSL though
#
ben_thatmustbeme
that effects presentation layer
#
ben_thatmustbeme
ipv4 or ipv6 does not
#
ben_thatmustbeme
s/presentation layer/presentation/
#
ben_thatmustbeme
not to confuse that with network stack
#
GWG
Point taken.
#
ben_thatmustbeme
it would be good to make sure tools out there support ipv6 though
#
ben_thatmustbeme
like bridgy and indieauth
#
GWG
I just would be interested in seeing what traffic would show up
mlncn-agaric joined the channel
#
GWG
If I had the site supporting IPV6, what would be in the logs?
#
ben_thatmustbeme
as to your question, IPV6 is just like IPV4 only you use sets of 4 hex values and you have 8 sets (i think)
#
ben_thatmustbeme
swap '.' for ':' and then remove any leading zeros from sets
wowaname joined the channel
#
GWG
I just, seem to have trouble conceptualizing it
#
ben_thatmustbeme
so F013:0012:0001 => F013:12:1
#
ben_thatmustbeme
and then if there are whole sets of 0000 together you can just skip the whole series with '::'
#
ben_thatmustbeme
but obviously you can only do that in one spot
#
GWG
I wonder if that would solve my SSL problem.
#
ben_thatmustbeme
so F013:0000:0001:0000:0000:0000:0000:00A3 => F013:0:1::A3
#
GWG
As an alternative to SNI
#
ben_thatmustbeme
i suppose it could, as that is a different IP address and you can make your site the default host for that IP
#
GWG
Does indieauth support it?
#
ben_thatmustbeme
i'd imagine the software does, just a question if the host does
#
ben_thatmustbeme
may be worth testing out
snarfed, j12t and michielbdejong joined the channel
#
gRegor`
Happy Friday, indieweb
snarfed joined the channel
#
ben_thatmustbeme
frappy hiday gRegor`
Pea1, wolftune, yaso, snarfed, j12t, michielbdejong, mlncn-agaric and friedcell joined the channel
#
@gasull
"On the Net today we face a choice between freedom and captivity, independence and dependence." http://www.linuxjournal.com/content/how-can-we-get-business-care-about-freedom-openness-and-interoperability #indieweb #IoT
(twitter.com/_/status/543466607914536960)
michielbdejong joined the channel
#
@kevinmarks
“Everything is recoverable, ‘provided only that we preserve a sufficient amount of text.’” http://aeon.co/magazine/culture/can-egyptology-teach-us-to-future-proof-our-culture/ #indieweb
(twitter.com/_/status/543466893793701888)
#
kylewm.com
edited /JavaScript () "(-721)"
(view diff)
#
snarfed.org
edited /IPv6 (+566) "indieweb examples"
(view diff)
friedcell1 joined the channel
#
GWG
snarfed++
#
Loqi
snarfed has 59 karma
#
kylewm.com
edited /JavaScript (+187) "/* Sites break without Javascript */ make discussion a bit more direct, add a 3rd reason for graceful degradation without JS"
(view diff)
#
kylewm
snarfed: hey what do you think about that out-of-date BeautifulSoup github mirror? i'm thinking we could 1) ask them to update it, 2) make our own mirror, 3) use the launchpad.net repository directly
#
snarfed
kylewm: hey, yeah, i was about to reply
#
snarfed
i don't have a strong opinion
#
snarfed
looking again
#
snarfed
i'm open to the bzr submodule
#
snarfed
not ideal since it's another hurdle for contributors to get set up, but it's an option
#
kylewm
i'm leaning toward creating our own mirror, so that only the mirrorer has to have bazaar installed
#
snarfed
hmm maybe
#
snarfed
is there definitely no canonical git mirror for the official repo?
#
kylewm
there may be
#
snarfed
or even non-canonical but more up to date?
#
snarfed
i might look for those first
#
kylewm
there's not one more up to date on github, as far as i could tell
#
kylewm
some people just check in the source and drop version history
#
kylewm
those are more up to date
#
snarfed
ideally we'd find an official git mirror
#
snarfed
otherwise i'm open to whatever
#
@willowdower
RT @kevinmarks: “Everything is recoverable, ‘provided only that we preserve a sufficient amount of text.’” http://aeon.co/magazine/culture/can-egyptology-teach-us-to-future-proof-our-culture/ #indieweb
(twitter.com/_/status/543469394882736128)
#
@nitot
Support these people! "One person starting IndieWeb today equals one person leaving Facebook tomorrow." https://www.indiegogo.com/projects/indiehosters
(twitter.com/_/status/543471124257202176)
tantek, shiflett, colintedford, wolftune, j12t and xtof joined the channel
#
@BillSeitz
RT @kevinmarks: “Everything is recoverable, ‘provided only that we preserve a sufficient amount of text.’” http://aeon.co/magazine/culture/can-egyptology-teach-us-to-future-proof-our-culture/ #indieweb
(twitter.com/_/status/543492970876792832)
#
tantek.com
edited /JavaScript (+28) "/* Sites break without Javascript */ see also antipatterns"
(view diff)
#
tantek.com
edited /JavaScript (+505) "/* Criticism */ More Fragile Than HTML"
(view diff)
#
kylewm
tantek: re single-page-antipattern, where do you fall on sites that do client-side rendering but have normal-looking permalinks (like ember.js apps)?
#
kylewm
does anybody else have the problem where clicking on wiki links (like above) takes you to a logged out session?
#
kylewm
if i change it manually to https, then I'm logged in again
#
colintedford
kylewm: I don't seem to have that problem.
#
@TheRealDod
Do #indiewebcamp and #fourtwenty intersect?ØŸ #webmention https://zzzen.com/420/ @ XX:17-XX:23 for a funky timestamp https://twitter.com/TheRealDod/status/543499670673031169/photo/1
(twitter.com/_/status/543499670673031169)
Sebastien-L joined the channel
#
snarfed
kylewm: i see the same thing
#
kylewm.com
edited /antipatterns (+144) "note that Ember.js supports real permalinks in "single page apps""
(view diff)
#
kylewm
snarfed: is that likely to be a MediaWiki-IndieAuth bug, or by design can http sites not read https session cookies?
JHSheridan joined the channel
#
snarfed
kylewm: thanks! no clue
#
snarfed
yeah, the wiki's cookies may be https only. some related info on http://indiewebcamp.com/HTTPS , search for 'cookie'
KartikPrabhu, JHSheridan, chalettu and csarven joined the channel
#
colintedford.com
edited /User:Colintedford.com (+10) "/* Wants */ adjust link"
(view diff)
#
colintedford.com
edited /database-antipattern (+34) "/* Does a dynamic site need a databases */ link "static hosting" to section on "web hosting""
(view diff)
#
KartikPrabhu
Loqi playback
#
Loqi
is done
#
colintedford.com
edited /database-antipattern (-5) "/* Database with export */ typo"
(view diff)
shiflett, mlncn-agaric, tantek, richardlitt, gavinc, yakker and snarfed1 joined the channel