Static Generic 2D Map
Why can templates only be implemented in the header file?
How can I run everything as root I have dual booted to lubuntu (with Windows XP) and everytime and then I'm getting asked for my password. How do I run everything as root and not ask a password again? Ideally I wanted to run nginx but it has permission denied issues:  apathetic@ubuntu:~$ service nginx start Starting nginx: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2012/08/03 20:06:25 [warn] 4762#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 2012/08/03 20:06:25 [emerg] 4762#0: open() "/var/run/nginx.pid" failed (13: Permission denied) nginx: configuration file /etc/nginx/nginx.conf test failed Why is my dual-core CPU recognized as a quad-core one? My processor is an . As you can see, it's 2 cores and 4 threads.  Although, both Ubuntu 11.04 and Windows 7 seem to think it's a quad-core CPU:      Why is this? Is it because there are 2 threads per core, dividing the CPU in 4 processing units? Help with multirow table I am trying to wrap text in the multirow column (1st one) and only have the vertical lines inside the table if that makes sense.   Can anyone help me? `  \begin{table*}[!htbp] \centering \renewcommand{\arraystretch}{1.4} \begin{tabular}{|c| p{2cm}|c|c|c|c|} \cline{3-6} &amp;&amp;\multicolumn{2}{c|}{\textbf{Gravité du Dommage G1}} &amp; \multicolumn{2}{c|}{\textbf{Gravité du Dommage G2}}\\  \cline{3-6} &amp;&amp;\textbf{Fréquence F1} &amp; \textbf{Fréquence F2} &amp; \textbf{Fréquence F1} &amp; \textbf{Fréquence F2}\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O1}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O2}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O3}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \end{tabular} \end{table*} Can I make `find` return non-0 when no matching files are found? How can I get around giving my mobile phone number to Google? The following problem was on a math competition that I participated in at my school about a month ago:      Prove that the equation $\cos(\sin x)=\sin(\cos x)$ has no real solutions.   I will outline my proof below.  I think it has some holes.  My approach to the problem was to say that the following equations must have real solution(s) if the above equation has solution(s):  $$ \cos^2(\sin x)=\sin^2(\cos x)\\ 1-\cos^2(\sin x)=1-\sin^2(\cos x)\\ \sin^2(\sin x)=\cos^2(\cos x)\\ \sin(\sin x)=\pm\cos(\cos x)\\ $$  I then proceeded to split into cases and use the identity $\cos t = \sin(\frac{\pi}{2} \pm t\pm y2\pi)$ to get   $$ \sin x=\frac{\pi}{2} \pm \cos x\pm y2\pi\\ $$  and the identity $-\cos t = \sin(-\frac{\pi}{2}\pm t\pm y2\pi) $ to get   $$ \sin x=- \frac{\pi}{2}\pm \cos x \pm y2\pi.\\ $$  where $y$ is any integer.  I argued that $y=0$ was the only value of $y$ that made any sense (since the values of sine and cosine remain between $-1$ and $1$).  Therefore, the above equations become   $$ \sin x=\frac{\pi}{2} \pm \cos x\implies \sin x \pm \cos x=\frac{\pi}{2}\\ $$  and   $$ \sin x=- \frac{\pi}{2}\pm \cos x\implies \cos x\pm\sin x= \frac{\pi}{2}.\\ $$  Then, by a short optimization argument, I showed that these last two equations have no real solutions.  First, does this proof make sense?  Second, if my proof makes sense, then I feel that it was not very elegant nor simple.  Is my approach the best, or is there a better (i.e., more elegant, shorter, simpler) proof? So the first picture is right after I selected where I will cut, and the second picture is after pressing Enter/Space Bar which should apply my previous result to the world. But it is not what I asked blender for, and it tries to snap at vertices. In the tutorial video, it seems that I can cut edges without already existing vertices but it is not the case for me. How do I change this? Differences between hosting options for SharePoint apps I'm trying to evaluate $(\hat{a}+\hat{a}^\dagger)^k|n\rangle$ Where $\hat{a}$ and $\hat{a}^\dagger$ are ladder operators and $|n\rangle$ the $n$th Fock state. For this, I separated the problem in three parts: $k&lt;n$, $k=n$ and $k&gt;n$. In this part I'm a bit confused: Is it possible to evaluate such operations? Some tips on how to start would be really great. BasicTeX - how to identify packages that need to be added after an upgrade Does "singular" have a common meaning across matrices, decomposition, vectors and values? How to manually mount a partition? There are many questions on automatically mounting or problems encountered during mounting that I've read here. But none on how to manually mount a partition. After doing a sudo apt-get install , where does the application get stored to? After installing apps via apt-get install -app name-. Where does the files get copied to? Are the copied to just one location or multiple locations? And if so how do I find this out?  Here's an example: If $A$ an integral domain contains a field $K$ and $A$ over $K$ is a finite-dimensional vector space, then $A$ is a field. I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful. How to fix error W: Target Packages (main/binary-amd64/Packages) is configured multiple times in my sources.list file? Why is it important to apply transformation to an objects data? In the small amount of physics that I have learned thus far, there seems to be a (possibly superficial pattern) that I have been wondering about.  The formula for the kinetic energy of a moving particle is $\frac{1}{2}mv^2$.  The formula for kinetic rotational energy is $\frac{1}{2}I\omega^2$.  The formula for energy stored in a capacitor is $\frac{1}{2}C \Delta V^2$.  The formula for energy delivered to an inductor is $\frac{1}{2}LI^2$.  Finally, everyone is aware of Einstein's famous formula $e=mc^2$.  I realize there are other energy formulas (gravitational potential energy, for example) that do not take this form, but is there some underlying reason why the formulas above take a similar form? Is it a coincidence? Or is there a motivation for physicists and textbook authors to present these formulas the way they do? Could there be an eighth Horcrux? Help, I cannot get my test code coverage higher than 75%! Code below