How can I read input from a file line by line in java?
How can I read a large text file line by line using Java?
An example of a norm which can't be generated by an inner product I realize that every inner product defined on a vector space can give rise to a norm on that space.  The converse, apparently is not true.  I'd like an example of a norm which no inner product can generate. How to use -exec option in find command I wanna solve some problems in compiz with my brain and hands.  By the way I entered following command to build compiz from source in Ubuntu 12.04  find /opt/compiz-built/share/gconf/schemas -exec gconftool-2 --install-schema-file={};   I referred that command at   And following message is shown.  How to use -exec option in find command, I guess that it's my mistake. How to make a different font and color of text in labels? Interpreting the Kretschmann scalar Does the alarm work when my phone is turned off? Will the alarm still go off if I turn off the phone before?  Example: when I have low battery, I have to go to sleep and wake up at X o'clock, and there is no charger around. Should I turn off the phone?   Note: If it makes any difference my phone is Galaxy S running froyo Cooking steak in frying pan, problem with oil splatter I was using canola oil and put the stove top setting on "high - 9". I read plenty of guides suggesting there will infact be oil splatter, but it was pretty excessive and burning my arm with one drop getting near my eye before I stopped. I turned the heat setting down to "medium - 4", where the oil splatter seemed to drop substantially. Before I try to make steak again I'd like to get some clarification  So my questions are:   Which heat setting am I supposed to use? Is that type of oil splatter normal or should I try using a different oil, and if so, what oil? Should oiling the meat instead of the pan help the problem? Can anybody explain the UNABLE_TO_LOCK_ROW error? When I search for similar questions that I am going to ask, I usually can't find anything through the search box on Stack Overflow. But when I enter my question on the &quot;Ask Question&quot; page, the questions suggested through the &quot;Questions with similar titles&quot; box are usually relevant. Do you experience the same thing? Mobile phones and mobile internet in Italy Buongiorno! Suppose I step down from the plain in Fiumicino. What is the fastest way to get hold of Italian SIM-card with some talking minutes and some Internet? The latter is more important than the former.  So, my requirements:   Good coverage in main cities (Rome, Venice, Milan, Florence) Good for 2 weeks (after that I'm going to leave the country, the SIM is going to lose its value anyway) Good for massive internet usage is in store for maps, orientation, etc. Cheap. :)   Now, I know that there are 3 main communication providers in Italy: Vodafone, Wind and the third one. :) Which one? Which one won't leave me destitute and won't sue me over the border months after for some unknown reasons? What I have to look for? homemade chilli oil I am making chilli oil using light olive oil, crushed chilli, dried garlic, dried fennel seeds and parsley.  I have been making this for years. I am concerned about this Botulinum business. Should I be concerned? And what can i do to avoid this?  Currently, I heat the olive oil before putting it into the mixture, jar it, and normally keep it in the cupboard for months, with no problems with taste.  Another thing I am wondering is, how does one measure the expiry date on homemade chilli oil? Can someone help? Don't you think people need to know what they did wrong exactly so they can fix it and get unbanned from asking questions or posting answers? Identifying which part of a large document is being compiled If I'm floating in space and I turn on a flashlight, will I accelerate? Significant predictors become non-significant in multiple logistic regression Showing $\int_{\mathbb R} \mid F(x)-G(x)\mid dx = \int_0^1 \mid F^{-1}(u)-G^{-1}(u)\mid du$ with $F$, $G$ CDF functions Let's $X$ and $Y$ have CDF functions admitting moment of order $1$. Let's be $F$ cdf of $X$ and $G$ cdf of $Y$.  I want to show that $$\int_{\mathbb R} \mid F(x)-G(x)\mid dx = \int_{0}^{1} \mid F^{-1}(u)-G^{-1}(u)\mid du\,.$$ Should we improve time to first byte or Page Speed Insights score for SEO? Google posted last summer that "page speed" will impact the search result rankings also on mobile devices. But I think there is a little confusion about the term "page speed".  The test tool which Google offers is called "Page Speed Insights". Many people we are talking with, are thinking that the overall score of this tool for a particular site for example Desktop: 46/100 and Mobile: 45/100 is used for the ranking algorithm.  BUT I found a very interesting article in German language which states that only the TTFB (time to first byte) value is used and this should be optimized not all suggestions which "Page Speed Insights", further called PSI offers. Here is the link to the German article:   In short terms it says that a very large site in this case "The New York Times" has a low overall score of Mobile:41 and Desktop:45. As they are used to sell reader memberships they should  offer a great user experience. So, they should optimize their site. But when I call this site it is amazing fast. The overall PSI score does not reflect this behaviour. But when I believe this article the TTFB for this site is perfect. Also when I call it here from Austria it states 0.881sec.  I really like to know on which value we should focus our work for optimization not to fall in the ranking. Because as many of you already said it is not useful to implement all suggestions from the PSI site for one domain.  So, it would be real  if you could clarify things here or post links to official posts from Google. What I found about this, Google always is talking about "page speed" but what exactly is this? Failed to resolve version for org.apache.maven.archetypes Recovering from forgotten lock pattern My son has an impression tablet 10 and has forgot the lock pattern. How can we reset it without knowing the code? Why does copying the same amount of data take longer if spread across many separate files? I noticed that copying 24Mb worth of data from one folder to another took about 30 seconds because (I'm assuming this is the reason) it was over 1,000 separate files. Copying 24Mb shouldn't take so long. Why does the number of files make a different?  I'm running Windows 7 on a MacBook (4GB ram, Intel(R) Core(TM)2 Duo CPU P7450 @ 2.13GHz, 32-bit Operating System)  EDIT: NTFS is the file system used on the drive How to read dash files How can I read a dash file from the terminal other than delimiting it with ./  For example to read a - file we can read it by   cat ./-file_name  Q: Is there an alternative way to achieve the same thing?