first of all sorry about my english. I need to split a file path. For example:  "C:\Folder\Folder2\1.cr2"   I need to get file drive, file path, file name and file extension separately:  C:\ ,  Folder\Folder2 , 1 and  .cr2   Thanks.
My path is \\server\folderName1\another name\something\another folder\  How do I extract each folder name into a string if I don't know how many folders there are in the path and I don't know the folder names?  Many thanks
Deriving curvature formula How do you derive the formula for unsigned curvature of a curve $\gamma (t) = (x(t), y(t)$ which is not necessarily parameterised by arc-length.   The formula given is $$|\kappa (t)| = \left|\frac{x'' y' - y'' x'}{((x')^2 + (y')^2)^{3/2}}\right|$$  All the definitions of curvature in my notes give it in terms for an arc-length parameterisation $T'(s) = \kappa(s) N(s)$. This is apparently meant to be 'easily derivable', am I missing something? Can't execute terminal commands: "the command 'sudo' is available in '/usr/bin/sudo'" I have been using Ubuntu 12.04 for quite a while and have never had a problem come at me out of the blue like this. I'm trying to install python 3.2 on my Ubuntu system and every time I run the code to compile the python source, I get this error:  'Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found'   I've also tried running gksudo command to view what my environment shows but I pretty much get the same error. Omission of the indefinite article to eliminate ambiguity love between husband and wife   What is the reason that there is no article (e.g. "love between a husband and a wife") in the above? Has some kind of a rule been identified grammatically when it comes to such a case? If I were to guess I think it's because the indefinite article 'a', the purpose of that, is taking a generic sample (or 'instance') from a 'class' (the class of husbands), but in the above sentence you want to refer to the class itself... the husband class and the wife class... and not an 'instance' of them, because it just is more to the point. Do you think this is a fair reasoning? Also, a thought came to me that with the use of the indefinite article, you get a generic husband and a generic wife, which, may not necessarily love each other (for they are not a specific pair of a specific husband and a specific wife who in fact love each other). View linked Excel 'Windows' on separate screens If you have a single atom in a box, what state of matter would it be in? If the walls of the box were made of a completely inert material, what state of matter would the atom be in? Or would it not have one? I realized this is a duplicate of several other questions. Evaluating logistic regression and interpretation of Hosmer-Lemeshow Goodness of Fit Is there a rule of thumb for objective questions asked out of curiosity? Antiderivative of periodic function I practise before the real analysis exam and I got stuck on few excercises.  "if $F$ is an antiderivative of a continuous periodic function and $F$ is bounded, then $F$ is periodic"  $~\to~$ one should give a proof or counterexample.  (I'm convinced it's true, but how to prove it?) Best way to merge mp4 files What does the decay constant mean? In my curriculum, the  is "the probability of decay per unit time"  To me, this seems non-sensical, as the decay constant can be greater than one, which would imply that a particle has a probability of decaying in a time span that is greater than 1.  Can someone explain this? XPath select node with namespace A man sits on a bench considering his woeful burden. He looks up at the stars and compares the distance from here to his house and here to the furthest visible star Deneb. Suddenly his problems seems pitifully faint and untroubling. He laughs and relaxes in his seat, staring at the ducks.     Look again at that dot. That's here, that's home, that's us. On it everyone you love, everyone you know, everyone you ever heard of, every human being who ever was, lived out their lives. The aggregate of our joy and suffering, thousands of confident religions, ideologies and economic doctrines, every hunter and forager, every hero and coward, every creator and destroyer of civilization, every king and peasant, every young couple in love, every mother and father, hopeful child, inventor and explorer, every teacher of morals, every corrupt politician, every "superstar," every "supreme leader," every saint and sinner in the history of our species lived there—on a mote of dust suspended in a sunbeam.   ~Carl Sagan      I really believe that if the political leaders of the world could see their planet from a distance of 100,000 miles their outlook could be fundamentally changed. That all-important border would be invisible, that noisy argument silenced. The tiny globe would continue to turn, serenely ignoring its subdivisions, presenting a unified façade that would cry out for unified understanding, for homogeneous treatment. The earth must become as it appears: blue and white, not capitalist or Communist; blue and white, not rich or poor; blue and white, not envious or envied. ~Michael Collins, astronaut   I'm looking for a noun or verb that describes this positive enlightening experience. I'm looking for a way to get the Default currency symbol (in a none-multi-currency org) of the salesforce org locale (to have it displayed on a visualforce page in a field that can't be &lt;apex:inputField&gt; or &lt;apex:outputField&gt;) preferably query-able from apex (via the database, a describe or whatever) and then again the actual symbol, meaning € for Euro, $ for dollar, and so on...  There must surely be some sort of mapping hidden in the code somewhere salesforce does this via the input/outputfields if bound to an sobject of type currency  Can anyone point me in the right direction? Are static class instances unique to a request or a server in ASP.NET? On an ASP.NET website, are static classes unique to each web request, or are they instantiated whenever needed and GCed whenever the GC decides to disposed of them?  The reason I ask is because I've written some static classes before in C# and the behavior is different than I would have expected. I would have expected static classes to be unique to each request, but it doesn't seem like that is the case.  If they are not unique to each request, is there a way to allow them to be?  UPDATE: The answer driis gave me was exactly what I needed. I was already using a singleton class, however it was using a static instance and therefore was being shared between requests even if the users were different which in this case was a bad thing. Using HttpContext.Current.Items solves my problem perfectly. For anyone who stumbles upon this question in the future, here is my implementation, simplified and shortened so that it easy to understand the pattern:  using System.Collections; using System.Web;  public class GloballyAccessibleClass {     private GloballyAccessibleClass() { }      public static GloballyAccessibleClass Instance     {         get         {             IDictionary items = HttpContext.Current.Items;             if(!items.Contains("TheInstance"))             {                 items["TheInstance"] = new GloballyAccessibleClass();             }             return items["TheInstance"] as GloballyAccessibleClass;         }     } } How to test API integration in marketing cloud? I have created a API package under Setup -> Installed Packages.   I have created API Integration component for the package .I have the below basic details for the component.   Client Id Client Secret Authentication Base URI REST Base URI   I want to test the created API package using any tool( Postman or other API testing tools).  I was able to find API integration testing links for SFDC but not for the Marketing Cloud.   What is the redirect URL to be used in the API package? I have created an API integration package of Integration type ( Web APP)   In web app properties, what is the redirect URL to be provided? Can I export Shotwell pictures database saving all the tags? I've imported lots of pictures into Shotwell and spent some time setting tags. Are those tags locked-in in Shotwell or I can export them (and import again or use with other software)? How to download Ubuntu over an unreliable connection Why does a 95% Confidence Interval (CI) not imply a 95% chance of containing the mean? It seems that through various related questions here, there is consensus that the "95%" part of what we call a "95% confidence interval" refers to the fact that if we were to exactly replicate our sampling and CI-computation procedures  many times, 95% of thusly computed CIs would contain the population mean. It also seems to be the consensus that this definition does not permit one to conclude from a single 95%CI that there is a 95% chance that the mean falls somewhere within the CI. However, I don't understand how the former doesn't imply the latter insofar as, having imagined many CIs 95% of which contain the population mean, shouldn't our uncertainty (with regards to whether our actually-computed CI contains the population mean or not) force us to use the base-rate of the imagined cases (95%) as our estimate of the probability that our actual case contains the CI?   I've seen posts argue along the lines of "the actually-computed CI either contains the population mean or it doesn't, so its probability is either 1 or 0", but this seems to imply a strange definition of probability that is dependent on unknown states (i.e. a friend flips fair coin, hides the result, and I am disallowed from saying there is a 50% chance that it's heads).  Surely I'm wrong, but I don't see where my logic has gone awry... It's not like there's anything else to do.   Shouldn't the speaker say: "There's something else to do." ? so what's the meaning of the sentence and what's the difference between the two of them? Thank you, Labelling figures in the tikz package Consider the following piece of code, which uses the tikz-feynman package:  \usepackage{tikz-feynman, contour} \tikzfeynmanset{compat=1.1.0}  \begin{document} \begin{center}     \begin{tikzpicture}[baseline={(current bounding box.center)}]     \begin{feynman}         \diagram [vertical'=a to b] {             {   [edges={draw=none}]                 a -- b [label=0:\(\mu_{3}\)]                 -- c [label=-180:\(\mu_{4}\)]                 -- d [label=-180:\(\mu_{1}\)]                 -- a [label=0:\(\mu_{2}\)],             },             {   [edges={photon}]                 a -- ap [particle=\(p_{2}\)],                 b -- bp [particle=\(p_{3}\)],                 d -- dp [particle=\(p_{1}\)],                 c -- cp [particle=\(p_{4}\)],             },         };         \diagram* {             (c) -- [fermion] (b)                 -- [fermion] (d)                 -- [fermion] (a)                 -- (c),         };     \end{feynman}     \end{tikzpicture}     %     \feynmandiagram[baseline={(current bounding box.center)}, vertical'=a to b,] {         {   [edges={fermion}]             a -- b [label=0:\(\mu_{3}\)]             -- c [label=-180:\(\mu_{4}\)]             -- d [label=-180:\(\mu_{1}\)]             -- a [label=0:\(\mu_{2}\)],         },         {   [edges={photon}]             a -- ap [particle=\(p_{2}\)],             b -- bp [particle=\(p_{3}\)],             d -- dp [particle=\(p_{1}\)],             c -- cp [particle=\(p_{4}\)],         },     };     %     \begin{tikzpicture}[baseline={(current bounding box.center)}]     \begin{feynman}         \diagram [vertical'=a to b] {             {   [edges={draw=none}]                 a -- b [label=0:\(\mu_{3}\)]                 -- c [label=-180:\(\mu_{4}\)]                 -- d [label=-180:\(\mu_{1}\)]                 -- a [label=0:\(\mu_{2}\)],             },             {   [edges={photon}]                 a -- ap [particle=\(p_{2}\)],                 b -- bp [particle=\(p_{3}\)],                 d -- dp [particle=\(p_{1}\)],                 c -- cp [particle=\(p_{4}\)],             },         };         \diagram* {             (a) -- [anti fermion] (b)                 -- [anti fermion] (d)                 -- [anti fermion] (c)                 -- (a),         };     \end{feynman}     \end{tikzpicture}     \end{center} \end{document}   This piece of code draws the following figure:    I would like to label each figure. I do not want a caption, but just a label beneath each diagram. The label should say Diagram I, Diagram II, Diagram III.  How do I implement this into my code?