FileInputStream file not found exception
Android reading from .txt File created in src folder
What is sudo apt-get -f install? what is the usage of apt-get -f install . when I run sudo apt-get update I got some errors at the end It says try apt-get -f install. What is this command?  the last part of my error is :   . . .   going to be installed   E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). When is using the past perfect tense not necessary? Is it more natural to speak in simple past or past perfect when explaining past events to a friend? It seems like Americans use more simple past in everyday life than past perfect. I found this example online:     I had almost completed my essay when my computer suddenly crashed and I noticed that I had forgotten to save the document.   Is it wrong to say the following instead?     I was almost done with my essay when my computer suddenly crashed and I noticed that I forgot to save the document.   Maybe it's just my friends, but I rarely hear them speak in past perfect, so I'm really torn about using past perfect when it isn't necessary. Use the new helpcenter for the question/answer ban message I have a column in an Excel spreadsheet with several hundred entries, and some of these entries are duplicated.  I would like to remove all duplicate entries from the column so that each entry remaining is unique.   Is there a way to accomplish this automatically? Connection pooling in PHP Is it possible to cache database connections when using PHP like you would in a J2EE container?  If so, how? How should I approach obvious proofs like these    I have been trying but couldn't find an elegant way to work these. Any help is highly appreciated ! Especially looking for a nice proof/hint for first problem I'd really like your help proving:  $(A\rightarrow B),(A\rightarrow C)\rightarrow B,  \mapsto_{HPC} B $  Where $HPC$ is the Hilbert's system proof which contains the following relevant axioms:   $A\rightarrow(B \rightarrow A)$ $(A\rightarrow(B\rightarrow C)) \to ((A\rightarrow B)\rightarrow(A\rightarrow C))$ $(A\rightarrow B)\rightarrow ((A\rightarrow\bar{B})\rightarrow \bar{A})$ $\bar{\bar{A}} \rightarrow A$   In addition tried to use these following lemmas: $\bar{A} \rightarrow (A \rightarrow C) $ and $(A\rightarrow B)\rightarrow (\bar{B} \rightarrow \bar{A})$.  Any suggestions? This is question 2.9 #9 from Topics in Algebra by Herstein:     If $o(G)$ is $pq$ where $p$ and $q$ are distinct prime numbers and if $G$ has a normal subgroup of order $p$ and a normal subgroup of order $q$, prove that $G$ is cyclic.   Let $N$ denote the normal subgroup of order $p$ and $M$ denote the normal subgroup of order $q$. Here are a couple things I noted while exploring the problem:   $N$ and $M$ are cyclic, since they have prime order. $G = NM$ [1].   Any hints where to look next?    [1] Since $N,M$ are normal, $NM \le G$. Then $o(NM) \mid o(G)$, so $o(NM)$ is either $1$, $p$, $q$, or $pq$. The first three don't work because they force one of $N$ or $M$ to be $(e)$, so we have $o(NM) = pq$. Therefore, $NM = G$. Proof of the following inequality $ \frac{x - y}{\log x - \log y} > \sqrt{xy} $, $x>y$. I have seen the following inequality  $$ \frac{x - y}{\log x - \log y} &gt; \sqrt{xy} \ , \quad \forall x&gt;y $$ be stated as a near "obvious" fact in another , on the site.  The inequality is very cute, but so far I have not been able to prove it.  It reminds me of the Lipschitz inequality, but has some minor differences. Also Jensens inequality comes to mind. Is there something obvious I am missing, or is this ineqality not as easy to prove as it looks? What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address?  My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web. Prove that if $n$ is a natural number and $(3n+1)$ &amp; $(4n+1)$ are both perfect squares, then $56$ will divide $n$.   Clearly we have to show that $7$ and $8$ both will divide $n$.  I considered first $3n+1=a^2$ and $4n+1=b^2$. $4n+1$ is a odd perfect square.  - so we have $4n+1\equiv 1\pmod{8}$; from this $2|n$ so $3n+1$ is a odd perfect square.  - so $3n+1\equiv 1\pmod{8}$ so $8|n$ but I can't show $7|n$. How do I show this?  Thanks for the help. Is any particular punctuation necessary when a quotation is the subject of a sentence? For example, in the sentence below, should there be a comma after export? Or anything else?     "Laughter is America's most important export" is a well-known quote of Walt Disney's. I normally use the following idiom to check if a String can be converted to an integer.  public boolean isInteger( String input ) {     try {         Integer.parseInt( input );         return true;     }     catch( Exception e ) {         return false;     } }   Is it just me, or does this seem a bit hackish?  What's a better way?    See my answer (with benchmarks, based on the  by ) to see why I've reversed my position and accepted  to this problem.  I think this original code will be used by most people because it's quicker to implement, and more maintainable, but it's orders of magnitude slower when non-integer data is provided. Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at . Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?  NOTE:  The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see: If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information: Prediction interval for binomial random variable What is the formula (approximate or exact) for a prediction interval for a Binomial random variable?  Assume $Y \sim \mathsf{Binom}(n, p)$, and we observe $y$ (drawn from $Y$). The $n$ is known.  Our goal is to obtain a 95% prediction interval for a new draw from $Y$.   The point estimate is $n\hat{p}$, where $\hat{p}=\frac{y}{n}$. A confidence interval for $\hat{p}$ is straightforward, but I cannot find a formula for a prediction interval for $Y$. If we knew $p$ (rather than $\hat{p}$), then a 95% prediction interval just involves finding the quantiles of a binomial. Is there something obvious I'm overlooking? Best practices for storing UI settings? we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g.   Expander States Menu orders Sizing Properties etc...   i don't like the idea of having dozens of stored values using the delivered SettingsProvider (i.e. App.config file) although it can be used to store it in an embedded database using a custom SettingsProvider. being able to use some kind of databinding is also a concern. Has anyone had the same problems?   What did you do to store lots of ui user settings? I am asked to solve $$u_x+u_y=1$$ If is was homogeneous i.e., $u_x+u_y$ the answer would be $u(x,y)=f(y-x)$ where $f$ is an arbitrary function. I have found the following set of solutions: $$u(x,y)=\lambda x +(1-\lambda)y$$ where $\lambda$ is an arbitrary constant(real or imaginary). I just have no idea what method other then trial and error would have lead me here. Any ideas? Thanks! I'm a teacher and will ask my students to either bring their laptops with Ubuntu installed with an specific list of packages preinstalled or bring a USB Drive or External Hard Drive with Ubuntu and the packages preinstalled.  For those who are going to bring the USB are two posibilities:   Install with the Ubuntu's "Startup disk creator" program, and telling it to reserve some space for persistence. Boot with a LiveCD and Install Ubuntu in the USB drive.   Then, in either case, boot with that media and install the packages.  So, for my purpose or any other purpose:   What is the best choice and why? Do we have another option? full explanation please. I am trying to find a book (young adult) where the devil is the protaganist, and other gods appear as characters I believe it was written by a teenager, and might have a sequel.   It has been many years since I read it, but I believe it had the devil acting like a regular human. He wasn't evil. I think it incorporated a lot of (gods/characters) norse, roman, Christian, and pagan.