How to play a simple audio file (Java)?
How can I play sound in Java?
"All of these things are not beneficial and (they) do not help her" Should I mention the pronoun again in this case?     "All of these things are not beneficial and (they?) do not   help her"   I know that there is already answer about the question "if it's needed to repeat on the pronoun in case that they are in the same position of grammar tense". But in this case it's different because the question deals with case of two different  tenses (in bold). Get OS-level system information I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows.  Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just what the Java app itself is consuming?  Preferrably I'd like to get this information without using JNI. Why does Google not consider dot in usernames of Gmail addresses? How to search by key=>value in a multidimensional array in PHP How to make a multiboot CD that will start a user-chosen ISO file I have many CD ISOs downloaded from the Internet. They are each about 100 MB in size and consist of repair/diagnostic programs and other tools. Some of them are Linux-based; others are based on DOS clones, like FreeDOS. I want to put all of the ISOs onto one bootable DVD, so that when I use the DVD, I will get a menu prompting me to select the ISO I want to boot. How can I do this? I've seen some rescue CDs that are combinations of other people's ISOs, but I have no idea how they were made.  Regarding bounty: I, a different person than the OP, have placed a bounty on this question for a solution that meets ALL of these criteria:  Is for DVDs (not flash drives!!!) Is free Works with any ISO file, regardless of original OS In school, we just started learning about trigonometry, and I was wondering: is there a way to find the sine, cosine, tangent, cosecant, secant, and cotangent of a single angle without using a calculator?  Sometimes I don't feel right when I can't do things out myself and let a machine do it when I can't.  Or, if you could redirect me to a place that explains how to do it, please do so.  My dad said there isn't, but I just had to make sure.  Thanks. Can Recovery Mode install OS X onto a blank SSD? I want to install a new Solid State Drive (SSD) into the Mac. Can I just build in the SSD, start the MacBook in Recovery Mode and install OS X from there on?  After reading a lot on the internet I still have some doubts…  My HDD crashed, I can't repair it using disk utility or the fsck methods as mentioned on the internet.  According to  it should be possible.  I know how to replace the HDD with the SSD. I would go for the Samsung 850 EVO SSD - 500GB. My Mac is a MacBook Pro Mid 2012, model A1278. Does gravity affects on electrons in a noticeable way? Is there a way to force a free electron move in a low speed in order to observe it actually hitting 'on the floor'? Why does cold metal seem colder than cold air? (I apologize for this elementary question. I don't know much about physics.)  Let's say that I put a metal pot in the refrigerator for several hours.  At this point, I guess, the pot and the air (in the refrigerator) have the same temperature.  Now, I touch this pot. It feels very cold. But when I "touch" the air (that is inside the fridge) it doesn't "feel" as cold. I don't feel the same "ouch!" that I feel when I touch the pot.  Why is that? Why does the metal seem colder than air although they both have the same temperature?  (I know that gas has less particles in it in one unit of volume compared to solids and liquids, but since "temperature" means "the average kinetic energy", these fewer air particles are supposed to hit my hand in a velocity that's going to compensate for their lower number, aren't they?)  A related question, for clarification:  If I use a thermometer to measure the temperature of the pot &amp; air (let's assume it's a thermometer that has a probe that can touch objects), will it show the same reading for both? If so, what makes the thermometer different than my hand? I mean, my hand is sort of a thermometer, so why would it fail whereas a non-human thermometer would work? Why does 1366x768 resolution exist? I know that there's  but it doesn't have any real answers despite having been viewed 12,400 times, and the fact that it's been closed. With that in mind...  Why in the world is 1366x768 resolution a real thing? It has an aspect ratio of 683:384, which is the weirdest thing I've ever heard of while living in a 16:9 world.   All screens and resolutions I've been familiar with have been 16:9 aspect ratio. My screen, 1920x1080, is 16:9. The 720p that I'm familiar with is 1280x720, also 16:9. 4K that I'm familiar with, 3840x2160, is also 16:9. Yet 1366x768 is 683:384, a seemingly wild break from the standard.  I know there are plenty of other resolutions all over the place, but 1366x768 seems to dominate most of the mid priced laptop world and also seems unique to the laptop world. Why don't laptops use 1280x720 or something else as a standard? What is the cost of a function call? Compared to    Simple memory access Disk access Memory access on another computer(on the same network) Disk access on another computer(on the same network)   in C++ on windows. Why does a force not do any work if it's perpendicular to the motion? I have a book that says the Moon's orbit is [in this context assumed to be] circular. The Earth does no work on the moon. The gravitational force is perpendicular to the motion. Why is there no work done if support force is perpendicular to the motion? 90s (or earlier) movie with experimental, invisible, teleporting, time-traveling ship PS1='$(pwd)' why this works and why is this different from PS1=$(pwd) Why when I enter this command the prompt changes to my directory?  PS1='$(pwd)'   I am using single quotes, which means no interpolation , a.k.a echo '$(pwd)' ——→ $(pwd)  Furthermore, say that we clarified why this works... why is it functioning differently from PS1=$(pwd) ? (no quotes at all)  By different I mean that if I use the quotes then the prompt will keep changing to my current directory as I navigate through the terminal. But if I don't use quotes, then the prompt will always remain the directory that I was in when I first entered the command PS1=$(pwd)  why? When I open the file in Vim, I see strange ^M characters.  Unfortunately, the world's favorite search engine does not do well with special characters in queries, so I'm asking here:   What is this ^M character? How could it have got there? How do I get rid of it? Limit position rigidbody How can I limit the position of a rigidbody, between two values ​​if I use this code:  public Vector3 dir;  Rigidbody rb;  void Awake() {     rb = GetComponent&lt;Rigidbody&gt;(); }  void FixedUpdate() {     rb.velocity = new Vector3(0f, 0f, 6f);      rb.AddForce(dir * 1f, ForceMode.VelocityChange); }   If I use Vector3.Clamp then the object will shake Is there a Pythonic way to have only one instance of a program running?   The only reasonable solution I've come up with is trying to run it as a server on some port, then second program trying to bind to same port - fails. But it's not really a great idea, maybe there's something more lightweight than this?    (Take into consideration that program is expected to fail sometimes, i.e. segfault - so things like "lock file" won't work) I used a  for Photoshop, and was able to create some boxes with it. These boxes were shaped in the form of Software Boxes, while I require Customized Dimensions Boxes, which currently I'm trying to create with .   This software creates a box with no Reflection, and I disabled shadows in it, cause it doesn't allow transparency while saving to png. It allows custom dimensions, rotation, etc settings, but doesn't save transparency or reflections.  Here's the difference in output from both the above mentioned apps.. I'm trying to get the reflection + shadow in the 3D box Generator to the Protomissume generated image.   My question: How can I create similar Reflection &amp; Shadow in Photoshop?   Images:  3D Box Generator   Protomissume Box Shot   Thanks for any help.  Here are the Box Shot images (Photoshop, Protomissume) :  [  ] I am trying to list all the files from dir1, dir2, dir3 and dir4 which might be anywhere in as a sub directory of my cwd using the find command. I tried the following with no success:  find . -type f -regextype posix-egrep -regex 'dir1/.+|dir2/.+|dir3/.+|dir4/.+'   I tried posix-extended as well. How can I list these files? Photoshop CS6 Resize Rectangle with Rounded Corners This question is about Photoshop CS6. Hopefully the feature was added in this version. Before posting I looked up Google and  and  but didn't find an answer for CS6.  So the question is: Is there a feature within CS6 or a script that allows to resize a vector element with rounded corners without using the Direct Selection Tool (white arrow tool) and not changing the border radius? What would be great would be something like simply using the transform tool or something like a grid resize tool.