IRC log of #novawebdev for Saturday, 2018-03-24

*** mjsir911 has joined #novawebdev06:43
*** lelkneralfaro has joined #novawebdev07:05
*** mjsir911 has joined #novawebdev08:54
*** zOnny has joined #novawebdev10:08
*** jelkner has joined #novawebdev10:48
*** jelkner has joined #novawebdev10:49
*** mjsir911 has joined #novawebdev11:20
*** ubuntourist has joined #novawebdev11:27
jelknerubuntourist, how is libre planet going?11:42
ubuntouristIn sessions. IRC being used by each session.11:43
jelknercool, talk later11:43
jelknerthough you never let me know about tuesday11:43
jelknerso zOnny and i planned to meet @ ACC11:43
jelknerwe can switch to Gallaudet if you give us the ok11:44
*** replaceafill has joined #novawebdev12:26
replaceafillhello jelkner and zOnny12:27
zOnnyhey replaceafill12:27
jelknerhey man12:27
jelknerboy are we GLAD to see you!12:27
replaceafilljelkner, :)12:27
replaceafillzOnny, what's the problem?12:27
zOnnyonce I merged you last commits in my server, it doesn't respond replaceafill12:28
replaceafillzOnny, ah ok12:29
replaceafillzOnny, let me fix it12:29
replaceafillzOnny, i'll work on the documentation to set this up this afternoon12:29
zOnnyI was assuming that was something in the Django modules right ? replaceafill12:30
replaceafillzOnny, correct12:30
replaceafillzOnny, apps not modules12:30
replaceafillzOnny, your instance in testing is /opt/zOnny correct?12:31
zOnnyyou right apps . replaceafill12:31
replaceafillzOnny, /opt/zOnny/NOVALACIRO right?12:31
zOnnycorrect , replaceafill12:31
replaceafillzOnny, thanks12:31
zOnnyI am assuming that you are doing it manualy by now right ? replaceafill12:32
replaceafillzOnny, yes12:32
zOnnyPlease, I cannot wait see the Doc to know what you did replaceafill :)12:33
replaceafillzOnny, yeah, sorry about that12:33
replaceafillzOnny, jelkner i was too high yesterday after getting pages bilingual12:33
jelknerthat's ok, replaceafill 12:33
zOnnyI can find the rest in your commits replaceafill12:34
zOnnyyeah I know :) replaceafill12:34
jelknerbtw. when you have a moment, i have one other small thing to ask you about12:34
replaceafilljelkner, sure, let me fix zOnny's server first12:35
jelknerjust ping me whenever12:35
jelknerreplaceafill, 12:36
replaceafillzOnny, i notice you've working on the theme12:38
replaceafillzOnny, in the server12:38
replaceafillzOnny, could you save your changes and try restarting it?12:38
replaceafillzOnny, oh12:39
replaceafillzOnny, and checkout master please12:39
zOnnyok replaceafill12:39
replaceafillzOnny, and git pull master too12:39
replaceafillzOnny, let me know when the theme is on the lastest master12:40
replaceafillzOnny, i'll try to start it myself12:40
replaceafillzOnny, in case it fails i can see the traceback here12:40
zOnnyok, replacaefill12:40
zOnnysaved , replaceafill12:41
replaceafillzOnny, cool, checkout and pull the latest master please12:41
zOnnymaster does not respond yet replaceafill12:44
replaceafillzOnny, does not respond?12:44
replaceafillzOnny, what do you mean?12:44
zOnnyI am in the master branch replaceafill12:45
replaceafillzOnny, ok12:45
zOnny started running the server again replacaefill12:45
replaceafillzOnny, no12:46
replaceafillzOnny, please stop any server process12:46
replaceafillzOnny, i want to do it myself12:46
zOnnyok replaceafill12:46
replaceafillzOnny, let me know when you kill it12:46
zOnnystopped , replaceafill12:46
replaceafillzOnny, thanks12:46
replaceafillACTION looks12:46
replaceafillzOnny, try restarting the server now12:52
replaceafillit's so beautiful when my crappy configuration assumes something will be named in a specific way... :'''(12:53
zOnnythanks a lot replaceafill12:53
replaceafillzOnny, what are you working now?12:54
replaceafillzOnny, or what do you plan to work next?12:54
zOnnyworking in the fixes that jelkner requested replaceafill12:54
replaceafillzOnny, ah ok12:54
zOnnywhy ? replaceafill12:55
replaceafillzOnny, i just wanted to know how much i18n knowledge you will need *today*12:55
replaceafillzOnny, you can make changes to the templates for now12:56
replaceafillzOnny, and don't worry if they're not translatable12:56
replaceafillzOnny, i will document that process12:56
replaceafillzOnny, it's like: you add something in a .html template that you want in both languages12:56
replaceafillzOnny, then you mark it specially with {% trans 'My message goes here' %}12:56
replaceafillzOnny, then you extract it with "python makemessages" from the theme directory12:57
zOnnyI saw that , replaceafill12:57
replaceafillzOnny, then you translate the .po file12:57
replaceafillzOnny, then you compile the messages with "python compilemessages" from the theme directory12:57
replaceafillzOnny, and profit!!!!12:58
replaceafillzOnny, i'll write this down, i promise12:58
zOnnycool replaceafill12:58
zOnnythat will help me a lot replaceafill12:58
replaceafillzOnny, for now, it's ok if things are not 100% bilingual12:58
replaceafillzOnny, we're above 90-95 i'd say12:58
replaceafillzOnny, jelkner which is acceptable for this phase12:59
replaceafilljelkner, ok, i think i'm done fixing the server12:59
jelkneri did a conversion from markdown to rst on the bylaws draft13:00
jelkneri was just wondering how we can go about styling?13:00
jelkneri'm thinking we should wait for mjsir911 to return april 213:01
zOnnythanks a lot replaceafill 13:01
jelknerand zOnny he and i can work on that13:01
jelknerbut things like getting the ordered lists to use different markers depending on indentation aren't working13:01
jelknerso some styling will be needed13:01
jelkneri'm only asking for guidance now13:02
jelknerif waiting for mjsir911 is the correct approach13:02
jelkneri'll do that13:02
replaceafilljelkner, i notice you've converted everything to rst, but haven't added any sphinx stuff, correct?13:02
replaceafilljelkner, sphinx is the one that does the styling, right?13:03
replaceafilljelkner, sphinx have things like themes13:03
jelknerso i will need help setting that up13:03
replaceafilljelkner, and you can add all sorts of css13:03
jelkneri use sphinx all the time13:03
jelknerbut i create content13:04
replaceafilljelkner, why don't you try to use the default configuration13:04
jelknerok, how?13:04
replaceafilljelkner, i remember there's a command to generate that, right?13:04
jelknerso to be clear13:04
jelknersphinx is supported on gitlab?13:05
replaceafill$ sphinx-quickstart13:05
replaceafilljelkner, yes13:05
replaceafilljelkner, i mean13:05
jelknerthat's the part i'm not fully understanding13:05
replaceafilljelkner, it's not that sphinx is "supported"13:05
replaceafilljelkner, ok13:05
jelknerif you mean we build html locally13:05
jelknerand then send it somewhere13:05
jelknerthat's what i'm trying to understand13:06
replaceafilljelkner, gitlab gives you this ability to create "jobs" (run commands) on every push13:06
replaceafilljelkner, gitlab also gives you the ability that if one of those commands produces html13:06
jelknerso, my normal division of labor is to ask mjsir911 to set that kind of thing up13:06
jelkneri'm the editor, not the admin13:06
replaceafilljelkner, gitlab will give you a way to "publish" that, that's gitlab pages13:06
replaceafilljelkner, i understand13:07
jelkneri think you told me what i need13:07
replaceafilljelkner, let me ask you this13:07
jelkneri'll take this up with mjsir911 on 4/213:07
replaceafilljelkner, oh ok13:07
replaceafilljelkner, if you can wait, sure13:07
jelknerwe need bylaws13:08
jelknerbut we have more pressing matters13:08
jelknerand i can work with plain rst for now anyway13:08
replaceafilljelkner, ok13:08
jelknerthanks, replaceafill 13:08
replaceafilljelkner, just out of curiousity13:08
replaceafilljelkner, have you gone through this process before:
replaceafilljelkner, i think you have13:08
jelknermany times13:08
replaceafilljelkner, you end up with some module somewhere, right?13:09
replaceafilljelkner, and some Makefile and so on13:09
jelknermy workflow is then to setup an rsync script to copy the build directory to the open book project13:09
replaceafilljelkner, right13:09
jelknerso the source is kept on gitlab13:09
jelknerand the build on ibiblio13:09
jelknerthis business of building on gitlab will be new to me13:10
replaceafilljelkner, if you can get there, you're halfway done in gitlab13:10
jelknerwell, one other thing13:10
jelknerthe default theme from sphinx-quickstart is ugly13:10
jelknerso i was thinking we would copy the schooltool theme13:11
replaceafilljelkner, now you're starting to get picky :D13:11
jelknerwhich is *nice*!13:11
replaceafilljelkner, it is13:11
jelkneragain, with mjsir911 to help, that will be easy to setup right the first time13:11
replaceafilljelkner, and that configuration is already done!
jelknerso i'll wait til 4/213:11
replaceafilljelkner, cool13:11
jelknerthanks, man13:11
replaceafilljelkner, np13:11
jelkneri've got too many things to do13:12
jelkneri don't need another one ;-)13:12
replaceafilljelkner, :D13:12
jelknerlater, gater13:12
replaceafilljelkner, wise approach ;)13:12
replaceafilljelkner, later o/13:12
jelknerzOnny, you have all you need to get us ready for tomorrow?13:12
replaceafilljelkner, what should be ready for tomorrow?13:13
replaceafilljelkner, i mean, besides what we have13:13
zOnnyyep, jelkner13:13
jelknerthe home page looking super bueno!13:13
replaceafillzOnny, jelkner ok, styling changes?13:13
jelknerand the sign up page too13:13
jelknerit's all about the look13:13
replaceafilljelkner, not new content for now?13:13
replaceafilljelkner, got it13:14
replaceafilljelkner, cool i think we're ok then13:14
replaceafillzOnny, i'll be around13:14
replaceafillzOnny, ping me if you need something13:14
jelknerok, i won't be at the meeting tomorrow13:14
jelknerbut i'll be on irc when zOnny and i go to the iFoundADog sprint13:15
zOnnyof course , replaceafill13:15
replaceafilljelkner, ah ok13:15
replaceafilliFoundADog :D13:15
jelknerit's chris hedrick's project13:15
jelknerand zOnny is learning some Django from it13:15
replaceafillzOnny will make the project translatable at some point ;)13:16
zOnnyto make my project  LA_TIENDITA :)13:16
replaceafillwho comes up with these names?!?!13:16
replaceafillok, i'll start documenting this hell13:17
zOnnywe need more project signed in Spanish replaceafill13:17
replaceafillzOnny, ok, i updated the AMS doc on how to set up the theme13:33
replaceafillzOnny, this is what i did today13:33
replaceafillzOnny, in your server13:34
zOnnythanks replaceafill13:34
zOnnyI am testing you {% trans %} replaceafill15:15
replaceafillzOnny, i thought you didn't need to change any content15:18
zOnnypython makemessages are you sure that this works ?15:20
zOnnyCuriosity replaceafill :(15:20
replaceafillzOnny, ah ok15:20
replaceafillzOnny, use the django admin in the venv instead15:21
replaceafillzOnny, works at the project level only15:21
replaceafillzOnny, but you need to this this from the theme15:21
replaceafillzOnny, try looking at the AMS doc15:21
replaceafillzOnny, there's a bit there about it15:22
zOnnyI am In replaceafill15:22
replaceafillzOnny, so cd to the theme directory15:22
replaceafillzOnny, and venv/bin/django-admin makemessages15:22
replaceafillzOnny, then translate the new strings in the es/LC_MESSAGES/django.po file15:23
replaceafillzOnny, then use django-admin compilemessages15:23
replaceafillzOnny, to make django to understand them15:23
zOnnydid you see the screenshot ? replaceafill ?15:29
replaceafillzOnny, nope15:29
replaceafillzOnny, don't assume i'm on hangouts when i'm here...15:29
replaceafillzOnny, imgur.com15:29
zOnny this ? replaceafill15:31
replaceafillzOnny, i said from the ************theme*************** directory15:31
replaceafillzOnny, not "theme***********s*************"15:31
replaceafillzOnny, :P15:31
zOnnymy bad :(15:32
replaceafillzOnny, cd into "tendenci-theme-novalaciro"15:32
replaceafillzOnny, come on! wake up man!15:32
replaceafillzOnny, you use firefox by default, right?15:33
replaceafillzOnny, i mean, that's the browser you like15:34
zOnnyforever replaceafill15:34
replaceafillzOnny, :S15:34
replaceafillzOnny, such a fanboy...15:34
replaceafillzOnny, anyway15:34
replaceafillzOnny, you should explore the new screenshots capability in firefox15:34
replaceafillzOnny, it's builtin15:34
replaceafillzOnny, i don't know if it works for the whole desktop though15:35
zOnnywell, I follow the process of the ams doc but everything was set replaceafill15:50
replaceafillzOnny, that's what i did this morning15:50
replaceafillzOnny, but i also tested it in a fresh instance15:50
replaceafillzOnny, so it should work15:50
zOnnyI was checking that you did well , replaceafill15:51
replaceafillzOnny, sure, thanks for that15:51
zOnnydouble is always good replaceafill15:51
replaceafillzOnny, indeed15:51
replaceafillzOnny, the process is going to change once we start using pages, boxes and navs15:51
replaceafillzOnny, for tomorrow i assume you won't be using navs yet, right?15:51
zOnnybut still doesn't respond the title replaceafill :(15:51
replaceafillzOnny, the title?15:52
zOnnyjelkner wants it bilingual replaceafill15:52
replaceafillzOnny, that should be straightforward15:52
replaceafillzOnny, you could try doing that15:53
zOnnyyou see ? replaceafill15:53
replaceafillzOnny, you mean in your server?15:53
replaceafillzOnny, you need to add the {% trans '...' %} here
replaceafillzOnny, that h1 needs to be translatable15:54
zOnnyIn the other branch replaceafill15:54
zOnnyOh shoot wait , I will merge it15:55
zOnnypushed replaceafill 15:58
replaceafillzOnny, look here:
replaceafillzOnny, before running compilemessages you need to update the spanish translations15:59
replaceafillzOnny, spanish translations file locale/es/LC_MESSAGES/django.po16:00
replaceafillzOnny, every time you make something translatable16:00
replaceafillzOnny, there is software like "POEdit"
replaceafillzOnny, but if you're confortable with vim or emacs you could just use that16:01
replaceafillzOnny, so the msgstr "" i pointed to should become16:01
replaceafillzOnny, msgstr "Organización de Derechos Civiles<br > Latinos del Norte de Virginia"16:02
replaceafillzOnny, in an ideal world, the msgid's you see in the django.po file shouldn't contain markup16:03
replaceafillzOnny, like that <br>16:03
replaceafillzOnny, but we'll let it slide for now ;)16:03
replaceafillzOnny, makes sense?16:04
zOnnydjango.po :S replaceafill16:06
replaceafillzOnny, hm?16:07
zOnnythis is the only way ? replaceafill16:07
replaceafillzOnny, only way?16:07
replaceafillzOnny, the more explicit you write in remote/chat conversation the less confusion you will create16:08
replaceafillzOnny, explicit is better than implicit ;)16:08
zOnnythis is the way that you make bilingual it? replaceafill16:08
replaceafillzOnny, it's the most flexible16:08
replaceafillzOnny, have you tried Ubuntu in English?16:08
replaceafillzOnny, have you tried Ubuntu in Spanish?16:08
replaceafillzOnny, have you tried Firefox in Russian?16:09
replaceafillzOnny, it's all possible because of this same approach16:09
replaceafillzOnny, i'll grant you it looks complicated16:09
zOnnyluckly not yet replaceafill16:09
replaceafillzOnny, but free software has relied on this approach for years16:09
replaceafillzOnny, enjoy:
replaceafillzOnny, that's tendenci being translated throught transifex16:10
replaceafillzOnny, into many languages16:10
replaceafillzOnny, thanks to this nasty/ugly/complicated/sh***y approach :P16:10
replaceafillzOnny, that's why we're doing the same ;)16:11
zOnnyreally this is confusing me replaceafill16:11
replaceafillzOnny, i understand16:11
replaceafillzOnny, but we're a team16:11
replaceafillzOnny, you don't start learning things by becoming an expert16:11
replaceafillzOnny, and unfortunately we're remote and i suck at explaining16:12
zOnnyyou good replaceafill16:12
replaceafillyou too zOnny :)16:12
zOnnyI should add it at the end of the file right ? replaceafill16:13
replaceafillzOnny, add what?16:13
zOnnywell, the title replaceafill :(16:13
replaceafillzOnny, want to hang out?16:14
zOnnyI am in the library :( replaceafill16:14
replaceafillzOnny, oh ok16:14
replaceafillzOnny, ok...16:14
zOnnypeople will kick me out :( replaceafill16:14
replaceafillzOnny, see the es/LC_MESSAGES/django.po file?16:14
zOnnyI am in16:15
replaceafillzOnny, according to the diff in your branch16:15
replaceafillzOnny, you already have these two lines:16:15
replaceafillmsgid "Northern Virginia Latino<br>Civil Rights Organization"16:15
replaceafillmsgstr "16:15
replaceafillzOnny, locate them16:15
zOnnylet see16:15
replaceafillzOnny, line 8516:16
replaceafillzOnny, for reference this is what we're doing, but you can read it later:
replaceafillzOnny, ok16:16
zOnnyok replaceafill16:16
replaceafillzOnny, django-admi extracts all thos msgid's from your templates16:17
replaceafillzOnny, and if one is new, django-admin will insert an empty msgstr right below it16:17
replaceafillzOnny, makes sense so far?16:17
zOnnyyep replaceafill16:17
replaceafillzOnny, that happens when you "django-admin makemessages" in the theme directory16:17
replaceafillzOnny, cool16:17
replaceafillzOnny, now you're job as a translator is16:17
replaceafillzOnny, to fill the msgstr16:18
replaceafillzOnny, with the right translation for that language16:18
replaceafillzOnny, since you're in the locale/es/LC_MESSSAGES direcotry16:18
replaceafillzOnny, you need to translate that into the spanish version16:18
replaceafillzOnny, so you change line 8616:18
replaceafillzOnny, (not the end of the file)16:18
replaceafillzOnny, line 8616:18
replaceafillzOnny, right below it16:18
replaceafillzOnny, have you done that?16:19
replaceafillzOnny, update line 8616:19
zOnnycan you write what should be there again please replaceafill16:19
zOnnyI mean type16:20
replaceafillzOnny, scroll up!!!16:20
replaceafillzOnny, ok...16:20
replaceafillmsgstr "Organización de Derechos Civiles<br > Latinos del Norte de Virginia"16:20
replaceafillzOnny, wait16:20
replaceafillmsgstr "Organización de Derechos Civiles<br>Latinos del Norte de Virginia"16:20
replaceafillzOnny, the last one is better (no spaces)16:20
zOnnydone 16:21
replaceafillzOnny, cool, save and exit the file16:22
replaceafillzOnny, now go back to the theme directory16:22
replaceafillzOnny, the tendencit-theme-novalaciro16:22
replaceafillzOnny, and run django-admin compilemessages16:22
replaceafillzOnny, restart the server16:22
replaceafillzOnny, and if everything goes well, you should see the org name being translated16:22
replaceafillzOnny, then profit$!$!$!$!16:23
replaceafillzOnny, if you don't start making all your sites bilingual from now on i'm going to fly up to virginia and find you...16:23
zOnnyIt Works! replaceafill16:24
replaceafillzOnny, no way?!?!! /sarcasm16:25
replaceafillzOnny, glad it did16:25
replaceafillzOnny, you need to use "tildes" in Spanish16:25
zOnnyyou rock! replaceafill16:25
replaceafillzOnny, you didn't copy paste16:25
replaceafillzOnny, always copy paste!!!!16:25
replaceafillzOnny, sigh....16:25
replaceafillzOnny, this is why i want to quit NOVA Web Development these days16:25
replaceafillzOnny, :''''''(16:26
jelknerreplaceafill, don't quit!16:26
replaceafillzOnny, Organizacion needs to be Organización16:26
zOnnydon't say that please :( replaceafill16:26
replaceafillzOnny, and derechos with a capital D, Derechos16:26
replaceafillzOnny, just copy paste what i wrote16:26
zOnnyfixing replaceafill16:26
jelknerreplaceafill, zOnny, i'm heading out now16:27
jelkneri'm having dinner with paco, replaceafill 16:27
replaceafilljelkner, see you later16:27
replaceafilljelkner, ah16:27
replaceafilljelkner, say hi for me :)16:28
jelknerwill do16:28
jelknertomorrow at 10:30 am i'll be showing the site16:28
jelkneri'll let you know how it goes16:28
replaceafilljelkner, good luck16:28
jelknerACTION signs off16:28
replaceafillzOnny, cool16:30
replaceafillzOnny, looks nice16:30
replaceafillzOnny, from a design point of view the <br> is bad16:31
zOnnybut it saves you css lines replaceafill16:31
replaceafillzOnny, but it trips your translation16:31
replaceafillzOnny, if someone other than you translate that file through some other process16:32
replaceafillzOnny, they could easily break the <br>16:32
replaceafillzOnny, doing you know what....16:32
replaceafillzOnny, BREAKING THE WHOLE LAYOUT16:32
replaceafillzOnny, ;)16:32
replaceafillzOnny, or inserting a table16:32
replaceafillzOnny, or a form16:32
zOnnyups they are kicking us out replaceafill16:32
replaceafillzOnny, or some xss injection with <script>16:32
replaceafillzOnny, ah ok16:32
replaceafillzOnny, see you tomorrow16:33
replaceafillzOnny, good job16:33
zOnnyso ,can we deploy that ? replaceafill16:33
replaceafillzOnny, i think so16:33
zOnnyjeff wants to present the website tomorrow replaceafill16:34
replaceafillzOnny, you just need to push to master16:34
replaceafillzOnny, and everything is automatic16:34
zOnnyI don't want to add anything else replaceafill16:35
replaceafillzOnny, ok16:35
replaceafillzOnny, why don't you push then16:35
zOnnybecause I am still testing the admin boxes replaceafill16:35
replaceafillzOnny, hhmm16:36
replaceafillzOnny, you'll need to figure out how to work off the current master then16:36
replaceafillzOnny, unless you have other plans?16:36
replaceafillzOnny, i'd recommend to hold the admin boxes change for tomorrow if jelkner is ok with the current state16:38
zOnnythat is whay I choosed work with branches replaceafill16:38
replaceafillzOnny, sure i understand16:38
replaceafillzOnny, learn to stash git changes16:38
replaceafillzOnny, for next time you're in this position16:38
replaceafillzOnny, or get used to start work from the latest master for JUST ONE FEATURE16:39
replaceafillzOnny, if you're branches start combining features you'll get to this position16:39
replaceafillzOnny, which is not optimal16:39
zOnnyok replaceafill16:40
zOnnythanks a lot 16:40
replaceafillzOnny, np16:40
zOnnyI learned something cool today replaceafill16:40
replaceafillzOnny, so you'll push your fixes later today?16:40
zOnnyI pushed already16:41
replaceafillzOnny, to master?16:41
zOnnyyou mean merge it to the master ?16:41
replaceafillzOnny, yes16:41
zOnnyI will do that now !!!!16:41
replaceafillzOnny, i say push to master because i have no idea of the process you're using16:41
replaceafillzOnny, we all work in different ways16:42
zOnnydone :)16:42
replaceafillzOnny, oops16:43
replaceafillzOnny, something went wrong16:43
zOnnyyour way is the best replaceafill 16:43
zOnnywhat ?16:43
replaceafillzOnny, check production16:43
replaceafillzOnny, oh wait, it's css caching16:45
zOnnyare you sure ? replaceafill ?16:45
replaceafillzOnny, it looks good in the other browser16:45
replaceafillzOnny, let me fully reload chrome16:45
replaceafillzOnny, looks good16:45
zOnnydon't use chrome please !16:45
replaceafillzOnny, :S16:45
replaceafillzOnny, why not16:45
replaceafillzOnny, it's the best browser in the world after edge16:45
replaceafillzOnny, go home16:45
replaceafillzOnny, they kicked you out half an hour ago16:46
zOnnyforget about chrome firefox is the best16:46
replaceafillzOnny, later16:46
replaceafillACTION signs off for the day16:48

Generated by 2.17.2 by Marius Gedminas - find it at!