« first day (3557 days earlier)      last day (1374 days later) » 

1:36 AM
I just signed the PSF Contributor Agreement! Now, to get some contributions accepted...
 
@MattDMo Great :)
 
I was just reading through an old bug report where things got delayed because several of the people involved hadn't signed their forms yet, so I figured I'd get ahead of the game. Most likely my PRs will involve documentation, but sometimes that's more important than the code itself.
 
2:02 AM
Agreed.
 
 
4 hours later…
6:13 AM
@LinkBerest thanks you removed python as a dependency. I was trying to execute this python script with the help of github.com/pythonnet/pythonnet. The frontend was made in asp.net.
Also thanks for now that I know that a docx file is just a zip containing xml files.
 
7:12 AM
Sorry, for asking so soon again but I really need some help with python's tempfile. dpaste.com/1QT2VRM . I have tried to explain. It's very difficult to provide MVCE for problems which use files at my system.
I have removed unnecessary code in between and added a link to the docs to be referred at the top. Please refer the Library section on the pypi page to see the examples.
 
7:51 AM
@Antti I like the comment for that edit :)
 
cbg
 
8:24 AM
@Cody Have a look at the room rules; "Don't ask for answers to your recent Stack Overflow questions. Those who can answer are already watching the queue on the main site."
 
oops sorry
 
@roganjosh Oh my, when did you get slanted?
 
@IljaEverilä Sorry?
Oh, you mean RO? Thought it was slang for being grumpy cos I moved the message :)
 
Yeah RO :)
 
8:29 AM
 
Goes to show how active I've been...
 
Leaving poor little me to fight my own SQL battles! Good to see you online though, I hope all has been well?
 
We've been doing alright, thanks for asking. It's nice that they lifted some of the social distancing measures now that the situation here is pretty good. And you?
 
Not too bad thanks. Things are easing up over here too, been a little cooped up but it's getting there
 
Also, been trying to fight the good fight so to speak, but the tide of poor SQL handling is overwhelming :D
 
8:36 AM
@IljaEverilä Little Bobby Tables isn't going anywhere it seems... :p
 
He's as busy as ever, yes.
 
@IljaEverilä Ah, yeah, I recall seeing this a while back but was busy with something else. Looks cool, I'm going to have a nosey at the code now :)
 
By all means please do, and the test set could always use some new samples of inventive ways of getting injected :P
 
"There are obvious false positives still, such as formatting placeholders to a statement." Immediately Kevin'd; that was my first thought heh
The way the tag goes, they're probably self-limiting anyway :P
 
That's been improved somewhat after writing it, but in the end some "injection" will always be intentional, like table names – if not using psycopg2, which can handle those safely.
 
8:50 AM
Unless one uses an ORM...
 
having said that... sometimes for more complicated queries - it's still easier to type out the actual SQL...
 
Very true.
 
(I generally end up doing that anyway just to get things going and then it takes a little while to get my head back into a - now - how do I convert this to the same thing but using the ORM)
 
That's what I ended up doing as well, when learning Ecto in Elixir. On the other hand, forming queries in SQLA is usually a no-brainer due to familiarity.
I also had to dabble with some Spring, JPA, and SPs recently :|
That took quite some time to get right.
 
9:02 AM
Sounds "fun"...
 
9:29 AM
Hello @azro. I installed everything in requirements + numpy but it still doesnt work. Note: I'm on Ubuntu.
 
9:58 AM
@Myzel394 you have more than 500 rep so I think you can start new chatrooms. I suggest that you do that for your question unless you want to attract a broader audience here.
ah, you only need 100 rep to do that
 
@AndrasDeak I personally don't mind if other people see my questions. Is it recommended to create your own chatrooms for questions?
 
