« first day (2457 days earlier)      last day (2495 days later) » 

user3657941
12:00 AM
If I use the lower limits, the test will probably finish tomorrow instead of Monday morning
 
@DavidCullen so it's at least (60 hours/upper limit) and at most (60 hours/lower limit) iterations.
 
user3657941
Yeah
 
you're welcome
if you don't know anything about the distribution of runtimes, I don't think you can say anything more specific
if you want to make sure it finishes by Monday, use the upper limit
 
user3657941
Sorry, if I set the iterations using the upper limits (5 + 5 = 10 minutes) and the test actually only runs at the lower limits (15 + 15 = 30 seconds) this guy will be mad because he doesn't understand math
 
@Kevin I want to do some refactoring of Rabbit, but that would mean more asyncio stuff, which I know you're less familiar with. Thoughts?
 
user3657941
12:02 AM
It'll finish very early
 
@DavidCullen it's their loss :P
 
user3657941
I wish. Everything is my fault with this gentleman, even his mistakes.
 
if you set it higher and it's still running on Monday during lunch time, he'll be even madder, and for good reason
Ha! I found something regarding my firefox crashes
 
user3657941
Great news!
 
[879522.209760] Chrome_ChildThr[11053]: segfault at 0 ip 00005558fa414e7c sp 00007f28ebcfe390 error 6 in plugin-container[5558fa40c000+3e000]
adobe flash shenanigans, as always
 
user3657941
12:05 AM
Ah. I never installed Flash when I got the computer. Never been happier.
 
user3657941
...got this computer...
 
@DavidCullen can you kill the tests once it's Monday if it's still running? Can you make it continue with further iterations if it stops running tomorrow?
 
user3657941
I have some code that I can use to set a signal handler that will allow the test to cleanly exit if I send SIGTERM to the sub-processes.
 
user3657941
But that might take another couple of hours to transfer and verify
 
it might be an investment in your future, namely interaction with co-worker on Monday
 
user3657941
12:08 AM
Jenkins is involved, by the way
 
user3657941
Jenkins will be running this job so we can collect the artifacts nicely
 
can't say I'm acquainted with the gentleman
something with orchestration or CI?
 
user3657941
Wow. Been a long time since I met someone who didn't know what Jenkins is
 
user3657941
Yeah, it's a CI system
 
I heard of it
2 days ago, by Andras Deak
Jun 27 at 19:37, by idjaw
Andras is a physicist in a programmer costume
I should probably put that in my profile
 
user3657941
12:10 AM
 
user3657941
Ah, a physicist. I once started down that road.
 
user3657941
Seems like a lot of physicists wind up doing programming
 
yup
then again a bunch of my classmates at university hated programming
I was somewhat surprised at that
 
user3657941
I'm surprised when people like it
 
user3657941
12:28 AM
Ah man, I think the 8021q driver went off the edge of the map again
 
user3657941
When I was 12, I got my first computer. I loved it. I loved writing programs. I loved typing in programs from magazines. My brother told me, "I hate computers." I said, "Why?" He said, "You have to tell them to do everything."
 
user3657941
I thought that was their greatest feature. It was the first thing I could boss around.
 
12:49 AM
you'll be the first they come for when they rise
 
 
1 hour later…
1:52 AM
Anyone know why the pyimgur api sometimes doesnt work?
It randomly works and randomly doesnt work throwing a bad client id error
 
2:23 AM
evening cabbage
 
 
3 hours later…
5:50 AM
Folks.
> Starting July 8th, 2017 both my Python 2 and Python 3 books will be no longer free to read
 
6:16 AM
0
Q: WinError 10013 tried several suggestions but could not resolve it

KaleabIt has been almost a month since I got this problem, and I really appreciate your help. While trying to login in my Django Web App, i encounter OSError at /accounts/login/.I am able to login in 127.0.0.1:8000/admin, but not in the /accounts/login which produces the Error Code: OSError at /accoun...

 
6:38 AM
@KevinMGranger That's today. I need an offline copy fast!!
I'm not averse to supporting the author and buying a copy though.
I'd love a signed copy of his book
 
