Logs for #nikola for 2015-10-02

07:06:12 <ElPasmo> Hi all, just upgraded logbook to 0.11.2 and Pillow to 3.0.0 and now I have an error building nikola: https://bpaste.net/show/5a3951ee10ec
08:39:32 <capri> hey, is there something like spoiler available within nikola?
08:39:53 <capri> i just want to hide the text until someone clicks on the link/word - whatever
08:51:02 <ElPasmo> capri: I suppose you can achieve it using html + js: https://duckduckgo.com/?q=show+div+html
08:54:41 <capri> ElPasmo, do i have to enable javascript in any config file to use it?
08:54:48 <ElPasmo> But I don't know if Nikola has that feature, I seriously doubt it, you can get it with dhtml easy :)
08:58:08 <ElPasmo> capri: I don't think so, I'm not very sure. But you have to provide the JS code... there are many ways to do that.
09:01:12 <ElPasmo> capri: use body_end at conf.py to add your js script :)
09:01:26 <ElPasmo> capri: It's the recommendation of the nikola handbook :)
09:05:41 <capri> ElPasmo, This option lets you define a HTML snippet that will be added at the bottom of body -> sounds like generic on every site
09:06:28 <ElPasmo> capri: As I understand it, the JS code will be available on all your site if you put it there, yes.
09:07:40 <capri> mhpf
09:08:44 <ElPasmo> capri: sorry, I don't know that acronym
09:09:25 <ElPasmo> capri: if you want it only in one post you can add the script to your post html source code...
09:10:37 <capri> ElPasmo, that would be an option - at the moment i wrote all my posts in restructered text format - can i use normal html code and "nikola build" will work?
09:12:14 <ElPasmo> capri: ofc, I use a mixed md, txt and html source codes for my own site. You have to set the COMPILERS option in your conf.py to accept html and that's all (I don't remember if by default it was already set)
09:12:42 <capri> i found .. raw:: html
09:12:47 <capri> works perfect :)
09:13:11 <ElPasmo> capri: this is a part of my conf.py COMPILERS = {  "rest": ('.rst', '.txt'),    "markdown": ('.md', '.mdown', '.markdown'),  "html": ('.html', '.htm')}
09:13:41 <capri> in mine also
09:25:25 <ElPasmo> I just upgraded logbook to 0.11.2 and Pillow to 3.0.0 and now I have an error building nikola: https://bpaste.net/show/5a3951ee10ec
11:45:50 <ChrisWarrick> capri: there is no built-in feature for spoilers; you need to come up with custom CSS/JS for this
11:47:50 <ChrisWarrick> ElPasmo: start by upgrading Nikola, too?
11:48:12 <ElPasmo> ChrisWarrick: yes
11:48:35 <ChrisWarrick> ElPasmo: hmm, it looks like Pillow broke some APIs
11:49:06 <ElPasmo> Seems so, I added a catch for TypeError and was able to build the site... :)
11:49:40 <ChrisWarrick> ElPasmo: create a github issue for this please
11:52:10 <ElPasmo> ChrisWarrick: I'll try, never done before
11:52:21 <ChrisWarrick> ElPasmo: do you have a github account?
11:52:28 <ElPasmo> ChrisWarrick: yes
11:52:51 <ChrisWarrick> ElPasmo: then just go to our repo, to the issues page, press the big green new issue button and type some text
11:53:25 <ElPasmo> on it
11:57:23 <KwBot> [nikola] elpasmo opened issue #2130: Update of Pillow 3.0.0 seems to have broke some APIs https://github.com/getnikola/nikola/issues/2130
11:57:39 <ElPasmo> ChrisWarrick: hope I did it right
11:57:58 <ChrisWarrick> ElPasmo: yeah, you did
11:58:16 <ElPasmo> ChrisWarrick: thanks for the help :)
12:01:06 <capri> ChrisWarrick, ElPasmo: thanks a lot. i used BODY_END in conf.py to add my own js template
12:01:33 <ChrisWarrick> capri: that certainly works
12:01:52 <ElPasmo> capri: Great :)
12:11:23 <travis-ci> Wheelhouse build by Chris Warrick: The build was broken. See https://travis-ci.org/getnikola/wheelhouse/builds/83290697.
12:15:29 -travis-ci:#nikola- Invariant build by Chris Warrick: The build passed. See https://travis-ci.org/getnikola/invariant-builds/builds/83290919.
12:16:48 <ralsina> capri: you may want to ask for spoiler functionality in an issue too, so we remember
12:17:04 <capri> ralsina, ok
12:17:24 <ralsina> Also, it's possible to do spoilers with pure CSS it seems
12:17:31 <ralsina> which would make this easier :-)
12:17:52 <ralsina> Like this http://codepen.io/oloman/pen/odnqy
12:19:26 <ChrisWarrick> <span style="background-color: black; color: black;">the cake is a lie</span>
12:19:51 <ralsina> capri: Also, remmember to put the spoilers out of the teaser, since most feed readers will break whatever CSS/JS you used to make it work
12:20:23 <ralsina> ChrisWarrick: well, more like <span style=spoiler>rosebud is a sled</span> maybe because we are modern :-)
12:20:38 <ChrisWarrick> ralsina: class=, but you get the idea
12:21:04 <ralsina> And once we have aclass, we can do https://css-tricks.com/fade-in-spoiler-revealer/ to be fancy
12:21:20 <ralsina> looks like an obvious rst role to me, and should work just fine in markdown
12:23:21 <capri> ralsina, thanks for the hint
12:24:48 <KwBot> [nikola] Kwpolska assigned issue #2130 to Kwpolska: Update of Pillow 3.0.0 seems to have broke some APIs https://github.com/getnikola/nikola/issues/2130
12:24:58 <ElPasmo> I'm pretty new with both python and github, I've managed to clone the repository on local but now... How can I use the development version? I suppose that I should set up a virtual environment for my tests... I'm pretty lost :S
12:24:59 <ralsina> capri: in fact, if you add CSS to do it right, and a ".. role:: spoiler" in of the document, then use :spoiler:`this is a spoiler` it should "just work"
12:25:11 <ralsina> ElPasmo: python setup.py develop
12:25:27 <ralsina> ElPasmo: ah, yes, that, AFTER you setup a virtualenv :-)
12:25:47 <ElPasmo> ralsina: great, I'll try right now
12:26:08 <ralsina> ElPasmo: if you have virtualenvwrapper: "mkvirtualenv nikola -p /usr/bin/python3
12:26:21 <ralsina> then, whenever you want to use it "workon nikola"
12:27:22 <ElPasmo> ralsina: I don't know what's a virtualenvwrapper but I had use the virtualenv -p command for my site before... I suppose it's the same :D
12:27:36 <ChrisWarrick> ElPasmo: virtualenvwrapper is something that simplifies virtualenv usage
12:27:41 <ralsina> ElPasmo: pretty much, yes, it's just a convenience thing :-)
12:27:57 <ElPasmo> I'll check it
12:29:06 <ElPasmo> newbie question, can I have to separate virtualenv with the same name? I have /Documents/work/nikola for my site and I want to have /Documents/python/github/nikola for development
12:30:00 <ChrisWarrick> ElPasmo: you can have tons of virtualenvs
12:30:10 <ChrisWarrick> ElPasmo: call it nikola-dev, or nikola-unicorns
12:30:21 <ElPasmo> ok thks
12:31:44 <KwBot> [nikola] Kwpolska closed issue #2130: Update of Pillow 3.0.0 seems to have broke some APIs https://github.com/getnikola/nikola/issues/2130
12:31:52 <ChrisWarrick> ElPasmo: git pull origin master
12:31:59 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to master: http://git.io/vc2WW
12:31:59 -GitHub[nikola]:#nikola- nikola/master 2bc4658 Chris Warrick: Fix #2130 -- Pillow==3.0.0 compatibility...
12:34:06 <ElPasmo> ChrisWarrick: that was fast
12:34:20 <ChrisWarrick> ElPasmo: not by our standards
12:34:32 <ChrisWarrick> ElPasmo: half an hour is godawfully slow in this place
12:34:38 <ElPasmo> lol
12:36:50 <ElPasmo> I can't understand why the problem was that you were expecting a raw string... I have to study more...
12:36:57 <ChrisWarrick> ElPasmo: it wasn’t?
12:36:58 -travis-ci:#nikola- getnikola/nikola#6506 (master - 2bc4658 : Chris Warrick): The build was fixed.
12:36:59 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/41bb4b2c758c...2bc4658077e1
12:36:59 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/83293582
12:37:32 <ChrisWarrick> ElPasmo: the raw string was just a typo I fixed, irrelevant to this bug
12:38:05 <ElPasmo> but thats the only change you did it apart of the warning... how did u solve the bug?
12:39:17 <ralsina> ElPasmo: the fix is lines 151 and 152
12:39:48 <ElPasmo> oh yeah, now I see... thanks!
14:41:08 <gour> ChrisWarrick: can virtualenvwrapper handle creating py2 & py3 envs at the same time?
14:41:50 <ralsina> gour: sure, just use -p
14:42:01 <gour> ralsina: cool. thanks
14:48:24 <gour> ralsina: i do not see '-p' option to pass in mkvirtualenv?
14:48:32 <gour> bash
14:48:53 <ralsina>   -p PYTHON_EXE, --python=PYTHON_EXE
14:48:53 <ralsina>                         The Python interpreter to use, e.g.,
14:48:53 <ralsina>                         --python=python2.5 will use the python2.5 interpreter
14:48:53 <ralsina>                         to create the new environment.  The default is the
14:48:55 <ralsina>                         python2 interpreter on your path (e.g.
14:48:57 <ralsina>                         /usr/bin/python2)
14:49:25 <gour> ralsina: that's, afaik, for 'virtualenv', not for the wrapper?
14:49:45 <ralsina> gour: that's in mkvirtualenv --help
14:49:58 <ralsina> gour: which is what you asked about?
14:50:07 <gour> ralsina: got it..there seems to be some problems with wrapper & fish shell
14:51:53 <gour> there is, it seems, alternative written for fish
14:57:10 <ChrisWarrick> gour: you might want to talk to virtualenvwrapper directly, but you should also keep your fish plugin (it autoactivates, doesn’t it?)
14:58:34 <gour> ChrisWarrick: there is virtualfish available, so no need for further tweaking
15:16:24 <KwBot> [nikola] jere19 opened issue #2131: Nikola seems unable to load its config (OSX, anaconda) https://github.com/getnikola/nikola/issues/2131
15:22:58 <KwBot> [nikola] Kwpolska assigned issue #2131 to Kwpolska: Nikola seems unable to load its config (OSX, anaconda) https://github.com/getnikola/nikola/issues/2131
15:23:59 <KwBot> [nikola] Kwpolska closed issue #2131: Nikola seems unable to load its config (OSX, anaconda) https://github.com/getnikola/nikola/issues/2131
15:25:41 <ChrisWarrick> py27 ↑
15:26:38 <ralsina> ChrisWarrick: I thought we had configparser in our dependencies?
15:31:22 <gour> under normal virtualenv, nikola installs, but under wrapper building of Pillow fails: https://bpaste.net/show/8b56cb9f5503
15:44:24 <ralsina> gour: you seem to be missing libjpeg-devel or something similar
15:44:56 <gour> ralsina: i wonder how it builds in virtualenv
15:45:11 <ralsina> no clue
15:45:34 <gour> it's on the same machine 
15:57:28 <gour> my mistake...working pillow was restore from debian backup and now i'm on suse :-)
16:00:28 <gour> fixed, after installing some jpeg-devel stuff
17:27:47 -GitHub[plugins]:#nikola- [plugins] jjconti created jjconti-patch-1 (+1 new commit): http://git.io/vcVe7
17:27:47 -GitHub[plugins]:#nikola- plugins/jjconti-patch-1 93a1186 Juan José Conti: Fix to work with Python3...
17:27:54 -GitHub[plugins]:#nikola- [plugins] jjconti opened pull request #119: Fix to work with Python3 (nano_gallery...jjconti-patch-1) http://git.io/vcVed
17:38:31 <ChrisWarrick> ralsina: I think it might have been ruined due to our use of wheels…