When considering the Doppler shift, the 'canonical equation' is  $$f=\frac{c+vr}{c+vs}f_0$$  However, this equation seems to run into trouble in the following situation: A light source inside water is moving at a speed $v$ towards a receiver outside the water. Can we modify the above equation to deal with a transition between two media? Or is there a completely different formula that applies here?
When considering the Doppler shift, the 'canonical equation' is  $$f=\frac{c+vr}{c+vs}f_0$$  However, this equation seems to run into trouble in the following situation: A light source inside water is moving at a speed $v$ towards a receiver outside the water. Can we modify the above equation to deal with a transition between two media? Or is there a completely different formula that applies here?
USB WiFi dongle device that can emulate a virtual mass storage device for a home video player Is there a USB WiFi dongle device that can:   Emulate a virtual mass storage device for a home video player But in fact shows the files from a network-shared folder? Launch an app from within another (iPhone) Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button and launch right into the Phone app (close the current app, open the Phone app).  would this be possible? I know this can be done for making phone calls with the tel URL link, but I want to instead just have the Phone app launch without dialing any specific number. A few months ago I was telling high school students about Fermat's principle.   You can use it to show that light reflects off a surface at equal angles. To set it up, you put in boundary conditions, like "the light starts at A and ends at B". But these conditions by themselves are insufficient to determine what the path is, because there's an extra irrelevant stationary time path, which is the light going directly from A to B without ever bouncing off the surface. We get rid of this by adding in another boundary condition, i.e. that we only care about paths that actually do bounce. Then the solution is unique.  Of course the second I finished saying this one of the students asked "what if you're inside an elliptical mirror, and A and B are the two foci?" In this case, you can impose the condition "we only care about paths that hit the mirror", but this doesn't nail down the path at all because any path that consists of a straight line from A to the mirror, followed by a straight line to B, will take equal time! So in this case the principle tells us nothing at all.  The fact that we can get no information whatsoever from an action principle feels disturbing. I thought the standard model was based on one of those!  My questions are   Is this anything more than a mathematical curiosity? Does this come up as a problem/obstacle in higher physics? Is there a nicer, mathematically natural way to state the "only count bouncing paths" condition? Also, is there a "nice" condition that specifies a path in the ellipse case? What should I have told that student? How was Dumbledore able to defeat Grindelwald, since Grindelwald had the Elder Wand? $|p(z)| \leq M$ for $|z| \leq 1$ Show that $|p(z)| \leq M|z|^n$ for $|z| \geq 1$ How did "but" mean "only"? : Old English butan, buton &quot;unless, except; without, outside,&quot; [...]  I don't know Old English. From the étymons overhead, how did but  to mean    |adverb| = 1. No more than; only  ? What can explain the semantic shift? I didn't understand , because English is not my first language  :   In sense: Only. An elliptic development of the conjunction: see .  a. By the omission of the negative accompanying the preceding verb (see ), but passes into the adverbial sense of: Nought but, no more than, only, merely.    I understand Shakespeare's use in . Thank you all. Will Google punish me if I import a story from my own blog to content sharing sites such as Medium.com? I've heard that Google punishes sites with duplicate content.   If I write an article on my blog then import it on Medium (basically a copy/paste) will Google regard it as a duplicate?   Medium.com is a blog platform (sort of). Prove that a set of connectives is inadequate Pie Chart without labels in beamer using pgf-pie Is it possible to use multiple here-docs in bash? Can one use multiple here-docs to provide input to a command in bash?  $ cat &lt;&lt;&lt;foo &lt;&lt;&lt;bar bar $ cat &lt;&lt;EOF1 &lt;&lt;EOF2 &gt; foo &gt; EOF1 &gt; bar &gt; EOF2 bar   Obviously, in both cases, the second here-doc is used as stdin, and replaces the first reference. Is the solution to use echos instead?  $ cat &lt;(echo -n foo) &lt;(echo bar) foobar   Also, for some reason, using a combination didn't work for me. Why would that be?  $ cat &lt;&lt;&lt;foo &lt;(echo bar) bar $ cat &lt;(echo -n foo) &lt;&lt;&lt;bar foo Why is printf better than echo? How do I keep both the background and foreground in the image in focus at the same time? How do you have both the background and foreground in the image in focus at the same time?  Last week I was attempting a shot where I had the back of a hat in focus and in the distance you could see a mountain. I wanted both in focus, but could either focus on the mountain or the hat. I ended up taking the in-focus shots of both and merging them in Photoshop. While that isn't difficult I would prefer to shoot the shot as accurate as possible. From what I have read aperture is important in the depth of field but what are the techniques for keeping both the background and foreground in focus?  I am using a Nikon D5100 with a 18-55mm f/3.5-5.6 (standard kit lens) and a 55-200mm  f/4.5-5.6.    almost answers my question, but I am a bit confused. Can someone explain this a bit differently? Thanks! As shown in various episodes ("Mirror, Mirror," "Phantasms," etc.), other universes exist, oftentimes containing the same characters, albeit in different situations than in the prime universe. I'm curious, though, whether individuals that apparently exist outside of the multiverse, such as members of the Q, would not be duplicated elsewhere. It seems reasonable to me, but I'm not sure. How to find the shortest path between opposite vertices of a cube, traveling on its surface? I am stuck with the following problem that says:      Let $A,B$ be the ends of the longest diagonal of the unit cube . The length of    the shortest path from $A$ to $B$ along the surface is :     $\sqrt{3}\,\,$  2.$\,\,1+\sqrt{2}\,\,$  3.$\,\,\sqrt{5}\,\,$ 4.$\,\,3$    My Try:   So, the length of the longest diagonal $AB=\sqrt{3}$. If I reach from $A$ to $B$ along the surface line $AC+CD+BD$, then it gives $3$ units. But the answer is given to be option 3.   Can someone explain? Thanks in advance for your time. If $f$ is entire and $|f|\geq 1$, then show $f$ is constant. How do I determine the size of my array in C?   That is, the number of elements the array can hold? Is Java "pass-by-reference" or "pass-by-value"? I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation? A few months ago I set full disk encryption during installation of Ubuntu 17.10. Now, I've decided to upgrade. The upgrade ran to the end without any problems. However, after reboot I am not able to log into my encrypted disk.  Where can be the problem? I am 100% sure I press the "right keys" on the keyboard, but technically I don't know what I am writing because of "*" characters and maybe after upgrade my keyboard layout changed. I use some characters which might be somewhere else on the keyboard. What language is default after upgrade?   By the way, I've already tried Caps-lock, but still no luck.  Help will be really appreciated. I am not a fan of installing my system and all backups over and over again. A method for the OP to accept comments? Question: What if the author of a question can accept a comment?   The problem:  Time and time again, answers are posted as a comment.  Usually, the person who commented has the best of intention (e.g. it was a trivial answer [to the answerer], and they weren't sure if the OP would immediately edit the question after the comment).  But this leaves the frustrating situation of an unanswered question with a perfectly good answer.  This problem accumulates over the years.     Candidate solution:  The OP can just "accept" the comment, after which a duplicate of the comment is made an accepted CW answer, with a preface indicating that it was originally a comment, e.g. This answer was originally a comment posted by [[blah]] that has been accepted by the author of the question.   Comments on this scheme:   The author of the comment has indicated they're not interested in gaining/losing reputation through their comment (thus CW answer). The original comment is still there. If desirable, the "author" of the accepted question could be a "bot", so the answer is not attributed to a genuine account.  (I suppose it would already be technically possible for Joe Blow to create a script for a bot that creates an answer from a comment in the proposed way.)     A similar question was asked before  (over 3 years ago), and in numerous other questions which have been deemed "duplicates" (,  and ; see also ), so there seems to be demand for such a feature.  The answers to these questions seem (to me, at least) quite weak:   "ask the commenter to add the comment as an answer"   The OP already did this by asking the question in the first place.  And what if the author of the comment doesn't respond (or takes a long time to respond)?  This also adds more chit-chat irrelevant to the question.   "add an answer of your own, referring to the comment, and accept it."   A hacky workaround.  How could this possibly be better than accepting a comment?  (Yet, this is the most up-voted response.)  Moreover, this adds to the user's list of "answers" (thus making the user's page harder to look through).   "When i leave a comment, i do so because i want to leave a comment."   Great; now what about everyone else?  In the immortal words of the FAQ: "Other people can edit my posts?!"  And it's not even an edit, it's copying the post from one box to another (a more hacky version of which is regarded as the "accepted" method). I am a UI designer and developer and have been designing websites for aound 10 years. I want to get into user experience design. I know how to do a design, but I am lagging the terminologies and the technical things in the user experience field.   So how do I go about getting the skills and mindset necessary for being a User Experience Designer?