6:59 AM
cbg
 
django help
i have created a model and added some data from django admin page.
then i added some fields and make migrations successfully. the problem here is that it show errors with old data. how to make old data compatible with new structure
 
7:38 AM
wow, I'm very interested in seeing how people in this room help this guy ^
I'm a layman and a noob and what he says, "making old data compatable with new structure" sounds very unclear to me.
I'm guessing his old data was in some different format
I'm sorry, I'm being unhelpful by picking apart words I don't understand. You all continue. I'm leaving for a Python meeting. Toodles.
I'm I'm I'm lol
 
it's gonna be quite difficult to get help today I think. I mean, hardly anybody even reacted to KMG's amazing news about LPTHW!
 
8:02 AM
I'm crying about it
Starting right now, it's not free anymore and I didn't download it :(
I'm going to request a signed physical copy if I do get one
Ok, I go now but one last question just in case someone is reading this who can help me
I need a Python script that I can forever run in the background to check if my clipboard is empty!
I've developed an annoying habit of Ctrl+T and Ctrl+V every time my mind tells me there's some amazing link lying around in my clipboard. Rarely ever is.
I keep checking it like the fridge. As if food is going to instantly materialize the next time I open it.
 
sounds like you just need to google how to access the clipboard, and then wrap whatever code you find in a loop?
 
To convince you I have googled this
4
Q: How to check if clipboard is empty of text?

JonIf I try to paste from an empty clipboard, I get an error. I would like to check if the clipboard is empty of text before pasting so that I can avoid this. How can this be accomplished? I'm aware it can be done through error handling, but I would prefer a method that avoids an error. Edit -- ...

Python code is note easy to find
could you lmgtfy me the right keywords of search atleast. would be a big help.
 
first result for "python read clipboard" was this
 
48
Q: How do I read text from the (windows) clipboard from python?

Foo42How do I read text from the (windows) clipboard from python?

haha, got the same thing at the same time.
Jinx
Crap, too many answers.
Don't have the time to test them all.
Gtg bye
Thnx again. You are lovely people. Have a nice day!
in Sandbox, 11 secs ago, by MisterGeeky
Python can fix all our problems!
 
 
1 hour later…
9:30 AM
cbg
can anyone have a look at this edit, pls? -> stackoverflow.com/questions/44982507/…
 
 
2 hours later…
11:23 AM
@MisterGeeky hehe, you completely missed the point :D
@Kaleab if you want to post a cv-pls request, you should use the header for clarity
 
XD You don't get that I'm a college student dying of debt.
If I buy a copy, a hundred other students will be borrowing it from me XD
Hey, I'm at the Python meet in India.
You guys wanna know what's going on?
 
I'm fine, thanks
 
Yeah, guessed so.
... This room is dead
Can't I talk about what we're talking about here? It's sort of interesting.
 
11:40 AM
No, thanks. On the weekends there are few people here, but that doesn't mean that the room should be filled with pointless rambling. If you're bored, feel free to go outside and take a walk in a park.
The ultimate goal of this room is communication, i.e. directed tranfer of information from one person to the other.
 
It's asyncio
Fine, I'm relieved
@AndrasDeak Maybe I'll livestream it. It migh not be benificial for you. Maybe a student who pops in. How about it?
 
good luck with that
Although I have to say I'm surprised that you invited me to this other room, after I made it crystal clear that I don't care.
 
:/ bout anythin?
 
I'd like to remind you that just because there are no room owners here right now, they will handle you if you keep ignoring social norms.
in the spirit of:
yesterday, by davidism
And generally just tone down, this conversation is getting a little too "look how wacky we are".
some words of advice before I leave for a while
 
ok. noted.
 
 
2 hours later…
1:27 PM
Karthik Varma I am ready, ping me when you are here.
 
 
2 hours later…
3:04 PM
recbg
 
any suggestions on how I can use Python to detect and grab new posts made in facebook groups?
 
that's a very broad question. broad answer: with the facebook API, I guess
 
3:26 PM
+1
 
3:56 PM
>.>
<.<
 
4:07 PM
^.^
 
<.>
 
:-|
 
C:
 
That's enough social interaction for me for the month.
 
We've said all we need to say.
 
4:13 PM
Guys The Division has taken over my life.
It's got such good PvP
 
I heard the balance / ability to game the system was pretty bad in the early days. It's gotten better?
I have pretty much every other game I've bought sitting unfinished, I feel like I should do something about that first.
 
Yeah it seems pretty good now, though I'm intentionally sticking at level 24/30 as I've heard when you get to the high-end the pvp gets too serious.
The pvp is just great. It's all tied into pve and you effectively have to work with others to do the pve part, so you have to trust people and work together, but you could betray them at any moment.
And if you do betray people you get marked as a rogue, and others can attack you without consequences, but if you survive being a rogue you get the massive rewards.
And to get any loot out of the area you have to get it evac'd by a chopper, which signals to everyone on the map where your pick up is, so to get loot you literally have to announce to the entire map "hey guys, I'm at this exact location with loot" and while waiting for the chopper you get stormed by pve. So people wanted to evac stuff will work together to stop the swarm of pve whilst rogues jump in to try and steal the loot.
 
That sounds really cool actually. What system are you playing on?
 
PC Master Race For Life
It just works so well. You have to work with people you don't trust, makes it really nail biting.
 
and you do that voluntarily?
the most intense game I enjoy is limbo :D
 
4:25 PM
You're a theoretical phyicist, that's a game isn't it?
It's not real.
 
well, I also liked MMOs until pvp ruined it
@Ffisegydd something something game of life
 
user5969682
5:11 PM
hi, i am trying to familiarize myself to sympy. i plotted a circle with:
var = plot_parametric(sin(x), cos(x), (x, -5, 5), aspect_ratio=(1.0,1.0))
but the x and y are not proportional even aspect_ratio argument is given. any thoughts?
 
I didn't even know sympy could plot
let me see
also, welcome
@AbdullahUYU next time please add the 2 lines that make it an MCVE for simplicity
the result seems to be a simple matplotlib plot
so you can try
import matplotlib.pyplot as plt
plt.axis('scaled')
then again the plot command seems to be blocking...hmmmm
 
user5969682
i am trying to upload it wait a sec
 
user5969682
 
not the image, the code...
I understood your issue, but I had to figure out that I had to use sympy.plotting.plot_parametric
 
user5969682
i actually wrote it between sentences
 
user5969682
5:18 PM
there is nothing special at the rest of the code, symbol assignment etc
 
user5969682
i am also working on jupyter-notebook
 
yeah, but if you want me to be able to drop it into my REPL and try to fix your problem, you should add those 2 lines :P
@AbdullahUYU in case the plot call doesn't block in the notebook, try the matplotlib scaling command I wrote
calls this
 
user5969682
 
@AbdullahUYU in case the plot call blocks in your notebook, you can try calling plt.ion() before plotting
@AbdullahUYU thanks, as I said, I figured it out. It was only a suggestion for the future;)
I think you don't need the import for x: you're overwriting it later
 
