« first day (3890 days earlier)      last day (1052 days later) » 

12:25 AM
re: Python rushing ahead of Java, I guess one reason would be that colleges have started to adapt python instead of Java mostly, I know now my college teaches python instead of C and Java in the first year
 
12:52 AM
Can someone help me: why does this for loop only go through once? It only adds up the numbers for the first iteration it seems.
    for x in range(1,4):
                a_yes=0
                for locus in reader:
                    if locus[0] in yes_list:
                        a_yes+=float(locus[x])
                print (a_yes)
 
1:09 AM
what is reader? if that is a generator then try reader = list(reader) (before the outermost loop) then use reader in the for loop
 
Got it and it works! Thanks!
 
 
1 hour later…
2:26 AM
I am wondering why A and B results in different result.
import numpy as np

data = np.arange(10)
roi = data[-3 - 2:-2]

# A
roi = roi + 10

# B
# roi += 10


print(data)
print(roi)
 
>>> data = np.arange(10)
>>> roi = data[-3 - 2:-2]
>>> roi = roi + 10
>>> roi
array([15, 16, 17])
>>> roi = data[-3 - 2:-2]
>>> roi += 10
>>> roi
array([15, 16, 17])
Looks the same. You are probably starting A and B with different roi
 
@Dodge : Check the data
data is different
 
>>> data = np.arange(10)
>>> roi = data[-3 - 2:-2]
>>> roi = roi + 10
>>> print(data)
[0 1 2 3 4 5 6 7 8 9]
>>> roi += 10
>>> print(data)
[0 1 2 3 4 5 6 7 8 9]
 
it is different, data = [0 1 2 3 4 5 6 7 8 9] then data = [ 0 1 2 3 4 15 16 17 8 9], though I had to roi = data[-3 - 2:-2] again
 
Why are they different?
It is confusing
roi is a reference type that holds an address on an object?
 
2:37 AM
12
A: Why does python/numpy's += mutate the original array?

GoodiesThis is true for almost any type of collection. This is simply due to the way python treats variables. var1 += var2 is not the same as var1 = var1 + var2 with collections. I'll explain it as far as I understand it, which can certainly be improved, so any edits/criticisms are welcomed. print("1:"...

that must hopefully explain why
 
@python_user: Thank you for the link.!
 
ah, the first assignment creates a new reference and the second augments the existing one
The is some commonly mentioned blog on this in the room 6 suggested reading material
 
@Dodge Yes. It is confusing. :-)
 
This is the one by Ned Batchelder
 
"Playback on other websites has been disabled by the video owner." could just remove the embed
 
2:48 AM
> For numbers, += works just as you’d expect. But lists give us another surprise. With lists, “nums = nums+more” will rebind nums to a new list formed by concatentating nums and more. But “nums += more” actually modifies nums in-place, as a mutating operation.
 
@Dodge Thank you, a nice link.
 
This is a super common gotcha, I should've know right off but I questioned the order that you were executing things
 
roi[:] = 10 is also interesting. It is not the same as roi=10.
It made me confused several days ago.
 
I guess you are saying assign all indexes in my numpy array tthe value of ten which makes sense. The line you wrote: roi = data[-3 - 2:-2] is also confusing
 
3:10 AM
` roi = data[-3 - 2:-2]`


I am watching a tutorial. The author want to create a watermark on the video frame at the lower right corner. The watermark size is 3 pixel wide. He also want to give a margin of 2 pixels.
Using negative index makes his life easier.
 
Cool, without that context I was confused. That's why MCVEs are boiled down to only what matters.
You probably know that already. You've asked a bunch of questions and have a decent amount of rep
 
@Dodge: I have offered a lot of bounties in my another account:
 
3:26 AM
Damn, I didn't know you could do yam like this in LaTex:
267
A: Nice scientific pictures show off

