Faced with a small unpleasant situation. The PREFETCH files give me the path to the source file as:  C:\USERS\MYUSER\APPDATA\LOCAL\MEDIAGET2\MEDIAGET.EXE  This greatly spoils the look of my software. Is there an option to return it to its normal form, as indicated in the source file?  C:\Users\Myuser\AppData\Local\MediaGet2\mediaget.exe  I tried to output via FileInfo, through Path.GetDirectoryName + Name. Did not work. Anyway, prefetch gives the path in UpperCase mode (despite the fact that it is not used anywhere in the code).  P.S. Do not advise please use ToLowerCase - it also does not look nice and is different from the paths from the other code.
Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the actual name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)?  Some ways I know, all of which seem quite backwards:   Given the full path, search for each folder on the path (via FindFirstFile). This gives proper cased results of each folder. At the last step, search for the file itself. Get filename from handle (as in ). This requires opening a file, creating file mapping, getting it's name, parsing device names etc. Pretty convoluted. And it does not work for folders or zero-size files.   Am I missing some obvious WinAPI call? The simplest ones, like GetActualPathName() or GetFullPathName() return the name using casing that was passed in (e.g. returns "program files" if that was passed in, even if it should be "Program Files").  I'm looking for a native solution (not .NET one).
Where does top command get all the data for CPU Utilization? How to change inside background color of UISearchBar component on iOS Will this schematic work as a four-bit shift register? &ndash; Schematic created using   Will this work as a four-bit shift register? (And by extension a shift register of any size?) Each vertical PMOS / NMOS transistor pair acts as a multiplexer, and the PMOS transistor to its left amplifies the voltage back up to close to V_high. I'd be interested in hearing people's feedback on this. Right now I have only three transistors (and a resistor) per bit. Can I really get it that small a ratio, or are there reasons why I need more transistors per bit?  It's probably worth noting that I don't have master/slave here, so I can only assert (Shift) long enough to move one bit toward the right and no more.  Furthermore, I'm not trying to say that I need a resistor with 100 ohms. That appeared to be the only resistor I could use to make this schematic! What I want is a resistor that has significantly less resistance than the PMOS it's next to when it's at high impedance, but enough resistance to prevent a short circuit from V_high to ground when that transistor is conducting.  Okay, now I've changed each of the BJT's to MOSFET's, and reduced the resistance of each resistor from 100 ohms to 10 ohms. I'm still going on the assumption that (shift) will only be asserted long enough for the gate delays of M4 and M5, and then of M6, so the value of (dataIn) will only make it to M6's output, and won't move to M8 until the next time (shift) is asserted. Is this enough to get this circuit behaving like a four-bit shift register? Based on , I figured that there might be multiple questions for distinct locales. Why do the most common transactions to or from bank accounts in the US require waiting one or more days before they are completed? In the information age, it seems like we should be able to transfer money instantly (or nearly so). How to look up a symbol or identify a letter from a math alphabet or other character? Character of the subobject classifier in the topos of $\mathbf{M}$-sets. get list item by id using COM sharepoint 2013 I need to get item from list sharepoint by Id I use this code and it give me all the items of the list :  &lt;script&gt;  function parseURLParams(url) {         var queryStart = url.indexOf("?") + 1,             queryEnd = url.indexOf("#") + 1 || url.length + 1,             query = url.slice(queryStart, queryEnd - 1),             pairs = query.replace(/\+/g, " ").split("&amp;"),             parms = {}, i, n, v, nv;          if (query === url || query === "") {             return;         }          for (i = 0; i &lt; pairs.length; i++) {             nv = pairs[i].split("=");             n = decodeURIComponent(nv[0]);             v = decodeURIComponent(nv[1]);              if (!parms.hasOwnProperty(n)) {                 parms[n] = [];             }              parms[n].push(nv.length === 2 ? v : null);         }         return parms;     }  $( window ).load(function() {   var urlString = document.URL;  urlParams = parseURLParams(urlString);  ExecuteOrDelayUntilScriptLoaded(retrieveActualite, "sp.js");          var siteUrl = '/sites/securite';      function retrieveActualite() {              var clientContext = new SP.ClientContext(siteUrl);             var oList = clientContext.get_web().get_lists().getByTitle('Actualite');             var camlQuery = new SP.CamlQuery();              camlQuery.set_viewXml('&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=”ID” LookupId="TRUE"/&gt;&lt;Value Type="Text"&gt;' + urlParams.IdArt[0] + '&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;');             this.collListItem = oList.getItems(camlQuery);             clientContext.load(collListItem);             clientContext.executeQueryAsync(onQuerySucceededActualite, onQueryFailed);         }          function onQuerySucceededActualite(sender, args) {              var listItemInfo = '';              var listItemEnumerator = collListItem.getEnumerator();             while (listItemEnumerator.moveNext()) {                 var oListItem = listItemEnumerator.get_current();                   var desc=oListItem.get_item('Description');                 $('#idArticle').append('&lt;label class="titleArticle"&gt;'+oListItem.get_item('Title')+'&lt;/label&gt; &lt;br&gt;&lt;br&gt;&lt;p class="ContenuArticle" &gt;'+desc+'&lt;/p&gt;');                          }         }          function onQueryFailed(sender, args) {              alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());         }       });    &lt;/script&gt;   so how can I get only the considered item ? Let $G = \mathbb{R} / \mathbb{Q}$. Is this an interesting group to study?  Is it isomorphic to any more natural mathematical objects? Shortcut or button for copying posted code from Stack Overflow I might just be lazy, but do you ever find it tiresome to select all the source code from a large post on Stack&nbsp;Overflow to copy it?  I would like a feature, possibly a Firefox extension, but preferably a JavaScript script, for automatically copying source examples to the clipboard. It's no big deal for a small snippet, but a 1000+ line posting is cumbersome to copy.  Do you guys have a better way of copying large source posts? I'm using Firefox 3.5.5 on Windows&nbsp;7. Is there a command prompt  equivalent for Windows 7? That is, I want to filter out the results of a command:  Bash use:  ls | grep root  What would it be from a Windows command prompt? Is something similar to Robin's theorem known for possible exceptions to Lagarias' inequality? Robin's theorem says that if $$\sigma(n)&lt;e^\gamma n\log\log n$$ holds for all $n&gt;5040$, where $\sigma(n)$ is the sum of divisors of $n$, then the Riemann hypothesis is true, but if there are any counterexamples, then they are colossally abundant numbers, and there are infinitely many counterexamples.  Lagarias' theorem says $$\sigma(n)\leq H_n+e^{H_n}\log(H_n)$$ holding for all natural numbers $n$ is equivalent to the Riemann hypothesis, where $H_n$ is the $n$th harmonic number, the sum of the reciprocals of the first $n$ positive integers. It looks like Lagarias' inequality is sharper than Robin's, so any counterexamples to Robin's inequality must also be counterexamples to Lagarias'. Is known to be impossible for integers that aren't colossally abundant numbers or of some similar more general type to be exceptions to Lagarias' inequality? Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is?  try {       something();       return success;   }   catch (Exception e) {        return failure;   }   finally {       System.out.println("I don't know if this will get printed out"); } Infusing olive oil with herbs I am flying from Los Angeles to Bangalore. I have a flight option from LAX to Minneapolis and from there to Paris. I have only 45 minutes at Minneapolis before my next flight. Is this too risky a schedule? I am not an American, so I guess I would need to cross emigration too? What is the name for the grammatical device of putting "not" after a verb to negate it? How to calculate Network Service Areas in QGIS? What's your recommendation on drive partitioning schemes for a desktop and home server? What partitioning scheme do you recommend for a desktop? I've always created three or four primary partitions -- root, swap, home, and sometimes a separate boot partition. Ubuntu's default install offers LVMs. I've never had to add additional drives or space, so it never seemed like a big deal. Whenever I do a fresh install, though, I always think there might be a better way. Why didn’t anyone dial Abydos before Daniel solved the mystery of the seventh symbol? From what I recall from the movie, Daniel only finds the seventh symbol... however when he explain they give way to show him the star gate and they put their sequence in the dialing computer. This proves the dialing computer was prepared to dial 7 chevrons.  It’s also stated they’ve also tested the 6 previous symbols in the order they appear on before, one has to assume only to fail when they insert the 7th, making them aware of the fact you can, at least dial 7th chevrons.  With 39 chevrons on the gate and 6 already locked in, that leaves 33 to try to get a lock. Those are not that many not to go and simply try one by one so... how come nobody brute forced the thing? I see stuff like command 1&gt; out or with 2&gt;&amp;1 to redirect stderr, but sometimes I also see &amp;&gt; by itself, etc.  What is the best way to understand &amp; and what it means exactly? Why is this sentence correct? “She suggested that he go to the cinema.” Why is this sentence correct?     She suggested that he go to the cinema.   I would definitely use goes instead of go.