Why is there sound when things collide? My is there sound in this world whenever two (or more) things collide with each other?  Examples   When two cars collide When something with enough mass falls from a height When small drops of water fall into the any water container   There are so many things associated with a collision; why is Sound one of them?  This question is related to Earth’s atmosphere only, not vacuum.  This question is for sound related to collisions only. No vibrations.
Why and how is sound produced when two objects hit each other? When two objects collide and undergo a partially inelastic collision (so every one we experience in every-day life), they rebound to a certain degree, but kinetic energy is not conserved. Thus, the energy of motion must be converted to another type of energy. Thus, when two object collide, the most common forms of energy that kinetic energy is converted to are sound energy and thermal energy.   Some collisions are louder than others just because they cause a bigger local variation of pressure (which then propagates through air until finally gets heard). So, why some objects, even if the velocity before and after the collision seems to be the same, are louder than others? I mean, how do the different material properties enter in the phenomenon?  How and why, by means of solid and fluid mechanics or with an heuristical microscopical reasoning, can this process be explained?
How to truncate all logfiles? can anybody give me a solution to truncate all logfile in /var/log/ directory?  and a question just for knowledge, is it a good idea or not?  #!/bin/bash LOGDIR="/var/log" for logfile in $(ls $LOGDIR/*log) do   truncate -s 0 $logfile done I am currently trying to establish a clear picture of pure/mixed/entangled/separable/superposed states. In the following I will always assume a basis of $|1\rangle$ and $|0\rangle$ for my quantum systems. This is what I have so far:   superposed: A superposition of two states which a system $A$ can occupy, so $\frac{1}{\sqrt{2}}(|0\rangle_A+|1\rangle_A)$ seperable: $|1\rangle_A|0\rangle_B$ A state is called separable, if its an element of the (tensor)product basis of system $A$ and $B$ (for all possible choices of bases) entangled: $\frac{1}{\sqrt{2}}(|0\rangle_A|1\rangle_B+|1\rangle_A|0\rangle_B)$ is not a state within the product basis (again for all possible bases). mixed state: Is a statistical mixture, so for instance $|1\rangle$ with probability $1/2$ and $|0\rangle$ with probability $1/2$ pure state: Not a mixed state, no statistical mixture   I hope that the above examples and classifications are correct. If not it would be great if you could correct me. Or add further cases, if this list is incomplete.   On wikipedia I read about      Another way to say this is that while the von Neumann entropy of the whole state is zero (as it is for any pure state), the entropy of the subsystems is greater than zero.   which is perfectly fine. However I also read on wikipedia a criterion for :     Another, equivalent, criterion is that the von Neumann entropy is 0 for a pure state, and strictly positive for a mixed state.   So does this imply that if I look at the subsystems of an entangled state, that they are in a mixed state? Sounds strange... What would be the statistical mixture in that case?  Moreover I also wanted to ask, whether you had further illustrative examples for the different states I tried to describe above. Or any dangerous cases, where one might think a state of one kind to be the other? I've sectioned of this area in the sea near my base, and I need to get rid of all the water from it.  From what I've tried the only way I can see to clear it is fully cover one layer, delete the blocks, then go down to the next layer. Is that the only way I can clear the area or is there a better approach?  Ideally I'd like a survival method (if there is a better one), but any commands what could be used I'd like to hear just so I can learn more commands :) What’s the correct URL for placing a call on an iPhone? Pass shell variable as a /pattern/ to awk Having the following in one of my shell functions:  function _process () {   awk -v l="$line" '   BEGIN {p=0}   /'"$1"'/ {p=1}   END{ if(p) print l &gt;&gt; "outfile.txt" }   ' }   , so when called as _process $arg, $arg gets passed as $1, and used as a search pattern. It works this way, because shell expands $1 in place of awk pattern! Also l can be used inside awk program, being declared with -v l="$line". All fine.  Is it possible in same manner give pattern to search as a variable?  Following will not work,  awk -v l="$line" -v search="$pattern" '   BEGIN {p=0}   /search/ {p=1}   END{ if(p) print l &gt;&gt; "outfile.txt" }   '   ,as awk will not interpret /search/ as a variable, but instead literally. I have a file containing two columns and 10 million rows. The first column contains many repeated values, but there is a distinct value in column 2. I want to remove the repeated rows and want to keep only one using awk. Note: the file is sorted with values in column 1. For example:    1.123 -4.0 2.234 -3.5 2.234 -3.1 2.234 -2.0 4.432 0.0 5.123 +0.2 8.654 +0.5 8.654 +0.8 8.654 +0.9 . . . .   Expected output  1.123 -4.0 2.234 -3.5 4.432 0.0 5.123 +0.2 8.654 +0.5 . . . . In Robert Dixon's Mathographics, a regular pentagon is constructed with straightedge and compass only.  It is the pentagon $ABCDE$ pictured below.   I am having trouble seeing why the central angles are all $72^\circ$, though. Can anyone provide the proof?  Also, does anyone know who this construction is due to? I haven't seen it anywhere, other than in Dixon's book; is it Dixon's result?     The result appears much more impressive without all the labels (which are slightly misplaced, please excuse this); however, I provided those so that answering would be easier. Also, it makes it easy to describe the steps in the construction:  1) Draw a circle (the red one)  with center $h$.  2) Draw the perpendicular lines $\ell_1$ and $\ell_2$ through $h$. Locate the points of intersection $f$, $B$, and $g$ with the red circle.  3) Bisect the line segment $gh$. Denote the center by $a$.  4) Draw the green circle with center $a$ and radius $ah$.  5) Draw the other green circle (as in (3) and 4)).  6) Draw the line segment through $f$ and $a$.  7) Locate the points of intersection $b$ and $c$ of the line segment with the circle constructed in step 4).  8) Draw the blue arcs (both have center at $f$ and the radii are $fb$ and $fc$).  9) Locate the points of intersection $A$, $C$, $D$, and $E$.   I actually have the solution to the first question, and will post it unless a more elegant explanation is provided (which is probably likely).  However, I find this construction particularly   beautiful, and would like to know who it is attributed to (Dixon doesn't say, explicitly). Unable to parse query string for function Query, when using IMPORTRANGE This came up in proving non-regularity of a certain language (powers of 2 over the ternary alphabet). Any clue to the above equation could help me move forward.  Edit: Of course, $x = 1, y = 1$ is a solution. I am looking for non-trivial solutions. Why can't I transform faces, edges, or vertices without transforming the whole object? Android app "Unknown error" when uploading photo Spent a half hour on this. Android 5.1.1 latest version SE app (Play Store won't let me update so latest).   Tried to upload photo into an answer. "Something went wrong".  Did tricks to reduce photo size to 275k -- same.    45k rep on the stack.  Here is the photo..... oh wait.  How do I solve? I'm trying to remember a film I saw years ago (1980's?).  The only part I clearly remember is a man and girl being bricked up alive (in a tower?) and escaping by turning his (magically large) coat or cloak into a rudimentary hang glider.  The film had a medieval sword/sorcery setting. My colleague is using an application that consumes a lot of memory which makes the system too slow. Is it possible to share memory with other PCs over the Internet?   The system has 8 GB of RAM, and the application consumes more than 6 GB. The output from uname:  root@debian:~ # uname -a Linux 5asnb 2.6.32-5-amd64 #1 SMP Mon Jun 13 05:49:32 UTC 2011 x86_64 GNU/Linux   However the /sbin/init executable shows up as 32-bit:  root@debian:~ # file /sbin/init /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped   Other aspects of the system seem to contradict things as well:  root@debian:~ # echo $HOSTTYPE i486  root@debian:~ # getconf LONG_BIT 32 I always thought of current as the time derivative of charge, $\frac{dq}{dt}$. However, I found out recently that it is the ampere that is the base unit and not the coulomb. Why is this? It seems to me that charge can exist without current, but current cannot exist without charge. So the logical choice for a base unit would be the coulomb. Right? Add captcha threshold information to privileges page Related:   Related:   The captcha often gets to me when I'm editing a lot of posts in rapid succession. I was wondering if at some point you can get enough reputation to not have it interrupt you as much, so I looked on the SO . However, I didn't see anything there about captcha privileges. Then I dug up the related threads above, which indicate that indeed there are reputation levels at which you can reduce captcha interruption. Why not include this information in the list of benefits on the ? Session lost when switching from HTTP to HTTPS in PHP When sending the user to a checkout page, they are switched from http://sitename.com to https://sitename.com.  As a result, $_SESSION variables are lost.  The site has a valid SSL certificate which may or may not be of some use. What inspired Tauriel's story arc? I know Tauriel is a Jackson created character, but I wondered if anywhere in the legendarium there was fodder for the story arc between her and Kili.  I do not have access to all my books for the time being and recall stories of love between men and elves in the Silmarillion and Appendices but don't remember any such stories between elves and dwarves and wondered if there was any basis of inspiration for this aspect of their relationship within Tolkien's works.   This movie, of course, departs even further from the original than those made before it, but as a story unto itself, I can still appreciate the ride, so if there is no Tolkien basis, what inspired Jackson, Boyens, and Walsh to create this particular arc?  Is there interview info or anything? Clicking leave closed shows the reopen pop-up When we find the electric field between the plates of a parallel plate capacitor we assume that the electric field from both plates is $${\bf E}=\frac{\sigma}{2\epsilon_0}\hat{n.}$$ The factor of two in the denominator comes from the fact that there is a surface charge density on both sides of the (very thin) plates. This result can be obtained easily for each plate. Therefore when we put them together the net field between the plates is $${\bf E}=\frac{\sigma}{\epsilon_0}\hat{n}$$ and zero everywhere else. Here, $\sigma$ is the surface charge density on a single side of the plate, or $Q/2A$, since half the charge will be on each side.   But in a real capacitor the plates are conducting, and the surface charge density will change on each plate when the other plate is brought closer to it. That is, in the limit that the two plates get brought closer together, all of the charge of each plate must be on a single side. If we let $d$ denote the distance between the plates, then we must have $$\lim_{d \rightarrow 0}{\bf E}=\frac{2\sigma}{\epsilon_0}\hat{n}$$ which disagrees with the above equation. Where is the mistake in this reasoning?  Or more likely, do our textbook authors commonly assume that we are in this limit, and that this is why the conductor behaves like a perfectly thin charged sheet?