kiss my armpitElectric field due to 3 charges. The black one is a negative charge orbiting the other two positive charges. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-electricfield} \begin{document} \multido{\i=0+15}{24}{% \begin{pspicture*}(-4,-4)(4,4) \psElectricfield[Q={[-1 3 \i...

That's really cool
 
@Dodge Thank you!
 
I guess there is no way for me to be sure that is your account though, hmmm. I mean a person could share an account on another site and claim it as their own. I give you the benefit of the doubt.
 
3:46 AM
@Dodge: It makes sense. I will show someday. I will edit the profile and put a greeting for you!
 
ah no worries at all I'm just pontificating
 
I have three accounts.
 
I have just the one and it has totally stagnated. I need to get back to rep hunting and question answering. I just hang out here all the time when I am on SO now
 
 
1 hour later…
4:57 AM
Cabbage folks
 
5:23 AM
is the "ignored tags" feature currently broken? keeps showing me pandas questions now even when I have them ignored
 
5:34 AM
@metatoaster can confirm, I have ignored azure* and web-scraping, both show up
 
 
2 hours later…
7:07 AM
Morning cabbage all
 
cbg
 
cbg-ning
 
7:43 AM
cbg
@python_user why have you ignored these
 
7:58 AM
I know next to nothing about azure and web scraping, and most of those questions usually have no MCVE
 
Another day at office
 
8:22 AM
cbg
 
 
2 hours later…
10:00 AM
The last message was posted 100 centuries ago.
 
Found the time traveler
 
10:35 AM
^ closed
 
@CoolCloud import time; reversed(time), easy
 
10:55 AM
Is there a mathematical name for this set operation? x = set(a+b for a in y for b in z)
I know that set((a,b) for a in y for b in z) is the Cartesian Product, so maybe I can define it in terms of that... So if there's a name for the set operation x = set(sum(a) for a in y) then I can get what I need
 
@Aran-Fey Was there someone stopping you from typing that? If not, we are good to go :P
 
I'm pretty content with traveling forward through time. What's rewinding time gonna do for me except make me experience embarrassing childhood memories again?
 
TypeError: 'module' object is not reversible
i was promised something. it was all a lie. :'(
 
I'm torn between apologizing and making it worse
...try again after upgrading to python 5
... 50 years from now when python 5 is released, a very disappointed and angry Paritosh is gonna come knocking on my door
 
11:23 AM
Maybe that Paritosh wont be 50 years older than now....
 
@CoolCloud can you explain stackoverflow.com/a/27193976/12502959 as you are someone who use tkinter "self.icon_size.image = self.icon # <== this is were we anchor the img object"
 
It's explained in the comments
 
I have no idea what user means by anchor, the only thing happening there is garbage collection
 
I mean, isnt self.icon enough?
 
TLDR: tkinter interacts with garbage collection in a very surprising way. Related reading: web.archive.org/web/20201111190625id_/http://effbot.org/pyfaq/…
 
11:28 AM
@python_user Today I have used self before an PhotoImage instance and it has worked for me, maybe not always? I am not sure about that case or why the user says it needs to be again kept reference to
 
@python_user Yeah, it is
 
Oh, I misread the question. Yeah, self.icon = ... is sufficient
 
ok so that was where my doubt was, I did read the comment, but I was confused, I thought my understanding of references was wrong
 
Hmm, so both the top voted answers are simply wrong. Aaaand, downvote
 
Lot of people make baseless claims and sometimes it even gets alot of votes :/
 
11:30 AM
that did help me fix stackoverflow.com/questions/67919612/… so maybe you can mark it as dupe
 
Well, they both answer the question that I thought was being asked, so I guess 30 other people misread it the same way :-D
 
@Kevin Wat. Isn't that a bug worth fixing?
 
@python_user It's a dupe of the question that I thought was being asked, but not a dupe of the question actually being asked
 
I have to re read this chat and the question to get clear, thanks for the clarification though
 
I may be explaining myself poorly. I'll rephrase...
 
11:33 AM
Well, is it a bug? It seems like a consequence, rather than a bug
 
The charitable answer is "it's a matter of perspective"
Why does Tkinter image not show up if created in a function? is a common pitfall that many tkinter users encounter. It occurs because the PhotoImage gets garbage collected before Tkinter uses it.
Tkinter Label does not show Image is not caused by garbage collection. The OP correctly ensures that the PhotoImage is not prematurely garbage collected, by attaching it to an object with a longer lifetime, in this case self. His actual problem, described at stackoverflow.com/a/35957485/953482, is that his image had an alpha channel that Tkinter didn't understand.
How to put sound and image when click at a button in python? does not attach their PhotoImage to any long-lived object, so they will experience the problem from "Why does Tkinter...". The typical png does not have an alpha channel*, so they will probably not experience the problem from "Tkinter Label does not...".
So your proposal to close "How to put sound..." as a duplicate of "Tkinter Label does not..." is not advised
Closing "How to put sound..." as a duplicate of "Why does Tkinter..." is probably fine though
 
@Kevin ok this ^ makes sense, melon much, so how did you initially understand the question "both answer the question that I thought was being asked, "?
 
Whenever I see any tkinter question about PhotoImages not displaying right, I immediately assume that it's a duplicate of "Why does Tkinter..." without actually reading the code. 99% of the time, I'm right, but today I was wrong
You guys seem interested in whether this garbage collection problem is a bug or not. I want to explain my perspective, but first I need to double-check some facts. Please hold.
estimated wait time: between 5 minutes and eight hours
 
11:57 AM
@Kevin Ah. So it's the standard "things die if you drop them on the floor".
 
12:09 PM
bugs.python.org/issue632323 describes the problem in some detail, and some bigwigs weigh in. TLDR: Guido says it's not a bug, so it's not a bug.
I guess I'd summarize the problem as: three layers of the program make use of the PhotoImage (or BitmapImage, either on), and all of them assume that one of the others is handling the reference counting for them.
At the highest layer, the user creates a PhotoImage and passes it to Label via the image named argument. The user assumes that the Label will keep its arguments alive for as long as it needs them. This is a fairly reasonable assumption, since that's how most classes work.
 
JavaScript too has many wrong (highly up-voted) answers.
x = set(a+b for a in y for b in z)
product from itertools does the same job as above.
 
At the middle layer, the Label class takes configuration options from the user, and hands them to the underlying tcl/tk engine. Like most widgets, Label does not keep track of its own data. Once it hands everything off to tcl before the end of Label.__init__, it can retrieve any information it wants about itself just by asking tcl for it back.
 
For strings you use join, for numbers use sum(), result is cartesian product
 
I only tinkered a little with tkinter, but it was enough to teach me that I will always prefer a website over a tkinter app. Just throw some flask together and there you go
 
For strings, x = set(a+b for a in y for b in z) = [''.join(r) for r in product(y, z)]
 
12:19 PM
At the bottom layer, Tcl receives commands from upper layers and dutifully follows them. If something tells it to allocate space for an image, it does so. If something tells it to deallocate space, it does so. It never garbage collects anything on its own initiative, because it doesn't know what garbage is.
The final piece of the puzzle: The base tkinter.Image class defines a __del__ method that cleans up the image's allocated resources when the image gets collected. This includes telling Tcl to deallocate the space it made for the image data.
 
@Kevin If only there were a means to count references to get shared ownership...
 
Considering that tkinter automagically creates and manages a Tcl interpreter for you under the hood, it seems a bit silly (from the user's perspective) to distinguish between tkinter and Tcl. The user can't have Tkinter without Tcl or Tcl without Tkinter, so it really doesn't matter which one of them keeps the image alive. But one of them should.
 
I see you two are men of culture as well (-‿-)
 
@Kevin Are you looking for sets in specific, or would lists/vectors be fine as well?
 
I would also like that to be the case. But the bigwigs appear to reject this for two primary reasons: first, changing how it works now would break backwards compatibility. Second, it's a pain in the butt to rewrite every widget class that might take image as a named argument.
From the horse's mouth: bugs.python.org/msg13028
I'm pretty skeptical of the claim "Python cannot possibly track all uses of the command". I'm assuming he's referring to all of the tcl/tk commands that accept image parameters. I don't know how many of those there are, but I'm guessing the number is finite, and probably less than, say, a million, so I think Python could track all uses if it monitored all communication from Python to tk.
 
12:30 PM
@Kevin Zis ish mädnesh!
 
@MisterMiyagi sets specifically. And to be even more specific, I mean mathematical sets, including ones of infinite size.
For example, I want to be able to say "the Kevinian Sum of {1} and the set of all even numbers is the set of all odd numbers"
 
The "breaking backwards compatibility" argument is also pretty silly. The only people who might get bitten by that change are those who remove the image from their GUI by deleting the last reference to the PhotoImage object. But python makes no guarantees about when it cleans up dead objects, so that's a stupid thing to do anyway.
 
Perhaps it's wrong to say that I want to define the Kevinian Sum for all kinds of mathematical sets. More specifically, I'm only interested in sets of positive integers that can be constructed from some simple fundamental building blocks.
Definition: a KSet is a kind of set, defined recursively as:
the empty set is a KSet.
{1} is a KSet.
for any positive integer x, {x, x*k, x*k, ...} is a KSet.
The union of two KSets is a KSet.
The Kevinian Sum of two KSets is a KSet.
My current goal is to come up with a non-recursive definition of a KSet that allows me to efficiently determine whether a convntionally-described set is a KSet or not. For example, is the set of all positive integers not evenly divisble by 3 a kset? What about the set of positive squares?
 
{x, x*k, x*k, ...}? What's k and why is x*k in there twice?
 
@Aran-Fey Wow, I really mangled that line. I meant to write {x, 2*x, 3*x, ...}
I know the set of all positive integers not evenly divisible by 3 is a KSet, because you can write it as {1} U {2} U ({3,6,9,...}^{1}) U ({3,6,9} ^ {2}). Where "U" is the union operator, and "^" is the Kevinian Sum.
(Lemma: {2} is a KSet because {1} ^ {1} == {2})
 
12:48 PM
Why is {2} a KSet?
 
got em
 
^KevinSet'd
 
By extension, this also proves that {n} is a KSet for any positive integer N, and then you can union those together to get any finite set
 
Wait, then any set of positive integers is a KSet.
^KevinSet'd^2
 
I'm very keen to discover which kinds of infinite sets are KSets
It's something more complicated than "The only infinite KSets are arithmetic serieses", because "all numbers not divisible by 3" is not an arithmetic series, but it is a KSet.
 
12:53 PM
Decently sure you have just proven that any subset of N is a KSet.
 
On the other hand, I suspect it must be simpler than "any series that a turing machine can output, given infinite time and memory". A turing machine can print all the prime numbers, but I don't think the prime numbers are a KSet
Even the set of squares seems out of reach, although I may just be lacking imagination for that one
I thought I had a proof that the powers of two were a KSet, but I seem to have misplaced the cocktail napkin I scribbled it on
 
All prime numbers are positive integers, so why they are not a KSet
 
Any set must be assumed to be Not A KSet unless you can prove otherwise by describing how you would produce it from the building blocks
 
You can proof by induction that any subset of N is a KSet.
 
Hmm, you may be right, depending on how I've defined my parameters. Where's my strongest magnifying glass, I need to go through some fine print...
 
12:59 PM
The KSum allows to prove that {n} for any n in N is a KSet. {k, n} for any k, n in N is a KSet, because {k, n} = {k} U {n}. You can expand that to {n} U N' where n in N and N' a subset of N.
 
Right. That construction is valid for any countable set of positive integers. (tangential question: are all sets of positive integers countable?)
 
I guess I need a new definition to properly capture the challenge I'm truly interested in. A "compact KSet" is a KSet that can be constructed using a finite number of steps.
The squares and the primes and all those good sets are all KSets, but I suspect they are not compact KSets.
 
@Kevin Rational numbers are countable because integers are countable, no?
 
Yeah, rationals are countable. (confidence: 80%)
 
1:05 PM
@Kevin Just define a KSayts as "what Kevin Says"
 
Ok, I define it, and also give it an additional alias of NotAppearingInThisProblemSet
I place my ceremonial Defining Sword across the shoulder of the definition kneeling before me. The crowd murmurs appreciatively.
 
Long live the 'K'night
 
Since there's only one simple kind of infinite set available in the building blocks of KSets, I wonder if there's some property about it that remains invariant throughout any of the operations you can apply to it. Then if you show that the primes don't satisfy that property, it proves that they can't be a compact KSet.
 
Are all mathematical operations allowed on this infinite set?
or just union and kevinian-Sum
 
Only exactly the operations defined at chat.stackoverflow.com/transcript/message/52387072#52387072
I'm currently trying an angle of attack like: {x, 2*x, 3*x...} always contains at least one non-prime number. This is still true if you union it with another set.
 
1:17 PM
Kevinian Sum would be enough to derive Kevinian Multiplication and Kevinian Exponentiation.
 
I suspect that doing a Kevinian Sum on a sometimes-composite infinite set can't make it always-prime, but a formal proof escapes me
 
KΣ, KΠ, ..., yes...
 
K-knuths-up-arrow-notation
en.wikipedia.org/wiki/… might be useful here... I'm not quite sure how I'd write it in terms of my system though
en.wikipedia.org/wiki/… gets me pretty close, I think. {x, 2*x, 3*x, ...} has a subset that is an arithmetic progression. If you union it with another set, it still contains an arithmetic progression. If you apply Kevinian Sum to it, it still contains an arithmetic expression.
So all compact infinite KSets contain at least one arithmetic progression. An arithmetic progression always contains at least one composite number. So you can't generate any compact infinite KSet that contains only primes.
Lemma: prove that all arithmetic progressions contain at least one composite number. By definition, an arithmetic progression is expressible as {a, a+d, a+2d, a+3d...} for any constants a and d. For our purposes, a and d are always positive integers. a + ad is a member of the progression, and it is a composite with factors (a, 1+d). □
I'm quite surprised that I figured out primes before I figured out squares. But I bet a similar approach would work.
Perhaps if you can prove that an arithmetic progression can contain at most two positive squares nope, N is an arithmetic progression and it contains all squares. Ignore me.
Maybe "If the first and second elements of a progression are squares, then the third one is not a square"
 
1:47 PM
Am waiting for MisterMiyagi
 
@Kevin Yep. Cantor gave a nice zig-zag construction to enumerate them. cut-the-knot.org/do_you_know/countRatsX.shtml
 
Hey @Kevin, can I trouble you a bit more?
 
@PM2Ring Excellent. Now help me with all my 51% confidence messages, i.e. all of my messages besides that one ;-)
@butexa Yeah, I'll see you in the other room
 
Sweet, thanks
 
2:07 PM
@Kevin A guy in the Math chat suggests something like "outer product table by addition". That implies that the result preserves the 2D structure of the Cartesian product of the two sets, though.
 
Hmm, not necessarily a dealbreaker
 
FWIW, the Math chat room guy happens to be a mod on Code Golf.
 
3:10 PM
Reading on quantum computers and qubits I came across the following:
> A classical computer typically approaches a problem by trying out one route, then trying another, and another, until it finds the solution. However, thanks to superposition and entanglement, a quantum computer can simultaneously try all possible routes, meaning it has the ability to process multiple complex calculations
I wish there was a better and more helpful example to understand this. If the state is unknown how is it processing anything at all
 
There is a great video about this (about an hour long) that finally actually explained it in a way I could understand, and not some hype-hand-wavy stuff. Let me dig it out
 
Awesome thanks!
 
My gut says "the computer is capable of processing for the same reason that the cat inside schrodinger's box is capable of thinking". My gut also says this is not a useful explanation. My gut apologizes.
 
But yeah, everything else I found was total garbage in actually helping me understand what the underlying principles are
 
3:18 PM
Yeah that's what I'm seeing as well. I fell like I do have some simplcus level understanding of the physics but translating that into mental model of a processor is not easy.
 
I can sort of understand how one qubit can perform a computation on more than one combination of inputs at the same time. But what I don't understand is why it was always considered newsworthy to publish articles like "stunning six-qubit quantum computer constructed". If going from five to six is revolutionary, then surely you could go from six to twelve just by building more qubits? What are these things made out of, moon rocks?
Are they really big? CERN gets like ten square miles for their collider but we can't spare a couple extra warehouses for the twelve qubit computer team?
 
That video is ~90 mins but well worth it IMO
 
FWIW, Peter Shor, who devised Shor's algorithm is a Stack Exchange member. He mostly hangs out on EL&U, but I have interacted with him in comments on Physics a couple of times.
 
@Kevin like 3m tall and 1m wide? Just from eyeballing videos
The chip itself is about the size of a regular CPU. Everything else is around the cooling system (hand-wavy myself here)
 
Bruh just make more. Call Elon and tell him they'll make his mars colony 20% cooler, he'll write you a check
Theory: qubits only work properly if you stack them on top of one another, and they keep falling down whenever anyone tries to make a tower of more than 6.
 
3:27 PM
Well, that's a genuine concern that people have raised. Trying to keep the system stable with more qbits could cause the whole premise to collapse
It seems it's at least exponentially complex to maintain the system
 
(actual non-joking guess: qubits interfere with one another somehow, so that the inaccuracy of the whole system scales exponentially with the number of qubits)
 
I think it might be neutrinos but don't quote me on that
 
Bruh just go ask Elon for some neutrino shields
 
It just needs some kind of lagging. I don't know why they haven't just wrapped them in pillows
<submits Microsoft application>
 
Shaking my head at these poindexters that can't think of one weird trick to slow down neutrinos
 
3:30 PM
@Dodge The state isn't unknown, it's just multiple states. I like the simile of the QC selecting the correct state from the bulk of suggested states.
 
Every science team needs one dimwitted but ultimately well-meaning jock to occasionally suggest approaches based on metaphors involving football or being prom king
"What if we put a gnarly spiral on those qubits? That always made my game winning passes more accurate"
[most important scientist dramatically removes his glasses] "... My God, he's done it"
 
@MisterMiyagi It definitely is communicated terribly about how "collapse a solution" actually works as a CPU, though. The stuff at the LHC is cutting edge, complicated and exciting, but the communication about it is clear. With Quantum Computing, everyone just talks in the abstract and, frankly, it really does make it seem a fad to me. It's like they think we're all just plebs
 
So, quantum computing is like the prom, right, where you have, like, all the kiddos dancing and things, y'know, and measurement is, like, saying "folks, Jeff and Carry are prom queen/king".
Cue ominous music.
 
You can't really tell how much fun your best bro is having until you observe him at the punch line, which is the only place that can maintain any order
The faster the line moves, the harder it is to determine your bro's position
 
@roganjosh Ah, yeah, comparing a quantum computer to a regular one is a super slippery slope. In a way, Quantum Computer's are incapable of computing anything.
 
3:34 PM
I'm not a physicist but I can buy and follow all the concepts from physics, and then they just leave it there. Well, great, but how is that solving my problem?
 
They are restricted to operations that can be inverted.
@roganjosh Magic.
 
Snake Oil alert!
 
throws sprinkles around
@roganjosh 100% vegan and gluten free!
 
But anyway, the guy from Microsoft in the video I posted does a sterling job at explaining it for me, so now I just exist to throw tomatoes at all the other people talking about quantum computing
*in TED Talks and the like
 
If you have way too much time, I recommend this lecture series: Quantum Computation and Information
 
3:39 PM
@roganjosh We build cool machines that don't solve anybody's problems, so our great-grandchildren may have rad hoverboards
 
Well, just use the cooling system to build a city-wide maglev on every pavement. Job done!
Waste of parts
 
@Kevin Still waiting for my Jetpack. It was supposed to arrive in 2000.
 
Jetpacks exist, now we just need to get idiot-proof jetpacks
 
This is necessary even for consumers that consider themselves not to be idiots, because there will still be idiots flying near them
It's been like 100 years and we don't have idiotproof cars yet, but we should get those Real Soon Now
 
3:49 PM
@Kevin Most of the neutrinos (& antineutrinos) in the universe are moving quite slowly, relative to us. They're the "relic" neutrinos of the CNB, the cosmic neutrino background, which decoupled from the rest of the matter in the universe about 1 second after the Big Bang. They're severely redshifted, so they're now sub-relativistic.
 
I have heard this somewhere, hmmmm, perhaps WandaVision? Or was that CMBR
 
Oh, surprising
 
rmb
can anyone help me with a simple thing
 
> After the detectors for the project were upgraded in 2012, MINOS refined their initial result and found agreement with the speed of light, with the difference in the arrival time of neutrinos and light of −0.0006% (±0.0012%).
0.9994c, that's practically a casual stroll
I didn't even know particles could go a speed that had a 4 in it
 
3:53 PM
Neutrinos are notoriously bad at interacting with anything, and the slower they are, the smaller is their interaction cross-section. So we might never be able to directly detect the CNB neutrinos. But they get included in cosmological calculations of the energy content of the observable universe.
 
rmb
what is the quilvalent of select unnest(product), 1 as item from products1 in sqlalchemy?anyone?
 
At ultra-relativistic speeds, we don't bother talking about velocities. Numbers like 0.9994c are just for pop-sci articles. It's more convenient to just talk in terms of energy, or the Lorentz gamma factor, where gamma = 1 / sqrt(1 - v^2/c^2). Eg, something travelling at sqrt(3/4)c has a gamma of 2, which means its kinetic energy equals its rest mass.
Our current best neutrino detectors can't see neutrinos below ~233 keV, which means their gamma is around a million. And even then, we only detect around 1 per billion that pass through the detector.
 
4:10 PM
Is there a standard for what speeds (and/or speed-related measurements) count as "ultrarelativistic", or is it more a subjective thing like "if it's less of a pain in the butt to describe using gamma rather than velocity, it's ultrarelativistic"
Wikipedia says something like "if you pretend the particle has zero rest mass, and your calculations still give you useful results, it's ultrarelativistic"
 
@Kevin sounds like 0.999994c
 
Did I get the orders of magnitude wrong? Eh, close enough for astronomy
What's a little 1e4 between friends
 
Percents
 
I don't believe in numbers between zero and one, they're unnatural
 
4:28 PM
@Kevin Yeah, if the rest mass energy is negligible, relative to the KE, then it's ultra-relativistic.
Hi, @Andras.
 
Hey, PM
 
We're still not quite sure what the neutrino rest mass is, partly because it's so tiny relative to the KE of the neutrinos we can detect. And partly because neutrinos change their flavor.
Because of quantum, a neutrino in a pure flavor state is in a mixed mass state, and conversely, a neutrino in a pure mass state is in a mixed flavor state.
 
I imagine we can't just plug their velocity into some lorentzy formulas and get their rest mass out, considering our measurements don't rule out a velocity of (1 + a bit)*c
"Says here they have a mass of negative one nanogram. Hmm."
 
To do that, we need to be able to measure their KE and their velocity with sufficient precision. People are working on that, so our numbers are getting better. Slowly.
 
Our great grandchildren are going to have some seriously good image quality on their neutrino powered televisions
"When the neutrino ray tube strikes the quantum phosphor array, it emits a superpositioned photon whose wavelength depends on the observer. That's how the same qixel can look red to your left eye, and blue to your right"
I did it, I solved 3d screens
 
4:39 PM
@MisterMiyagi That helps some, thanks. Looking forward to the watching video roganjosh shared this evening
 
For the past decade or so, a group has been claiming that radioactive decay rates are affected by changes in the neutrino flux from the Sun. The concept is plausible, but any such effects should be far smaller than this group claims. Nobody can reproduce their results, and most experts dismiss their claims as due to bad experimental technique. But they keep publishing papers... Young Earth Creationists love them, because they think it invalidates radioactive dating techniques.
 
 
2 hours later…
6:33 PM
I had a course on cv2 and python, I did the first quarter and then due to some exams stopped, then took again, did the first quarter again and while that was over again some exams, so stopped. Now I feel like I should do it again :P
 
Try, try and try again? :)
 
Prolly this time there wont be any obstacles
 
7:32 PM
Totally off topic, feel free to ignore: if you respond to conservation in MS Teams and don't '@' anyone do the participants get a notification or might the comment just sit there until someone happens upon it?
 
My working assumption is that MS Teams is a spontaneous symmetry breaking of a Mexican hat filled with undefined behaviour.
 
Safe assumption really. I can test it out I guess.
 
8:07 PM
MS Teams === theWorst (and yeah, the triple = was deliberate)
I've had calls where everyone can see me and yet I'm irrevocably muted, so they see me have a mini meltdown trying to find the options to rectify the mess, throw my hands up in despair and just leave the meeting
Fantastic with client relations and I'm supposed to be building them cutting-edge tech products. Oh well
 
Have you tried turning off and off again?
 
I mean, I do re-join :)
Guesstimate, it's at least 50% of meetings where someone can't see the slides or can't speak, or speaks but can't see the other people in the room (because they're still in the lobby, somehow). What a mess.
 
I had a glitch in a talk the other day on a Teams meeting but it was my brain that glitched. Awkward 60 seconds to say the least. I feel your pain @roganjosh Oh well that was one out of 40 minutes. The rest was good
 
Google (am I really singing their praises) Hangouts just work.
 
That's part of the problem with Google. Everything works so well the world became dependent. I try to stay away. Except for Tensorflow and YouTube and .... oh well
 
8:20 PM
:P
 
My school uses Teams, and I wish something like these happened during classes :P During class time, its perfectly alright :/
 
We're rather happy with Jitsi. Not allowed to use it for Very Important People Meetings, sadly.
 
@CoolCloud I'm truly amazed by that. I wasn't even exaggerating on my guesstimate. We just have to use MS Teams because they do, and it's a horror show, We often lose 2-3 mins from the start just to actually get people into a functioning position to actually have a meeting
Though, the rest of us fill the time with weird anecdotes, I guess
 
Other schools nearby uses zoom and I hear them complaining about stuff like these. With Teams its been nearly perfect for us, to get Teams is one of the good decisions the school has taken(surprisingly).
 
Hi pps
Hi peps*
 
8:41 PM
Hi there
 
yams! random.choices(...) is running faster in the repl, but slower in prod code, than random.choice(list(itertools.chain.from_iterable([k]*v for k,v in my_frequency_counts.items()))) </rant>
 
8:55 PM
@inspectorG4dget what the hell is that second option?
 
I looked at the source code (of random.choices) and regret everything. As usual. You'd think I'd learn at some point.
 
@roganjosh I have a dict: {'a':4, 'b':3, 'c':2}. I want to turn this into effectively random.choice('aaaabbbcc'). That second option expands out the keys of the dict into a list (at least, it does in my sourcecode - I wrote it here correctly)
 
@inspectorG4dget FWIW for most random generation, I just call into np.random.choice for the max number of iterations I want to try, and so be it if my search algo terminates early. Still quicker
 
@roganjosh really?! much thanks. Will check it out
 
For example, if I want to do something with simulated annealing, I can just create the whole 10k values of temperature and 10k values of random rolls in 1 go
If it converges in 5k iterations, cool. I still won on runtime
 
9:00 PM
I'll need one more piece to be able to use np.random.choice - it requires that my weights sum to 1, for which I'll need to rescale (I simulate a number of days, and on each day, I'll have to choose from the available options). I fear that repeated rescaling would cost me too much
@roganjosh no way! that's blazing fast!
 
For example, for my website I just pre-compute all the swaps here
 
yeehaw!
 
I mean, it could waste a bit of memory to pre-compute all the random swaps, but it's tiny compared to the function calls in runtime :)
 
9:47 PM
I should implement more algorithms in my code. Those are more fun than working out design decisions and figuring out how to de-duplicate code.
 
10:00 PM
Who can figure out why the expected FPS is different from the measured one in the following code?
 
I have no idea what you're asking
You've given no numbers or anything to the question
 
@roganjosh OK. What numbers are needed?
 
@TheShortestMustacheTheorem first, you need to read the room rules about code blocks that large. Second, read your own question back again to yourself. "from the measured one" err, from where? "Who can figure out" not a fun challenge
 
@roganjosh: "one" in "from the measured one" refers to "fps". OK.
 
@TheShortestMustacheTheorem Thank you for taking my feedback on board
 
10:13 PM
I have posted my problem to the main site. stackoverflow.com/q/67928991/5482465
 
You're calculating how long you have to sleep to hit the desired frame rate exactly, but waitKey sleeps at least that long
 
@Aran-Fey OK. Thank you. You solved my problem. Now I really have to sleep. :-)
 

« first day (3890 days earlier)      last day (1052 days later) »