We currently have Google Drive running on our server to transfer files back and forth with another location. We've gotten pretty big files sometimes, and it's tedious having to keep checking to see if the upload and download are both finished.  So my thought was that surely I could set up the Task Scheduler to do this (I'm on Windows 7). I'd want it to run when a log shows that a file was created inside a certain folder that should be watched. However I don't know where I'd find that in the logs, and I'm unsure whether the log would be different or perhaps even non existent since it would be the server machine that actually receives the file.  Can anyone help figure out how to approach this?
There are similar questions for  and , but I'm after a Windows solution here.  The problem is as follows: I want to write several (js) script files in a folder, and have a  program monitor that folder for file changes and new files being added, and run a command whenever that happens (to compile them all into one single file).  The solution has to:   Monitor both file changes and new files being added, in a folder. Run a command only if there is any change.   It would be best if it either is a built-in solution (like a JScript or VBscript snippet), or something that does not require installation.
Genetically modified humans study insectoid alien miners with super-intelligent hive-mind This is a short story that appeared in a collection. Two genetically-modified humans (corporate anthropologists, basically) travel to a planetoid inhabited by an insect race that is mining the planet in order to study the race. While there, they are practically ignored, as the individual members of the race lack consciousness. The humans determine a type of pheromone is used to control the worker caste, and co-opt several members to create a living area. They make plans to put the mining towards human ends, but before that can happen they are discovered. The presence of the artificial pheromones wakes up a hive-mind, super-intelligent bug, who then bargains with the surviving member of the team (the man) after killing and taking over the female member of the team.  The collection was read at some point between 2000-2005. Spoilers from the Season 7 finale of Game of Thrones, "The Dragon and the Wolf".  In one of the final scenes, Jaime and Cersei are discussing Jaime's future with them, at which point       Cersei nods her head, signaling the kill order for 'The Mountain', yet 'The Mountain' pulled out his sword but why didn't he kill Jaime? Several years ago I heard of something called dummy subjects in high school. It was then stated that, for example, it is a dummy subject when it starts many instances of sentences, e.g.        It is rainy today.   It is hard to imagine how hard is to live alone.   It is not my university degree that matters here.     My question is if we can use it with plural subjects? For example in       If some think that in Mahmoud Dowlatabadi’s works it is only social themes that matter and the writer is ignoring fictional arrays and artistic techniques, at least, endings of his stories show wrongness of this idea.     My question deals with the italicized part. If this usage is OK, can we also write they are social themes that matter? I mean can they also play the role of a dummy subject? "It looks straightforward, but actually it isn't" Can a 3rd party app *technically* take better pictures? I've seen in several forums that some phones have very good cameras and the photos  taken are compressed too much and the details are lost.  I was wondering whether a 3rd party application (forgetting the post processing done by the application) have access to the full resolution image without any compression.  So can another application access the raw data from the camera or all applications gets the same raw data when they access the camera? class and private variables Are Complex Substitutions Legal in Integration? This question has been irritating me for awhile so I thought I'd ask here.  Are complex substitutions in integration okay?  Can the following substitution used to evaluate the Fresnel integrals:  $$\int_{0}^{\infty} \sin x^2\, dx=\operatorname {Im}\left( \int_0^\infty\cos x^2\, dx + i\int_0^\infty\sin x^2\, dx\right)=\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)$$  Letting $ix^2=-z^2 \implies x=\pm\sqrt{iz^2}=\pm \sqrt{i}z \implies z=\pm \sqrt{-i} x \implies dx = \pm\sqrt{i}\, dz$  Thus the integral becomes  $$\operatorname {Im}\left(\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz\right)$$  This step requires some justification, and I am hoping someone can help me justify this step as well: $$\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz=\pm\sqrt{i}\int^\infty_0\exp(z^2)\, dz=\pm\sqrt{i}\left(\frac{\sqrt{\pi}}{2}\right)$$  Thus  $$\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)=\operatorname {Im}\left(\pm\frac{\sqrt{i\pi}}{2}\right)=\operatorname {Im}\left(\pm\frac{(1+i)\sqrt{\pi}}{2\sqrt{2}}\right)=\pm\frac{1}{2}\sqrt{\frac{\pi}{2}}$$  We find that the correct answer is the positive part (simply prove the integral is positive, perhaps by showing the integral can be written as an alternating sum of integrals).  Can someone help justify this substitution?  Is this legal? "I saw him crossing" vs. "I saw him cross" I saw him crossing the road.   I saw him cross the road.   Which one is correct and why? How to prove this limit composition theorem? Which databases use real multidimensional indices? Is oracle ever using several indices to get data from tables, or will it always take the one that seems to have the highest selectivity? How about other dbms? In non-relativistic QM, the $\Delta E$ in the time-energy uncertainty principle is the limiting standard deviation of the set of energy measurements of $n$ identically prepared systems as $n$ goes to infinity. What does the $\Delta t$ mean, since $t$ is not even an observable? How do you check if a selector matches something in jQuery? In Mootools, I'd just run if ($('target')) { ... }.  Does if ($('#target')) { ... } in jQuery work the same way? Proving that $7^n(3n+1)-1$ is divisible by 9 I'm trying to prove the above result for all $n\geq1$ but after substituting in the inductive hypothesis, I end up with a result that is not quite obviously divisible by 9.   Usually with these divisibility induction problems, it falls apart nicely and we can easily factorise say a 9 if the question required us to prove that the expression is divisible by 9. However in this case, I do not end up with such a thing.  My work so far below:  Inductive Hypothesis: $7^k(3k+1)-1=9N$ where $N\in\mathbb{N}$  Inductive Step:  $7^{k+1}(3k+4)-1 \\ =7\times 7^k(3k+1+3)-1 \\ =7\times \left [ 7^k(3k+1)+3\times 7^k \right ] -1 \\ = 7 \times \left [ 9N+1 + 3 \times 7^k \right ] -1 \\ = 63N+21\times 7^k+6 \\ = 3 \left [ 21N+7^{k+1}+2 \right ]$   So now I need to somehow prove that $21N+7^{k+1}+2$ is divisible by 3, but I'm not quite sure how to proceed from here... Surjective morphism of affine varieties and dimension I'm trying to do the following exercise from the book An Invitation to Algebraic Geometry:     Show that if $X \to Y$ is a surjective morphism of affine algebraic varieties, then the dimension of $X$ is at least as large as the dimension of $Y$.   Could anyone give me a hint? I'm looking for a proof that avoids commutative algebra since it is not mentionned in the book at this point. Removable singularities and an entire function Function $f(z)$ is an entire function such that $$|f(z)| \le |z^{n}|$$ for $z \in \mathbb{C}$ and some $n \in \mathbb{N}$.  Show that the singularities of the function $$\frac {f(z)}{z^{n}}$$ are removable. What can be implied about the function $f(z)$ if moreover $f(1) = i$? Draw a far-reaching conclusion.  My attempt: If the singularities of $\frac {f(z)}{z^{n}}$ are removable, it is entire (not sure, need help with the justification) and bounded, so constant from Liouville's theorem, the constant value of the funcion is $i$, hence $f(z)=iz^{n}$.   But what about the $n$ here, is it arbitrary? Could somebody help me prove the removability of the singularities and suggest if my attempt is going the right way? How to calculate Area Under the Curve (AUC), or the c-statistic, by hand I am interested in calculating area under the curve (AUC), or the c-statistic, by hand for a binary logistic regression model.  For example, in the validation dataset, I have the true value for the dependent variable, retention (1 = retained; 0 = not retained), as well as a predicted retention status for each observation generated by my regression analysis using a model that was built using the training set (this will range from 0 to 1).  My initial thoughts were to identify the "correct" number of model classifications and simply divide the number of "correct" observations by the number of total observations to calculate the c-statistic. By "correct", if the true retention status of an observation = 1 and the predicted retention status is > 0.5 then that is a "correct" classification. Additionally, if the true retention status of an observation = 0 and the predicted retention status is &lt; 0.5 then that is also a "correct" classification. I assume a "tie" would occur when the predicted value = 0.5, but that phenomenon does not occur in my validation dataset. On the other hand, "incorrect" classifications would be if the true retention status of an observation = 1 and the predicted retention status is &lt; 0.5 or if the true retention status for an outcome = 0 and the predicted retention status is > 0.5. I am aware of TP, FP, FN, TN, but not aware of how to calculate the c-statistic given this information. Which form should be used for at­tribu­tive nouns like “stu­dent union”: sin­gu­lar or plu­ral, or pos­ses­sive sin­gu­lar or pos­ses­sive plu­ral? When should a noun that’s used at­tribu­tively to de­scribe an­other  noun be plu­ral, and when should it be sin­gu­lar?  And when should it be pos­ses­sive, like bak­er’s dozen and when should it be plu­ral pos­ses­sive, like farm­ers’ mar­ket?  In other words, why do we say teach­ers union rather than teacher  union?  And why do we say wed­ding plan­ner rather than wed­dings plan­ner?  Which of these vari­ants is or are cor­rect?        stu­dent union   stu­dents union   stu­den­t’s union   stu­dents’ union      What about com­mu­nity val­ues ver­sus com­mu­ni­ty’s val­ues?  Please note I am look­ing for a gen­eral rule or at least some tips.  These are only ex­am­ples.  Up­date: It seems even na­tive speak­ers fol­low their per­sonal  style to write such com­pound words. I won­der why in the IELTS lis­ten­ing sec­tion, the lan­guage learner has to write a spe­ci­fic form and there is no rule for this. Are common cryptographic hashes bijective when hashing a single block of the same size as the output? Seeking documentation for {z}/{x}/{y} syntax in tilesource urls? Speaking of tilesource urls such as   http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png  is there any technical documentation or canonical reference for the curly braces syntax?  I'd specifically like to know what other things can be used in curly braces, and in which places, and how they work. The HDD I have my Ubuntu installed is about to fail. I would rather not lose 3 years worth of data, customisation and apps. I am looking for a way to move the complete system (SWAP included, because I'm not sure if I can relink the system to a new SWAP partition) to another HDD. But not the complete HDD&lt; only the partition containing Ubuntu, to a partition on a different HDD. Basically I'd like to do what I've been able to do with Norton Ghost for my Windows install. I thought about using Clonezilla but I think I would have issues with GRUB (Especially trying to boot from a different UUID than what is in the conf file). do you know of any way this could be done?  PS, my home directory is encrypted but that's not really an issue, because I can work around that.  EDIT: changed the explanation to make it clearer