How do I use the function truncate?
Limiting floats to two decimal points
Euclidean geometry in non-inertial frame I have found the command to delete files older than 5 days in a folder  find /path/to/files* -mtime +5 -exec rm {} \;   But how do I also do this for subdirectories in that folder? Flip x and y axes in Excel graph This should not be very difficult, but I cannot figure out how to do it.  I have a table similar to this     %low %high  0   0   12  1  13   26  ... 19  90   94 20  95  100   When I graph it, excel defaults to having the first column on the x axis and plotting the second and third column as y values. I want the first column to be on the y axis instead. I assume there is an easy way to do this, but I cannot figure it out. Most of the things I have found from searching have suggested the "Switch Row/Column" button, but that does something else.  Thanks for the help. Include the option to flag posts as spam in the Low Quality queue I guess this is an additional to previous requests like  and .  But I just came across  review item, and was unable to flag it as spam.  edit: Since I posted this, the item has been removed (deleted) here is a screenshot: Change Windows sound volume via the command line Is it possible to change the volume in Windows XP via the command line? How to tell if a  tag failed to load I'm dynamically adding &lt;script&gt; tags to a page's &lt;head&gt;, and I'd like to be able to tell whether the loading failed in some way -- a 404, a script error in the loaded script, whatever.  In Firefox, this works:  var script_tag = document.createElement('script'); script_tag.setAttribute('type', 'text/javascript'); script_tag.setAttribute('src', 'http://fail.org/nonexistant.js'); script_tag.onerror = function() { alert("Loading failed!"); } document.getElementsByTagName('head')[0].appendChild(script_tag);   However, this doesn't work in IE or Safari.  Does anyone know of a way to make this work in browsers other than Firefox?  (I don't think a solution that requires placing special code within the .js files is a good one. It's inelegant and inflexible.) How are Anonymous inner classes used in Java? I want to return two objects from a Java method and was wondering what could be a good way of doing so?  The possible ways I can think of are: return a HashMap (since the two Objects are related) or return an ArrayList of Object objects.  To be more precise, the two objects I want to return are (a) List of objects and (b) comma separated names of the same.  I want to return these two Objects from one method because I dont want to iterate through the list of objects to get the comma separated names (which I can do in the same loop in this method).  Somehow, returning a HashMap does not look a very elegant way of doing so. How can Cooper communicate with his daughter before the time he went to space? In the movie Interstellar it's shown that after Cooper fell into the Black Hole, he communicates with his daughter Murph through some codes as Ghost. My doubt is how can he communicate to his daughter before he goes into space? I didn’t get the logic of that part. Can anyone please make it clear? Scale settings for exporting to STL (for 3d printing) Circular Dependencies? Is there a way to force a line break inside a math mode text?  My example:  \[   \underbrace{....}_\text{Some long text that should be multiline} \]   Trying  \text{Some long text that\\ should be multiline}   Didn't do the trick. So assume $Y$ and $X$ are exponentially distributed with parameters $y_1$, and $x_1$ respecitively.  assume c is a constant.  I am having huge trouble to understand the integration of the following expression.  $P(Y&lt;c/u(X))$  $=\int_{t}^{\infty}f_X(x)\int_{0}^{c/u(x)}f_Y(y)dydx +\int_{0}^{t}f_X(x)\int_{c/u(x)}^{\infty}f_Y(y)dydx$  where t is the cross-point that $u(x)$ change sign    here $c/u(x)$ is given by the plot below, t is the point crossing the zero:   Confusion:   I don't understand the second integration of the second term "$\int_{c/u(x)}^{\infty}f_Y(y)dydx$", this isn't right because Y an X only defined for y>0, and x>0. So it's the first quadrant in this plot. When I look at the definition given from the Mac OS X Dictionary (I have set American English as interface language, and the dictionary used is then the New Oxford American Dictionary), I read:     the /ði/ /ð(ə)/ /ði/ [called the definite article]   adjective   1. denoting one or more people or things already mentioned or assumed to be common knowledge: what's the matter? | call the doctor | the phone rang. Compare with a.   • used to refer to a person, place, or thing that is unique: the Queen | the Mona Lisa | the Nile.   • informal denoting a disease or affliction: I've got the flu.   • (with a unit of time) the present; the current: dish of the day | man of the moment.   • informal used instead of a possessive to refer to someone with whom the speaker or person addressed is associated: I'm meeting the boss | how's the family?   • used with a surname to refer to a family or married couple: the Johnsons were not wealthy.   • used before the surname of the chief of a Scottish or Irish clan: the O'Donoghue.   I have never thought of an article as adjective. Is normally an article defined as adjective? How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work).    I've had the problem for years on different versions of the operating system. It happens in virtual machines and on real metal. The same problem exists with sudo shutdown now, too.  I've lived with it in the past. The difference now is I don't want to just hit the power button because I might lose data. If you have an array of Java objects which have a primitive type (for example Byte, Integer, Char, etc).  Is there a neat way I can convert it into an array of the primitive type?  In particular can this be done without having to create a new array and loop through the contents.  So for example, given  Integer[] array   what is the neatest way to convert this into  int[] intArray   Unfortunately, this is something we have to do quite frequently when interfacing between Hibernate and some third party libraries over which we have no control.  It seems this would be a quite common operation so I would be surprised if there's no shortcut.  Thanks for your help! I'm running Fedora 25 and I need to take a few particular screen captures so I've read that shutter is a great tool for that. Sadly I am unable to use it for some reason. Whenever I try to take a screenshot this is the result: I read this book in Middle School and I can't for the life of me remember the title, but I can remember what it was about for the most part:  Takes place in the future, the government imposes laws that outlaw people from being different in appearance and skill level. For example, if you are fast or strong or tall, they will put weights on you to weigh you down so that you'll be more slower/shorter and more like the average. Another example, if you are pretty the government issues you "ugly glasses" etc.  Basically, it's all about making sure everyone is equal and punishing the extraordinary.  One of the main characters (a man) decides to literally loose himself of his shackles and weights, breaking them to display his power (if I'm remembering correctly).   Any ideas folks? Integral around unit sphere of inner product For arbitrary $n\times n$ matrices M, I am trying to solve the integral  $$\int_{\|v\| = 1} v^T M v.$$  Solving this integral in a few low dimensions (by passing to spherical coordinates) suggests the answer in general to be  $$\frac{A\,\mathrm{tr}(M)}{n}$$ where $A$ is the surface area of the $(n-1)$-dimensional sphere. Is there a nice, coordinate-free approach to proving this formula? Given a dictionary, how can I find out if a given key in that dictionary has already been set to a non-None value?  I.e., I want to do this:  my_dict = {}  if (my_dict[key] != None):   my_dict[key] = 1 else:   my_dict[key] += 1   I.e., I want to increment the value if there's already one there, or set it to 1 otherwise.