I installed Ubuntu 12.04 on my old HP Pavilion ze1210 laptop. When I boot to Ubuntu it shows less than half of the screen; the rest is garbled and has a mixture of red and black squares. The top portion that is somewhat visible when the computer boots becomes distorted when I move the cursor (a red square) over it.
I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:
Recently I have opted for broadband connection which is coming directly cat5 cable with RJ45 port to my laptop. They have provided me with IP address, default Gateway, subnet mask, preferred DNS and alternate DNS server information. Also the username and password.  The Modem model is Beetel 450TC1 which is actually an ADSL+2 Router. The modem has 4 lan port and one RJ11 port (for internet).   Can I use this modem as a wireless hotspot without connecting the RJ45 cable directly to my laptop?  If yes, can anybody help me with that? How can I add a PPA from a previous release? Another form of the question is: will joining two diodes with wires (pn-np) make a transistor-equivalent?  I read that they are not equivalent, but why? How to get full query text from performance_schema.threads? According to : Access to the threads table does not require a mutex  and has minimal impact on server  performance. The other sources have negative performance consequences because they require a mutex.   So yes, I want to use threads table to examine running queries. The trouble is, the PROCESSLIST_INFO column does not contain the full query. It just contains a truncated version of the query. There is a flag viz performance_schema_max_sql_text_length which controls how many bytes are allocated for the SQL query. But it seems to affect the events_statements_history_long table. There is no change in the thread table output. There is also the events_statement_current table. But it is not clear if accessing that table affects performance or not. I saw this question  but it doesn't have a full solution. What is the full solution to the 99 bottles of beer on the wall for Vim adventures?  Context: for the sake of being a good SO member I will give more details but a full solution will answer my question. It seems from reading the other post that my register is incorrect for some reason. I can't get the &lt;NL&gt;. I think that's the issue since pasting won't work... I got this problem from my teacher as a optional challenge. I am open about this being a given problem, however it is not homework. The problem is stated as follows. Assume we have an infinite tetration as follows $$x^{x^{x^{.^{.^.}}}} \, = \, a$$ With a given $a$ find $x$. The next part of the problem was to discuss the convergence radius of a. If a is too big or too small the tetration does not converge. Below is my humble stab at the problem.  My friend said you would have to treat the tetration as a infinite series, and therefore could not perform algebraic manipulations on it before it is know whether it converges or diverges. However my attempt is to first do some algebraic steps, then discuss the convergence radius. I) Initial discussion At the start it is obvious that the tetration converges when $a=1$ (just set $x=1$) Now after some computer hardwork it seems that the tetration fails to converge when a is roughly larger than 3. II) Algebraic manipulation $$ x^{x^{x^{.^{.^.}}}} \, = \, a$$ This is the same as $$ x^a \, = \, a$$ $$ \log_a(x^a) \, = \, \log_a(a)$$ $$ \log_a(x) \, = \, \frac{1}{a}$$ $$ x \, = \, a^{\frac{1}{a}}$$ Now, if we let $a=2$ then $x = \sqrt{2}$. After some more computational work, this seems to be correct, which makes me believe this formula is correct. III) Discsussion about convergence By looking at the derivative of $ \displaystyle \large a^{\frac{1}{a}} $ we see that the maxima occurs when $a=e$, which also seems to correspond to the inital computational work. Now I think, that the minima of $\displaystyle \large a^{1/a}$ is zero by looking at its graph, studying its derivative and the endpoints. So that my &quot;guess&quot; or work shows that it converges when $$ a \in [0 \, , \,  1/e] $$ VI) My questions Can my algebraic manipulations be justified? They seem rather sketchy taking the a`th logarithm and so on . (Although they seem to &quot;magically&quot; give out the right answer) By looking at Wikipedia it seems that the tetration converge when $$ a \in \left[ 1/e \, , \, e \right] $$ This is almost what I have, why is my lower bound wrong? How can  I find the correct lower bound? How do I trim leading/trailing whitespace in a standard way? Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution. What and where are the stack and heap? When is $\phi(n)$ a prime number? I was thinking about this problem today. If $p$ divides $n$, then $p-1$ must divide $\phi(n)$. But $p-1$ is even for all primes greater than $2$, so must $\phi(n) = 2$ - the only even prime? I feel like this argument is shaky and not very rigorous! I have a file with ANSI colors.  test.txt: \e[0;31mExample\e[0m  I would like to display the content of this file in a terminal, like cat does, but I would like to display the colors as well. To show: $(\mathbb{Q},+)$ is not isomorphic to $(\mathbb{R},+)$  Now, the equation $x^{2} =3$ has a solution in $\mathbb{R}$, but not in $\mathbb{Q}$.  Hence they are not isomorphic to each other.  Is that right, or do I need to prove something else?  Thanks. Use of *args and **kwargs Newton's third law of motion states that every action has an equal and opposite reaction. That is the reason we do not sink into the earth, because when our weight exerts a force on the earth it also exerts an equal and opposite force on us.  But when we stand on quicksand or on fluids we can sink in. How is this possible? Does it not exert an equal and opposite force on us? Or are Newton's laws different in the case of fluids and substances of low densities? Do you need to take the Hide action when you are Invisible, make no noise and leave no traces? The Situation: Lets say you are under the effect of Invisibility.  An invisible creature is impossible to see without the aid of magic or a special sense. For the purpose of hiding, the creature is heavily obscured. The creature's location can be detected by any noise it makes or any tracks it leaves.  And you are wearing the Boots of Elvenkind  While you wear these boots, your steps make no sound, regardless of the surface you are moving across. You also have advantage on Dexterity (Stealth) checks that rely on moving silently.  Now your groups ranger or druid casts Pass Without Trace on you.  [...] can’t be tracked except by magical means. A creature that receives this bonus leaves behind no tracks or other traces of its passage.  My Question(s): I know that when you are Invisible and you did not hide, you are still detectable because of the noise and the track you leave behind. But the Boots of Elvenkind and Pass Without Trace take care of that. So:  Are you still required to take the hide action in this situation if you don't want enemies to know your location/presence? If so, why? What gives away your location? If not and you are under the effect of greater Invisibility do you get the benefits of &quot;Unseen Attackers and Targets&quot; for every attack you make when you move between attacks? (You would give away your location, but are not detectable, so completely hidden again when you move) Why does an environment's label have to appear after the caption? I'm trying to convert some LaTeX into HTML but my code listings don't preserve their code coloring. Why is that and how do I fix it?  This is what it looks like:    Side note: I'm also wondering why the caption on the table was removed.  Edit  Here is an example listing with colors:  \documentclass{article} \usepackage{color} \usepackage{listings} \lstset{     basicstyle=\footnotesize\ttfamily,     language=[Sharp]C,      keywordstyle=\color[rgb]{0,0,1.0}\bfseries,       commentstyle=\color[rgb]{0.133,0.545,0.133}\bfseries, }  \begin{document} \begin{lstlisting} int x = 10;  // This is a comment string str = "hello"; \end{lstlisting} \end{document}   This produces the following HTML when doing: htlatex myfile.tex:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"     "http://www.w3.org/TR/html4/loose.dtd"&gt;   &lt;html &gt;  &lt;head&gt;&lt;title&gt;&lt;/title&gt;  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;  &lt;meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"&gt;  &lt;meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"&gt;  &lt;!-- html --&gt;  &lt;meta name="src" content="LaTeX4.tex"&gt;  &lt;meta name="date" content="2012-07-20 12:30:00"&gt;  &lt;link rel="stylesheet" type="text/css" href="LaTeX4.css"&gt;  &lt;/head&gt;&lt;body  &gt;    &lt;!--l. 12--&gt;    &lt;div class="lstlisting" id="listing-1"&gt;&lt;span class="label"&gt;&lt;a   id="x1-2r1"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;int&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;x&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;=&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;10;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;br /&gt;&lt;span class="label"&gt;&lt;a   id="x1-3r2"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;br /&gt;&lt;span class="label"&gt;&lt;a   id="x1-4r3"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;//&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;This&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;is&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;a&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;comment&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;br /&gt;&lt;span class="label"&gt;&lt;a   id="x1-5r4"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;string&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;str&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;=&lt;/span&gt;&lt;span  class="cmtt-8"&gt;&amp;#x00A0;&lt;/span&gt;&lt;span  class="cmtt-8"&gt;"&lt;/span&gt;&lt;span  class="cmtt-8"&gt;hello&lt;/span&gt;&lt;span  class="cmtt-8"&gt;"&lt;/span&gt;&lt;span  class="cmtt-8"&gt;;&lt;/span&gt;     &lt;/div&gt;  &lt;/body&gt;&lt;/html&gt;   Which looks like this:    I would want the HTML result to look like this: Notation: Why write the differential first? From reading answers here, I've noticed that some people write integrals as $\int dx \; f(x)$, while other people write them as $\int f(x)\;dx$.  I realize that there is no mathematical difference between the two notation forms, but was wondering why some people choose the first method over the second.  Is there some place in higher maths that it becomes beneficial to write the differential first?  (I, personally, have always used the second method, just because I was taught that way...) How do you convert a cake recipe to make brownies? Crop jpeg into circular tikz node \documentclass[demo]{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2cm]{\includegraphics{myimage.jpg}}; \end{tikzpicture} \end{document}   How do I modify the above code so that the included image is adapted to the circle shape and cropped of the exceeding parts?  I want to specify a shape (a circle) and then include an image respecting the given dimension and cropped. "Failed to create user" due to regular expression error