#dev 2016-08-18

2016-08-18 UTC
mblaney and KevinMarks joined the channel
KevinMarks joined the channel
#
aaronpk
wow haha thanks Loqi
#
Loqi
nice
#
gregorlove.com
edited /events/2016-08-24-homebrew-website-club (+52) "/* Where */ Bham writing hour"
(view diff)
#
aaronpk
i really want to start working on private posts, and letting people log in to see additional posts in my feeds
#
aaronpk
but i'm kind of stuck on how to actually implement that from a database design perspective
#
KevinMarks
What's the sticking point? Lists of domains that can read a post? Or wanting named groups?
#
aaronpk
the simplest case is I have a post and mark it as being visible to user #2. how do I design the database and write the query to render my home page that includes that post, when that user is viewing it?
#
aaronpk
i eventually want to extend this idea to groups, so i actually make posts visible to certain groups, and can assign users into groups
#
aaronpk
but direct user addressing of posts is a simple example and still demonstrates the challenge
#
aaronpk
you know what? maybe i'm going about this wrong, and should rethink how I even want this to work in the first place
#
bear
depends on how secure you want it to be I guess
#
bear
do it at the web server level and you can block all requests unless a token or cookie is found
#
bear
oh right, php - you could do that in code
#
aaronpk
the individual post isn't the problem. the problem is generating lists of posts
#
bear
tags
#
bear
just make that another one of your collections
#
aaronpk
yeah that's what i was about to say
#
aaronpk
back in 2008 i built out a twitter clone that had the concept of "channels" or "collections"
#
bear
then all of your other UI and process doesn't change
#
aaronpk
every post i'd write i would choose which channels it appeared in. some were public and some were private
#
bear
yep, conversations between people in them would just be normal [web|sal]mention
#
bear
the only gotcha would be a private post webmention -- how would my site validate a webmention from a private post
#
aaronpk
well that's a whole different problem
#
aaronpk
i'm not even talking about cross-site stuff yet
#
bear
sure, just following the rabbit hole
#
aaronpk
just you log in, and you get to see stuff that isn't public
#
aaronpk
what is private webmention?
#
Loqi
private-webmention is a suggested protocol for combining microformats2, Webmention, and IndieAuth to convey private posts between two people or between groups of people https://indieweb.org/private-webmention
#
aaronpk
some brainstorming there
#
aaronpk
but what i'm talking about, the fundamental difference is whether you want someone to know they're reading a partial feed, or whether you want them to read your home page and see something different than when someone else logs in
#
bear
yea, my site would need to have a way to get a token for webmention scope
#
bear
yea, that's a different UX issue altogehter
#
aaronpk
yeah that's my current struggle
#
aaronpk
at the permalink level it's just figuring out the mechanics at this point, not super hard
#
bear
looking at your site now as the starting point for a ux thought ... everything is public and the main feed until I get to the footer
#
bear
so then maybe I would see a "bear only" item?
#
bear
or an additional row at the bottom of your header box
#
aaronpk
that would make sense to see messages addressed specifically to you
#
bear
"bear: private, webmentions, likes, ..."
#
aaronpk
but what about things that I post to small groups, not necessarily addressing you specifically?
#
bear
they would appear as a tag cloud?
#
bear
bear: private; groups: dev, beards ??
#
bear
heck "private" could just be a special group
#
aaronpk
that could work
#
aaronpk
but i might want to create groups that you don't know you're in
#
aaronpk
facebook's groups work that way
#
bear
right, that is still a tag cloud
#
bear
they would just appear on my "group sidebar"
#
bear
maybe in a tagged sub-section
#
aaronpk
is there any reason not to just include those posts in my home page feed then when you're looking at it?
#
bear
like facebook says "you were tagged in ..."
#
bear
you would have to have a very obvious UI item
#
bear
otherwise I would be confused when I made the context switch from public to private
#
bear
almost like a callout to the right or left that has a private tag icon and the group name
#
bear
because as I'm scrolling down i'm seeing the content before your item footer
#
aaronparecki.com
edited /User:Aaronparecki.com (+744) "/* itching */ Some brainstorming on private posts"
(view diff)
#
unicyclic.com mal
edited /PubSubHubbub (+235) "/* IndieWeb Examples */"
(view diff)
#
bear
was trying to look for an example but my google-fu for design keywords is bad
#
bear
the quickest example I could think of is the vertical change bar used by diff tools
#
bear
if that appeared next to one of your post with the tag/group name text in the coloured bar... it would really stand out with your clean design
#
aaronpk
interesting
#
bear
even if it's just a colour swatch in the background of your rounded box
#
miklb
couldn't a special class be added to posts with a "private" flag set, that way you can style it
#
bear
and then... right what miklb just said
#
aaronpk
facebook has little icons that show whether a post is public or shared with a group
#
aaronpk
sometimes i feel like that is too subtle
#
bear
yea, I never notice them until it's too late
#
aaronpk
there is only a facebook example here https://indieweb.org/private#Facebook
#
aaronpk
and the screenshot is out of date now
#
bear
yea, I call that a young-eyes design
#
unicyclic.com mal
edited /SWAT0 (+181) "/* IndieWeb Examples */"
(view diff)
KevinMarks_ joined the channel
#
aaronpk
using a thicker border and making it a different color is pretty effective https://aaronparecki.com/uploads/Screen-Shot-2016-08-17-18-25-53.png
#
bear
yea - it really stands out
#
bear
just have to make sure your photo items don't cause it to disappear visually
#
bear
I meant if the photo was the private item
#
bear
you lose the amount of bordered box area you can see
#
bear
yea, that really works
#
aaronpk
could even do red for a message addressed to only you
#
bear
you still would need some way to discover what that difference was all about
#
aaronpk
tho i think showing who a post is adressed to is a different UI issue
#
bear
"oh look, aaron likes coloured boxes!"
#
bear
i've always been a fan of the small tab or "hanger" that moves with a cursor when scrolling
#
bear
____| bear |_____
#
aaronpk
like instagram?
#
bear
pulls out his phone to look
#
bear
oh yea, that header line that scrolls up and sticks
#
aaronpk
that sounds like a good enhancement for just showing the header line statically on the top of the post
#
bear
cool, I hope my babbling has been helpful in unblocking your ux exploration :)
#
bear
i'm off to find out what is for dinner
#
miklb
👍
#
KevinMarks_
Look at Google+ for group visibility?
#
miklb
anyone have a suggestion where to learn a little more about using git in a shell script. I have a script that pushes a branch to gh, now I want to push another branch as well, but not exactly sure how to go about that
#
miklb
hmm. looks like I just need to pretend like I'm at the CLI
KevinMarks, AngeloGladding and KevinMarks_ joined the channel
#
miklb
except pushing back to gh is failing somewhere
#
rascul
put the script in a gist or something, i'll take a look at it
#
rascul
maybe i can see what's happening
#
miklb
I think I see what the problem is, I'm getting "detached head"
#
miklb
I'm checking git status from within the script on Travis to verify where it thinks it is. My debugging skills are weak :)
#
miklb
thank you for the offer though rascul
#
rascul
oh, i'm not really all that good with the git stuff, if it was an issue with shell scripting i could probably figure it out though
#
rascul
i can add, commit, push, and do fancy stuff after i google ;)
#
miklb
I'm pushing another change, and explicitly checking out the branch I need to be on.
#
miklb
heh, I'm doing a fair amount of googling tonight myself.
#
rascul
are you sure you have the cd .. in the proper place?
#
rascul
seems like maybe it should be inside the if block
#
miklb
well, the if is checking if in the jekyll branch, which is what I want to push back to, but I think since it's pushing to mater in there, it looses being in jekyll.
#
miklb
notes that was a poor choice of branch names
gRegorLove and KevinMarks joined the channel
#
bear
remember miklb that you have to update master branch before creating another branch
#
miklb
bear thanks. I'm not creating another branch though
#
bear
otherwise you get the detached head - which is git speak for: the version HEAD is at is different than what the origin has for the HEAD version and you have asked for a new branch
#
miklb
I fixed the detached head by checking out the original branch again after pushing master
#
bear
I was just using the "branch" named master as an example
#
miklb
everything seems to be working now except I'm not authenticating with gh to push the changes. Need to resolve that
#
bear
coolness
#
miklb
all this to push cached webmentions after a build :)
#
miklb
but the bigger goal is to add u-syndicate links to POSSE posts through bridgy
#
miklb
which I think I've got a solution for, but wanted to make sure this step was working before tackling
#
bear
I still haven't figured out why my syndicate's are not showing up in Quill
#
rascul
yay done with my codes for tonight
#
Loqi
does a happy dance!
#
rascul
little bit more codes for tomorrow, then i get to play with templates, and hopefully i'll have a site again tomorrow
#
miklb
bear dod you know what this means? "error: src refspec origin does not match any."
#
bear
it means you haven't done your first commit
#
bear
is this a new repo created via init?
#
bear
debug it by using `git show-ref` and make sure you have an entry for the branch your in `refs/heads/XXXX`
#
bear
that version is caused by you not having a local ref for the branch your trying to now push to the remote
#
bear
you can force it by doing `git push origin HEAD:XXXX`
#
bear
what I do to avoid this is to use `-b` when checking out a branch so it creates it locally - but then you have to remember to push the branch creation to the origin
#
miklb
well, when I run git status, it says up to date with origin/jekyll
#
miklb
ah. so create a new branch and push that back to my "jekyll" branch?
#
bear
that sounds right
#
bear
for me I always check to make sure i'm on master and it's up to date before doing a checkout -b branch
#
bear
I don't like having to rebase
#
bear
using checkout -b branch is also the style of branch management that github uses
#
miklb
should all of the refs match?
#
miklb
maybe I'm doing this wrong git push "https://${GH_TOKEN}@${GH_REF}" origin:jekyll
KevinMarks_ joined the channel
#
miklb
where GH_REF is the repo
#
bear
you shouldn't have to reference http in your push
#
Loqi
it is probable
#
bear
that comes from tour clone steo
#
bear
s/tour/your/
#
bear
ugh - trying to type with a cat in my lap...
#
bear
the git clone should have set up the remote
#
bear
this is the process I use: 1) git clone <your remote repo url> 2) git checkout -b branchname 3) do stuff 4) git push --set-upstream origin branchname
#
bear
it looks like you are not in the same branch you are trying to push
#
bear
your commit is updating the branch jekyll_new but your push says to send it to origin:jekyll
#
bear
you should do a `git checkout jekyll` and then a `git merge jekyll_new`
#
bear
to pull jekyll_new changes into the branch you pulled from the remote
#
bear
because I stop using the command line git and then forget all the steps that github hides
#
miklb
heh. I use Sourcetree GUI a lot
loicm_, AngeloGladding and KevinMarks joined the channel
#
miklb
\_O_/
#
miklb
bear++
#
Loqi
bear has 160 karma (3 in this channel)
#
miklb
using HEAD:branch worked
rascul joined the channel
#
loqi.me
created /jsdr (+47) "prompted by petermolnar and dfn added by petermolnar"
(view diff)
#
petermolnar.net
edited /jsdr (-29) "Redirected page to [[js;dr]]"
(view diff)
cmal and mindB joined the channel
#
jonnybarnes.uk
edited /DNSSEC (+38) "/* Validating Resolvers */"
(view diff)
#
aaronpk
thinking about combining the border with the "to" section https://aaronparecki.com/uploads/Screen-Shot-2016-08-18-07-36-55.png
#
GWG
Morning
#
Loqi
GWG: petermolnar left you a message 1 day, 5 hours ago: this may interest you: http://wp-cli.org/restful/
Zegnat and gRegorLove joined the channel
#
martymcgui.re
edited /Tor (+218) "add my onion site, notes about e2e encryption and onion svcs"
(view diff)
#
jonnybarnes.uk
edited /Atom (+77) "Add a link to Atom.io"
(view diff)
#
www.funwhilelost.com
edited /IRC_People (+135) "Adding myself"
(view diff)
#
gkbrk.com
created /refback (+2864) "Created page with "{{stub}} '''<dfn>Refback</dfn>''' is a [[linkback]] method that works using the standard ''HTTP Referer header''. ==Software Support== Refback has the benefit of not needing an...""
(view diff)
KevinMarks and miklb joined the channel
#
gregorlove.com
edited /linkback (+14) "+refback"
(view diff)
#
loqi.me
created /Google_Analytics (+98) "prompted by gRegorLove and dfn added by gRegorLove"
(view diff)
KevinMarks joined the channel
#
voxpelli
miklb: your syndicate thing – is that something that could be added to my micropub repo?
#
miklb
voxpelli which thing? u-syndicate?
#
voxpelli
miklb: you said "just need to look at how to move my syndicate-to links" yesterday ;)
#
miklb
I don't think so because the webmention can't be sent until the post is published.
#
miklb
oh, that.
#
miklb
I added them to the sites.js file in /lib
#
miklb
oh and I edited the main.js for queryHander
#
miklb
s/queryHander/queryHandler
#
miklb
if (q === 'syndicate-to' && req.targetsite.syndicateTo)
#
voxpelli
miklb: maybe we could add that to the main repo and make it configurable through an env variable?
#
miklb
that would probably be ideal. Then what I do is send the webmention based on the Front Matter that creates (as well as use some liquid to insert the link in the post)
#
miklb
though I'm working on adding the u-syndicate link which then I'm not sure I need the bridgy link in the post
#
miklb
my goal is to post notes with bridgy no-link but get backfeed from Twitter
#
miklb
voxpelli do you want a pull request for the main.js or just an issue with the couple of lines of code?
#
voxpelli
miklb: pull request would be great :)
#
voxpelli
love to get code contributions and I hope the dev tools are set up to give great feedback on coding style etc
#
miklb
I'll do my best on coding style ;-)
#
miklb
thankfully it's only two lines of code
#
voxpelli
miklb: if you're using eg Atom.app and have the eslint plugin installed there then it will give you coding style help directly inlined
#
miklb
I'll add eslint
#
miklb
I have several other linters
#
miklb
thanks
#
miklb
hmm I guess I need to install esllint on my machine too?
#
voxpelli
miklb: I think it's included, you have to install the dependencies of the project though
#
miklb
how do I do that
#
voxpelli
"npm install"
#
voxpelli
the micropub project I mean
#
miklb
voxpelli done
#
aaronparecki.com
edited /FreeMyOAuth (+6) "fix google link"
(view diff)
#
voxpelli
miklb: added a comment :)
#
cmal
I'm thinking of dropping Protobuf for my collections database project
#
voxpelli
miklb: I btw added documentation for my condition library this evening, so now it's easier to understand how to write them: https://github.com/voxpelli/node-fulfills
#
voxpelli
cmal: opting for text rather than binary?
#
cmal
since I only use fixed-size data (32-bit ints and 64-byte hashes) it adds some overhead in most cases
#
cmal
but the real problem is its integer encoding scheme (which is really clever by the way) makes it impossible for me to have fixed-size entries
#
cmal
maybe I'll go for text, will be a little overhead but it's not that dramatic
#
cmal
or maybe full-binary…
#
voxpelli
oh, running a Micropub service that adds files by committing them to your git repo using GitHub's API:s and then building it by relying on GitHub Pages certainly adds some overhead as well, so I'm probably the wrong person to ask about overhead :)
#
cmal
I don't know, I'm just trying to conceive a single case in which you would have to manually edit a collection (that's supposed to be your CMS' job)
#
miklb
voxpelli lol. I was thinking about that when I was modifying my Travis deploy tasks last night
#
cmal
voxpelli: static-site publishing is really fun :D
#
voxpelli
have many many times done edits directly to the database to fix a critical thing that the CMS didn't support
#
cmal
well here my collections are REALLY as simple as a hash of the route and a timestamp for ordering
#
cmal
do you see a case for manual edition in this situation?
#
voxpelli
I rarely see a case for manual editing, still other people keep finding them for me :/
#
cmal
(I'm also counting on the hash-timestamp match to counterfeit potential collisions)
#
cmal
just found out there's a falafel place near their home. *hmmmmmm*
singpolyma joined the channel
#
miklb
voxpelli not sure I grasp fulfills ;)
#
voxpelli
miklb: ;) write the conditions you want in English in an issue and I'll convert them for you
#
voxpelli
Basically it the Gmail filter box for JSON objects
#
miklb
I may not get to the conversion to the new wmg until after the weekend anyway. Lots to do before beach weekend.
#
voxpelli
miklb: no hurry! I'm just happy that I'm not blocking you :) Been too much of that
#
miklb
oh, no not at all. I kinda want to get the u-syndicate stuff working anyway, and that doesn't depend on switching
#
miklb
I would like to have option to move the /media directory, but that's not blocking anything either.
doesntgolf joined the channel
#
miklb
I'm not taking my computer to the beach, but might try to finalize workflow for micropub from iOS. Have basics working, just need to tweak front matter stuff and add option for those syndicate-to links.
#
aaronparecki.com
edited /FreeMyOAuth () "(-752) replace icons with local caches"
(view diff)
AngeloGladding joined the channel
#
aaronparecki.com
edited /wiki/backup (+9) "remove inactive backups"
(view diff)
#
www.boffosocko.com
edited /Known (-54) "/* IndieWeb Examples */ Tino moved to hugo"
(view diff)
snarfed joined the channel
#
www.boffosocko.com
edited /mobile (+242) "add article and see also"
(view diff)
#
snarfed.org
edited /code-of-conduct (+41) "/* Respect */ add politics and ideology"
(view diff)
#
snarfed
^^^ feedback on that is welcome!
#
aaronpk
i thought that was in there already so 👍
#
bear
(same)
snarfed1 and cmal joined the channel
#
www.boffosocko.com
edited /Posting_from_mobile_devices (+537) "URL Forwarder opensourced; MobilePub"
(view diff)
#
gkbrk.com
edited /website-analytics (+1413) "Reorganized the page"
(view diff)
#
www.boffosocko.com
edited /events/2016-08-24-homebrew-website-club (+187) "LA indie event and FB POSSE"
(view diff)
#
www.boffosocko.com
edited /Events (+303) "put LA HWC on regular 2 week schedule"
(view diff)
#
gregorlove.com
edited /Google_Analytics (+551) "dfn from /analytics, IndieWeb Examples"
(view diff)
#
gregorlove.com
edited /website-analytics (-490) "/* Google Analytics */ link to main article to de-dupe"
(view diff)
#
gregorlove.com
edited /Google (-8) "fix broken hotlinked image"
(view diff)
#
KevinMarks
I am being annoyed by hashes at the moment
#
KevinMarks
Don't base64 them, cmal as then you can't pass them in urls without being driven mad.
mindB joined the channel
#
cmal
KevinMarks: I was thinking of storing them as a binary representation and then using Sodium\bin2hex to get a proper string representation out of it
#
cmal
also I'm not planning on using these hashes in URLs, just locally to symlink to the actual content without knowing its route
#
@RikMende
@pierreozoux it's like the indieauth connection can't return to my own site once I give the manual auth & end up nowhere at woodwind
(twitter.com/_/status/766407850742652929)
KevinMarks joined the channel