My Dockerfile looks like this:  FROM php:5-apache  RUN docker-php-source extract \     &amp;&amp; docker-php-ext-install mysql mysqli pdo pdo_mysql \     &amp;&amp; docker-php-source delete   Unfortunately, when I click on a cgi file I see the actual cgi script rather than the HTML file inside the browser:   #!/usr/bin/perl -w print "Content-type: text/html\n\n"; ...    How is it possible to configure cgi?  Thank you in advance,
I would like to configure Apache 2 running on Kubuntu to execute Perl CGI scripts. I've tried some steps that I came across by googling, but nothing seems to work.  What is the right way of achieving this?
Can a Half-Elf have Drow Ancestry? I followed @Micha's instruction and successfully used the modules in GRASS. I use r.watershed to get the basin raster and the drainage line：  and I use r.water.outlet to get the watershed of one outlet：  I got the whole basin area of the green outlet point, but all I want is the little part of the original basin area, like this：part B is what I want  This schematic photo shows the idea of what I want：  Can I achieve this goal using r.water.outlet or other modules in GRASS？ Or all I can do is using the intersect tool in Geoprocessing tools in QGIS？  I want to find the watershed area, but using QGIS. I have following files to work with：  stream network shapefile(polyline) point shapefile clipped from the polyline shapefile a whole island(the stream is inside the island) DEM(I got 2 types:.lan &amp; .tiff)  I want to find the total watershed area located upstream of every point in the network, here's the schematic diagram：  the green, red, and yellow line enclose the watershed of each point(here I only take 3 points as the example), and I want to calculate their area. I already got the DEM file, and I must cut the region that contains the stream off, should I polygonize it first？ Can I directly use this form(.lan or .tiff) to work with GRASS？ Emacs: How to use a major mode for non-standard file extension Can bug reports and feature requests requiring SE Dev attention be reported on per-site metas, or do they need to all go here? Rendering an animation the way 3D view looks Change the size/width of tabs in Notepad++ Internal microphone not working I have an internal microphone in my laptop. I think it uses Intel High Definition Audio. But I can't get it to work with Ubuntu. It doesn't work with either the Sound Recorder or Skype.  On the Input tab in 'Sound Preferences', I just see Internal Analog Input Device... I am trying to get a better feel for the topology of ordinals and just received a great answer to this  where the Cantor-Bendixson rank and degree turn out to be a complete homeomorphism invariant of countable compact spaces. Now I am curious about what is going on within homeomorphism classes of ordinals. In particular, I want to know how to characterize countable ordinals $\alpha$ which are minimal among all ordinals homeomorphic to $\alpha$.   Certainly finite ordinals and $\omega$ are easy. Next, if $\alpha\cong \omega+1$, then it seems like we would have to have $\omega+1\leq \alpha&lt;\omega +\omega$ since there can only be one limit point in $\alpha$. Things become a little fuzzier for me with ordinals that have infinitely many limit points.  For instance, suppose $\alpha$ is an ordinal homeomorphic to $\omega^{\omega}$. Is it necessarily true that $\alpha\geq \omega^{\omega}$? Is there a general rule for knowing when an ordinal is the smallest among all ordinals homeomorphic to it? How to type the Indian Rupee Symbol? I want to type the Indian Rupee Symbol. So I went to System Settings >> Keyboard Layout and clicked on the Options button. Under the Adding Currency signs to keys sections, I checked the Rupee on 4 option.    Later when I opened the Layout Chart of the Keyboard there was Rupee sign in the 4 key but I do not know how to type the symbol. What combination of the keys will type the Rupee symbol on the screen? How do you check if a JavaScript Object is a DOM Object? I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? I accidentally closed the window for the verfication code I wanted to create an account for Ubuntu One, but I got impatient when the email with the verification code didn't arrive... I thought I might have typed the wrong address, closed the window and tried again. it told me the address already existed and I just got the code. But since I closed the window I missed it. Is there any way to recover the code? Cyrillic monospaced font in XeLaTeX I've installed full TexLive 2011 using "install-tl" script in Ubuntu 12.04.  When I was using TexLive 2009 from repositories the following file was compiled without any errors.  \documentclass{article} % XeLaTeX \usepackage{xltxtra} \usepackage{xunicode}  % Fonts \setmainfont{Arial} \newfontfamily\cyrillicfont{Arial} \setmonofont{Courier New}  % Lang \usepackage{polyglossia} \setmainlanguage{russian} \setotherlanguage{english}  \begin{document} English normal.  \texttt{English monospace}.  Русский обычный.  \texttt{Русский моноширинный}.  % Text in Russian \end{document}   But XeLaTeX from TexLive 2011 gives this error:     ERROR: Package polyglossia Error:       --- TeX said ---   The current roman font does not contain the Cyrillic script!   Please define \cyrillicfont with \newfontfamily.      See the polyglossia package documentation for explanation.   Type  H   for immediate help.    ...                                                    l.17 ...nglish normal.  \texttt{English monospace}                                                     .   In spite of this error the output PDF is correct.  The error remains if comment out \setmonofont{Courier New}.  Using Courier New as main font gives no error on normal text (without \texttt, \textbf and so on).  Using DejaVu Sans Mono as monospaced font gives no error too.  I've been searching for solution few hours but there aren't any.  Maybe this is a bug in Polyglossia or Fontspec? How can I search for special characters? Situation: It started out as me  for the literal string C-c in  but it ended up omitting the - sign and showing results which contained the strings C/C++ and C &amp; C++.  is an example of a post which contains that string of characters (yet fails to show up in the results).  Things I've tried:   post suggests that I can use the undocumented code: operator, but when I do that, it just wraps the whole term in double quotes like .  As @terdon in Unix &amp; Linux chat has , using this  does yield some relevant results, but it doesn't show me  that is supposed to be there. edit: It appears that the Symbolhound query no longer returns that result.  Finally,  says that you can search for literal characters, but as you can see:    Quoted phrases are exact matches except for case-sensitivity, for example, you can search  or .  The second example (symbols) leads to 0 results.  So by now I assume that the search engine has changed (but the old documentation still lingers on this site). Is there a method for me to search for strings that include special (or is it literal?) characters? This is a follow-up to .  Suppose you want to denote vectors by upright bold letters; then \mathbf{u} works fine, except that if it's a Greek letter you have to use \boldsymbol{\omega} instead.  Question: Is it possible to define a generic vector command in LaTeX which automatically chooses between \mathbf and \boldsymbol, so that one can write just \vect{u} and \vect{\omega} without having to treat the Greek symbols specially by hand?  (Just to be clear: \newcommand{\vect}[1]{\boldsymbol{#1}} is no good in this situation, since \boldsymbol{u} gives bold italic instead of roman.) Constructing the reciprocal of a segment How can one construct the reciprocal length of a line segment? For example, given any line segment a, how can $\frac{1}{a}$ be constructed?  I was told that it can be solved by creating similar triangles, but I do not get it. UK Train - Can I board at a different station How to install Ubuntu on a Mac and keep OSX? Could anyone provide a concise step by step instruction on how to install Ubuntu 12.04 on a Mac OS X Lion?  I have read that Ubuntu corrupts the EFI file so I would like to hear from those who have successfully done it. PayPal API Listener Website Payments Standard URI How to use combinatorial proof instead of induction? Let k ≥ 1 be an integer and consider a sequence $n_1, n_2, . . . , n_k$ of positive integers. Use a combinatorial proof to show that  $\binom{n_1}{2}$ + $\binom{n_2}{2}$ +...+ $\binom{n_k}{2}$ $\le$ $\binom{n_1 + n_2 + ...+ n_k}{2}$ Are primes (ignoring $2$) equally likely to be $1~\text{or}~3\pmod 4$? For all primes $p\neq 2$, it's easy to see that $$p\equiv 1~\text{or}~3\pmod 4$$ I was wondering if it's equally likely ($50\%-50\%$) that prime modulo $4$ is $1$ or $3$. And if so, is there a simple proof?