« first day (3605 days earlier)      last day (1334 days later) » 

12:34 AM
@roganjosh There are days I feel the weight of the earth upon me too...
 
 
4 hours later…
4:57 AM
import numpy as np; import pandas as pd are accepted standards from what I saw, is it also standard to do import itertools as it; import operator as op?
 
 
3 hours later…
8:03 AM
@nerd had you not continually demanded for help, I would have kept some of the question around. I'm sorry, but that is not the way to use the room to get help
 
8:17 AM
@python_learner you can certainly do that but I don't. The only other common one I use is import datetime as dt. For itertools and operator I generally just import the methods I need from them
 
 
2 hours later…
9:59 AM
@python_learner Abbreviations are mostly common to the scientific Python stack, see also matplotlib as mpl and matplotlib.pyplot as plt. For other usecases, shortening of names seems either uncommon or not standardised.
 
Probably because with stdlib you usually use a few names at a time. That being said I could probably work with from matplotlib.pyplot import subplots, show 90% of the time
 
user13415013
10:42 AM
@roganjosh, sorry problem was solved without knowing how it was calculate.
 
@nerd I'm glad that you solved the problem. It still doesn't change my stance that "help!!!" repeatedly throughout your messages is not a good way to interact with people in here. It's twice now that I've moved your messages and I'd really rather not have to. Please be considerate of the fact that people here are not being paid and we'll help if and when we're able
We also seem to share a crippling affliction whereby we enter a catatonic state for several hours each day. I don't think we know whether it's the presence of the moon or the absence of the sun but we have our top scientists on it
 
Cabbage, all
 
cbg
@roganjosh obligxkcd
 
11:03 AM
hii
 
@AndrasDeak :P I've not seen that one :)
 
 
1 hour later…
user13415013
1:27 PM
@roganjosh sorry. It would be great if stackoverflow pays money .
 
It would make some people very rich indeed. Anyway, no need to be sorry now. I've said my piece, just please keep it in mind
 
2:18 PM
stackoverflow could pay money to contributors (good answers/questions), but also charge money for downvoted answers, duplicate questions etc. I propose a $0.50 penalty for charges/penalties and $1 for payments.
the only way to sign up to the site would be to provide a bank account number, or possibly paypal account.
If you have zero funds available and incur charges your institution will automatically issue a loan to cover the costs at a 34% rate of interest
stackoverflow would get is funds to pay contributors from a combination of sources like charges incurred by negative contributors, but primarily through advertisements. yes stackoverflow will force you to watch a 30 second advertisement before providing you with the answer to your question. Also there will be a plethora of ads scattered along the left and right sides of all pages
overtime stackoverflow would use profits to purchase and shut down all coding site communities and message boards for question/answer, leaving developers no choice but to use stackoverflow.....mwahahahaha
 
2:35 PM
The XKCD from Andras, sans amnesia, seems to be at work here
 
:)
 
3:11 PM
cbg folks!
I took a look at the results from the "when to meet" poll. While there is no single date that works for everyone in this room, there have also been /some/ interest (results visible here ). Based on these results and previous conversations, I think a good strategy is to do two meetups: one on Sep 19, and one on Oct 3. These are totally non-mandatory, come as you please meetups, mostly to stem the covid-induced cabin fever
There's no set agenda, but we do have some talking points (please feel free to add to them), should the room get quiet
Here's the calendar invite for the Sep 19 hangout, which is scheduled for 12pm in Toronto/NYC, 9am in Seattle, 21.30h in Chennai/India, 17.00h in London,UK
[Here's the calendar invite for the Oct 3 hangout, which is scheduled for 12pm in Toronto/NYC, 9am in Seattle, 21.30h in Chennai/India, 17.00h in London,UK
](https://calendar.google.com/event?action=TEMPLATE&tmeid=MWdpa2lidGgzYmZidDFlNjU5cTlybzIzdTcgYnZvdGRyZTQwZ2dmOXFtdTZqaGxscmFkczBAZw&tmsrc=bvotdre40ggf9qmu6jhllrads0%40group.calendar.google.com)
 
3:44 PM
Pinned the first one, as promised :)
 
4:20 PM
I take it from context that the format is a google hangout?
 
