Generally I prefer to use Notepad++ to edit xml files, but when right-clicking on one in Windows and just selecting Edit, I still prefer for it go to Notepad anyway, which is the usual on Windows machines.  But recently my Windows 7 machine has started trying to edit it with Word instead, and there doesn't seem to be an option to really make it go back to Notepad.  This is not the same as choosing the default program.  When you double-click on it in Windows, on most machines, it will open up in IE or Edge.  If you right-click and select Edit, it'll go to Notepad.  These are two different settings.  On my machine the default program is showing as Microsoft Application Virtualization Virtual Process Launcher, which makes sense, and it is still opening it in IE upon doube-clicking.  However switching it to Notepad causes it to open in Notepad when double-clicking as well as when selecting Edit.  When going to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\xml in regedit, the two values are as follows:  (Default)         (value not set) PerceivedType     document   So how do you change just the Edit option to point to Notepad, without changing the double-click option?    EDIT - Consolidating information about the duplicated question, Notepad vs. Notepad++, and a few different file formats:  This was somewhat of a duplicate of , as mentioned in the comments.  That being said, to go from Notepad to Notepad++ for batch files, the answer there suggests making the following change in the registry HKEY_CLASSES_ROOT\batfile\shell\edit\command:  old value: %SystemRoot%\System32\NOTEPAD.EXE %1 new value: "C:\Program Files (x86)\Notepad++\notepad++.exe" %1   To use Notepad with xml files, this value worked on my machine in the registry HKEY_CLASSES_ROOT\xmlfile\shell\edit\command:  C:\Windows\System32\notepad.exe %1   (Using either %SystemRoot% or %windir% seemed to have a little trouble working on my machine.)  For text files, there did not appear to be anything called edit under HKEY_CLASSES_ROOT\textfile\shell.
In Windows, if you right-click a .bat file, there's an "Edit" option, which opens the .bat file with notepad. How do I make Windows use Notepad++ instead?  Note that this is different from the question . In that question, user asks for a way to make Notepad++ the default opener for specific file types. This is not what I want here, since I expect that double-clicking on .bat files executes them.
What is the music on S3E16 when Todoroki was fighting group of ninjas? So this has puzzled me for many a year... I still am no closer to coming to a conclusion, after many arguments that is. I don't think it can, others 100% think it will.   If you have a plane trying to take off whilst on a tread mill which will run at the same speed as whatever the planes tires rotation speed is will it take off?  [edited to be more clear]  The question is simple. Will a plane take off if you put this plane onto a treadmill that will match whatever speed the plane wheels are moving at. So the plane should not be able to move.  This is a hypothetical situation of course. But I am very interested. How to replace a string with a string containing slash with sed? I am looking for a way to replace a string in a file with a string that contains a slash by using sed.  connect="192.168.100.61/foo" srcText="foo.bar=XPLACEHOLDERX" echo $srcText | sed "s/XPLACEHOLDERX/$connect"   The result is:  sed: -e Expression #1, Character 32: Unknown option for `s' Allow converting comments to answers Why Oracle discontinued Oracle Java (JDK) Installer PPA? Cron jobs in Drupal 7 I have a PHP file that does some task in consistent intervals.   I have placed that PHP file inside a custom module folder, but I found that Drupal functions like drupal_set_message() are not available inside the PHP file.   How do I include Drupal functions inside this PHP file? How do I set up this php file to be run as a cron job? Cyberpunk/Post-Apocalyptic Sci-Fi series from the 90s or 00s based in Manhattan Sorting citations using \cites command in biblatex I am using biblatex for citations and bibliography. Now I often have lists of multiple citations, for which biblatex has the \cites command. Now I can get citations to automatically sort if I don't want page numbers, but I cannot get it right with page numbers.  What I want is all citation ordered chronological (oldest first). Is this possible, or must I just do this by hand?  Here is an example.  \documentclass[11pt,oneside]{memoir}  \usepackage[     style=authortitle,     useprefix=false,     maxnames=2,     firstinits=true,     sortcites=true,     uniquename=init,     abbreviate=true,     backend=biber,     sorting=ynt ]{biblatex}  \begin{filecontents}{jobname.bib} @book{tom1,   author = {Author, A.},   year = {2001},   title = {This book is from 2001},   shorttitle = {2001}, } @book{tom2,   author = {Author, A.},   year = {1999},   title = {This book is from 1999},   shorttitle = {1999}, } \end{filecontents}  \addbibresource{jobname.bib}   \begin{document} This one is corrent.\footnote{\Cites{tom1,tom2}.} This one is corrent.\footnote{\Cite{tom1,tom2}.}   This one is incorrent.\footnote{\Cites{tom1}{tom2}.} This one is incorrent.\footnote{\Cites[1]{tom1}[12]{tom2}.} \end{document} Consider the closed interval $[0,1]$, there is $\frac{2}{3} \in [0,1]$ where $p=2$ and $q=3$. Similarly consider $[2,3]$, one can have $\frac{5}{2} \in [2,3]$ where $p=5$ and $q=2$. Does every interval of the form $[a,b]$, where $a,b \in \mathbb{R}$ contain a rational of this kind. If yes, how can we prove it? How is it like to live in Helsinki?  What is it like to live in Helsinki?  How is living in Helsinki?  What are the differences between these three sentences and what is the common way to ask someone for their opinion about the city they live in? Explaining different Standard Deviation results from same data in ArcGIS Desktop and MS Excel? I have done some interpolation in Geostatistical Analyst in ArcGIS and I got the Standard Deviation (SD) a bit different from the SD that I calculated in Excel Spreadsheet.   What algorithm does each package use? Why are the results different? Why is "the set of all sets" a paradox, in Layman's terms? I've heard of some other paradoxes involving sets (i.e., &quot;the set of all sets that do not contain themselves&quot;) and I understand how paradoxes arise from them.  But this one I do not understand. Why is &quot;the set of all sets&quot; a paradox?  It seems like it would be fine, to me.  There is nothing paradoxical about a set containing itself. Is it something that arises from the &quot;rules of sets&quot; that are involved in more rigorous set theory? Why $\sum_{k=0}^m x^k $ is equal to $\dfrac{x^{m+1}-1}{x-1} $? Who can help me proving this (but you can no longer use $\sum$ in the proof):  $$\sum_{k=0}^m x^k=\dfrac{x^{m+1}-1}{x-1}$$ Are the limits $\lim\limits_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|\,$ and $\lim\limits_{n\to \infty }\sqrt[n]{|a_n|}\,$ equal? Let consider the power series $$ \sum_{k=1}^\infty a_kx^k. $$ We know that it converges when  $$\lim_{n\to \infty }\sqrt[n]{|a_n|}|x|&lt; 1\quad\text{or}\quad |x|&lt; \frac{1}{\lim_{n\to \infty }\sqrt[n]{|a_n|}}$$  But D'Alembert test tells us that it converges if $$|x|&lt; \frac{1}{\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|},$$ so since the radius of convergence is unique, we should have that $$\lim_{n\to \infty }\sqrt[n]{|a_n|}=\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|.$$  I tried to prove it, but this result looks strange to me. So if it doesn't work always, how can we have those to limit as radius of convergence? I guess the equality of those two limit should be true most of the time.  So under what conditions is it true? If $A$ is a square matrix and $A^2 = 0$ then $A=0$. Is this true? If not, provide a counter-example. This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.). org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 Open Attachment on Create of Child Record How should I take care of my new DSLR? I am getting a new Nikon D5100 (with 18-55mm VR Lens Kit). This is going to be my first DSLR. I wanted to get some tips from you guys on how to maintain it in the long term. I am getting a 52mm UV Protector Filter, as I read that it would do well to keep the lens clean.  Are there any precautions I need to take?  I would also appreciate if someone can suggest some reading material (paperback or online). rewrite access to collection to avoid "double" finding