I just finished my Ph.D thesis using LaTeX and I create it in a structured way with several folders and .tex documents inside. I have a master main.tex file and add the different chapters, sections etc. with \include or \input in the master file.   Now I want to create only one .tex file with all my thesis. I wonder if there is a what to do that (not cropping or copy/paste) maybe using some package or a script? I appreciate any information.
Suppose I have a document with multiple include or input statements  \input{fileA} \input{fileB}   etc.   Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the actual content of fileA etc. without copying it manually?
How to run Visual Studio post-build events for debug build only How can I limit my post-build events to running only for one type of build?  I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode. How to find a program which is preventing sleeping? I am noticing that recently my laptop does not go to sleep/lockout after its configured X minutes of inactivity like it did in the past. I suspect some program (like media player does) is preventing it from going to sleep. I do not have any media player running, so how can I find which program is preventing it from sleeping?  It does go to sleep if I close the lid. But I would also like for it to go to sleep after X minutes of inactivity.  Update: Upgraded to Ubuntu 18.04 with default Gnome and Wayland enabled. Merging dictionaries in C# What's the best way to merge 2 or more dictionaries (Dictionary&lt;T1,T2&gt;) in C#? (3.0 features like LINQ are fine).  I'm thinking of a method signature along the lines of:  public static Dictionary&lt;TKey,TValue&gt;                  Merge&lt;TKey,TValue&gt;(Dictionary&lt;TKey,TValue&gt;[] dictionaries);   or  public static Dictionary&lt;TKey,TValue&gt;                  Merge&lt;TKey,TValue&gt;(IEnumerable&lt;Dictionary&lt;TKey,TValue&gt;&gt; dictionaries);   EDIT: Got a cool solution from JaredPar and Jon Skeet, but I was thinking of something that handles duplicate keys. In case of collision, it doesn't matter which value is saved to the dict as long as it's consistent. My distribution is normal; Kolmogorov-Smirnov test doesn't agree I have a problem with the normality of some data I have:  I've done a Kolmogorov test which says it isn't normal with p=.0000,  I don't understand: the skewness of my distribution =-.497, and the kurtosis =-0,024  Here is the plot of my distribution which looks very much normal ...  (I have three scores, and each one of this scores isn't normal with a significant p-value for the Kolmogorov test ... I really don't understand ) Doing a little reading over the break (The Probabilistic Method by Alon and Spencer); can't come up with the solution for this seemingly simple (and perhaps even a little surprising?) result:     (A-S 1.6.3) Prove that for every two independent identically distributed real random variables $X$ and $Y$,   $$Pr[|X-Y| \leq 2] \leq 3 Pr[|X-Y| \leq 1].$$ How can I re-enter the US after time in Canada on the VWP? I am an Australian citizen, currently studying in Canada.   I entered the United States In July 22nd for 3 days, where I stayed in Seattle before leaving to return to Vancouver. I then again entered the states on 11th of October and returned on the 18th of October.  On October 19th my original and first Electronic System for Travel Authorization (ESTA), expired. I was under the impression that if I was to travel into the United States again I would have to apply for another ESTA and start the 90 days again, which I was planning on around December the 10th. In addition to this I am flying into Los Angeles on the 17th of December 2014 (where I plan to travel around the USA until flying out of Los Angeles again on 18th of January back to Australia).  However, after speaking to friends and looking at the website I have become confused on what my next course of action should be.  I am told that I cannot apply for another ESTA and be granted another 90 days visit into the USA, whilst I am in Canada and thus not be able to take any of my flights.  What would be the most appropriate action so that I can take my flights leaving North America and also travel the United States? Placing a single algorithm in two columns Can a hotel kick you out if you let an unregistered guest share a room with you? We are going to an event and because of this event all hotels are fully booked. Now a friend wants to join us, but can't find accommodation. We are okay with him crashing in our hotel room, either on the couch or on a self-inflatable mattress. We have done this in the past where we secretly sneaked the "guest" in.   It is not that we don't want to pay the tourist tax, it is that when ask and the hotel says no, we can't sneak him in, because we drew attention to ourself. In many hotels you can just order another bed, but there are also a lot that don't have that service.   I don't have any ethical problems with my behavior of secretly hosting a guest. I did pay for the room. I don't like being sneaky about it, since again I do pay for the hotel room. Also if I have to choose between sneaking someone in the room to crash on the couch or let him/her sleep on bench in the park. I opt for the first.   Am I just worrying to much and will being honest about it in the end be acceptable to most if not all hotels? Show that  the  alternating  group  $A_4$  of all even permutations of $S_4$ does not contain a  subgroup of order $6$.   For me am thinking to write all elements of $A_4$ and trying to find every cyclic subgroup generated by each element of $A_4$, then I have to check whether there exist such a subgroup or not! This is a long procedure for me, I ask if there is a short way to do this. Preloading images with jQuery I'm looking for a quick and easy way to preload images with JavaScript. I'm using jQuery if that's important.  I saw this here ():  function complexLoad(config, fileNames) {   for (var x = 0; x &lt; fileNames.length; x++) {     $("&lt;img&gt;").attr({       id: fileNames[x],       src: config.imgDir + fileNames[x] + config.imgFormat,       title: "The " + fileNames[x] + " nebula"     }).appendTo("#" + config.imgContainer).css({ display: "none" });   } };   But, it looks a bit over-the-top for what I want!  I know there are jQuery plugins out there that do this but they all seem a bit big (in size); I just need a quick, easy and short way of preloading images! Sphere inside a conical vessel touches the lid A conical vessel with semi-vertical angle 30 degrees and height 10.5 cm has a thin lid. A sphere kept in the vessel touches the lid. The radius of the sphere in cm is ... Is centripetal acceleration mandatory for circular motion? Get the size (size in Kb or MB) of an featured image? The cardinality of the set of all finite subsets of an infinite set How can $\pi$ be irrational if it can be calculated using an infinite series of rational numbers? Is there a cross-browser onload event when clicking the back button? For all major browsers (except IE), the JavaScript onload event doesn’t fire when the page loads as a result of a back button operation — it only fires when the page is first loaded.  Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE, …) that solves this problem? I’m familiar with Firefox’s pageshow event but unfortunately neither Opera nor Safari implement this. Inheriting constructors I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous version.   I have done a git log along with a git diff to find the revision I need, but just have no idea how to get the file back to its former state in the past. What is the definition of a symmetric distribution? I want to create a simple figure where images are connected with arrows. Here is what I did:  \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) {\includegraphics[width=0.2\textwidth]{b}}; \draw[-&gt;] (A) to (B); \end{tikzpicture}     But I want the arrow to start and end right at the images with no space between. How can I do that?