That's fine, I just think we should be very careful not to look like a voting mob under any circumstances. You're still free to do whatever on your own accord/account.
cv-pls is one of the well-regulated forms of community moderation. It is public, and you are explicitly required to judge the post in its own merit regardless of the cv-pls request itself.
"public" in the sense that if something gets closed, your name is there and you are accountable
@DSM perhaps it's just that I tend to step on toes so I have a large signal of revenge downvotes for different reasons :) You don't seem like the kind who antagonizes users in comments
@AndrasDeak other way around. I don't want someone to close vote and then downvote on top of it, and if i ask for a CV then isn't that basically running the risk of basically asking a group to close vote if possible, and running the risk of them downvoting on top of it, thus indirectly asking for downvote ?
Django offers a lot of opinions, which makes it nice if you don't know what you're doing. However, those same opinions become restrictive when you want to do anything else. Django also hides a lot of behavior and configuration behind magic detection and never really explains or makes obvious how things are connected.
User management, configuration, SQL, ORM, generally HTML (although DRF exists). Pretty much everything Django comes with that's all integrated together already.
When I was a web dev in University, Flask made me understand what I was doing, you could said it made me understand how to use the tool get a job done; while, Django made me feel like I told the tool to do the job.
I see... I think I get it; they offer you different levels of abstraction with their features, so the degree of freedom you have across the two frameworks varies
Flask has an ecosystem of extensions that can pretty much do whatever Django includes. They may not be integrated quite as well, but you can build whatever you want.
As opposed to making it easy to work with JSON or other request / response types. You can do it in Django, it's just not really built to support it as a first-class use case.
I actually started with Django before Flask came out, then switched to Flask because Django was getting in my way.
User management, configuration, SQL, ORM, generally HTML (although DRF exists). Pretty much everything Django comes with that's all integrated together already.
If Django vs Flask isn't a Q&A on the main site, I think it should be, because I find people who want to do web dev stuff with these frameworks keep wondering what the differences are and which they should use. As beginners, not everyone would fully understand what they can or cannot do, just by reading each one's documentation
The distinctions only really matter once you get to the scale that you know they matter, at which point you probably know enough to switch either direction rather easily.
@MartijnPieters I saw you forked trio, what are you doing with async?
I've been thinking of giving curio or trio a try for building Rabbit.
cbg - I have a question for you all about PyQt/classes. I have 2 windows in pyqt that are different classes by design. I have the parent open the child then the button on the child calls a function in the parent class to do somethings and close the child window. I have connected it by doing this:
self.pushButton.clicked.connect(parent.test)
Im trying to now pass a var from the child back to the parent.test() function. How is this done? I tried self.pushButton.clicked.connect(parent.test(exampleVar)) but it did not work.
I remember having a similar conversation recently, but when you do parent.test(exampleVar) you're calling the function and passing its return value to clicked.connect(). That's obviously incorrect, and you want to pass a function object as the parameter instead - for example a lambda, which is an anonymous function.
Hey all again, Im looking at: https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable But am a bit confused on which approach I should try off of there. Right now my error is in this line: ast.literal_eval(json.dumps(i))
@ZackTarr: unfortunately there are no Python date literals and JSON doesn't support them either, so neither ast.literal_eval nor json.dumps is going to be much help, I think, and certainly not both of them together. :-)
@DSM I made that mistake when someone was print("str",object) and it was coming back like a tuple, It confused me until I realized it was Py2, which prompted me to leave the question.
Whenever I have to install packages to python, or update something like anaconda manually (because the software for this is not working) I am so very glad I grew up using DOS. I can't imagine how intimidating commandlines might be otherwise.
My CS classes started us coding in the terminal and using I believe nano, later I grew up and moved to VIM. But I am glad I had that experience and am good with running the commands. But I cannot even tell you how many people I have found in the IT workspace that have no clue how to use the terminal.
Also I see "The optional argument completekey is the readline name of a completion key; it defaults to Tab. If completekey is not None and readline is available, command completion is done automatically."
However, I haven't found that this actually works
Can someone else please help to verify my interpretation of the docs and this behaviour?
not going to lie, the main reason why I want to learn pandas is so I can get a pandas badge and feel good about having an animal badge :D nevermind Wim pointed out snakes are animals. now I have no reason to learn Pandas
@DSM I've have to do a lot of stuff recently, and redis is always usefull... if you have an "index", but I also use elastic and postgres for most things
@DSM it's not great at the moment... but I'm starting with a transparent DF to a redis key store - they'll be over head of stored and everything - but it's working for me.
@BlackSheep: Looks like your Python 3 is using libedit instead of GNU readline for the readline module, and libedit has a different syntax that cmd.py isn't accounting for. It'll probably take a fix in the Python standard library to fix it properly. In the meantime, you can probably set the completion key manually using libedit syntax:
a hipster culture where people don't write KM and KG instead of km and kg
My brain rejects incorrectly capitalized units unless context makes it entirely obvious. Apparently "grams" alone weren't enough :P It only made me think of the MKS unit system.
there's also a little snippet if you want to reward with rep you can do so but generally we try to keep the starboard free of random solutions to random questions.
I have another basic re problem. I'm attempting to match "10 echo hello world" from the string "10 echo hello world #hello message" using this re: \d+[\w\s]+ but it's matching the extra space so it looks like this: "10 echo hello world "