It's more about whether you want to have the discussion take place in the main python chatroom where other people might be talking about different things. Some considerations are that prolonged discussions about the same specific technical problem here can become a burden, and we prefer not to discuss fresh questions here (but this latter thing doesn't necessarily apply to you, because your question is closed).
There is an automatic mechanism that offers you to start a new dedicated chatroom if a comment thread gets too long, so yeah, the system is happy if you create a new room to discuss a specific post in length. When I do that manually I post the question's link at the beginning of the chatroom's life so that people can find context. And of course drop a link on the question as well, as you did with this room.
 
10:49 AM
oh wow... can't believe the answers on this
 
that was a risky click, but I actually found the answers pretty funny
 
for when return calendar.monthrange(year, month)[1] is just too much hassle :)
 
11:28 AM
@JonClements or homework where you're not allowed to use that
 
@LinkBerest figured that goes without saying :)
 
Well, the Python tag is only like 70% homework so it's still only highly likely ;)
 
 
1 hour later…
12:36 PM
cbg, is implementing a web based file browser in flask a good addition to my resume (in terms of "projects" for college student)?
 
Certainly doesn't sound like a bad addition if you're looking to demonstrate your work
 
tbh I just dont want to put something trivial to flask experts, not a bad addition is not trivial then, thanks :)
if both the "Room rules" and "Code formatting guide" links are for sopython.com why is the second one using a tinyurl? curious that is all
 
Because "An_Illustrated_Guide_To_Formatting_Code_In_Chat" is a pretty long link
 
I didnt check the actual link, I just noticed the header of the site to see if I was in sopython
 
1:19 PM
@VisheshMangla no
@VisheshMangla never post images of text
repost it as text and we can talk
 
1:37 PM
@python_learner Don't count on your resume being read by flask experts in the first place. Doing a file browser sounds like a perfectly reasonable choice that is a) doable and educational for you, and b) impressive to muggles.
 
Hi guys, i have a issue in downloading csv file in python, any one can help me please?
 
@CodeGirl Just ask a concrete question, people will answer/help if they can.
 
thanks for reacquainting me with the rules. I will keep it in mind.
I refreshed the console on the site and that same command worked.
 
@VisheshMangla glad to hear that
@CodeGirl if this is about your fresh question on the main site please read our rules first. In particular, we ask not to discuss questions here that are fresh on the main site.
 
@AndrasDeak : Sure, i will keep in my mind.
 
1:51 PM
Thank you :)
 
 
1 hour later…
user12867493
3:01 PM
Is there any way I can timeit involving a variable? e.g. I want to time n+=1...
 
3:23 PM
Closed, thanks
 
 
1 hour later…
4:40 PM
@Kwsswart The refactoring has taken a lot longer than I would like. I've completely revamped the front-end (not live) but this page roughly correlates to these routes and these templates
I ended up spending an inordinate amount of time trying to fix the frontend (which is that code) and making it work better with mobile. Hopefully it'll pay off, it's just set me back on my plans a lot :/
 
@Daniil As in python3 -m timeit -s 'n = 1' 'n += 1'? Or without n actually increasing?
Note that timeit turns off the GC, which may have a significant contribution in assignments.
 
5:33 PM
@python_learner trivial not trivial, what matters when I interview is correct code (well formatted, follows PEP, comments and self-descriptive names, good following with DRY, SOLID, or other coding guidances)
If your public code meets above I tend to assign it higher priority
 
 
2 hours later…
7:14 PM
Anyone know how to hide the filename in Python's debugger tool, PDB?
 
@AviFS Welcome to chat. Please see our rules in regards to linking to newer questions from main
Specifically, you should wait 48 hours after posting on main before bringing here. That "free" rep is open to everyone - it's kinda how the site works, if people know the answer :)
 
 
3 hours later…
9:57 PM
Do you think Google does store URLs with query strings? Or it stores query strings in a related table with a foreign key or a pivot table?
I had made a crawler. In the beginning, it was crawling all the extracted URLs. If a URL had 3 query strings it could be stored 6 times in different orders.
Now I reordered query strings and it's solved, but I'm thinking maybe I shouldn't store query strings alongside the URLs at all.
 

« first day (3557 days earlier)      last day (1374 days later) »