#indiewebcamp 2014-01-18

2014-01-18 UTC
#
tantek
of where JSON is human-unfriendly
#
aaronpk
JSON doesn'thave a date/time type
#
tantek
hence the problem
#
tantek
that lack of type forces programmers to canonocalize on ISO8601 long form in Z which is both human unfriendly and loses information (timezone etc.)
#
tantek
or worse - # of seconds since epoch
#
tantek
or some such other human unfriendliness
#
bear
just like mf2 - you can use json in a way that doesn't lose data
#
tantek.com
edited /storage (+52) "markdown in practice requires custom extensions to store data"
(view diff)
#
tantek
bear - no one does
#
tantek
or rather - can you point to any examples of anyone using JSON in a way that doesn't lose data in a human-unfriendly fashion?
#
tantek
especially examples of dates and times?
#
bear
all of the examples are from internal data conversation tools that go from SQL -> JSON or XML -> JSON
#
bear
because of the lack of data types, everything is stored as JSON strings
#
tantek.com
edited /storage (+144) "/* Databases */ databases = custom schemas = more pain to import/export = adds friction to portability"
(view diff)
#
tantek.com
edited /storage (+90) "db antipattern para"
(view diff)
#
tantek.com
edited /storage (+30) "category"
(view diff)
#
tantek
bear - then you likely are losing the SQL type information in your JSON
#
bear
it wasn't but that's only because each field value had a corresponding meta data value of where it came from and how it was stored there
caseorganic joined the channel
#
bear
I found with data conversion code, to always store the schema along with the data when transporting
#
bear
but again, probably out of band to IndieWeb discussions
#
tantek
bear - which then doubles the complexity
#
tantek
whereas with uf2 - we've minimized that to infrequent occurences
#
tantek
with a handful of dt- u- e- prefixed properties
#
bear
sorry - I must be in a really off mood as I'm seeing everything thru a curmudgeon filter
#
tantek
that's not always bad ;)
#
tantek
(darn kids)
#
bear
I actually mutter that about what most of you all say
#
bear
(being probably the older person in the room)
#
tantek
refrains from contesting that.
#
bear
is 50 and has been in computers since 1979
#
tantek
is not 50 but has also been coding on computers since 1979 (even if it was BASIC on a timeshare).
#
bear
ah - nice!
#
tantek
notes that length of time coding on computers does not really correlate to much, except for having spent that time.
#
bear
but age doesn't matter - i've learned to try and listen to everyone and then ask questions
#
tantek
agreed
#
bear
my older habits get in the way some times
#
bear.im
edited /storage (+162) "/* Flat files */"
(view diff)
#
bear
the authorship update earlier has me chewing over some ideas and now i'm going to go add them to the python code I am using
#
KevinMarks
is 47 and coding on computers since 1979 though it was a PET
#
bear
all of my earlier computers where other people's that bought them but couldn't figure them out - they hired me to fix, setup and program them
#
tantek
Cue Smashing Pumpkins 1979
#
KevinMarks
I really need to write up my post about mapreduce mindset too
#
tantek
aaronpk - can we get Loqi to play music in the channel?
#
bear
it's amazing how pervasive of a mindset earlier tool use is
#
bear.im
edited /storage (+35) "add time shard info"
(view diff)
#
tantek.com
edited /authorship (+25) "/* Issues */ theoretical"
(view diff)
#
tantek.com
edited /note (+24) "/* FAQ */ see also storage"
(view diff)
pfenwick, li3n3 and snarfed joined the channel
#
iangreenleaf
Hi all! Do you know of / maintain a list of data liberation options anywhere?
#
iangreenleaf
I.e. "How to get your __[type of data]__ out of __[cloud service]__"?
#
tantek
hello and welcome iangreenleaf!
#
tantek
we tend to call them "silos" rather than "cloud services" (If I get your meaning)
#
iangreenleaf
right yes, that's what I meant
#
tantek
and such information (how to export your data from) is available on the wiki page for each
#
tantek
e.g. for the Twitter silo
#
iangreenleaf
yeah, I noticed the Twitter and Tumblr pages - is there much beyond that?
#
tantek
yes - plenty!
#
tantek
http://indiewebcamp.com/silos has a decent list of them
#
iangreenleaf
nifty, thanks. so if I wanted to contribute, the way to do it would be to edit/create separate pages for each silo?
#
tantek
exactly!
#
iangreenleaf
I started thinking (as I wrested my 360 movie ratings out of Netflix) that we should have a good list of all this stuff
#
iangreenleaf
especially since it's hard to figure out what is currently working, what has broken since first being released, etc
#
tantek.com
edited /FAQ (+628) "How do I export my data"
(view diff)
#
tantek
Thanks iangreenleaf - a very good general question to add to the FAQ: http://indiewebcamp.com/FAQ#How_do_I_export_my_data
#
tantek
yes it would be good to create a Netflix page - please go for it
#
tantek
oh and feel free to add yourself to: http://indiewebcamp.com/irc-people
#
iangreenleaf
awesome, I'll work on contributing to a couple tonight - off the top of my head I can offer some info for Netflix, Facebook, Fitocracy, Garmin...
#
tantek.com
edited /FAQ (+69) "/* How do I export my data */ FB Exporting your data"
(view diff)
#
tantek
you might ping aaronpk about Fitocracy and Garmin - I know aaronpk has done a lot of work with personal metrics services - and I'm sure he'd be interested in whatever you document for those.
#
iangreenleaf
BTW, what's the word on "unofficial" export solutions? legit to add to the wiki or not?
#
iangreenleaf
for example, I worked up a bookmarklet to export photos from others I was tagged in on Facebook a while back
#
iangreenleaf
...something Facebook does not include in the official export
KevinMarks2 joined the channel
#
tantek
iangreenleaf - 3rd party tools for exporting data would be great to add to the wiki
#
tantek
we fight for the users
#
Jeena
ok, very rudimentary but it works https://jeena.net/notes/1
#
Jeena
no webmention on it yet and no automatic POSSE
#
tantek
Jeena, beautiful!
#
tantek
that's perfectly fine
#
Jeena
it is a start :)
#
tantek
start with manual POSSEing! I (and most others) did.
#
tantek
it also helps you figure out how you want your code to automatically POSSE for you
#
tantek
and heck, I'm not even sending automatic webmentions yet myself - I manually curl them
#
tantek
I'm preferring to document my thinking / figuring out of such features publicly in the hopes that such thinking helps others.
#
Jeena
I have all the code for doing it automatically implemented because I use it for posts already, so it should be quite easy to add tomorrow
#
tantek
excellent!
#
snarfed
iangreenleaf: i'll take a note to go update export pages on the wiki too
#
snarfed
that's probably my next project: to finish http://freedom.io/
caseorganic joined the channel
#
bret
In terms of UX vs Security, threema.ch sets the bar for encrypted messaging. Been using it the past week and its been great
#
bret
its unfortunately phone app only though :(
#
iangreenleaf
snarfed: that looks super cool! are you working through the official APIs?
#
iangreenleaf
!t snarfed that looks super cool! are you working through the official APIs?
#
Jeena
and not even for Firefox OS!
#
iangreenleaf
!tell snarfed freedom.io looks super cool! I'm curious if you're going through the official APIs, and if so, how you're handling the restrictive terms
#
Loqi
Ok, I'll tell them that when I see them next
scor and j12t joined the channel
snarfed joined the channel
#
Loqi
snarfed: iangreenleaf left you a message 1 hour, 5 minutes ago: freedom.io looks super cool! I'm curious if you're going through the official APIs, and if so, how you're handling the restrictive terms
caseorganic and hallettj joined the channel
#
@igorette
RT @nxD4n POSSE is an acronym/abbreviation for Publish (on your) Own Site, Syndicate Elsewhere. http://indiewebcamp.com/POSSE #reclaim
(twitter.com/_/status/424404554533568512)
snarfed joined the channel
#
snarfed
iangreenleaf: thanks for the kind words!
#
snarfed
it does use the official apis
#
snarfed
I've been shut down before, so I have a feeling for what usage thresholds and tips trigger it, etc. http://snarfed.org/2013-07-09_twitter-atom-is-back
#
snarfed
in practice, Twitter is the most aggressive by a wide margin
#
iangreenleaf
do you think, if it got wildly popular, that you could stay on their good sides?
#
snarfed
no, I doubt it
#
snarfed
my workaround for the last one was to have users generate their own api keys :/
#
iangreenleaf
thanks for indulging my curiosity
#
snarfed
I just finished my last big project and got it stable - https://www.brid.gy - so I'll be back to hacking on freedom.io in a week or two
#
snarfed
feel free to Kiko into the github repo if you're interested!
#
snarfed
s/Kiko/jump/
#
Loqi
snarfed meant to say: feel free to jump into the github repo if you're interested!
#
iangreenleaf
yeah, I might poke around, POSSE is of great interest to me so always cool to see people building things
#
www.iangreenleaf.com
edited /silo (+172) "Adding some additional silos"
(view diff)
#
www.iangreenleaf.com
created /Netflix (+215) "Created page with "== Data Export == === Ratings === * You can use [https://userscripts.org/scripts/show/288110 this Greasemonkey script] to scrape all your ratings into a CSV document. === Revi...""
(view diff)
j12t joined the channel
KevinMarks2 joined the channel
#
www.iangreenleaf.com
created /Garmin_Connect (+207) "Created page with "== Data Export == * You can use [https://tapiriik.com/ tapiriik] (for free) to sync GPS files between a number of destinations, including a Dropbox folder. ** This will not sync...""
(view diff)
#
www.iangreenleaf.com
created /Strava (+294) "Created page with "== Data Export == * You can use [https://tapiriik.com/ tapiriik] (for free) to sync GPS files between a number of destinations, including a Dropbox folder. ** This will not sync...""
(view diff)
#
bret.io
edited /storage (+288) "/* Markdown plus extensions */"
(view diff)
#
@ant0ine
RT @kevinmarks: According to Google Play, Indie/Alternative is the biggest category http://research.google.com/bigpicture/music/ #indieweb #SoIndieItsMainstream
(twitter.com/_/status/424422547325591553)
caseorganic, schalkneethling, KevinMarks2, anselm, friedcell, CheckDavid and voxpelli joined the channel
#
@voxpelli
Everything seems to be working well with my WebMention endpoint, so I'm making 5 more accounts available: https://webmention.herokuapp.com/
(twitter.com/_/status/424463318913658880)
#
@linusbohman
RT @voxpelli: Everything seems to be working well with my WebMention endpoint, so I'm making 5 more accounts available: https://t.co/jpviUX…
(twitter.com/_/status/424465175987884032)
squeakytoy, hallettj, pfenwick, XgF, igalic, brianloveswords, zaal, acegiak and hober joined the channel
#
Jeena
good morning! Is it possible to POSSE my notes automatically to Facebook? Is there a API for that?
Zegnat, pasevin and dvirsky joined the channel
eschnou, Kopfstein and glennjones joined the channel
glennjones joined the channel
#
Jeena
Wohoo now my mentions can POSSE to Twitter and send+receive webmentions!
#
Jeena
not my mentions, my notes!
eschnou, glennjones, friedcell, bnvk, pfenwick and snarfed joined the channel
#
@jeena
I’ve been working on my own #indieweb twitter replacement. Right now it is POSSING notes to twitter, can send and receive #webmentions
(twitter.com/_/status/424551524929662976)
#
@jeena
I’ve been working on my own #indieweb twitter replacemen... http://lala.home.jeena.net:3000/notes/11
(twitter.com/_/status/424551885128077312)
Acidnerd and eschnou joined the channel
#
@jeena
I’ve been working on my own #indieweb twitter replacement. Right now it is POSSING notes to twitter, can send a... https://jeena.net/notes/5
(twitter.com/_/status/424554756917702656)
#
Jeena
Finally it is freaking working ^^
pasevin joined the channel
#
Jeena
Next step would be Facebook
#
snarfed
nice work!
#
@jeena
@zatnosk hehe yeah, sorry ^^ I was testing my new #indieweb notes, so they would push to Twitter too and had a nasty bug :-p
(twitter.com/_/status/424555182186561536)
#
Jeena
thanks :)
#
bnvk
nice
#
bnvk
Jeena: what is it written in?
#
Jeena
it is a rails app
#
bnvk
ah, cool
#
Jeena
my blog has from the start been a rails app so I just upgraded first from rails 2 to 3 and now to 4 and added the indieweb stuff on top of everything. Back then I only had Pingback which later on stopped working
#
Jeena
For now I added a atom feed for my notes too because there are no h-entry feed readers that I know of
#
@jeena
@goetzb yeah I probably should write a blog post, but until then check out http://indiewebify.me/ and then http://indiewebcamp.com/
(twitter.com/_/status/424558055410253824)
LauraJ joined the channel
#
Jeena
Hm now I also need to implement the special in_reply_to for Twitter so they can connect them in the right way
friedcell and scor joined the channel
#
Jeena
wow, that was easy, and it is done, not I finally can answer people on twitter via my own notes :D
#
neuro`
Jeena: congrats!
#
Jeena
thx :)
eschnou joined the channel
#
neuro`
Did you already add the HTML?
#
neuro`
Jeena: BTW, what's your blog engine? I read it was Rails based
#
Jeena
yeah it is just a plain rails app I wrote, nothing special
#
Jeena
I tried to use blog engines but never got them working like I wanted them to work so I gave up and wrote my own blog software.
#
neuro`
Oh OK. I've been maintaining a Rails publishing engine for 8 years now, that has notes and Twitter replies, that's why I was asking
#
Jeena
just small stuff like a subtitle can be really complicated to add to a blog engine
#
Jeena
ah nice, link?
#
Jeena
and then this blog is a playground for me too, I try crazy stuff on a real audience sometimes just to check their reactions :-p
#
neuro`
used to power blog.rubyonrails.org in 2004/2005
#
neuro`
before they move to Mephisto
#
Jeena
back then in 2004 you used rails already?
#
neuro`
I started Ruby in 2002, and Rails when they released 0.4 iirc.
#
Jeena
jesus
voxpelli joined the channel
#
Jeena
in 2002 I bought my first PC and got a modem for it :D
#
neuro`
Hahah. You're probably younger than me
#
Loqi
hehe
#
Jeena
before that I had an Amiga without internet between 1992 and 1995
#
Jeena
I'm 35
#
neuro`
Same age then
#
Jeena
yeah I was kind of late to the whole computer thingy
#
Jeena
but in 2004 I also wrote a blog engine, which still runs my german blog http://jeenaparadies.net/weblog/ but it was in PHP4 https://github.com/jeena/jlog
#
Jeena
but it was my first programming project so it is spagetti code all the way
eschnou joined the channel
#
neuro`
I have a story for you then.
#
neuro`
One day, a French guy was bored during the summer holliday, so he started to learn PHP and coded a spagetti blog engine. IIRC, it was first called "cafelog", then "b2".
#
neuro`
B2 popularity grew quickly (was in 2001 or 2002), and after a while, that guy moved to something else.
#
neuro`
Then, another guy forked the project, and named his fork "Wordpress"
#
neuro`
(hello michel_v)
#
neuro`
So you see what can happen to PHP4 blog projects :)
acegiak, Jeena, glennjones, scor, snarfed, LauraJ and barnabywalters joined the channel
#
Loqi
barnabywalters: bnvk left you a message on 1/17 at 2:39pm: your "Feedreader Mockups" page seems to be hidden behind an auth http://photos.waterpigs.co.uk/p/pu
heath joined the channel
#
barnabywalters
!tell bnvk RE feedreader mockups hidden: indeed, my openphoto instance broke and I haven’t figured out how to fix it yet :( More up-to-date feedreader mockups at http://waterpigs.co.yk/intertubes
#
Loqi
Ok, I'll tell them that when I see them next
bnvk joined the channel
#
Loqi
bnvk: barnabywalters left you a message 1 minute ago: RE feedreader mockups hidden: indeed, my openphoto instance broke and I haven’t figured out how to fix it yet :( More up-to-date feedreader mockups at http://waterpigs.co.yk/intertubes
#
barnabywalters
afternoon bnvk
#
bnvk
barnabywalters: afternoon- what are you up to?
#
Jeena
barnabywalters is that http://waterpigs.co.uk/intertubes/feed/ a h-entry feed reader where you in some way subscribe to other websites?
#
Jeena
cool! so how do you get new data from the websites, are you spidering those websites every couple of minutes or something?
#
barnabywalters
nothing as fancy as that yet — I’m just requesting them live at the moment, which is why it’s quite slow
#
Jeena
ah I see
#
Jeena
are you requesting the index pages or something else?
#
barnabywalters
I’m just trying to fix the authentication problem so you can see the config UI
#
Jeena
ok :)
eschnou and tantek joined the channel
#
Jeena
I'm also confused about where to point #tags in my notes
#
barnabywalters
Jeena: point them to pages on your own site which aggregate content tagged with that tag
#
tantek
that's good FAQ to add
#
Jeena
I see, ok I will do that in the future, right now there are just too few posts ^^
#
barnabywalters
Jeena: okay try http://waterpigs.co.uk/intertubes/feed/edit/ (maybe force refresh or clear cache)
#
Jeena
wow fancy
#
waterpigs.co.uk
edited /hashtags (-345) "/* Brainstorming */ removed brainstorming, superceded by actual implementations"
(view diff)
#
Jeena
but that is just read only for me right now I assume?
#
Jeena
and it is your own instance of this feedreader?
#
barnabywalters
Jeena: yep, this is my instance of a flow-based-programming environment built for processing microformats data
#
barnabywalters
anyone can try out the UI, but can’t save new pipes
#
Jeena
it kind of looks like Yahoo pipes, I always liked their intuitive UI
#
barnabywalters
it’s pretty experimental
#
Jeena
I see
#
barnabywalters
yep, a lot of it is based off yahoo pipes
#
Jeena
ah and everything is HTML, I wonder how you do the connections
#
Jeena
ah SVG, hehe interesting
#
waterpigs.co.uk
edited /hashtags (+359) "/* IndieWeb examples */ added FAQ"
(view diff)
#
barnabywalters
yep, there’s this awesome JS library http://jsplumbtoolkit.com
#
barnabywalters
which handles all the connections. you just specify which HTML elements to connect, and it draws and updates the SVG
#
Jeena
neat, even though I kind of would have expected it to be rendered in a WebGL canvas
#
barnabywalters
well that would mean having to learn WebGL :)
#
Jeena
hm yeah perhaps
#
Jeena
but lerning new stuff is fun anyway :D
#
barnabywalters
of course! but in this case the important thing is the flow based programming UI, not the nitty gritty of how it’s implemented, so I used the tools which allow me to focus on that
#
tantek
Jeena - congrats on getting your notes to POSSE to Twitter!
#
tantek
you mentioned replying to people from your site - that's definitely a good thing to implement!
#
tantek
it requires a little more work of course, to set the in-reply-to-status-id for proper threading
#
tantek
gets a URL
#
Jeena
thanks, it wasn't that complicated, I found out that you can get a oauth_token and secret from the dev-page on twitter so you don't have to deal with the oauth process
#
barnabywalters
Jeena: how have you implemented posting without having to log in? https://jeena.net/notes/5
#
tantek
Jeena - you may find this helpful when implementing replies: http://indiewebcamp.com/Twitter#POSSE_Replies_to_Tweets
#
Jeena
I saved twitter_consumer_key, twitter_consumer_secret, oauth_token and oauth_token_secret in my code
#
tantek
barnabywalters - I'm guessing secret URL on his site ;)
#
Jeena
tantek I already did, with:
#
Jeena
in_reply_to_status_id = in_reply_to.split("/").last if in_reply_to.starts_with? "https://twitter.com/"
#
Jeena
and then instead just the status I send:
#
Jeena
{status: text, in_reply_to_status_id: in_reply_to_status_id }
#
tantek
what happens if you have more than one in-reply-to URL?
#
Jeena
I obviously make a ton of assumptions but that is ok, I'm the only one who uses it
#
tantek
I think we are all doing that (making a ton of assumptions about usage) :)
#
Jeena
tantek I only can have one twitter in-reply-to but I can have multiple others
#
Jeena
I just go through the links in my html and do a webmention to every of them
#
tantek
great
#
Jeena
Does the Twitter API even allow more then one in_reply_to_status_id?
#
tantek
but if you have more than one in a post, you have to pick one somehow to POSSE
#
Jeena
my UI looks like this: http://jeena.net/s/latest.png the one at the bottom is for one which doesn't need to be in the text
#
Jeena
If I need more I have to put them into the text
#
Jeena
and those only work with webmentions, not with twitter, but ok for now I think
#
tantek
Jeena what's the name of your posting tool?
#
Jeena
uhm it doesn't have one :-(
#
Jeena
If I come up with one I will tell you :)
#
tantek.com
edited /design (+254) "add a screenshots section with links to p3k, taproot, example from Jeena"
(view diff)
KartikPrabhu joined the channel
#
Jeena
oh but let me change the URL, because next time I make a screenshot this url will show something else ;)
#
tantek.com
edited /design (+58) "/* Screenshots */ specific URLs"
(view diff)
#
tantek
Jeena - or feel free to upload it (perhaps with an ISOdate in the name) to indiewebcamp.com
CheckDavid joined the channel
#
jeena.net
edited /design (+15) "/* Screenshots */"
(view diff)
#
Jeena
hmmmm, perhaps I should write some user-js so if I click on a reply button in twitter it opens my website and populates everything so I don't need to do it manually ...
#
Jeena
I see you guys have already done everything I come up with :p
#
barnabywalters
Jeena: thanks :) hope you find it useful — any feedback/pull requests very welcome, I haven’t really worked on it much for a while
#
Jeena
hehe watching https://www.youtube.com/watch?v=9OAfvuKCsEk it looks like it would let me do exactly what I was thinking about
snarfed joined the channel
#
Jeena
hm how do I get to the options? firefox opens a new tab with chrome://webnactions_kango/content/options.html which obviously doesn't work ;)
tantek joined the channel
#
Jeena
ok got it
j12t, KartikPrabhu, iangreenleaf and iangreenleaf1 joined the channel
#
Jeena
oh man, this is almost perfect, the only thing I would need is the twitter username as a variable
#
Jeena
but I can get it from the URL instead as a forkaround for now
iangreenleaf joined the channel
#
barnabywalters
Jeena: yeah I did make an earlier version with some silo-specific things like that but decided instead to make something which just works with URLs
#
Jeena
yeah I understand
bnvk, snarfed, friedcell and voxpelli joined the channel
#
voxpelli
Displaying WebMentions – sort on h-entry publish date or on webmention receive time?
KevinMarks2, bnvk, barnabywalters and barnabywalters_ joined the channel
#
snarfed
voxpelli: dt-published or dt-updated please!
#
voxpelli
snarfed: yeah, makes sense with Brid.gy in mind – dt-published it is then
#
voxpelli
Just a bit worried that it will be hard to track new entries when they can appear in the middle of a comment thread
#
snarfed
if you're ordering by time, then a reply's time is dt-published if it provides it
#
snarfed
for direct replies, that will usually be the same as the received time, but for indirect cases like bridgy, it's not
#
snarfed
bridgy often sends webmentions for replies (likes etc) that were created days or weeks or months earlier
#
snarfed
sorry, you already knew that :P
pasevin joined the channel
#
snarfed
you can do nested threading too if you want. an h-entry can have multiple u-in-reply-to links, e.g. one to the top level post and one to another reply
#
snarfed
doesn't happen often in practice yet though
schalkneethling and snarfed joined the channel
#
snarfed
Jeena: late to the game, but you can definitely posse to facebook automatically w/their api
#
snarfed
there's plenty of code that does that automatically, e.g. wordpress plugins and more
#
Jeena
Ok, nice, but I need to do it half manually, but perhaps there is a rails plugin too
pasevin, KartikPrabhu, bnvk_, barnabywalters and bnvk joined the channel
#
iangreenleaf
aaronpk: Have you done any POSSE stuff with fitness tracking data? I see you've written about it.
#
aaronpk
iangreenleaf: I haven't done POSSE with the data, but I am tracking a few things on my own site
#
aaronpk
I just don't push that out to any Esilos
#
aaronpk
and technically the sleep and weight there is PESOS, but the pushups are original data
j12t and scor joined the channel
#
iangreenleaf
cool cool. you just making up your own data formats? I don't know of any particularly standard ones for most metrics
#
aaronpk
i'm basing it off of microformats
#
aaronpk
and based off of the format from the device I get the data
snarfed, schalkneethling and voxpelli joined the channel
#
KartikPrabhu
bear: any reason ronkyuu stores that a url is a reply? https://github.com/bear/ronkyuu/blob/master/ronkyuu/webmention.py#L63
melvster, pdurbin, ozten, icco and caseorganic joined the channel
#
bear
looks
#
bear
KartikPrabhu - that is my planning ahead. I *think* that reply mentions will be handled/flagged for further processing (at least I did when I wrote that :)
#
KartikPrabhu
bear: cool!
icco joined the channel
#
bear
KartikPrabhu - and i'm also all for removing it if it's not used - keeping code around "just because" is, for me, a old bad habit - so please do call me on it so I can unlearn it
tantek joined the channel
#
KartikPrabhu
bear: I think when sending mentions it does not matter if it is a reply or not. But it would be important while parsing a received mention.
#
bear
nods
#
KartikPrabhu
and if I am parsing a mention I received then I wouldn't be searching for all 'a's anyway. just the one that was mentioned
#
KartikPrabhu
that's why I was thinking that the reply check is not necessary in this one
#
bear
that's a good point about the code - please do submit a PR with that change (and even a note as to why) - I would love to have your ideas and usage notes in the code
#
bear
if not a PR then an issue with the above - so I can make the change later
#
KartikPrabhu
i was modifying quite some bits in my forked version. I'll update it on Github with notes of changes. I'll let you know
#
bear
\o/ thanks
#
Jeena
Pullrequest!
pfenwick, icco, bnvk and hallettj joined the channel
#
KartikPrabhu
Q: For webmention endpoint discovery is it correct to only look in the document head and not the entire document?
#
Jeena
don't forget the Header too
#
bear
I think it's head only
#
KartikPrabhu
Jeena: yes. I still have to figure that out :)
#
bear
jeena - you mean in the HTML server response header?
#
aaronpk
you should probably just parse the whole HTML document for the rel values
#
Loqi
fo sho
#
aaronpk
for example if you run a page through php-mf2 you get back an array of rels regardless of where in the HTML they occur
#
bear
hmm, didn't think it would be returned in the header
#
Jeena
I think it is more complicated to stop at the end of head then just let a parser parse the whole thing
#
tantek
bear - there are examples of sites that do that
#
bear
guess I have some code to change/improve then
#
tantek
listed on the webmention page (that use HTTP LINK header for webmention discovery)
#
tantek
there's a bunch of open source to parse them too - in various languages
#
Jeena
I only add the link to the HTTP header
#
aaronpk
yes, both the HTTP header and HTML header
#
KartikPrabhu
Jeena: Beautiful Soup in python can parse any fragment. and it is apparently foster to do only the required parts
#
KartikPrabhu
faster not foster
#
Jeena
how much faster, 20 ms?
#
KartikPrabhu
yeah well! good point
#
KartikPrabhu
Jeena: point taken
#
aaronpk
yeah the time saved by parsing only the HTML <head> instead of th ewhole doc is going to be exponentially less than the time spent making the HTTP connection to actually send the webmention
#
KartikPrabhu
\me needs to stop over-optimizing
#
bear
I did the <head> only from my reading of the /webmention page
#
bear
ah, and I guess I didn't make it down to the bottom of the page where Alternatives are listed
icco joined the channel
#
bear
it just that it seemed (to me) that /webmention page was clear that it be only in <head>
#
Jeena
btw. parsing the header is really easy, I always thought it is complicated because you can have multiple links in one Link: header etc.
#
Jeena
links = response["link"].split(",").reject{|l| not l.split(";")[1] =~ /webmention/}>
#
Jeena
or something like that
scor joined the channel
#
bear
yea, not too worried about implementing it or changing what parts to look for it - just being cranky-grumpy about something that I just need to stop being cranky-grumpy and edit the wiki about :)
CheckDavid joined the channel
#
jeena.net
edited /webmention (+387) "added jeena"
(view diff)
#
Jeena
so with me we're 9 people using webmentions? That is not many, but I still like it.
#
aaronpk
i think there's more. that list is probably not complete anymore
#
Jeena
yeah tantek isn't on it either
#
@diplix
auch dieser tweet kann getrost ignoriert werden. ausser von https://www.brid.gy/ #webmention (http://root.wirres.net/reclaim/webmention/)
(twitter.com/_/status/424688781443096576)
#
Jeena
german webmentions tweet!
#
@jeena
@diplix german Tweet about #webmention wohoo!
(twitter.com/_/status/424689024738275329)
#
Jeena
My workflow works really well after just one day of development https://jeena.net/notes/7
#
aaronpk
Jeena: that's awesome! congrats!
pfenwick joined the channel
#
KartikPrabhu
bear: made some changes to webmention sending in ronkyuu. feel free to comment/critique. https://github.com/kartikprabhu/ronkyuu/commit/de415b0a6a6430bf6fbbf2cea9e0c9ca3d394410
#
bear
thanks!
#
snarfed
nice work Jeena! btw, happily, there are plenty more webmention userse. idno and pfefferle's wordpress plugin have lots of users, for example. also see http://indiewebcamp.com/bridgy#IndieWeb_Examples
icco joined the channel
#
Jeena
yeah I just saw, this german tweet was done with this plugin, need to have a look at it
#
bear
KartikPrabhu - great changes! I would love to see this as PR and I would love to add you to the project contributor's list
#
Jeena
I wonder about https://www.brid.gy/ I'm not quite sure I understand it correctly, what does it actually do? How does it know which of the links I post are posts to my website which have webmentions enabled?
#
KartikPrabhu
bear: I'm new to git, so will have to figure out how to do PRs :P. But will do so for these changes...
#
Jeena
ah there is a more link
#
bear
KartikPrabhu - I appreciate you taking the time to improve the code. if you have made the change to your fork on github, the web ui for the commit should have a pull request button that is now visible
muesli joined the channel
#
KartikPrabhu
bear: I want to use ronkyuu instead of writing the same code again, so I am adding things that I would use. :) also did the pull request thing. Did it work?