How do I stop my figures from being pushed into an "open" spot, and having text fill the "empty" spot? The paper does not have a very clear flow because while one paragraph is talking about Figure 1, Figure 1 is actually AFTER the paragraph that is talking about Figure 2. I have tried changing the \begin{figure}[!ht] but it has not solved my problem.  I'm basically looking for a way just to put empty spaces and order the document how my Source is typed.  \begin{figure}[!ht] \centering \begin{minipage}[b]{.45\textwidth} \includegraphics[width=1\linewidth]{Flee.jpeg} \caption{Whether the victim was fleeing} \label{fig:complete} \end{minipage} \hspace{.5cm} \begin{minipage}[b]{.45\textwidth} \includegraphics[width=1\linewidth]{Threat.jpeg} \caption{Whether the victim was a threat } \label{instruct} \end{minipage}  \end{figure}   Here are my packages  \usepackage{amsmath, amssymb} \usepackage{epstopdf}% To incorporate .eps illustrations using PDFLaTeX, etc. \usepackage{subfigure}% Support for small, `sub' figures and tables \usepackage[numbers,sort&amp;compress,merge]{natbib}% Citation support using natbib.sty \usepackage{multirow} \usepackage[singlelinecheck=false]{caption} \usepackage[labelsep=:]{caption} \usepackage{pgfplots} \usepackage{indentfirst} \usepackage{dirtytalk} \usepackage[dvipsnames]{xcolor}  \usepackage{geometry} \geometry{margin=1in}
I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left?
How do I make protocol foo hostname-aware? This is a  about hostname-awareness and proxying.   I know that some protocols are hostname-aware; that is, when I connect to the HTTP server at www.example.com it knows I want www.example.com's HTTP service, not www.example.net's, even though they are on the same IP address.  How can I do this for protocol foo?  (Temporary note: this question appears pursuant to .) Upgrading straight handlebars to drop handlebars I have a two-and-a-half year old  (with a road-bike-like frame and thin tires; it's somewhere in the loosely-defined "hybrid" range) that I use to commute to work, twenty-five miles round-trip, once or twice a week. The bike has straight handlebars, and having gotten used to the idea of commuting via bike, I'm interested in upgrading to drop handlebars. It looks like I'd need new break/shift levers to go with the handlebars; the whole upgrade looks like it'd run a couple hundred dollars. This is a sizable fraction of the original cost of the bike, which leads me to wonder if I'm better off saving my money for a new bike that's a little better adapted to my use.  Is upgrading my bike's handlebars a reasonable investment? Output URL of open firefox tabs in terminal Process substitution and pipe I was wondering how to understand the following:     Piping the stdout of a command into the stdin of another is a powerful   technique. But, what if you need to pipe the stdout of multiple   commands? This is where process substitution comes in.   In other words, can process substitution  do whatever pipe can do?   What can process substitution do, but pipe cannot? I am trying to put in a switch and a light it controls in a storage building and  is how I wired it.   Click for larger view  When I checked the wiring it registered 120V when the switch was on, and right around 50V when the switch was off.  Why would power still be getting to the light (I'm guessing there is a problem with the switch) and why would it only be 50V?  Oh, and where everything branches off at the beginning I have a junction box there where all of the wires are joined there. Simple combination/probability question based on string-length and possible-characters Assuming "complete randomness" and given a string with a length of 20 characters where each character may be one of 62 possible characters:    What are the total number of combinations possible? (Guessing 20 to the power of 62.)  Also, if new strings are randomly selected one after another and added to a list of strings selected so far, how many strings must be selected before the chance of selecting a string that has already been selected is below 1-in-100000 ($10^{-5}$)?   Note: 62 comes from: numeric digits (0-9), uppercase letters (A-Z), and lowercase letters (a-z). Can I bake in a convection microwave? I have microwave oven, but I can't bake cakes and cookies in it. So I need an electric oven, but people are suggesting I buy a convection microwave to do both baking and normal microwaving. Will that work? Or do I really need to get an electric oven to bake? What is the opposite of "personification"? I want a word that means the opposite of personification.  What is the correct word for describing people with the characteristics of an object/as if they are objects?  I found the word chremamorphism on some forums, but it doesn't seem to be included in the two online dictionaries I searched. Adding a loop cut to an object with a circular profile renders the object non-circular.  This is true for any object with a circular frame e.g. plain circles, UV-spheres, cylinders, cones, etc.  Top-left is the mesh of a plain circle with Subsurf modifier applied (bottom-left).  Notice how adding one additional vertex (top-right) makes the circle skewed (bottom-right). Is there a tool/transform/way to correct the circle? Knowing the solution to this should help solve the problem for all the aforementioned objects.  I tried selecting all points and applied the To Sphere transform in vain.  It didn't help. I thought putting the vertex r radius away from the circle's centre like the rest of the vertices will help, looks like it doesn't. Can I use a higher rank tensor field as the metric field? What a metric should necessarily do is it should give me a way to associate a frame invariant number with a given pair of spacetime events. Now, if I use a higher rank tensor field (say, for example, a tensor field of rank 3: $g_{\mu \nu \rho}$) then also I can certainly produce a frame invariant scalar out of a given displacement $\vec{A}$ in this trivial way: $ I := g_{\mu \nu \rho} A^{\mu}A^{\nu}A^{\rho}$. Since the components of the higher rank tensor and that of the displacement vector are going to transform in a covariant and a contravariant manner respectively, the cooked up quantity is certainly a scalar.   Another crucial property, which I think has more direct physical content than the previous one, is that between two inertial frames, at least one such transformation should exist that leaves at least one metric invariant. i.e., There should exist at least one combination of transformation matrix $\displaystyle\frac{\partial{x^{\alpha}}}{\partial{x^{\mu '}}}$ and metric $g_{\alpha \beta \gamma}$ that satisfies the following equation:      $\displaystyle\frac{\partial{x^{\alpha}}}{\partial{x^{\mu '}}}\displaystyle\frac{\partial{x^{\beta}}}{\partial{x^{\nu '}}}\displaystyle\frac{\partial{x^{\gamma}}}{\partial{x^{\rho '}}} g_{\alpha \beta \gamma} - \delta_{\mu '}^{\alpha}\delta_{\nu '}^{\beta}\delta_{\rho '}^{\gamma} g_{\alpha \beta \gamma} =0$    The last thing I can think of that can put a restriction on the choice of a tensor as a metric is the existence of a possibility of finding a metric compatible symmetric connection field. Following the usual procedure of finding the expression for a metric compatible symmetric connection field, I reached following condition (unlike the case of the usual two rank metric where we get a full-fledged expression) for the connection in the terms of the metric:      $g_{\nu \rho k_1} \Gamma^{k_1}_{\mu \lambda} - g_{\lambda \mu k_2} \Gamma^{k_2}_{\rho \nu} = \displaystyle\frac{1}{2} (\partial_{\nu}g_{\rho \lambda \mu} + \partial_{\rho}g_{\lambda \mu \nu}  - \partial_{\lambda}g_{\mu \nu \rho}  - \partial_{\mu}g_{\nu \rho \lambda}) $   My question is that if it is possible to satisfy the two highlighted conditions then can we use such a 3 rank (or even higher rank tensors with similarly produced conditions) tensor fields as metric fields?   PS: This is NOT a proposal for a new home-production theory of gravity (or that of anything for that matter) but rather it is just that I am trying to understand why a two rank tensor is used in General Relativity as the metric. Thank you. PHP regular expressions: No ending delimiter '^' found in Using image sequence of medical scans as volume data in cycles I know it's possible to do this in BI, but I need your help to do this in cycles. For now, I have a setup to use an image sequence as volume but it only shows 1 slice/frame. I'm using generated texture coordinates for easy mapping (0-1 on each axis). The images are mapped on XY and I would like to use normalized frame# as Z coordinate to map the sequence as a volume.       Images sequence can be found  (I'm using 16-bit TIF files of MRBrain in this exemple).    Any solution is welcome but try to keep it simple and user friendly :).  Final Edit: I had a hard time choosing between Lemon's and PGmath's answers. Lemon's is more user friendly and flexible, and uses the image sequence without any change inside blender. PGmath's uses a 3rd party converter to make the sequence 1 single image, but allows GPU rendering. Well, ImageMagick's command line is : "convert +append *.tif anim.tif" from the folder where the sequence is unzipped. Not so hard. That's why I accepted PGmath's answer.      Now, i played with it, and here's the result.  The "volume" object contains the volume shader (playing with the color ramp gives funny things) and the boolean modifiers (turn them off to see the complete volume, but reduce the final density multiplier for better view). The "Slice Control" arrow empty controls the slice position/rotation. The "Texture Mapping" object controls...the mapping, if it need some tunning (position, rotation, scale, and then tiling if necessary?). Blender 2.8 : python code to switch shading mode (between wireframe and solid mode) If i switch between solid and wireframe mode, i can see in the info window that these commands are invoked :  bpy.data.screens["Layout"].shading.type = 'WIREFRAME' bpy.data.screens["Layout"].shading.type = 'SOLID'   Now i want to execute this command using python console. So i cut and paste the codes into python console but i got this error :   &gt;&gt;&gt; bpy.data.screens["Layout"].shading.type = 'WIREFRAME' Traceback (most recent call last):   File "&lt;blender_console&gt;", line 1, in &lt;module&gt; AttributeError: 'Screen' object has no attribute 'shading'  &gt;&gt;&gt; bpy.data.screens["Layout"].shading.type = 'SOLID' Traceback (most recent call last):   File "&lt;blender_console&gt;", line 1, in &lt;module&gt; AttributeError: 'Screen' object has no attribute 'shading'   Does anyone know why ? and what the correct script should i use in python console ?  Thanks I have the following code for my masterpage:  &lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server" style="position:relative"&gt;     &lt;title&gt;Masterpage&lt;/title&gt;     &lt;asp:ContentPlaceHolder id="head" runat="server"&gt;     &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt;     &lt;form id="main" runat="server" style="position:relative"&gt;     &lt;div&gt;         &lt;asp:ContentPlaceHolder id="MainContent" runat="server"&gt;         &lt;/asp:ContentPlaceHolder&gt;     &lt;/div&gt;     &lt;/form&gt;     &lt;br style="clear:both" /&gt;     &lt;form id="footer" style="position:relative"&gt;     &lt;div&gt;         &lt;center style="font-size:small"&gt;Footer content&lt;/center&gt;     &lt;/div&gt;         &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;   My problem is that when the MainContent isn't filling up the page the footer is not at the bottom of the page. Is there a way to force the footer to stay on the bottom of the page if the main content isn't pushing it all the way down? When the main content is "big" enough it pushes the footer down with the content and displays on the bottom when scrolling down, but not if it is to small.  Anybody know how to fix this? Quadratic models with R. The use of poly(..) and I(..) functions (R-language) What causes the different results below?    var1 = c(0.04875,0.13725,0.28350,0.50975,0.77425,0.94700,0.05325,0.14050,0.29725,0.51525,0.79000,0.95400,0.04625,0.15250,0.29000,0.53300,0.79825,0.95225,0.05025,0.14625,0.28800,0.52625,0.78200,0.95925,0.04700,0.14225,0.30325,0.53500,0.79325,0.95875,0.04775,0.13850,0.28675,0.54250,0.78300,0.95175,0.05150,0.12725,0.30175,0.54725,0.79475,0.96275,0.05375,0.14100,0.30050,0.53275,0.78100,0.96175,0.05450,0.15300,0.29650,0.52850,0.80100,0.95675,0.05425,0.13975,0.30875,0.56025,0.80575,0.96100,0.05100,0.15350,0.31175,0.53300,0.78900,0.96000,0.04650,0.13525,0.29600,0.53625,0.78475,0.96375,0.05375,0.13900,0.29600,0.53725,0.78700,0.95800,0.05075,0.14350,0.29225,0.54525,0.80275,0.95800,0.05050,0.13200,0.29850,0.52700,0.80525,0.96150,0.05150,0.14050,0.29450,0.54375,0.79450,0.96375,0.05375,0.13525,0.30475,0.55250,0.79425,0.96025,0.04950,0.14500,0.29425,0.52250,0.78475,0.95650,0.05225,0.14425,0.29225,0.53150,0.80425,0.95375)  var2 = c(1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6)  var3 = c(4,4,4,4,4,4,6,6,6,6,6,6,8,8,8,8,8,8,10,10,10,10,10,10,12,12,12,12,12,12,14,14,14,14,14,14,16,16,16,16,16,16,18,18,18,18,18,18,20,20,20,20,20,20,22,22,22,22,22,22,24,24,24,24,24,24,26,26,26,26,26,26,28,28,28,28,28,28,30,30,30,30,30,30,32,32,32,32,32,32,34,34,34,34,34,34,36,36,36,36,36,36,38,38,38,38,38,38,40,40,40,40,40,40)   summary(aov(var1~as.factor(var2)*var3)) summary(aov(var1~as.factor(poly(var2,1))*poly(var3,1)))   I might not understand well how poly(..) and I(..) work. Could you give me some hints about these two functions?  (I aim to create models of different degree (quadratic, cubic, etc..) and compare their BIC (or AIC)). the converse of Pythagoras Theorem Is it possible to prove the converse of the Pythagoras theorem with out a geometric proof?.That is from $a^2+b^2=c^2$ to $\Theta=90^\circ$ Please could someone tell me where can I download Ubuntu 32bit without using a torrent? Thanks Do adjustable length lightsabers exist in Star Wars universe? I always see blades of lightsabers have more or less the same length (dual blades are double). Why is that?  Can't a longer or shorter length be advantage in some case?    I am NOT expecting infinite length lightsabers (due to energy issues), but have we seen adjustable length blades in the Canon? Can I reposition AdSense ads with Javascript (for responsive purposes)? I have a responsive blog where ads are displayed in the sidebar. On mobile devices however, the sidebar is pushed to the bottom below the posts.   So what I'd like to do is move the ads from the sidebar and insert them into the post itself on mobile devices   I do this using javascript:  &lt;div id="main"&gt;     &lt;div id="article"&gt;         &lt;div class="post"&gt;             &lt;p class="intro"&gt;&lt;/p&gt;             &lt;p class="text"&gt;&lt;/p&gt;         &lt;/div&gt;     &lt;/div&gt;     &lt;div id="sidebar"&gt;         &lt;div class="adbox-1"&gt;&lt;/div&gt;     &lt;/div&gt;     &lt;/div&gt;  &lt;script&gt;     jQuery(document).ready(function(){          // AD REPOSITION         if ($(window).width() &lt; 769) {             $('.ad-box1').insertAfter($('.intro'));                    }      }); &lt;/script&gt;   The ads are always loaded in the sidebar, but if the screen width is below 768px, they will be moved somewhere else.  I wonder if this would violate AdSense terms of service? How can I circumvent regional restrictions in Google's Play Store? I'm travelling to country X. I want to install an application which isn't available in my country, but is available in country X; but I prefer to download and install it in advance, while the data connection is still cheap.  Unfortunately, the Play Stores does not allow me to install this app. Is there any way to circumvent this limitation?