Man page with preserved text decorations, proportional text and fixed-width code
How to dump a man page?
So, I'm working with OpenGL (I'm not exactly sure of the version), and I want to do an old-style lighting setup by essentially drawing a black rectangle over the screen, and drawing white circles over the areas that should be lit. I already have the rectangle and the circles, but I can't figure out how to make it so that the white circles are transparent when applied to the black areas. Any ideas? I tried to use blending modes, but it still evades me...  EDIT: Here's the code that I'm using (Python).  view_buf = Buffer(GL_INT, 4) glGetIntegerv(GL_VIEWPORT, view_buf) view = view_buf.to_list() if hasattr(view_buf, "to_list") else view_buf.list  glDisable(GL_DEPTH_TEST)  glDisable(GL_LIGHTING)  glEnable(GL_BLEND)  if logic.lights['smooth']:     glEnable(GL_LINE_SMOOTH)  # # Make sure we're using smooth shading instead of flat # glShadeModel(GL_SMOOTH)  # Setup the matrices  glMatrixMode(GL_PROJECTION) glPushMatrix() glLoadIdentity() gluOrtho2D(0, view[2], 0, view[3]) glMatrixMode(GL_MODELVIEW) glPushMatrix() glLoadIdentity()  #glAlphaFunc(GL_GREATER, 0.5)  glColor4f(0.0, 0, 0, 0.75)  glBegin(GL_QUADS);                              # Draw Black screen glVertex2d(0.0, 0.0); glVertex2d(view[2], 0.0); glVertex2d(view[2], view[3]); glVertex2d(0.0, view[3]); glEnd()  glColor4f(1, 1, 1, 1)  degtorad = 3.14159/180.0   glBlendFunc(GL_ZERO, GL_SRC_ALPHA)  def DrawCircle(x, y, radius, fill = 1, step = 11):      glVertex2f(x, y)      if fill:         glBegin(GL_TRIANGLE_FAN)     else:         glBegin(GL_LINE_LOOP)      for a in range(0, 360, step):         angle = degtorad * a         glVertex2f(x + (sin(angle) * radius), y + (cos(angle) * radius))      glEnd()   #for layer in range(len(logic.lights['layers'])): #   size =  for light in logic.lights['points']:     DrawCircle(light[0][0] * view[2], (1 - light[0][1]) * view[3], light[1], step = light[2])     if logic.lights['smooth']:         DrawCircle(light[0][0] * view[2], (1 - light[0][1]) * view[3], light[1], 0, light[2])  # Reset the state glPopMatrix() glMatrixMode(GL_PROJECTION) glPopMatrix() What do we know about the Ainur who stayed in the Timeless Halls? Evaluate the integral $\int_0^\infty \frac{dx}{\sqrt{(x^3+a^3)(x^3+b^3)}}$ This integral looks a lot like an elliptic integral, but with cubes instead of squares: $$I(a,b)=\int_0^\infty \frac{dx}{\sqrt{(x^3+a^3)(x^3+b^3)}}$$ Let's consider $a,b&gt;0$ for now. $$I(a,a)=\int_0^\infty \frac{dx}{x^3+a^3}=\frac{2 \pi}{3 \sqrt{3} a^2}$$ I obtained the general series solution the following way. Choose $a,b$ such that $a \geq b$, then: $$I(a,b)=\frac{1}{a^2} \int_0^\infty \frac{dt}{\sqrt{(t^3+1)(t^3+b^3/a^3)}}=\frac{1}{a^2} I \left(1, \frac{b}{a} \right)$$ $$\frac{b^3}{a^3}=p, \qquad I \left(1, \frac{b}{a} \right)=I_1(p)$$ $$I_1(p)=\int_0^\infty\frac{dt}{\sqrt{(t^3+1)(t^3+p)}}=2 \frac{d}{dp} J(p)$$ $$J(p)=\int_0^\infty\sqrt{\frac{t^3+p}{t^3+1}}dt=\int_0^\infty\sqrt{1+\frac{p-1}{t^3+1}}dt=$$ $$|p-1| \leq 1$$ $$=\sum_{k=0}^\infty \left( \begin{array}( 1/2 \\ ~k \end{array} \right) (p-1)^k \int_0^\infty \frac{dt}{(t^3+1)^k}$$ Now this is the most problematic part. The first integral of this series diverges. However, it's a constant in $p$, so if we differentiate, it formally disappears: $$I_1(p)=2 \sum_{k=1}^\infty \left( \begin{array}( 1/2 \\ ~k \end{array} \right) k (p-1)^{k-1} \int_0^\infty \frac{dt}{(t^3+1)^k}$$ Now, every integral in this series converges. The integtals can be computed using the Beta function, if we substitute: $$t^3=\frac{1}{u}-1$$ Finally, we rewrite: $$I_1(p)=\frac{\Gamma (1/3)}{3 \sqrt{\pi}} \sum_{k=1}^\infty \frac{k^2}{k!^2} \Gamma \left(k- \frac{1}{2}\right) \Gamma \left(k- \frac{1}{3}\right) (1-p)^{k-1}$$ Or, using the Pochhammer symbol:  $$I_1(p)=\frac{2 \pi}{3 \sqrt{3}} \sum_{k=0}^\infty \frac{(k+1)^2}{(k+1)!^2} \left(\frac{1}{2}\right)_k \left(\frac{2}{3}\right)_k (1-p)^k$$  My questions are:  Is the method I used valid (see the 'problematic part')? How to get this series into a Hypergeometric function form? Is there any 'arithmetic-geometric mean'-like transformation (Landen's transformation) for this integral? How to go about finding it?  If the method I used is correct, it can be used for any integral of the form ($m \geq 2$): $$I_m(a,b)=\int_0^\infty \frac{dx}{\sqrt{(x^m+a^m)(x^m+b^m)}}$$ What's the proof that the Euler totient function is multiplicative? That is,     why is $\varphi(AB)=\varphi(A)\varphi(B)$, if $A$ and $B$ are two coprime positive integers?   It's not just a technical trouble—I can't see why this should be, intuitively: I bellyfeel that its multiplicativity should be an approximation at most. And why the minimum value for $\varphi (n)$ should be $ \frac{4n}{15} $ completely passes me by. Proving that an ideal in a PID is maximal if and only if it is generated by an irreducible Generating Random Passwords When a user on our site loses his password and heads off to the Lost Password page we need to give him a new temporary password. I don't really mind how random this is, or if it matches all the "needed" strong password rules, all I want to do is give them a password that they can change later.  The application is a Web application written in C#. so I was thinking of being mean and going for the easy route of using part of a Guid. i.e.  Guid.NewGuid().ToString("d").Substring(1,8)   Suggesstions? thoughts? Prove $\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq 2$ For positive integers Numbers  $a, b, c $ prove that  $$\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq  2$$ This inequality above take long time to prove it and still couldn't complete it.  How I can prove this inequality?  Any hint will help. Thanks Remove empty elements from an array in Javascript How do I remove empty elements from an array in JavaScript?   Is there a straightforward way, or do I need to loop through it and remove them manually? What is another word for 'all round' capabilities? I am looking for a positive, passionate word to describe the all-round capabilities of a person.   Are there any words better than 'all-rounder'? What is "my guy syndrome" and how do I handle it? Restricting T to string and int? I have built myself a generic collection class which is defined like this.   public class StatisticItemHits&lt;T&gt;{...}   This class can be used with int and string values only. However this  public class StatisticItemHits&lt;T&gt; where T : string, int {...}   won't compile. What am I doing wrong? What harm can be done with a copy of one's passport? In one of the questions on this site, it was suggested the use of  to save a backup copy of your passport, in case you need to proof who you are if your original document is lost.   I like the idea, but what if someone gets access to your Dropbox folders and is able to acquire the copy of your passport.  The same goes for when you leave a copy of your passport at a hotel receptions desk. Once someone has the info printed on that copy, would that make it easier to steal your identity? Does gravity affects on electrons in a noticeable way? Is there a way to force a free electron move in a low speed in order to observe it actually hitting 'on the floor'? Who created the veil in the death chamber, and why? Was the veil created by someone or was it always there in HP? What is its purpose? If one can't communicate with the dead through the veil, then what/how do unspeakables learn from the the veil? (except investigating how does it flutter,I suppose,,,,) How do I add an APN via ADB? For hardware reasons (My menu key doesn't work) I can not add an APN via settings. I read  about using sqlite and  about using code. But I need a more convenient way to do it. I need to do it using adb. Why is "night" spelled with "gh"? How to interpret decomposition plot and check for seasonality Merge two PDF files containing even and odd pages of a book I have two searchable PDF  documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.   I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?  They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.  Can I do this any other way? For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by  \renewcommand\familydefault{\sfdefault}    However when I use mathematical symbols like $p_{s}$, they are still typeset in roman font and that looks weird:    So I wonder:   how could I force mathematical expressions also be typeset in \sfdefault if I do, are there any negative sideeffects to expect (with greek signs or other special symbols?) OR should I typeset all "mathematical" graphs (axis labels etc.) in roman font, and only make the other graphics like flow charts and sketches with sans serif font? In a 2-columned document, how do you get a table to stretch across the entire width? I'm working on a document that runs two columns of text down the page, like many scientific conference proceedings.  However, I'd like for a table to run across the entire width of the page, as it is far too wide to fit into one column.  How do I do this?