play music using pygame but no sound
how to play wav file in python?
Get the index of the nth occurrence of a string? Centre of $GL_n(\mathbb R)$ How to prove that center of $GL_n(\mathbb R)$ is scalar matrices?  Again what can you say about the center of set of all upper triangular matrices and center of set of all diagonal matrices. Could someone explain to me what the collision of two photons would look like? Will they behave like,   Electromagnetic waves: they will interfere with each other and keep their wave nature Particles: they will bounce like classical balls   I assume that energy of that system is too small to make creation of pairs possible. What is some good free software for doing physics calculations?  I'm mainly interested in symbolic computation (something like Mathematica, but free). What voltage is a 3-LED light from a LED-TV? I have some "NDV rev1.1 4248 back lights" from a television.   There is a print that sais "94V" on the strip, and on the wire supplying the strips it said "96V".   Every strip has 9x buttons which have 3 LED's in them. So i devided 94 by 9 and figured that every button should have 10.4V roughly, which makes sense, because a white LED is normally 3.5 volts.  I have a 12v Lithium battery which measured 11.1V so i tested one of the LED's with it and it lasted less than one second.   Are the LED's are rated for 10.4V roughly and not more? Can I ignore coefficients for non-significant levels of factors in a linear model? Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs? "define:" oneboxing selects completely bogus data I found this weird word, "burke", and decided to check it out. It turned out it was an alternative spelling of "berk". This is what define: berk in chat expanded to:    So, according to that, "berk" as a noun can mean "a fool, prat, twit", or "berk", or "berk", or "berk". Wow, who would have thought "berk" might mean berk. Three times, just to be sure.  That got me really curious so I checked the wiktionary page directly. It shows three meanings for "berk": the same as meaning #1 that was oneboxed, plus two others that are not at all simply stated as "berk".  Further down from there we can find the other three "berks". Number three, for instance, is easy to trace since "indefinite plural berkë" seems quite greppable. And it turns out that it's Albanian. Passive with "to get" In spoken English (at least in America), passives are often formed with "to get" rather than "to be;" I would wager the majority of the time:   he got hit by a car I get driven to work I've gotten called for jury duty eight times   Are there specific verbs that prefer "be" to "get," or vice-versa, or semantic differences between these forms? I cannot think of any. Why does the SARS-CoV2 virus not remain infectious forever? Or does it? Given that the majority of biologists do not currently consider viruses to be alive, a virus can never die.  It can, however, get destroyed by long exposures to soapy water, alcohol, and apparently certain frequencies of UV light.  Why is an individual SARS-CoV2 virion not infectious forever?  Or is it? How to calculate the sum of the data that have the same ID in the first column? I want to sum the values of the rows of my data that have the same ID in the first column. My data looks like   data.txt  Id    a    b    c    d    e 1     1    2    3    4    5 1     2    3    4    5    6 1     3    4    5    6    7 2     4    5    6    7    8 2     5    6    7    8    9 2     6    7    8    9    10 3     7    8    9   10    11 3     8    9    10  11    12 3     9    10   11  12    13 3     10   11   12  13    14 4     11   12   13  14    15 4     12   13   14  15    16 5     13   14   15  16    17 5     14   15   16  17    18   Required results  out.txt  Id    a     b   c   d   e 1     6     9   12  15  18 2     15    18  21  24  27 3     34    38  42  46  50 4     23    25  27  29  31 5     27    29  31  33  35 I am trying to solve the following question which is Ex3 from Arthur Engel, Problem Solving strategies. Here is the question: $\sum_{k=1}^n k^3 {n \choose k}$ and asks to find the sum. I am sincerely having a hard time trying to figure out how to solve it and get $n^2 (n+3)(2)^{n-3}$. I would really appreciate if someone could show the step-by-step process. Thank you! Coordinate-Free Definition of Trace. I have recently installed Ubuntu 14.04 LTS on my laptop Sony Vaio VPCEA16FG. I have been getting system freezes (everything including display, mouse, keyboard stops working and I have to do a restart with the power switch) and there are random popups of "System program problem Detected"  On startup my screen is all splashed with black and white pixels and a System program problem detected message.  My video card info:    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M I have a 3TB Seagate Backup Plus Desktop USB 3.0 drive, which works fine when in its enclosure, but when I get it off its enclosure and directly plug it as an internal SATA drive, it's just not properly recognized (it works again when used in the enclosure). My systems’s motherboard is an , which has two SATA 6.0 Gb/s and four SATA 3.0 Gb/s ports.  When used as an internal SATA drive Windows 7 asks if I want to format the drive, as if it didn’t have a proper filesystem, and if I use the DISKMGMT.MSC tool (typing that in the start menu) I get completely wrong information about the drive.  It says the drive has 3 partitions (349,31GB of RAW data and two unassigned partitions of 1698,68GB and 746,52GB). This information is plain wrong, since the drive, when used in the USB enclosure, works as a single NTFS partition (2794,52GB). How come it’s shown as 3 partitions without filesystem when connected through SATA?!  Is Seagate using some proprietary way of storing the data when using the drive in its provided USB 3.0 enclosure? I didn’t use any kind of encryption. I just plugged the drive with USB 3.0 and started using it straight away, since it apparently came pre-formatted with an NTFS filesystem. Add parenthesis as an accepted Markdown ordered list delimiter The Markdown editor knows that an empty line, followed by a number, followed by a period, followed by a space, is a list item.  This works great It's almost magic  The problem is that I almost always use a close parenthesis for my lists. I think it's a pretty common practice, but the problem is that the editor / Markdown parser doesn't accept parenthesis as an acceptable list delimiter:  This fails horribly This is on the next line I swear Add a time limit before you can vote on a post There needs to be a timer or something on upvoting/downvoting.  I posted an answer to a question and as soon as the page loaded, my answer was already down voted. There is no way someone had the time to read the answer &lt; 10 seconds after it was posted. Installing gcc-7 (and newer packages) in Ubuntu 16.04 CronJob not running Necessary and sufficient condition for the matrix $A = I - 2 x x^t$ to be orthogonal Let $x$ be a non zeo (column) vector in $\mathbb{R}^n$. What is the necessary and sufficient condition for the matrix $A = I-2xx^t$ to be orthogonal?