Closing All Shared Files on the Network I am trying to close all of the open files in the shared folders of a server via PowerShell script. I found the following script which only close files on one drive (F:), however, this server has 3 drives (F:\, G:\, H:) which I want to close all.   net files |      where   { $_.Contains( "F:\" ) } |     foreach { $_.Split( ' ' )[0] }   |     foreach { net file $_ /close }   Is there a way to add missing drives into this script or I have to use the same script separately for each drive?  I tried { $_.Contains( "F:\", "G:\", "H:\"  ) } but didn't work  Thank you for your help!
Close locked file in Windows Share using Powershell and Openfiles I work with a lot of folder shares, but there are a bunch of locked files which have been opened by some other process.  I need to close those files. So far I've been using MMC - System Tools - Shared Folders - Open Files.  It would be far more convenient if I could use PowerShell to filter the list/table retrieved by OpenFiles.exe and once I get the file ID close it with net file  /close, or some other PS native means to similar effect.  I am new to PowerShell, so I wonder if there is a way to create a PS script that receives the file's path and then used the file ID to close that file?
Say I have the titanic kaggle competition, but I'm not interested in the competition for predicting survival for each individual. Instead I want the most accurate estimate of total survivors on the titanic. Would this be achieved by using a probabilistic model, then adding the probabilities for each individual? For example, if I have 3 people and 1 survived, but my model produced 0.4, 0.4, and 0.4 probabilities for each person to survive, I calculate 0 survived. But if I add 0.4 for each person, I get 1.2, which is closer to the actual. Does this make sense? Conjugate subgroup strictly contained in the initial subgroup? Characterising reals with terminating decimal expansions Show that a number has a terminating decimal expansion if and only if, it is rational and when in lowest terms, its denominator is coprime to all primes other than $2$ and $5$.   This is an unsolved question in my lecture notes. I can only seem to prove the converse direction for this. Would appreciate a solution for the other direction.     For converse direction:   Let the number, in lowest terms, be given by $\frac{l}{m}$ where $m = 2^ \alpha 5^\beta$, for some positive integers, $\alpha$ and $\beta$.    If $\alpha &gt; \beta$, let $k = 5^{(\alpha-\beta)}$. If $\alpha &lt; \beta$, let $k = 2^{(\beta-\alpha)}$.   Then $\frac{l}{m} = \frac{kl}{k2^\alpha5^\beta}=\frac{kl}{10^q}$ where $q = \max(\alpha,\beta)$.   Hence $\frac{l}{m}$ is a terminating decimal. How do I set up a Godox X2Tc to control a Canon Speedlite 430 EXII I have a Godox X2Tc and a Godox X1Rc. I want to control my Canon Speedlite 430 EXII. (I also have a Godox V1, which is a beautiful thing!) I have the Canon Speedlite attached to the Godox receiver, so it should fire. It just wont! How do I set it up correctly so the receiver makes the Canon Speedlite fire?  Update: Michael C answered this question. I had the ID numbers set differently on the transmitter and receiver. I made them the same and now it all works. Perfect! Thanks Michael!! What constitutes an observation/measurement in QM? Fundamental notions of QM have to do with observation, a major example being The Uncertainty Principle.    What is the technical definition of an observation/?  If I look at a QM system, it will collapse. But how is that any different from a bunch of matter "looking" at the same system?  Can the system tell the difference between a person's eyes and the bunch of matter?  If not, how can the system remain QM?  Am I on the right track? Getting "System program problem detected" pops up regularly after upgrade I wonder whether it is possible to perform within R a clustering of data having mixed data variables. In other words I have a data set containing both numerical and categorical variables within and I'm finding the best way to cluster them. In SPSS I would use two - step cluster. I wonder whether in R can I find a similar techniques. I was told about poLCA package, but I'm not sure ... `time echo` got no output How Do You Select Only Part Of a Timeline To Be Rendered? Let's say I only want a section of the timeline to be rendered, and I want the final output to be in RAW AVI format.  How would you do that? Thanks guys! Entering Unicode characters in LaTeX How do I enter Unicode characters in LaTeX?  What packages do I need to install and what escape sequence do I type to specify Unicode characters in an ASCII source file? curlicue letters with mathptmx package How to show letters like  with mathptmx package?  I'm using pdfLaTeX with mathptmx package becasue its gooding looking normal math font letters a-z, A-Z. However, if only with this package, \mathsrc{...} is reported as "undefiend sequence" and \mathcal{...} is curlicue style like the following:  \mathcal{F} shows . If I add \usepackage{mathrsfs}, \mathcal{F} and \mathscr{F} are the same as .  What I expect is \mathcal{F} shows  and \mathscr{F} show the one in previous line.   What should I adjust? I hope mathptmx package is still being used.  Minimal code script goes like that:  % using PdfLaTeX \documentclass[journal]{IEEEtran} \usepackage{amssymb,amsmath,amsfonts} \usepackage{mathptmx}  \usepackage{mathrsfs} \begin{document} $$\mathcal{F}$$ $$\mathscr{F}$$ they are the same \end{document} Why can't I tame my ocelot? I have 3 folders with large amount of data in each which has to be maintained seperately. Can I create a sym link or shortcut.in windows which should show me the merged contents of the 3 folders. I am not looking for library conf in Win7.   Any suggestion is highly appreciated. My question is, how would I make the visible HDRI/Enviroment Map be image 1 and then have reflections as Image 2? If someone can post a node setup, or a .py file that would be great &lt;3 I was thinking maybe using the Is Camera Ray node but I'm not confident it would work, and have no idea where to start. I'm using Ubuntu 11.04 and I want to free up some space in my root directory, which is overloaded. I especially want to change the path used for installing applications (they are getting installed directly to the root drive).  Another consideration is that I'm working on a MySQL database server. The server is installed in the root directory itself, so I don't want to  risk losing any data.  Please give me some tips to help sort out this problem. smallest number for given sum of digits Carry over long sequence of missing values with Postgres I have a table like this:  create table foo (foo_label text, foo_price int, foo_date date);  insert into foo (           values           ('aaa', 100,  '2017-01-01'),           ('aaa', NULL, '2017-02-01'),           ('aaa', NULL, '2017-03-01'),           ('aaa', NULL, '2017-04-01'),           ('aaa', 140,  '2017-05-01'),           ('aaa', NULL, '2017-06-01'),           ('aaa', 180,  '2017-07-01')         );   As you can see a few values on the foo_price column are missing.  What I need is that missing values get filled up with the "previous" available value in this way:   foo_label | fixed_foo_price | foo_date -----------+-----------------+------------  aaa       | 100             | 2017-01-01  aaa       | 100             | 2017-02-01  aaa       | 100             | 2017-03-01  aaa       | 100             | 2017-04-01  aaa       | 140             | 2017-05-01  aaa       | 140             | 2017-06-01  aaa       | 180             | 2017-07-01   My attempt:  select      foo_label,      (case when foo_price is null then previous_foo_price else foo_price end) as fixed_foo_price,     foo_date from (   select        foo_label,        lag(foo_price) OVER (PARTITION BY foo_label order by foo_date::date) as previous_foo_price,        foo_price,       foo_date       from foo ) T;   As you can see from here:    It doesn't fill completely the '100' series.  Any idea how can I get the wanted result? Can any one tell me how to prove that the set of rational numbers are countable? Prove give me a prove?  Thanks. UV mapping a straight image around a ring shaped flat mesh Is it possible to mapping a image around a ring shaped mesh? I would imagine there should be a way to curve/distort the image around the mesh. If not, how can I straighten out the mesh easily instead to fit the image? Add the ability to add "top questions" to Careers 2.0 Profile Allow me to add my own "top questions" too! I know, I know, the site should be more heavily weighted to answering, but sometimes, how and what people ask is important too! For example I recently asked  which I think is a fairly good question. Clearly I'm going to avoid questions where I've asked something very simple, but I know of a user or two who are implementing their own C standard libraries and the depth of those questions is important/ought to be on show.  Of course, the argument I can just look at their profile holds, but that awesome q/a might have been from a year or so ago in which case finding it is difficult.