*** jelkner has joined #NovaWebDev | 07:39 | |
jelkner | Mornin' Bots | 07:40 |
---|---|---|
jelkner | We definitely need to follow up on: https://www.indeed.com/viewjob?jk=b7573d25fa9dba97 | 09:57 |
* jelkner hopes to hear back from ubuntourist soon | 09:57 | |
jelkner | In other news, I met with mattva01 last night. | 09:58 |
jelkner | He suggested we look into Git LFS (https://git-lfs.github.com/) as the tool for handling large binary files in our repos. | 09:59 |
jelkner | He also suggested I explore JWT (https://jwt.io/) for simple user authentication to web services. | 10:14 |
*** German_ has joined #NovaWebDev | 10:14 | |
German_ | good morning, jelkner | 10:15 |
jelkner | Good morning, German_! | 10:15 |
jelkner | Finally, he said with http/2 (https://en.wikipedia.org/wiki/HTTP/2) we really need to start using ssl on everything | 10:16 |
German_ | try to find "arlington education association aea" on google, jelkner | 10:16 |
jelkner | he mentioned free cert providers. i forget which, but i found this: https://letsencrypt.org/ | 10:17 |
* jelkner tries to find AEA ;-) | 10:17 | |
jelkner | Sweet, the top of the list! | 10:18 |
German_ | I need to do the same with our website ;-), jelkner | 10:19 |
jelkner | yes you do! | 10:19 |
German_ | but I need a simple and short description for that. jelkner | 10:19 |
German_ | If you can write one for me, that would be good! | 10:20 |
* German_ is leaving the office | 10:34 | |
*** mjsir911 has joined #NovaWebDev | 11:03 | |
jelkner | Good morning mjsir911! | 11:04 |
mjsir911 | hi | 11:04 |
jelkner | please look at the weblogs | 11:04 |
mjsir911 | any particular day? | 11:05 |
jelkner | it will give you some idea what i have planned for you today ;-) | 11:05 |
jelkner | today | 11:05 |
*** mjsir911 has joined #NovaWebDev | 12:13 | |
*** replaceafill has joined #NovaWebDev | 12:55 | |
jelkner | replaceafill, i'm about to email the NDI person | 13:09 |
jelkner | to ask if the RFP is still open | 13:10 |
replaceafill | jelkner, good | 13:11 |
replaceafill | it seems a bit heavy, mostly because of the perl part | 13:11 |
replaceafill | but it'd help a lot to our process imo | 13:11 |
jelkner | are you kidding? it is just the kind of thing we want to be able to do! | 13:12 |
jelkner | replaceafill, do you have a few moments to chat with mjsir911 about how to setup tryton? | 13:12 |
jelkner | he is mixing ubuntu packages with stuff from a git repo, and I'd like to do this right. | 13:13 |
replaceafill | i'll need to leave in ~45 but yeah | 13:15 |
replaceafill | and for the record i have never set up tryton.... | 13:16 |
jelkner | that's ok, we are looking for general sys admin advice for our young jedi | 13:27 |
mjsir911 | Is mixing ubuntu packages and git repos alright or should I do it all through git if I don't have a apt repo for parts of it | 13:27 |
replaceafill | mjsir911, are we talking about python packages? | 13:29 |
replaceafill | can you give me an example of what are you combining? | 13:30 |
mjsir911 | Tryton has it's own module system, I can install tryton through aptitude but sao, the web client, is only available through source code compilation | 13:30 |
replaceafill | ah ok | 13:30 |
replaceafill | for python apps i suggest you ALWAYS start with a virtual environment | 13:31 |
replaceafill | and install the app (like tryton) there | 13:31 |
replaceafill | in fact, jelkner and I have different opinions on this sometimes | 13:31 |
replaceafill | he likes the simplicity of "apt-get install python-bottle" or whatever the name | 13:31 |
mjsir911 | where would you suggest I put the virtualenvironment of the deployed app? | 13:32 |
replaceafill | in my opinion you should start with the venv and then pip bottle into it | 13:32 |
replaceafill | it's up to the server your using i guess | 13:32 |
replaceafill | i mean | 13:32 |
replaceafill | if it's an amazon ec2 dedicated just to tryton | 13:32 |
replaceafill | the ubuntu user is fine | 13:33 |
replaceafill | /home/ubuntu/venv | 13:33 |
replaceafill | same for a VM dedicated just to that | 13:33 |
replaceafill | just try to be consistent naming the environments | 13:33 |
mjsir911 | The goal is for webfaction deployment, can a directory in a webapps be a virtual environment? | 13:33 |
replaceafill | some people like to set venv-py3, and so on | 13:33 |
replaceafill | mjsir911, absolutely | 13:34 |
mjsir911 | Ok well thats easy to do since webfaction simplifies that | 13:34 |
replaceafill | that's in fact how i advise to run django | 13:34 |
replaceafill | in webfaction the setup should be | 13:34 |
replaceafill | create mod wsgi/python webfaction app | 13:34 |
replaceafill | ssh into it | 13:34 |
replaceafill | and then install virtualenv if it's not available | 13:34 |
replaceafill | and then create the virtualenv | 13:34 |
replaceafill | then configure apache to use the venv | 13:35 |
mjsir911 | Yes thank you | 13:35 |
replaceafill | and always create requirement files | 13:36 |
replaceafill | with specific versions | 13:36 |
mjsir911 | But still, should I mix pip & git or go fill git? | 13:36 |
replaceafill | so others don't have to/and won't mess up future set ups | 13:36 |
replaceafill | as long as pip is in a venv, it's ok | 13:36 |
replaceafill | the problem is mixing git stuff with OS package stuff | 13:36 |
replaceafill | if the OS package version changes or don't change quick enough, that may affect the git packages | 13:37 |
replaceafill | collisions, etc | 13:37 |
mjsir911 | Ok, thank you very first | 13:37 |
mjsir911 | much** | 13:38 |
replaceafill | pip + requirement files even allow you to use git repositories or source files as dependencies | 13:38 |
replaceafill | you can even point to specific commits or branches | 13:39 |
replaceafill | and the requirement file allows you to get rid of the venv and reproduce quickly if something goes wrong | 13:40 |
replaceafill | if things go wrong with OS packages, things get messy | 13:40 |
replaceafill | and if you start bringing source files into Ubuntu, you may get in library conflicts and so on | 13:40 |
replaceafill | you just need to be aware of what OS dev libraries the python packages you're trying to install need | 13:41 |
replaceafill | for instance, yesterday i needed a python packages called scrypt | 13:41 |
replaceafill | (for cryptograpy) | 13:41 |
replaceafill | in a new 16.04 VM | 13:41 |
replaceafill | pip complained that it couldn't find the SSL dev libraries | 13:42 |
replaceafill | in that case you need to "apt-get install libssl...-dev" | 13:42 |
replaceafill | (... is just an example) :) | 13:42 |
replaceafill | in that case the python package needs something from the OS | 13:42 |
replaceafill | same for the mysql python packages | 13:43 |
replaceafill | they need some of the mysql OS packages to work | 13:43 |
replaceafill | if you're really unlucky you get into things like this: | 13:45 |
replaceafill | https://github.com/python-oursql/oursql/issues/2#issuecomment-160793408 | 13:45 |
replaceafill | :'( | 13:45 |
replaceafill | in 16.04 is not possible to downgrade easily to mysql 5.6 | 13:45 |
replaceafill | fortunately i don't really needed the oursql dependency | 13:46 |
replaceafill | didn't really need* | 13:46 |
replaceafill | so i just commented it out in my requirements.txt file :) | 13:47 |
mjsir911 | Yup, source + pip files are fine as long as in venv w/ requirements.txt | 13:47 |
mjsir911 | What about makefiles? do you use those often? | 13:47 |
replaceafill | yes, they "make" (pun intended) repetitive tasks easier | 13:48 |
replaceafill | like compiling translations in a bilingual site | 13:48 |
replaceafill | you set a rule for extracting, one rule for merging, one rule for compiling | 13:49 |
replaceafill | so you have a rule for each step of the whole process | 13:49 |
replaceafill | and you don't have to remember the exact command for extracting or that Babel is responsible for doing that | 13:50 |
replaceafill | the makefile abstract all that complexity | 13:50 |
mjsir911 | ty, gtg afk for a bit | 13:51 |
replaceafill | me too | 13:51 |
replaceafill | hope this helps | 13:51 |
*** replaceafill has joined #NovaWebDev | 14:38 | |
*** replaceafill has joined #NovaWebDev | 14:38 | |
*** mjsir911 has joined #NovaWebDev | 15:52 | |
*** German_ has joined #NovaWebDev | 21:34 | |
*** jelkner has joined #NovaWebDev | 22:00 | |
jelkner | One of the folks from Our Revolution Arlington sent a link to Dr. Richard Wolff's most recent radio talk | 22:01 |
jelkner | http://www.truth-out.org/news/item/40301-economic-update-enabling-worker-co-ops | 22:02 |
jelkner | He mentions CCA Global Partners: http://www.ccaglobalpartners.com/ | 22:03 |
jelkner | The 2nd half of the program was an interview with a member of lumio: https://www.loomio.org/ | 22:06 |
*** marcos_ubuntu_ma has joined #NovaWebDev | 22:58 | |
*** marcos_ubuntu_ma has quit IRC | 22:58 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!