#dev 2016-11-29

2016-11-29 UTC
KartikPrabhu, KevinMarks and tantek joined the channel
#
tantek.com
edited /tweetstorm (+1158) "add another tweetstorm example, document Tweetstorm Syntax possibilities brainstorming from a couple of examples"
(view diff)
#
tantek
this tweetstorm is particularly interesting as an authoring method: http://tweetstorm.io/user/paulkrugman/796362835999727617 - at the end the author turned them into a blog post: http://krugman.blogs.nytimes.com/2016/11/09/ending-the-american-romance
#
tantek
maybe that's just the sign of a really good writer, where (nearly?) every sentence itself standsalone and is tweetable, and just makes more sense in the context of the series
KevinMarks, KevinMarks_, gRegorLove, cweiske, chrisaldrich1, chrisaldrich_ and rascul joined the channel
#
seblog.nl
edited /PHP (+13) "/* Projects */ updated idno to Known and added Kirby"
(view diff)
j4y_funabashi joined the channel
#
j4y_funabashi
just got all three micropub update functions working *happy dance*
#
j4y_funabashi
doesnt support json create yet so cant pass the micropub.rocks update tests *sad dance*
#
jkphl.is
created /events/2016-12-07-homebrew-website-club (+2679) "Created page with "<div class="h-event vevent"> <img style="width:100%" class="u-featured" src="https://indieweb.org/images/9/95/hwc-nbg-header.jpg" alt="Joschi, Sebastian, Nadine, Jule, Dirk, Isab...""
(view diff)
#
jkphl.is
edited /Main_Page (-65) "/* Homebrew Website Club */"
(view diff)
ben_thatmustbeme and j4y_funabashi joined the channel
tantek and loicm joined the channel
#
@CallidusPro
rel="webmention", ne avevi sentito parlare? Magari il futuro della SEO --> https://www.w3.org/TR/2016/PR-webmention-20161101/
(twitter.com/_/status/803633173263286272)
#
tantek
oh dear what does webmention have to do with SEO?
#
tantek
Loqi, translate that please!
#
aaronpk
"rel = "webmention", you had heard of it? Maybe the future of SEO --> ..."
#
tantek
oh dear, I'm interpreting that as a call for potential fake webmentions, webmention spamming as it were to place links on other sites
#
aaronpk
oh boy
#
j4y_funabashi
woopwoop, a few small changes later and I have passed most of the json create tests and all the update tests on micropub.rocks \o/
#
aaronpk
congrats!
#
aaronpk
you should definitely submit that report then!
#
Loqi
I agree
#
j4y_funabashi
aaronpk: done
#
j4y_funabashi
not finished yet but I have green ticks for the main things I care about
#
j4y_funabashi
aaronpk++ once again, thanks for making those test suite sites, they are amazing
#
Loqi
aaronpk has 18 karma in this channel (1145 overall)
#
aaronpk
hooray! thanks!
KartikPrabhu joined the channel
#
aaronpk
ugh this is what i was worried about... trying to install silopub, I get "./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory"
#
aaronpk
i assume that means i need some sort of python headers? i don't know anything about installing python stuff
#
www.boffosocko.com
edited /read_later (+127) "notation about Readability's shutdown"
(view diff)
#
aaronpk
sudo apt-get install python3-dev
#
aaronpk
progres... it's running but now it crashes at "ImportError: No module named 'click'"
#
bear
that's a python module, it could be that he didn't update the requirements file
#
aaronpk
`pip install click` worked
#
bear
try `pip install click`
#
aaronpk
now "RuntimeError: The session is unavailable because no secret key was set."
#
aaronpk
but I did set a key in the config file
#
bear
hmm, can you dm me your config
#
aaronpk
it looks like this but with a long string set for the key https://github.com/kylewm/silo.pub/blob/master/silopub.cfg.template
#
bear
hmm, that should have worked
#
aaronpk
if I delete yhe config file i get a different error so i know it's seeing it
#
bear
oh - it uses Flask Session module - did you configure that to store session data someplace
#
bear
SESSION_TYPE = "filesystem" (or redis, memcached, mongodb)
#
bear
filesystem is the easiest to confirm if that is the problem
#
aaronpk
ah i had a feeling that config file was missing stuff
#
aaronpk
there we go
#
aaronpk
hm now i'm missing the database
#
bear
the `install.py` looks to handle that
#
bear
it loads the flask app context, the db context and then tells the db to initialize
#
aaronpk
hm something is wrong
#
aaronpk
i ran install and now there's a db.sqlite file, I changed the owner to www-data, but it's still saying "unable to open database file"
#
aaronpk
so close
#
bear
does your db.sqlite have actual tables and data?
KevinMarks joined the channel
#
aaronpk
i think so
#
aaronpk
i see tables in there
#
bear
short term 777 it and does it work?
#
aaronpk
still no
#
bear
and your sqlite db uri path is accurate?
#
aaronpk
i think so? i mean install.py worked
#
bear
true, it did create the file :/
#
aaronpk
it's 'sqlite:///{}/db.sqlite'.format(os.path.dirname(os.path.realpath(__file__)))
#
aaronpk
which i assume is replacing {} with the path to the config file
#
bear
yes, that is the python3 version of %s
#
KevinMarks
Is this some "spaces in path" glitch? That is a common problem with python that python people don't realise because they took spaces out of their paths years ago
#
aaronpk
i don't have any spaces in the path
#
bear
this is when I start adding `print()` to the init_app call in https://github.com/kylewm/silo.pub/blob/master/silopub/ext.py
#
bear
just after the db.init_app(app) call -- `print(db.metadata)` specifically -- see what the state of sqlalchemy is
#
aaronpk
oh boy here we go, first time writing python in at least 10 years
#
bear
later tonight I can give it a go and see what debugging help i can be
#
bear
right now i'm hip deep in kubernetes and AWS
j4y_funabashi joined the channel
#
aaronpk
does it need write permissions on the folder the sqlite file is in or something?
gRegorLove joined the channel
#
bear
it may, I can't recall if sqlite uses secondary files for logs/journals
#
bear
oh! bingo -- sqlite does require write access to the directory for journals
#
aaronpk
aha k... moving this to a folder then
#
aaronpk
wth is this facebook "App domains must match the domain of the Secure Canvas URL, Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL."
#
aaronpk
oh wow that was not obvious
#
tantek
POSSE to FB weirdness?
#
aaronpk
creating an app on facebook
#
aaronpk
ugh do i have to submit this application for review by facebook?
#
aaronpk
maybe i can just ask kylewm to borrow his api key
#
tantek
yeah pretty much
#
tantek
might be better to try to get another api key, just for redundancy
#
tantek
and it also tests the actual open-source-deployability of silo pub
#
aaronpk
well at the very least i can use my own facebook api key as myself
#
aaronpk
i think if anyone else tries logging in it won't work
#
tantek
also an interesting test!
#
aaronpk
i'm actually tempted to try locking down this instance to a whitelist of users
#
aaronpk
since i'm not intending to run a public instance of silopub
#
tantek
that's a good use-case as well!
#
aaronpk
alright it's live!
#
aaronpk
i dropped the silos I don't use
#
aaronpk
just reconfigured my syndication endpoints to use my copy of silopub
#
aaronpk
I do enjoy being able to set them up so quickly just by logging in via indieauth
#
Loqi
[Aaron Parecki] Just installed my own copy of https://silo.pub and launched at https://silopub.p3k.io! Thought I'd share a screencast of how I configure my syndication endpoints in p3k.... https://aaronparecki.com/2016/11/29/7/photo.jpg
tantek joined the channel
#
gregorlove.com
edited /2017-01-01-commitments (+112) "/* Commitments */ +me"
(view diff)
tantek, marcthiele, j4y_funabashi and KartikPrabhu joined the channel