How to programmatically logout idle users on Windows Server 2012 R2?
How do I access the list of currently logged on users through Terminal Services Manager in Windows Server 2012?
If two vectors $a$ and $b$ make angle $\alpha$ and $\beta$ with the $x$-axis, prove, using vectors, that:   $$\cos(\beta - \alpha) = \cos \alpha \cos\beta + \sin\alpha \sin\beta$$   I tried taking components of each vector along the plane, but that didn't get me anywhere. I tried taking component of vector $b$ along vector $a$, but I also got stuck there. Can anyone point me in the right direction? Matlab filter electical spikes in accelerometric data Given an alphabet of size $n$, how many strings of length $c$ contain every single letter of the alphabet at least once?  I first attempted to use a recurrence relation to work it out:  $$ T(c) = \left\{ \begin{array}{cr} 0 &amp;\mbox{ if $c&lt;n$} \\ n! &amp;\mbox{ if $c = n$} \\ T(c-1) \cdot n \cdot c &amp;\mbox{ if $c &gt; n$} \end{array} \right. $$  As there's no strings that contain every letter if c &lt; n, and if c = n then it's just all permutations. When c > n you can take any string of size (c-1) that contains all letters (of which there are $T(c-1)$ to choose from), you choose which letter to add (of which there are $n$ choices) and there are $c$ different positions to put it. However, this gives out results that are larger than $n^c$ (the total number of strings), so it can't be right, and I realised it was because you could count some strings multiple times, as you can make them taking different inserting steps.   Then I thought about being simpler: you choose n positions in the string, put each letter of the alphabet in one of those positions, then let the rest of the string be anything:  $$ {c\choose{n}} \cdot n! \cdot n^{c-n} $$  But again this counts strings multiple times.  I've also considered using multinomial coefficients, but as we don't know how many times each letter appears in the string it seems unlikely they would be much help. I've also tried several other methods, some complicated and some simple, but none of them seem to work.  How would you go about working out a formula for this? I'm sure there's something simple that I'm missing. When is a clause not essential? I am having trouble figuring out when to use commas to set off &quot;nonessential&quot; information.  Sometimes it's obvious:  Bob, who is thirty years old, is an alcoholic.  But other times I'm not sure:  The day he quits drinking * he will start a llama farm He has his heart set on owning El Duderino ranch * in New Mexico.  In the first case, my ear says that there should be a comma at *, even though information before it seems essential to me.  In the second case, the stuff after * is not essential, and yet it seems a little much to use a comma. Even that last sentence I wrote confuses me.  &quot;In the second case&quot; seems essential but I used a comma.  Is this correct? Does it depend on personal style and the length of the clause?  Or perhaps I'm misinterpreting the meaning of &quot;essential&quot; in this context? New line in Sql Query Is there a sandbox to post test questions? I have noticed a behaviour that may or may not be a  bug. It is a discrepancy between the preview and the rendered result, which is why I would need to post a question to check it out.  Is there an official place to do that? A local IP address (RFC 1918) on my network that is not … local I've noticed an IP address today on my network (192.168.15.1) which when visited actually goes to a page that has a router webconfig page (Not my router)  The puzzling thing is that i tried traceroute 192.168.15.1 which said that the distance between me and that host is 9 hops, whereas the distance between me and any other computer on my home network is 2 hops away (My computer --> Router --> Host)   Can someone please explain what's going on here ?  tracert output:  Tracing route to 192.168.15.1 over a maximum of 30 hops    1    &lt;1 ms    &lt;1 ms    &lt;1 ms  192.168.1.1   2    47 ms    51 ms    49 ms  [163.121.171.123]   3     *        *        *     Request timed out.   4   128 ms     *        *     163.121.211.134.dnet.net [163.121.211.134 ]   5     *      134 ms   126 ms  10.37.242.18   6    94 ms    90 ms    95 ms  10.35.2.157   7   178 ms   254 ms   206 ms  10.32.8.107   8    85 ms    57 ms   318 ms  10.35.0.186   9   215 ms   241 ms   230 ms  192.168.15.1  Trace complete. HTML element does not fade in using jquery There are many cases in maths where doing the same thing over and over again will bring you closer to a value. Derivation of polynomials is the striking example: no matter what you start with, you end up with 0. In a series expansion, the longer you continue the sequence the closer you get to the real value.  This concept applies in areas other than math (Wikipedia's everything-leads-to-philosophy phenomenon, for example). It's a little unrelated but it just proves the concept.  Hashing algorithms are just special math. Following logically, hash entropy supposedly decreases the more you hash a value. So is there a point at which any input value will give the same hash as any other?  (Let me just specify that we're not re-injecting any new data every time we hash, as if we're trying to increase the security of the hash by salting and re-hashing. It's strictly a matter of md5(md5(md5(... if that's the algorithm we're using.  I can see some problems with this already. Algorithms like md5 are designed to change their output radically when the input changes only by one bit of information. So even if a common hash for two values appears along the way, it itself will start changing. But then, does the fact that the output appears to be very different actually mean the possibilities are still many? 70s UK science fiction TV show with time travel and telepathic cat I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel. Multiple bibliographies (reference lists) using embedded bibliography database I would like to have multiple bibliographies (reference lists) as described in   ().   However, I'd like to use with a single .tex file, which would contain the bibliography database embedded, as in  ...   Now, I want to use letter documentclass, for which the bibliography needs to be defined ()   So what I end up is with this example (code below, compiled with just pdflatex, no bibtex(which I'd like to avoid in this case)):     ... obviously, something works (multibib recognized primary and secondary cites, assigning them number "1" as start) -- however I don't get two, separate primary and secondary list of references; would that be possible in this context? (doesn't have to be with multibib, but I'd like to avoid a separate .bib file and a bibtex call)  EDIT: I'd also like separate cite keys (i.e. rendered as [a1] and [b1]; not yet sure if multibib can do that; edit: no it cant,  says "You can also edit the .bbl files created by BibTEX and add 'a', 'b',. . . to the labels, but your changes will be overwritten by subsequent BibTEX runs." and recommends \cite[a]{key}) - how possible would that be?  &nbsp;  The code is this:   \documentclass{letter}  % Environment thebibliography undefined when using letter: http://www.latex-community.org/forum/viewtopic.php?f=4&amp;t=3359 \makeatletter \setlength \labelsep {.5em} \newcommand\newblock{\hskip   .11em\@plus.33em\@minus.07em} \let\@openbib@code\@empty \newcommand\refname{References} \newcommand\section{\@startsection   {section}{1}{\z@}%   {-3.5ex \@plus -1ex \@minus -.2ex}%   {2.3ex \@plus.2ex}%   {\normalfont\Large\bfseries}} \newenvironment{thebibliography}[1] {\section*{\refname}%   \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%   \list{\@biblabel{\@arabic\c@enumiv}}%   {\settowidth\labelwidth{\@biblabel{#1}}%     \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code     \usecounter{enumiv}%     \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}%   \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty   \widowpenalty4000%   \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty       `thebibliography' environment}}%       \endlist} \makeatother  \usepackage{multibib} \newcites{pri}{Primary sources} \newcites{sec}{Secondary sources}  \begin{document}   \begin{letter}{Addressee} Blah, blah - content...  Primary cite: \citepri{lamport94} ...  Secondary cite: \citesec{lamport94} ...   \begin{thebibliography}{9}  \bibitem{lamport94}   Leslie Lamport,   \emph{\LaTeX: A Document Preparation System}.   Addison Wesley, Massachusetts,   2nd Edition,   1994.  \bibitem{lamport95}   Leslie Lamport,   \emph{\LaTeX: A Document Preparation System}.   Addison Wesley, Massachusetts,   2nd Edition,   1995.  \end{thebibliography}  \end{letter}   \end{document} Are delphi variables initialized with a value by default? Plurals of acronyms, letters, numbers — use an apostrophe or not? How to construct a pyramid in blender but the edges of the triangles to be equal? How to make a pyramid in blender and all the edges to be equal size? Is there a way to do that in blender? Or if there is no easy way for that, maybe anybody not that lazy can provide me with a math line? Or maybe a link or whatever? Para 5, , by      If the Lord would show thee but this one   thing, -- that to use "thee" and "thou" to a particular person is   proper language, and Scripture language; and that to say "you," is   improper, and arose from pride, and nourisheth pride, and so is of the   world, and not of the Father; and thou should bow thy spirit to him in   this one thing, thou little thinkest what a work it would make within thee, and how strongly the spirit of darkness would fight against thy   subjection thereto. The Lord lead thee as he seeth good, and give thee   faithfully to follow; for else, if the Lord should lead in any thing,   and thou not follow in that thing, his Spirit would be grieved and   vexed thereby, and thy heart in danger of being hardened by the   deceitfulness of sin.   What is the Lord giving thee faithfully to follow?   The grey claims that the reader thinks little of the significance of stressing 'thee' and 'thou' over 'you'. So I'd guess that the Lord is giving 'thee' this caution? If I'm right, why is there no direct object in the bolded? I recognise grammatical differences in the 1600s, but still want to learn. I want it to know how to convert string field values to integer values in QGIS Dufour... there are numbers and strings in the same field, when I use toreal(string) it stops and it won´t create the field. How can I update my OpenGL to 3.0 or higher What are the main differences between performing principal component analysis (PCA) on the correlation matrix and on the covariance matrix? Do they give the same results? Special Relativity - Regarding the Simultaneity of Events During the Train Paradox Find the sum of the power series $\sum_{n=1}^\infty n*(n+1)*x^n$ $\sum_{n=1}^\infty n*(n+1)*x^n$  Hello everyone,  I need help in solving the question above.  I started with $\frac{1}{1-x} = \sum_{n=0}^\infty x^n$, if differentiated it once so it became $\frac{1}{(1-x)^2} =\sum_{n=1}^\infty nx^{n-1} $ but from here I don't know how to continue. Thanks.