user5969682
hmm, it is true
 
user5969682
5:28 PM
btw sorry, the code i gave in dpaste doesn't include the import of plot_parametric
 
that's fine, as I said, I already had a working version
 
Grmbl grmbl competing wrong answer downvoting mine because I commented on theirs being wrong grmbl grmbl and I know I can't know this for certain but I'm grumping about it anyway grmbl grmbl
 
@MartijnPieters aww, there there :(
Would nuking them out of spite cheer you up? ;D
 
@AndrasDeak It would. Not just the post, the computer it was posted on and if there is collateral damage to the poster, so be it. Nuclear option.
 
@AbdullahUYU so does it work now?
@MartijnPieters it's the only way to be sure
 
5:35 PM
@AndrasDeak the only way.
Hrm, they self-deleted now.
 
hehe
I'm sure the downvote will stay
you could try editing your post, so that they may undownvote gracefully
 
user5969682
nope, it appeared properly only one time, then it went. i actually didn't understand how we can fix it with matplotlib
 
@AbdullahUYU could you provide an updated dpaste with your current version, displaying the problem?
@AbdullahUYU step 1, step 2; step 3 (well, the import is needed for step 1 as well)
 
user5969682
i don't want to waste your time, i am going to test it with with a file instead of j-notebook
 
OK, but I'm happy to help. It only starts to be a waste if you make helping you more difficult than necessary:) Feel free to experiment, and let us know if you're still stumped.
 
user5969682
5:39 PM
i am feeling bad when i keep waiting you :D
 
Oh, but I have stuff to do, so I only check back when I've got the time. I can assure you, I'm not biting my nails off in anticipation;)
 
