« first day (2044 days earlier)      last day (2919 days later) » 
00:00 - 20:0020:00 - 23:00

8:02 PM
+1
perhaps a wiki page
and we could use a chatbot
!psychic
!rules
 
+1
 
limit the usage to 1k+ or RO
 
8:15 PM
@BhargavRao one thing to note, this tournament is played in the wide rink (30 m), the north american players are used to 26 m which they say feels much more crowded...
 
DSM
Okay, time to flee. Victory rhubarb for all!
 
victory rbrb!!
 
8:32 PM
Does anyone know of a REALLY good repo or tutorial that has a full working CRUD nothing else for python flask, I have found them for just about everything else. I started with php and opted out of that program for an oop, Tried rails for awhile with some success, not a bad way to go about things, but I really like the robust flavor of python. I can get MySQLdb to at least maker/execute a query so at least I am that far.
 
There are plenty of such tutorials online.
 
@Scribbles first of all
MySQLdb means that you're using Python 2
 
the explainations are not so great
 
don't.
use Python 3.
 
Hey that could be it
 
8:34 PM
this is a new project.
 
ok check
 
but MySQLdb does not work on Python 3, you need another library
 
what about 3.5
 
3.5 is good
 
ok not leaving that constant from now on
 
8:34 PM
another question is whether you really want to use MySQL
 
not really but I got it to work a bit
 
flask tends to use sqlalchemy that abstracts differences between databases so it really doesn't matter which one you're using, much...
but postgresql is more solid for quite a many tasks
 
I have almost all of them somewhere on my machine lol
ok I think I will go and look at postgres for a bit
 
as for crud stuff, if you mean an all-powerful admin, then examples.flask-admin.org
most of the flask folks here (I am really not a flask user) use PostgreSQL
but I am an sqlalchemy user yes, and I too use postgresql
 
ok I go do some digging that direction and see what I come up with thanks. One last question? It should be ok to just rm and purge 2.7 from my system so I don't accidentally get it in the way?
 
8:43 PM
@Scribbles Windows?
 
ubuntu
 
Then no.
Do not uninstall the system default.
 
my rack and laptop
ok
 
Ubuntu relies on 2 internally.
 
8:43 PM
ubuntu 16.04 it is not installed by default anymore
@Ffisegydd not 16.04
... but if it exists it still means that something depends on it
 
well I am on 16.04 I must have put it there
 
you've upgraded I'd guess
well, you can try apt-get remove, what would it suggest would be removed?
 
Other packages can still depend on it. Don't mess with your system if you don't know what you're doing.
 
Worst case I pop a nuke on the os
 
@Scribbles but the consensus now is that python3 is the name of python
 
8:44 PM
This is the entire purpose of virtualenv or pyenv.
 
ok fair enough you do make a valid point
 
different python versions can coexist
and when installing with pip, use preferably a virtualenv instead
@Scribbles anw, please read this on command naming in *nix:
 
yeah thats the maneuver I have been pulling python3.5 venv <name>
 
python2 will refer to some version of Python 2.x.
python3 will refer to some version of Python 3.x.
for the time being, all distributions should ensure that python refers to the same target as python2 .
however, end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.
 
intresting never thought of it that way
 
8:48 PM
arch linux changed it first
then hell broke loose
so they wrote this
and now there are some trolls that say "I am using that python which starts with command python - if it is Python 2, then so be it"
which of course doesn't help the situation at all :D
but anw, even in new ubuntu 16.04 minimal installations, if you run "python" in command line, you now get "command not found". /usr/bin/python3 always exists though
 
see I am glad you pointed it out. So of the info I have ran across is like oh just pick on and go with it, it really doesn't matter... which I kinda questioned.
 
python 2 and 3 are not quite compatible.
and python 3 has future, python 2 not so
worst thing now would be to write a big new codebase that is really only 2-compatible
 
that became painfully clear when the print() worked slightly differently
 
the print one is possible to do backward compatibly. In Python 2 you can write from __future__ import print_function the beginning of a file, and print() works like in Python 3
 
thats what that means cool, Ok now I have some homework to do. I really need to do some more reading. Thanks
 
8:56 PM
but python 2 str/unicode vs python 3 bytes/str is really not possible to make backwards compatible, which is why there has been a resistance to change...
it is not trivial to change a large code base.
 
that makes sense why some people are clinging so hard to their 2.7 libs
 
and that's why you shouldn't start writing now on python 2.7,
because you too would be stuck :d
instead you can do "oh this lib does not work on Python 3, I'd find another"
usually the one that didn't work was broken anyhow
probably not updated for 5 years
@Scribbles github.com/farcepest/MySQLdb1 <- MySQLdb repository. Last commits something like 3 years ago, no wonder it does not support Python 3. Probably doesn't support anything else either.
 
9:18 PM
SQLAlchemy lists all the MySQL drivers it supports here: docs.sqlalchemy.org/en/rel_1_0/dialects/mysql.html. Use PyMySQL if you really want to use MySQL.
 
9:50 PM
late evening cabbage
 
10:25 PM
@AnttiHaapala: and we have achieved recursion; answer mentions bug which mentions answer.
@AnttiHaapala: were you coming to PyCON next week?
 
00:00 - 20:0020:00 - 23:00

« first day (2044 days earlier)      last day (2919 days later) »