My phd advisor send me a tex version of his slides, I try to update it, but when I run it, the result is totally ruined (for example, all the graphs do not download at the right place, the slides are totally "deconstructed", the first page is totally blank, I also see that bullets are not installing correctly, I do not know where it come from). My knowledge about latex is quite narrowed.   Would you know where would it come from?   Thank you very much in advance.  Images of the result (on the left) with the original (on the right).     Edit:  It seems that the problem would come from the use of theme... When I do not use any theme, things appear better.
I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic"  My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both.  Sample code that doesn't work:  \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure}   If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.
I was looking for proofs using Calculus for the area of a circle and come across this one $$\int 2 \pi r \, dr = 2\pi \frac {r^2}{2} = \pi r^2$$  and it struck me as being particularly easy. The only other proof I've seen was by a teacher and it involved integrating $x = \sqrt{r^2 - y^2}$ from $-1$ to $1$, using trig substitutions and then doubling the area to get $\pi r^2$ but the above proof seemed much more straight forward.  Is it a valid proof, or is it based on circular logic or some other kind of fallacy? In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged.  Is there any other way of determining if the value has changed? I've been trying to solve the following problem:  Suppose that $f$ and $f&#39;$ are continuous functions on $\mathbb{R}$, and that $\displaystyle\lim_{x\to\infty}f(x)$ and $\displaystyle\lim_{x\to\infty}f&#39;(x)$ exist. Show that $\displaystyle\lim_{x\to\infty}f&#39;(x) = 0$.  I'm not entirely sure what to do. Since there's not a lot of information given, I guess there isn't very much one can do. I tried using the definition of the derivative and showing that it went to $0$ as $x$ went to $\infty$ but that didn't really work out. Now I'm thinking I should assume $\displaystyle\lim_{x\to\infty}f&#39;(x) = L \neq 0$ and try to get a contradiction, but I'm not sure where the contradiction would come from.   Could somebody point me in the right direction (e.g. a certain theorem or property I have to use?) Thanks Why does everyone tell me writing code like this is a bad practice?  if (foo)     Bar();  //or  for(int i = 0 i &lt; count; i++)     Bar(i);   My biggest argument for omitting the curly braces is that it can sometimes be twice as many lines with them. For example, here is some code to paint a glow effect for a label in C#.  using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor))) {     for (int x = 0; x &lt;= GlowAmount; x++)     {         for (int y = 0; y &lt;= GlowAmount; y++)         {             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));         }      }  }  //versus using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor)))     for (int x = 0; x &lt;= GlowAmount; x++)         for (int y = 0; y &lt;= GlowAmount; y++)             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));   You can also get the added benefit of chaining usings together without having to indent a million times.  using (Graphics g = Graphics.FromImage(bmp)) {     using (Brush brush = new SolidBrush(backgroundColor))     {         using (Pen pen = new Pen(Color.FromArgb(penColor)))         {             //do lots of work         }     }  } //versus using (Graphics g = Graphics.FromImage(bmp)) using (Brush brush = new SolidBrush(backgroundColor)) using (Pen pen = new Pen(Color.FromArgb(penColor))) {     //do lots of work }     The most common argument for curly braces revolves around maintance programming, and the problems that would ensue by inserting code between the original if statement and its intended result:  if (foo)     Bar();     Biz();     Questions:   Is it wrong to want to use the more compact syntax which the language offers? The people that design these languages are smart, I can't imagine they would put a feature which is always bad to use. Should we or Shouldn't we write code so the lowest common denominator can understand and have no problems working with it?  Is there another argument that I'm missing? "Who to follow" or "whom to follow"? has a "who to follow" button on the upper side of the screen. Shouldn't it be "whom to follow"?   suggests that whom is the correct usage in a case like this. Laptop Overheating. Is there a way to cool it? I have a laptop that's running on the following:   MSI MS-1634X motherboard AMD Turion X2 TL-66 CPU ATI Mobility Radeon HD2600   It keeps overheating, especially when I do something more CPU and GPU-intensive such as games. I've tried SpeedFan and Notebook Hardware Control and neither are able to help control my fans. I also have a Targus Chillmat for my laptop which helps cool down my laptop, but it still overheats. Are there any fan controlling programs that I could use to maybe turn up the RPMs on my fans or any other ways to cool down my laptop? My laptop runs pretty hot, maybe 80c core when being used, not even intensively. The Hard drive stays cool though, close to 35c.  Any help is appreciated. Thanks! What do LRESULT, WPARAM and LPARAM mean? Fisher Information of a function of a parameter How can I import Opera bookmarks into Chrome? A very easy probability problem but opinions diverge greatly. Need some help. The question itself is a very easy one:     Somebody has got two kids, one of whom is a girl. Then what's the probability that he's got at least one boy?   My answer is that, since he's already got a girl, then "he's got at least one boy" amounts to "the other kid is a boy", whose probability is apparently $\frac{1}{2}$. But my friends argue that the probability should be $\frac23$: they say this is a binomial distribution, all the possible cases are (girl,girl),(girl,boy),(boy,girl) which yields that the probability is two cases out of three and is thus $\frac23$. But I think this is totally unacceptable. I don't think it is a binomial distribution at all, at least not what my friends explained to me. However, I just can't disuade them of their opinion, nor can I prove that I am wrong. So what on earth is the probability? and why? Any help is appreciated. Thanks in advance. Esp. Can anybody show why my explanation is wrong? Isn't it that whether the other kid is a boy or a girl a 50/50 event?  EDIT: Thanks for all the help you provided for me, and special thanks will go to @HammyTheGreek and @KSmarts, who have made it clear to me that there is in fact some ambiguity in my statement in this problem. As is pointed in  ,two distinct interpretation of the statement "one of whom is a girl" that gives rise to ambiguity:     From all families with two children, at least one of whom is a boy, a family is chosen at random. This would yield the answer of 1/3.   From all families with two children, one child is selected at random, and the sex of that child is specified to be a boy. This would yield an answer of 1/2. Custom Tools not Saving in Toolbar on Startup/ Normal.mxt? I am trying to save some tools that I have created into the default toolbar layout that is present when ArcMap 10.1 is launched.  It is possible to change the arrangement of toolbars, add new ones and even add in existing tools, but any custom tools I set in the commands category "geoprocessing tools" are gone and do not appear in the toolbar. How can I save these custom tools to the default layout that appears on startup?  Update:  Saving a document with the custom tools added and reopening it preserves the tools, but opening a template (10.1 mxd) containing the tools, then opening and older document will cause the tools to disappear. Oddly enough, any other changes made after the custom tools were added are preseved.  Update (03/18/2014):  I have upgraded to 10.2 and this has still not been fixed. I did not see this issue in the 10.21 changelog so I doubt it will address it. For those interested in this issue, I have started a forum post on the ESRI forums . How can I add a right-click desktop menu entry to create a text file to Gnome 3 in Ubuntu 16.04.02? Product of all elements in an odd finite abelian group is 1 I'm attempting to build an LED bed lamp that will be powered by 240V mains. The LEDs are  which if I use with a 12V supply and have calculated correctly will draw 0.24W each. I plan to use 5 or 6 of them in the lamp so will consume a maximum of 1.5W.  Initially I thought I'd use a transformer and bridge rectifier to get the required 12V DC but the transformer weighs a ton and is too bulky. The next option was to use a  but I'm wondering is there is a better way?  I think it would be possible to power the LEDs directly from mains using only a rectifier without mains and stepping down the voltage but then it's not safe. Are there any smallish components that can both isolate the mains and supply a DC voltage? Proof of Archimedes Principle Say I have an arbitrary body $\Omega$ and surface $\partial \Omega$ submerged in a hydrostatic fluid of density $\rho$ under the influence of gravity. How does one show ? i.e.  $$\int_{\partial \Omega}(P_0 + \rho g h)d\vec{S}=\text{vol}(\Omega)\rho g\vec{e_2}.$$ MacPorts fails to find 'make' I've installed Xcode and MacPorts on a brand new mid-2013 MacBook Air, but MacPorts doesn't work, saying that it cannot find anything.  mba:~ cnst$ sudo port install wget Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build. Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information. ---&gt;  Computing dependencies for wgetError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? mba:~ cnst$   And, indeed, there is no make or clang in the path, but it is definitely installed, though:  mba:~ cnst$ find /Applications -name "clang" -or -name "make" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang /Applications/Xcode.app/Contents/Developer/usr/bin/make mba:~ cnst$   Why is there no make or clang in the path?  Why MacPorts doesn't work?  I notice that  mentions that you have to install something from ADC, Apple Command Line Developer Tools, but ADC doesn't work since last Thursday or Friday due to their security breach, so, the developer tools are nowhere to be found.  What's the proper solution here? Similar to Lifepod 1993, but not it How do I get a tourist visa/card for Cuba? How do I get a tourist visa (or a tourist card) for Cuba?  I live in the Netherlands, but I'm not a Dutch citizen, I have an Italian passport. How to Link/Append a data-block using the Python API? I'm searching a way to append a group in Python.  It should behave exactly like the Append function (ShiftF1) works, all objects should be local and editable. The idea is to append a character (with rig etc.) via Python and not Link it (to be able to modify it without making everything local one by one).  Thanks How a module can override theme suggestion? Basically it was  but I'll reword it, as I don't want to define a new theme (reason was already given).  What I want to do: in my module I have a file node--attach.tpl.php which is a modifed version of node.tpl.php. Now I want that, if view_mode = 'attach' then this file is used. Also, theme should be allowed to override it with its own node--attach.tpl.php in theme folder.