Mar 10 10:47
$\frac{5 \pi}{36}$, isn't that $25°$?
 
Jan 27 09:37
What do you mean? Imagine the maximum amount of Pythagorean triples a number belongs to is written as $M$. Are you looking for $M(n)$ as the maximum for every specific number or are you looking for the fixed value $M$, which holds for all $n$? I can tell you (as explained in the comments) that the fixed value $M$ can't exist, you can only define it as a function, $M(n)$. Is this what you are looking for?
 
Dec 3, 2024 08:15
What work do you do? Are you some engineer, putting things to work, not caring whether or not those things have been made by male, female or other people? Or do you work in HR, where you might confronted with such people and you need to be prepeared.
 
Apr 30, 2024 06:33
Some things are not clear to me: his clothes touch you four to five times in a big room and you just shift away? Why don't you just turn around, saying something like "Hey Kees, can I help you?" (I don't know his name). As far as the staring is concerned, this is an issue you might address to your superior or to HR: you can state that seeing peoples' faces distracts you and even hinders you doing your job, isn't there a way to position people in such a way that they don't stare at each other?
 
Apr 28, 2024 13:09
You mention the median being $\frac{6}{2}$, shouldn't that be $\frac{6+1}{2}$?
 
Apr 28, 2024 13:08
How do you react on this one? When you see the solar system as a system with the sun in the middle and the planets orbiting around the sun at a constant speed, then the average location of every possible planet (Earth, Venus, Mercury and all the others) is the centre of the solar system, which means the location of the sun. As a consequence, the average of the distance (when written as $\vec{A} - \vec{V}$ or $\vec{A} - \vec{M}$) equals the zero vector :-)
 
Apr 5, 2024 17:23
Can you give a concrete example?
 
Mar 23, 2023 13:35
Some reactions are pure horror: A.I. does not always give correct answers, students are ok with that , so should the teachers, how dare you guys? Being satisfied with less than 100% is normal behaviour for minor people, and it's up to us, adults, to teach them otherwise: You MUST try to go for the 100%, only by this attitude will they succeed. We all know that 100% can't be reached: human error, a chapter of the textbook is not well understood, loss of memory during life, ..., therefore a minor MUST start aiming as high as possible, in order for normal life conditions not to flunk you.
Mar 23, 2023 13:35
@allo: The students cannot use answers from ChatGPT, even if they are correct, because there's absolutely no way for the students to determine whether or not the answers are correct or not!
Mar 23, 2023 13:35
@IlmariKaronen: just check my last edit :-)
Mar 23, 2023 13:35
@StevenGubkin: just check my last edit :-)
 
Mar 22, 2022 10:40
@AlanT: thanks for the support, but the do_something() should not be called in case the list is empty or null and it is certainly not the cause of this issue. Meanwhile your colleague Peter has answered the question, and his answer indeed solves my problem.
Mar 22, 2022 10:40
@PeterCsala: You're a life saver!!! The intersect() solution goes 100x faster. Please write it as an answer, I'll accept AND upvote it.
Mar 22, 2022 10:40
Basically my question is "±2 entire seconds for running through a simple list of not even 200 entries? I was expecting ±2 hundreds of seconds. How can I achieve a "normal" speed?".
Mar 22, 2022 10:40
@AlanT: the list_statuses is updated regularly in a ThreadedTimer, this is handled outside the scope of this question.
Mar 22, 2022 10:40
@PeterCsala: if not empty the list just contains a small number of entries (1 to 5). When a match is found, you still need to continue for all entries.
Mar 22, 2022 10:40
@PeterCsala: well, that's the whole problem: the text_list can contain some of the same entries (about 1 to 5) we have in list_statuses but in most of the times it's just empty.
Mar 22, 2022 10:40
Oh, in the meanwhile I've tried (as suggested here) to use a "for"-loop instead of a "foreach" and instead of two times faster, it goes two times slower :-)
Mar 22, 2022 10:40
@PeterCsala: the list contains entries like "WARNING", "ERROR", "HINT" and over a hundred entries like "STATUS_xxx" (where "xxx" is a number from "001" to over "150"). They are not ordered. I expect all entries to contain only capitals, so casing should not be important, but I'm not 100% sure, and I admit: I have a Java past and I'm a .Net newbie :-)
Mar 22, 2022 10:40
The text_list null-check mostly is used for avoiding NullPointerException exceptions. The biggest issue I have is that a foreach, running through a List<string> collection of not even 200 entries takes about 2 seconds, and I wonder if there's a faster way.
 
Dec 9, 2017 02:34
@Vlad: ask your manager what you're allowed to do with your computer, and why you're not allowed to install GIT, SVN, or other. I believe this restriction has its reasons, and only if you know them, you can fight it.
 
Dec 8, 2017 16:30
In my company, we have a tradition of "secret santa": you subscribe to a list and randomly a person gets picked for you, to whom you give a Christmas gift. The maximum amount is set to 10$, with some liberty. Like this, everybody is treated equally and nobody needs to bother about seeing the gift as a performance indicator (therefore the value is too small). Maybe you can introduce this in your firm?
 
Nov 13, 2017 22:25
@L.Dutch: please add as a tag the country you're working in: I live in Belgium and I know that language might be a very serious matter in some continental countries, but for different background reasons.
 
Aug 9, 2017 02:30
No worries, we have decided in the meanwhile to do a software update.
Aug 9, 2017 02:30
although you're completely right, let me explain you the situation: the SQL query I'm talking about, is generated automatically by my software. Modifying this query hence means modifying the software, which includes a software update on a particular version, ..., hence my request for a quick (and dirty, I admit) solution.
 
Jun 2, 2017 12:53
I can only think of actuaries, cryptographists or planning makers :-)