Good evening,  I'm writing my thesis in Latex, with which I already had the pleasure to work for some other projects, but I'm now facing a problem I don't know how to solve. I'll try to get to the point as straight as possible: let's say I have a chapter of simulation results, which includes a huge set of images. This chapter is subdivided itself in some sections, among which the images are distributed. Now, what I would like to have is a way to have all the images related to section A inseted before section B starts and so on. I don't mean I want to precisely insert them where I want (the most of them are set of subfigures, difficult to be fit anywhere), it would be enough to be able to tell the compiler to put them all before the next section starts.  Do someone of you have any suggestion on the matter ?   Thanks a lot in advance  Michele
Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break.  Is there a way to force a new section to start on a new page, after any unplaced floats?
#include&lt;iostream&gt; using namespace std;  class A  {    int a;    int b;    public:    void eat()    {       cout&lt;&lt;"A::eat()"&lt;&lt;endl;    } };  class B: public A {    public:    void eat()    {        cout&lt;&lt;"B::eat()"&lt;&lt;endl;     }  };  class C: public A {     public:    void eat()     {        cout&lt;&lt;"C::eat()"&lt;&lt;endl;     }  };  class D: public B, C {  };  int foo(A *ptr) {  ptr-&gt;eat();  } main() {  D obj; foo(&amp;(obj.B)); //error. How do i call with D's B part.  }   The above foo call is a compile time error.  I want to call foo with obj's B part without using virtual inheritance. How do i do that.   Also, in case of virtual inheritance, why the offset information need to be stored in the vtable. This can be determined at the compile time itself. In the above case, if we pass foo with D's object, at compile time only we can calculate the offset of D's A part. I've been working with the Fermat numbers recently, but this problem has really tripped me up. If the Fermat theorem is set as $f_a=2^{2^a}+1$, then how can we say that for an integer $b&lt;a$, the $\gcd(f_b,f_a)=1$? How to show $\lim_{x \to 1} \frac{x + x^2 + \dots + x^n - n}{x - 1} = \frac{n(n + 1)}{2}$? Is there any way I can 'undo' the factorial operation? JUst like you can do squares and square roots, can you do factorials and factorial roots (for lack of a better term)?   Here is an example: 5! = 120.  Is there a way I can work out the number that must be factorialed (??) to give the answer 120? It would be nice to update the profile page from within the app.  Perhaps not many people update their profiles more frequently, but when required to do so, I would prefer to do it from the app instead of the mobile browser. Invertibility of the Product of Two Matrices I have shown that if two $n\times n$ matrices $A$ and $B$ are invertible, then $AB$ is also invertible. I am having problems though with showing that $(AB)^{-1}=B^{-1} A^{-1}$. I thought of using their left-multiplication transformations but it seems that this is only associative and not commutative so I can reverse $L_A L_B$ Order of an element in a finite cyclic group Why can't light escape from a classical black hole? Which year does Spider-Man: Homecoming take place in? The first scene of the movie is presumably set in the immediate aftermath of The Avengers. The movie then fast-forwards to '8 years later'.  But Spider-Man already appeared in Civil War as a high school student, which he still is in this movie. So what's the timeline here? If Avengers was set in 2012 and Civil War in 2016, how can Homecoming be in 2020?  Or am I wrong in assuming the canonical timelines of the other movies? Convert short[] into a grayscale image Will leaving corpses lying around upset my prisoners? I see questions/information online about how to get rid of corpses but I'm not sure what the consequences to having them lying around are.  I know that I can use a morgue to store them and that they will eventually be taken away in a hearse. However, I've always just left them lying around. This doesn't seem to have any obvious consequences.  Do they upset prisoners or staff (e.g. increasing the danger level beyond what death normally does)? Make them sick? Slow down pathing? Is this something that's not implemented yet or is leaving dead bodies all over the place meant to be completely fine?  The wiki's pages for  and  don't shed any light on this. All I'm finding is the how of getting rid of corpses/glitches related to it but not why it matters in the first place. All I've seen that's related is that apparently prisoners can loot guard corpses for keys, but there's no obvious consequences for prisoner corpses which are what I tend to end up with.  So why not just leave them in the corridors? I am non EU national, living in a Schengen country for past 5 years. I hold Indian passport and EU permanent residence card valid for 5 years.   Can i go to UK for few days to visit friends without a visa?  I am aware that UK is not in Schengen, and Schengen visas and residence permits issued by Schengen country is not valid for United Kingdom? But what about the PR card issued by a Schengen country?  I am also aware that EU citizens carrying EU passport have no restrictions to visit UK. How to recenter an object's origin? So, I'm working creating a lamp... yes, newbie here.  After modeling for a bit, I noticed that my point of origin was no longer the center of my object:    How to I reset an object origin point to the center of it's geometry? "Out of pocket"? I'm increasingly hearing the phrase "out of pocket" used in America as a colloquialism to mean "away from the office", "unavailable", or "incommunicado".     I apologize for not replying sooner; I have been out of pocket.    What is the etymology of this usage? It always sounds odd to me, since I had previously always associated the phrase with expenses, e.g., "I had to pay for the service out of pocket," meaning, "I had to pay for the service using my own money." Should either of these usages be avoided? What is the extent of their acceptance? JavaScript variable definition: Commas vs. Semicolons How to control object's path follow speed based on its position Automatically make various multiple stroke colour the same as various underlying fill colours. I have auto traced a photograph in illustrator - its got thousands of vectors once I expand it and illustrator has converted each of them to a filled colour - I want to now trace the edges of them with a grungy brush but using the underlying fill colour. Where in illustrator can I stroke or outline these fills using the underlying colour - surely this is something that the program automatically does?   I've found this script online but don't know how to implement it. I'm new to this so any help appreciated. Many thanks.   James   var idoc = app.activeDocument;   var sel = idoc.selection;    for (i=0; i&lt;sel.length; i++) {       var ipath = sel[i];       ipath.stroked = true;       ipath.strokeColor = ipath.fillColor;   } Train loss and accuracy In theory, is it possible that the loss on the train set will increase together with the train set accuracy? (in the normal case the train set loss should go down) And vice versa, can the train loss decrease along with the accuracy?   Note: This is obviously different than the classic underfit / overfit cases which are easier to grasp. If I'm not wrong, torque is perpendicular to both the radius and force i. e. It is along the axis of rotation. Questions that arise are- why do we consider the length between the axis/point of rotation while calculating torque? More importantly why is torque a cross product? If you know the Index, Value or Text. also if you don't have an ID for a direct reference.  ,  and  are all helpful answers.  Example markup  &lt;div class="selDiv"&gt;   &lt;select class="opts"&gt;     &lt;option selected value="DEFAULT"&gt;Default&lt;/option&gt;     &lt;option value="SEL1"&gt;Selection 1&lt;/option&gt;     &lt;option value="SEL2"&gt;Selection 2&lt;/option&gt;   &lt;/select&gt; &lt;/div&gt;