user5969682
good
 
the best part about SO chat is that messages stick, so I can find your update an hour later and still respond which you'll read whenever
or if someone else responds in the mean time, I don't have to
 
user5969682
congrats!
 
thanks:)
 
5:55 PM
@AbdullahUYU For those still struggling with how to ask for help in this room, this is the kind of attitude that will keep people interested in working with you
4
 
that ^
 
user5969682
i am not sure i understood you @PaulMcG
 
he approves of your attitude, and we're happy you're here
 
user5969682
oh, thank you
 
6:30 PM
cbg
 
cbg
 
I went back to watching The Fresh Prince of Bel Air
Still amazing
 
that's...not very fresh :)
 
6:45 PM
lol
 
user5969682
https://dpaste.de/xz1T I have been outside, it works. but i have to say that i don't get why plt.axis('scaled') have an effect even it comes after
a = plot_parametric(sin(x), cos(x), (x, -5, 5)).
 
because plt.axis affects the Axes object that your plot is drawn into
you could call plt.xlim([-3,3]) and whatnot, which would again affect your plot
calling plot_parametric or other plotting functions overwrites a lot of settings by default, so these style changes mostly have to be called in the end
it's likely that calling axis('scaled') works even if you set it first...it depends on whether sympy creates a new figure by default
 
user5969682
yeah it did. i think i don't know the mechanism it gives the output
 
you see, this is mostly a convenience function in sympy
I'd use numpy and numerical inputs for this
 
user5969682
anyway, thanks for it
 
7:00 PM
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-5,5,100) # 100 points from -5 to 5 inclusive
fig = plt.figure() # open a new figure window
plt.plot(np.sin(x),np.cos(x))
plt.axis('scaled') # etc.

# or
fig,ax = plt.subplots()
ax.plot(np.sin(x),np.cos(x))
ax.axis('scaled')
hopefully both of those blocks do the same thing
this way you're in full control of what your inputs are and what and how you're plotting ^
@AbdullahUYU if you can explain what you don't understand, I can try to help :)
 
user5969682
ok, i will.
 
user5969682
7:19 PM
plt.figure() didn't produce a figure window without adding the the line plt.ion()
 
user5969682
more importantly the axis doesn't appear.
 
sorry, if you're using vanilla matplotlib you'll have to add plt.show() to the end (at which point the code will block)
or use plt.ion() which stands for "interactive on", in which case the plot should appear and the command shouldn't block
if you use something like ipython (guess jupyter is such), you can fire it up with ipython --matplotlib in which case plots will automatically be interactive
I'm unfamiliar with jupyter notebooks though
 
user5969682
oh, i get it. exactly it is the case. but what about the axis?
 
