I downloaded a simple java app and I want to know which file I need to run to start. There are several classes in the project and I do not know which one is the main one. Thank you.
So far I've been using public void run() {} methods to execute my code in Java. When/why might one want to use main() or init() instead of run()?
How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option. I’m running Ubuntu 14.04. When I run:   sudo add-apt-repository ppa:ubuntu-wine/ppa   I get the following error:  sudo: add-apt-repository: command not found   I tried to run  sudo apt-get install software-properties-common   but it shows:  software-properties-common is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. I'm running Apache2 in a docker container, and want to write nothing to the disk, writing logs to stdout and stderr. I've seen a few different ways to do this (,  ) but these seem like hacks. Is there no way to do this by default?   To be clear, I do not want to tail the log, since that will result in things being written to the disk in the container. What are those characteristics by which every sound can be identified uniquely? Cartoon about a group of teenagers whose souls travel to multiple worlds with monsters I remember very little but enough... I know that there were 3 worlds, a real one, a mid-world kind of with a teleporter, and the world with all the creatures. The first episode was in the desert and there was a good monster that saved the main guys from a bad one. Before he saved them he said every end is a beginning and every beginning is an end.   Please help me; I've tried everything. I saw it on , I think it was not Japanese. I live in Croatia, so I saw it there. It was aimed at kids, but not younger kids. The main characters were human, around 15 years old. The teleporter was in the middle of a big structure. It was a 6 piece tp, so every circle was one, and it was shaped like a star. There were robots working there; they carried food and other things.  I remember that all the creatures thought that the humans are evil, all but the one, the "lord" of all of them. And yes, the main character got to the world by some sort of a device that he found and it belonged to another kid who lost it and they were able to transform in the creatures from the world by it. When they are in the "other world", their body stays in the real world and acts normally but their soul gets transported to the mid-world Why is Sauron called "the Necromancer"? During the time period of The Hobbit, a character is mentioned called the Necromancer.  Radagast even (in the movie) specifically states that the Necromancer can "summon the spirits of the dead."  (It's been a while since I read the book so I don't know if this exact phrasing is used there, but given the name it seems reasonable.) This character is later revealed to be Sauron.  Since when can Sauron summon the spirits of the dead?  He can extend life ad infinitum, like Gollum's, for example, and he can twist people into half-alive monsters, like the Ringwraiths, and he himself seems impossible to kill so long as the One Ring remains, but I can't recall ever actually seeing him "summon" something that was once fully dead.  In fact, the only character I remember doing that was actually Aragorn, though he merely commanded them and didn't raise them himself.  Is this just an unfounded rumor about the power in Dol Guldur, some hushed-whisper nightmare that isn't actually an accurate description, or is there a reason he is called the Necromancer?  It seems like if Sauron could actually resurrect the dead, what little chance Middle Earth had of defeating his hordes would be long, long gone... I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is? In the 3rd and 4th editions of D&amp;D, there were explicit rules for determining if a character knew anything about a monster before them.  In 3rd edition, for example, use of the  skill with a general DC of 10 + the monster's HD allowed for determining one fact, plus one fact per 5 points over the check.  Looking at the Intelligence section of the 5e PHB, I don't see any similar notation.  Does 5e provide any guidance as to when a player could use their out-of-game knowledge about a monster, or when the player might be told things their character would probably know in-game? What is the radius of convergence of $\sum z^{n!}$? How to find the radius of convergence of $\sum z^{n!}$?   I'm used to applying the ratio test to power series of the form $\sum a_{n}z^{n}$, but for a different power of $z$, I am a bit stumped. What about $\sum z^{2n+a}$ for another example? Where $a\in \mathbb{R}$. Is there a way to disable access to certain Settings components? How to rank a million images with a crowdsourced sort I'd like to rank a collection of landscape images by making a game whereby site visitors can rate them, in order to find out which images people find the  most appealing.  What would be a good method of doing that?   Hot-or-Not style? I.e. show a single image, ask the user to rank it from 1-10. As I see it, this allows me to average the scores, and I would just need to ensure that I get an even distribution of votes across all the images. Fairly simple to implement. Pick A-or-B? I.e. show two images, ask user to pick the better one. This is appealing as there is no numerical ranking, it's just a comparison. But how would I implement it? My first thought was to do it as a quicksort, with the comparison operations being provided by humans, and once completed, simply repeat the sort ad-infinitum.   How would you do it?  If you need numbers, I'm talking about one million images, on a site with 20,000 daily visits. I'd imagine a small proportion might play the game, for the sake of argument, lets say I can generate 2,000 human sort operations a day! It's a non-profit website, and the terminally curious will find it through my profile :) How long can I store a food in the pantry, refrigerator, or freezer? How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed. Cauchy Problem for inviscid Burgers' equation Consider the Cauchy Problem of finding $u(x,t)$ such that    $$\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}=0,x\in\mathbb{R},t&gt;0$$ $$u(x,0) = u_0(x), x\in\mathbb{R}$$ Which choices of the following functions for   $u_{0}$ yield a $C^{1}$ solution $u(x,t)$ for all   $x\in\mathbb{R},t&gt;0$         $u_{0}(x)=\frac{1}{1+x^{2}}$   $u_{0}(x)=x$   $u_{0}(x)=1+x^{2}$   $u_{0}(x)=1+2x$.      If I use the existence and uniqueness theorem for Cauchy problem i get the corresponding determinant is non zero so all are true according to me. But in answer key only option 2nd and 4th is given. Please help me to solve the problem. Thanks a lot. Using oscilloscope safely with AC mains I know there is quite few discussions already on this topic, but since English isn't my first language, I though it better to get some more information about this.  I have used oscilloscopes to troubleshoot electronics problems and measure AC engine current spikes at startup, but I have no experience using them to measure high voltage levels and my experience is with old analog scopes.  So now I have this new DSO and the input rating is 400V peak to peak AC, so it can handle about 140V AC RMS? Not that I'm going to input that much there.  Since I live in Europe the mains here are 230 V @ 50 Hz I can't measure them directly.  If I set the attenuation from the scope and probe to 10X, the voltage is 23 RMS and it is safe to measure? And yes the probes are rated for 1kV.  If that is true, it's also safe to measure voltage between two main lines (400V RMS), since the peak-to-peak would be about 112 volts?  SAFETY: When I am measuring AC, I will be using the scope from its internal battery or with a isolating transformer (1:1) so that it is floating, meaning that there is no connection to earth ground. Are there any other safety issues I have not realized? Inequality with exponents $x^x+y^y \ge x^y +y^x$ Let $x,y$ be positive numbers. Prove that $x^x+y^y \ge x^y +y^x$.   This question appeared in Summer 1991 Russian Olympiad team test. Apparently, I tried to come up with different approach such as Jensen, Karamata's inequality and nothing works so far. I just need a discussion here. Hints are not necessary. You are a pie maker and you are holding a fair to display your pies. You have 1000 pies. You have 10 workers to help you. The fair is in two hours. Unfortunately you discover that a rival pie maker has poisoned one of your pies with a form of norovirus that makes people violently ill one and a half hours after even consuming a tiny bit of it. You know if any single person who visits your fair gets ill, your business will collapse but you need all the non poisoned pies for the fair. You can take small samples from the pies without spoiling them and your workers are prepared to do anything to help you. How do you find the poisoned pie? jQuery ui tabs Across the Stack Exchange network you may leave comments on a question or answer.  How do comments work? What are comments for, and when shouldn't I comment? Who can post comments? Who can edit comments? How can I format and link in comments? My comment doesn't contain some of the text I typed in it; why? My comment appears to be long enough, but I can't post it because it's too short; why? Who can delete comments? When should comments be deleted? Why can't I comment on specific posts even if I have enough reputation to comment? When can comments be undeleted? What are automatic comments? How can I link to comments? Anything else I should know about comments?  Also see the FAQ articles on  and . Suppose you had a question, and you really want a good answer that would solve your problem, but noticed it was already asked by someone else. However, no one has posted any answers. The question is technically considered "unanswered", but a lot of users who would otherwise bother to give a correct answer probably skip the question completely for some reason.  What should I do in this case?  One idea is to ask a new, completely identical question, in the hope users will notice the new question and post an answer there. But would that go against SE policy?     Note: This is adapted from , but that doesn't cover the case where the original question is unanswered. Also, it is not a duplicate of , as that question asks about getting attention for one's own questions, while this one and the one linked above ask about getting an answer if someone else has already posted the same thing. Let $p, q \in \mathbb R$ be positive reals for which $p + q = 1$. How to prove that for any two natural numbers $n, m$ the following inequality is true?  $(1 - p^n)^m + (1 - q^m)^n \ge 1$  I don't have a big knowledge about solving inequalities, so I tried to use cauchy-schwarz inequality, binomial theorem and some other baisc techniques, but it lead me nowhere. I've been thinking about it for a long time and now I'm completly stuck.