#indiewebcamp 2015-07-07

2015-07-07 UTC
KartikPrabhu joined the channel
#
@dougmckown
@benwerd Is there a podcast that covers #indieweb?
(twitter.com/_/status/618212129687105536)
sparverius, wolftune, KevinMarks, sensiblemn and KevinMarks__ joined the channel
mlncn, snarfed, lukebrooker, wolftune, KartikPrabhu and endi joined the channel
#
bret.io
edited /2015 (+17) "/* Organizers */"
(view diff)
tantek joined the channel
#
aaronpk
bret: do you have a car?
#
aaronpk
or wagon?
benwerd, KevinMarks, elima_, glennjones, Deledrius__, cweiske, KevinMarks__, Jihaisse and friedcell joined the channel
#
tantek.com
edited /2014-review (+161) "/* Technologies */ person-tag"
(view diff)
KartikPrabhu and Zegnat joined the channel
#
Zegnat
Good morning IWC
eschnou and csarven joined the channel
#
tantek.com
edited /2014-review (+252) "/* Community Resources */ mute, collection"
(view diff)
#
tantek.com
edited /2014-review (+80) "/* Community Resources */ travel"
(view diff)
#
Zegnat
Is there any preferred image host for publishing screenshots on the wiki?
friedcell joined the channel
#
vanderven.se martijn
edited /birthday (+145) "/* Facebook */ Add screenshot of separate privacy levels."
(view diff)
sanduhrs joined the channel
#
tommorris
Zegnat: just upload the screenshots to the wiki itself. there's an upload file function in mediawiki.
#
tommorris
Zegnat: the image is then stored on the IWC servers and licensed properly etc.
#
Zegnat
Ah, alright, must have missed that function!
#
vanderven.se martijn
uploaded /File:facebook-basicinformation-birthday.png "Birthday configuration on Facebook."
#
vanderven.se martijn
edited /birthday (-24) "/* Facebook */ Move screenshot to IWC servers."
(view diff)
#
Zegnat
Thanks tommorris!
KevinMarks, friedcell, squeakytoy, KartikPrabhu, sammachin, mlncn, elf-pavlik, evalica, evalica1, Tristitia, Sebastien-L, tvn, adactio, LukasRos_, Rev_Illo, LauraJ, petermolnar, LanceyWork, frzn, glennjones, glennjones_, cmhobbs, byroniczero, nedorito, sanduhrs, snarfed, Pierre-O and shiflett joined the channel
#
@RikMende
I guess @MPE_HVE might be the only NGO implementing #indieweb from the get go - already one step in the future!
(twitter.com/_/status/618417698213658624)
#
csarven
No!
#
petermolnar
I'd create a special result for that, with recommendations from previous/next month entries
#
petermolnar
or a page with "sorry, I was not blogging that time"
#
petermolnar
but not 404
#
csarven
jonnybarnes petermolnar gives a good alternative.
#
csarven
Another option may be to redirect (if you can) to /blog/>{year}
#
csarven
I said no at first because misread your question. I think 404 is also okay. In the 404, you can also do what petermolnar suggested
#
csarven
That'd be preferrable in my opinion.
Lancey_ joined the channel
#
csarven
If I arrived at that document, I'd prefer to see a 404, and then an index with links to all of the months for that year (where the current one is unlinked and greyed out).
#
petermolnar
I wouldn't server actual content with a 404, but I believe that's the pre html4 speaking in my head
#
Zegnat
I would send a HTTP 404 code still, simply because there is no content there currently, and might never be (in case of backdated years/months). Serving a page with 200 OK for every possible year (theoretically starting at year /blog/0/january/) seems odd to me
#
Zegnat
Of course for the visitor you might to offer a nice explanation text and links that do give content, but for browsers/crawlers I would still serve it as 404
#
Zegnat
There is no HTTP status code that better says “there is nothing of interest here right now, but there might be in the future”, I think
LanceyWork joined the channel
#
Zegnat
787 - Further Funding Required
#
Zegnat
I am not sure how crawlers handle status codes they do not recognise? We can be pretty sure 404 responses are properly handled.
fourtonfish and mlncn joined the channel
#
csarven
Hmm, well, come ot think of it. 410 may be more appropriate here because you have a good idea why it is not available. 404 is for when you don't know or don't want to indicate why it is not there.
#
csarven
410 is a bit dangerous because you tell the consumer not to come back again.
#
csarven
So, if you haven't posted the whole month and then the last day of thta month you post, that's no good.
#
csarven
302 is another alternative. Like I said, you can point them to {year}
#
csarven
Use 404 if you never had a post there and never will. Use 410 if you had it but removed it. Use 302 during that month, and then switch to 404 the next month.
chalettu joined the channel
#
rhiaro
csarven: there's probably a brainstorming section on a wiki page for this...
#
jonnybarnes
so 302 for a current month whilst there’s no content, then 200 once there is an article?
#
jonnybarnes
and if no articles are written switch to 404 at the end?
#
aaronpk
personally i would just return 200 with no posts. anything consuming microformats will just see an empty items array
#
ben_thatmustbeme
is reading back
#
aaronpk
is also not a huge fan of mixing HTTP status codes with application logic
KevinMarks__ joined the channel
#
ben_thatmustbeme
it should be 404
#
aaronpk
I prefer reserving 404 for things that are just not valid URLs for my site
#
ben_thatmustbeme
they should not have been at that URL other that by typing it in. presumably if there is no link on your site, and there is no events in that timeframe, 404 would be correct
#
aaronpk
my month permalinks will link to adjacent months even if there are no posts there, which I think is totally fine
#
rhiaro
Mine too
#
rhiaro
Kind of feels like a mysterious gap of a month is skipped
#
rhiaro
Not that I handle the empty months well
#
ben_thatmustbeme
in which case, i'd say your link to "a month" is valid, and should return a 200
#
ben_thatmustbeme
you got the item you wanted, a month. it just happens to be empty
#
ben_thatmustbeme
if 204 didn't have assumptions about not changing the view, i'd say that would work too
#
ben_thatmustbeme
i view mine as archives. there is no archive for that date
#
ben_thatmustbeme
buit i don't have next/prev links
#
Loqi
ben_thatmustbeme meant to say: but i don't have next/prev links
Sebastien-L, friedcell, KevinMarks, wolftune and KevinMarks__ joined the channel
#
Zegnat
https://aaronparecki.com/3019/01/ - gives a 200 response, but with the calendar month of January 1970. That doesn’t seem right.
#
aaronpk
well that's tricky... 3019 is totally a valid year, I am just not likely to live that long
#
Zegnat
That’s the problem with status 200 here, I feel. Anyone could request any future or past month, possibly completely out of the websites scope.
#
rhiaro
What if you hand your blog down through generations
#
aaronpk
i stand by my original argument, 404 is for URLs that make no sense on my site
#
Zegnat
rhiaro: domains are personal in indieweb context right, should those ever be handed down?
#
aaronpk
I will give you that it's a bug that it says 1970, but that's it
#
rhiaro
Lots of personal things are handed down / inherited
sebbers_ joined the channel
#
Zegnat
https://aaronparecki.com/notes/2018/01/ makes sense and is a 404. (Not picking on you specifically here aaronpk, I just happened to have your site open when I needed these examples. These things probably go for almost every site.)
#
Zegnat
wonders what tantek does with this
#
aaronpk
well that URL is 404 because I don't have it set up to respond to that pattern https://aaronparecki.com/notes/2015/01/
petermolnar joined the channel
#
Zegnat
I thought that to be the case aaronpk :) It is just that things might grow out of hand when you want 404 only for non-valid URLs. /notes/2018/01/ might very well get content within a reasonable future (unlike year 3019)
tantek joined the channel
#
aaronpk
no it's quite easy, my URL pattern matcher catches URLs like /yyyy/mm and /yyyy/mm/dd, regardless of what the years and months are. but if you type in something random that doesn't match any of the URL patterns on my site it returns 404
#
aaronpk
note that https://aaronparecki.com/notes/2015/01/ is not a valid URL because I don't have any code set up to handle that even when you'd think there *should* be posts on there
#
Zegnat
ah, interesting
#
tantek
good morning #indiewebcamp!
#
aaronpk
unrelated to this discussion, I am dropping the initial "notes" post type bit from my URLs soon, so that will be less confusing in the future
#
tantek
aaronpk - yes there should be a page at every trimmed URL segment :)
#
aaronpk
yeah, that's a different issue
#
Zegnat
Future year/date URLs on tantek.com also give status 200, just no items in the OL-element. Funny enough the layout breaks in future years because it loads the CSS relative to the year (e.g. tantek.com/2016/001/ has no CSS)
#
aaronpk
there sure are a lot of copies of cassis.js on tantek.com! http://tantek.com/2238/cassis.js
#
tantek
Zegnat++ that is a GREAT catch!!!
#
Loqi
Zegnat has 7 karma
#
tantek
aaronpk - every request for cassis.js at tantek.com gets served from /cassis.js
#
tantek
no matter what path
#
Zegnat
looks like tantek set up a redirect for cassis.js but not for his css :)
#
aaronpk
i figured as much
#
tantek
Zegnat because I want the cassis.js to always be the same no matter the year etc., where as the CSS gets archived per year
#
Loqi
gives tantek the cassis
KevinMarks__ joined the channel
#
tantek
s/where as/whereas
#
Loqi
tantek meant to say: Zegnat because I want the cassis.js to always be the same no matter the year etc., whereas the CSS gets archived per year
#
tantek
drinks the cassis
#
Zegnat
makes sense
#
Zegnat
I like the per-post scoped CSS thing though, I might steal that idea
#
tantek
Zegnat - see, what is custom post style?
#
Loqi
Custom post style is the practice of styling individual posts differently from the rest of the site styles https://indiewebcamp.com/custom_post_style
KevinMarks__ joined the channel
#
tantek
there you go ^^^ borrow/steal away!
#
tantek
feel free to ask any questions about implementation, design. happy to answer, having just coded it up
#
aaronpk
bookmarks this link in case he needs to check facebook for things https://mbasic.facebook.com/home.php
benwerd joined the channel
#
Zegnat
Hmm, that wiki page needs some love for JSM, he was doing per-post design (for almost all his posts) back in 2008
KevinMarks joined the channel
#
Zegnat
He even included screenshots in his archives: http://v4.jasonsantamaria.com/articles/2008/06/
#
tantek
Zegnat - definitely add him as an example!
#
tantek
especially since you have citations and dates!
#
aaronpk
possible source for parsing facebook posts without using the api?
martinBrown joined the channel
#
tantek
aaronpk - I'm not sure what that mbasic page is doing - could you add it to /Facebook somewhere?
#
aaronpk
it's the news feed as HTML
#
aaronpk
and has links to each story as an HTML page
#
tantek
whoa - that's definitely worth documenting!
#
tantek
does it work w/o JS?
#
aaronpk
trying now...
#
aaronpk
yeah works great with no js!
#
tantek
awesome
#
tantek
maybe we should ask some FB employee friends to see if they can add microformats2 to that view
#
aaronpk
that'd be amazing
snarfed joined the channel
#
tantek
I have a feeling that as a non-primary view they may have more flexibility with modifying that - especially if we can give them tests to check-in and automatically verify results
#
tantek
the question is - is it possible to algorithmically translate from "typical" FB permalinks to mbasic facebook permalinks - if so, that leads to some interesting opportunities
#
vanderven.se martijn
edited /custom_post_style (+666) "Adding JSM as example from 2008."
(view diff)
#
Zegnat
That’ll have to do, should serve as well enough inspiration :)
#
kylewm
huh, that's a good point, facebook.com/userid/posts/postid seems to map to mbasic.facebook.com/story.php?story_fbid=postid&id=userid
#
kylewm
even without microformats, that could still be useful for generating reply contexts and stuff
#
kylewm
is it weird that facebook permalinks don't include "og:..." tags?
#
kylewm
i think it's weird
#
kylewm
almost as if they are only intended for facebook to consume
#
aaronpk
i was about to say...
#
aaronpk
pretty sure that's their intention
#
kylewm
But does that strike you as hypocritical?
#
aaronpk
yes but what do you expect
snarfed, j12t and KevinMarks_ joined the channel
#
tantek
kylewm: shhhh don't tell them they don't selfdogfood OG ;)
shiflett and fkooman joined the channel
mlncn, cmhobbs and snarfed joined the channel
#
ShaneHudson_
I won't be able to get to Brighton this weekend but will try to join in during the weekend remotely :)
snarfed, eschnou, benwerd and chreekat joined the channel
#
GWG
Afternoon
yakker and KevinMarks__ joined the channel
sensiblemn, KevinMarks___, LanceyWork, mlncn, chreekat and cweiske joined the channel
#
kylewm
hi chreekat, welcome
#
kylewm
chreekat: what brings you here? when you have a chance, feel free to add yourself to http://indiewebcamp.com/irc-people
#
aaronpk
rawr, i'm super upset about eye-fi dropping support for their "old" cards (non-cloud-based cards)
#
chreekat
kylewm: hi! I registered for the camp this weekend. I'm on irc often these days, so I thought i'd hope in
#
kylewm
wow, aaronpk that is really disappointing
#
aaronpk
I don't wanna pay for the eye-fi cloud service :(
#
chreekat.net
edited /IRC_People (+57) "/* Nicknames */ added self"
(view diff)
#
aaronpk
this would be a great use for Micropub
#
aaronpk
get the card to upload directly to a Micropub endpoint. then eye-fi's servers aren't even involved so they don't have any servers to maintain
#
aaronpk
oo there's a Toshiba card with a developer platform that lets you write apps that run on the card...
gRegorLove joined the channel
#
aaronpk
i can totally write a micropub app for this card
#
aaronpk
I think I may have found my indiewebcamp hack day project :D
cmhobbs, mlncn, KevinMarks, KevinMarks__ and tantek joined the channel
#
tantek
aaronpk that sounds pretty awesome!
#
tantek
I have too many things I want to do this weekend!
#
tantek
I may bring all my "old" indieweb notebooks and open source all my UI sketches for user-forgiving undoable post UIs that I have *yet* to implement.
#
tantek
s/UI sketches/UI sketches and user flows/
#
Loqi
tantek meant to say: I may bring all my "old" indieweb notebooks and open source all my UI sketches and user flows for user-forgiving undoable post UIs that I have *yet* to implement.
tilgovi joined the channel
#
tantek
even if that doesn't get anything "built" on my own site, I'm hoping a) others might be interested, and b) we can see if there is some way to connect those user flows with micropub (i.e. does micropub allow for some way for clients to "undo" stuff at the server)
#
tantek
(also involves things like delayed POSSE)
KevinMarks joined the channel
#
tantek
btw - the entire undoable posting UI flow I've sketched allows for (builds on) lack of clientside JS.
#
tantek
so perhaps alternatively - I could try to *implement* it - but may need some help from more back-end savvy folks.
KevinMarks__ joined the channel
#
tantek
hmm - how long have we been 140+ in the channel? more characters here than will fit in a tweet ;)
indie-visitor joined the channel
#
Loqi
Welcome, indie-visitor! Set your nickname by typing /nick yourname
snarfed joined the channel
#
tantek
the other big itch (need to document it!) that I've got is a super-clean/slick/pretty design for "mobile" viewing of my posts and home page stream. e.g. I want it to look as good or better than how Instagram (iOS app) looks when viewing my stream of photos.
#
tantek
and if I get that, then the next stretch thing after that is to implement tantek.com/photos - a view of only posts that include at least one photo I've taken (yeah that will be interesting to markup) no matter where the photo jpg itself is hosted (my site, IG, Flickr, s3, IWC wiki etc.)
#
tantek
the goal being to make tantek.com/photos load faster and look better than instagram.com/tantek
#
tantek
is anyone else looking at presentation-focused projects like that for IndieWebCamp?
frzn, snarfed, KevinMarks and KevinMarks__ joined the channel
#
@JulianEagles
@GdnVoluntary perhaps it's time to recognise that charities don't own the data, individuals do #ownyourdata
(twitter.com/_/status/618510427190874114)
KartikPrabhu, mlncn_, shiflett, KevinMarks and KevinMarks__ joined the channel
#
rhiaro
Public service announcement. I can now mark when I reschedule or miss travel plans. http://rhiaro.co.uk/2015/06/1433882423 http://rhiaro.co.uk/2015/06/1435431067 No microformats for that yet though
#
tantek
amazing! great to have the real world use-case and example though - that's how it starts!
#
rhiaro
aaronpk, you put strikethroughs through cancelled/rescheduled travel, right?
#
rhiaro
Do you store metadata for that, or just edit html output?
#
rhiaro
s/just/manually
#
Loqi
rhiaro meant to say: Do you store metadata for that, or manually edit html output?
#
aaronpk
rhiaro: yeah I have a "cancelled" property on the post
gavinc joined the channel
#
rhiaro
like, cancelled=true?
#
rhiaro
I use state=".."
#
aaronpk
yeah pretty much
KevinMarks, KevinMarks__, gRegorLove, mlncn, shiflett, benwerd, lukebrooker, KartikPrabhu, sensiblemn and KevinMarks___ joined the channel
#
gRegorLove
I'm thinking through URL slugs as I migrate my site. Considering: /articles/2015/07/title-slug vs. /2015/07/title-slug. Or possibly no date at all, just /articles/title-slug/. I think I like having year and month in the URL though.
#
aaronpk
gRegorLove: note that I am moving *away* from having the post type as the first part of the URL despite thinking that was a great idea when I started
#
gRegorLove
I was about to ask you about that.
#
gRegorLove
Will post type be anywhere in your URLs?
#
aaronpk
not really, I'm moving away from having post types
#
aaronpk
i'm thinking about setting the slug to something indicating the content if I don't manually set a slug
#
aaronpk
I do like having the URLs be somewhat informative as to what's on the page
#
aaronpk
and /2015/07/04/1 doesn't say much
KartikPrabhu joined the channel
#
gRegorLove
Gotcha. Maybe I'm too much into the blog mentality, since that's what my site's always been. I've always had articles and recently added notes, so /articles/ and /notes/ seemed to be the logical top level sections when I started this migration
#
aaronpk
ah yeah, just wait til you start adding stuff I have on http://aaronparecki.com/metrics
#
gRegorLove
Are you still storing them on disk in separate post type folders?
#
aaronpk
right now i've got basic storage and rendering of posts along with a micropub endpoint to create and edit posts, the micropub endpoint has no knowledge of post types, just some knowledge of datatypes of specific fields like "published"
#
aaronpk
rendering the posts is where I start adding post-type-like things, such as using different templates depending on whether there is a photo or video, or sleep data, or a route
#
aaronpk
I still want to have URLs like /articles /notes /photos /runs /sleep /food etc, so I'm adding this idea of a collection (not sure what to call it) where posts may be added to multiple top-level URL paths depending on what's in them
#
tantek
oh hey - yeah I vaguely remember a recent discussion about slugs in IRC that mentioned something hypothesizing about how mine get generated/edited - where was that
#
tantek
definitely have a bunch of opinions about that to share in case it's helpful ;)
#
tantek
(overthought it quite a bit in the early days)
#
gRegorLove
That was me :)
#
gRegorLove
hypothesizing
#
gRegorLove
Didn't see specifics on /Falcon
#
tantek
IRC log link?
#
gRegorLove
Was thinking about /notes specifically at that time, but now looking at the broader picture for my URLs
#
tantek
yeah in general I agree with aaronpk - drop any expliciting post typing from the URL, I can share my reasoning about why I have them in my URLs *after* the date
#
tantek
s/from the URL/from permalink URLs
#
Loqi
tantek meant to say: yeah in general I agree with aaronpk - drop any expliciting post typing from permalink URLs, I can share my reasoning about why I have them in my URLs *after* the date
#
tantek
on the "how many words" question - answer is, keep your permalinks < 70 chars for more reliable email sharing (yes, things still get broken on line boundaries in email clients, including URLs, and thus break)
#
aaronpk
the idea of tantek optimizing his URLs for email amuses me
#
tantek
"requiring" a title is dumb an obsolete in terms of UI. no posting UI should ever *require* a title / name.
#
gRegorLove
I recall reading about your identifiers like 'b' and 't', and the slug isn't necessary to identify the post
#
gRegorLove
tantek: Are you manually specifying your slugs?
#
KartikPrabhu
i have notes auto-generate slug from content words, but they are also editable
#
aaronpk
i really want to get auto-generating slugs for my notes
#
gRegorLove
Hard to find the permalinks on tantek's rainbow background :)
#
aaronpk
i'm thinking about auto-generating slugs for other content as well, such as -sleep -burrito etc
#
tantek
gRegorLove: on that one post?
#
gRegorLove
On your homepage. The left column shows a fixed rainbow background, so the content scrolls up over it. Chrome 43 on Windows
#
KartikPrabhu
tantek: since scoped isn't widely supported I suspect that is a problem even on feed page
#
tantek
gRegorLove: that's a bug in Chrome for their failure to support (or at least don't screw up) <style scoped)
#
gRegorLove
I just scroll until the permalink shows up on the yellow :)
#
tantek
try it in Firefox :)
KevinMarks joined the channel
#
tantek
or even Safari - at least follows the first rule, and does no harm (even though they don't support <style scoped> yet)
#
aaronpk
it's still a problem in FF, because the text is a shade of grey that is lighter and darker than the colored background
#
aaronpk
as it moves across the rainbow
#
aaronpk
it's almost impossible to see on top of the green
#
tantek
ooh good point
#
gRegorLove
best-viewed-in-firefox.png :)
#
KartikPrabhu
making the background a bit transparent might help
#
tantek
gRegorLove: best viewed in browsers supporting <style scoped>
#
tantek
KartikPrabhu: nah - gotta get that full saturation effect ;)
#
tantek
wonders if a .h-entry .dt-published rule in the scoped style sheet would do the trick to override the global styles
KevinMarks__, emmak_ and KevinMarks joined the channel
#
aaronpk
can't wait til i can get back to work on my site again!
mlncn joined the channel
#
tantek
aaronpk: reload
KevinMarks__ joined the channel
#
aaronpk
much better!
#
tantek
#000 works much better against a saturated color bg like that
#
tantek
ok back to slugs
#
tantek
what is a slug?
#
Loqi
A slug is a unique text label that identifies a page in the URL https://indiewebcamp.com/slug
#
tantek
awesome. hey gRegorLove - as I answer your questions - mind adding them to a /slug#FAQ ?
#
tantek
(well if the answer seems satisfactory to you at least - you get to choose ;) )
KevinMarks joined the channel
#
gRegorLove
More likely to add #IndieWeb_Examples and ask people to contribute :)
j12t joined the channel
#
tantek
that's even better - then you can capture everything since those are individual opinions
#
tantek
I agree with dropping stopwords from slugs, EXCEPT when the insertion of 1-2 of them actually makes the slug make more sense if you try to read it like a phrase or fragment
#
tantek
gRegorLove: re: "Or possibly no date at all, just /articles/title-slug/" <-- that's a very bad idea for lots of reasons
#
tantek
first, what aaronpk said about any kind of /post-type/ segment. you really don't want that for permalinks. aaronpk has had to learn this the hardway so I'll let him write the big diatribe about it
#
tantek
pretty sure I tried to gently convince him that it wasn't a great idea years ago, but then decided well maybe he'll prove me wrong ;)
#
tantek
(so I didn't push it, besides, personal choice and experimentation is how we all learn collectively)
#
tantek
second, slugs MUST NOT be critical to the permalink - and pretty sure I already wrote up why on the wiki
#
gRegorLove
I think it's on your wiki, but not IWC iirc
#
gRegorLove
I was reading something on the ProcessWire forums about another CMS (name is escaping me) that used a unique ID in the path before the slug and then had "forgiving" slugs. Basically if you misspelled or had other words, it would redirect to the correct URL.
#
tantek.com
edited /slug (+255) "fix dfn (had too many (bad!) assumptions), explicitly mention part of URL design, see also"
(view diff)
#
gRegorLove
I thought that was a good idea
#
tantek
gRegorLove: yup - that's part of my slug design as well
#
tantek.com
edited /URL_design (+96) "/* Topic */ link slug, emphasize optional part of permalink"
(view diff)
#
tantek.com
edited /slug (+39) "in particular "topic""
(view diff)
tilgovi joined the channel