4:34 PM
@roganjosh many thanks. That really helps
@AndrasDeak Yes (it's a gMeet, actually), I figured it would be a valid assumption that everyone here has a gmail account
 
4:59 PM
Need help with this : pastebin.com/3pSVZJDq
 
5:11 PM
@AshwinPhadke no MCVE. Your error says color and your example code uses a literal tuple. Replace the color with the same tuple and see if the problem persists, update the pastebin with a consistent error.
 
@AndrasDeak I replaced it with (0, 255, 0) but still the same error
 
OK, so make an MCVE that doesn't need kalman.predict(), define the coordinates mannually. I'm thinking a runnable example. One import, one call to rectangle, maybe one to show a plot.
 
@AshwinPhadke that is expressly not what I asked for
 
@AndrasDeak this would work? from GeeksforGeeks : pastebin.com/BAWtEAvB
 
5:24 PM
Yes, although it's still missing an import. Does it still produce the error for you?
hmm, I can't install opencv in my 3.8 env so I might not be able to help you after all
 
@AndrasDeak No it doesn't
using only that MCVE gives no error.
 
@AshwinPhadke that's good! Now you just have to figure out what the difference is between the two codes. (But also, this means that your second block of code is not an MCVE)
the "C" in MCVE means "complete", i.e. it demonstrates your issue
side note: the indentation in the real code you linked is pretty terrible
 
@AndrasDeak yeah I had to change it.
 
So, I'd suspect that you misplaced a parenthesis during that change.
 
I still am not getting why that issue is if I am passing a tuple for both the code samples.
 
5:31 PM
Without seeing your real code nobody will be able to help.
 
o/
 
@AndrasDeak it's the same code with better indentation :)
 
I can't take your word for it
@Vega hey
 
I came here with a question :)
 
shoot
 
5:33 PM
@AndrasDeak take the code : pastebin.com/8ta1JRQ2 :p
 
Thank you! Could someone eventually confirm that this answer is not one or is not an answer attempt ? stackoverflow.com/a/63602671/5468463
 
@AshwinPhadke thanks. Which line is in the traceback?
 
@AndrasDeak 326
 
@AshwinPhadke for prediction_x and _y you have tuples inside lists; perhaps opencv is confused with the error
 
@AndrasDeak I tried keeping only tuples and only lists stil the error is for line 326
 
5:37 PM
@Vega attempt to answer, but completely misread the question. Not NAA
@AshwinPhadke but you understand what I said about a tuple inside a list? That seems wrong. You have [(x, y)] instead of [x, y] on lines 324-325
 
@AndrasDeak Yes, that's what I said , I kept only lists once and only tuple once the error is still ther
 
I'd try fixing that first
 
@AndrasDeak I assume even without the edit?
 
If i keep it only as a tuple it doesn't detect the two arguments and says that only two arguments were provided
 
@Vega I'll check. But I don't think it qualifies as NAA. Downvote and delvote probably
 
5:41 PM
When I change it to tuple I get
File "kalman_filter.py", line 326, in <module>
frame = cv2.rectangle(frame, prediction_x, prediction_y, (0, 255, 0), 3)
TypeError: function takes exactly 4 arguments (2 given)
 
@AshwinPhadke I'll get back to you, some thing came up, sorry
@AshwinPhadke uuuuh that error can't be right
 
@AndrasDeak Thank you very much!
 
@AndrasDeak exactly
@AndrasDeak okay
 
@Vega (if you have to ask subject-matter experts, it's by definition not NAA ;)
 
All I needed to know! :)
 
5:49 PM
@Vega even without the edit: the text was there in an html comment... I wouldn't have edited it
@AshwinPhadke are you in a jupyter notebook? Worth restarting the kernel or something, if so
and maybe exorcising your computer
 
6:10 PM
@AndrasDeak Right, I didn't see, but is visible in 'side-by-side markdown' view
 
@Vega I found it under the "source" link
OK, I could install opencv, I just made the rookie mistake of assuming that the package name is the same as the import
Ashwin will have to provide a proper traceback to see what that function really is
rectangle(...)
    rectangle(img, pt1, pt2, color[, thickness[, lineType[, shift]]]) -> img
there's no way that's going to claim it "takes exactly 4 arguments"
 
6:37 PM
cbg
wonder how to respond the right way to such questions
 
Don't respond.
Consider to CV, DV and/or flag.
 
Okay :)
Thank you bdw
 
FWIW, IMO you responded well already. ;)
 
@MisterMiyagi thanks :)
 
7:31 PM
@MisterMiyagi thanks again , I am unclear sometimes, but the question has been closed now..!! appreciate your input
 
8:09 PM
rbrb :)
 
8:56 PM
Hello
I want to make a Class on python tkinter which would have input a two dimensional array.
The array contents may be:
web-links
plain-text
image
button

The output would be a representation of arrays data in a table using Canvas.

Is there something ready?
What else may be array contents?
 
That's kind of a lot of stuff to store in a 2d array
 

« first day (3605 days earlier)      last day (1334 days later) »