How can I boot into the recovery from terminal? I'm using LG p970/CM10/cwm5
Does anyone know if there's a way to get an Android phone to reboot into recovery mode, from the Android command line?  Note:  I do NOT have adb access.  I do NOT know the magic power-on sequence to do it from the boot loader. I've tried the common things and nothing works.  I DO have root. (And can enter commands directly on the device using a terminal emulator.)  I know it's possible, somehow, because applications like ROM Manager do it. But how?
I want the entries in the TOC for the indices to align with the Chapter entries. I can do this with \addcontents. \printindex also puts an entry in the TOC but it is aligned with the section entries.   So I want to:    change how printindex makes its entry into the TOC or  to eliminate printindex entry.   MWE:  \documentclass{book} \usepackage{multind}        % create the indices \makeindex{names}            \makeindex{subject} \newcommand{\Ndx}[1] { \index{names}{#1} }     % define the type of entry \newcommand{\Sdx}[1] { \index{subject}{#1} }   % to the indices \usepackage[headings]{fullpage}         % 8-1/2, 11 page with 1" margins \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \fancyhead{} \fancyfoot{} \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} \fancyhead[LE,RO]{\rightmark} \fancyhead[RE,LO]{\thepage} \tableofcontents        % put table of contents here  \chapter{\bf Logic, Plausibility, and Probability} \label{Ch:Logic} \section{Logical Arguments and Reasoning } It is obvious that logical arguments are essential to the judicial system. The logic must be able to treat syllogisms\Sdx{syllogism} that range from deductive\Sdx{syllogism!deductive} to abductive\Sdx{syllogism!abductive}, that is from strong to weak syllogisms \Sdx{syllogism!weak}\Sdx{syllogism!strong} as illustrated in the table taken from Author \Ndx{Author} \Ndx{Cohen} \Sdx{Cohen on probability} \clearpage \addcontentsline{toc}{chapter}{Subject Index} \printindex{subject}{Subject Index} \addcontentsline{toc}{chapter}{Name Index} \printindex{names}{Name Index} \end{document} Is there a package that automatically inserts the ToC level of the reference I inserted?  Section 1.1 \label{a} Subsection 1.1.1 \label{b} Subsection 1.1.2  \label{c}   So that the text:  Blah \superref{a} and \superref{b} and \superref{c}   becomes:  Blah Section 1.1 and Subsection 1.1.1 and Subsection 1.1.2   So that it automatically adapts if I change the level of a label? If there is one noble left in line and you play "fled to England" to discard it (thus, ending the day) do you collect a noble from the new day? I have a polygon layer in QGIS, and would like to represent the polygons like in the below image:    I have tried two different approaches, none of which are satisfactory.    Using a line pattern fill, the entire polygon is filled with the line pattern. I need a blank area in the middle which is not filled in.    Using a marker line fill, I am able to keep a blank area in the middle, but the markers are rotated to align with the edges of the polygon. I need the markers to preserve the same rotation along all edges, like in the example above.  Any ideas? What is the iPod touch's screen sensitive to? Root Android virtual device with Android 7.1.1 Someone who just thinks they know what they're talking about What is a word or phrase that means a speaker (or writer) is talking about something they know very little about, but they think they know more than they do?  An example: If you read diet message boards, you get dozens of people saying ‘Eat 6 small meals a day,’ or ‘Eat 3 big meals, but don’t snack,’  or ‘Eat more/less protein/carbs/fat.’ Each person is sure they are knowlegable enough to give good advice, but real experts(dieticians or researchers, for example) are rare.  I want a word to describe this attitude.  Bullshit is close, but someone bullshitting usually knows they aren’t an expert, they just want to convince the listener they are.  Also, I’d prefer something politer than bullshit. HTTP and HTTPS impacts on SEO I have a website http://www.domain_1.com/ hosted in a shared webserver.  I have used SSL for another website https://www.domain_2.com/ on the same server.  Due to some technical limitations (single IP), if you try https://www.domain_1.com, browser will show the same domain_2 website. But this is not a concern for me.  Question: will this scnario impact SEO of domain_1 (non-HTTPS) site? How do you pull first 100 characters of a string in PHP What are the requirements for a (beta) site logo? I stopped dual booting and I don't want to have to choose the OS any more. I want to boot into Ubuntu 12.04 directly without seeing the GRUB menu.  How can I achieve that? Why do the humans become sleepy after meals? Apollonius circle, its radius and center Im trying to run the following code  \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width = 7cm, compat = 1.8} \begin{document} \begin{tikzpicture} \begin{axis}[domain = -2:2, domain y = 0:2*pi] \addplot3[contour gnuplot = {output point meta = rawz, number=10, labels=false}, samples = 41, z filter/.code=\def\pgfmathresult{-1.6}] {exp(-x^2) * sin(deg(y))}; \addplot3[surf, samples = 25] {exp(-x^2) * sin(deg(y))}; \end{axis} \end{tikzpicture} \end{document}   and I'm getting the error  Package pgfplots Error: sorry, plot file{Utitlled_contourmp0.table} could not be opened   through a quick search I found out that contour maps require pgfplots and gnuplot to talk to each other. In theory the way to make them interact is adding  !TEX option = --enable-write18   or   %!TEX option = --enable-escape   at the top of the file. Unfortunately this has not worked for me. Any suggestions? UTF-8 all the way through I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2. What Nikon lens for both macro and portrait? All three lenses are available at a local store near me:   85mm 1.8 at about 400USD  85mm 1.4 at about 1000USD 105mm 2.8 at about 1015 USD   I plan on doing macro and portrait photography and have the ff thoughts so far:   I can save a lot with the 85mm 1.8 and a site claims that AF-wise it is much faster than the 85mm 1.4 at twice the price 105mm has VR but I don't know if that would be of much use with portrait and macro as I usually don't use slow shutter speeds with such subjects 105mm has AF-S which means I can get better insect shots because of the silence( and the 105 mm range) I don't know why I should prefer the 85mm 1.4 over the 105mm, when the 85mm may only have AF speed as an advantage, though I am not so sure if it is faster   so as you can see, I'm leaning towards 105mm f/2.8 or 85mm f/1.8 and less towards the 85mm f/1.4. However, I don't want to finalize the decision as many also claims that the 85mm f/1.4 is so good.  Any professional insights to add in helping me make the decision? Maximum number of files in one ext3 directory while still getting acceptable performance? I have an application writing to an ext3 directory which over time has grown to roughly three million files. Needless to say, reading the file listing of this directory is unbearably slow.  I don't blame ext3. The proper solution would have been to let the application code write to sub-directories such as ./a/b/c/abc.ext rather than using only ./abc.ext.  I'm changing to such a sub-directory structure and my question is simply: roughly how many files should I expect to store in one ext3 directory while still getting acceptable performance? What's your experience?  Or in other words; assuming that I need to store three million files in the structure, how many levels deep should the ./a/b/c/abc.ext structure be?  Obviously this is a question that cannot be answered exactly, but I'm looking for a ball park estimate. This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How is code coverage obtained and calculated? How do I increase my coverage?  Why can't I cover these lines? Why isn't the body of my loop or conditional statement covered? Determining if an arbitrary point lies inside a triangle defined by three points? Is there an algorithm available to determine if a point P lies inside a triangle ABC defined as three points A, B, and C? (The three line segments of the triangle can be determined as well as the centroid if they are needed.)  Grid space is defined as Screen Space, that is, 2D Cartesian with the Y-Axis flipped so "up" is negative y and the origin is the upper left corner. How to create local total counters? I would like to write page numbers like this '7/9' in all minted environments of my document. The first number ('7') is the current page and the second number ('9') is the maximum number of page breaks the source file has been split into.  I was planning to use the package totcount but I realized that it was only considering the last value of the counter at the end of the document and it couldn't manage counters locally to an environment.  Here is a totally stupid example, but it illustrate the problem:  \documentclass{report}  \usepackage{totcount} \newtotcounter{sectnum}  \let\oldsection\section \renewcommand{\section}{%   \setcounter{sectnum}{0}%   \regtotcounter{sectnum}%   \oldsection% }  \let\oldsubsection\subsection \renewcommand{\subsection}{%   \stepcounter{sectnum}%   \oldsubsection% }  \begin{document}  \section*{One}  \subsection*{SectionOne} \thesectnum / \total{sectnum}  \subsection*{SectionTwo} \thesectnum / \total{sectnum}  \subsection*{SectionThree} \thesectnum / \total{sectnum}  \subsection*{SectionFour} \thesectnum / \total{sectnum}   \section*{Two}  \subsection*{SectionOne} \thesectnum / \total{sectnum}  \subsection*{SectionTwo} \thesectnum / \total{sectnum}  \end{document}   Gives:    Where we would have liked to have: '1/4', '2/4', '3/4', '4/4' and '1/2', '2/2'.  So, is there a way to get this kind of feature ?