&quot;Like -exec, but the specified command is run from the subdirectory containing the matched file, which is not normally the directory in which you started find.  This is a much more secure method for invoking commands, as it avoids race conditions during resolution of the paths to the matched files.&quot; &quot;As with the -exec option, the + form of -execdir will build a command line to process more than one matched file, but any given invocation of command will only list files that exist in the same subdirectory.  If you use this option, you must ensure that your $PATH environment variable does not reference the current directory; otherwise, an attacker can run any commands they like by leaving an appropriately-named file in a directory in which you run -execdir.&quot;  When you run the -execdir command using the + method, why does it make you vulnerable to attack if someone puts an aptly named file in your PATH?  Is it because it's possible that that executable will be run instead of the expected executable?  Sort of like in Windows 7 when you replace sethc.exe with a renamed cmd.exe to access cmd.exe from the login prompt, except in this case it's run by find thinking the command it's running is /usr/bin/ls for example, when it's really running something else named ls? If that's the case I guess one just needs to check sum the command and make sure the entire path is specified when running such a command. I suppose the other version with ; would be volunerable to that as well correct?
From the :   -exec command ;     There are unavoidable security problems     surrounding use of the -exec action; you should use the     -execdir option instead.  -execdir command {} +     Like -exec, but the specified command is run from the     subdirectory containing the matched file, which is not     normally the directory in which you started find.  This a much     more secure method for invoking commands, as it avoids race     conditions during resolution of the paths to the matched     files.    What does this mean? Why are there race conditions with running it from the starting directory? And how are these security risks?
rewrite script to use wp_remote_get instead of file_get_contents_curl Convert Latex to MathJax-HTML Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with ?  (Obviously, it is fairly easy to hack together a quick Perl script that is able to do a crude conversion, but I am interested in a bit more robust solutions — at least it should get all cross-references right automatically.) Anyone know a simple method to swap the background color of a webpage using JavaScript? Disable automatic activation of Gnome Shell activities on mouse over What is the origin of "man on the spot"? What is the origin of "man on the spot" ?   defines on the spot and uses as an example man on the spot.     on the spot -  at the place in question; there; "they were on the spot when it happened"; "it had to be decided by the man on the   spot" (Emphasis added)   Some evidence suggests that the origin of the phrase refers to decisions made by officials of the past British empire and actions taken by them. Show that $n-m$ is a multiple of 9 when $n$ and $m$ have same digits "Closed" (square) root symbol I found a cool trick in the  which allows the square root sign to be altered such that it &quot;closes&quot; over its contents. Here's an example:  (&quot;closed&quot; root on the left, normal one on the right) The way they do this is as follows: % New definition of square root: % it renames \sqrt as \oldsqrt \let\oldsqrt\sqrt % it defines the new \sqrt in terms of the old one \def\sqrt{\mathpalette\DHLhksqrt} \def\DHLhksqrt#1#2{% \setbox0=\hbox{$#1\oldsqrt{#2\,}$}\dimen0=\ht0 \advance\dimen0-0.2\ht0 \setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% {\box0\lower0.4pt\box2}} The cool thing is that (as far as I've tested it) this works regardless of the math font and with pdftex as well as xetex. However what is not possible is mulitple roots, such as \sqrt[3]{a}. Those produce incorrect output when this &quot;trick&quot; is being used. So my question is, is somebody able to tweak this code so that it works for multiple roots as well? \documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath} \usepackage{makeidx}  %Preamble  \numberwithin{equation}{chapter} %\renewcommand{\theequation}{\thesection.\arabic{equation}}  \begin{document}  %\include{chapI}   these 2 lines are because the chapters are different tex files  %\include{chap1}  \renewcommand{\thechapter}{\Roman{chapter}}  %\setcounter{chapter}{0} %\renewcommand{\theequation}{\thechapter.\arabic{equation}}  \chapter{Introduction}  \section{Chap I Section1}  \begin{equation} this is equation I.1 \end{equation}  \begin{equation} this is equation I.2 \end{equation}  \section{Chap I Section2}  \begin{equation} this is equation I.3 \end{equation}  \chapter{Chapter 1}  \section{Chap 1 Section 1}  \begin{equation} this is equation 1.1.1 \end{equation}  \begin{equation} this is equation 1.1.2 \end{equation}  \end{document}     I have been typing Chapters 1-5 that contain sections and subsections and equations. The equations were numbered globally, i.e. if I had 3 equations in section 1 of Chap 1, they were numbered 1.1.1, 1.1.2, 1.1.3 and for Section 2, the equations were 1.2.4, 1.2.5, etc.  Recently I had to change Chap 1 and everything in it to Chapter I (roman number) and Chap 2 were renumbered to Chap 1, etc.  My problem is that LaTeX started numbering the equations in Chap I (the other chapters did not have this problem) according to the sections and not globally anymore. That is, the 3 equations in Chap I were I.1, I.2, I.3, and the equations in the second section of Chap I became I.1, I.2, etc instead of I.4, I.5, etc  I needed the prefix to be the chapter and not the sections. I don't understand why there is a change. I have never used \numberwithin in my book  Here are some of my codes  \documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath}   for the equation numbering in Chap I  \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\theequation}{\thechapter.\arabic{equation}} **   Previously when Chap I was Chap 1, ** was  \renewcommand{\theequation}{\thesection.\arabic{equation}}   I have also tried the line below but it didn't work  \renewcommand{\theequation}{I.\arabic{equation}}   Thank you in advance Derivative of function with 2 variables How do I write to NTFS drives in OS X? Let $A$ be a squared matrix, and suppose there exists an $n\in \Bbb N$ in a way that $A^n=0$. Show that $I-A$ is invertible and that $(I-A)^{-1}=I+A+\cdots+A^{n-1}$    I don't have a clue where to start from. How do I use the conditional (ternary) operator? I've always wondered how to write the "A ? B : C" syntax in a C++ compatible language.  I think it works something like: (Pseudo code)  If A &gt; B    C = A Else    C = B   Will any veteran C++ programmer please help me out? Opening a file from terminal When we want to open an application or file from the terminal, we type, say,  okular file.dvi   This opens the application, but also shows the status of the application. We cannot close the terminal, because it kills the process. Unfortunately, if you're trying to, for example, create a LaTeX file, you will need one tab for the text editor, one for the dvi file, and so on. And if you're trying to open all windows from the terminal, you can forget it. I'm trying use the terminal as much as possible, and while I have Yakuake, it is still a bother having so many tabs and seeing which of those have an application I've killed and so on.  So, is there a way to open an application/file from the terminal so that the status doesn't show and immediately gives the prompt so that we can use it to open more applications? Anime about a boy and a girl who ride ostrich-like creatures through a valley I can not remember much but I have had this film in my head for years I searched everything I can remember on every website I can think of.  I don't remember the exact story but I'll list everything about it can   Apocalyptic future possibly Two main characters: a boy and a girl riding ostrich-like creatures through a valley An old blind lady that senses things Crashed spaceship looking like a submarine Giant creatures looks like yaks with blue eyes, whose eyes turn red when something is about to happen The old lady says "Some say they went to the stars" while looking at the spaceship The two main characters do something and their eyes turn blue in the distance and the village cheers   This film is at least ten years old and I would appreciate it so much if you knew anything about it, or could help me find the title. Microphone volume at maximum yet too quiet I have got a reasonbly basic desktop microphone, however for reasons that I don't understand it is extremley quiet. I dual boot, both systems run Windows 7, one system is working just fine although the other system, after I restarted the computer a couple of weeks ago, the microphone is now far too quiet.  I've been through the Sound control panel. The correct microphone is selected as the default communication device. The microphone level is set to 100. The microphone is plugged into a sound card, so I uninstalled the audio card (an Asus D1) driver and reinstalled it which made no difference. If I tap the microphone, it does register 5 or 6 green bars in the recording volume monitor. So, does anybody have any suggestions on where to look next? Windows update giving error 80070002 and manual update not working how to update? I have been trying to update my pc from 20h1 to 20h2 but the windows update shows error message 80007002 and when I manually install the update using windows 10 update assistant it downloads completely and then even starts install and gets stuck at 87 percent on the screen where it says do not turn off. What to do? This is the log file. Matching Profile found: FindRollbackFailure - 3A43C9B5-05B3-4F7C-A955-88F991BB5A48 SetupDiag version: 1.6.0.0 System Information:     Machine Name =      Manufacturer =      Model =      HostOSArchitecture = 1033     FirmwareType = UEFI     BiosReleaseDate = 20160513000000.000000+000     BiosVendor = A12     BiosVersion = A12     HostOSVersion = 10.0.19041     HostOSBuildString = 19041.1.amd64fre.vb_release.191206-1406     TargetOSBuildString = 10.0.19041.621 (vb_release_svc_prod1.201014-1758)     HostOSLanguageId =      HostOSEdition = CoreSingleLanguage     RegisteredAV = Quick Heal Internet Security     FilterDrivers = FileInfo     UpgradeStartTime = 12/20/2020 2:54:38 PM     UpgradeEndTime = 12/20/2020 5:30:40 PM     UpgradeElapsedTime = 02:36:02     CV = Pi3IdU3SlEqpFx93     ReportId =    Error: SetupDiag reports rollback failure found. Last Phase = Pre OOBE Boot Last Operation = OOBE boot apply Error = 0xC1900101-0x4000D LogEntry:   Refer to &quot;https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes&quot; for error information.  Last Setup Phase: Phase Name: Pre OOBE Boot     Phase Started: 12/20/2020 4:37:50 PM     Phase Ended: 1/1/0001 12:00:00 AM     Phase Time Delta: 00:00:00     Completed Successfully? False   Last Setup Operation: Operation Name: OOBE boot apply     Operation Started: 12/20/2020 4:37:50 PM     Operation Ended: 1/1/0001 12:00:00 AM     Operation Time Delta: 0:00:00:00.0000000     Completed Successfully? False Questions link almost unreadable when active on meta If you click on  the font color is almost unreadable on the main site here.  Is it possible to make it a slightly different color? (I cannot say if darker or lighter is better) How do you prove that there are infinitely many primes of the form $5 + 6n$? How to make a JTable non-editable Do I have to enter the UK on my UK passport? I'm a British National (Overseas), which basically means that while I don't have the right of abode in the UK, I am permitted to visit the UK without a visa. However, my passport has expired, and while it's being renewed, the schedule is a bit tight.  At the same time, I'm an US Citizen, and since I'm only planning to visit the UK, I don't need a visa if I enter on my US passport.  I'm not familiar with UK immigration law, and given that this probably isn't too common a situation, the UK Border Agency website doesn't have an answer that I can can find, nor do they seem to have a contact form that fits my situation, so here's hoping someone knows—given that I'm a British National (Overseas), am I required to enter the UK on my UK passport, or can I just use my (valid) US passport?