well when your figure window shows, your axes should show with it...
if it doesn't, there might be some backend issues :/
 
user5969682
i am not going to fix it now, the first solution is enough for me thanks :)
 
7:23 PM
OK :)
don't mention it
 
user5969682
i have a music that i want you to listen, youtube.com/watch?v=V16NWCAi8MA
 
user5969682
i am waiting for feedback
 
user5969682
7:37 PM
? @AndrasDeak i hope you took a look at it
 
Please don't bug people unnecessarily. Andras has already spent time (of his Saturday) helping you.
No need to bug him.
 
Fizzy Fizz!
<3
 
7:52 PM
Pipe down
 
Ffisegrymp
 
Pipe down more
 
Things have gotten too slack round here, with your happiness and your fun.
 
But I don't know if he's going up or down the pipe.
 
7:55 PM
davidism, 42k rep...don't ever change
 
8:08 PM
I agree with this.
We need to keep davidism at 42 forever.
 
We need to get him up to 420k #blazeit
 
So. Davidism has two options. Stay 42K. Or aggressively drive for 420K.
 
He just needs to stop hammering all those flask questions and start FGITWing them instead.
 
LOL!
yes!
 
No, he needs to FGITW them and then close them.
 
8:15 PM
'You missed the capitalization of "Session" on line 3'
 
To stop anyone else answering.
 
sounds like a plan
Perhaps he should run for mod, then reopen closed posts, answer them, and close them again.
 
The long con.
Build trust, get elected, modify everything.
 
I've seen two elections. Trust is overrated.
 
That --^
 
8:20 PM
I meant build popularity.
 
so is competence :D
 
Need to change my image from :-| to :-)
 
seriously though, you'd run great in an election if your dream job was janitor work on one of the largest community cesspools of programming
3
I checked and you'd score well too
although I'm half expecting the next mod elections to require SOD badges too;)
 
@AndrasDeak SOD?
 
SO Documentation
our flagship project
 
8:27 PM
Nah, that wouldn't go down great with the community.
 
So? It's not as if SOD itself went down well the community...
:P
 
it's a work in progress
 
Lol, true that.
The intro post was quite good, but the actually Docs is bad. Similar to those bad movies with great trailers.
 
It doesn't have to be good the first time, but there's been enough feedback to no avail.
 
It's much easier to search google with keywords and go into the first SO question then scan SO docs
 
8:30 PM
especially since moderation, structure and reward system seem to have been broken from day 1
as far as I know the status quo is still such that generating crap is rewarded, while removing it is not
I admit that I haven't gone near SOD for months
and the scope is still unclear?
I just ignore it all
 
well, every site is better in its own stuff. SO's stuff is Q&A
 
not everyone is convinced of that *cough* SO staff *cough*
 
9:15 PM
Anyone have experience using Python with Selenium?
 
if you have a question, just ask it. There's no need to test the waters. Even if someone here has worked with selenium before, they might not be able to answer your question or they might not be willing to commit to answering it without knowing how much effort it will take.
 
I do demcodeli
@DemCodeLines
 
9:31 PM
Is there a way to clear the browser logs? Basically, I have a giant application I am testing and each test goes through a different module and gets all the JS console errors produced inside that module. However, to get to that module, you first have to login on every test, which itself has a number of errors that show up in the console. Right now, if I go inside the module and try to print the logs, I get all JS errors (inside module + login).
I want to clear the logs, then go to the module, then print whatever messages were logged after I cleared it last.
So basically, clear() -> do something -> get logs
 
9:48 PM
0
Q: Clear Chrome browser logs in Selenium/Python

DemCodeLinesI have a large application and I am using Headless Chrome, Selenium and Python to test each module. I want to go through each module and get all the JS console errors produced while inside that specific module. However, since each module is inside a different test case and each case executes in ...

 

« first day (2457 days earlier)      last day (2495 days later) »