Source code  I'm working on a  which brings 5 files:   cassio.bib: bibliography comandos.tex: a rich set of commands for easiness of typing tg.tex: document's source code tg.pdf: generated PDF Makefile: compilation tool   To compile it, type make tg.pdf to generate tg.pdf.  The problem  I have a problem related to algorithm environment in algorithm2e package.  Within tg.pdf, plase take a look at page 33. This algorithm should be placed within section (5.2) (in the page 32) and right before section (5.3). The corresponding code happens at line 1976 in the tg.tex file.  A similar problem  A similar problem happens at tg.pdf (page 43). This algorithm and the subsequent text (Parte I: Apêndice) should be separated by a page break; i.e., they should not appear in the same page.  My goal is to force algorithm to be rendered in the order it is written in tg.tex. Could anyone help me figuring out where is the problem?
How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference
Floating sidebar clash with footer in team page Here is a screenshot from  page, with the floating sidebar: (all good so far)        After I scroll down to footer it just combines both:        Can it please be fixed? I have data with a column containing a number value, and I want to divide the value of each feature by the total sum of all the values in the column (to get a percentage).  So I would like to know if there is some simple syntax in the QGIS field calculator to get the sum of a column, preferably without resorting to for loops and what not.    I have a shapefile where feature A has the value X in column B. How can I summerize the values for all features in column B in order to divide value X to get a percentage for each feature? Why is $ 561 = 3*11*17 $ the smallest Carmichael number? Extracting raster values at points using Open Source GIS? How do defenders of libertarian freewill reconcile it with constraints imposed by the laws of physics? Four tasks in parallel... how do I do that? I have a bunch of PNG images on a directory. I have an application called pngout that I run to compress these images. This application is called by a script I did. The problem is that this script does one at a time, something like this:  FILES=(./*.png) for f in  "${FILES[@]}" do         echo "Processing $f file..."         # take action on each file. $f store current file name         ./pngout -s0 $f R${f/\.\//} done   Processing just one file at a time, takes a lot of time. After running this app, I see that the CPU is just 10%. So I discovered that I can divide these files in 4 batches, put each batch in a directory and fire 4, from four terminal windows, four processes, so I have four instances of my script, at the same time, processing those images and the job takes 1/4 of the time.  The second problem is that I lost time dividing the images and batches and copying the script to four directories, open 4 terminal windows, bla bla...  How do that with one script, without having to divide anything?  I mean two things: first how do I from a bash script, fire a process to the background ? (just add &amp; to the end?) Second: how do I stop sending tasks to the background after sending the fourth tasks and put the script to wait until the tasks end? I mean, just sending a new task to the background as one tasks end, keeping always 4 tasks in parallel? if I do not do that the loop will fire zillions of tasks to the background and the CPU will clog. Prove or disprove: For every integer a, if a is not congruent to 0 (mod 3), the a^2 is congruent to 1 (mod 3) Prove or disprove: For every integer a, if a is not congruent to 0 (mod 3), the a^2 is congruent to 1 (mod 3)  SO this is for abstract algebra and I am really struggling with this. Here are some of the definitions and theorems I think would apply.  -an integer a divides and integer b if there is an integer q such that b=aq -Let a and b be integers, with a>0. Then there exist unique integers q and r such that b= aq+r and 0&lt;=r  The question says hint: use 2 cases but I'm not really sure what that means. I'm guessing it wants me to look at it when a is congruent to 0 and when it's not? so i tried to do that but just ended up stuck. below is as far as i got with that attempt  Proof: Case 1 There should be some information about letting variables exist in certain number sets here  assume a is not congruent to 0 mod 3, then 3 does not divide a-0, therefore a-0 does not equal 3q for some q in the integers  I was trying to get this to wind down to thus 3 divides a^2-1 but even tho it seems true (I couldn't find a counter example) I couldn't figure out how to prove it with what I have.  Next i tried reversing it thinking I could contradict it or something.  I think this would be case 2? assume a is congruent to 0 mod 3, then 3 divides a-0 and a-0=3q for some q in the integers, then 3q=a since 0 is the additive identity, therefore 3 divides a,  and again stuck and my brain hurts a little..  Can anyone help me figure out how to work this. Why is AES unbreakable? Is there a drupal.org API for retrieving the list of available modules? Difference between HTMLCollection, NodeLists, and arrays of objects The  tag doesn't appear to be very useful.  It's used in a variety of ways (for reading, writing, showing, transforming, compiling, translating, obfuscating, obtaining, ... source code) on 1747 questions right now, and doesn't appear to be adding any classification value to the site.  Can we get rid of it? In Java, are enum types inside a class static? "There IS/ARE rice, meat and tomatoes on my plate" Objective-C Static Class Level variables 16.04 Japanese Text Input not working Upper bound and lower bound of an integral I have this problem and I don't know where to start. Can you give me some hint, please?  Suppose that $f:[a,b]\to [0,\infty]$ is a lebesgue integrable function. Let $B=\int_a^b fd\mu.$ Prove that $\sqrt{1+B^2}\leq \int_a^b\sqrt{1+f^2}d\mu\leq 1+B$. interior points and limit points of $\{(x,y): x^2+2y^2 < 1\}$ Find out all interior points and limit points of $ A =\{(x,y): x^2+2y^2 &lt; 1\}$  I understand this problem graphically, but i'm not quite sure how to prove the answer rigorously using mathematical word.  My try : Let k be an element of A, and suppose t is an element of $\{(x,y):x^2+2y^2 =1\}$, which makes minimum $||t-k||$. Then $N(k,\delta)\subset A$ when $\delta = \||t-k||$.  I suppose this will work, but I want more clear and detailed proof.  Thank you in advance. What happens to matter in a standard model with zero Higgs VEV? Suppose you reset the parameters of the standard model so that the Higgs field average value is zero in the vacuum, what would happen to standard matter?  If the fundamental fermions go from a finite to a zero rest mass, I'm pretty sure that the electrons would fly away from nuclei at the speed of light, leaving positively charged nuclei trying to get away from each other.  Looking at the solution for the Hydrogen atom, I don't see how it would be possible to have atoms with zero rest mass electrons.  What happens to protons and neutrons?  Since only a very small part of the mass of protons and neutrons is the rest mass of the quarks, and since they're flying around in there at relativistic speeds already, and since the nuclear force is so much stronger than the electrical force with an incredible aversion to naked color, would protons and neutrons remain bound assemblages of quarks and virtual gluons?  Would they get a little larger?  A little less massive?  What would happen to nuclei?  Would they stay together?  If the protons and neutrons hold together and their properties change only some, then I might expect the same of nuclei.  Different stable isotopes, different sizes, and different masses, but I would expect there would still be nuclei.  Also the W and Z particles go to zero rest mass.  What does that do to the electroweak interactions?  Does that affect normal stable matter (outside of nuclear decay modes)?  Is the weak force no longer weak?  What happens to the forces overall? Let's say I have Table A: BookingsPerPerson  Person_Id    ArrivalDate    DepartureDate 123456       2012-01-01     2012-01-04 213415       2012-01-02     2012-01-07   What I need to achieve with a view is the following:  Person_Id    ArrivalDate    DepartureDate    Jan-01    Jan-02    Jan-03    Jan-04    Jan-05    Jan-06    Jan-07 123456       2012-01-01     2012-01-04       1         1         1         1 213415       2012-01-02     2012-01-07                 1         1         1         1         1         1   The system is for events, so each hotel booking could take anything between 1 to 15 days but no more than that. Any ideas would be very much appreciated. Is there a way to set an "Adventure Mode Boundary" in Minecraft?  I am trying to create this village where players can spawn in, and then set out to explore the world and build and do normal minecraft stuff. I don't want them to destroy this village, so I want them to be in adventure mode when they are in the village and then switch them to survival when they leave, and vice-versa. When they return to the village, they get switched back to adventure mode.  In other words, I want to set an "Adventure Mode Boundary" to protect buildings. I am working without mods. I am hoping there is an simple way using command blocks.