I'm using tikz for creating a few plots. I using the axis environment to create the plot. Using the height and width options, I can set the size of the plots. I want an aspect-ratio of 2, so I set width=\linewidth and height=0.5\linewidth. It turns out that the aspect ratio is not 2, but approximately 2.36 instead. Any idea how to fix this?  MWE:  \documentclass{article} \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{backgrounds}  \begin{document}  \begin{figure}     \begin{tikzpicture}[framed]         \begin{axis}[             width=\linewidth,             height=0.5\linewidth,             xmin=0, xmax=2,             ymin=0, ymax=1,             ticks=none,             red         ]         \end{axis}     \end{tikzpicture} \end{figure}  \end{document}
How can I set the box plot (i.e. axis) ratio of a usual 2D plot to a given value, say 4:3.  I don't want to use unit vector ratio since the quantities of the independent and dependent variables are of completely different orders of magnitude.
A friend of mine accidentally left a carton of eggs on her counter, unrefrigerated, for three days. The eggs had been previously refrigerated both at the store and at home. Now she's planning to do some more cooking which requires eggs, and is wondering if it's still safe to use them for baking. I believe she is planning on baking cookies with them, so they would be baked at fairly high temperatures for probably at least 10 minutes. Would this be safe, or are eggs left unrefrigerated for that long not safe for consumption? Square roots not on same height This part C\frac{1}{\sqrt{G}}\sqrt{\rho} doesn't seem to be on the same height as this part \sqrt{b}\sqrt{l} when compiled. What am I doing wrong?  \begin{flalign*} T=C\frac{1}{\sqrt{G}}\sqrt{\rho}\sqrt{b}\sqrt{l} &amp;&amp; \end{flalign*} Why can't we use entanglement to defy Heisenberg's Uncertainty Principle? In principle, it is possible to entangle any property of two particles, including speed and momentum. Surely then, this could be used to defy the Uncertainty Principle, which states that the momentum and position of a particle cannot be together measured with accuracy, but the more accurate one gets, the less accurate the other becomes:  $$\Delta x\Delta p=\dfrac{\hbar}{2}.$$  If one was to set up an experiment where two particles are entangled, one could then measure the position of one particle with great accurary at the same time as measuring the momentum of the other particle with great accuracy, which would mean that, as the two particles are entangled, one would then know the momentum of the particle they measured the position of.  Therefore, the Uncertainty Principle would have been defied, as both momentum and position have been measured with a high accuracy.  However, this can't be true, as someone would have thought of this before.  So why wouldn't this work? Young adult book about a boy(?) who gets sent through a portal to another world which is really the distant future Trying to remember a book about (I think) a boy who goes through a portal (possibly struck by lightning?).   Ends up in a strange, primitive bush/forest land. Alien but somewhat Earth-like plantation everywhere - I believe the grass was purple. There are very primitive humans (or humanoids?) and the main character was possibly made a slave by a tribe? Thinks is on alien planet. It is revealed they are still on earth when someone has a glass bottle which reads "Coca-cola" on it. There was something to do with quicksand which seemed important to the plot.   Probably read sometime around the late 90s, but could have been written earlier.  Was either a short novel or possibly even a short story.  Would be curious if anyone can remember this. Solve system of simultaneous equations in $3$ variables: $x+y+xy=19$, $y+z+yz=11$, $z+x+zx=14$ I am trying to create an spritz app. Everything was working fine, but since yesterday I keep getting this error:     ./spritz: line 176: syntax error: unexpected end of file   I have checked the script file and everything seems perfect. I am confused, I have an if statement at last and it looks correct! Here is the last portion:  #checks if speed is 150 157 if [[ $2 -eq 150 ]]; 158 then 159 starttime=$SECONDS 160      FS=$'\n' 161      for j in `grep --color=always -iP '\b[^aeiou\s]*[aeiou][^aeiou\s]*\K[aeiou]' $1`; 162      do 163            #Reads the text file in the centre of the screen 164            echo "                                                    ___________________" 165            echo "                                                             $j"; 166            echo "                                                    ___________________" 167            echo "                                                                               Speed 150 wpm" 168            sleep  0.9; 169            clear; 170       done 171 endtime=$(($SECONDS - $starttime)) 172            echo "You read $words_read words in $endtime seconds!" 173       exit 8 174 fi   What could cause that error? What are the differences between 32-bit and 64-bit systems?  If you have used both of them, what kind of sharp differences have you experienced?   Would it be a problem to use 32-bit programs on 64-bit systems in some cases? CSS bug with printing site pages (now with 100% more suggested fix included!) This is a question you can read everywhere on the web with various answers:  $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename);  $exts = split("[/\\.]", $filename); $n    = count($exts)-1; $ext  = $exts[$n];   etc.  However, there is always "the best way" and it should be on Stack Overflow. Relativity and Galaxy Rotation Speed If time travels slower nearer gravity wells, why can't the galaxy rotation speeds being faster on the outer edges than the inner areas be explained by relativity? What necessitates dark matter? Object selection box with eyedropper Headless linux install How can I get CSS comments with jQuery? I am wondering how I can read CSS comments out of a linked stylesheet.  I have this sample CSS loaded via:  &lt;link rel="stylesheet" type="text/css" media="all" href="test.css" /&gt;   &nbsp;  #test1{ border:1px solid #000; } #test2{ border:1px solid #000; } #test3{/* sample comment text I'm trying to read */}   I'm testing this in FF3. The following javascript reads the rules but doesn't read the comments in#test3.  window.onload = function(){     s=document.styleSheets;     for(i=0;i &lt; s[0].cssRules.length;i++){         alert(s[0].cssRules[i].cssText);     } } Roots in a polynomial ring Why LastModifiedbyid in Trigger.new gives old value I have noticed the strange behaviour of salesforce due to which even my code broke down in production.  I was trying to stop the user from updating some field..I used before udpate trigger and code like Trigger.new[i].LastModifiedbyId..  Ideally it should give the current user in Trigger.new[i].LastModifiedbyId in  but it gives oldrecordLastModifiedbyId..  Although userinfo.getuserid resolves the problem later.  Any idea about this behaviour of salesforce. Ubuntu 13.04 on Mac Mini 6,2 ethernet port Broadcom NetXtreme BCM57766 not detected The said network adapter is not recognized in 13.04. In 12.04 and 12.10 I had used the driver proposed from broadcom download site, configured as dkms package it was always updated.  On the 3.8.x kernels this provided kernel driver from broadcom does not compile anymore - and the distribution provided tg3 drivers does not recognize the ethernet adapter - even though it is a newer version.  ~$ modinfo /lib/modules/3.8.0-19 generic/kernel/drivers/net/ethernet/broadcom/tg3.ko | grep -i version version:        3.128 srcversion:     D737202366709FE01964BF0 vermagic:       3.8.0-19-generic SMP mod_unload modversions    Here the working version on kernel 3.5.x using dkms  ~$ modinfo /lib/modules/3.5.0-25-generic/updates/dkms/tg3.ko | grep version version:        3.124c srcversion:     D01ED9A7BF2C3956E212A63 vermagic:       3.5.0-25-generic SMP mod_unload modversions    The Network card:  ~$ lspci -nn | grep 0200 01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686] (rev 01)   As found on the i7 Mac Mini 6,2.  Anyone knows where I can get a kernel that recognizes that ethernet device ? That chip is supported somehow ... And - the 3.8.x kernel is way better on the HD4000 chip - reason I use it.  Note - to get the WiFi working, just make sure you load the b43 driver at boot (/etc/modules). At least then you have Network connectivity. A question about eigenvalues of $5\times5$ matrix Show that if $g \circ f$ is injective, then so is $f$. The Problem:  Let $X, Y, Z$ be sets and $f: X \to Y, g:Y \to Z$ be functions.  (a) Show that if $g \circ f$ is injective, then so is $f$.  (b) If $g \circ f$ is surjective, must $g$ be surjective?  Where I Am:  So, I really have trouble with these, for some reason. I can draw pictures and make sense of the problems, but writing down proofs is very difficult for me.   Basically, for (a), I ended up with some complicated statement involving an implication implying another implication and then tried to derive a contradiction. It just got so convoluted that I couldn't make sense of it anymore, and I know there's a quick, elegant way to show it.  For (b), I know that $g$ need not be surjective. Once again, though, proving it directly from definitions has given me a bit of a headache.  Any help here would be appreciated. Thanks in advance.  The Proofs!  Ok, I did it. Thanks for the help, everyone! Let me know if there's anything wrong with these proofs, or if they could bet any better.  (a) Suppose $f$ is not injective. Then $$ f(x_1)=f(x_2) \implies x_1 \ne x_2 \text{        }(*).$$ Let $f(x_1)=y_0=f(x_2)$ and let $g(y_0)=z_0$. Then $$ (g \circ f)(x_1) = (g \circ f)(x_2) = g(y_0) = z_0. $$ Since $g \circ f$ is injective, $$ (g \circ f)(x_1) = (g \circ f_2) \implies x_1 = x_2. $$ However, this contradicts $(*)$. Therefore, $f$ must be injective.  (b) Suppose $g$ is not surjective. Then  $$ \forall y \in Y, \exists z \in Z \text{ such that } g(y) \ne z \text{         }(**).$$  Since, $g \circ f$ is surjective,  $$ \forall z \in Z, \exists x \in X \text{ such that } g(f(x)) = z \text{       } (***). $$  Let $f(x) = y$. Then,  $$ g(f(x)) = g(y) = z. $$  Because of $(***)$, this is true for all $z \in Z$, which contradicts $(**)$. Therefore, $g$ must be surjective. Where can I see my full list of Questions and Answers in my profile page of Stack Exchange Android App? I want to see all my Questions and Answers in a particular SE site -  - profile page through Stack Exchange Android App. How can I see that? When I tried to see that I found only Top Posts(5) and Top Tags. Creating shapefile from Excel file in QGIS? I am using QGIS 2.6.1 and have worked in an Excel file database (which was actually converted from a Shapefile). I have managed to convert it as CSV file and load it into QGIS (displays data fine) but I have trouble to convert it to a shapefile.  I can view it but I can´t add or alter data in this file. I think I have to save it as a database.   Any clues how to convert the xlsl-data to a database and finally to a shapefile?